@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
@@ -0,0 +1,142 @@
1
+ "use strict";var lp=Object.create;var Zi=Object.defineProperty;var cp=Object.getOwnPropertyDescriptor;var up=Object.getOwnPropertyNames;var dp=Object.getPrototypeOf,pp=Object.prototype.hasOwnProperty;var fp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of up(t))!pp.call(e,o)&&o!==n&&Zi(e,o,{get:()=>t[o],enumerable:!(r=cp(t,o))||r.enumerable});return e};var Wr=(e,t,n)=>(n=e!=null?lp(dp(e)):{},fp(t||!e||!e.__esModule?Zi(n,"default",{value:e,enumerable:!0}):n,e));const f=require("react/jsx-runtime"),W=require("@mui/material"),Se=require("./ServerProvider-BIFPCzTD.cjs.js"),X=require("react"),Hn=require("@tanstack/react-query"),hp=require("@emotion/react"),He=require("@mui/system"),lr=require("react-dom"),mp=require("markdown-to-jsx"),_s=require("./text-entry-BJwltZiy.cjs.js"),gp=require("@emotion/styled"),tt=require("@malloydata/malloy-filter"),yp=require("@mui/icons-material"),bp=require("@malloydata/malloy-tag");function Nl(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 S=Nl(X),vp=Nl(lr),$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"},Ji=e=>e,xp=()=>{let e=Ji;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ji}}},jl=xp();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 ea(...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 Sp(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 es={exports:{}},ts,ta;function wp(){if(ta)return ts;ta=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ts=e,ts}var ns,na;function Cp(){if(na)return ns;na=1;var e=wp();function t(){}function n(){}return n.resetWarningCache=t,ns=function(){function r(i,a,l,c,u,p){if(p!==e){var g=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 g.name="Invariant Violation",g}}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},ns}var ra;function Pp(){return ra||(ra=1,es.exports=Cp()()),es.exports}var kp=Pp();const _=Nt(kp);function Bl(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=Bl(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=Bl(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 rs={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 oa;function Mp(){if(oa)return Ie;oa=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"),g=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function d(h){if(typeof h=="object"&&h!==null){var m=h.$$typeof;switch(m){case e:switch(h=h.type,h){case n:case o:case r:case l:case c:case g: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 m}}case t:return m}}}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 sa;function Tp(){return sa||(sa=1,rs.exports=Mp()),rs.exports}var Vl=Tp();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 zl(e){if(S.isValidElement(e)||Vl.isValidElementType(e)||!kt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=zl(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=>{S.isValidElement(t[o])||Vl.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])?zl(t[o]):t[o]:r[o]=t[o]}),r}function fr(e,t){return t?Ge(e,t,{clone:!1}):e}function ia(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 Dp(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Rp(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 Ip(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 Do={xs:0,sm:600,md:900,lg:1200,xl:1536},aa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Do[e]}px)`},Ep={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Do[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||aa;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||aa;return Object.keys(t).reduce((i,a)=>{if(Dp(s.keys,a)){const l=Rp(r.containerQueries?r:Ep,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||Do).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 $p(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function la(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Ro(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 ho(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ro(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=Ro(l,r)||{};return At(i,a,p=>{let g=ho(c,o,p);return p===g&&typeof p=="string"&&(g=ho(c,o,`${t}${p==="default"?"":le(p)}`,p)),n===!1?g:{[n]:g}})};return s.propTypes={},s.filterProps=[t],s}function Op(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Ap={m:"margin",p:"padding"},Fp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ca={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Lp=Op(e=>{if(e.length>2)if(ca[e])e=ca[e];else return[e];const[t,n]=e.split(""),r=Ap[t],o=Fp[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),Ws=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ws,...Hs];function Ir(e,t,n,r){const o=Ro(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 Us(e){return Ir(e,"spacing",8)}function Er(e,t){return typeof t=="string"||t==null?t:e(t)}function Np(e,t){return n=>e.reduce((r,o)=>(r[o]=Er(t,n),r),{})}function jp(e,t,n,r){if(!t.includes(n))return null;const o=Lp(n),s=Np(o,r),i=e[n];return At(e,i,s)}function _l(e,t){const n=Us(e.theme);return Object.keys(e).map(r=>jp(e,t,r,n)).reduce(fr,{})}function Ve(e){return _l(e,Ws)}Ve.propTypes={};Ve.filterProps=Ws;function ze(e){return _l(e,Hs)}ze.propTypes={};ze.filterProps=Hs;function Io(...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]?fr(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 Bp=dt("border",it),Vp=dt("borderTop",it),zp=dt("borderRight",it),_p=dt("borderBottom",it),Wp=dt("borderLeft",it),Hp=dt("borderColor"),Up=dt("borderTopColor"),Yp=dt("borderRightColor"),Gp=dt("borderBottomColor"),qp=dt("borderLeftColor"),Kp=dt("outline",it),Xp=dt("outlineColor"),Eo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ir(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Er(t,r)});return At(e,e.borderRadius,n)}return null};Eo.propTypes={};Eo.filterProps=["borderRadius"];Io(Bp,Vp,zp,_p,Wp,Hp,Up,Yp,Gp,qp,Eo,Kp,Xp);const $o=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ir(e.theme,"spacing",8),n=r=>({gap:Er(t,r)});return At(e,e.gap,n)}return null};$o.propTypes={};$o.filterProps=["gap"];const Oo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ir(e.theme,"spacing",8),n=r=>({columnGap:Er(t,r)});return At(e,e.columnGap,n)}return null};Oo.propTypes={};Oo.filterProps=["columnGap"];const Ao=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ir(e.theme,"spacing",8),n=r=>({rowGap:Er(t,r)});return At(e,e.rowGap,n)}return null};Ao.propTypes={};Ao.filterProps=["rowGap"];const Qp=We({prop:"gridColumn"}),Zp=We({prop:"gridRow"}),Jp=We({prop:"gridAutoFlow"}),ef=We({prop:"gridAutoColumns"}),tf=We({prop:"gridAutoRows"}),nf=We({prop:"gridTemplateColumns"}),rf=We({prop:"gridTemplateRows"}),of=We({prop:"gridTemplateAreas"}),sf=We({prop:"gridArea"});Io($o,Oo,Ao,Qp,Zp,Jp,ef,tf,nf,rf,of,sf);function In(e,t){return t==="grey"?t:e}const af=We({prop:"color",themeKey:"palette",transform:In}),lf=We({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:In}),cf=We({prop:"backgroundColor",themeKey:"palette",transform:In});Io(af,lf,cf);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const uf=We({prop:"width",transform:Je}),Ys=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Do[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};Ys.filterProps=["maxWidth"];const df=We({prop:"minWidth",transform:Je}),pf=We({prop:"height",transform:Je}),ff=We({prop:"maxHeight",transform:Je}),hf=We({prop:"minHeight",transform:Je});We({prop:"size",cssProperty:"width",transform:Je});We({prop:"size",cssProperty:"height",transform:Je});const mf=We({prop:"boxSizing"});Io(uf,Ys,df,pf,ff,hf,mf);const $r={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:Eo},color:{themeKey:"palette",transform:In},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:In},backgroundColor:{themeKey:"palette",transform:In},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:$o},rowGap:{style:Ao},columnGap:{style:Oo},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:Ys},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 gf(...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 yf(e,t){return typeof e=="function"?e(t):e}function bf(){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 g=Ro(o,c)||{};return p?p(i):At(i,r,d=>{let h=ho(g,u,d);return d===h&&typeof d=="string"&&(h=ho(g,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??$r;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=$p(o.breakpoints),p=Object.keys(u);let g=u;return Object.keys(c).forEach(b=>{const d=yf(c[b],o);if(d!=null)if(typeof d=="object")if(i[b])g=fr(g,e(b,d,o,i));else{const h=At({theme:o},d,m=>({[b]:m}));gf(h,d)?g[b]=t({sx:d,theme:o,nested:!0}):g=fr(g,h)}else g=fr(g,e(b,d,o,i))}),!s&&o.modularCssLayers?{"@layer sx":ia(o,la(p,g))}:ia(o,la(p,g))}return Array.isArray(r)?r.map(a):a(r)}return t}const Fn=bf();Fn.filterProps=["sx"];const vf=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??$r;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function xf(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=vf(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 Sf(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Gs(e,t=0,n=1){return Sf(e,t,n)}function wf(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(wf(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 Cf=e=>{const t=Kt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},cr=(e,t)=>{try{return Cf(e)}catch{return e}};function Fo(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 Wl(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])),Fo({type:a,values:l})}function bs(e){e=Kt(e);let t=e.type==="hsl"||e.type==="hsla"?Kt(Wl(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 Pf(e,t){const n=bs(e),r=bs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function mo(e,t){return e=Kt(e),t=Gs(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Fo(e)}function Zt(e,t,n){try{return mo(e,t)}catch{return e}}function Lo(e,t){if(e=Kt(e),t=Gs(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 Fo(e)}function Te(e,t,n){try{return Lo(e,t)}catch{return e}}function No(e,t){if(e=Kt(e),t=Gs(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 Fo(e)}function De(e,t,n){try{return No(e,t)}catch{return e}}function Hl(e,t=.15){return bs(e)>.5?Lo(e,t):No(e,t)}function Hr(e,t,n){try{return Hl(e,t)}catch{return e}}const xr={black:"#000",white:"#fff"},kf={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"},vn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},xn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Qn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Sn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},wn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Cn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ul(){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:xr.white,default:xr.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 Yl=Ul();function Gl(){return{text:{primary:xr.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:xr.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 vs=Gl();function ua(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=No(e.main,o):t==="dark"&&(e.dark=Lo(e.main,s)))}function da(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 Mf(e="light"){return e==="dark"?{main:Sn[200],light:Sn[50],dark:Sn[400]}:{main:Sn[700],light:Sn[400],dark:Sn[800]}}function Tf(e="light"){return e==="dark"?{main:vn[200],light:vn[50],dark:vn[400]}:{main:vn[500],light:vn[300],dark:vn[700]}}function Df(e="light"){return e==="dark"?{main:xn[500],light:xn[300],dark:xn[700]}:{main:xn[700],light:xn[400],dark:xn[800]}}function Rf(e="light"){return e==="dark"?{main:wn[400],light:wn[300],dark:wn[700]}:{main:wn[700],light:wn[500],dark:wn[900]}}function If(e="light"){return e==="dark"?{main:Cn[400],light:Cn[300],dark:Cn[700]}:{main:Cn[800],light:Cn[500],dark:Cn[900]}}function Ef(e="light"){return e==="dark"?{main:Qn[400],light:Qn[300],dark:Qn[700]}:{main:"#ed6c02",light:Qn[500],dark:Qn[900]}}function $f(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function qs(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,i=e.primary||Mf(t),a=e.secondary||Tf(t),l=e.error||Df(t),c=e.info||Rf(t),u=e.success||If(t),p=e.warning||Ef(t);function g(m){return o?$f(m):Pf(m,vs.text.primary)>=n?vs.text.primary:Yl.text.primary}const b=({color:m,name:C,mainShade:w=500,lightShade:x=300,darkShade:v=700})=>{if(m={...m},!m.main&&m[w]&&(m.main=m[w]),!m.hasOwnProperty("main"))throw new Error(Ot(11,C?` (${C})`:"",w));if(typeof m.main!="string")throw new Error(Ot(12,C?` (${C})`:"",JSON.stringify(m.main)));return o?(da(o,m,"light",x,r),da(o,m,"dark",v,r)):(ua(m,"light",x,r),ua(m,"dark",v,r)),m.contrastText||(m.contrastText=g(m.main)),m};let d;return t==="light"?d=Ul():t==="dark"&&(d=Gl()),Ge({common:{...xr},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:kf,contrastThreshold:n,getContrastText:g,augmentColor:b,tonalOffset:r,...d},s)}function Of(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 Af={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 Ff(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Lf=/[A-Z]|^ms/g,Nf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ql=function(t){return t.charCodeAt(1)===45},pa=function(t){return t!=null&&typeof t!="boolean"},os=Ff(function(e){return ql(e)?e:e.replace(Lf,"-$&").toLowerCase()}),fa=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Nf,function(r,o,s){return Gt={name:o,styles:s,next:Gt},o})}return Af[t]!==1&&!ql(t)&&typeof n=="number"&&n!==0?n+"px":n};function go(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 jf(e,t,n)}}var l=n;return l}function jf(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=go(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;pa(a)&&(r+=os(s)+":"+fa(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)pa(i[l])&&(r+=os(s)+":"+fa(s,i[l])+";");else{var c=go(e,t,i);switch(s){case"animation":case"animationName":{r+=os(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var ha=/label:\s*([^\s;{]+)\s*(;|$)/g,Gt;function Bf(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+=go(n,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=go(n,t,e[a]),r){var l=s;o+=l[a]}ha.lastIndex=0;for(var c="",u;(u=ha.exec(o))!==null;)c+="-"+u[1];var p=Of(o)+c;return{name:p,styles:o,next:Gt}}function Vf(e,t){return gp(e,t)}function zf(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const ma=[];function ln(e){return ma[0]=e,Bf(ma)}const Ue=typeof window<"u"?S.useLayoutEffect:S.useEffect;function _f(e){return Object.keys(e).length===0}function Kl(e=null){const t=S.useContext(hp.ThemeContext);return!t||_f(t)?e:t}const Wf=S.createContext(),vt=()=>S.useContext(Wf)??!1;function Sr(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]=Sr(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 Hf=S.createContext(void 0);function Uf(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?Sr(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Sr(o,r,t.components.mergeClassNameAndStyle):r}function Yf({props:e,name:t}){const n=S.useContext(Hf);return Uf({props:e,name:t,theme:{components:n}})}let ga=0;function Gf(e){const[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t==null&&(ga+=1,n(`mui-${ga}`))},[t]),r}const qf={...S},ya=qf.useId;function xt(e){if(ya!==void 0){const t=ya();return e??t}return Gf(e)}const Kf=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 Xf(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=Kf(t),i=Object.keys(s);function a(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function l(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function c(g,b){const d=i.indexOf(b);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(d!==-1&&typeof t[i[d]]=="number"?t[i[d]]:b)-r/100}${n})`}function u(g){return i.indexOf(g)+1<i.length?c(g,i[i.indexOf(g)+1]):a(g)}function p(g){const b=i.indexOf(g);return b===0?a(i[1]):b===i.length-1?l(i[b]):c(g,i[i.indexOf(g)+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 Qf={borderRadius:4};function Zf(e=8,t=Us({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 Jf(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 Ks(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=Xf(n),l=Zf(o);let c=Ge({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Qf,...s}},i);return c=Ip(c),c.applyStyles=Jf,c=t.reduce((u,p)=>Ge(u,p),c),c.unstable_sxConfig={...$r,...i?.unstable_sxConfig},c.unstable_sx=function(p){return Fn({sx:p,theme:this})},c}const eh=Ks();function th(e=eh){return Kl(e)}const ba=(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])})},nh=(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)},rh=(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 ss(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return nh(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,p=rh(a,l);Object.assign(o,{[u]:p}),ba(s,a,`var(${u})`,c),ba(i,a,`var(${u}, ${p})`,c)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function oh(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...c}=e,{vars:u,css:p,varsWithDefaults:g}=ss(c,t);let b=g;const d={},{[l]:h,...m}=i;if(Object.entries(m||{}).forEach(([v,P])=>{const{vars:k,css:I,varsWithDefaults:R}=ss(P,t);b=Ge(b,R),d[v]={css:I,vars:k}}),h){const{css:v,vars:P,varsWithDefaults:k}=ss(h,t);b=Ge(b,k),d[l]={css:v,vars:P}}function C(v,P){let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),v){if(k==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${i[v]?.palette?.mode||v})`]:{":root":P}};if(k)return e.defaultColorScheme===v?`:root, ${k.replace("%s",String(v))}`:k.replace("%s",String(v))}return":root"}return{vars:b,generateThemeVars:()=>{let v={...u};return Object.entries(d).forEach(([,{vars:P}])=>{v=Ge(v,P)}),v},generateStyleSheets:()=>{const v=[],P=e.defaultColorScheme||"light";function k(A,O){Object.keys(O).length&&v.push(typeof A=="string"?{[A]:{...O}}:A)}k(n(void 0,{...p}),p);const{[P]:I,...R}=d;if(I){const{css:A}=I,O=i[P]?.palette?.mode,$=!r&&O?{colorScheme:O,...A}:{...A};k(n(P,{...$}),$)}return Object.entries(R).forEach(([A,{css:O}])=>{const $=i[A]?.palette?.mode,y=!r&&$?{colorScheme:$,...O}:{...O};k(n(A,{...y}),y)}),s&&v.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)"}}),v}}}function sh(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 ih(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 ah={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=ah[t];return r?`${n}-${r}`:`${jl.generate(e)}-${t}`}function lh(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function ch(e){return Math.round(e*1e5)/1e5}const va={textTransform:"uppercase"},xa='"Roboto", "Helvetica", "Arial", sans-serif';function uh(e,t){const{fontFamily:n=xa,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,g=r/14,b=u||(m=>`${m/l*g}rem`),d=(m,C,w,x,v)=>({fontFamily:n,fontWeight:m,fontSize:b(C),lineHeight:w,...n===xa?{letterSpacing:`${ch(x/C)}em`}:{},...v,...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,va),caption:d(s,12,1.66,.4),overline:d(s,12,2.66,1,va),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 dh=.2,ph=.14,fh=.12;function Ne(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${dh})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ph})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${fh})`].join(",")}const hh=["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)],mh={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)"},gh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sa(e){return`${Math.round(e)}ms`}function yh(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function bh(e){const t={...mh,...e.easing},n={...gh,...e.duration};return{getAutoHeightDuration:yh,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:Sa(i)} ${a} ${typeof l=="string"?l:Sa(l)}`).join(",")},...e,easing:t,duration:n}}const vh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function xh(e){return kt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Xl(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];!xh(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 wa(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Sh=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 wh(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})`:mo(t,Sh(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${wa(n)})`:No(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${wa(n)})`:Lo(t,n)}})}function xs(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=qs({...s,colorSpace:c}),g=Ks(e);let b=Ge(g,{mixins:lh(g.breakpoints,r),palette:p,shadows:hh.slice(),typography:uh(p,a),transitions:bh(i),zIndex:{...vh}});return b=Ge(b,u),b=t.reduce((d,h)=>Ge(d,h),b),b.unstable_sxConfig={...$r,...u?.unstable_sxConfig},b.unstable_sx=function(h){return Fn({sx:h,theme:this})},b.toRuntimeSource=Xl,wh(b),b}function Ss(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 Ch=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ss(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ql(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Zl(e){return e==="dark"?Ch:[]}function Ph(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,i=qs({...t,colorSpace:o});return{palette:i,opacity:{...Ql(i.mode),...n},overlays:r||Zl(i.mode),...s}}function kh(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 Mh=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Th=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 Mh(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 Dh(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Y(e,t,n){!e[t]&&n&&(e[t]=n)}function ur(e){return typeof e!="string"||!e.startsWith("hsl")?e:Wl(e)}function It(e,t){`${t}Channel`in e||(e[`${t}Channel`]=cr(ur(e[t])))}function Rh(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{}},Ih=(e="mui")=>He.unstable_createGetCssVar(e);function is(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=Ph({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:i,...a}=xs({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...Ql(s),...n?.opacity},overlays:n?.overlays||Zl(s)},a}function Eh(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=kh,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,p=Object.keys(n)[0],g=r||(n.light&&p!=="light"?"light":p),b=Ih(s),{[g]:d,light:h,dark:m,...C}=n,w={...C};let x=d;if((g==="dark"&&!("dark"in n)||g==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(Ot(21,g));let v;i&&(v="oklch");const P=is(v,w,x,u,g);h&&!w.light&&is(v,w,h,void 0,"light"),m&&!w.dark&&is(v,w,m,void 0,"dark");let k={defaultColorScheme:g,...P,cssVarPrefix:s,colorSchemeSelector:l,rootSelector:c,getCssVar:b,colorSchemes:w,font:{...sh(P.typography),...P.font},spacing:Rh(u.spacing)};Object.keys(k.colorSchemes).forEach($=>{const y=k.colorSchemes[$].palette,E=M=>{const T=M.split("-"),F=T[1],L=T[2];return b(M,y[F][L])};y.mode==="light"&&(Y(y.common,"background","#fff"),Y(y.common,"onBackground","#000")),y.mode==="dark"&&(Y(y.common,"background","#000"),Y(y.common,"onBackground","#fff"));function D(M,T,F){if(v){let L;return M===Zt&&(L=`transparent ${((1-F)*100).toFixed(0)}%`),M===Te&&(L=`#000 ${(F*100).toFixed(0)}%`),M===De&&(L=`#fff ${(F*100).toFixed(0)}%`),`color-mix(in ${v}, ${T}, ${L})`}return M(T,F)}if(Dh(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){Y(y.Alert,"errorColor",D(Te,y.error.light,.6)),Y(y.Alert,"infoColor",D(Te,y.info.light,.6)),Y(y.Alert,"successColor",D(Te,y.success.light,.6)),Y(y.Alert,"warningColor",D(Te,y.warning.light,.6)),Y(y.Alert,"errorFilledBg",E("palette-error-main")),Y(y.Alert,"infoFilledBg",E("palette-info-main")),Y(y.Alert,"successFilledBg",E("palette-success-main")),Y(y.Alert,"warningFilledBg",E("palette-warning-main")),Y(y.Alert,"errorFilledColor",Ct(()=>y.getContrastText(y.error.main))),Y(y.Alert,"infoFilledColor",Ct(()=>y.getContrastText(y.info.main))),Y(y.Alert,"successFilledColor",Ct(()=>y.getContrastText(y.success.main))),Y(y.Alert,"warningFilledColor",Ct(()=>y.getContrastText(y.warning.main))),Y(y.Alert,"errorStandardBg",D(De,y.error.light,.9)),Y(y.Alert,"infoStandardBg",D(De,y.info.light,.9)),Y(y.Alert,"successStandardBg",D(De,y.success.light,.9)),Y(y.Alert,"warningStandardBg",D(De,y.warning.light,.9)),Y(y.Alert,"errorIconColor",E("palette-error-main")),Y(y.Alert,"infoIconColor",E("palette-info-main")),Y(y.Alert,"successIconColor",E("palette-success-main")),Y(y.Alert,"warningIconColor",E("palette-warning-main")),Y(y.AppBar,"defaultBg",E("palette-grey-100")),Y(y.Avatar,"defaultBg",E("palette-grey-400")),Y(y.Button,"inheritContainedBg",E("palette-grey-300")),Y(y.Button,"inheritContainedHoverBg",E("palette-grey-A100")),Y(y.Chip,"defaultBorder",E("palette-grey-400")),Y(y.Chip,"defaultAvatarColor",E("palette-grey-700")),Y(y.Chip,"defaultIconColor",E("palette-grey-700")),Y(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Y(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Y(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Y(y.LinearProgress,"primaryBg",D(De,y.primary.main,.62)),Y(y.LinearProgress,"secondaryBg",D(De,y.secondary.main,.62)),Y(y.LinearProgress,"errorBg",D(De,y.error.main,.62)),Y(y.LinearProgress,"infoBg",D(De,y.info.main,.62)),Y(y.LinearProgress,"successBg",D(De,y.success.main,.62)),Y(y.LinearProgress,"warningBg",D(De,y.warning.main,.62)),Y(y.Skeleton,"bg",v?D(Zt,y.text.primary,.11):`rgba(${E("palette-text-primaryChannel")} / 0.11)`),Y(y.Slider,"primaryTrack",D(De,y.primary.main,.62)),Y(y.Slider,"secondaryTrack",D(De,y.secondary.main,.62)),Y(y.Slider,"errorTrack",D(De,y.error.main,.62)),Y(y.Slider,"infoTrack",D(De,y.info.main,.62)),Y(y.Slider,"successTrack",D(De,y.success.main,.62)),Y(y.Slider,"warningTrack",D(De,y.warning.main,.62));const M=v?D(Te,y.background.default,.6825):Hr(y.background.default,.8);Y(y.SnackbarContent,"bg",M),Y(y.SnackbarContent,"color",Ct(()=>v?vs.text.primary:y.getContrastText(M))),Y(y.SpeedDialAction,"fabHoverBg",Hr(y.background.paper,.15)),Y(y.StepConnector,"border",E("palette-grey-400")),Y(y.StepContent,"border",E("palette-grey-400")),Y(y.Switch,"defaultColor",E("palette-common-white")),Y(y.Switch,"defaultDisabledColor",E("palette-grey-100")),Y(y.Switch,"primaryDisabledColor",D(De,y.primary.main,.62)),Y(y.Switch,"secondaryDisabledColor",D(De,y.secondary.main,.62)),Y(y.Switch,"errorDisabledColor",D(De,y.error.main,.62)),Y(y.Switch,"infoDisabledColor",D(De,y.info.main,.62)),Y(y.Switch,"successDisabledColor",D(De,y.success.main,.62)),Y(y.Switch,"warningDisabledColor",D(De,y.warning.main,.62)),Y(y.TableCell,"border",D(De,D(Zt,y.divider,1),.88)),Y(y.Tooltip,"bg",D(Zt,y.grey[700],.92))}if(y.mode==="dark"){Y(y.Alert,"errorColor",D(De,y.error.light,.6)),Y(y.Alert,"infoColor",D(De,y.info.light,.6)),Y(y.Alert,"successColor",D(De,y.success.light,.6)),Y(y.Alert,"warningColor",D(De,y.warning.light,.6)),Y(y.Alert,"errorFilledBg",E("palette-error-dark")),Y(y.Alert,"infoFilledBg",E("palette-info-dark")),Y(y.Alert,"successFilledBg",E("palette-success-dark")),Y(y.Alert,"warningFilledBg",E("palette-warning-dark")),Y(y.Alert,"errorFilledColor",Ct(()=>y.getContrastText(y.error.dark))),Y(y.Alert,"infoFilledColor",Ct(()=>y.getContrastText(y.info.dark))),Y(y.Alert,"successFilledColor",Ct(()=>y.getContrastText(y.success.dark))),Y(y.Alert,"warningFilledColor",Ct(()=>y.getContrastText(y.warning.dark))),Y(y.Alert,"errorStandardBg",D(Te,y.error.light,.9)),Y(y.Alert,"infoStandardBg",D(Te,y.info.light,.9)),Y(y.Alert,"successStandardBg",D(Te,y.success.light,.9)),Y(y.Alert,"warningStandardBg",D(Te,y.warning.light,.9)),Y(y.Alert,"errorIconColor",E("palette-error-main")),Y(y.Alert,"infoIconColor",E("palette-info-main")),Y(y.Alert,"successIconColor",E("palette-success-main")),Y(y.Alert,"warningIconColor",E("palette-warning-main")),Y(y.AppBar,"defaultBg",E("palette-grey-900")),Y(y.AppBar,"darkBg",E("palette-background-paper")),Y(y.AppBar,"darkColor",E("palette-text-primary")),Y(y.Avatar,"defaultBg",E("palette-grey-600")),Y(y.Button,"inheritContainedBg",E("palette-grey-800")),Y(y.Button,"inheritContainedHoverBg",E("palette-grey-700")),Y(y.Chip,"defaultBorder",E("palette-grey-700")),Y(y.Chip,"defaultAvatarColor",E("palette-grey-300")),Y(y.Chip,"defaultIconColor",E("palette-grey-300")),Y(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Y(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Y(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Y(y.LinearProgress,"primaryBg",D(Te,y.primary.main,.5)),Y(y.LinearProgress,"secondaryBg",D(Te,y.secondary.main,.5)),Y(y.LinearProgress,"errorBg",D(Te,y.error.main,.5)),Y(y.LinearProgress,"infoBg",D(Te,y.info.main,.5)),Y(y.LinearProgress,"successBg",D(Te,y.success.main,.5)),Y(y.LinearProgress,"warningBg",D(Te,y.warning.main,.5)),Y(y.Skeleton,"bg",v?D(Zt,y.text.primary,.13):`rgba(${E("palette-text-primaryChannel")} / 0.13)`),Y(y.Slider,"primaryTrack",D(Te,y.primary.main,.5)),Y(y.Slider,"secondaryTrack",D(Te,y.secondary.main,.5)),Y(y.Slider,"errorTrack",D(Te,y.error.main,.5)),Y(y.Slider,"infoTrack",D(Te,y.info.main,.5)),Y(y.Slider,"successTrack",D(Te,y.success.main,.5)),Y(y.Slider,"warningTrack",D(Te,y.warning.main,.5));const M=v?D(De,y.background.default,.985):Hr(y.background.default,.98);Y(y.SnackbarContent,"bg",M),Y(y.SnackbarContent,"color",Ct(()=>v?Yl.text.primary:y.getContrastText(M))),Y(y.SpeedDialAction,"fabHoverBg",Hr(y.background.paper,.15)),Y(y.StepConnector,"border",E("palette-grey-600")),Y(y.StepContent,"border",E("palette-grey-600")),Y(y.Switch,"defaultColor",E("palette-grey-300")),Y(y.Switch,"defaultDisabledColor",E("palette-grey-600")),Y(y.Switch,"primaryDisabledColor",D(Te,y.primary.main,.55)),Y(y.Switch,"secondaryDisabledColor",D(Te,y.secondary.main,.55)),Y(y.Switch,"errorDisabledColor",D(Te,y.error.main,.55)),Y(y.Switch,"infoDisabledColor",D(Te,y.info.main,.55)),Y(y.Switch,"successDisabledColor",D(Te,y.success.main,.55)),Y(y.Switch,"warningDisabledColor",D(Te,y.warning.main,.55)),Y(y.TableCell,"border",D(Te,D(Zt,y.divider,1),.68)),Y(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&&Y(y[M],"mainChannel",cr(ur(T.main))),T.light&&Y(y[M],"lightChannel",cr(ur(T.light))),T.dark&&Y(y[M],"darkChannel",cr(ur(T.dark))),T.contrastText&&Y(y[M],"contrastTextChannel",cr(ur(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(($,y)=>Ge($,y),k);const I={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Th(k),enableContrastVars:i},{vars:R,generateThemeVars:A,generateStyleSheets:O}=oh(k,I);return k.vars=R,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([$,y])=>{k[$]=y}),k.generateThemeVars=A,k.generateStyleSheets=O,k.generateSpacing=function(){return He.createSpacing(u.spacing,Us(this))},k.getColorSchemeSelector=ih(l),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=a,k.unstable_sxConfig={...$r,...u?.unstable_sxConfig},k.unstable_sx=function(y){return Fn({sx:y,theme:this})},k.toRuntimeSource=Xl,k}function Ca(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:qs({...n===!0?{}:n.palette,mode:t})})}function Jl(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 xs(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const p=xs({...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},Ca(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},Ca(p,"light",c.light)),p}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),Eh({...i,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const jo=Jl(),Un="$$material";function gn(){const e=He.useTheme(jo);return e[Un]||e}function $h(e){return f.jsx(He.GlobalStyles,{...e,defaultTheme:jo,themeId:Un})}function Oh(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 Ah=Ks();function as(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 Fh(e){return e?(t,n)=>n[e]:null}function Lh(e,t,n){e.theme=Bh(e.theme)?n:e.theme[t]||e.theme}function to(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>to(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 ec(e,r.variants,[o],n)}return r?.isProcessed?n?sn(ln(r.style),n):r.style:n?sn(ln(r),n):r}function ec(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 Nh(e={}){const{themeId:t,defaultTheme:n=Ah,rootShouldForwardProp:r=as,slotShouldForwardProp:o=as}=e;function s(a){Lh(a,t,n)}return(a,l={})=>{zf(a,k=>k.filter(I=>I!==Fn));const{name:c,slot:u,skipVariantsResolver:p,skipSx:g,overridesResolver:b=Fh(zh(u)),...d}=l,h=c&&c.startsWith("Mui")||u?"components":"custom",m=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,C=g||!1;let w=as;u==="Root"||u==="root"?w=r:u?w=o:Vh(a)&&(w=void 0);const x=Vf(a,{shouldForwardProp:w,label:jh(),...d}),v=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(R){return to(R,k,R.theme.modularCssLayers?h:void 0)};if(kt(k)){const I=Oh(k);return function(A){return I.variants?to(A,I,A.theme.modularCssLayers?h:void 0):A.theme.modularCssLayers?sn(I.style,h):I.style}}return k},P=(...k)=>{const I=[],R=k.map(v),A=[];if(I.push(s),c&&b&&A.push(function(E){const M=E.theme.components?.[c]?.styleOverrides;if(!M)return null;const T={};for(const F in M)T[F]=to(E,M[F],E.theme.modularCssLayers?"theme":void 0);return b(E,T)}),c&&!m&&A.push(function(E){const M=E.theme?.components?.[c]?.variants;return M?ec(E,M,[],E.theme.modularCssLayers?"theme":void 0):null}),C||A.push(Fn),Array.isArray(R[0])){const y=R.shift(),E=new Array(I.length).fill(""),D=new Array(A.length).fill("");let M;M=[...E,...y,...D],M.raw=[...E,...y.raw,...D],I.unshift(M)}const O=[...I,...R,...A],$=x(...O);return a.muiName&&($.muiName=a.muiName),$};return x.withConfig&&(P.withConfig=x.withConfig),P}}function jh(e,t){return void 0}function Bh(e){for(const t in e)return!1;return!0}function Vh(e){return typeof e=="string"&&e.charCodeAt(0)>96}function zh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function tc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pt=e=>tc(e)&&e!=="classes",G=Nh({themeId:Un,defaultTheme:jo,rootShouldForwardProp:pt});function _h(e){return function(n){return f.jsx($h,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Wh(){return xf}const Ee=He.unstable_memoTheme;function Ce(e){return Yf(e)}function he(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ge(e,o,n)}),r}function Hh(e){return ge("MuiSvgIcon",e)}he("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Uh=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(n)}`]};return me(o,Hh,r)},Yh=G("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}}]}))),yo=S.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:g="0 0 24 24",...b}=r,d=S.isValidElement(o)&&o.type==="svg",h={...r,color:i,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:g,hasSvgAsChild:d},m={};u||(m.viewBox=g);const C=Uh(h);return f.jsxs(Yh,{as:a,className:de(C.root,s),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...m,...b,...d&&o.props,ownerState:h,children:[d?o.props.children:o,p?f.jsx("title",{children:p}):null]})});yo.muiName="SvgIcon";function $e(e,t){function n(r,o){return f.jsx(yo,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=yo.muiName,S.memo(S.forwardRef(n))}function nc(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 no(e,t){return S.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 ws(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}=S.useRef(t!==void 0),[i,a]=S.useState(n),l=s?t:i,c=S.useCallback(u=>{s||a(u)},[]);return[l,c]}function ue(e){const t=S.useRef(e);return Ue(()=>{t.current=e}),S.useRef((...n)=>(0,t.current)(...n)).current}function ke(...e){const t=S.useRef(void 0),n=S.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 S.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Gh(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function rc(e,t){if(!e)return t;function n(i,a){const l={};return Object.keys(a).forEach(c=>{Gh(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 Xs=$e(f.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),qh=2,Kh=24,Xh=(e,t,n)=>Math.min(Math.max(e+t,1),Math.min(n,Kh)),cn=16,Qh=cn/2;function Zh(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}const oc=240;function Jh(e,t,n=oc){const[r,o]=X.useState(0);return X.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]),sc(t,r,n)}function sc(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 em({tiles:e,columns:t,keyOf:n,renderTile:r,minTilePx:o,rowGapPx:s=cn}){const i=X.useRef(null),[a,l]=X.useState(0);X.useEffect(()=>{const u=i.current;if(o===void 0||!u||typeof ResizeObserver>"u")return;const p=new ResizeObserver(([g])=>l(g?.contentRect.width??0));return p.observe(u),()=>p.disconnect()},[o]);const c=o===void 0?1:sc(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:Zh(u.colspan===void 0&&c>1?{...u,colspan:c}:u,t)}},children:r(u,p)},n(u,p)))})}const Bo=$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=X.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(Bo,{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 tm({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 nm=$e(f.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}));function rm({label:e,onClick:t,disabled:n}){return f.jsx(W.Button,{variant:"contained",color:"primary",startIcon:f.jsx(Xs,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function om({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}const ac=$e(f.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),Or="120ms",Ar={"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},sm=()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches?"auto":"smooth",lc={"@media (hover: none)":{opacity:1}},im=e=>e.palette.mode==="dark"?e.palette.error.main:e.palette.error.dark;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 cc="72ch",Yn=e=>e.replace(/^1px solid /,""),Qs=(e,t)=>`color-mix(in srgb, ${Yn(e)}, ${t} 25%)`,am=$e(f.jsx("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})),lm=$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"})),cm=$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"})),um=$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")]),uc=$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"})),dm=$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"})),pm=$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 fm(e){const t=e.replace(/_+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function dc({chart:e}){const t={fontSize:16};switch(e){case"bar_chart":return f.jsx(am,{sx:t});case"line_chart":case"sparkline":return f.jsx(dm,{sx:t});case"scatter_chart":return f.jsx(um,{sx:t});case"shape_map":case"segment_map":return f.jsx(lm,{sx:t});case"big_value":return f.jsx(cm,{sx:t});default:return f.jsx(pm,{sx:t})}}function hm({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,g=X.useId(),b=t.trim().toLowerCase(),d=X.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),m=X.useMemo(()=>new Map(e.flatMap(P=>P.entries).map((P,k)=>[P.key,`${g}-${k}`])),[e,g]),C=P=>m.get(P)??`${g}-none`,w=h.some(P=>P.key===r)?r:void 0,x=P=>{o(P),window.requestAnimationFrame(()=>window.document.getElementById(C(P))?.scrollIntoView({block:"nearest"}))},v=P=>{if(h.length===0)return;const k=h.findIndex(R=>R.key===w),I=k===-1?P===1?0:h.length-1:Math.min(h.length-1,Math.max(0,k+P));x(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(),v(1);else if(P.key==="ArrowUp")P.preventDefault(),v(-1);else if(P.key==="Enter"){const k=w??h[0]?.key;if(k===void 0)return;P.preventDefault(),s(k)}},inputProps:{"aria-label":"Search views",role:"combobox","aria-controls":g,"aria-expanded":!0,...w!==void 0?{"aria-activedescendant":C(w)}:{}},InputProps:{startAdornment:f.jsx(W.InputAdornment,{position:"start",children:f.jsx(uc,{sx:{fontSize:18,color:"text.secondary"}})})}})}),f.jsxs(W.Box,{id:g,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:C(k.key),role:"option","aria-selected":I,"aria-label":`${k.title} (${k.name})`,onClick:()=>{c||x(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(dc,{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 pc="document.malloy",fc=e=>e.slice(0,e.lastIndexOf("/")+1),hc=(e,t)=>new URL(e,`https://malloy.invalid/${fc(t)}`).pathname.slice(1);function mc(e,t){const n=fc(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 mm(e,t,n,r=pc,o=[n]){return e.sources.some(s=>s.base===t)?!0:e.imports.some(s=>s.kind==="names"?s.names.includes(t):o.includes(hc(s.from,r)))}function gm(e,t,n,r=pc,o=[n]){const{imports:s}=e;if(mm(e,t,n,r,o))return s;const i=s.findIndex(a=>a.kind==="names"&&o.includes(hc(a.from,r)));return i<0?[...s,{kind:"names",names:[t],from:mc(n,r)}]:s.map((a,l)=>l===i&&a.kind==="names"?{...a,names:[...a.names,t]}:a)}const ym=$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"})),bm=$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"})),vm=600,Pa=()=>typeof IntersectionObserver>"u";function xm(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 Sm(e=vm){const[t,n]=X.useState(Pa),r=X.useRef(t),o=X.useRef(null),s=X.useCallback(i=>{if(o.current?.disconnect(),o.current=null,!i||r.current||Pa())return;const a=i.getBoundingClientRect(),l=xm(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(g=>g.isIntersecting)&&(r.current=!0,u.disconnect(),n(!0))},{root:l,rootMargin:`${e}px 0px`});u.observe(i),o.current=u},[e]);return X.useEffect(()=>()=>o.current?.disconnect(),[]),X.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 wm(e){const t=Cm(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 Cm(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 Pm(e,t){if(e==null||e==="")return;const n=o=>`'${bc(o)}'`;switch(t===void 0?km(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=ka(e);return o&&`@${o}`}case"timestamp":{const o=ka(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 km(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 ka(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 Ln="malloy-publisher.report-draft:",Nn={storage:()=>window.localStorage};function Mm(e){const{server:t,environmentName:n,packageName:r,versionId:o,path:s}=e;return`${t}|${n}/${r}@${o??""}/${s}`}function Tm(e){if(typeof e=="string"){ro(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=Nn.storage(),l=[];for(let c=0;c<a.length;c++){const u=a.key(c);if(!u?.startsWith(Ln))continue;const p=u.slice(Ln.length),g=p.indexOf("|");if(g===-1)continue;const[b,d]=[p.slice(0,g),p.slice(g+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 Dm(){try{const e=`${Ln}probe`;return Nn.storage().setItem(e,"1"),Nn.storage().removeItem(e),!0}catch{return!1}}function Rm(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 Im(e){try{const t=Nn.storage().getItem(Ln+e);if(!t)return;const n=JSON.parse(t);return n?.v===1&&n.document?n:void 0}catch{return}}function Em(e,t){try{return Nn.storage().setItem(Ln+e,JSON.stringify(t)),!0}catch{return!1}}function ro(e){try{Nn.storage().removeItem(Ln+e)}catch{}}function ls(e,t){const n=e;for(const r of Object.keys(n))delete n[r];Object.assign(n,structuredClone(t))}function $m(e,t,n){const[r,o]=X.useState(),[s,i]=X.useState(),[a,l]=X.useState(!1),c=X.useRef(void 0),u=X.useRef(void 0),p=X.useRef(!1),g=Rm(n),b=X.useRef(t);b.current=t;const d=X.useRef(!1);X.useEffect(()=>{if(e===void 0||d.current)return;d.current=!0;const v=Im(e);if(!v)return;const P=b.current;if(JSON.stringify(v.document)===JSON.stringify(P.document)){ro(e);return}if(v.base!==g){c.current=v,o({savedAt:v.savedAt,stale:!0,pending:!0});return}P.update(k=>ls(k,v.document)),u.current=JSON.stringify(v.document),p.current=!0,o({savedAt:v.savedAt,stale:!1,pending:!1})},[e]);const{document:h,dirty:m}=t;X.useEffect(()=>{if(e===void 0||!d.current||c.current&&!m)return;if(c.current&&(c.current=void 0,o(void 0)),u.current!==void 0){const P=JSON.stringify(h);p.current?P===u.current&&(p.current=!1):P!==u.current&&(u.current=void 0,o(void 0))}if(!m){ro(e),i(void 0),l(!1);return}const v=Date.now();Em(e,{v:1,document:h,base:g,savedAt:v})?(i(v),l(!1)):(i(void 0),l(!0))},[e,h,m,g]);const C=X.useCallback(()=>{const v=c.current;v&&(c.current=void 0,b.current.update(P=>ls(P,v.document)),u.current=JSON.stringify(v.document),p.current=!0,o(P=>P&&{...P,pending:!1}))},[]),w=X.useCallback(()=>{c.current||(u.current=void 0,o(void 0))},[]),x=X.useCallback(()=>{if(c.current&&e!==void 0){c.current=void 0,ro(e),o(void 0);return}const v=b.current;v.update(P=>ls(P,v.saved)),u.current=void 0,o(void 0)},[e]);return{keptAt:s,keeping:!a,restored:r,dismissRestored:w,discard:x,restoreOffered:C}}const vc=(e,t)=>({...t,...e}),xc={emit:()=>{},listening:!1};function bo(e,t){return t?{listening:!0,emit:n=>{try{t(vc(n,e))}catch{}}}:xc}function Om(e,t){const n=X.useRef(t);n.current=t;const r=t!==void 0,{path:o,layout:s}=e;return X.useMemo(()=>bo({path:o,...s?{layout:s}:{}},r?i=>n.current?.(i):void 0),[o,s,r])}const Sc=X.createContext(xc),Zs=()=>X.useContext(Sc);function wc(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"}var oo={exports:{}},Am=oo.exports,Ma;function Fm(){return Ma||(Ma=1,(function(e,t){(function(n,r){e.exports=r()})(Am,(function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",u="week",p="month",g="quarter",b="year",d="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var M=["th","st","nd","rd"],T=D%100;return"["+D+(M[(T-20)%10]||M[T]||M[0])+"]"}},x=function(D,M,T){var F=String(D);return!F||F.length>=M?D:""+Array(M+1-F.length).join(T)+D},v={s:x,z:function(D){var M=-D.utcOffset(),T=Math.abs(M),F=Math.floor(T/60),L=T%60;return(M<=0?"+":"-")+x(F,2,"0")+":"+x(L,2,"0")},m:function D(M,T){if(M.date()<T.date())return-D(T,M);var F=12*(T.year()-M.year())+(T.month()-M.month()),L=M.clone().add(F,p),j=T-L<0,H=M.clone().add(F+(j?-1:1),p);return+(-(F+(T-L)/(j?L-H:H-L))||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:g}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},P="en",k={};k[P]=w;var I="$isDayjsObject",R=function(D){return D instanceof y||!(!D||!D[I])},A=function D(M,T,F){var L;if(!M)return P;if(typeof M=="string"){var j=M.toLowerCase();k[j]&&(L=j),T&&(k[j]=T,L=j);var H=M.split("-");if(!L&&H.length>1)return D(H[0])}else{var Q=M.name;k[Q]=M,L=Q}return!F&&L&&(P=L),L||!F&&P},O=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)},$=v;$.l=A,$.i=R,$.w=function(D,M){return O(D,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var y=(function(){function D(T){this.$L=A(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(F){var L=F.date,j=F.utc;if(L===null)return new Date(NaN);if($.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var H=L.match(m);if(H){var Q=H[2]-1||0,q=(H[7]||"0").substring(0,3);return j?new Date(Date.UTC(H[1],Q,H[3]||1,H[4]||0,H[5]||0,H[6]||0,q)):new Date(H[1],Q,H[3]||1,H[4]||0,H[5]||0,H[6]||0,q)}}return new Date(L)})(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 $},M.isValid=function(){return this.$d.toString()!==h},M.isSame=function(T,F){var L=O(T);return this.startOf(F)<=L&&L<=this.endOf(F)},M.isAfter=function(T,F){return O(T)<this.startOf(F)},M.isBefore=function(T,F){return this.endOf(F)<O(T)},M.$g=function(T,F,L){return $.u(T)?this[F]:this.set(L,T)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(T,F){var L=this,j=!!$.u(F)||F,H=$.p(T),Q=function(z,U){var ne=$.w(L.$u?Date.UTC(L.$y,U,z):new Date(L.$y,U,z),L);return j?ne:ne.endOf(c)},q=function(z,U){return $.w(L.toDate()[z].apply(L.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(U)),L)},se=this.$W,re=this.$M,B=this.$D,J="set"+(this.$u?"UTC":"");switch(H){case b:return j?Q(1,0):Q(31,11);case p:return j?Q(1,re):Q(0,re+1);case u:var ee=this.$locale().weekStart||0,K=(se<ee?se+7:se)-ee;return Q(j?B-K:B+(6-K),re);case c:case d:return q(J+"Hours",0);case l:return q(J+"Minutes",1);case a:return q(J+"Seconds",2);case i:return q(J+"Milliseconds",3);default:return this.clone()}},M.endOf=function(T){return this.startOf(T,!1)},M.$set=function(T,F){var L,j=$.p(T),H="set"+(this.$u?"UTC":""),Q=(L={},L[c]=H+"Date",L[d]=H+"Date",L[p]=H+"Month",L[b]=H+"FullYear",L[l]=H+"Hours",L[a]=H+"Minutes",L[i]=H+"Seconds",L[s]=H+"Milliseconds",L)[j],q=j===c?this.$D+(F-this.$W):F;if(j===p||j===b){var se=this.clone().set(d,1);se.$d[Q](q),se.init(),this.$d=se.set(d,Math.min(this.$D,se.daysInMonth())).$d}else Q&&this.$d[Q](q);return this.init(),this},M.set=function(T,F){return this.clone().$set(T,F)},M.get=function(T){return this[$.p(T)]()},M.add=function(T,F){var L,j=this;T=Number(T);var H=$.p(F),Q=function(re){var B=O(j);return $.w(B.date(B.date()+Math.round(re*T)),j)};if(H===p)return this.set(p,this.$M+T);if(H===b)return this.set(b,this.$y+T);if(H===c)return Q(1);if(H===u)return Q(7);var q=(L={},L[a]=r,L[l]=o,L[i]=n,L)[H]||1,se=this.$d.getTime()+T*q;return $.w(se,this)},M.subtract=function(T,F){return this.add(-1*T,F)},M.format=function(T){var F=this,L=this.$locale();if(!this.isValid())return L.invalidDate||h;var j=T||"YYYY-MM-DDTHH:mm:ssZ",H=$.z(this),Q=this.$H,q=this.$m,se=this.$M,re=L.weekdays,B=L.months,J=L.meridiem,ee=function(U,ne,te,V){return U&&(U[ne]||U(F,j))||te[ne].slice(0,V)},K=function(U){return $.s(Q%12||12,U,"0")},z=J||function(U,ne,te){var V=U<12?"AM":"PM";return te?V.toLowerCase():V};return j.replace(C,(function(U,ne){return ne||(function(te){switch(te){case"YY":return String(F.$y).slice(-2);case"YYYY":return $.s(F.$y,4,"0");case"M":return se+1;case"MM":return $.s(se+1,2,"0");case"MMM":return ee(L.monthsShort,se,B,3);case"MMMM":return ee(B,se);case"D":return F.$D;case"DD":return $.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return ee(L.weekdaysMin,F.$W,re,2);case"ddd":return ee(L.weekdaysShort,F.$W,re,3);case"dddd":return re[F.$W];case"H":return String(Q);case"HH":return $.s(Q,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return z(Q,q,!0);case"A":return z(Q,q,!1);case"m":return String(q);case"mm":return $.s(q,2,"0");case"s":return String(F.$s);case"ss":return $.s(F.$s,2,"0");case"SSS":return $.s(F.$ms,3,"0");case"Z":return H}return null})(U)||H.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(T,F,L){var j,H=this,Q=$.p(F),q=O(T),se=(q.utcOffset()-this.utcOffset())*r,re=this-q,B=function(){return $.m(H,q)};switch(Q){case b:j=B()/12;break;case p:j=B();break;case g:j=B()/3;break;case u:j=(re-se)/6048e5;break;case c:j=(re-se)/864e5;break;case l:j=re/o;break;case a:j=re/r;break;case i:j=re/n;break;default:j=re}return L?j:$.a(j)},M.daysInMonth=function(){return this.endOf(p).$D},M.$locale=function(){return k[this.$L]},M.locale=function(T,F){if(!T)return this.$L;var L=this.clone(),j=A(T,F,!0);return j&&(L.$L=j),L},M.clone=function(){return $.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})(),E=y.prototype;return O.prototype=E,[["$ms",s],["$s",i],["$m",a],["$H",l],["$W",c],["$M",p],["$y",b],["$D",d]].forEach((function(D){E[D[1]]=function(M){return this.$g(M,D[0],D[1])}})),O.extend=function(D,M){return D.$i||(D(M,y,O),D.$i=!0),O},O.locale=A,O.isDayjs=R,O.unix=function(D){return O(1e3*D)},O.en=k[P],O.Ls=k,O.p={},O}))})(oo)),oo.exports}var Lm=Fm();const Re=Nt(Lm);var so={exports:{}},Nm=so.exports,Ta;function jm(){return Ta||(Ta=1,(function(e,t){(function(n,r){e.exports=r()})(Nm,(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 m={date:h,utc:!0,args:arguments};return new i(m)},l.utc=function(h){var m=a(this.toDate(),{locale:this.$L,utc:!0});return h?m.add(this.utcOffset(),n):m},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,m){var C=this.$utils().u;if(C(h))return this.$u?0:C(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],A=60*+I[1]+ +I[2];return A===0?0:R==="+"?A:-A})(h),h===null))return this;var w=Math.abs(h)<=16?60*h:h;if(w===0)return this.utc(m);var x=this.clone();if(m)return x.$offset=w,x.$u=!1,x;var v=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(x=this.local().add(w+v,n)).$offset=w,x.$x.$localOffset=v,x};var g=l.format;l.format=function(h){var m=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,m)},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,m,C){if(h&&this.$u===h.$u)return d.call(this,h,m,C);var w=this.local(),x=a(h).local();return d.call(w,x,m,C)}}}))})(so)),so.exports}var Bm=jm();const Js=Nt(Bm);Re.extend(Js);function Yt(e){return(e??"").startsWith("filter<")}function Vm(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 ei(e){const t=e.filter(n=>n.trim()!=="");return t.length===0?"":tt.StringFilterExpression.unparse({operator:"=",values:[...t]})}function Cc(e){if(e.trim()==="")return[];const{parsed:t}=tt.StringFilterExpression.parse(e);return kc(t)?t.values:[e]}function Pc(e){return e===void 0||e.trim()===""?!0:kc(tt.StringFilterExpression.parse(e).parsed)}function kc(e){return e!==null&&tt.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function zm(e){return tt.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function Mc(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 _m(e,t){return tt.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function Tc(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 wr=[{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 Wm(e){const t=wr.find(n=>n.key===e);return t?tt.TemporalFilterExpression.unparse(t.clause):void 0}function Dc(e){const t=e.trim();if(t==="")return;const{parsed:n}=tt.TemporalFilterExpression.parse(t);if(n!==null)for(const r of wr){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 Hm=/^\d{4}-\d{2}-\d{2}$/;function Um(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 Rc(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=Da(n.fromMoment),o=Da(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 Da(e){return e.moment==="literal"&&Hm.test(e.literal)?e.literal:void 0}const Ym="self";function Ic(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(Ra)).filter(Ra):[]}function Ec(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function $c(e){return e.tag?.tag("drill")?.text("given")??e.name}function Vo(e){if(typeof e=="string"){const t=ei([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 Oc(e){return e instanceof Date?Vo(e)??"":String(e)}function Gm(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=Ic(t);if(n.length===0)return;const r=Vo(e.value);if(r!==void 0)return{to:n,given:$c(t),value:r,rawValue:e.value,label:Oc(e.value)}}function Ra(e){return typeof e=="string"&&e!==""}function Ac(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)?ei([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:Vo(e)}function Fc({declaredTypes:e,setGiven:t,documentName:n}){const r=Zs(),o=X.useMemo(()=>{const l=new Map;for(const c of e.keys())l.has(c.toLowerCase())||l.set(c.toLowerCase(),c);return l},[e]),s=X.useCallback(l=>e.has(l)?l:o.get(l.toLowerCase()),[e,o]),i=X.useCallback(l=>s(l)!==void 0,[s]),a=X.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),g=Ac(c,p);if(g===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,g),r.emit({type:"report.drill",to:"self",outcome:"resolved"})},[e,n,s,t,r]);return{resolveGiven:s,canSelf:i,onSelf:a}}function Lc(e,t){if(e!=null){if(e instanceof Date)return ti(e,t);if(!Array.isArray(e))return String(e)}}function qm(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 Km=/^(\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 Nc(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 Xm(e,t=!1){const n=Nc(e);if(n==="")return;const r=Km.exec(n);if(!r)return;const[,o,s,i,a,l,c,u,p]=r,g={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(g.year,g.month-1,g.day,g.hour,g.minute,g.second,g.milli),d=new Date(b);if(!(d.getUTCFullYear()===g.year&&d.getUTCMonth()===g.month-1&&d.getUTCDate()===g.day&&d.getUTCHours()===g.hour&&d.getUTCMinutes()===g.minute&&d.getUTCSeconds()===g.second)||p!==void 0&&a===void 0)return;const m=Qm(p);if(m===void 0)return;const C=new Date(b-m*6e4);if(!(t&&p!==void 0&&C.getUTCDate()!==g.day))return C}function Qm(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 jc(e){return!Zm.has(e??"")}const Zm=new Set(["boolean","number","date","timestamp","timestamptz"]);function Bc(e,t){if(t===""&&!jc(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=Nc(t);return Xm(n,e==="date")??n}default:return t}}function io(e,t){const n={};for(const[r,o]of e){const s=Lc(o,t.get(r));s!==void 0&&(n[r]=s)}return n}function ti(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 ni(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?ti(i,t.get(s)):i));return o}function ri(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?ti(i,void 0):i);return o}function Ia(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,Bc(t.get(r),o));return n}function cs(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 Ea(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function Jm(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}function Ur(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function Vc({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:s}){const i=X.useMemo(()=>Ia(t??{},e),[e,JSON.stringify(t)]),a=X.useRef(null),l=X.useRef(null),c=X.useRef({documentKey:o,params:n}),u=y=>y!==null&&Jm(n??{},y,e);u(a.current)&&(l.current=null),(c.current.documentKey!==o||!Ur(n??{},c.current.params??{})&&!u(a.current)&&!u(l.current))&&(c.current={documentKey:o,params:n});const p=c.current.params,g=JSON.stringify(t),b=JSON.stringify(p),d=X.useMemo(()=>Ia({...t??{},...p??{}},e),[e,g,b]),h=X.useMemo(()=>JSON.stringify([o??null,Ea(t),Ea(p)]),[o,g,b]),[m,C]=X.useState(null),w=m?.key===h?m:null;X.useEffect(()=>{m!==null&&m.key!==h&&C(null)},[m,h]);const x=X.useMemo(()=>cs(w?.draft??d,e),[w,d,e]),v=X.useMemo(()=>cs(w?.applied??d,e),[w,d,e]),P=X.useCallback(y=>y?.key===h?y:{key:h,draft:d,applied:d},[h,d]),k=X.useMemo(()=>io(v,e),[v,e]);a.current===null&&(a.current=k),X.useEffect(()=>{r&&(Ur(a.current??{},k)||(l.current=a.current,a.current=k,r(k)))},[k,r]);const I=X.useCallback((y,E)=>{C(D=>{const M=P(D),T=new Map(M.draft);return E===null?T.delete(y):T.set(y,E),{key:M.key,draft:T,applied:s?T:M.applied}})},[s,P]),R=X.useCallback(()=>{C(y=>({key:P(y).key,draft:i,applied:i}))},[P,i]),A=X.useCallback(()=>{C(y=>{const E=P(y);return{key:E.key,draft:E.draft,applied:E.draft}})},[P]),O=X.useMemo(()=>{if(s)return!1;if(x.size!==v.size)return!0;for(const[y,E]of x){const D=v.get(y);if(E instanceof Date&&D instanceof Date){if(E.getTime()!==D.getTime())return!0}else if(Array.isArray(E)&&Array.isArray(D)){if(String(E)!==String(D))return!0}else if(E!==D)return!0}return!1},[s,x,v]),$=X.useMemo(()=>{const y=io(cs(i,e),e);return Ur(io(x,e),y)&&Ur(k,y)},[i,x,k,e]);return{draft:x,applied:v,setGiven:I,reset:R,apply:A,pending:O,atStart:$}}const zc="You don't have access to this data";function eg(e){return(e??[]).filter(t=>t.kind==="definition"&&!t.restricted).map(t=>t.text??"").join(`
17
+
18
+ `)}function oi(e,t){return e===""?t:`${e}
19
+
20
+ ${t}`}function tg(e){return e?.status===403}const un=1e3,si=200;function _c(e){const t=e.split(".");return t[t.length-1]}function ng(e,t,n){const r=(n===void 0?un:si)+1;return`run: ${e} -> {
21
+ group_by: ${t}
22
+ `+(n===void 0?"":` where: ${rg(t,n)}
23
+ `)+` order_by: ${_c(t)} asc
24
+ limit: ${r}
25
+ }`}function rg(e,t){return`strpos(lower(${e}::string), ${og(t.toLowerCase())}) > 0`}function og(e){return`'${e.replace(/[\u0000-\u001f\u007f]/g,"").replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}function sg(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=ri(ni(t.values,t.declaredTypes,n),ig(t),n);return Object.keys(r).length>0?r:void 0}function ig(e){if(e.host)return Object.fromEntries(Object.entries(e.host).filter(([t])=>!e.declaredTypes.has(t)))}function Wc(e,t,n,r,o,s,i){const{apiClients:a}=Se.useServer(),l=X.useMemo(()=>r.filter(w=>w.name!==void 0&&(w.control==="select"||w.control==="multiselect")&&(w.suggest?.query!==void 0||w.suggest?.source!==void 0&&w.suggest?.dimension!==void 0)),[r]),c=l.map(w=>{const x=sg(w,s),v=w.suggest??{},P=[e,t,o,n,w.name,v.query,v.source,v.dimension,x===void 0?null:JSON.stringify(x),...i===void 0?[]:[i]];return{spec:w,identity:P,run:async(I,R)=>{const A=v.query!==void 0,O=await a.models.executeQueryModel(e,t,n,A&&i===void 0?{queryName:v.query,compactJson:!0,versionId:o,givens:x}:{query:oi(i??"",A?`run: ${v.query}`:ng(v.source,v.dimension,I)),compactJson:!0,versionId:o,givens:x},void 0,{signal:R});return ag(O.data.result,v.dimension===void 0?void 0:_c(v.dimension),A?{limit:un,cutOffAt:un}:{limit:I===void 0?un:si})},searchable:v.query===void 0}}),u=Hn.useQueries({queries:c.map(({identity:w,run:x})=>({queryKey:["givenSuggest",...w],enabled:n!==void 0,staleTime:300*1e3,refetchOnWindowFocus:!1,queryFn:({signal:v})=>x(void 0,v)}))}),p=X.useMemo(()=>{const w=new Map;return l.forEach((x,v)=>{const P=u[v]?.data;x.name&&P&&w.set(x.name,P.values)}),w},[l,JSON.stringify(u.map(w=>w.data))]),g=X.useMemo(()=>{const w=new Set;return l.forEach((x,v)=>{x.name&&u[v]?.isError&&w.add(x.name)}),w},[l,u.map(w=>w.isError).join("|")]),b=u.map(w=>!!w.data?.truncated).join("|"),d=X.useMemo(()=>{const w=new Set;return l.forEach((x,v)=>{x.name&&u[v]?.data?.truncated&&w.add(x.name)}),w},[l,b]),h=JSON.stringify(c.map(w=>w.identity)),m=X.useRef(c);m.current=c;const C=X.useMemo(()=>{const w=new Map;return c.forEach(({spec:x,identity:v,searchable:P},k)=>{!x.name||!P||!d.has(x.name)||w.set(x.name,{key:["givenSuggestSearch",...v],run:(I,R)=>m.current[k].run(I,R)})}),w},[h,d]);return{options:p,isLoading:u.some(w=>w.isLoading),failed:g,truncated:d,search:C}}function ag(e,t,{limit:n,cutOffAt:r}){const o=lg(e);return{values:cg(o.slice(0,n),t),truncated:r===void 0?o.length>n:o.length>=r}}function lg(e){if(!e)return[];let t;try{t=JSON.parse(e)}catch{throw new Error("Suggest query returned a result that is not JSON.")}if(!Array.isArray(t))throw new Error("Suggest query returned JSON that is not a list of rows.");return t}function cg(e,t){const n=[],r=new Set;for(const o of e){if(o===null||typeof o!="object")continue;const s=o,i=Object.keys(s),a=t!==void 0&&Object.prototype.hasOwnProperty.call(s,t)?t:i[0],l=a===void 0?void 0:s[a];if(l==null)continue;const c=String(l);r.has(c)||(r.add(c),n.push(c))}return n}function ug({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:g,hostGivens:b}){const d=X.useMemo(()=>new Map(e.filter(R=>R.name!==void 0).map(R=>[R.name,R.type])),[e]),h=X.useCallback(R=>{t&&o?.(R,Array.from(d.keys()))},[t,o,d]),m=Vc({declaredTypes:d,startingValues:n,params:r,onParamsChange:t?h:void 0,documentKey:s,autorun:i}),{options:C,isLoading:w,failed:x,truncated:v,search:P}=Wc(a,l,c,e,u,{values:m.applied,declaredTypes:d,...b?{host:b}:{}},g),{canSelf:k,onSelf:I}=Fc({declaredTypes:d,setGiven:m.setGiven,documentName:p});return{...m,declaredTypes:d,options:C,optionsLoading:w,optionsFailed:x,optionsTruncated:v,optionSearch:P,canSelf:k,onSelf:I,panel:{givens:e,values:m.draft,onChange:m.setGiven,onReset:m.reset,canReset:!m.atStart,options:C,optionsLoading:w,optionsFailed:x,optionsTruncated:v,optionSearch:P,apply:i?void 0:{onApply:m.apply,pending:m.pending}}}}const dg=$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 N(){return N=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},N.apply(null,arguments)}var ao={exports:{}},pg=ao.exports,$a;function fg(){return $a||($a=1,(function(e,t){(function(n,r){e.exports=r()})(pg,(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 g=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),b=this.diff(g,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)}}}))})(ao)),ao.exports}var hg=fg();const mg=Nt(hg);var lo={exports:{}},gg=lo.exports,Oa;function yg(){return Oa||(Oa=1,(function(e,t){(function(n,r){e.exports=r()})(gg,(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(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(C){this[m]=+C}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=(function(C){if(!C||C==="Z")return 0;var w=C.match(/([+-]|\d\d)/g),x=60*w[1]+(+w[2]||0);return x===0?0:w[0]==="+"?-x:x})(m)}],g=function(m){var C=l[m];return C&&(C.indexOf?C:C.s.concat(C.f))},b=function(m,C){var w,x=l.meridiem;if(x){for(var v=1;v<=24;v+=1)if(m.indexOf(x(v,0,C))>-1){w=v>12;break}}else w=m===(C?"pm":"PM");return w},d={A:[a,function(m){this.afternoon=b(m,!1)}],a:[a,function(m){this.afternoon=b(m,!0)}],Q:[o,function(m){this.month=3*(m-1)+1}],S:[o,function(m){this.milliseconds=100*+m}],SS:[s,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],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(m){var C=l.ordinal,w=m.match(/\d+/);if(this.day=w[0],C)for(var x=1;x<=31;x+=1)C(x).replace(/\[|\]/g,"")===m&&(this.day=x)}],w:[i,u("week")],ww:[s,u("week")],M:[i,u("month")],MM:[s,u("month")],MMM:[a,function(m){var C=g("months"),w=(g("monthsShort")||C.map((function(x){return x.slice(0,3)}))).indexOf(m)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[a,function(m){var C=g("months").indexOf(m)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(m){this.year=c(m)}],YYYY:[/\d{4}/,u("year")],Z:p,ZZ:p};function h(m){var C,w;C=m,w=l&&l.formats;for(var x=(m=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(O,$,y){var E=y&&y.toUpperCase();return $||w[y]||n[y]||w[E].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,M,T){return M||T.slice(1)}))}))).match(r),v=x.length,P=0;P<v;P+=1){var k=x[P],I=d[k],R=I&&I[0],A=I&&I[1];x[P]=A?{regex:R,parser:A}:k.replace(/^\[|\]$/g,"")}return function(O){for(var $={},y=0,E=0;y<v;y+=1){var D=x[y];if(typeof D=="string")E+=D.length;else{var M=D.regex,T=D.parser,F=O.slice(E),L=M.exec(F)[0];T.call($,L),O=O.replace(L,"")}}return(function(j){var H=j.afternoon;if(H!==void 0){var Q=j.hours;H?Q<12&&(j.hours+=12):Q===12&&(j.hours=0),delete j.afternoon}})($),$}}return function(m,C,w){w.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(c=m.parseTwoDigitYear);var x=C.prototype,v=x.parse;x.parse=function(P){var k=P.date,I=P.utc,R=P.args;this.$u=I;var A=R[1];if(typeof A=="string"){var O=R[2]===!0,$=R[3]===!0,y=O||$,E=R[2];$&&(E=R[2]),l=this.$locale(),!O&&E&&(l=w.Ls[E]),this.$d=(function(F,L,j,H){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*F);var Q=h(L)(F),q=Q.year,se=Q.month,re=Q.day,B=Q.hours,J=Q.minutes,ee=Q.seconds,K=Q.milliseconds,z=Q.zone,U=Q.week,ne=new Date,te=re||(q||se?1:ne.getDate()),V=q||ne.getFullYear(),Z=0;q&&!se||(Z=se>0?se-1:ne.getMonth());var ie,oe=B||0,ce=J||0,ae=ee||0,fe=K||0;return z?new Date(Date.UTC(V,Z,te,oe,ce,ae,fe+60*z.offset*1e3)):j?new Date(Date.UTC(V,Z,te,oe,ce,ae,fe)):(ie=new Date(V,Z,te,oe,ce,ae,fe),U&&(ie=H(ie).week(U).toDate()),ie)}catch{return new Date("")}})(k,A,I,w),this.init(),E&&E!==!0&&(this.$L=this.locale(E).$L),y&&k!=this.format(A)&&(this.$d=new Date("")),l={}}else if(A instanceof Array)for(var D=A.length,M=1;M<=D;M+=1){R[1]=A[M-1];var T=w.apply(this,R);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}M===D&&(this.$d=new Date(""))}else v.call(this,P)}}}))})(lo)),lo.exports}var bg=yg();const vg=Nt(bg);var co={exports:{}},xg=co.exports,Aa;function Sg(){return Aa||(Aa=1,(function(e,t){(function(n,r){e.exports=r()})(xg,(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,g){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,d,h){var m=h&&h.toUpperCase();return d||g[h]||n[h]||g[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,w,x){return w||x.slice(1)}))}))})(l,c===void 0?{}:c);return a.call(this,u)}}}))})(co)),co.exports}var wg=Sg();const Cg=Nt(wg);var uo={exports:{}},Pg=uo.exports,Fa;function kg(){return Fa||(Fa=1,(function(e,t){(function(n,r){e.exports=r()})(Pg,(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]==="(",g=l[1]===")";return(p?this.isAfter(c,a):!this.isBefore(c,a))&&(g?this.isBefore(u,a):!this.isAfter(u,a))||(p?this.isBefore(c,a):!this.isAfter(c,a))&&(g?this.isAfter(u,a):!this.isBefore(u,a))}}}))})(uo)),uo.exports}var Mg=kg();const Tg=Nt(Mg);var po={exports:{}},Dg=po.exports,La;function Rg(){return La||(La=1,(function(e,t){(function(n,r){e.exports=r()})(Dg,(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)}}}))})(po)),po.exports}var Ig=Rg();const Eg=Nt(Ig);Re.extend(Cg);Re.extend(mg);Re.extend(Tg);Re.extend(Eg);const $g={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"},Og={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"},us=["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(`
26
+ `),Na=["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(`
27
+ `),Ag=(e,t)=>t?(...n)=>e(...n).locale(t):e;class vo{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=$g,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(us);return Re.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(us);if(!this.hasTimezonePlugin())throw new Error(Na);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(us);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(Na)}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=Ag(Re,t),this.locale=t,this.formats=N({},Og,n),Re.extend(vg)}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 Hc(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Sr(t.components[n].defaultProps,r)}function Fg({props:e,name:t,defaultTheme:n,themeId:r}){let o=th(n);return o=o[r]||o,Hc({theme:o,name:t,props:e})}function Lg(e,t,n,r,o){const[s,i]=S.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 Ng={...S},Uc=Ng.useSyncExternalStore;function jg(e,t,n,r,o){const s=S.useCallback(()=>t,[t]),i=S.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]=S.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 Uc(l,a,i)}function Yc(e={}){const{themeId:t}=e;return function(r,o={}){let s=Kl();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}=Hc({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(`
28
+ `)),(Uc!==void 0?jg:Lg)(p,a,l,c,u)}}Yc();const Gc=Yc({themeId:Un});function Fe({props:e,name:t}){return Fg({props:e,name:t,defaultTheme:jo,themeId:Un})}const qc=_.oneOfType([_.func,_.object]),ja={};function Kc(e,t){const n=S.useRef(ja);return n.current===ja&&(n.current=e(t)),n}const Bg=[];function Vg(e){S.useEffect(e,Bg)}class ii{static create(){return new ii}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 ai(){const e=Kc(ii.create).current;return Vg(e.disposeEffect),e}function Ba(e){try{return e.matches(":focus-visible")}catch{}return!1}function Xc(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const zg={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function jn(e){return typeof e=="string"}function Qc(e,t,n){return e===void 0||jn(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function li(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 Va(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 Zc(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=li({...o,...r}),a=Va(r),l=Va(o),c=t(i),u=de(c?.className,n?.className,s,o?.className,r?.className),p={...c?.style,...n?.style,...o?.style,...r?.style},g={...c,...n,...l,...a};return u.length>0&&(g.className=u),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:c.ref}}function zo(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?{}:zo(n,r),{props:a,internalRef:l}=Zc({...s,externalSlotProps:i}),c=ke(l,i?.ref,e.additionalProps?.ref);return Qc(t,{...a,ref:c},r)}function Gn(e){return parseInt(S.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Zn=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),_g=({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}},xo=(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},hr=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:a})=>{const l=xo(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},Wg=(e,t)=>t==null||!e.isValid(t)?null:t,lt=(e,t,n)=>t==null||!e.isValid(t)?n:t,Hg=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),ci=(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},Jc=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Ug=["year","month","day"],za=e=>Ug.includes(e),ui=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Zn(n,["year"])?o.year:Zn(n,["month"])?o.month:Zn(n,["day"])?o.dayOfMonth:Zn(n,["month","year"])?`${o.month} ${o.year}`:Zn(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},Yg=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Gg=["hours","minutes","seconds"],qg=e=>Gg.includes(e),_a=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Kg=(e,t)=>(n,r)=>e?t.isAfter(n,r):_a(n,t)>_a(r,t),Pt={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Xg=e=>Math.max(...e.map(t=>Pt[t.type]??1)),Jn=(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},Qg=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let s=o?o():Jn(t,n,Jc(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=Jn(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=Jn(t,n,e.maxDate));const i=Kg(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=Jn(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:xo(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=Jn(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:xo(t,s,e.maxTime))),s},eu=(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(`
29
+ `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Zg=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},_o=(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))},tu=(e,t,n,r)=>{switch(n){case"month":return ci(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return _o(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[]}},Wa="s",Jg=["0","1","2","3","4","5","6","7","8","9"],ey=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Wa)==="0"?Jg:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),Wa))},pn=(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("")},di=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Ha=(e,t)=>{const n=pn(e,t);return n!==" "&&!Number.isNaN(Number(n))},nu=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},ru=(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=nu(s,o.maxLength)),di(s,r)},ty=(e,t,n,r,o,s,i,a)=>{const l=Zg(r),c=r==="Home",u=r==="End",p=n.value===""||c||u,g=()=>{const d=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),h=w=>ru(e,w,d,s,n),m=n.type==="minutes"&&a?.minutesStep?a.minutesStep:1;let C;if(p){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?C=d.minimum:C=d.maximum}else C=parseInt(pn(n.value,s),10)+l*m;return C%m!==0&&((l<0||c)&&(C+=m-(m+C)%m),(l>0||u)&&(C-=C%m)),C>d.maximum?h(d.minimum+(C-d.maximum-1)%(d.maximum-d.minimum+1)):C<d.minimum?h(d.maximum-(d.minimum-C-1)%(d.maximum-d.minimum+1)):h(C)},b=()=>{const d=tu(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 C=((d.indexOf(n.value)+l)%d.length+d.length)%d.length;return d[C]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?g():b()},pi=(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(pn(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},Ua=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),ny=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,ou=(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")}},ry=(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(pi(c,"non-input",n)))}const i=o.join(" "),a=s.join(" ");return e.parse(a,i)},oy=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),sy=(e,t,n)=>{const o=e.map(s=>{const i=pi(s,n?"input-rtl":"input-ltr",t);return`${s.startSeparator}${i}${s.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},iy=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),s=e.endOfDay(r),{maxDaysInMonth:i,longestMonth:a}=ci(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:ny(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=_o(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 pn(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(pn(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})}},ay=(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=_o(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}},Ya={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Ga=(e,t,n,r,o)=>[...n].sort((s,i)=>Ya[s.type]-Ya[i.type]).reduce((s,i)=>!o||i.modified?ay(e,i,t,s):s,r),ly=()=>navigator.userAgent.toLowerCase().includes("android"),cy=(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],g=u===e.length-1?null:r[u+1];n[c]={leftIndex:p,rightIndex:g}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Cs=(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},uy=(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}},dy=(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}},py=["value","referenceDate"],Dt={emptyValue:null,getTodayValue:Jc,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ve(e,py);return t!=null&&r.utils.isValid(t)?t:n??Qg(r)},cleanValue:Wg,areValuesEqual:Hg,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)},fy={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:oy,getV6InputValueFromSections:sy,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)},hy=["localeText"],Ps=S.createContext(null),Cr=function(t){const{localeText:n}=t,r=ve(t,hy),{utils:o,localeText:s}=S.useContext(Ps)??{utils:void 0,localeText:void 0},i=Fe({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:p,localeText:g}=i,b=S.useMemo(()=>N({},g,s,n),[g,s,n]),d=S.useMemo(()=>{if(!l)return o||null;const C=new l({locale:p,formats:c,instance:u});if(!C.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(`
30
+ `));return C},[l,p,c,u,o]),h=S.useMemo(()=>d?{minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}:null,[d]),m=S.useMemo(()=>({utils:d,defaultDates:h,localeText:b}),[h,d,b]);return f.jsx(Ps.Provider,{value:m,children:a})},my=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:N({},e)}}}}),su=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)}},iu={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"},gy=iu;my(iu);const yn=()=>{const e=S.useContext(Ps);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(`
31
+ `));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(`
32
+ `));const t=S.useMemo(()=>N({},gy,e.localeText),[e.localeText]);return S.useMemo(()=>N({},e,{localeText:t}),[e,t])},Le=()=>yn().utils,Fr=()=>yn().defaultDates,Wo=e=>{const t=Le(),n=S.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function yy(e){return typeof e.main=="string"}function by(e,t=[]){if(!yy(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&&by(t,e)}function vy(e){return ge("MuiTypography",e)}const xy=he("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Sy={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},wy=Wh(),Cy=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,vy,i)},Py=G("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}}]}))),qa={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Xt=S.forwardRef(function(t,n){const{color:r,...o}=Ce({props:t,name:"MuiTypography"}),s=!Sy[r],i=wy({...o,...s&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:p=!1,paragraph:g=!1,variant:b="body1",variantMapping:d=qa,...h}=i,m={...i,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:p,paragraph:g,variant:b,variantMapping:d},C=c||(g?"p":d[b]||qa[b])||"span",w=Cy(m);return f.jsx(Py,{as:C,ref:n,className:de(w.root,l),...h,ownerState:m,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...h.style}})});function ky(e){return ge("MuiPickersToolbar",e)}he("MuiPickersToolbar",["root","content"]);const My=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Ty=e=>{const{classes:t}=e;return me({root:["root"],content:["content"]},ky,t)},Dy=G("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"}}]})),Ry=G("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"}}]}),Iy=S.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,My),u=r,p=Ty(u);return a?null:f.jsxs(Dy,N({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(Ry,{className:p.content,ownerState:u,children:o})]}))}),jt=()=>yn().localeText;function Ey(e){return ge("MuiDatePickerToolbar",e)}he("MuiDatePickerToolbar",["root","title"]);const $y=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Oy=e=>{const{classes:t}=e;return me({root:["root"],title:["title"]},Ey,t)},Ay=G(Iy,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fy=G(Xt,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Ly=S.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,$y),p=Le(),g=jt(),b=Oy(r),d=S.useMemo(()=>{if(!o)return a;const m=ui(p,{format:i,views:l},!0);return p.formatByString(o,m)},[o,i,a,p,l]),h=r;return f.jsx(Ay,N({ref:n,toolbarTitle:g.datePickerToolbarTitle,isLandscape:s,className:de(b.root,c)},u,{children:f.jsx(Fy,{variant:"h4",align:s?"left":"center",ownerState:h,className:b.title,children:d})}))});function au(e,t){const n=Le(),r=Fr(),o=Fe({props:e,name:t}),s=S.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:N({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return N({},o,{localeText:s},_g({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:N({toolbar:Ly},o.slots)})}const Lr=({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}};Lr.valueManager=Dt;const lu=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Ny=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],jy=["minDateTime","maxDateTime"],By=[...lu,...Ny,...jy],cu=e=>By.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function uu(e){const{props:t,validator:n,value:r,timezone:o,onError:s}=e,i=yn(),a=S.useRef(n.valueManager.defaultErrorState),l=n({adapter:i,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);S.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 Ho=S.createContext(void 0);function ft(){return S.useContext(Ho)}function Vy(e){return ge("MuiInputAdornment",e)}const Ka=he("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Xa;const zy=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},_y=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,Vy,t)},Wy=G("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:zy})(Ee(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Ka.positionStart}&:not(.${Ka.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),du=S.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,g=ft()||{};let b=u;u&&g.variant,g&&!b&&(b=g.variant);const d={...r,hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:a,position:c,variant:b},h=_y(d);return f.jsx(Ho.Provider,{value:null,children:f.jsx(Wy,{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(S.Fragment,{children:[c==="start"?Xa||(Xa=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});class So{static create(){return new So}static use(){const t=Kc(So.create).current,[n,r]=S.useState(!1);return t.shouldMount=n,t.setShouldMount=r,S.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=Uy(),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 Hy(){return So.use()}function Uy(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function ks(e,t){return ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ks(e,t)}function fi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ks(e,t)}function Yy(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Gy(e,t){e.classList?e.classList.add(t):Yy(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Qa(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function qy(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Qa(e.className,t):e.setAttribute("class",Qa(e.className&&e.className.baseVal||"",t))}const Za={disabled:!1},wo=X.createContext(null);var pu=function(t){return t.scrollTop},dr="unmounted",rn="exited",on="entering",Mn="entered",Ms="exiting",St=(function(e){fi(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=Mn:r.unmountOnExit||r.mountOnEnter?l=dr:l=rn,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===dr?{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!==Mn&&(s=on):(i===on||i===Mn)&&(s=Ms)}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:lr.findDOMNode(this);i&&pu(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rn&&this.setState({status:dr})},n.performEnter=function(o){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[lr.findDOMNode(this),a],c=l[0],u=l[1],p=this.getTimeouts(),g=a?p.appear:p.enter;if(!o&&!i||Za.disabled){this.safeSetState({status:Mn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:on},function(){s.props.onEntering(c,u),s.onTransitionEnd(g,function(){s.safeSetState({status:Mn},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:lr.findDOMNode(this);if(!s||Za.disabled){this.safeSetState({status:rn},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ms},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:lr.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===dr)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 X.createElement(wo.Provider,{value:null},typeof i=="function"?i(o,a):X.cloneElement(X.Children.only(i),a))},t})(X.Component);St.contextType=wo;St.propTypes={};function Pn(){}St.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pn,onEntering:Pn,onEntered:Pn,onExit:Pn,onExiting:Pn,onExited:Pn};St.UNMOUNTED=dr;St.EXITED=rn;St.ENTERING=on;St.ENTERED=Mn;St.EXITING=Ms;var Ky=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Gy(t,r)})},ds=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return qy(t,r)})},hi=(function(e){fi(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],g=p?"appear":"enter";r.addClass(u,g,"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],g=p?"appear":"enter";r.removeClasses(u,g),r.addClass(u,g,"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],g=c?p+"-active":l[a+"Active"],b=c?p+"-done":l[a+"Done"];return{baseClassName:p,activeClassName:g,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&&pu(o),a&&(this.appliedClasses[s][i]=a,Ky(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&&ds(o,a),l&&ds(o,l),c&&ds(o,c)},n.render=function(){var o=this.props;o.classNames;var s=ve(o,["classNames"]);return X.createElement(St,N({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(X.Component);hi.defaultProps={classNames:""};hi.propTypes={};function Xy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mi(e,t){var n=function(s){return t&&X.isValidElement(s)?t(s):s},r=Object.create(null);return e&&X.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Qy(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 Zy(e,t){return mi(e.children,function(n){return X.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 Jy(e,t,n){var r=mi(e.children),o=Qy(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(X.isValidElement(i)){var a=s in t,l=s in r,c=t[s],u=X.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[s]=X.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:an(i,"exit",e),enter:an(i,"enter",e)}):!l&&a&&!u?o[s]=X.cloneElement(i,{in:!1}):l&&a&&X.isValidElement(c)&&(o[s]=X.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:an(i,"exit",e),enter:an(i,"enter",e)}))}}),o}var eb=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},tb={component:"div",childFactory:function(t){return t}},Nr=(function(e){fi(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(Xy(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?Zy(o,a):Jy(o,i,a),firstRender:!1}},n.handleExited=function(o,s){var i=mi(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(a){var l=N({},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=eb(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?X.createElement(wo.Provider,{value:l},c):X.createElement(wo.Provider,{value:l},X.createElement(s,a,c))},t})(X.Component);Nr.propTypes={};Nr.defaultProps=tb;function nb(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:i,in:a,onExited:l,timeout:c}=e,[u,p]=S.useState(!1),g=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),S.useEffect(()=>{if(!a&&l!=null){const h=setTimeout(l,c);return()=>{clearTimeout(h)}}},[l,a,c]),f.jsx("span",{className:g,style:b,children:f.jsx("span",{className:d})})}const st=he("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ts=550,rb=80,ob=He.keyframes`
33
+ 0% {
34
+ transform: scale(0);
35
+ opacity: 0.1;
36
+ }
37
+
38
+ 100% {
39
+ transform: scale(1);
40
+ opacity: 0.3;
41
+ }
42
+ `,sb=He.keyframes`
43
+ 0% {
44
+ opacity: 1;
45
+ }
46
+
47
+ 100% {
48
+ opacity: 0;
49
+ }
50
+ `,ib=He.keyframes`
51
+ 0% {
52
+ transform: scale(1);
53
+ }
54
+
55
+ 50% {
56
+ transform: scale(0.92);
57
+ }
58
+
59
+ 100% {
60
+ transform: scale(1);
61
+ }
62
+ `,ab=G("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),lb=G(nb,{name:"MuiTouchRipple",slot:"Ripple"})`
63
+ opacity: 0;
64
+ position: absolute;
65
+
66
+ &.${st.rippleVisible} {
67
+ opacity: 0.3;
68
+ transform: scale(1);
69
+ animation-name: ${ob};
70
+ animation-duration: ${Ts}ms;
71
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
72
+ }
73
+
74
+ &.${st.ripplePulsate} {
75
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
76
+ }
77
+
78
+ & .${st.child} {
79
+ opacity: 1;
80
+ display: block;
81
+ width: 100%;
82
+ height: 100%;
83
+ border-radius: 50%;
84
+ background-color: currentColor;
85
+ }
86
+
87
+ & .${st.childLeaving} {
88
+ opacity: 0;
89
+ animation-name: ${sb};
90
+ animation-duration: ${Ts}ms;
91
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
92
+ }
93
+
94
+ & .${st.childPulsate} {
95
+ position: absolute;
96
+ /* @noflip */
97
+ left: 0px;
98
+ top: 0;
99
+ animation-name: ${ib};
100
+ animation-duration: 2500ms;
101
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
102
+ animation-iteration-count: infinite;
103
+ animation-delay: 200ms;
104
+ }
105
+ `,cb=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i,...a}=r,[l,c]=S.useState([]),u=S.useRef(0),p=S.useRef(null);S.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const g=S.useRef(!1),b=ai(),d=S.useRef(null),h=S.useRef(null),m=S.useCallback(v=>{const{pulsate:P,rippleX:k,rippleY:I,rippleSize:R,cb:A}=v;c(O=>[...O,f.jsx(lb,{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:Ts,pulsate:P,rippleX:k,rippleY:I,rippleSize:R},u.current)]),u.current+=1,p.current=A},[s]),C=S.useCallback((v={},P={},k=()=>{})=>{const{pulsate:I=!1,center:R=o||P.pulsate,fakeElement:A=!1}=P;if(v?.type==="mousedown"&&g.current){g.current=!1;return}v?.type==="touchstart"&&(g.current=!0);const O=A?null:h.current,$=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let y,E,D;if(R||v===void 0||v.clientX===0&&v.clientY===0||!v.clientX&&!v.touches)y=Math.round($.width/2),E=Math.round($.height/2);else{const{clientX:M,clientY:T}=v.touches&&v.touches.length>0?v.touches[0]:v;y=Math.round(M-$.left),E=Math.round(T-$.top)}if(R)D=Math.sqrt((2*$.width**2+$.height**2)/3),D%2===0&&(D+=1);else{const M=Math.max(Math.abs((O?O.clientWidth:0)-y),y)*2+2,T=Math.max(Math.abs((O?O.clientHeight:0)-E),E)*2+2;D=Math.sqrt(M**2+T**2)}v?.touches?d.current===null&&(d.current=()=>{m({pulsate:I,rippleX:y,rippleY:E,rippleSize:D,cb:k})},b.start(rb,()=>{d.current&&(d.current(),d.current=null)})):m({pulsate:I,rippleX:y,rippleY:E,rippleSize:D,cb:k})},[o,m,b]),w=S.useCallback(()=>{C({},{pulsate:!0})},[C]),x=S.useCallback((v,P)=>{if(b.clear(),v?.type==="touchend"&&d.current){d.current(),d.current=null,b.start(0,()=>{x(v,P)});return}d.current=null,c(k=>k.length>0?k.slice(1):k),p.current=P},[b]);return S.useImperativeHandle(n,()=>({pulsate:w,start:C,stop:x}),[w,C,x]),f.jsx(ab,{className:de(st.root,s.root,i),ref:h,...a,children:f.jsx(Nr,{component:null,exit:!0,children:l})})});function ub(e){return ge("MuiButtonBase",e)}const db=he("MuiButtonBase",["root","disabled","focusVisible"]),pb=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=me({root:["root",t&&"disabled",n&&"focusVisible"]},ub,o);return n&&r&&(i.root+=` ${r}`),i},fb=G("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"},[`&.${db.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Bn=S.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:g=!1,focusVisibleClassName:b,LinkComponent:d="a",onBlur:h,onClick:m,onContextMenu:C,onDragLeave:w,onFocus:x,onFocusVisible:v,onKeyDown:P,onKeyUp:k,onMouseDown:I,onMouseLeave:R,onMouseUp:A,onTouchEnd:O,onTouchMove:$,onTouchStart:y,tabIndex:E=0,TouchRippleProps:D,touchRippleRef:M,type:T,...F}=r,L=S.useRef(null),j=Hy(),H=ke(j.ref,M),[Q,q]=S.useState(!1);c&&Q&&q(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{q(!0),L.current.focus()}}),[]);const se=j.shouldMount&&!u&&!c;S.useEffect(()=>{Q&&g&&!u&&j.pulsate()},[u,g,Q,j]);const re=Et(j,"start",I,p),B=Et(j,"stop",C,p),J=Et(j,"stop",w,p),ee=Et(j,"stop",A,p),K=Et(j,"stop",pe=>{Q&&pe.preventDefault(),R&&R(pe)},p),z=Et(j,"start",y,p),U=Et(j,"stop",O,p),ne=Et(j,"stop",$,p),te=Et(j,"stop",pe=>{Ba(pe.target)||q(!1),h&&h(pe)},!1),V=ue(pe=>{L.current||(L.current=pe.currentTarget),Ba(pe.target)&&(q(!0),v&&v(pe)),x&&x(pe)}),Z=()=>{const pe=L.current;return l&&l!=="button"&&!(pe.tagName==="A"&&pe.href)},ie=ue(pe=>{g&&!pe.repeat&&Q&&pe.key===" "&&j.stop(pe,()=>{j.start(pe)}),pe.target===pe.currentTarget&&Z()&&pe.key===" "&&pe.preventDefault(),P&&P(pe),pe.target===pe.currentTarget&&Z()&&pe.key==="Enter"&&!c&&(pe.preventDefault(),m&&m(pe))}),oe=ue(pe=>{g&&pe.key===" "&&Q&&!pe.defaultPrevented&&j.stop(pe,()=>{j.pulsate(pe)}),k&&k(pe),m&&pe.target===pe.currentTarget&&Z()&&pe.key===" "&&!pe.defaultPrevented&&m(pe)});let ce=l;ce==="button"&&(F.href||F.to)&&(ce=d);const ae={};ce==="button"?(ae.type=T===void 0?"button":T,ae.disabled=c):(!F.href&&!F.to&&(ae.role="button"),c&&(ae["aria-disabled"]=c));const fe=ke(n,L),be={...r,centerRipple:s,component:l,disabled:c,disableRipple:u,disableTouchRipple:p,focusRipple:g,tabIndex:E,focusVisible:Q},we=pb(be);return f.jsxs(fb,{as:ce,className:de(we.root,a),ownerState:be,onBlur:te,onClick:m,onContextMenu:B,onFocus:V,onKeyDown:ie,onKeyUp:oe,onMouseDown:re,onMouseLeave:K,onMouseUp:ee,onDragLeave:J,onTouchEnd:U,onTouchMove:ne,onTouchStart:z,ref:fe,tabIndex:c?-1:E,type:T,...ae,...F,children:[i,se?f.jsx(cb,{ref:H,center:s,...D}):null]})});function Et(e,t,n,r=!1){return ue(o=>(n&&n(o),r||e[t](o),!0))}function hb(e){return ge("MuiCircularProgress",e)}he("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ht=44,Ds=He.keyframes`
106
+ 0% {
107
+ transform: rotate(0deg);
108
+ }
109
+
110
+ 100% {
111
+ transform: rotate(360deg);
112
+ }
113
+ `,Rs=He.keyframes`
114
+ 0% {
115
+ stroke-dasharray: 1px, 200px;
116
+ stroke-dashoffset: 0;
117
+ }
118
+
119
+ 50% {
120
+ stroke-dasharray: 100px, 200px;
121
+ stroke-dashoffset: -15px;
122
+ }
123
+
124
+ 100% {
125
+ stroke-dasharray: 1px, 200px;
126
+ stroke-dashoffset: -126px;
127
+ }
128
+ `,mb=typeof Ds!="string"?He.css`
129
+ animation: ${Ds} 1.4s linear infinite;
130
+ `:null,gb=typeof Rs!="string"?He.css`
131
+ animation: ${Rs} 1.4s ease-in-out infinite;
132
+ `:null,yb=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,hb,t)},bb=G("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:mb||{animation:`${Ds} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),vb=G("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),xb=G("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:gb||{animation:`${Rs} 1.4s ease-in-out infinite`}}]}))),gi=S.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",...g}=r,b={...r,color:s,disableShrink:i,size:a,thickness:c,value:u,variant:p},d=yb(b),h={},m={},C={};if(p==="determinate"){const w=2*Math.PI*((Ht-c)/2);h.strokeDasharray=w.toFixed(3),C["aria-valuenow"]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*w).toFixed(3)}px`,m.transform="rotate(-90deg)"}return f.jsx(bb,{className:de(d.root,o),style:{width:a,height:a,...m,...l},ownerState:b,ref:n,role:"progressbar",...C,...g,children:f.jsx(vb,{className:d.svg,ownerState:b,viewBox:`${Ht/2} ${Ht/2} ${Ht} ${Ht}`,children:f.jsx(xb,{className:d.circle,style:h,ownerState:b,cx:Ht,cy:Ht,r:(Ht-c)/2,fill:"none",strokeWidth:c})})})});function Sb(e){return ge("MuiIconButton",e)}const Ja=he("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),wb=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,Sb,t)},Cb=G(Bn,{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)}}],[`&.${Ja.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Ja.loading}`]:{color:"transparent"}}))),Pb=G("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"}}]})),jr=S.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:g=null,loadingIndicator:b,...d}=r,h=xt(p),m=b??f.jsx(gi,{"aria-labelledby":h,color:"inherit",size:16}),C={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:g,loadingIndicator:m,size:u},w=wb(C);return f.jsxs(Cb,{id:g?h:p,className:de(w.root,i),centerRipple:!0,focusRipple:!c,disabled:l||g,ref:n,...d,ownerState:C,children:[typeof g=="boolean"&&f.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:f.jsx(Pb,{className:w.loadingIndicator,ownerState:C,children:g&&m})}),s]})}),fu=e=>e.scrollTop;function Co(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 Is(e){return`scale(${e}, ${e**2})`}const kb={entering:{opacity:1,transform:Is(1)},entered:{opacity:1,transform:"none"}},ps=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Pr=S.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:g,onExiting:b,style:d,timeout:h="auto",TransitionComponent:m=St,...C}=t,w=ai(),x=S.useRef(),v=gn(),P=S.useRef(null),k=ke(P,Gn(s),n),I=M=>T=>{if(M){const F=P.current;T===void 0?M(F):M(F,T)}},R=I(u),A=I((M,T)=>{fu(M);const{duration:F,delay:L,easing:j}=Co({style:d,timeout:h,easing:i},{mode:"enter"});let H;h==="auto"?(H=v.transitions.getAutoHeightDuration(M.clientHeight),x.current=H):H=F,M.style.transition=[v.transitions.create("opacity",{duration:H,delay:L}),v.transitions.create("transform",{duration:ps?H:H*.666,delay:L,easing:j})].join(","),l&&l(M,T)}),O=I(c),$=I(b),y=I(M=>{const{duration:T,delay:F,easing:L}=Co({style:d,timeout:h,easing:i},{mode:"exit"});let j;h==="auto"?(j=v.transitions.getAutoHeightDuration(M.clientHeight),x.current=j):j=T,M.style.transition=[v.transitions.create("opacity",{duration:j,delay:F}),v.transitions.create("transform",{duration:ps?j:j*.666,delay:ps?F:F||j*.333,easing:L})].join(","),M.style.opacity=0,M.style.transform=Is(.75),p&&p(M)}),E=I(g),D=M=>{h==="auto"&&w.start(x.current||0,M),r&&r(P.current,M)};return f.jsx(m,{appear:o,in:a,nodeRef:P,onEnter:A,onEntered:O,onEntering:R,onExit:y,onExited:E,onExiting:$,addEndListener:D,timeout:h==="auto"?null:h,...C,children:(M,{ownerState:T,...F})=>S.cloneElement(s,{style:{opacity:0,transform:Is(.75),visibility:M==="exited"&&!a?"hidden":void 0,...kb[M],...d,...s.props.style},ref:k,...F})})});Pr&&(Pr.muiSupportAuto=!0);const Mb={entering:{opacity:1},entered:{opacity:1}},fn=S.forwardRef(function(t,n){const r=gn(),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:g,onExit:b,onExited:d,onExiting:h,style:m,timeout:C=o,TransitionComponent:w=St,...x}=t,v=S.useRef(null),P=ke(v,Gn(a),n),k=D=>M=>{if(D){const T=v.current;M===void 0?D(T):D(T,M)}},I=k(g),R=k((D,M)=>{fu(D);const T=Co({style:m,timeout:C,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",T),D.style.transition=r.transitions.create("opacity",T),u&&u(D,M)}),A=k(p),O=k(h),$=k(D=>{const M=Co({style:m,timeout:C,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),E=D=>{s&&s(v.current,D)};return f.jsx(w,{appear:i,in:c,nodeRef:v,onEnter:R,onEntered:A,onEntering:I,onExit:$,onExited:y,onExiting:O,addEndListener:E,timeout:C,...x,children:(D,{ownerState:M,...T})=>S.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...Mb[D],...m,...a.props.style},ref:P,...T})})});function Tb(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 Db=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return me(s,Tb,o)},Rb=G("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)"}}]}))),Br=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiPaper"}),o=gn(),{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},g=Db(p);return f.jsx(Rb,{as:i,ownerState:p,className:de(g.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(${mo("#fff",Ss(a))}, ${mo("#fff",Ss(a))})`}},...u.style}})});var Qe="top",ct="bottom",ut="right",Ze="left",yi="auto",Vr=[Qe,ct,ut,Ze],Vn="start",kr="end",Ib="clippingParents",hu="viewport",er="popper",Eb="reference",el=Vr.reduce(function(e,t){return e.concat([t+"-"+Vn,t+"-"+kr])},[]),mu=[].concat(Vr,[yi]).reduce(function(e,t){return e.concat([t,t+"-"+Vn,t+"-"+kr])},[]),$b="beforeRead",Ob="read",Ab="afterRead",Fb="beforeMain",Lb="main",Nb="afterMain",jb="beforeWrite",Bb="write",Vb="afterWrite",zb=[$b,Ob,Ab,Fb,Lb,Nb,jb,Bb,Vb];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 hn(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 bi(e){if(typeof ShadowRoot>"u")return!1;var t=et(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _b(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 Wb(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 Hb={name:"applyStyles",enabled:!0,phase:"write",fn:_b,effect:Wb,requires:["computeStyles"]};function Mt(e){return e.split("-")[0]}var dn=Math.max,Po=Math.min,zn=Math.round;function Es(){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 gu(){return!/^((?!chrome|android).)*safari/i.test(Es())}function _n(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&&zn(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&zn(r.height)/e.offsetHeight||1);var i=hn(e)?et(e):window,a=i.visualViewport,l=!gu()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,p=r.width/o,g=r.height/s;return{width:p,height:g,top:u,right:c+p,bottom:u+g,left:c,x:c,y:u}}function vi(e){var t=_n(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 yu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bi(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 Ub(e){return["table","td","th"].indexOf(Rt(e))>=0}function Qt(e){return((hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Uo(e){return Rt(e)==="html"?e:e.assignedSlot||e.parentNode||(bi(e)?e.host:null)||Qt(e)}function tl(e){return!at(e)||Lt(e).position==="fixed"?null:e.offsetParent}function Yb(e){var t=/firefox/i.test(Es()),n=/Trident/i.test(Es());if(n&&at(e)){var r=Lt(e);if(r.position==="fixed")return null}var o=Uo(e);for(bi(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 zr(e){for(var t=et(e),n=tl(e);n&&Ub(n)&&Lt(n).position==="static";)n=tl(n);return n&&(Rt(n)==="html"||Rt(n)==="body"&&Lt(n).position==="static")?t:n||Yb(e)||t}function xi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mr(e,t,n){return dn(e,Po(t,n))}function Gb(e,t,n){var r=mr(e,t,n);return r>n?n:r}function bu(){return{top:0,right:0,bottom:0,left:0}}function vu(e){return Object.assign({},bu(),e)}function xu(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var qb=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,vu(typeof t!="number"?t:xu(t,Vr))};function Kb(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=xi(a),c=[Ze,ut].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var p=qb(o.padding,n),g=vi(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],m=i[l]-n.rects.reference[l],C=zr(s),w=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,x=h/2-m/2,v=p[b],P=w-g[u]-p[d],k=w/2-g[u]/2+x,I=mr(v,k,P),R=l;n.modifiersData[r]=(t={},t[R]=I,t.centerOffset=I-k,t)}}function Xb(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)||yu(t.elements.popper,o)&&(t.elements.arrow=o))}const Qb={name:"arrow",enabled:!0,phase:"main",fn:Kb,effect:Xb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wn(e){return e.split("-")[1]}var Zb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jb(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zn(n*o)/o||0,y:zn(r*o)/o||0}}function nl(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,g=i.x,b=g===void 0?0:g,d=i.y,h=d===void 0?0:d,m=typeof u=="function"?u({x:b,y:h}):{x:b,y:h};b=m.x,h=m.y;var C=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),x=Ze,v=Qe,P=window;if(c){var k=zr(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===kr){v=ct;var A=p&&k===P&&P.visualViewport?P.visualViewport.height:k[I];h-=A-r.height,h*=l?1:-1}if(o===Ze||(o===Qe||o===ct)&&s===kr){x=ut;var O=p&&k===P&&P.visualViewport?P.visualViewport.width:k[R];b-=O-r.width,b*=l?1:-1}}var $=Object.assign({position:a},c&&Zb),y=u===!0?Jb({x:b,y:h},et(n)):{x:b,y:h};if(b=y.x,h=y.y,l){var E;return Object.assign({},$,(E={},E[v]=w?"0":"",E[x]=C?"0":"",E.transform=(P.devicePixelRatio||1)<=1?"translate("+b+"px, "+h+"px)":"translate3d("+b+"px, "+h+"px, 0)",E))}return Object.assign({},$,(t={},t[v]=w?h+"px":"",t[x]=C?b+"px":"",t.transform="",t))}function ev(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:Wn(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,nl(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,nl(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 tv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ev,data:{}};var Yr={passive:!0};function nv(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,Yr)}),a&&l.addEventListener("resize",n.update,Yr),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Yr)}),a&&l.removeEventListener("resize",n.update,Yr)}}const rv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:nv,data:{}};var ov={left:"right",right:"left",bottom:"top",top:"bottom"};function fo(e){return e.replace(/left|right|bottom|top/g,function(t){return ov[t]})}var sv={start:"end",end:"start"};function rl(e){return e.replace(/start|end/g,function(t){return sv[t]})}function Si(e){var t=et(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wi(e){return _n(Qt(e)).left+Si(e).scrollLeft}function iv(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=gu();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+wi(e),y:l}}function av(e){var t,n=Qt(e),r=Si(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=dn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=dn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+wi(e),l=-r.scrollTop;return Lt(o||n).direction==="rtl"&&(a+=dn(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function Ci(e){var t=Lt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Su(e){return["html","body","#document"].indexOf(Rt(e))>=0?e.ownerDocument.body:at(e)&&Ci(e)?e:Su(Uo(e))}function gr(e,t){var n;t===void 0&&(t=[]);var r=Su(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=et(r),i=o?[s].concat(s.visualViewport||[],Ci(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(gr(Uo(i)))}function $s(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lv(e,t){var n=_n(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 ol(e,t,n){return t===hu?$s(iv(e,n)):hn(t)?lv(t,n):$s(av(Qt(e)))}function cv(e){var t=gr(Uo(e)),n=["absolute","fixed"].indexOf(Lt(e).position)>=0,r=n&&at(e)?zr(e):e;return hn(r)?t.filter(function(o){return hn(o)&&yu(o,r)&&Rt(o)!=="body"}):[]}function uv(e,t,n,r){var o=t==="clippingParents"?cv(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=ol(e,c,r);return l.top=dn(u.top,l.top),l.right=Po(u.right,l.right),l.bottom=Po(u.bottom,l.bottom),l.left=dn(u.left,l.left),l},ol(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 wu(e){var t=e.reference,n=e.element,r=e.placement,o=r?Mt(r):null,s=r?Wn(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?xi(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Vn:l[c]=l[c]-(t[u]/2-n[u]/2);break;case kr:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Mr(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?Ib:a,c=n.rootBoundary,u=c===void 0?hu:c,p=n.elementContext,g=p===void 0?er:p,b=n.altBoundary,d=b===void 0?!1:b,h=n.padding,m=h===void 0?0:h,C=vu(typeof m!="number"?m:xu(m,Vr)),w=g===er?Eb:er,x=e.rects.popper,v=e.elements[d?w:g],P=uv(hn(v)?v:v.contextElement||Qt(e.elements.popper),l,u,i),k=_n(e.elements.reference),I=wu({reference:k,element:x,placement:o}),R=$s(Object.assign({},x,I)),A=g===er?R:k,O={top:P.top-A.top+C.top,bottom:A.bottom-P.bottom+C.bottom,left:P.left-A.left+C.left,right:A.right-P.right+C.right},$=e.modifiersData.offset;if(g===er&&$){var y=$[o];Object.keys(O).forEach(function(E){var D=[ut,ct].indexOf(E)>=0?1:-1,M=[Qe,ct].indexOf(E)>=0?"y":"x";O[E]+=y[M]*D})}return O}function dv(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?mu:l,u=Wn(r),p=u?a?el:el.filter(function(d){return Wn(d)===u}):Vr,g=p.filter(function(d){return c.indexOf(d)>=0});g.length===0&&(g=p);var b=g.reduce(function(d,h){return d[h]=Mr(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 pv(e){if(Mt(e)===yi)return[];var t=fo(e);return[rl(e),t,rl(t)]}function fv(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,g=n.altBoundary,b=n.flipVariations,d=b===void 0?!0:b,h=n.allowedAutoPlacements,m=t.options.placement,C=Mt(m),w=C===m,x=l||(w||!d?[fo(m)]:pv(m)),v=[m].concat(x).reduce(function(re,B){return re.concat(Mt(B)===yi?dv(t,{placement:B,boundary:u,rootBoundary:p,padding:c,flipVariations:d,allowedAutoPlacements:h}):B)},[]),P=t.rects.reference,k=t.rects.popper,I=new Map,R=!0,A=v[0],O=0;O<v.length;O++){var $=v[O],y=Mt($),E=Wn($)===Vn,D=[Qe,ct].indexOf(y)>=0,M=D?"width":"height",T=Mr(t,{placement:$,boundary:u,rootBoundary:p,altBoundary:g,padding:c}),F=D?E?ut:Ze:E?ct:Qe;P[M]>k[M]&&(F=fo(F));var L=fo(F),j=[];if(s&&j.push(T[y]<=0),a&&j.push(T[F]<=0,T[L]<=0),j.every(function(re){return re})){A=$,R=!1;break}I.set($,j)}if(R)for(var H=d?3:1,Q=function(B){var J=v.find(function(ee){var K=I.get(ee);if(K)return K.slice(0,B).every(function(z){return z})});if(J)return A=J,"break"},q=H;q>0;q--){var se=Q(q);if(se==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const hv={name:"flip",enabled:!0,phase:"main",fn:fv,requiresIfExists:["offset"],data:{_skip:!1}};function sl(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 il(e){return[Qe,ut,ct,Ze].some(function(t){return e[t]>=0})}function mv(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=Mr(t,{elementContext:"reference"}),a=Mr(t,{altBoundary:!0}),l=sl(i,r),c=sl(a,o,s),u=il(l),p=il(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 gv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mv};function yv(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 bv(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=mu.reduce(function(u,p){return u[p]=yv(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 vv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bv};function xv(e){var t=e.state,n=e.name;t.modifiersData[n]=wu({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Sv={name:"popperOffsets",enabled:!0,phase:"read",fn:xv,data:{}};function wv(e){return e==="x"?"y":"x"}function Cv(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,g=n.tether,b=g===void 0?!0:g,d=n.tetherOffset,h=d===void 0?0:d,m=Mr(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),C=Mt(t.placement),w=Wn(t.placement),x=!w,v=xi(C),P=wv(v),k=t.modifiersData.popperOffsets,I=t.rects.reference,R=t.rects.popper,A=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,O=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,y={x:0,y:0};if(k){if(s){var E,D=v==="y"?Qe:Ze,M=v==="y"?ct:ut,T=v==="y"?"height":"width",F=k[v],L=F+m[D],j=F-m[M],H=b?-R[T]/2:0,Q=w===Vn?I[T]:R[T],q=w===Vn?-R[T]:-I[T],se=t.elements.arrow,re=b&&se?vi(se):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bu(),J=B[D],ee=B[M],K=mr(0,I[T],re[T]),z=x?I[T]/2-H-K-J-O.mainAxis:Q-K-J-O.mainAxis,U=x?-I[T]/2+H+K+ee+O.mainAxis:q+K+ee+O.mainAxis,ne=t.elements.arrow&&zr(t.elements.arrow),te=ne?v==="y"?ne.clientTop||0:ne.clientLeft||0:0,V=(E=$?.[v])!=null?E:0,Z=F+z-V-te,ie=F+U-V,oe=mr(b?Po(L,Z):L,F,b?dn(j,ie):j);k[v]=oe,y[v]=oe-F}if(a){var ce,ae=v==="x"?Qe:Ze,fe=v==="x"?ct:ut,be=k[P],we=P==="y"?"height":"width",pe=be+m[ae],qe=be-m[fe],Be=[Qe,Ze].indexOf(C)!==-1,ht=(ce=$?.[P])!=null?ce:0,mt=Be?pe:be-I[we]-R[we]-ht+O.altAxis,nt=Be?be+I[we]+R[we]-ht-O.altAxis:qe,rt=b&&Be?Gb(mt,be,nt):mr(b?mt:pe,be,b?nt:qe);k[P]=rt,y[P]=rt-be}t.modifiersData[r]=y}}const Pv={name:"preventOverflow",enabled:!0,phase:"main",fn:Cv,requiresIfExists:["offset"]};function kv(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Mv(e){return e===et(e)||!at(e)?Si(e):kv(e)}function Tv(e){var t=e.getBoundingClientRect(),n=zn(t.width)/e.offsetWidth||1,r=zn(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Dv(e,t,n){n===void 0&&(n=!1);var r=at(t),o=at(t)&&Tv(t),s=Qt(t),i=_n(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Rt(t)!=="body"||Ci(s))&&(a=Mv(t)),at(t)?(l=_n(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=wi(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Rv(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 Iv(e){var t=Rv(e);return zb.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Ev(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $v(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 al={placement:"bottom",modifiers:[],strategy:"absolute"};function ll(){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 Ov(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?al:o;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},al,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],g=!1,b={state:u,setOptions:function(C){var w=typeof C=="function"?C(u.options):C;h(),u.options=Object.assign({},s,u.options,w),u.scrollParents={reference:hn(a)?gr(a):a.contextElement?gr(a.contextElement):[],popper:gr(l)};var x=Iv($v([].concat(r,u.options.modifiers)));return u.orderedModifiers=x.filter(function(v){return v.enabled}),d(),b.update()},forceUpdate:function(){if(!g){var C=u.elements,w=C.reference,x=C.popper;if(ll(w,x)){u.rects={reference:Dv(w,zr(x),u.options.strategy==="fixed"),popper:vi(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var P=u.orderedModifiers[v],k=P.fn,I=P.options,R=I===void 0?{}:I,A=P.name;typeof k=="function"&&(u=k({state:u,options:R,name:A,instance:b})||u)}}}},update:Ev(function(){return new Promise(function(m){b.forceUpdate(),m(u)})}),destroy:function(){h(),g=!0}};if(!ll(a,l))return b;b.setOptions(c).then(function(m){!g&&c.onFirstUpdate&&c.onFirstUpdate(m)});function d(){u.orderedModifiers.forEach(function(m){var C=m.name,w=m.options,x=w===void 0?{}:w,v=m.effect;if(typeof v=="function"){var P=v({state:u,name:C,instance:b,options:x}),k=function(){};p.push(P||k)}})}function h(){p.forEach(function(m){return m()}),p=[]}return b}}var Av=[rv,Sv,tv,Hb,vv,hv,Pv,Qb,gv],Fv=Ov({defaultModifiers:Av});function Lv(e){return typeof e=="function"?e():e}const Cu=S.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,a]=S.useState(null),l=ke(S.isValidElement(r)?Gn(r):null,n);if(Ue(()=>{s||a(Lv(o)||document.body)},[o,s]),Ue(()=>{if(i&&!s)return ws(n,i),()=>{ws(n,null)}},[n,i,s]),s){if(S.isValidElement(r)){const c={ref:l};return S.cloneElement(r,c)}return r}return i&&vp.createPortal(r,i)});function Nv(e){return ge("MuiPopper",e)}he("MuiPopper",["root"]);function jv(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 Os(e){return typeof e=="function"?e():e}function Bv(e){return e.nodeType!==void 0}const Vv=e=>{const{classes:t}=e;return me({root:["root"]},Nv,t)},zv={},_v=S.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:p,slotProps:g={},slots:b={},TransitionProps:d,ownerState:h,...m}=t,C=S.useRef(null),w=ke(C,n),x=S.useRef(null),v=ke(x,p),P=S.useRef(v);Ue(()=>{P.current=v},[v]),S.useImperativeHandle(p,()=>x.current,[]);const k=jv(c,s),[I,R]=S.useState(k),[A,O]=S.useState(Os(r));S.useEffect(()=>{x.current&&x.current.forceUpdate()}),S.useEffect(()=>{r&&O(Os(r))},[r]),Ue(()=>{if(!A||!l)return;const M=L=>{R(L.placement)};let T=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{M(L)}}];a!=null&&(T=T.concat(a)),u&&u.modifiers!=null&&(T=T.concat(u.modifiers));const F=Fv(A,C.current,{placement:k,...u,modifiers:T});return P.current(F),()=>{F.destroy(),P.current(null)}},[A,i,a,l,u,k]);const $={placement:I};d!==null&&($.TransitionProps=d);const y=Vv(t),E=b.root??"div",D=Pe({elementType:E,externalSlotProps:g.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:y.root});return f.jsx(E,{...D,children:typeof o=="function"?o($):o})}),Wv=S.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:g=zv,popperRef:b,style:d,transition:h=!1,slotProps:m={},slots:C={},...w}=t,[x,v]=S.useState(!0),P=()=>{v(!1)},k=()=>{v(!0)};if(!l&&!u&&(!h||x))return null;let I;if(s)I=s;else if(r){const O=Os(r);I=O&&Bv(O)?Ye(O).body:Ye(null).body}const R=!u&&l&&(!h||x)?"none":void 0,A=h?{in:u,onEnter:P,onExited:k}:void 0;return f.jsx(Cu,{disablePortal:a,container:I,children:f.jsx(_v,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:n,open:h?!x:u,placement:p,popperOptions:g,popperRef:b,slotProps:m,slots:C,...w,style:{position:"fixed",top:0,left:0,display:R,...d},TransitionProps:A,children:o})})}),Hv=G(Wv,{name:"MuiPopper",slot:"Root"})({}),Pu=S.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:g,open:b,placement:d,popperOptions:h,popperRef:m,transition:C,slots:w,slotProps:x,...v}=o,P=w?.root??a?.Root,k={anchorEl:s,container:c,disablePortal:u,keepMounted:p,modifiers:g,open:b,placement:d,popperOptions:h,popperRef:m,transition:C,...v};return f.jsx(Hv,{as:i,direction:r?"rtl":"ltr",slots:{root:P},slotProps:x??l,...k,ref:n})}),Uv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Yv(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 Gv(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 qv(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Gv(e))}function Kv(e){const t=[],n=[];return Array.from(e.querySelectorAll(Uv)).forEach((r,o)=>{const s=Yv(r);s===-1||!qv(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 Xv(){return!0}function ku(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=Kv,isEnabled:i=Xv,open:a}=e,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(null),p=S.useRef(null),g=S.useRef(null),b=S.useRef(!1),d=S.useRef(null),h=ke(Gn(t),d),m=S.useRef(null);S.useEffect(()=>{!a||!d.current||(b.current=!n)},[n,a]),S.useEffect(()=>{if(!a||!d.current)return;const x=Ye(d.current);return d.current.contains(x.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]),S.useEffect(()=>{if(!a||!d.current)return;const x=Ye(d.current),v=I=>{m.current=I,!(r||!i()||I.key!=="Tab")&&x.activeElement===d.current&&I.shiftKey&&(l.current=!0,u.current&&u.current.focus())},P=()=>{const I=d.current;if(I===null)return;if(!x.hasFocus()||!i()||l.current){l.current=!1;return}if(I.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==u.current)return;if(x.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!b.current)return;let R=[];if((x.activeElement===c.current||x.activeElement===u.current)&&(R=s(d.current)),R.length>0){const A=!!(m.current?.shiftKey&&m.current?.key==="Tab"),O=R[0],$=R[R.length-1];typeof O!="string"&&typeof $!="string"&&(A?$.focus():O.focus())}else I.focus()};x.addEventListener("focusin",P),x.addEventListener("keydown",v,!0);const k=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(k),x.removeEventListener("focusin",P),x.removeEventListener("keydown",v,!0)}},[n,r,o,i,a,s]);const C=x=>{p.current===null&&(p.current=x.relatedTarget),b.current=!0,g.current=x.target;const v=t.props.onFocus;v&&v(x)},w=x=>{p.current===null&&(p.current=x.relatedTarget),b.current=!0};return f.jsxs(S.Fragment,{children:[f.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:c,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:h,onFocus:C}),f.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:u,"data-testid":"sentinelEnd"})]})}function Qv(e){return ge("MuiPickersPopper",e)}he("MuiPickersPopper",["root","paper"]);function Zv(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Jv=(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},ex="@media (pointer: fine)",tx="@media (prefers-reduced-motion: reduce)",En=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),cl=En&&En[1]?parseInt(En[1],10):null,ul=En&&En[2]?parseInt(En[2],10):null,nx=cl&&cl<10||ul&&ul<13||!1,Mu=()=>Gc(tx,{defaultMatches:!1})||nx,rx=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],ox=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},Qv,t)},sx=G(Pu,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),ix=G(Br,{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 ax(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function lx(e,t){const n=S.useRef(!1),r=S.useRef(!1),o=S.useRef(null),s=S.useRef(!1);S.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&&ax(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 S.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]),S.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 cx=S.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=ve(e,rx),p=N({},o,{placement:r}),g=Pe({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:p});return f.jsx(n,N({},u,g,{onClick:b=>{l(b),g.onClick?.(b)},onTouchStart:b=>{c(b),g.onTouchStart?.(b)},ownerState:p,children:s}))});function ux(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:g,reduceAnimations:b}=t;S.useEffect(()=>{function M(T){l&&T.key==="Escape"&&a()}return document.addEventListener("keydown",M),()=>{document.removeEventListener("keydown",M)}},[a,l]);const d=S.useRef(null);S.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,m,C]=lx(l,i??a),w=S.useRef(null),x=ke(w,o),v=ke(x,h),P=t,k=ox(P),I=Mu(),R=b??I,A=M=>{M.key==="Escape"&&(M.stopPropagation(),a())},O=p?.desktopTransition??R?fn:Pr,$=p?.desktopTrapFocus??ku,y=p?.desktopPaper??ix,E=p?.popper??sx,D=Pe({elementType:E,externalSlotProps:g?.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:A},className:k.root,ownerState:t});return f.jsx(E,N({},D,{children:({TransitionProps:M,placement:T})=>f.jsx($,N({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},g?.desktopTrapFocus,{children:f.jsx(O,N({},M,g?.desktopTransition,{children:f.jsx(cx,{PaperComponent:y,ownerState:P,popperPlacement:T,ref:v,onPaperClick:m,onPaperTouchStart:C,paperClasses:k.paper,paperSlotProps:g?.desktopPaper,children:r})}))}))}))}const dx=({open:e,onOpen:t,onClose:n})=>{const r=S.useRef(typeof e=="boolean").current,[o,s]=S.useState(!1);S.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=S.useCallback(a=>{r||s(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},Pi=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:s})=>{const i=Le(),a=S.useRef(n),l=t??a.current??s.emptyValue,c=S.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 g=S.useMemo(()=>s.setTimezone(i,p,l),[s,i,p,l]),b=ue((d,...h)=>{const m=u(d);o?.(m,...h)});return{value:g,handleValueChange:b,timezone:p}},ki=({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 Pi({timezone:t,value:a,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:i})},px=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},fx=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},hx=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},mx=({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:g}=S.useRef(l),{current:b}=S.useRef(a!==void 0),[d,h]=S.useState(u),m=Le(),C=yn(),{isOpen:w,setIsOpen:x}=dx(e),{timezone:v,value:P,handleValueChange:k}=Pi({timezone:u,value:a,defaultValue:g,referenceDate:p,onChange:i,valueManager:t}),[I,R]=S.useState(()=>{let z;return P!==void 0?z=P:g!==void 0?z=g:z=t.emptyValue,{draft:z,lastPublishedValue:z,lastCommittedValue:z,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),A=t.getTimezone(m,I.draft);d!==u&&(h(u),u&&A&&u!==A&&R(z=>N({},z,{draft:t.setTimezone(m,u,z.draft)})));const{getValidationErrorForNewValue:O}=uu({props:e,validator:o,timezone:v,value:I.draft,onError:e.onError}),$=ue(z=>{const U={action:z,dateState:I,hasChanged:oe=>!t.areValuesEqual(m,z.value,oe),isControlled:b,closeOnSelect:c},ne=px(U),te=fx(U),V=hx(U);R(oe=>N({},oe,{draft:z.value,lastPublishedValue:ne?z.value:oe.lastPublishedValue,lastCommittedValue:te?z.value:oe.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let Z=null;const ie=()=>(Z||(Z={validationError:z.name==="setValueFromField"?z.context.validationError:O(z.value)},z.name==="setValueFromShortcut"&&(Z.shortcut=z.shortcut)),Z);ne&&k(z.value,ie()),te&&s&&s(z.value,ie()),V&&x(!1)});if(I.lastControlledValue!==a){const z=t.areValuesEqual(m,I.draft,P);R(U=>N({},U,{lastControlledValue:a},z?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,hasBeenModifiedSinceMount:!0}))}const y=ue(()=>{$({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),E=ue(()=>{$({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),D=ue(()=>{$({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),M=ue(()=>{$({value:I.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),T=ue(()=>{$({value:t.getTodayValue(m,v,n),name:"setValueFromAction",pickerAction:"today"})}),F=ue(z=>{z.preventDefault(),x(!0)}),L=ue(z=>{z?.preventDefault(),x(!1)}),j=ue((z,U="partial")=>$({name:"setValueFromView",value:z,selectionState:U})),H=ue((z,U,ne)=>$({name:"setValueFromShortcut",value:z,changeImportance:U,shortcut:ne})),Q=ue((z,U)=>$({name:"setValueFromField",value:z,context:U})),q={onClear:y,onAccept:E,onDismiss:D,onCancel:M,onSetToday:T,onOpen:F,onClose:L},se={value:I.draft,onChange:Q},re=S.useMemo(()=>t.cleanValue(m,I.draft),[m,t,I.draft]),B={value:re,onChange:j,onClose:L,open:w},ee=N({},q,{value:re,onChange:j,onSelectShortcut:H,isValid:z=>{const U=o({adapter:C,value:z,timezone:v,props:e});return!t.hasError(U)}}),K=S.useMemo(()=>({onOpen:F,onClose:L,open:w}),[w,L,F]);return{open:w,fieldProps:se,viewProps:B,layoutProps:ee,actions:q,contextValue:K}};function Tu({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:s,focusedView:i,onFocusedViewChange:a}){const l=S.useRef(n),c=S.useRef(o),u=S.useRef(o.includes(n)?n:o[0]),[p,g]=Tt({name:"useViews",state:"view",controlled:r,default:u.current}),b=S.useRef(s?p:null),[d,h]=Tt({name:"useViews",state:"focusedView",controlled:i,default:b.current});S.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(I=>!o.includes(I)))&&(g(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,g,p,o]);const m=o.indexOf(p),C=o[m-1]??null,w=o[m+1]??null,x=ue((I,R)=>{h(R?I:A=>I===A?null:A),a?.(I,R)}),v=ue(I=>{x(I,!0),I!==p&&(g(I),t&&t(I))}),P=ue(()=>{w&&v(w)}),k=ue((I,R,A)=>{const O=R==="finish",$=A?o.indexOf(A)<o.length-1:!!w;if(e(I,O&&$?"partial":R,A),A&&A!==p){const E=o[o.indexOf(A)+1];E&&v(E)}else O&&P()});return{view:p,setView:v,focusedView:d,setFocusedView:x,nextView:w,previousView:C,defaultView:o.includes(n)?n:o[0],goToNextView:P,setValueAndGoToNextView:k}}const gx=["className","sx"],yx=({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:g,viewRenderers:b,timezone:d}=e,h=ve(e,gx),{view:m,setView:C,defaultView:w,focusedView:x,setFocusedView:v,setValueAndGoToNextView:P}=Tu({view:c,views:u,openTo:p,onChange:i,onViewChange:g,autoFocus:r}),{hasUIView:k,viewModeLookup:I}=S.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=S.useMemo(()=>u.reduce((D,M)=>b[M]!=null&&qg(M)?D+1:D,0),[b,u]),A=I[m],O=ue(()=>A==="UI"),[$,y]=S.useState(A==="UI"?m:null);return $!==m&&I[m]==="UI"&&y(m),Ue(()=>{A==="field"&&a&&(l(),setTimeout(()=>{s?.current?.setSelectedSections(m),s?.current?.focusField(m)}))},[m]),Ue(()=>{if(!a)return;let D=m;A==="field"&&$!=null&&(D=$),D!==w&&I[D]==="UI"&&I[w]==="UI"&&(D=w),D!==m&&C(D),v(D,!0)},[a]),{hasUIView:k,shouldRestoreFocus:O,layoutProps:{views:u,view:$,onViewChange:C},renderCurrentView:()=>{if($==null)return null;const D=b[$];if(D==null)return null;const M=N({},h,n,t,{views:u,timezone:d,onChange:P,view:$,onViewChange:C,focusedView:x,onFocusedViewChange:v,showViewSwitcher:R>1,timeViewsCount:R});return o?o(b,$,M):D(M)}}};function dl(){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 bx=(e,t)=>{const[n,r]=S.useState(dl);return Ue(()=>{const s=()=>{r(dl())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),Zv(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},vx=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=bx(n.views,o),i=vt();return{layoutProps:N({},n,t,{isLandscape:s,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function xx(e){const{props:t,pickerValueResponse:n}=e;return S.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 Du=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:s,autoFocusView:i,rendererInterceptor:a,fieldRef:l})=>{const c=mx({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=yx({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),p=vx({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),g=xx({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:g}};function Ru(e){return ge("MuiPickersLayout",e)}const Jt=he("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Sx(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"]),wx=S.createContext({}),Cx=S.createContext(void 0),Px=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,Sx,l);return{...l,...u}},Iu=[{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}}}],kx=G(Bn,{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"}}}]}})),Mx=G("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}},...Iu]})),Tx=G("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}},...Iu]})),Dx=G("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}}]})),pl=G("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),pr=S.forwardRef(function(t,n){const r=S.useContext(wx),o=S.useContext(Cx),s=Sr(r,t),i=Ce({props:s,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:p=!1,disableElevation:g=!1,disableFocusRipple:b=!1,endIcon:d,focusVisibleClassName:h,fullWidth:m=!1,id:C,loading:w=null,loadingIndicator:x,loadingPosition:v="center",size:P="medium",startIcon:k,type:I,variant:R="text",...A}=i,O=xt(C),$=x??f.jsx(gi,{"aria-labelledby":O,color:"inherit",size:16}),y={...i,color:l,component:c,disabled:p,disableElevation:g,disableFocusRipple:b,fullWidth:m,loading:w,loadingIndicator:$,loadingPosition:v,size:P,type:I,variant:R},E=Px(y),D=(k||w&&v==="start")&&f.jsx(Mx,{className:E.startIcon,ownerState:y,children:k||f.jsx(pl,{className:E.loadingIconPlaceholder,ownerState:y})}),M=(d||w&&v==="end")&&f.jsx(Tx,{className:E.endIcon,ownerState:y,children:d||f.jsx(pl,{className:E.loadingIconPlaceholder,ownerState:y})}),T=o||"",F=typeof w=="boolean"?f.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:w&&f.jsx(Dx,{className:E.loadingIndicator,ownerState:y,children:$})}):null;return f.jsxs(kx,{ownerState:y,className:de(r.className,E.root,u,T),component:c,disabled:p||w,focusRipple:!b,focusVisibleClassName:de(E.focusVisible,h),ref:n,type:I,id:w?O:C,...A,classes:E,children:[D,v!=="end"&&F,a,v==="end"&&F,M]})});function Rx(e){return ge("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const Ix=e=>{const{classes:t,disableSpacing:n}=e;return me({root:["root",!n&&"spacing"]},Rx,t)},Ex=G("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}}}]}),$x=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...i}=r,a={...r,disableSpacing:s},l=Ix(a);return f.jsx(Ex,{className:de(l.root,o),ownerState:a,ref:n,...i})}),Ox=["onAccept","onClear","onCancel","onSetToday","actions"];function Ax(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=ve(e,Ox),a=jt();if(s==null||s.length===0)return null;const l=s?.map(c=>{switch(c){case"clear":return f.jsx(pr,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return f.jsx(pr,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return f.jsx(pr,{onClick:t,children:a.okButtonLabel},c);case"today":return f.jsx(pr,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return f.jsx($x,N({},i,{children:l}))}const $n=S.createContext({});function Fx(e){return ge("MuiList",e)}he("MuiList",["root","padding","dense","subheader"]);const Lx=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Fx,t)},Nx=G("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}}]}),Eu=S.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=S.useMemo(()=>({dense:a}),[a]),g={...r,component:i,dense:a,disablePadding:l},b=Lx(g);return f.jsx($n.Provider,{value:p,children:f.jsxs(Nx,{as:i,className:de(b.root,s),ref:n,ownerState:g,...u,children:[c,o]})})});function jx(e){return ge("MuiListItem",e)}he("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Bx=he("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Vx(e){return ge("MuiListItemSecondaryAction",e)}he("MuiListItemSecondaryAction",["root","disableGutters"]);const zx=e=>{const{disableGutters:t,classes:n}=e;return me({root:["root",t&&"disableGutters"]},Vx,n)},_x=G("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}}]}),$u=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...s}=r,i=S.useContext($n),a={...r,disableGutters:i.disableGutters},l=zx(a);return f.jsx(_x,{className:de(l.root,o),ownerState:a,ref:n,...s})});$u.muiName="ListItemSecondaryAction";const Wx=(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]},Hx=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"]},jx,n)},Ux=G("div",{name:"MuiListItem",slot:"Root",overridesResolver:Wx})(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:{[`& > .${Bx.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}}]}))),Yx=G("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Gx=S.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,...g}={},dense:b=!1,disableGutters:d=!1,disablePadding:h=!1,divider:m=!1,secondaryAction:C,slotProps:w={},slots:x={},...v}=r,P=S.useContext($n),k=S.useMemo(()=>({dense:b||P.dense||!1,alignItems:o,disableGutters:d}),[o,P.dense,b,d]),I=S.useRef(null),R=S.Children.toArray(s),A=R.length&&no(R[R.length-1],["ListItemSecondaryAction"]),O={...r,alignItems:o,dense:k.dense,disableGutters:d,disablePadding:h,divider:m,hasSecondaryAction:A},$=Hx(O),y=ke(I,n),E=x.root||l.Root||Ux,D=w.root||c.root||{},M={className:de($.root,D.className,i),...v};let T=a||"li";return A?(T=!M.component&&!a?"div":T,u==="li"&&(T==="li"?T="div":M.component==="li"&&(M.component="div")),f.jsx($n.Provider,{value:k,children:f.jsxs(Yx,{as:u,className:de($.container,p),ref:y,ownerState:O,...g,children:[f.jsx(E,{...D,...!jn(E)&&{as:T,ownerState:{...O,...D.ownerState}},...M,children:R}),R.pop()]})})):f.jsx($n.Provider,{value:k,children:f.jsxs(E,{...D,as:T,ref:y,...!jn(E)&&{ownerState:{...O,...D.ownerState}},...M,children:[R,C&&f.jsx($u,{children:C})]})})}),qx=$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 Kx(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},...g}=s,b=u[e]||r,d=zo(p[e],o),{props:{component:h,...m},internalRef:C}=Zc({className:n,...l,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:d}),w=ke(C,d?.ref,t.ref),x=e==="root"?h||c:h,v=Qc(b,{...e==="root"&&!c&&!u[e]&&i,...e!=="root"&&!u[e]&&i,...m,...x&&!a&&{as:x},...x&&a&&{component:x},ref:w},o);return[b,v]}const Xx=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,Kx,t)},Qx=G("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}}}}))]}})),Zx=G("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 fl(e){return e.key==="Backspace"||e.key==="Delete"}const Ou=S.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:g,onClick:b,onDelete:d,onKeyDown:h,onKeyUp:m,size:C="medium",variant:w="filled",tabIndex:x,skipFocusWhenDisabled:v=!1,slots:P={},slotProps:k={},...I}=r,R=S.useRef(null),A=ke(R,n),O=J=>{J.stopPropagation(),d&&d(J)},$=J=>{J.currentTarget===J.target&&fl(J)&&J.preventDefault(),h&&h(J)},y=J=>{J.currentTarget===J.target&&d&&fl(J)&&d(J),m&&m(J)},E=i!==!1&&b?!0:i,D=E||d?Bn:l||"div",M={...r,component:D,disabled:u,size:C,color:a,iconColor:S.isValidElement(p)&&p.props.color||a,onDelete:!!d,clickable:E,variant:w},T=Xx(M),F=D===Bn?{component:l||"div",focusVisibleClassName:T.focusVisible,...d&&{disableRipple:!0}}:{};let L=null;d&&(L=c&&S.isValidElement(c)?S.cloneElement(c,{className:de(c.props.className,T.deleteIcon),onClick:O}):f.jsx(qx,{className:T.deleteIcon,onClick:O}));let j=null;o&&S.isValidElement(o)&&(j=S.cloneElement(o,{className:de(T.avatar,o.props.className)}));let H=null;p&&S.isValidElement(p)&&(H=S.cloneElement(p,{className:de(T.icon,p.props.className)}));const Q={slots:P,slotProps:k},[q,se]=je("root",{elementType:Qx,externalForwardedProps:{...Q,...I},ownerState:M,shouldForwardComponentProp:!0,ref:A,className:de(T.root,s),additionalProps:{disabled:E&&u?!0:void 0,tabIndex:v&&u?-1:x,...F},getSlotProps:J=>({...J,onClick:ee=>{J.onClick?.(ee),b?.(ee)},onKeyDown:ee=>{J.onKeyDown?.(ee),$(ee)},onKeyUp:ee=>{J.onKeyUp?.(ee),y(ee)}})}),[re,B]=je("label",{elementType:Zx,externalForwardedProps:Q,ownerState:M,className:T.label});return f.jsxs(q,{as:D,...se,children:[j||H,f.jsx(re,{...B,children:g}),L]})}),Tr=36,Yo=2,Go=320,Jx=280,Mi=336,e0=["items","changeImportance","isLandscape","onChange","isValid"],t0=["getValue"];function n0(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,s=ve(e,e0);if(t==null||t.length===0)return null;const i=t.map(a=>{let{getValue:l}=a,c=ve(a,t0);const u=l({isValid:o});return N({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return f.jsx(Eu,N({dense:!0,sx:[{maxHeight:Mi,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(a=>f.jsx(Gx,{children:f.jsx(Ou,N({},a))},a.id??a.label))}))}function r0(e){return e.view!==null}const o0=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"]},Ru,t)},s0=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:g,isLandscape:b,disabled:d,readOnly:h,children:m,slots:C,slotProps:w}=e,x=o0(e),v=C?.actionBar??Ax,P=Pe({elementType:v,externalSlotProps:w?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:x.actionBar,ownerState:N({},e,{wrapperVariant:t})}),k=f.jsx(v,N({},P)),I=C?.toolbar,R=Pe({elementType:I,externalSlotProps:w?.toolbar,additionalProps:{isLandscape:b,onChange:u,value:c,view:i,onViewChange:l,views:a,disabled:d,readOnly:h},className:x.toolbar,ownerState:N({},e,{wrapperVariant:t})}),A=r0(R)&&I?f.jsx(I,N({},R)):null,O=m,$=C?.tabs,y=i&&$?f.jsx($,N({view:i,onViewChange:l,className:x.tabs},w?.tabs)):null,E=C?.shortcuts??n0,D=Pe({elementType:E,externalSlotProps:w?.shortcuts,additionalProps:{isValid:g,isLandscape:b,onChange:p},className:x.shortcuts,ownerState:{isValid:g,isLandscape:b,onChange:p,wrapperVariant:t}}),M=i&&E?f.jsx(E,N({},D)):null;return{toolbar:A,content:O,tabs:y,actionBar:k,shortcuts:M}},i0=e=>{const{isLandscape:t,classes:n}=e;return me({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Ru,n)},a0=G("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}}}]}),l0=G("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Au=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:s,tabs:i,actionBar:a,shortcuts:l}=s0(r),{sx:c,className:u,isLandscape:p,wrapperVariant:g}=r,b=i0(r);return f.jsxs(a0,{ref:n,sx:c,className:de(b.root,u),ownerState:r,children:[p?l:o,p?o:l,f.jsx(l0,{className:b.contentWrapper,children:g==="desktop"?f.jsxs(S.Fragment,{children:[s,i]}):f.jsxs(S.Fragment,{children:[i,s]})}),a]})}),c0=S.createContext(null);function Fu(e){const{contextValue:t,localeText:n,children:r}=e;return f.jsx(c0.Provider,{value:t,children:f.jsx(Cr,{localeText:n,children:r})})}const u0=["props","getOpenDialogAriaText"],d0=["ownerState"],p0=["ownerState"],f0=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,u0);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:g,timezone:b,name:d,label:h,inputRef:m,readOnly:C,disabled:w,autoFocus:x,localeText:v,reduceAnimations:P}=t,k=S.useRef(null),I=S.useRef(null),R=xt(),A=s?.toolbar?.hidden??!1,{open:O,actions:$,hasUIView:y,layoutProps:E,renderCurrentView:D,shouldRestoreFocus:M,fieldProps:T,contextValue:F,ownerState:L}=Du(N({},r,{props:t,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),j=o.inputAdornment??du,H=Pe({elementType:j,externalSlotProps:s?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),Q=ve(H,d0),q=o.openPickerButton??jr,se=Pe({elementType:q,externalSlotProps:s?.openPickerButton,additionalProps:{disabled:w||C,onClick:O?$.onClose:$.onOpen,"aria-label":n(T.value),edge:Q.position},ownerState:t}),re=ve(se,p0),B=o.openPickerIcon,J=Pe({elementType:B,externalSlotProps:s?.openPickerIcon,ownerState:L}),ee=o.field,K=Pe({elementType:ee,externalSlotProps:s?.field,additionalProps:N({},T,A&&{id:R},{readOnly:C,disabled:w,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:g,timezone:b,label:h,name:d,autoFocus:x&&!t.open,focused:O?!0:void 0},m?{inputRef:m}:{}),ownerState:t});y&&(K.InputProps=N({},K.InputProps,{ref:k},!t.disableOpenPicker&&{[`${Q.position}Adornment`]:f.jsx(j,N({},Q,{children:f.jsx(q,N({},re,{children:f.jsx(B,N({},J))}))}))}));const z=N({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},K.slots),U=o.layout??Au;let ne=R;A&&(h?ne=`${R}-label`:ne=void 0);const te=N({},s,{toolbar:N({},s?.toolbar,{titleId:R}),popper:N({"aria-labelledby":ne},s?.popper)}),V=ke(I,K.unstableFieldRef);return{renderPicker:()=>f.jsxs(Fu,{contextValue:F,localeText:v,children:[f.jsx(ee,N({},K,{slots:z,slotProps:te,unstableFieldRef:V})),f.jsx(ux,N({role:"dialog",placement:"bottom-start",anchorEl:k.current},$,{open:O,slots:o,slotProps:te,shouldRestoreFocus:M,reduceAnimations:P,children:f.jsx(U,N({},E,te?.layout,{slots:o,slotProps:te,children:D()}))}))]})}},h0=$e(f.jsx("path",{d:"M7 10l5 5 5-5z"})),m0=$e(f.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),g0=$e(f.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),y0=$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(S.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(S.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 b0=$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 Gr(e){return parseInt(e,10)||0}const v0={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function x0(e){for(const t in e)return!1;return!0}function hl(e){return x0(e)||e.outerHeightStyle===0&&!e.overflowing}const S0=S.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:i,value:a,...l}=t,{current:c}=S.useRef(a!=null),u=S.useRef(null),p=ke(n,u),g=S.useRef(null),b=S.useRef(null),d=S.useCallback(()=>{const x=u.current,v=b.current;if(!x||!v)return;const k=Ft(x).getComputedStyle(x);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};v.style.width=k.width,v.value=x.value||t.placeholder||"x",v.value.slice(-1)===`
133
+ `&&(v.value+=" ");const I=k.boxSizing,R=Gr(k.paddingBottom)+Gr(k.paddingTop),A=Gr(k.borderBottomWidth)+Gr(k.borderTopWidth),O=v.scrollHeight;v.value="x";const $=v.scrollHeight;let y=O;s&&(y=Math.max(Number(s)*$,y)),o&&(y=Math.min(Number(o)*$,y)),y=Math.max(y,$);const E=y+(I==="border-box"?R+A:0),D=Math.abs(y-O)<=1;return{outerHeightStyle:E,overflowing:D}},[o,s,t.placeholder]),h=ue(()=>{const x=u.current,v=d();if(!x||!v||hl(v))return!1;const P=v.outerHeightStyle;return g.current!=null&&g.current!==P}),m=S.useCallback(()=>{const x=u.current,v=d();if(!x||!v||hl(v))return;const P=v.outerHeightStyle;g.current!==P&&(g.current=P,x.style.height=`${P}px`),x.style.overflow=v.overflowing?"hidden":""},[d]),C=S.useRef(-1);Ue(()=>{const x=nc(m),v=u?.current;if(!v)return;const P=Ft(v);P.addEventListener("resize",x);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{h()&&(k.unobserve(v),cancelAnimationFrame(C.current),m(),C.current=requestAnimationFrame(()=>{k.observe(v)}))}),k.observe(v)),()=>{x.clear(),cancelAnimationFrame(C.current),P.removeEventListener("resize",x),k&&k.disconnect()}},[d,m,h]),Ue(()=>{m()});const w=x=>{c||m();const v=x.target,P=v.value.length,k=v.value.endsWith(`
134
+ `),I=v.selectionStart===P;k&&I&&v.setSelectionRange(P,P),r&&r(x)};return f.jsxs(S.Fragment,{children:[f.jsx("textarea",{value:a,onChange:w,ref:p,rows:s,style:i,...l}),f.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...v0.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function bn({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 ml(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ko(e,t=!1){return e&&(ml(e.value)&&e.value!==""||t&&ml(e.defaultValue)&&e.defaultValue!=="")}function w0(e){return e.startAdornment}function C0(e){return ge("MuiInputBase",e)}const mn=he("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var gl;const qo=(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]},Ko=(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]},P0=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:g,startAdornment:b,type:d}=e,h={root:["root",`color${le(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",a&&"formControl",g&&g!=="medium"&&`size${le(g)}`,u&&"multiline",b&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",d==="search"&&"inputTypeSearch",u&&"inputMultiline",g==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",p&&"readOnly"]};return me(h,C0,t)},Xo=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:qo})(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",[`&.${mn.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%"}}]}))),Qo=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ko})(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] + .${mn.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},[`&.${mn.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"}}]}})),yl=_h({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ti=S.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:g,disableInjectingGlobalStyles:b,endAdornment:d,error:h,fullWidth:m=!1,id:C,inputComponent:w="input",inputProps:x={},inputRef:v,margin:P,maxRows:k,minRows:I,multiline:R=!1,name:A,onBlur:O,onChange:$,onClick:y,onFocus:E,onKeyDown:D,onKeyUp:M,placeholder:T,readOnly:F,renderSuffix:L,rows:j,size:H,slotProps:Q={},slots:q={},startAdornment:se,type:re="text",value:B,...J}=r,ee=x.value!=null?x.value:B,{current:K}=S.useRef(ee!=null),z=S.useRef(),U=S.useCallback(Oe=>{},[]),ne=ke(z,v,x.ref,U),[te,V]=S.useState(!1),Z=ft(),ie=bn({props:r,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=Z?Z.focused:te,S.useEffect(()=>{!Z&&g&&te&&(V(!1),O&&O())},[Z,g,te,O]);const oe=Z&&Z.onFilled,ce=Z&&Z.onEmpty,ae=S.useCallback(Oe=>{ko(Oe)?oe&&oe():ce&&ce()},[oe,ce]);Ue(()=>{K&&ae({value:ee})},[ee,ae,K]);const fe=Oe=>{E&&E(Oe),x.onFocus&&x.onFocus(Oe),Z&&Z.onFocus?Z.onFocus(Oe):V(!0)},be=Oe=>{O&&O(Oe),x.onBlur&&x.onBlur(Oe),Z&&Z.onBlur?Z.onBlur(Oe):V(!1)},we=(Oe,...Vt)=>{if(!K){const zt=Oe.target||z.current;if(zt==null)throw new Error(Ot(1));ae({value:zt.value})}x.onChange&&x.onChange(Oe,...Vt),$&&$(Oe,...Vt)};S.useEffect(()=>{ae(z.current)},[]);const pe=Oe=>{z.current&&Oe.currentTarget===Oe.target&&z.current.focus(),y&&y(Oe)};let qe=w,Be=x;R&&qe==="input"&&(j?Be={type:void 0,minRows:j,maxRows:j,...Be}:Be={type:void 0,maxRows:k,minRows:I,...Be},qe=S0);const ht=Oe=>{ae(Oe.animationName==="mui-auto-fill-cancel"?z.current:{value:"x"})};S.useEffect(()=>{Z&&Z.setAdornedStart(!!se)},[Z,se]);const mt={...r,color:ie.color||"primary",disabled:ie.disabled,endAdornment:d,error:ie.error,focused:ie.focused,formControl:Z,fullWidth:m,hiddenLabel:ie.hiddenLabel,multiline:R,size:ie.size,startAdornment:se,type:re},nt=P0(mt),rt=q.root||c.Root||Xo,Bt=Q.root||u.root||{},gt=q.input||c.Input||Qo;return Be={...Be,...Q.input??u.input},f.jsxs(S.Fragment,{children:[!b&&typeof yl=="function"&&(gl||(gl=f.jsx(yl,{}))),f.jsxs(rt,{...Bt,ref:n,onClick:pe,...J,...!jn(rt)&&{ownerState:{...mt,...Bt.ownerState}},className:de(nt.root,Bt.className,a,F&&"MuiInputBase-readOnly"),children:[se,f.jsx(Ho.Provider,{value:null,children:f.jsx(gt,{"aria-invalid":ie.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:p,disabled:ie.disabled,id:C,onAnimationStart:ht,name:A,placeholder:T,readOnly:F,required:ie.required,rows:j,value:ee,onKeyDown:D,onKeyUp:M,type:re,...Be,...!jn(gt)&&{as:qe,ownerState:{...mt,...Be.ownerState}},ref:ne,className:de(nt.input,Be.className,F&&"MuiInputBase-readOnly"),onBlur:be,onChange:we,onFocus:fe})}),d,L?L({...ie,startAdornment:se}):null]})]})});function k0(e){return ge("MuiInput",e)}const Tn={...mn,...he("MuiInput",["root","underline","input"])},M0=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},k0,t);return{...t,...o}},T0=G(Xo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...qo(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"},[`&.${Tn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Tn.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(.${Tn.disabled}, .${Tn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Tn.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}`}}}))]}})),D0=G(Qo,{name:"MuiInput",slot:"Input",overridesResolver:Ko})({}),Di=S.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:g="text",...b}=r,d=M0(r),m={root:{ownerState:{disableUnderline:o}}},C=u??i?Ge(u??i,m):m,w=p.root??s.Root??T0,x=p.input??s.Input??D0;return f.jsx(Ti,{slots:{root:w,input:x},slotProps:C,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:g,...b,classes:d})});Di.muiName="Input";function R0(e){return ge("MuiFilledInput",e)}const Ut={...mn,...he("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},I0=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,R0,t);return{...t,...c}},E0=G(Xo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...qo(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}}]}})),$0=G(Qo,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ko})(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}}]}))),Ri=S.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:g={},type:b="text",...d}=r,h={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:b},m=I0(r),C={root:{ownerState:h},input:{ownerState:h}},w=p??i?Ge(C,p??i):C,x=g.root??s.Root??E0,v=g.input??s.Input??$0;return f.jsx(Ti,{slots:{root:x,input:v},slotProps:w,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:b,...d,classes:m})});Ri.muiName="Input";var bl;const O0=G("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%"}),A0=G("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 F0(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(O0,{"aria-hidden":!0,className:r,ownerState:l,...i,children:f.jsx(A0,{ownerState:l,children:a?f.jsx("span",{children:o}):bl||(bl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function L0(e){return ge("MuiOutlinedInput",e)}const bt={...mn,...he("MuiOutlinedInput",["root","notchedOutline","input"])},N0=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},L0,t);return{...t,...r}},j0=G(Xo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:qo})(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"}}]}})),B0=G(F0,{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}})),V0=G(Qo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ko})(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}}]}))),Ii=S.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:g="text",...b}=r,d=N0(r),h=ft(),m=bn({props:r,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...r,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:h,fullWidth:s,hiddenLabel:m.hiddenLabel,multiline:l,size:m.size,type:g},w=u.root??o.Root??j0,x=u.input??o.Input??V0,[v,P]=je("notchedOutline",{elementType:B0,className:d.notchedOutline,shouldForwardComponentProp:!0,ownerState:C,externalForwardedProps:{slots:u,slotProps:p},additionalProps:{label:a!=null&&a!==""&&m.required?f.jsxs(S.Fragment,{children:[a," ","*"]}):a}});return f.jsx(Ti,{slots:{root:w,input:x},slotProps:p,renderSuffix:k=>f.jsx(v,{...P,notched:typeof c<"u"?c:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:s,inputComponent:i,multiline:l,ref:n,type:g,...b,classes:{...d,notchedOutline:null}})});Ii.muiName="Input";function z0(e){return ge("MuiFormLabel",e)}const yr=he("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),_0=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,z0,t)},W0=G("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:{[`&.${yr.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${yr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yr.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),H0=G("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ee(({theme:e})=>({[`&.${yr.error}`]:{color:(e.vars||e).palette.error.main}}))),U0=S.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:g,...b}=r,d=ft(),h=bn({props:r,muiFormControl:d,states:["color","required","focused","disabled","error","filled"]}),m={...r,color:h.color||"primary",component:a,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},C=_0(m);return f.jsxs(W0,{as:a,ownerState:m,className:de(C.root,s),ref:n,...b,children:[o,h.required&&f.jsxs(H0,{ownerState:m,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function Y0(e){return ge("MuiInputLabel",e)}he("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const G0=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,Y0,t);return{...t,...c}},q0=G(U0,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${yr.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)"}}]}))),Ei=S.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 g=bn({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),b={...r,disableAnimation:o,formControl:u,shrink:p,size:g.size,variant:g.variant,required:g.required,focused:g.focused},d=G0(b);return f.jsx(q0,{"data-shrink":p,ref:n,className:de(d.root,l),...c,ownerState:b,classes:d})});function K0(e){return ge("MuiFormControl",e)}he("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const X0=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${le(n)}`,r&&"fullWidth"]};return me(o,K0,t)},Q0=G("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%"}}]}),$i=S.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:g=!1,margin:b="none",required:d=!1,size:h="medium",variant:m="outlined",...C}=r,w={...r,color:i,component:a,disabled:l,error:c,fullWidth:p,hiddenLabel:g,margin:b,required:d,size:h,variant:m},x=X0(w),[v,P]=S.useState(()=>{let M=!1;return o&&S.Children.forEach(o,T=>{if(!no(T,["Input","Select"]))return;const F=no(T,["Select"])?T.props.input:T;F&&w0(F.props)&&(M=!0)}),M}),[k,I]=S.useState(()=>{let M=!1;return o&&S.Children.forEach(o,T=>{no(T,["Input","Select"])&&(ko(T.props,!0)||ko(T.props.inputProps,!0))&&(M=!0)}),M}),[R,A]=S.useState(!1);l&&R&&A(!1);const O=u!==void 0&&!l?u:R;let $;S.useRef(!1);const y=S.useCallback(()=>{I(!0)},[]),E=S.useCallback(()=>{I(!1)},[]),D=S.useMemo(()=>({adornedStart:v,setAdornedStart:P,color:i,disabled:l,error:c,filled:k,focused:O,fullWidth:p,hiddenLabel:g,size:h,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:E,onFilled:y,registerEffect:$,required:d,variant:m}),[v,i,l,c,k,O,p,g,$,E,y,d,h,m]);return f.jsx(Ho.Provider,{value:D,children:f.jsx(Q0,{as:a,ownerState:w,className:de(x.root,s),ref:n,...C,children:o})})});function Z0(e){return ge("MuiFormHelperText",e)}const vl=he("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var xl;const J0=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,Z0,t)},eS=G("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,[`&.${vl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vl.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}}]}))),Lu=S.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:g,variant:b,...d}=r,h=ft(),m=bn({props:r,muiFormControl:h,states:["variant","size","disabled","error","filled","focused","required"]}),C={...r,component:i,contained:m.variant==="filled"||m.variant==="outlined",variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete C.ownerState;const w=J0(C);return f.jsx(eS,{as:i,className:de(w.root,s),ref:n,...d,ownerState:C,children:o===" "?xl||(xl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function fs(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Sl(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Nu(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 tr(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")||!Nu(a,s)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const tS=S.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",...g}=t,b=S.useRef(null),d=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ue(()=>{o&&b.current.focus()},[o]),S.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:v})=>{const P=!b.current.style.width;if(x.clientHeight<b.current.clientHeight&&P){const k=`${Xc(Ft(x))}px`;b.current.style[v==="rtl"?"paddingLeft":"paddingRight"]=k,b.current.style.width=`calc(100% + ${k})`}return b.current}}),[]);const h=x=>{const v=b.current,P=x.key;if(x.ctrlKey||x.metaKey||x.altKey){u&&u(x);return}const I=Ye(v).activeElement;if(P==="ArrowDown")x.preventDefault(),tr(v,I,c,l,fs);else if(P==="ArrowUp")x.preventDefault(),tr(v,I,c,l,Sl);else if(P==="Home")x.preventDefault(),tr(v,null,c,l,fs);else if(P==="End")x.preventDefault(),tr(v,null,c,l,Sl);else if(P.length===1){const R=d.current,A=P.toLowerCase(),O=performance.now();R.keys.length>0&&(O-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&A!==R.keys[0]&&(R.repeating=!1)),R.lastTime=O,R.keys.push(A);const $=I&&!R.repeating&&Nu(I,R);R.previousKeyMatched&&($||tr(v,I,!1,l,fs,R))?x.preventDefault():R.previousKeyMatched=!1}u&&u(x)},m=ke(b,n);let C=-1;S.Children.forEach(i,(x,v)=>{if(!S.isValidElement(x)){C===v&&(C+=1,C>=i.length&&(C=-1));return}x.props.disabled||(p==="selectedMenu"&&x.props.selected||C===-1)&&(C=v),C===v&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(C+=1,C>=i.length&&(C=-1))});const w=S.Children.map(i,(x,v)=>{if(v===C){const P={};return s&&(P.autoFocus=!0),x.props.tabIndex===void 0&&p==="selectedMenu"&&(P.tabIndex=0),S.cloneElement(x,P)}return x});return f.jsx(Eu,{role:"menu",ref:m,className:a,onKeyDown:h,tabIndex:o?0:-1,...g,children:w})});function nS(e){const t=Ye(e);return t.body===e?Ft(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function br(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wl(e){return parseInt(Ft(e).getComputedStyle(e).paddingRight,10)||0}function rS(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 Cl(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const a=!s.includes(i),l=!rS(i);a&&l&&br(i,o)})}function hs(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function oS(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(nS(r)){const i=Xc(Ft(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${wl(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=`${wl(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 sS(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class iS{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&&br(t.modalRef,!1);const o=sS(n);Cl(n,t.mount,t.modalRef,o,!0);const s=hs(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=hs(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=oS(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=hs(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&&br(t.modalRef,n),Cl(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&&br(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function aS(e){return ge("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const lS=e=>{const{classes:t,invisible:n}=e;return me({root:["root",n&&"invisible"]},aS,t)},cS=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),ju=S.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:g={},TransitionComponent:b,transitionDuration:d,...h}=r,m={...r,component:i,invisible:a},C=lS(m),w={transition:b,root:c.Root,...g},x={...u,...p},v={component:i,slots:w,slotProps:x},[P,k]=je("root",{elementType:cS,externalForwardedProps:v,className:de(C.root,s),ownerState:m}),[I,R]=je("transition",{elementType:fn,externalForwardedProps:v,ownerState:m});return f.jsx(I,{in:l,timeout:d,...h,...R,children:f.jsx(P,{"aria-hidden":!0,...k,classes:C,ref:n,children:o})})});function uS(e){return typeof e=="function"?e():e}function dS(e){return e?e.props.hasOwnProperty("in"):!1}const Pl=()=>{},qr=new iS;function pS(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=S.useRef({}),g=S.useRef(null),b=S.useRef(null),d=ke(b,u),[h,m]=S.useState(!c),C=dS(a);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const x=()=>Ye(g.current),v=()=>(p.current.modalRef=b.current,p.current.mount=g.current,p.current),P=()=>{qr.mount(v(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},k=ue(()=>{const M=uS(t)||x().body;qr.add(v(),M),b.current&&P()}),I=()=>qr.isTopModal(v()),R=ue(M=>{g.current=M,M&&(c&&I()?P():b.current&&br(b.current,w))}),A=S.useCallback(()=>{qr.remove(v(),w)},[w]);S.useEffect(()=>()=>{A()},[A]),S.useEffect(()=>{c?k():(!C||!o)&&A()},[c,A,C,o,k]);const O=M=>T=>{M.onKeyDown?.(T),!(T.key!=="Escape"||T.which===229||!I())&&(n||(T.stopPropagation(),l&&l(T,"escapeKeyDown")))},$=M=>T=>{M.onClick?.(T),T.target===T.currentTarget&&l&&l(T,"backdropClick")};return{getRootProps:(M={})=>{const T=li(e);delete T.onTransitionEnter,delete T.onTransitionExited;const F={...T,...M};return{role:"presentation",...F,onKeyDown:O(F),ref:d}},getBackdropProps:(M={})=>{const T=M;return{"aria-hidden":!0,...T,onClick:$(T),open:c}},getTransitionProps:()=>{const M=()=>{m(!1),s&&s()},T=()=>{m(!0),i&&i(),o&&A()};return{onEnter:ea(M,a?.props.onEnter??Pl),onExited:ea(T,a?.props.onExited??Pl)}},rootRef:d,portalRef:R,isTopModal:I,exited:h,hasTransition:C}}function fS(e){return ge("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const hS=e=>{const{open:t,exited:n,classes:r}=e;return me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},fS,r)},mS=G("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"}}]}))),gS=G(ju,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Bu=S.forwardRef(function(t,n){const r=Ce({name:"MuiModal",props:t}),{BackdropComponent:o=gS,BackdropProps:s,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:u,component:p,components:g={},componentsProps:b={},disableAutoFocus:d=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:m=!1,disablePortal:C=!1,disableRestoreFocus:w=!1,disableScrollLock:x=!1,hideBackdrop:v=!1,keepMounted:P=!1,onClose:k,onTransitionEnter:I,onTransitionExited:R,open:A,slotProps:O={},slots:$={},theme:y,...E}=r,D={...r,closeAfterTransition:l,disableAutoFocus:d,disableEnforceFocus:h,disableEscapeKeyDown:m,disablePortal:C,disableRestoreFocus:w,disableScrollLock:x,hideBackdrop:v,keepMounted:P},{getRootProps:M,getBackdropProps:T,getTransitionProps:F,portalRef:L,isTopModal:j,exited:H,hasTransition:Q}=pS({...D,rootRef:n}),q={...D,exited:H},se=hS(q),re={};if(c.props.tabIndex===void 0&&(re.tabIndex="-1"),Q){const{onEnter:U,onExited:ne}=F();re.onEnter=U,re.onExited=ne}const B={slots:{root:g.Root,backdrop:g.Backdrop,...$},slotProps:{...b,...O}},[J,ee]=je("root",{ref:n,elementType:mS,externalForwardedProps:{...B,...E,component:p},getSlotProps:M,ownerState:q,className:de(a,se?.root,!q.open&&q.exited&&se?.hidden)}),[K,z]=je("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:U=>T({...U,onClick:ne=>{U?.onClick&&U.onClick(ne)}}),className:de(s?.className,se?.backdrop),ownerState:q});return!P&&!A&&(!Q||H)?null:f.jsx(Cu,{ref:L,container:u,disablePortal:C,children:f.jsxs(J,{...ee,children:[!v&&o?f.jsx(K,{...z}):null,f.jsx(ku,{disableEnforceFocus:h,disableAutoFocus:d,disableRestoreFocus:w,isEnabled:j,open:A,children:S.cloneElement(c,re)})]})})});function yS(e){return ge("MuiPopover",e)}he("MuiPopover",["root","paper"]);function kl(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ml(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Tl(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Kr(e){return typeof e=="function"?e():e}const bS=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},yS,t)},vS=G(Bu,{name:"MuiPopover",slot:"Root"})({}),Vu=G(Br,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),xS=S.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:g=8,marginThreshold:b=16,open:d,PaperProps:h={},slots:m={},slotProps:C={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:v="auto",TransitionProps:P={},disableScrollLock:k=!1,...I}=r,R=S.useRef(),A={...r,anchorOrigin:i,anchorReference:l,elevation:g,marginThreshold:b,transformOrigin:w,TransitionComponent:x,transitionDuration:v,TransitionProps:P},O=bS(A),$=S.useCallback(()=>{if(l==="anchorPosition")return a;const U=Kr(s),te=(U&&U.nodeType===1?U:Ye(R.current).body).getBoundingClientRect();return{top:te.top+kl(te,i.vertical),left:te.left+Ml(te,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),y=S.useCallback(U=>({vertical:kl(U,w.vertical),horizontal:Ml(U,w.horizontal)}),[w.horizontal,w.vertical]),E=S.useCallback(U=>{const ne={width:U.offsetWidth,height:U.offsetHeight},te=y(ne);if(l==="none")return{top:null,left:null,transformOrigin:Tl(te)};const V=$();let Z=V.top-te.vertical,ie=V.left-te.horizontal;const oe=Z+ne.height,ce=ie+ne.width,ae=Ft(Kr(s)),fe=ae.innerHeight-b,be=ae.innerWidth-b;if(b!==null&&Z<b){const we=Z-b;Z-=we,te.vertical+=we}else if(b!==null&&oe>fe){const we=oe-fe;Z-=we,te.vertical+=we}if(b!==null&&ie<b){const we=ie-b;ie-=we,te.horizontal+=we}else if(ce>be){const we=ce-be;ie-=we,te.horizontal+=we}return{top:`${Math.round(Z)}px`,left:`${Math.round(ie)}px`,transformOrigin:Tl(te)}},[s,l,$,y,b]),[D,M]=S.useState(d),T=S.useCallback(()=>{const U=R.current;if(!U)return;const ne=E(U);ne.top!==null&&U.style.setProperty("top",ne.top),ne.left!==null&&(U.style.left=ne.left),U.style.transformOrigin=ne.transformOrigin,M(!0)},[E]);S.useEffect(()=>(k&&window.addEventListener("scroll",T),()=>window.removeEventListener("scroll",T)),[s,k,T]);const F=()=>{T()},L=()=>{M(!1)};S.useEffect(()=>{d&&T()}),S.useImperativeHandle(o,()=>d?{updatePosition:()=>{T()}}:null,[d,T]),S.useEffect(()=>{if(!d)return;const U=nc(()=>{T()}),ne=Ft(Kr(s));return ne.addEventListener("resize",U),()=>{U.clear(),ne.removeEventListener("resize",U)}},[s,d,T]);let j=v;const H={slots:{transition:x,...m},slotProps:{transition:P,paper:h,...C}},[Q,q]=je("transition",{elementType:Pr,externalForwardedProps:H,ownerState:A,getSlotProps:U=>({...U,onEntering:(ne,te)=>{U.onEntering?.(ne,te),F()},onExited:ne=>{U.onExited?.(ne),L()}}),additionalProps:{appear:!0,in:d}});v==="auto"&&!Q.muiSupportAuto&&(j=void 0);const se=p||(s?Ye(Kr(s)).body:void 0),[re,{slots:B,slotProps:J,...ee}]=je("root",{ref:n,elementType:vS,externalForwardedProps:{...H,...I},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:rc(typeof C.backdrop=="function"?C.backdrop(A):C.backdrop,{invisible:!0})},container:se,open:d},ownerState:A,className:de(O.root,u)}),[K,z]=je("paper",{ref:R,className:O.paper,elementType:Vu,externalForwardedProps:H,shouldForwardComponentProp:!0,additionalProps:{elevation:g,style:D?void 0:{opacity:0}},ownerState:A});return f.jsx(re,{...ee,...!jn(re)&&{slots:B,slotProps:J,disableScrollLock:k},children:f.jsx(Q,{...q,timeout:j,children:f.jsx(K,{...z,children:c})})})});function SS(e){return ge("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const wS={vertical:"top",horizontal:"right"},CS={vertical:"top",horizontal:"left"},PS=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"],list:["list"]},SS,t)},kS=G(xS,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),MS=G(Vu,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),TS=G(tS,{name:"MuiMenu",slot:"List"})({outline:0}),DS=S.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:g,transitionDuration:b="auto",TransitionProps:{onEntering:d,...h}={},variant:m="selectedMenu",slots:C={},slotProps:w={},...x}=r,v=vt(),P={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:d,PaperProps:p,transitionDuration:b,TransitionProps:h,variant:m},k=PS(P),I=o&&!a&&u,R=S.useRef(null),A=(j,H)=>{R.current&&R.current.adjustStyleForScrollbar(j,{direction:v?"rtl":"ltr"}),d&&d(j,H)},O=j=>{j.key==="Tab"&&(j.preventDefault(),c&&c(j,"tabKeyDown"))};let $=-1;S.Children.map(s,(j,H)=>{S.isValidElement(j)&&(j.props.disabled||(m==="selectedMenu"&&j.props.selected||$===-1)&&($=H))});const y={slots:C,slotProps:{list:l,transition:h,paper:p,...w}},E=Pe({elementType:C.root,externalSlotProps:w.root,ownerState:P,className:[k.root,i]}),[D,M]=je("paper",{className:k.paper,elementType:MS,externalForwardedProps:y,shouldForwardComponentProp:!0,ownerState:P}),[T,F]=je("list",{className:de(k.list,l.className),elementType:TS,shouldForwardComponentProp:!0,externalForwardedProps:y,getSlotProps:j=>({...j,onKeyDown:H=>{O(H),j.onKeyDown?.(H)}}),ownerState:P}),L=typeof y.slotProps.transition=="function"?y.slotProps.transition(P):y.slotProps.transition;return f.jsx(kS,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?wS:CS,slots:{root:C.root,paper:D,backdrop:C.backdrop,...C.transition&&{transition:C.transition}},slotProps:{root:E,paper:M,backdrop:typeof w.backdrop=="function"?w.backdrop(P):w.backdrop,transition:{...L,onEntering:(...j)=>{A(...j),L?.onEntering?.(...j)}}},open:u,ref:n,transitionDuration:b,ownerState:P,...x,classes:g,children:f.jsx(T,{actions:R,autoFocus:o&&($===-1||a),autoFocusItem:I,variant:m,...F,children:s})})});function RS(e){return ge("MuiNativeSelect",e)}const Oi=he("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),IS=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,RS,t)},zu=G("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Oi.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}}}]})),ES=G(zu,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Oi.multiple}`]:t.multiple}]}})({}),_u=G("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Oi.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}}]})),$S=G(_u,{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]}})({}),OS=S.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=IS(u);return f.jsxs(S.Fragment,{children:[f.jsx(ES,{ownerState:u,className:de(p.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:f.jsx($S,{as:i,ownerState:u,className:p.icon})]})});function Wu(e){return ge("MuiSelect",e)}const nr=he("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Dl;const AS=G(zu,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${nr.select}`]:t.select},{[`&.${nr.select}`]:t[n.variant]},{[`&.${nr.error}`]:t.error},{[`&.${nr.multiple}`]:t.multiple}]}})({[`&.${nr.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),FS=G(_u,{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]}})({}),LS=G("input",{shouldForwardProp:e=>tc(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Rl(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function NS(e){return e==null||typeof e=="string"&&!e.trim()}const jS=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,Wu,t)},BS=S.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:g,error:b=!1,IconComponent:d,inputRef:h,labelId:m,MenuProps:C={},multiple:w,name:x,onBlur:v,onChange:P,onClose:k,onFocus:I,onOpen:R,open:A,readOnly:O,renderValue:$,required:y,SelectDisplayProps:E={},tabIndex:D,type:M,value:T,variant:F="standard",...L}=t,[j,H]=Tt({controlled:T,default:u,name:"Select"}),[Q,q]=Tt({controlled:A,default:c,name:"Select"}),se=S.useRef(null),re=S.useRef(null),[B,J]=S.useState(null),{current:ee}=S.useRef(A!=null),[K,z]=S.useState(),U=ke(n,h),ne=S.useCallback(ye=>{re.current=ye,ye&&J(ye)},[]),te=B?.parentNode;S.useImperativeHandle(U,()=>({focus:()=>{re.current.focus()},node:se.current,value:j}),[j]),S.useEffect(()=>{c&&Q&&B&&!ee&&(z(i?null:te.clientWidth),re.current.focus())},[B,i]),S.useEffect(()=>{s&&re.current.focus()},[s]),S.useEffect(()=>{if(!m)return;const ye=Ye(re.current).getElementById(m);if(ye){const Me=()=>{getSelection().isCollapsed&&re.current.focus()};return ye.addEventListener("click",Me),()=>{ye.removeEventListener("click",Me)}}},[m]);const V=(ye,Me)=>{ye?R&&R(Me):k&&k(Me),ee||(z(i?null:te.clientWidth),q(ye))},Z=ye=>{ye.button===0&&(ye.preventDefault(),re.current.focus(),V(!0,ye))},ie=ye=>{V(!1,ye)},oe=S.Children.toArray(a),ce=ye=>{const Me=oe.find(_e=>_e.props.value===ye.target.value);Me!==void 0&&(H(Me.props.value),P&&P(ye,Me))},ae=ye=>Me=>{let _e;if(Me.currentTarget.hasAttribute("tabindex")){if(w){_e=Array.isArray(j)?j.slice():[];const _t=j.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),j!==_e&&(H(_e),P)){const _t=Me.nativeEvent||Me,Ae=new _t.constructor(_t.type,_t);Object.defineProperty(Ae,"target",{writable:!0,value:{value:_e,name:x}}),P(Ae,ye)}w||V(!1,Me)}},fe=ye=>{O||[" ","ArrowUp","ArrowDown","Enter"].includes(ye.key)&&(ye.preventDefault(),V(!0,ye))},be=B!==null&&Q,we=ye=>{!be&&v&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:j,name:x}}),v(ye))};delete L["aria-invalid"];let pe,qe;const Be=[];let ht=!1;(ko({value:j})||g)&&($?pe=$(j):ht=!0);const mt=oe.map(ye=>{if(!S.isValidElement(ye))return null;let Me;if(w){if(!Array.isArray(j))throw new Error(Ot(2));Me=j.some(_e=>Rl(_e,ye.props.value)),Me&&ht&&Be.push(ye.props.children)}else Me=Rl(j,ye.props.value),Me&&ht&&(qe=ye.props.children);return S.cloneElement(ye,{"aria-selected":Me?"true":"false",onClick:ae(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&&(w?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=K;!i&&ee&&B&&(nt=te.clientWidth);let rt;typeof D<"u"?rt=D:rt=p?null:0;const Bt=E.id||(x?`mui-component-select-${x}`:void 0),gt={...t,variant:F,value:j,open:be,error:b},Oe=jS(gt),Vt={...C.PaperProps,...typeof C.slotProps?.paper=="function"?C.slotProps.paper(gt):C.slotProps?.paper},zt={...C.MenuListProps,...typeof C.slotProps?.list=="function"?C.slotProps.list(gt):C.slotProps?.list},Kn=xt();return f.jsxs(S.Fragment,{children:[f.jsx(AS,{as:"div",ref:ne,tabIndex:rt,role:"combobox","aria-controls":be?Kn:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":be?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[m,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||O?null:Z,onBlur:we,onFocus:I,...E,ownerState:gt,className:de(E.className,Oe.select,l),id:Bt,children:NS(pe)?Dl||(Dl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):pe}),f.jsx(LS,{"aria-invalid":b,value:Array.isArray(j)?j.join(","):j,name:x,ref:se,"aria-hidden":!0,onChange:ce,tabIndex:-1,disabled:p,className:Oe.nativeInput,autoFocus:s,required:y,...L,ownerState:gt}),f.jsx(FS,{as:d,className:Oe.icon,ownerState:gt}),f.jsx(DS,{id:`menu-${x||""}`,anchorEl:te,open:be,onClose:ie,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,slotProps:{...C.slotProps,list:{"aria-labelledby":m,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:Kn,...zt},paper:{...Vt,style:{minWidth:nt,...Vt!=null?Vt.style:null}}},children:mt})]})}),Hu=$e(f.jsx("path",{d:"M7 10l5 5 5-5z"})),VS=e=>{const{classes:t}=e,r=me({root:["root"]},Wu,t);return{...t,...r}},Ai={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>pt(e)&&e!=="variant"},zS=G(Di,Ai)(""),_S=G(Ii,Ai)(""),WS=G(Ri,Ai)(""),Fi=S.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=Hu,id:p,input:g,inputProps:b,label:d,labelId:h,MenuProps:m,multiple:C=!1,native:w=!1,onClose:x,onOpen:v,open:P,renderValue:k,SelectDisplayProps:I,variant:R="outlined",...A}=r,O=w?OS:BS,$=ft(),y=bn({props:r,muiFormControl:$,states:["variant","error"]}),E=y.variant||R,D={...r,variant:E,classes:i},M=VS(D),{root:T,...F}=M,L=g||{standard:f.jsx(zS,{ownerState:D}),outlined:f.jsx(_S,{label:d,ownerState:D}),filled:f.jsx(WS,{ownerState:D})}[E],j=ke(n,Gn(L));return f.jsx(S.Fragment,{children:S.cloneElement(L,{inputComponent:O,inputProps:{children:s,error:y.error,IconComponent:u,variant:E,type:void 0,multiple:C,...w?{id:p}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:h,MenuProps:m,onClose:x,onOpen:v,open:P,renderValue:k,SelectDisplayProps:{id:p,...I}},...b,classes:b?Ge(F,b.classes):F,...g?g.props.inputProps:{}},...(C&&w||c)&&E==="outlined"?{notched:!0}:{},ref:j,className:de(L.props.className,a,M.root),...!g&&{variant:E},...A})})});Fi.muiName="Select";function HS(e){return ge("MuiTextField",e)}he("MuiTextField",["root"]);const US={standard:Di,filled:Ri,outlined:Ii},YS=e=>{const{classes:t}=e;return me({root:["root"]},HS,t)},GS=G($i,{name:"MuiTextField",slot:"Root"})({}),Uu=S.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:g,fullWidth:b=!1,helperText:d,id:h,InputLabelProps:m,inputProps:C,InputProps:w,inputRef:x,label:v,maxRows:P,minRows:k,multiline:I=!1,name:R,onBlur:A,onChange:O,onFocus:$,placeholder:y,required:E=!1,rows:D,select:M=!1,SelectProps:T,slots:F={},slotProps:L={},type:j,value:H,variant:Q="outlined",...q}=r,se={...r,autoFocus:s,color:l,disabled:u,error:p,fullWidth:b,multiline:I,required:E,select:M,variant:Q},re=YS(se),B=xt(h),J=d&&B?`${B}-helper-text`:void 0,ee=v&&B?`${B}-label`:void 0,K=US[Q],z={slots:F,slotProps:{input:w,inputLabel:m,htmlInput:C,formHelperText:g,select:T,...L}},U={},ne=z.slotProps.inputLabel;Q==="outlined"&&(ne&&typeof ne.shrink<"u"&&(U.notched=ne.shrink),U.label=v),M&&((!T||!T.native)&&(U.id=void 0),U["aria-describedby"]=void 0);const[te,V]=je("root",{elementType:GS,shouldForwardComponentProp:!0,externalForwardedProps:{...z,...q},ownerState:se,className:de(re.root,a),ref:n,additionalProps:{disabled:u,error:p,fullWidth:b,required:E,color:l,variant:Q}}),[Z,ie]=je("input",{elementType:K,externalForwardedProps:z,additionalProps:U,ownerState:se}),[oe,ce]=je("inputLabel",{elementType:Ei,externalForwardedProps:z,ownerState:se}),[ae,fe]=je("htmlInput",{elementType:"input",externalForwardedProps:z,ownerState:se}),[be,we]=je("formHelperText",{elementType:Lu,externalForwardedProps:z,ownerState:se}),[pe,qe]=je("select",{elementType:Fi,externalForwardedProps:z,ownerState:se}),Be=f.jsx(Z,{"aria-describedby":J,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:b,multiline:I,name:R,rows:D,maxRows:P,minRows:k,type:j,value:H,id:B,inputRef:x,onBlur:A,onChange:O,onFocus:$,placeholder:y,inputProps:fe,slots:{input:F.htmlInput?ae:void 0},...ie});return f.jsxs(te,{...V,children:[v!=null&&v!==""&&f.jsx(oe,{htmlFor:B,id:ee,...ce,children:v}),M?f.jsx(pe,{"aria-describedby":J,id:B,labelId:ee,value:H,input:Be,...qe,children:i}):Be,d&&f.jsx(be,{id:J,...we,children:d})]})}),qS=({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},KS=({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},XS=(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}},QS=({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=eu(e,i),c=ou(e,l.contentType,l.type,i),u=n?c:l.contentType==="digit",p=t!=null&&e.isValid(t);let g=p?e.formatByString(t,i):"",b=null;if(u)if(c)b=g===""?e.formatByString(s,i).length:g.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&&(g=di(nu(pn(g,o),b),o))}return N({},l,{format:i,maxLength:b,value:g,placeholder:XS(e,r,l,i),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},ZS=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 g=0;for(;g<n.length;){const b=p(g),d=b!=null,h=l.exec(n.slice(g))?.[1];if(!d&&h!=null&&c.test(h)){let m=h;for(;m.length>0;){const C=u.exec(m)[1];m=m.slice(C.length),s.push(QS(N({},e,{now:o,token:C,startSeparator:i}))),i=""}g+=h.length}else{const m=n[g];d&&b?.start===g||b?.end===g||(s.length===0?i+=m:s[s.length-1].endSeparator+=m),g+=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},JS=({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}),Il=e=>{let t=qS(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=KS(N({},e,{expandedFormat:t})),r=ZS(N({},e,{expandedFormat:t,escapedParts:n}));return JS(N({},e,{sections:r}))},ew=e=>{const t=Le(),n=jt(),r=yn(),o=vt(),{valueManager:s,fieldValueManager:i,valueType:a,validator:l,internalProps:c,internalProps:{value:u,defaultValue:p,referenceDate:g,onChange:b,format:d,formatDensity:h="dense",selectedSections:m,onSelectedSectionsChange:C,shouldRespectLeadingZeros:w=!1,timezone:x,enableAccessibleFieldDOMStructure:v=!1}}=e,{timezone:P,value:k,handleValueChange:I}=Pi({timezone:x,value:u,defaultValue:p,referenceDate:g,onChange:b,valueManager:s}),R=S.useMemo(()=>ey(t),[t]),A=S.useMemo(()=>iy(t,R,P),[t,R,P]),O=S.useCallback((B,J=null)=>i.getSectionsFromValue(t,B,J,ee=>Il({utils:t,localeText:n,localizedDigits:R,format:d,date:ee,formatDensity:h,shouldRespectLeadingZeros:w,enableAccessibleFieldDOMStructure:v,isRtl:o})),[i,d,n,R,o,w,t,h,v]),[$,y]=S.useState(()=>{const B=O(k),J={sections:B,value:k,referenceValue:s.emptyValue,tempValueStrAndroid:null},ee=Xg(B),K=s.getInitialReferenceValue({referenceDate:g,value:k,utils:t,props:c,granularity:ee,timezone:P});return N({},J,{referenceValue:K})}),[E,D]=Tt({controlled:m,default:null,name:"useField",state:"selectedSections"}),M=B=>{D(B),C?.(B)},T=S.useMemo(()=>Cs(E,$.sections),[E,$.sections]),F=T==="all"?0:T,L=({value:B,referenceValue:J,sections:ee})=>{if(y(z=>N({},z,{sections:ee,value:B,referenceValue:J,tempValueStrAndroid:null})),s.areValuesEqual(t,$.value,B))return;const K={validationError:l({adapter:r,value:B,timezone:P,props:c})};I(B,K)},j=(B,J)=>{const ee=[...$.sections];return ee[B]=N({},ee[B],{value:J,modified:!0}),ee},H=()=>{L({value:s.emptyValue,referenceValue:$.referenceValue,sections:O(s.emptyValue)})},Q=()=>{if(F==null)return;const B=$.sections[F],J=i.getActiveDateManager(t,$,B),K=J.getSections($.sections).filter(te=>te.value!=="").length===(B.value===""?0:1),z=j(F,""),U=K?null:t.getInvalidDate(),ne=J.getNewValuesFromNewActiveDate(U);L(N({},ne,{sections:z}))},q=B=>{const J=(z,U)=>{const ne=t.parse(z,d);if(ne==null||!t.isValid(ne))return null;const te=Il({utils:t,localeText:n,localizedDigits:R,format:d,date:ne,formatDensity:h,shouldRespectLeadingZeros:w,enableAccessibleFieldDOMStructure:v,isRtl:o});return Ga(t,ne,te,U,!1)},ee=i.parseValueStr(B,$.referenceValue,J),K=i.updateReferenceValue(t,ee,$.referenceValue);L({value:ee,referenceValue:K,sections:O(ee,$.sections)})},se=({activeSection:B,newSectionValue:J,shouldGoToNextSection:ee})=>{ee&&F<$.sections.length-1&&M(F+1);const K=i.getActiveDateManager(t,$,B),z=j(F,J),U=K.getSections(z),ne=ry(t,U,R);let te,V;if(ne!=null&&t.isValid(ne)){const Z=Ga(t,ne,U,K.referenceDate,!0);te=K.getNewValuesFromNewActiveDate(Z),V=!0}else te=K.getNewValuesFromNewActiveDate(ne),V=(ne!=null&&!t.isValid(ne))!=(K.date!=null&&!t.isValid(K.date));return V?L(N({},te,{sections:z})):y(Z=>N({},Z,te,{sections:z,tempValueStrAndroid:null}))},re=B=>y(J=>N({},J,{tempValueStrAndroid:B}));return S.useEffect(()=>{const B=O($.value);y(J=>N({},J,{sections:B}))},[d,t.locale,o]),S.useEffect(()=>{let B;s.areValuesEqual(t,$.value,k)?B=s.getTimezone(t,$.value)!==s.getTimezone(t,k):B=!0,B&&y(J=>N({},J,{value:k,referenceValue:i.updateReferenceValue(t,k,J.referenceValue),sections:O(k)}))},[k]),{state:$,activeSectionIndex:F,parsedSelectedSections:T,setSelectedSections:M,clearValue:H,clearActiveSection:Q,updateSectionValue:se,updateValueFromValueStr:q,setTempAndroidValueStr:re,getSectionsFromValue:O,sectionsValueBoundaries:A,localizedDigits:R,timezone:P}},tw=5e3,kn=e=>e.saveQuery!=null,nw=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:s})=>{const i=Le(),[a,l]=S.useState(null),c=ue(()=>l(null));S.useEffect(()=>{a!=null&&e[a.sectionIndex]?.type!==a.sectionType&&c()},[e,a,c]),S.useEffect(()=>{if(a!=null){const d=setTimeout(()=>c(),tw);return()=>{clearTimeout(d)}}return()=>{}},[a,c]);const u=({keyPressed:d,sectionIndex:h},m,C)=>{const w=d.toLowerCase(),x=e[h];if(a!=null&&(!C||C(a.value))&&a.sectionIndex===h){const P=`${a.value}${w}`,k=m(P,x);if(!kn(k))return l({sectionIndex:h,value:P,sectionType:x.type}),k}const v=m(w,x);return kn(v)&&!v.saveQuery?(c(),null):(l({sectionIndex:h,value:w,sectionType:x.type}),kn(v)?null:v)},p=d=>{const h=(w,x,v)=>{const P=x.filter(k=>k.toLowerCase().startsWith(v));return P.length===0?{saveQuery:!1}:{sectionValue:P[0],shouldGoToNextSection:P.length===1}},m=(w,x,v,P)=>{const k=I=>tu(i,s,x.type,I);if(x.contentType==="letter")return h(x.format,k(x.format),w);if(v&&P!=null&&eu(i,v).contentType==="letter"){const I=k(v),R=h(v,I,w);return kn(R)?{saveQuery:!1}:N({},R,{sectionValue:P(R.sectionValue,I)})}return{saveQuery:!1}};return u(d,(w,x)=>{switch(x.type){case"month":{const v=P=>Ua(i,P,i.formats.month,x.format);return m(w,x,i.formats.month,v)}case"weekDay":{const v=(P,k)=>k.indexOf(P).toString();return m(w,x,i.formats.weekday,v)}case"meridiem":return m(w,x);default:return{saveQuery:!1}}})},g=d=>{const h=(C,w)=>{const x=pn(C,r),v=Number(x),P=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(v>P.maximum)return{saveQuery:!1};if(v<P.minimum)return{saveQuery:!0};const k=v*10>P.maximum||x.length===P.maximum.toString().length;return{sectionValue:ru(i,v,P,r,w),shouldGoToNextSection:k}};return u(d,(C,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return h(C,w);if(w.type==="month"){ou(i,"digit","month","MM");const x=h(C,{type:w.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(kn(x))return x;const v=Ua(i,x.sectionValue,"MM",w.format);return N({},x,{sectionValue:v})}if(w.type==="weekDay"){const x=h(C,w);if(kn(x))return x;const v=_o(i,w.format)[Number(x.sectionValue)-1];return N({},x,{sectionValue:v})}return{saveQuery:!1}},C=>Ha(C,r))};return{applyCharacterEditing:ue(d=>{const h=e[d.sectionIndex],C=Ha(d.keyPressed,r)?g(N({},d,{keyPressed:di(d.keyPressed,r)})):p(d);if(C==null){o(null);return}t({activeSection:h,newSectionValue:C.sectionValue,shouldGoToNextSection:C.shouldGoToNextSection})}),resetCharacterQuery:c}},rw=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:g,resetCharacterQuery:b,setSelectedSections:d,parsedSelectedSections:h,state:m,clearActiveSection:C,clearValue:w,updateSectionValue:x,updateValueFromValueStr:v,sectionOrder:P,areAllSectionsEmpty:k,sectionsValueBoundaries:I}=e,R=S.useRef(null),A=ke(r,R),O=jt(),$=Le(),y=xt(),[E,D]=S.useState(!1),M=S.useMemo(()=>({syncSelectionToDOM:()=>{if(!R.current)return;const V=document.getSelection();if(!V)return;if(h==null){V.rangeCount>0&&R.current.getRoot().contains(V.getRangeAt(0).startContainer)&&V.removeAllRanges(),E&&R.current.getRoot().blur();return}if(!R.current.getRoot().contains(Ke(document)))return;const Z=new window.Range;let ie;h==="all"?ie=R.current.getRoot():m.sections[h].type==="empty"?ie=R.current.getSectionContainer(h):ie=R.current.getSectionContent(h),Z.selectNodeContents(ie),ie.focus(),V.removeAllRanges(),V.addRange(Z)},getActiveSectionIndexFromDOM:()=>{const V=Ke(document);return!V||!R.current||!R.current.getRoot().contains(V)?null:R.current.getSectionIndexFromDOMElement(V)},focusField:(V=0)=>{if(!R.current||M.getActiveSectionIndexFromDOM()!=null)return;const Z=Cs(V,m.sections);D(!0),R.current.getSectionContent(Z).focus()},setSelectedSections:V=>{if(!R.current)return;const Z=Cs(V,m.sections);D((Z==="all"?0:Z)!==null),d(V)},isFieldFocused:()=>{const V=Ke(document);return!!R.current&&R.current.getRoot().contains(V)}}),[h,d,m.sections,E]),T=ue(V=>{if(!R.current)return;const Z=m.sections[V];R.current.getSectionContent(V).innerHTML=Z.value||Z.placeholder,M.syncSelectionToDOM()}),F=ue((V,...Z)=>{V.isDefaultPrevented()||!R.current||(D(!0),s?.(V,...Z),h==="all"?setTimeout(()=>{const ie=document.getSelection().getRangeAt(0).startOffset;if(ie===0){d(P.startIndex);return}let oe=0,ce=0;for(;ce<ie&&oe<m.sections.length;){const ae=m.sections[oe];oe+=1,ce+=`${ae.startSeparator}${ae.value||ae.placeholder}${ae.endSeparator}`.length}d(oe-1)}):E?R.current.getRoot().contains(V.target)||d(P.startIndex):(D(!0),d(P.startIndex)))}),L=ue(V=>{if(a?.(V),!R.current||h!=="all")return;const ie=V.target.textContent??"";R.current.getRoot().innerHTML=m.sections.map(oe=>`${oe.startSeparator}${oe.value||oe.placeholder}${oe.endSeparator}`).join(""),M.syncSelectionToDOM(),ie.length===0||ie.charCodeAt(0)===10?(b(),w(),d("all")):ie.length>1?v(ie):(h==="all"&&d(0),g({keyPressed:ie,sectionIndex:0}))}),j=ue(V=>{if(l?.(V),n||h!=="all"){V.preventDefault();return}const Z=V.clipboardData.getData("text");V.preventDefault(),b(),v(Z)}),H=ue((...V)=>{if(i?.(...V),E||!R.current)return;D(!0),R.current.getSectionIndexFromDOMElement(Ke(document))!=null||d(P.startIndex)}),Q=ue((...V)=>{o?.(...V),setTimeout(()=>{if(!R.current)return;const Z=Ke(document);!R.current.getRoot().contains(Z)&&(D(!1),d(null))})}),q=ue(V=>Z=>{Z.isDefaultPrevented()||d(V)}),se=ue(V=>{V.preventDefault()}),re=ue(V=>()=>{d(V)}),B=ue(V=>{if(V.preventDefault(),n||t||typeof h!="number")return;const Z=m.sections[h],ie=V.clipboardData.getData("text"),oe=/^[a-zA-Z]+$/.test(ie),ce=/^[0-9]+$/.test(ie),ae=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ie);Z.contentType==="letter"&&oe||Z.contentType==="digit"&&ce||Z.contentType==="digit-with-letter"&&ae?(b(),x({activeSection:Z,newSectionValue:ie,shouldGoToNextSection:!0})):!oe&&!ce&&(b(),v(ie))}),J=ue(V=>{V.preventDefault(),V.dataTransfer.dropEffect="none"}),ee=ue(V=>{if(!R.current)return;const Z=V.target,ie=Z.textContent??"",oe=R.current.getSectionIndexFromDOMElement(Z),ce=m.sections[oe];if(n||!R.current){T(oe);return}if(ie.length===0){if(ce.value===""){T(oe);return}const ae=V.nativeEvent.inputType;if(ae==="insertParagraph"||ae==="insertLineBreak"){T(oe);return}b(),C();return}g({keyPressed:ie,sectionIndex:oe}),T(oe)});Ue(()=>{if(!(!E||!R.current)){if(h==="all")R.current.getRoot().focus();else if(typeof h=="number"){const V=R.current.getSectionContent(h);V&&V.focus()}}},[h,E]);const K=S.useMemo(()=>m.sections.reduce((V,Z)=>(V[Z.type]=I[Z.type]({currentDate:null,contentType:Z.contentType,format:Z.format}),V),{}),[I,m.sections]),z=h==="all",U=S.useMemo(()=>m.sections.map((V,Z)=>{const ie=!z&&!t&&!n;return{container:{"data-sectionindex":Z,onClick:q(Z)},content:{tabIndex:z||Z>0?-1:0,contentEditable:!z&&!t&&!n,role:"spinbutton",id:`${y}-${V.type}`,"aria-labelledby":`${y}-${V.type}`,"aria-readonly":n,"aria-valuenow":dy(V,$),"aria-valuemin":K[V.type].minimum,"aria-valuemax":K[V.type].maximum,"aria-valuetext":V.value?uy(V,$):O.empty,"aria-label":O[V.type],"aria-disabled":t,spellCheck:ie?!1:void 0,autoCapitalize:ie?"off":void 0,autoCorrect:ie?"off":void 0,[parseInt(S.version,10)>=17?"enterKeyHint":"enterkeyhint"]:ie?"next":void 0,children:V.value||V.placeholder,onInput:ee,onPaste:B,onFocus:re(Z),onDragOver:J,onMouseUp:se,inputMode:V.contentType==="letter"?"text":"numeric"},before:{children:V.startSeparator},after:{children:V.endSeparator}}}),[m.sections,re,B,J,ee,q,se,t,n,z,O,$,K,y]),ne=ue(V=>{v(V.target.value)}),te=S.useMemo(()=>k?"":p.getV7HiddenInputValueFromSections(m.sections),[k,m.sections,p]);return S.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(`
135
+ `));u&&R.current&&R.current.getSectionContent(P.startIndex).focus()},[]),{interactions:M,returnedValue:{autoFocus:u,readOnly:n,focused:c??E,sectionListRef:A,onBlur:Q,onClick:F,onFocus:H,onInput:L,onPaste:j,enableAccessibleFieldDOMStructure:!0,elements:U,tabIndex:h===0?-1:0,contentEditable:z,value:te,onChange:ne,areAllSectionsEmpty:k}}},Dn=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),ow=(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=pi(a,n?"input-rtl":"input-ltr",t),c=`${a.startSeparator}${l}${a.endSeparator}`,u=Dn(c).length,p=c.length,g=Dn(l),b=o+(g===""?0:l.indexOf(g[0]))+a.startSeparator.length,d=b+g.length;s.push(N({},a,{start:r,end:r+u,startInInput:b,endInInput:d})),r+=u,o+=p}return s},sw=e=>{const t=vt(),n=S.useRef(void 0),r=S.useRef(void 0),{forwardedProps:{onFocus:o,onClick:s,onPaste:i,onBlur:a,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:p=!1},parsedSelectedSections:g,activeSectionIndex:b,state:d,fieldValueManager:h,valueManager:m,applyCharacterEditing:C,resetCharacterQuery:w,updateSectionValue:x,updateValueFromValueStr:v,clearActiveSection:P,clearValue:k,setTempAndroidValueStr:I,setSelectedSections:R,getSectionsFromValue:A,areAllSectionsEmpty:O,localizedDigits:$}=e,y=S.useRef(null),E=ke(l,y),D=S.useMemo(()=>ow(d.sections,$,t),[d.sections,$,t]),M=S.useMemo(()=>({syncSelectionToDOM:()=>{if(!y.current)return;if(g==null){y.current.scrollLeft&&(y.current.scrollLeft=0);return}if(y.current!==Ke(document))return;const ee=y.current.scrollTop;if(g==="all")y.current.select();else{const K=D[g],z=K.type==="empty"?K.startInInput-K.startSeparator.length:K.startInInput,U=K.type==="empty"?K.endInInput+K.endSeparator.length:K.endInInput;(z!==y.current.selectionStart||U!==y.current.selectionEnd)&&y.current===Ke(document)&&y.current.setSelectionRange(z,U),clearTimeout(r.current),r.current=setTimeout(()=>{y.current&&y.current===Ke(document)&&y.current.selectionStart===y.current.selectionEnd&&(y.current.selectionStart!==z||y.current.selectionEnd!==U)&&M.syncSelectionToDOM()})}y.current.scrollTop=ee},getActiveSectionIndexFromDOM:()=>{const ee=y.current.selectionStart??0,K=y.current.selectionEnd??0;if(ee===0&&K===0)return null;const z=ee<=D[0].startInInput?1:D.findIndex(U=>U.startInInput-U.startSeparator.length>ee);return z===-1?D.length-1:z-1},focusField:(ee=0)=>{Ke(document)!==y.current&&(y.current?.focus(),R(ee))},setSelectedSections:ee=>R(ee),isFieldFocused:()=>y.current===Ke(document)}),[y,g,D,R]),T=()=>{const ee=y.current.selectionStart??0;let K;ee<=D[0].startInInput||ee>=D[D.length-1].endInInput?K=1:K=D.findIndex(U=>U.startInInput-U.startSeparator.length>ee);const z=K===-1?D.length-1:K-1;R(z)},F=ue((...ee)=>{o?.(...ee);const K=y.current;clearTimeout(n.current),n.current=setTimeout(()=>{!K||K!==y.current||b==null&&(K.value.length&&Number(K.selectionEnd)-Number(K.selectionStart)===K.value.length?R("all"):T())})}),L=ue((ee,...K)=>{ee.isDefaultPrevented()||(s?.(ee,...K),T())}),j=ue(ee=>{if(i?.(ee),ee.preventDefault(),u||p)return;const K=ee.clipboardData.getData("text");if(typeof g=="number"){const z=d.sections[g],U=/^[a-zA-Z]+$/.test(K),ne=/^[0-9]+$/.test(K),te=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(K);if(z.contentType==="letter"&&U||z.contentType==="digit"&&ne||z.contentType==="digit-with-letter"&&te){w(),x({activeSection:z,newSectionValue:K,shouldGoToNextSection:!0});return}if(U||ne)return}w(),v(K)}),H=ue((...ee)=>{a?.(...ee),R(null)}),Q=ue(ee=>{if(u)return;const K=ee.target.value;if(K===""){w(),k();return}const z=ee.nativeEvent.data,U=z&&z.length>1,ne=U?z:K,te=Dn(ne);if(g==="all"&&R(b),b==null||U){v(U?z:te);return}let V;if(g==="all"&&te.length===1)V=te;else{const Z=Dn(h.getV6InputValueFromSections(D,$,t));let ie=-1,oe=-1;for(let be=0;be<Z.length;be+=1)ie===-1&&Z[be]!==te[be]&&(ie=be),oe===-1&&Z[Z.length-be-1]!==te[te.length-be-1]&&(oe=be);const ce=D[b];if(ie<ce.start||Z.length-oe-1>ce.end)return;const fe=te.length-Z.length+ce.end-Dn(ce.endSeparator||"").length;V=te.slice(ce.start+Dn(ce.startSeparator||"").length,fe)}if(V.length===0){ly()&&I(ne),w(),P();return}C({keyPressed:V,sectionIndex:b})}),q=S.useMemo(()=>c!==void 0?c:h.getV6InputValueFromSections(A(m.emptyValue),$,t),[c,h,A,m.emptyValue,$,t]),se=S.useMemo(()=>d.tempValueStrAndroid??h.getV6InputValueFromSections(d.sections,$,t),[d.sections,h,d.tempValueStrAndroid,$,t]);S.useEffect(()=>(y.current&&y.current===Ke(document)&&R("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const re=S.useMemo(()=>b==null||d.sections[b].contentType==="letter"?"text":"numeric",[b,d.sections]),J=!(y.current&&y.current===Ke(document))&&O;return{interactions:M,returnedValue:{readOnly:u,onBlur:H,onClick:L,onFocus:F,onPaste:j,inputRef:E,enableAccessibleFieldDOMStructure:!1,placeholder:q,inputMode:re,autoComplete:"off",value:J?"":se,onChange:Q}}},iw=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:g,valueManager:b,validator:d}=e,h=vt(),m=ew(e),{state:C,activeSectionIndex:w,parsedSelectedSections:x,setSelectedSections:v,clearValue:P,clearActiveSection:k,updateSectionValue:I,setTempAndroidValueStr:R,sectionsValueBoundaries:A,localizedDigits:O,timezone:$}=m,y=nw({sections:C.sections,updateSectionValue:I,sectionsValueBoundaries:A,localizedDigits:O,setTempAndroidValueStr:R,timezone:$}),{resetCharacterQuery:E}=y,D=b.areValuesEqual(t,C.value,b.emptyValue),M=s?rw:sw,T=S.useMemo(()=>cy(C.sections,h&&!s),[C.sections,h,s]),{returnedValue:F,interactions:L}=M(N({},e,m,y,{areAllSectionsEmpty:D,sectionOrder:T})),j=ue(B=>{if(l?.(B),!i)switch(!0){case((B.ctrlKey||B.metaKey)&&String.fromCharCode(B.keyCode)==="A"&&!B.shiftKey&&!B.altKey):{B.preventDefault(),v("all");break}case B.key==="ArrowRight":{if(B.preventDefault(),x==null)v(T.startIndex);else if(x==="all")v(T.endIndex);else{const J=T.neighbors[x].rightIndex;J!==null&&v(J)}break}case B.key==="ArrowLeft":{if(B.preventDefault(),x==null)v(T.endIndex);else if(x==="all")v(T.startIndex);else{const J=T.neighbors[x].leftIndex;J!==null&&v(J)}break}case B.key==="Delete":{if(B.preventDefault(),a)break;x==null||x==="all"?P():k(),E();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(B.key):{if(B.preventDefault(),a||w==null)break;x==="all"&&v(w);const J=C.sections[w],ee=g.getActiveDateManager(t,C,J),K=ty(t,$,J,B.key,A,O,ee.date,{minutesStep:o});I({activeSection:J,newSectionValue:K,shouldGoToNextSection:!1});break}}});Ue(()=>{L.syncSelectionToDOM()});const{hasValidationError:H}=uu({props:n,validator:d,timezone:$,value:C.value,onError:n.onError}),Q=S.useMemo(()=>c!==void 0?c:H,[H,c]);S.useEffect(()=>{!Q&&w==null&&E()},[C.referenceValue,w,Q]),S.useEffect(()=>{C.tempValueStrAndroid!=null&&w!=null&&(E(),k())},[C.sections]),S.useImperativeHandle(r,()=>({getSections:()=>C.sections,getActiveSectionIndex:L.getActiveSectionIndexFromDOM,setSelectedSections:L.setSelectedSections,focusField:L.focusField,isFieldFocused:L.isFieldFocused}));const q=ue((B,...J)=>{B.preventDefault(),p?.(B,...J),P(),L.isFieldFocused()?v(T.startIndex):L.focusField(0)}),se={onKeyDown:j,onClear:q,error:Q,clearable:!!(u&&!D&&!a&&!i)},re={disabled:i,readOnly:a};return N({},e.forwardedProps,se,re,F)},aw=["clearable","onClear","InputProps","sx","slots","slotProps"],lw=["ownerState"],cw=e=>{const t=jt(),{clearable:n,onClear:r,InputProps:o,sx:s,slots:i,slotProps:a}=e,l=ve(e,aw),c=i?.clearButton??jr,u=Pe({elementType:c,externalSlotProps:a?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=ve(u,lw),g=i?.clearIcon??b0,b=Pe({elementType:g,externalSlotProps:a?.clearIcon,ownerState:{}});return N({},l,{InputProps:N({},o,{endAdornment:f.jsxs(S.Fragment,{children:[n&&f.jsx(du,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:f.jsx(c,N({},p,{onClick:r,children:f.jsx(g,N({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]]})},uw=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],dw=(e,t)=>S.useMemo(()=>{const n=N({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return uw.forEach(o),lu.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),pw=e=>{const t=Le(),n=Fr();return N({},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)})},fw=e=>{const t=pw(e),{forwardedProps:n,internalProps:r}=dw(t,"date");return iw({forwardedProps:n,internalProps:r,valueManager:Dt,fieldValueManager:fy,validator:Lr,valueType:"date"})};function hw(e){return ge("MuiPickersTextField",e)}he("MuiPickersTextField",["root","focused","disabled","error","required"]);function mw(e){return ge("MuiPickersInputBase",e)}const On=he("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function gw(e){return ge("MuiPickersSectionList",e)}const rr=he("MuiPickersSectionList",["root","section","sectionContent"]),yw=["slots","slotProps","elements","sectionListRef"],Yu=G("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Gu=G("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),qu=G("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Ku=G("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),bw=e=>{const{classes:t}=e;return me({root:["root"],section:["section"],sectionContent:["sectionContent"]},gw,t)};function vw(e){const{slots:t,slotProps:n,element:r,classes:o}=e,s=t?.section??Gu,i=Pe({elementType:s,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=t?.sectionContent??Ku,l=Pe({elementType:a,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=t?.sectionSeparator??qu,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,N({},i,{children:[f.jsx(c,N({},u)),f.jsx(a,N({},l)),f.jsx(c,N({},p))]}))}const xw=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:s,elements:i,sectionListRef:a}=r,l=ve(r,yw),c=bw(r),u=S.useRef(null),p=ke(n,u),g=h=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${h} before the mount of the component.`);return u.current};S.useImperativeHandle(a,()=>({getRoot(){return g("getRoot")},getSectionContainer(h){return g("getSectionContainer").querySelector(`.${rr.section}[data-sectionindex="${h}"]`)},getSectionContent(h){return g("getSectionContent").querySelector(`.${rr.section}[data-sectionindex="${h}"] .${rr.sectionContent}`)},getSectionIndexFromDOMElement(h){const m=g("getSectionIndexFromDOMElement");if(h==null||!m.contains(h))return null;let C=null;return h.classList.contains(rr.section)?C=h:h.classList.contains(rr.sectionContent)&&(C=h.parentElement),C==null?null:Number(C.dataset.sectionindex)}}));const b=o?.root??Yu,d=Pe({elementType:b,externalSlotProps:s?.root,externalForwardedProps:l,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return f.jsx(b,N({},d,{children:d.contentEditable?i.map(({content:h,before:m,after:C})=>`${m.children}${h.children}${C.children}`).join(""):f.jsx(S.Fragment,{children:i.map((h,m)=>f.jsx(vw,{slots:o,slotProps:s,element:h,classes:c},m))})}))}),Sw=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],ww=e=>Math.round(e*1e5)/1e5,Zo=G("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>N({},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:`${ww(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Li=G(Yu,{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}}]})),Cw=G(Gu,{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"})),Pw=G(Ku,{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"})),kw=G(qu,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),Mw=G("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(N({},zg)),Tw=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,mw,o)},Ni=S.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:g,slotProps:b,contentEditable:d,tabIndex:h,onInput:m,onPaste:C,onKeyDown:w,name:x,readOnly:v,inputProps:P,inputRef:k,sectionListRef:I}=r,R=ve(r,Sw),A=S.useRef(null),O=ke(n,A),$=ke(P?.ref,k),y=vt(),E=ft();if(!E)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const D=H=>{if(E.disabled){H.stopPropagation();return}E.onFocus?.(H)};S.useEffect(()=>{E&&E.setAdornedStart(!!u)},[E,u]),S.useEffect(()=>{E&&(s?E.onEmpty():E.onFilled())},[E,s]);const M=N({},r,E,{isRtl:y}),T=Tw(M),F=g?.root||Zo,L=Pe({elementType:F,externalSlotProps:b?.root,externalForwardedProps:R,additionalProps:{"aria-invalid":E.error,ref:O},className:T.root,ownerState:M}),j=g?.input||Li;return f.jsxs(F,N({},L,{children:[u,f.jsx(xw,{sectionListRef:I,elements:o,contentEditable:d,tabIndex:h,className:T.sectionsContainer,onFocus:D,onBlur:E.onBlur,onInput:m,onPaste:C,onKeyDown:w,slots:{root:j,section:Cw,sectionContent:Pw,sectionSeparator:kw},slotProps:{root:{ownerState:M},sectionContent:{className:On.sectionContent},sectionSeparator:({position:H})=>({className:H==="before"?On.sectionBefore:On.sectionAfter})}}),c,p?p(N({},E)):null,f.jsx(Mw,N({name:x,className:T.input,value:i,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:v,required:E.required,disabled:E.disabled},P,{ref:$}))]}))});function Dw(e){return ge("MuiPickersOutlinedInput",e)}const yt=N({},On,he("MuiPickersOutlinedInput",["root","notchedOutline","input"])),Rw=["children","className","label","notched","shrink"],Iw=G("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}}),El=G("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),Ew=G("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 $w(e){const{className:t,label:n}=e,r=ve(e,Rw),o=n!=null&&n!=="",s=N({},e,{withLabel:o});return f.jsx(Iw,N({"aria-hidden":!0,className:t},r,{ownerState:s,children:f.jsx(Ew,{ownerState:s,children:o?f.jsx(El,{children:n}):f.jsx(El,{className:"notranslate",children:"​"})})}))}const Ow=["label","autoFocus","ownerState","notched"],Aw=G(Zo,{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}}}))}}),Fw=G(Li,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),Lw=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Dw,t);return N({},t,r)},Xu=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:s,notched:i}=r,a=ve(r,Ow),l=ft(),c=N({},r,s,l,{color:l?.color||"primary"}),u=Lw(c);return f.jsx(Ni,N({slots:{root:Aw,input:Fw},renderSuffix:p=>f.jsx($w,{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(S.Fragment,{children:[o," ","*"]}):o,ownerState:c})},a,{label:o,classes:u,ref:n}))});Xu.muiName="Input";function Nw(e){return ge("MuiPickersFilledInput",e)}const tn=N({},On,he("MuiPickersFilledInput",["root","underline","input"])),jw=["label","autoFocus","disableUnderline","ownerState"],Bw=G(Zo,{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}}]}}),Vw=G(Li,{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}}]}),zw=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},Nw,t);return N({},t,o)},Qu=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ve(r,jw),l=ft(),c=N({},r,i,l,{color:l?.color||"primary"}),u=zw(c);return f.jsx(Ni,N({slots:{root:Bw,input:Vw},slotProps:{root:{disableUnderline:s}}},a,{label:o,classes:u,ref:n}))});Qu.muiName="Input";function _w(e){return ge("MuiPickersFilledInput",e)}const or=N({},On,he("MuiPickersInput",["root","input"])),Ww=["label","autoFocus","disableUnderline","ownerState"],Hw=G(Zo,{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"},[`&.${or.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${or.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(.${or.disabled}, .${or.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${or.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),Uw=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},_w,t);return N({},t,o)},Zu=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ve(r,Ww),l=ft(),c=N({},r,i,l,{disableUnderline:s,color:l?.color||"primary"}),u=Uw(c);return f.jsx(Ni,N({slots:{root:Hw}},a,{label:o,classes:u,ref:n}))});Zu.muiName="Input";const Yw=["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"],Gw={standard:Zu,filled:Qu,outlined:Xu},qw=G($i,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),Kw=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return me({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},hw,r)},Xw=S.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:g,inputProps:b,inputRef:d,sectionListRef:h,elements:m,areAllSectionsEmpty:C,onClick:w,onKeyDown:x,onKeyUp:v,onPaste:P,onInput:k,endAdornment:I,startAdornment:R,tabIndex:A,contentEditable:O,focused:$,value:y,onChange:E,fullWidth:D,id:M,name:T,helperText:F,FormHelperTextProps:L,label:j,InputLabelProps:H}=r,Q=ve(r,Yw),q=S.useRef(null),se=ke(n,q),re=xt(M),B=F&&re?`${re}-helper-text`:void 0,J=j&&re?`${re}-label`:void 0,ee=N({},r,{color:a,disabled:l,error:c,focused:$,required:p,variant:u}),K=Kw(ee),z=Gw[u];return f.jsxs(qw,N({className:de(K.root,i),ref:se,focused:$,onFocus:o,onBlur:s,disabled:l,variant:u,error:c,color:a,fullWidth:D,required:p,ownerState:ee},Q,{children:[f.jsx(Ei,N({htmlFor:re,id:J},H,{children:j})),f.jsx(z,N({elements:m,areAllSectionsEmpty:C,onClick:w,onKeyDown:x,onKeyUp:v,onInput:k,onPaste:P,endAdornment:I,startAdornment:R,tabIndex:A,contentEditable:O,value:y,onChange:E,id:re,fullWidth:D,inputProps:b,inputRef:d,sectionListRef:h,label:j,name:T,role:"group","aria-labelledby":J,"aria-describedby":B,"aria-live":B?"polite":void 0},g)),F&&f.jsx(Lu,N({id:B},L,{children:F}))]}))}),Qw=["enableAccessibleFieldDOMStructure"],Zw=["InputProps","readOnly"],Jw=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],eC=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ve(e,Qw);if(t){const{InputProps:p,readOnly:g}=n,b=ve(n,Zw);return N({},b,{InputProps:N({},p??{},{readOnly:g})})}const{onPaste:r,onKeyDown:o,inputMode:s,readOnly:i,InputProps:a,inputProps:l,inputRef:c}=n,u=ve(n,Jw);return N({},u,{InputProps:N({},a??{},{readOnly:i}),inputProps:N({},l??{},{inputMode:s,onPaste:r,onKeyDown:o,ref:c})})},tC=["slots","slotProps","InputProps","inputProps"],Ju=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDateField"}),{slots:o,slotProps:s,InputProps:i,inputProps:a}=r,l=ve(r,tC),c=r,u=o?.textField??(t.enableAccessibleFieldDOMStructure?Xw:Uu),p=Pe({elementType:u,externalSlotProps:s?.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});p.inputProps=N({},a,p.inputProps),p.InputProps=N({},i,p.InputProps);const g=fw(p),b=eC(g),d=cw(N({},b,{slots:o,slotProps:s}));return f.jsx(u,N({},d))}),ed=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:a})=>{const l=yn();return S.useCallback(c=>Lr({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])},nC=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return N({},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))),N({},r,{currentMonth:i})}case"finishMonthSwitchingAnimation":return N({},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 N({},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")}},rC=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,g=Le(),b=S.useRef(nC(!!c,s,g)).current,d=S.useMemo(()=>Dt.getInitialReferenceValue({value:t,utils:g,timezone:p,props:e,referenceDate:n,granularity:Pt.day}),[n,p]),[h,m]=S.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:d,currentMonth:g.startOfMonth(d),slideDirection:"left"});S.useEffect(()=>{m({type:"changeMonthTimezone",newTimezone:g.getTimezone(d)})},[d,g]);const C=S.useCallback(k=>{m(N({type:"changeMonth"},k)),l&&l(k.newMonth)},[l]),w=S.useCallback(k=>{const I=k;g.isSameMonth(I,h.currentMonth)||C({newMonth:g.startOfMonth(I),direction:g.isAfterDay(I,h.currentMonth)?"left":"right"})},[h.currentMonth,C,g]),x=ed({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:p}),v=S.useCallback(()=>{m({type:"finishMonthSwitchingAnimation"})},[]),P=ue((k,I)=>{x(k)||m({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:d,calendarState:h,changeMonth:w,changeFocusedDay:P,isDateDisabled:x,onMonthSwitchingAnimationEnd:v,handleChangeMonth:C}},oC=e=>ge("MuiPickersFadeTransitionGroup",e);he("MuiPickersFadeTransitionGroup",["root"]);const sC=e=>{const{classes:t}=e;return me({root:["root"]},oC,t)},iC=G(Nr,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function td(e){const t=Fe({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=sC(t),a=gn();return o?n:f.jsx(iC,{className:de(i.root,r),children:f.jsx(fn,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},s)})}function aC(e){return ge("MuiPickersDay",e)}const nn=he("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),lC=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],cC=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"]},aC,l)},nd=({theme:e})=>N({},e.typography.caption,{width:Tr,height:Tr,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 ${Yo}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}`}}}]}),rd=(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]},uC=G(Bn,{name:"MuiPickersDay",slot:"Root",overridesResolver:rd})(nd),dC=G("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:rd})(({theme:e})=>N({},nd({theme:e}),{opacity:0,pointerEvents:"none"})),sr=()=>{},pC=S.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:g,onFocus:b=sr,onBlur:d=sr,onKeyDown:h=sr,onMouseDown:m=sr,onMouseEnter:C=sr,outsideCurrentMonth:w,selected:x=!1,showDaysOutsideCurrentMonth:v=!1,children:P,today:k=!1}=r,I=ve(r,lC),R=N({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:x,showDaysOutsideCurrentMonth:v,today:k}),A=cC(R),O=Le(),$=S.useRef(null),y=ke($,n);Ue(()=>{o&&!a&&!u&&!w&&$.current.focus()},[o,a,u,w]);const E=M=>{m(M),w&&M.preventDefault()},D=M=>{a||g(i),w&&M.currentTarget.focus(),p&&p(M)};return w&&!v?f.jsx(dC,{className:de(A.root,A.hiddenDaySpacingFiller,s),ownerState:R,role:I.role}):f.jsx(uC,N({className:de(A.root,s),ref:y,centerRipple:!0,disabled:a,tabIndex:x?0:-1,onKeyDown:M=>h(M,i),onFocus:M=>b(M,i),onBlur:M=>d(M,i),onMouseEnter:M=>C(M,i),onClick:D,onMouseDown:E},I,{ownerState:R,children:P||O.format(i,"dayOfMonth")}))}),fC=S.memo(pC),hC=e=>ge("MuiPickersSlideTransition",e),ot=he("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),mC=["children","className","reduceAnimations","slideDirection","transKey","classes"],gC=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return me(r,hC,t)},yC=G(Nr,{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 bC(e){const t=Fe({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ve(t,mC),a=gC(t),l=gn();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(yC,{className:de(a.root,r),childFactory:u=>S.cloneElement(u,{classNames:c}),role:"presentation",children:f.jsx(hi,N({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const vC=e=>ge("MuiDayCalendar",e);he("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const xC=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],SC=["ownerState"],wC=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"]},vC,t)},od=(Tr+Yo*2)*6,CC=G("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),PC=G("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),kC=G(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})),MC=G(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})),TC=G(Xt,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>N({},e.typography.caption,{width:Tr,height:Tr,padding:0,margin:`0 ${Yo}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),DC=G("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:od}),RC=G(bC,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:od}),IC=G("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),EC=G("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Yo}px 0`,display:"flex",justifyContent:"center"});function $C(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:s,currentMonthNumber:i,isViewFocused:a}=e,l=ve(e,xC);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:g,slots:b,slotProps:d,timezone:h}=t,m=Le(),C=Wo(h),w=r!==null&&m.isSameDay(n,r),x=o.some(y=>m.isSameDay(y,n)),v=m.isSameDay(n,C),P=b?.day??fC,k=Pe({elementType:P,externalSlotProps:d?.day,additionalProps:N({disableHighlightToday:u,showDaysOutsideCurrentMonth:g,role:"gridcell",isAnimating:p,"data-timestamp":m.toJsDate(n).valueOf()},l),ownerState:N({},t,{day:n,selected:x})}),I=ve(k,SC),R=S.useMemo(()=>c||s(n),[c,s,n]),A=S.useMemo(()=>m.getMonth(n)!==i,[m,n,i]),O=S.useMemo(()=>{const y=m.startOfMonth(m.setMonth(n,i));return g?m.isSameDay(n,m.startOfWeek(y)):m.isSameDay(n,y)},[i,n,g,m]),$=S.useMemo(()=>{const y=m.endOfMonth(m.setMonth(n,i));return g?m.isSameDay(n,m.endOfWeek(y)):m.isSameDay(n,y)},[i,n,g,m]);return f.jsx(P,N({},I,{day:n,disabled:R,autoFocus:a&&w,today:v,outsideCurrentMonth:A,isFirstVisibleCell:O,isLastVisibleCell:$,selected:x,tabIndex:w?0:-1,"aria-selected":x,"aria-current":v?"date":void 0}))}function OC(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:g,renderLoading:b=()=>f.jsx("span",{children:"..."}),slideDirection:d,TransitionProps:h,disablePast:m,disableFuture:C,minDate:w,maxDate:x,shouldDisableDate:v,shouldDisableMonth:P,shouldDisableYear:k,dayOfWeekFormatter:I=oe=>n.format(oe,"weekdayShort").charAt(0).toUpperCase(),hasFocus:R,onFocusedViewChange:A,gridLabelId:O,displayWeekNumber:$,fixedWeekNumber:y,autoFocus:E,timezone:D}=t,M=Wo(D),T=wC(t),F=vt(),L=ed({shouldDisableDate:v,shouldDisableMonth:P,shouldDisableYear:k,minDate:w,maxDate:x,disablePast:m,disableFuture:C,timezone:D}),j=jt(),[H,Q]=Tt({name:"DayCalendar",state:"hasFocus",controlled:R,default:E??!1}),[q,se]=S.useState(()=>a||M),re=ue(oe=>{p||c(oe)}),B=oe=>{L(oe)||(r(oe),se(oe),A?.(!0),Q(!0))},J=ue((oe,ce)=>{switch(oe.key){case"ArrowUp":B(n.addDays(ce,-7)),oe.preventDefault();break;case"ArrowDown":B(n.addDays(ce,7)),oe.preventDefault();break;case"ArrowLeft":{const ae=n.addDays(ce,F?1:-1),fe=n.addMonths(ce,F?1:-1),be=hr({utils:n,date:ae,minDate:F?ae:n.startOfMonth(fe),maxDate:F?n.endOfMonth(fe):ae,isDateDisabled:L,timezone:D});B(be||ae),oe.preventDefault();break}case"ArrowRight":{const ae=n.addDays(ce,F?-1:1),fe=n.addMonths(ce,F?-1:1),be=hr({utils:n,date:ae,minDate:F?n.startOfMonth(fe):ae,maxDate:F?ae:n.endOfMonth(fe),isDateDisabled:L,timezone:D});B(be||ae),oe.preventDefault();break}case"Home":B(n.startOfWeek(ce)),oe.preventDefault();break;case"End":B(n.endOfWeek(ce)),oe.preventDefault();break;case"PageUp":B(n.addMonths(ce,1)),oe.preventDefault();break;case"PageDown":B(n.addMonths(ce,-1)),oe.preventDefault();break}}),ee=ue((oe,ce)=>B(ce)),K=ue((oe,ce)=>{H&&n.isSameDay(q,ce)&&A?.(!1)}),z=n.getMonth(s),U=n.getYear(s),ne=S.useMemo(()=>i.filter(oe=>!!oe).map(oe=>n.startOfDay(oe)),[n,i]),te=`${U}-${z}`,V=S.useMemo(()=>S.createRef(),[te]),Z=S.useMemo(()=>{const oe=n.startOfMonth(s),ce=n.endOfMonth(s);return L(q)||n.isAfterDay(q,ce)||n.isBeforeDay(q,oe)?hr({utils:n,date:q,minDate:oe,maxDate:ce,disablePast:m,disableFuture:C,isDateDisabled:L,timezone:D}):q},[s,C,m,q,L,n,D]),ie=S.useMemo(()=>{const oe=n.getWeekArray(s);let ce=n.addMonths(s,1);for(;y&&oe.length<y;){const ae=n.getWeekArray(ce),fe=n.isSameDay(oe[oe.length-1][0],ae[0][0]);ae.slice(fe?1:0).forEach(be=>{oe.length<y&&oe.push(be)}),ce=n.addMonths(ce,1)}return oe},[s,y,n]);return f.jsxs(CC,{role:"grid","aria-labelledby":O,className:T.root,children:[f.jsxs(PC,{role:"row",className:T.header,children:[$&&f.jsx(MC,{variant:"caption",role:"columnheader","aria-label":j.calendarWeekNumberHeaderLabel,className:T.weekNumberLabel,children:j.calendarWeekNumberHeaderText}),Yg(n,M).map((oe,ce)=>f.jsx(kC,{variant:"caption",role:"columnheader","aria-label":n.format(oe,"weekday"),className:T.weekDayLabel,children:I(oe)},ce.toString()))]}),l?f.jsx(DC,{className:T.loadingContainer,children:b()}):f.jsx(RC,N({transKey:te,onExited:u,reduceAnimations:g,slideDirection:d,className:de(o,T.slideTransition)},h,{nodeRef:V,children:f.jsx(IC,{ref:V,role:"rowgroup",className:T.monthContainer,children:ie.map((oe,ce)=>f.jsxs(EC,{role:"row",className:T.weekContainer,"aria-rowindex":ce+1,children:[$&&f.jsx(TC,{className:T.weekNumber,role:"rowheader","aria-label":j.calendarWeekNumberAriaLabelText(n.getWeekNumber(oe[0])),children:j.calendarWeekNumberText(n.getWeekNumber(oe[0]))}),oe.map((ae,fe)=>f.jsx($C,{parentProps:t,day:ae,selectedDays:ne,focusableDay:Z,onKeyDown:J,onFocus:ee,onBlur:K,onDaySelect:re,isDateDisabled:L,currentMonthNumber:z,isViewFocused:H,"aria-colindex":fe+1},ae.toString()))]},`week-${oe[0]}`))})}))]})}function AC(e){return ge("MuiPickersMonth",e)}const Xr=he("MuiPickersMonth",["root","monthButton","disabled","selected"]),FC=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],LC=e=>{const{disabled:t,selected:n,classes:r}=e;return me({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},AC,r)},NC=G("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%"}}]}),jC=G("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Xr.disabled}`]:t.disabled},{[`&.${Xr.selected}`]:t.selected}]})(({theme:e})=>N({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"},[`&.${Xr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Xr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),BC=S.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:g,onBlur:b,"aria-current":d,"aria-label":h,slots:m,slotProps:C}=n,w=ve(n,FC),x=S.useRef(null),v=LC(n);Ue(()=>{r&&x.current?.focus()},[r]);const P=m?.monthButton??jC,k=Pe({elementType:P,externalSlotProps:C?.monthButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:x,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=>g(I,l),onBlur:I=>b(I,l)},ownerState:n,className:v.monthButton});return f.jsx(NC,N({className:de(v.root,o),ownerState:n},w,{children:f.jsx(P,N({},k))}))});function VC(e){return ge("MuiMonthCalendar",e)}he("MuiMonthCalendar",["root"]);const zC=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],_C=e=>{const{classes:t}=e;return me({root:["root"]},VC,t)};function WC(e,t){const n=Le(),r=Fr(),o=Fe({props:e,name:t});return N({disableFuture:!1,disablePast:!1},o,{minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate)})}const HC=G("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Go,boxSizing:"border-box"}),UC=S.forwardRef(function(t,n){const r=WC(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:p,minDate:g,onChange:b,shouldDisableMonth:d,readOnly:h,autoFocus:m=!1,onMonthFocus:C,hasFocus:w,onFocusedViewChange:x,monthsPerRow:v=3,timezone:P,gridLabelId:k,slots:I,slotProps:R}=r,A=ve(r,zC),{value:O,handleValueChange:$,timezone:y}=ki({name:"MonthCalendar",timezone:P,value:s,defaultValue:i,referenceDate:a,onChange:b,valueManager:Dt}),E=Wo(y),D=vt(),M=Le(),T=S.useMemo(()=>Dt.getInitialReferenceValue({value:O,utils:M,props:r,timezone:y,referenceDate:a,granularity:Pt.month}),[]),F=r,L=_C(F),j=S.useMemo(()=>M.getMonth(E),[M,E]),H=S.useMemo(()=>O!=null?M.getMonth(O):null,[O,M]),[Q,q]=S.useState(()=>H||M.getMonth(T)),[se,re]=Tt({name:"MonthCalendar",state:"hasFocus",controlled:w,default:m??!1}),B=ue(te=>{re(te),x&&x(te)}),J=S.useCallback(te=>{const V=M.startOfMonth(u&&M.isAfter(E,g)?E:g),Z=M.startOfMonth(c&&M.isBefore(E,p)?E:p),ie=M.startOfMonth(te);return M.isBefore(ie,V)||M.isAfter(ie,Z)?!0:d?d(ie):!1},[c,u,p,g,E,d,M]),ee=ue((te,V)=>{if(h)return;const Z=M.setMonth(O??T,V);$(Z)}),K=ue(te=>{J(M.setMonth(O??T,te))||(q(te),B(!0),C&&C(te))});S.useEffect(()=>{q(te=>H!==null&&te!==H?H:te)},[H]);const z=ue((te,V)=>{switch(te.key){case"ArrowUp":K((12+V-3)%12),te.preventDefault();break;case"ArrowDown":K((12+V+3)%12),te.preventDefault();break;case"ArrowLeft":K((12+V+(D?1:-1))%12),te.preventDefault();break;case"ArrowRight":K((12+V+(D?-1:1))%12),te.preventDefault();break}}),U=ue((te,V)=>{K(V)}),ne=ue((te,V)=>{Q===V&&B(!1)});return f.jsx(HC,N({ref:n,className:de(L.root,o),ownerState:F,role:"radiogroup","aria-labelledby":k},A,{children:ci(M,O??T).map(te=>{const V=M.getMonth(te),Z=M.format(te,"monthShort"),ie=M.format(te,"month"),oe=V===H,ce=l||J(te);return f.jsx(BC,{selected:oe,value:V,onClick:ee,onKeyDown:z,autoFocus:se&&V===Q,disabled:ce,tabIndex:V===Q&&!ce?0:-1,onFocus:U,onBlur:ne,"aria-current":j===V?"date":void 0,"aria-label":ie,monthsPerRow:v,slots:I,slotProps:R,children:Z},Z)})}))});function YC(e){return ge("MuiPickersYear",e)}const Qr=he("MuiPickersYear",["root","yearButton","selected","disabled"]),GC=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],qC=e=>{const{disabled:t,selected:n,classes:r}=e;return me({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},YC,r)},KC=G("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%"}}]}),XC=G("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Qr.disabled}`]:t.disabled},{[`&.${Qr.selected}`]:t.selected}]})(({theme:e})=>N({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"},[`&.${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}}})),QC=S.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:g,onBlur:b,"aria-current":d,slots:h,slotProps:m}=n,C=ve(n,GC),w=S.useRef(null),x=qC(n);Ue(()=>{r&&w.current?.focus()},[r]);const v=h?.yearButton??XC,P=Pe({elementType:v,externalSlotProps:m?.yearButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:w,type:"button",role:"radio","aria-current":d,"aria-checked":a,onClick:k=>u(k,l),onKeyDown:k=>p(k,l),onFocus:k=>g(k,l),onBlur:k=>b(k,l)},ownerState:n,className:x.yearButton});return f.jsx(KC,N({className:de(x.root,o),ownerState:n},C,{children:f.jsx(v,N({},P))}))});function ZC(e){return ge("MuiYearCalendar",e)}he("MuiYearCalendar",["root"]);const JC=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],e1=e=>{const{classes:t}=e;return me({root:["root"]},ZC,t)};function t1(e,t){const n=Le(),r=Fr(),o=Fe({props:e,name:t});return N({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate)})}const n1=G("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Go,maxHeight:Jx,boxSizing:"border-box",position:"relative"}),r1=S.forwardRef(function(t,n){const r=t1(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:p,maxDate:g,minDate:b,onChange:d,readOnly:h,shouldDisableYear:m,onYearFocus:C,hasFocus:w,onFocusedViewChange:x,yearsOrder:v="asc",yearsPerRow:P,timezone:k,gridLabelId:I,slots:R,slotProps:A}=r,O=ve(r,JC),{value:$,handleValueChange:y,timezone:E}=ki({name:"YearCalendar",timezone:k,value:i,defaultValue:a,referenceDate:l,onChange:d,valueManager:Dt}),D=Wo(E),M=vt(),T=Le(),F=S.useMemo(()=>Dt.getInitialReferenceValue({value:$,utils:T,props:r,timezone:E,referenceDate:l,granularity:Pt.year}),[]),L=r,j=e1(L),H=S.useMemo(()=>T.getYear(D),[T,D]),Q=S.useMemo(()=>$!=null?T.getYear($):null,[$,T]),[q,se]=S.useState(()=>Q||T.getYear(F)),[re,B]=Tt({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),J=ue(ae=>{B(ae),x&&x(ae)}),ee=S.useCallback(ae=>{if(p&&T.isBeforeYear(ae,D)||u&&T.isAfterYear(ae,D)||b&&T.isBeforeYear(ae,b)||g&&T.isAfterYear(ae,g))return!0;if(!m)return!1;const fe=T.startOfYear(ae);return m(fe)},[u,p,g,b,D,m,T]),K=ue((ae,fe)=>{if(h)return;const be=T.setYear($??F,fe);y(be)}),z=ue(ae=>{ee(T.setYear($??F,ae))||(se(ae),J(!0),C?.(ae))});S.useEffect(()=>{se(ae=>Q!==null&&ae!==Q?Q:ae)},[Q]);const U=v!=="desc"?P*1:P*-1,ne=M&&v==="asc"||!M&&v==="desc"?-1:1,te=ue((ae,fe)=>{switch(ae.key){case"ArrowUp":z(fe-U),ae.preventDefault();break;case"ArrowDown":z(fe+U),ae.preventDefault();break;case"ArrowLeft":z(fe-ne),ae.preventDefault();break;case"ArrowRight":z(fe+ne),ae.preventDefault();break}}),V=ue((ae,fe)=>{z(fe)}),Z=ue((ae,fe)=>{q===fe&&J(!1)}),ie=S.useRef(null),oe=ke(n,ie);S.useEffect(()=>{if(o||ie.current===null)return;const ae=ie.current.querySelector('[tabindex="0"]');if(!ae)return;const fe=ae.offsetHeight,be=ae.offsetTop,we=ie.current.clientHeight,pe=ie.current.scrollTop,qe=be+fe;fe>we||be<pe||(ie.current.scrollTop=qe-we/2-fe/2)},[o]);const ce=T.getYearRange([b,g]);return v==="desc"&&ce.reverse(),f.jsx(n1,N({ref:oe,className:de(j.root,s),ownerState:L,role:"radiogroup","aria-labelledby":I},O,{children:ce.map(ae=>{const fe=T.getYear(ae),be=fe===Q,we=c||ee(ae);return f.jsx(QC,{selected:be,value:fe,onClick:K,onKeyDown:te,autoFocus:re&&fe===q,disabled:we,tabIndex:fe===q&&!we?0:-1,onFocus:V,onBlur:Z,"aria-current":H===fe?"date":void 0,yearsPerRow:P,slots:R,slotProps:A,children:T.format(ae,"year")},T.format(ae,"year"))})}))}),o1=e=>ge("MuiPickersCalendarHeader",e),s1=he("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function i1(e){return ge("MuiPickersArrowSwitcher",e)}he("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const a1=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],l1=["ownerState"],c1=["ownerState"],u1=G("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),d1=G("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),$l=G(jr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),p1=e=>{const{classes:t}=e;return me({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},i1,t)},f1=S.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:g,isPreviousDisabled:b,isPreviousHidden:d,onGoToPrevious:h,previousLabel:m,labelId:C}=o,w=ve(o,a1),x=o,v=p1(x),P={isDisabled:c,isHidden:u,goTo:p,label:g},k={isDisabled:b,isHidden:d,goTo:h,label:m},I=a?.previousIconButton??$l,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:N({},x,{hidden:k.isHidden}),className:de(v.button,v.previousIconButton)}),A=a?.nextIconButton??$l,O=Pe({elementType:A,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"start",onClick:P.goTo},ownerState:N({},x,{hidden:P.isHidden}),className:de(v.button,v.nextIconButton)}),$=a?.leftArrowIcon??m0,y=Pe({elementType:$,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:v.leftArrowIcon}),E=ve(y,l1),D=a?.rightArrowIcon??g0,M=Pe({elementType:D,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:v.rightArrowIcon}),T=ve(M,c1);return f.jsxs(u1,N({ref:n,className:de(v.root,i),ownerState:x},w,{children:[f.jsx(I,N({},R,{children:r?f.jsx(D,N({},T)):f.jsx($,N({},E))})),s?f.jsx(Xt,{variant:"subtitle1",component:"span",id:C,children:s}):f.jsx(d1,{className:v.spacer,ownerState:x}),f.jsx(A,N({},O,{children:r?f.jsx($,N({},E)):f.jsx(D,N({},T))}))]}))});function h1(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Le();return S.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 m1(e,{disablePast:t,minDate:n,timezone:r}){const o=Le();return S.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 g1=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],y1=["ownerState"],b1=e=>{const{classes:t}=e;return me({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},o1,t)},v1=G("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}),x1=G("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>N({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),S1=G("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),w1=G(jr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${s1.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),C1=G(h0,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),P1=S.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:g,minDate:b,onMonthChange:d,onViewChange:h,view:m,reduceAnimations:C,views:w,labelId:x,className:v,timezone:P,format:k=`${o.formats.month} ${o.formats.year}`}=s,I=ve(s,g1),R=s,A=b1(s),O=i?.switchViewButton??w1,$=Pe({elementType:O,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(m)},ownerState:R,className:A.switchViewButton}),y=i?.switchViewIcon??C1,E=Pe({elementType:y,externalSlotProps:a?.switchViewIcon,ownerState:R,className:A.switchViewIcon}),D=ve(E,y1),M=()=>d(o.addMonths(l,1),"left"),T=()=>d(o.addMonths(l,-1),"right"),F=h1(l,{disableFuture:u,maxDate:g,timezone:P}),L=m1(l,{disablePast:p,minDate:b,timezone:P}),j=()=>{if(!(w.length===1||!h||c))if(w.length===2)h(w.find(Q=>Q!==m)||w[0]);else{const Q=w.indexOf(m)!==0?0:1;h(w[Q])}};if(w.length===1&&w[0]==="year")return null;const H=o.formatByString(l,k);return f.jsxs(v1,N({},I,{ownerState:R,className:de(A.root,v),ref:n,children:[f.jsxs(x1,{role:"presentation",onClick:j,ownerState:R,"aria-live":"polite",className:A.labelContainer,children:[f.jsx(td,{reduceAnimations:C,transKey:H,children:f.jsx(S1,{id:x,ownerState:R,className:A.label,children:H})}),w.length>1&&!c&&f.jsx(O,N({},$,{children:f.jsx(y,N({},D))}))]}),f.jsx(fn,{in:m==="day",appear:!C,enter:!C,children:f.jsx(f1,{slots:i,slotProps:a,onGoToPrevious:T,isPreviousDisabled:L,previousLabel:r.previousMonth,onGoToNext:M,isNextDisabled:F,nextLabel:r.nextMonth})})]}))}),k1=G("div")({overflow:"hidden",width:Go,maxHeight:Mi,display:"flex",flexDirection:"column",margin:"0 auto"}),M1=e=>ge("MuiDateCalendar",e);he("MuiDateCalendar",["root","viewTransitionContainer"]);const T1=["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"],D1=e=>{const{classes:t}=e;return me({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},M1,t)};function R1(e,t){const n=Le(),r=Fr(),o=Mu(),s=Fe({props:e,name:t});return N({},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 I1=G(k1,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Mi}),E1=G(td,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),$1=S.forwardRef(function(t,n){const r=Le(),o=xt(),s=R1(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:p,disablePast:g,onChange:b,onYearChange:d,onMonthChange:h,reduceAnimations:m,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:x,view:v,views:P,openTo:k,className:I,disabled:R,readOnly:A,minDate:O,maxDate:$,disableHighlightToday:y,focusedView:E,onFocusedViewChange:D,showDaysOutsideCurrentMonth:M,fixedWeekNumber:T,dayOfWeekFormatter:F,slots:L,slotProps:j,loading:H,renderLoading:Q,displayWeekNumber:q,yearsOrder:se,yearsPerRow:re,monthsPerRow:B,timezone:J}=s,ee=ve(s,T1),{value:K,handleValueChange:z,timezone:U}=ki({name:"DateCalendar",timezone:J,value:l,defaultValue:c,referenceDate:u,onChange:b,valueManager:Dt}),{view:ne,setView:te,focusedView:V,setFocusedView:Z,goToNextView:ie,setValueAndGoToNextView:oe}=Tu({view:v,views:P,openTo:k,onChange:z,onViewChange:a,autoFocus:i,focusedView:E,onFocusedViewChange:D}),{referenceDate:ce,calendarState:ae,changeFocusedDay:fe,changeMonth:be,handleChangeMonth:we,isDateDisabled:pe,onMonthSwitchingAnimationEnd:qe}=rC({value:K,referenceDate:u,reduceAnimations:m,onMonthChange:h,minDate:O,maxDate:$,shouldDisableDate:C,disablePast:g,disableFuture:p,timezone:U}),Be=R&&K||O,ht=R&&K||$,mt=`${o}-grid-label`,nt=V!==null,rt=L?.calendarHeader??P1,Bt=Pe({elementType:rt,externalSlotProps:j?.calendarHeader,additionalProps:{views:P,view:ne,currentMonth:ae.currentMonth,onViewChange:te,onMonthChange:(Ae,wt)=>we({newMonth:Ae,direction:wt}),minDate:Be,maxDate:ht,disabled:R,disablePast:g,disableFuture:p,reduceAnimations:m,timezone:U,labelId:mt},ownerState:s}),gt=ue(Ae=>{const wt=r.startOfMonth(Ae),Xn=r.endOfMonth(Ae),Wt=pe(Ae)?hr({utils:r,date:Ae,minDate:r.isBefore(O,wt)?wt:O,maxDate:r.isAfter($,Xn)?Xn:$,disablePast:g,disableFuture:p,isDateDisabled:pe,timezone:U}):Ae;Wt?(oe(Wt,"finish"),h?.(wt)):(ie(),be(wt)),fe(Wt,!0)}),Oe=ue(Ae=>{const wt=r.startOfYear(Ae),Xn=r.endOfYear(Ae),Wt=pe(Ae)?hr({utils:r,date:Ae,minDate:r.isBefore(O,wt)?wt:O,maxDate:r.isAfter($,Xn)?Xn:$,disablePast:g,disableFuture:p,isDateDisabled:pe,timezone:U}):Ae;Wt?(oe(Wt,"finish"),d?.(Wt)):(ie(),be(wt)),fe(Wt,!0)}),Vt=ue(Ae=>z(Ae&&xo(r,Ae,K??ce),"finish",ne));S.useEffect(()=>{K!=null&&r.isValid(K)&&be(K)},[K]);const zt=s,Kn=D1(zt),ye={disablePast:g,disableFuture:p,maxDate:$,minDate:O},Me={disableHighlightToday:y,readOnly:A,disabled:R,timezone:U,gridLabelId:mt,slots:L,slotProps:j},_e=S.useRef(ne);S.useEffect(()=>{_e.current!==ne&&(V===_e.current&&Z(ne,!0),_e.current=ne)},[V,Z,ne]);const _t=S.useMemo(()=>[K],[K]);return f.jsxs(I1,N({ref:n,className:de(Kn.root,I),ownerState:zt},ee,{children:[f.jsx(rt,N({},Bt,{slots:L,slotProps:j})),f.jsx(E1,{reduceAnimations:m,className:Kn.viewTransitionContainer,transKey:ne,ownerState:zt,children:f.jsxs("div",{children:[ne==="year"&&f.jsx(r1,N({},ye,Me,{value:K,onChange:Oe,shouldDisableYear:x,hasFocus:nt,onFocusedViewChange:Ae=>Z("year",Ae),yearsOrder:se,yearsPerRow:re,referenceDate:ce})),ne==="month"&&f.jsx(UC,N({},ye,Me,{hasFocus:nt,className:I,value:K,onChange:gt,shouldDisableMonth:w,onFocusedViewChange:Ae=>Z("month",Ae),monthsPerRow:B,referenceDate:ce})),ne==="day"&&f.jsx(OC,N({},ae,ye,Me,{onMonthSwitchingAnimationEnd:qe,onFocusedDayChange:fe,reduceAnimations:m,selectedDays:_t,onSelectedDaysChange:Vt,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:x,hasFocus:nt,onFocusedViewChange:Ae=>Z("day",Ae),showDaysOutsideCurrentMonth:M,fixedWeekNumber:T,dayOfWeekFormatter:F,displayWeekNumber:q,loading:H,renderLoading:Q}))]})})]}))}),An=({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:g,minDate:b,maxDate:d,shouldDisableDate:h,shouldDisableMonth:m,shouldDisableYear:C,reduceAnimations:w,onMonthChange:x,monthsPerRow:v,onYearChange:P,yearsOrder:k,yearsPerRow:I,slots:R,slotProps:A,loading:O,renderLoading:$,disableHighlightToday:y,readOnly:E,disabled:D,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:T,sx:F,autoFocus:L,fixedWeekNumber:j,displayWeekNumber:H,timezone:Q})=>f.jsx($1,{view:e,onViewChange:t,views:n.filter(za),focusedView:r&&za(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:p,disablePast:g,minDate:b,maxDate:d,shouldDisableDate:h,shouldDisableMonth:m,shouldDisableYear:C,reduceAnimations:w,onMonthChange:x,monthsPerRow:v,onYearChange:P,yearsOrder:k,yearsPerRow:I,slots:R,slotProps:A,loading:O,renderLoading:$,disableHighlightToday:y,readOnly:E,disabled:D,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:T,sx:F,autoFocus:L,fixedWeekNumber:j,displayWeekNumber:H,timezone:Q}),sd=S.forwardRef(function(t,n){const r=jt(),o=Le(),s=au(t,"MuiDesktopDatePicker"),i=N({day:An,month:An,year:An},s.viewRenderers),a=N({},s,{viewRenderers:i,format:ui(o,s,!1),yearsPerRow:s.yearsPerRow??4,slots:N({openPickerIcon:y0,field:Ju},s.slots),slotProps:N({},s.slotProps,{field:c=>N({},zo(s.slotProps?.field,c),cu(s),{ref:n}),toolbar:N({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=f0({props:a,valueManager:Dt,valueType:"date",getOpenDialogAriaText:su({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Lr});return l()});sd.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:qc,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 O1(e){return ge("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);const A1=he("MuiDialogTitle",["root"]),F1=e=>{const{classes:t,dividers:n}=e;return me({root:["root",n&&"dividers"]},O1,t)},L1=G("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:{[`.${A1.root} + &`]:{paddingTop:0}}}]}))),N1=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...i}=r,a={...r,dividers:s},l=F1(a);return f.jsx(L1,{className:de(l.root,o),ownerState:a,ref:n,...i})});function j1(e){return ge("MuiDialog",e)}const vr=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),B1=S.createContext({}),V1=G(ju,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),z1=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,j1,t)},_1=G(Bu,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),W1=G("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"}}}]}),H1=G(Br,{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)`,[`&.${vr.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}`,[`&.${vr.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,[`&.${vr.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),U1=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialog"}),o=gn(),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:g,disableEscapeKeyDown:b=!1,fullScreen:d=!1,fullWidth:h=!1,maxWidth:m="sm",onClick:C,onClose:w,open:x,PaperComponent:v=Br,PaperProps:P={},scroll:k="paper",slots:I={},slotProps:R={},TransitionComponent:A=fn,transitionDuration:O=s,TransitionProps:$,...y}=r,E={...r,disableEscapeKeyDown:b,fullScreen:d,fullWidth:h,maxWidth:m,scroll:k},D=z1(E),M=S.useRef(),T=V=>{M.current=V.target===V.currentTarget},F=V=>{C&&C(V),M.current&&(M.current=null,w&&w(V,"backdropClick"))},L=xt(a),j=S.useMemo(()=>({titleId:L}),[L]),H={transition:A,...I},Q={transition:$,paper:P,backdrop:u,...R},q={slots:H,slotProps:Q},[se,re]=je("root",{elementType:_1,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:E,className:de(D.root,g),ref:n}),[B,J]=je("backdrop",{elementType:V1,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:E}),[ee,K]=je("paper",{elementType:H1,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:E,className:de(D.paper,P.className)}),[z,U]=je("container",{elementType:W1,externalForwardedProps:q,ownerState:E,className:D.container}),[ne,te]=je("transition",{elementType:fn,externalForwardedProps:q,ownerState:E,additionalProps:{appear:!0,in:x,timeout:O,role:"presentation"}});return f.jsx(se,{closeAfterTransition:!0,slots:{backdrop:B},slotProps:{backdrop:{transitionDuration:O,as:c,...J}},disableEscapeKeyDown:b,onClose:w,open:x,onClick:F,...re,...y,children:f.jsx(ne,{...te,children:f.jsx(z,{onMouseDown:T,...U,children:f.jsx(ee,{as:v,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":L,"aria-modal":l,...K,children:f.jsx(B1.Provider,{value:j,children:p})})})})})}),Y1=G(U1)({[`& .${vr.container}`]:{outline:0},[`& .${vr.paper}`]:{outline:0,minWidth:Go}}),G1=G(N1)({"&:first-of-type":{padding:0}});function q1(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:s}=e,i=o?.dialog??Y1,a=o?.mobileTransition??fn;return f.jsx(i,N({open:r,onClose:n},s?.dialog,{TransitionComponent:a,TransitionProps:s?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:s?.mobilePaper,children:f.jsx(G1,{children:t})}))}const K1=["props","getOpenDialogAriaText"],X1=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,K1);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:g,timezone:b,name:d,label:h,inputRef:m,readOnly:C,disabled:w,localeText:x}=t,v=S.useRef(null),P=xt(),k=s?.toolbar?.hidden??!1,{open:I,actions:R,layoutProps:A,renderCurrentView:O,fieldProps:$,contextValue:y}=Du(N({},r,{props:t,fieldRef:v,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),E=o.field,D=Pe({elementType:E,externalSlotProps:s?.field,additionalProps:N({},$,k&&{id:P},!(w||C)&&{onClick:R.onOpen,onKeyDown:Jv(R.onOpen)},{readOnly:C??!0,disabled:w,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:g,timezone:b,label:h,name:d},m?{inputRef:m}:{}),ownerState:t});D.inputProps=N({},D.inputProps,{"aria-label":n($.value)});const M=N({textField:o.textField},D.slots),T=o.layout??Au;let F=P;k&&(h?F=`${P}-label`:F=void 0);const L=N({},s,{toolbar:N({},s?.toolbar,{titleId:P}),mobilePaper:N({"aria-labelledby":F},s?.mobilePaper)}),j=ke(v,D.unstableFieldRef);return{renderPicker:()=>f.jsxs(Fu,{contextValue:y,localeText:x,children:[f.jsx(E,N({},D,{slots:M,slotProps:L,unstableFieldRef:j})),f.jsx(q1,N({},R,{open:I,slots:o,slotProps:L,children:f.jsx(T,N({},A,L?.layout,{slots:o,slotProps:L,children:O()}))}))]})}},id=S.forwardRef(function(t,n){const r=jt(),o=Le(),s=au(t,"MuiMobileDatePicker"),i=N({day:An,month:An,year:An},s.viewRenderers),a=N({},s,{viewRenderers:i,format:ui(o,s,!1),slots:N({field:Ju},s.slots),slotProps:N({},s.slotProps,{field:c=>N({},zo(s.slotProps?.field,c),cu(s),{ref:n}),toolbar:N({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=X1({props:a,valueManager:Dt,valueType:"date",getOpenDialogAriaText:su({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Lr});return l()});id.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:qc,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 Q1=["desktopModeMediaQuery"],Dr=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=ex}=r,s=ve(r,Q1);return Gc(o,{defaultMatches:!0})?f.jsx(sd,N({ref:n},s)):f.jsx(id,N({ref:n},s))}),Z1=250,J1=300*1e3;function eP(e,t){const n=X.useContext(Hn.QueryClientContext),r=t.trim(),[o,s]=X.useState("");X.useEffect(()=>{const p=setTimeout(()=>s(r),Z1);return()=>clearTimeout(p)},[r]);const[i,a]=X.useState(),l=e?JSON.stringify(e.key):void 0;X.useEffect(()=>{if(!e||!n||o==="")return;let p=!0;return n.fetchQuery({queryKey:[...e.key,o],queryFn:({signal:g})=>e.run(o,g),staleTime:J1}).then(g=>{p&&a({key:l,text:o,page:g})}).catch(()=>{p&&a({key:l,text:o,failed:!0})}),()=>{p=!1}},[n,l,o]);const c=e!==void 0&&n!==void 0&&r!=="",u=i!==void 0&&i.key===l&&i.text===r;return{active:c,searching:c&&!u,page:c&&u?i.page:void 0,failed:c&&u&&i.failed===!0}}function ji(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"?tP(n):n}function tP(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"?`
136
+ `:r==="t"?" ":r==="r"?"\r":r):e}Re.extend(Js);const Ol=14,nP=42;function rP(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(`
137
+ `):void 0}function Bi({given:e,value:t,onChange:n,options:r,optionsLoading:o,optionsFailed:s,optionsTruncated:i,optionSearch:a}){const l=e.label??e.name??"",{theme:c}=Se.usePublisherTheme(),u=e.type??"string",p=rP(e),g=ji(u,e.default),b=g!==void 0?`Default: ${g===""?"(empty)":g}`:void 0,d=p||b?f.jsxs(f.Fragment,{children:[p,p&&b?f.jsx("br",{}):null,b]}):void 0,h=u==="string"||qt(u)==="string",m=!Yt(u)||typeof t!="string"||Pc(t),C=q=>f.jsx(W.TextField,{label:l,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:f.jsxs(f.Fragment,{children:[`Not a ${q}. Clear it to pick one.`,d?f.jsx("br",{}):null,d]}),slotProps:{input:{endAdornment:f.jsx(ms,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),w=Yt(u),x=e.control==="multiselect"&&w,v=Yt(u),P=e.control==="select"||e.control==="multiselect",k=P?v?typeof t=="string"?Cc(t):[]:typeof t=="string"&&t!==""?[t]:[]:[],[I,R]=X.useState(""),A=eP(P?a:void 0,I);if(P&&h&&m&&!(!x&&k.length>1)){const q=re=>{const B=v?ei(re):void 0;if(re.length===0||B===""){n(null);return}n(v?B:re[0])},se=lP(A,i,a);return f.jsx(ad.Provider,{value:se,children:f.jsx(W.Autocomplete,{multiple:x,disableCloseOnSelect:x,freeSolo:!0,forcePopupIcon:!0,autoSelect:!x,options:A.page?.values??r??[],...A.page?{filterOptions:re=>re}:{},onInputChange:(re,B,J)=>R(J==="input"?B:""),loading:o||A.searching,loadingText:A.searching?"Searching…":"Loading…",noOptionsText:s?"Options unavailable":"No matching values",slots:{paper:aP},value:x?k:k[0]??null,onChange:(re,B)=>q(B===null?[]:Array.isArray(B)?B:[B]),renderInput:re=>f.jsx(W.TextField,{...re,label:l,size:"small",placeholder:k.length!==0?void 0:t===""?"All":g??"All",error:s,helperText:s?f.jsxs(f.Fragment,{children:["Could not load the options for this control. Type a value to filter anyway.",d?f.jsx("br",{}):null,d]}):d,slotProps:{input:{...re.InputProps,endAdornment:f.jsxs(f.Fragment,{children:[o&&f.jsx(W.CircularProgress,{size:16}),re.InputProps.endAdornment]})},htmlInput:{...re.inputProps,onBlur:B=>{if(re.inputProps.onBlur?.(B),!x)return;const J=B.target.value.trim();J!==""&&!k.includes(J)&&q([...k,J])}}}}),fullWidth:!0})})}const O=Yt(u)&&qt(u)==="number",{rangeMin:$,rangeMax:y}=e,E=O&&typeof t=="string"?Mc(t):void 0,D=O&&typeof t=="string"?Tc(t):void 0;if((O||u==="number")&&$!==void 0&&y!==void 0&&(!O||t===void 0||t===null||t===""||E!==void 0||D!==void 0)){const q=D??(E!==void 0?[E,y]:void 0),se=O?q?.[0]:typeof t=="number"?t:void 0;if(se===void 0&&t!==void 0&&t!==null&&t!=="")return C("number");const re=se??$,B=q??[$,y],J=B[1]>=y?`≥ ${B[0]}`:`${B[0]} to ${B[1]}`,ee=O&&t==="",K=se!==void 0||ee;return f.jsxs(W.FormControl,{fullWidth:!0,children:[f.jsxs(W.Box,{component:"fieldset",sx:z=>({m:0,minWidth:0,border:c.cardBorder,borderRadius:2,px:`${Ol}px`,pt:0,pb:.75,minHeight:nP,transition:"border-color 120ms ease-in","&:hover":{borderColor:z.palette.text.secondary},"&:focus-within":{borderColor:z.palette.text.primary}}),children:[f.jsx(W.Typography,{component:"legend",variant:"caption",color:"text.secondary",sx:{px:.5,lineHeight:1},children:l}),f.jsxs(W.Stack,{direction:"row",alignItems:"center",spacing:1,children:[f.jsx(W.Typography,{variant:"body2",sx:{fontWeight:"fontWeightMedium"},children:K?ee?"Any":O?J:String(re):O?"Any":g??"Unset"}),K&&f.jsx(Rr,{onClear:()=>n(null),sx:{p:0}})]}),f.jsx(W.Slider,{size:"small",min:$,max:y,value:O?B:re,disableSwap:O,valueLabelDisplay:"auto","aria-label":O?void 0:l,getAriaLabel:O?z=>z===0?`${l} from`:`${l} to`:void 0,sx:{py:0,mt:.5},onChange:(z,U)=>{if(O){const[ne,te]=Array.isArray(U)?[U[0],U[1]]:[U,U];if(ne<=$&&te>=y){n(null);return}n(te>=y?zm(ne):_m(ne,te));return}n(Array.isArray(U)?U[0]:U)}}),f.jsxs(W.Stack,{direction:"row",justifyContent:"space-between",children:[f.jsx(W.Typography,{variant:"caption",color:"text.secondary",children:$}),f.jsx(W.Typography,{variant:"caption",color:"text.secondary",children:y})]})]}),d&&f.jsx(W.FormHelperText,{sx:{mx:`${Ol}px`},children:d})]})}const T=Yt(u)?qt(u):void 0,F=T==="date"||T==="timestamp"||T==="timestamptz",L=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),j=t==null||L;if(F&&!L){const q=sP(t);if(q!==void 0)return f.jsx(iP,{label:l,state:q,onChange:n,helperNode:d,defaultDisplay:g})}if(F&&j){const q=L?Re.utc(t):null;return f.jsx(Cr,{dateAdapter:vo,children:f.jsx(Dr,{label:l,value:q?.isValid()?q:null,onChange:se=>n(se?se.format("YYYY-MM-DD"):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:d},field:{clearable:!0,onClear:()=>n(null)}}})})}if(qt(u)==="boolean"){const q=typeof t=="string"?Vm(t):void 0;if(t==null||t===""||q!==void 0)return f.jsx(oP,{label:l,picked:q,emptyOverride:t==="",onChange:n,helperNode:d,defaultDisplay:g})}if(u==="boolean"){const q=typeof t=="boolean";if(!q&&t!==void 0&&t!==null)return C("true or false");const se=e.default?.trim()==="true",re=q?t:se;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:re,onChange:B=>n(B.target.checked)}),label:l}),q&&f.jsx(Rr,{onClear:()=>n(null),edge:"end"})]}),d&&f.jsx(W.FormHelperText,{children:d})]})}if(u==="number"){const q=typeof t=="number"?t:"",se=t!=null;return se&&t!==""&&typeof t!="number"?C("number"):f.jsx(W.TextField,{label:l,type:"number",value:q,onChange:re=>{const B=re.target.value;n(B===""?null:Number(B))},placeholder:g,helperText:d,slotProps:{input:{endAdornment:se&&f.jsx(ms,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}if(u==="date"||u==="timestamp"||u==="timestamptz"){const q=t instanceof Date?t:typeof t=="string"?(B=>B instanceof Date?B:null)(Bc(u,t)):null,se=q?Re.utc(q):null;return t!=null&&t!==""&&q===null?C("date"):f.jsx(Cr,{dateAdapter:vo,children:f.jsx(Dr,{label:l,value:se,onChange:B=>n(B?qm(B,q??void 0):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:d},field:{clearable:!0,onClear:()=>n(null)}}})})}const H=typeof t=="string"?t:"",Q=t!=null;return f.jsx(W.TextField,{label:l,value:H,onChange:q=>n(q.target.value),placeholder:Q?void 0:g??(u.startsWith("filter<")?u:void 0),helperText:d,slotProps:{input:{endAdornment:Q&&f.jsx(ms,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}function Rr({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(dg,{fontSize:"small"})})}function ms({onClear:e}){return f.jsx(W.InputAdornment,{position:"end",children:f.jsx(Rr,{onClear:e,edge:"end"})})}const Zr="__any__";function oP({label:e,picked:t,emptyOverride:n,onChange:r,helperNode:o,defaultDisplay:s}){const i=t??(n?Zr:""),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===Zr?"Any":s||"Any"},input:{endAdornment:a?f.jsx(Rr,{onClear:()=>r(null),sx:{mr:2}}):void 0}},onChange:l=>{l.target.value!==Zr&&r(l.target.value)},children:[n&&f.jsx(W.MenuItem,{value:Zr,children:"Any"}),f.jsx(W.MenuItem,{value:"true",children:"true"}),f.jsx(W.MenuItem,{value:"false",children:"false"})]})})}function sP(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=Dc(e);if(t!==void 0)return{kind:"preset",key:t};const n=Rc(e);if(n!==void 0)return{kind:"days",...n}}const Jr="__custom__",gs="__any__";function iP({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]=X.useState(t.kind==="days"),[l,c]=X.useState(t.kind==="days"?{from:t.firstDay,to:t.lastDay}:{});X.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?Jr:t.kind==="preset"?t.key:t.kind==="any"?gs:"",g=d=>{c(d),d.from&&d.to&&!Re.utc(d.to).isBefore(Re.utc(d.from))&&n(Um(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===Jr)return"Custom range";if(d===gs)return"Any time";const h=wr.find(m=>m.key===d);return h?h.label:o??"Any time"}},input:{endAdornment:u?f.jsx(Rr,{onClear:()=>{a(!1),c({}),n(null)},sx:{mr:2}}):void 0}},onChange:d=>{const h=d.target.value;if(h===Jr){a(!0);return}a(!1);const m=Wm(h);m!==void 0&&n(m)},children:[t.kind==="any"&&f.jsx(W.MenuItem,{value:gs,children:"Any time"}),wr.map(d=>f.jsx(W.MenuItem,{value:d.key,children:d.label},d.key)),f.jsx(W.MenuItem,{value:Jr,children:"Custom range"})]}),i&&f.jsxs(Cr,{dateAdapter:vo,children:[f.jsx(Dr,{label:"From",value:b(l.from),onChange:d=>g({...l,from:d?d.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}}),f.jsx(Dr,{label:"To",value:b(l.to),minDate:b(l.from)??void 0,onChange:d=>g({...l,to:d?d.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}})]})]})}const ad=X.createContext(void 0);function aP({children:e,...t}){const n=X.useContext(ad);return f.jsxs(W.Paper,{...t,children:[e,n&&f.jsx(W.Box,{role:"note",sx:{px:2,py:1,borderTop:1,borderColor:"divider",color:"text.secondary",typography:"caption"},children:n})]})}const eo=e=>e.toLocaleString("en-US");function lP(e,t,n){if(e.active)return e.searching?"Searching all values…":e.failed?`Could not search all values. Showing matches in the first ${eo(un)}.`:e.page?.truncated?`Showing the first ${eo(si)} matches. Keep typing to narrow them.`:void 0;if(t)return n?`Showing the first ${eo(un)} values. Type to search them all.`:`Showing the first ${eo(un)} values. A value not listed can still be typed.`}const ld=X.createContext(void 0),qn=()=>X.useContext(ld),Rn="remove-badge",cd={[`& .${Rn}`]:{opacity:0},[`&:hover .${Rn}, &:focus-within .${Rn}`]:{opacity:1},"@media (hover: none)":{[`& .${Rn}`]:{opacity:1}}};function ud({label:e,onRemove:t,disabledReason:n,inset:r=0}){const{theme:o}=Se.usePublisherTheme(),s=n!==void 0,i=f.jsx(W.IconButton,{className:Rn,"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 ${Yn(o.cardBorder)}`,bgcolor:a.palette.background.paper,color:a.palette.text.secondary,cursor:s?"default":"pointer",transition:`opacity ${Or}`,...Ar,"&:hover":{bgcolor:a.palette.background.paper,color:s?a.palette.text.secondary:a.palette.text.primary,borderColor:Qs(o.cardBorder,o.tileTitle)}}),children:f.jsx(Bo,{sx:{fontSize:12}})});return s?f.jsx(W.Tooltip,{title:n,children:i}):i}const Vi=e=>e.required===!0,cP=(e,t)=>e==null||e===""&&!jc(t);function uP(e,t,n){return e.filter(r=>r.name!==void 0&&Vi(r)&&cP(t.get(r.name),r.type)&&(n?.[r.name]===void 0||n[r.name]===null))}function dP(e,t){if(!t||e.length===0)return[];const n=new Set(t);return e.filter(r=>r.name&&n.has(r.name))}const dd=e=>e.label??e.name??"";function pd(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`}function pP(e){const t=e.map(dd);return`Pick a value for ${pd(t)} to see this report.`}function fP(e){return`Waiting for ${pd(e.map(dd))}.`}const As=28,hP=/^\d{4}-\d{2}-\d{2}$/,fd=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function ys(e){if(!hP.test(e))return e;const t=new Date(`${e}T00:00:00Z`);return Number.isNaN(t.getTime())?e:fd.format(t)}function mP(e){if(e.length===0)return"";const t=e.join(", ");return t.length<=As||e.length===1?Mo(t):`${Mo(e[0]??"")} +${e.length-1}`}function Mo(e){return e.length>As?`${e.slice(0,As-1)}…`:e}function gP(e){if(Vi(e))return"Required";const t=e.type??"string",n=ji(t,e.default);if(n!==void 0&&n!=="")return hd(t,n);const r=qt(t)??t;return e.control==="select"||e.control==="multiselect"||r==="string"?"All":"Any"}function hd(e,t){if(!Yt(e))return Mo(ys(t));const n=qt(e);if(n==="string"&&Pc(t))return mP(Cc(t));if(n==="number"){const r=Tc(t);if(r)return`${r[0]}–${r[1]}`;const o=Mc(t);if(o!==void 0)return`≥ ${o}`}if(n==="date"||n==="timestamp"||n==="timestamptz"){const r=Dc(t);if(r)return wr.find(s=>s.key===r)?.label??t;const o=Rc(t);if(o)return`${ys(o.firstDay)} – ${ys(o.lastDay)}`}return Mo(t)}function yP(e,t){return t==null?gP(e):t instanceof Date?Number.isNaN(t.getTime())?"":fd.format(t):typeof t=="boolean"?t?"Yes":"No":typeof t=="number"?String(t):t===""?"(empty)":hd(e.type??"string",t)}function bP(e){const{given:t,value:n,onChange:r}=e,{theme:o}=Se.usePublisherTheme(),s=o.ui,i=qn(),[a,l]=X.useState(null),c=t.name??"",u=t.label??c,p=n!=null,g=yP(t,n),b=a!==null,d=i?.stateOf(c),h=d?.problem,m=d?.fixed,C=f.jsxs(md,{name:c,set:p,open:b,problem:h,fixed:m!==void 0,required:!p&&Vi(t),children:[f.jsxs(W.ButtonBase,{"aria-haspopup":"dialog","aria-expanded":b,"aria-label":`${u}: ${g}`,onClick:w=>l(w.currentTarget),sx:w=>({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:w.palette.text.primary}),children:[f.jsx(W.Box,{component:"span",sx:w=>({color:p?o.accent:w.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:g}),!p&&f.jsx(ac,{"aria-hidden":!0,sx:w=>({fontSize:16,color:w.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(Bo,{sx:{fontSize:14}})})]});return f.jsxs(f.Fragment,{children:[h?f.jsx(W.Tooltip,{title:h,children:C}):C,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(Bi,{...e}),i&&f.jsxs(W.Box,{sx:w=>({mt:1.5,pt:1,borderTop:`1px solid ${w.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}),m!==void 0&&f.jsx(W.Typography,{sx:w=>({...s.type.caption,color:w.palette.text.secondary}),children:m}),f.jsx(SP,{name:c,type:t.type,text:vP(n,t.type)}),m===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 vP(e,t){if(e!=null)return Lc(e,t)}function xP(e,t){return e===void 0||!t?.startsWith("filter<")?e:/^f(['"])([\s\S]*)\1$/.exec(e)?.[2]??e}function SP({name:e,type:t,text:n}){const r=qn(),o=Se.usePublisherTheme().theme.ui;if(!r?.setStartingValue)return null;const s=r.setStartingValue,i=xP(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 md({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=qn();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:Yn(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 ${Or}`,...Ar,"&:hover":{borderColor:t||n||o?void 0:Qs(l.cardBorder,l.tileTitle)},maxWidth:"100%",...cd}),children:[a,u&&!s&&f.jsx(ud,{label:`Remove filter ${e}`,onRemove:()=>u.onRemove(e)})]})}function gd({name:e,label:t,unused:n=!0}){const r=qn(),o=Se.usePublisherTheme().theme.ui;if(!r)return null;const s=r.stateOf(e)?.problem,i=f.jsx(md,{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 yd(){const{theme:e}=Se.usePublisherTheme(),t=e.ui,n=qn();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(Xs,{}),"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:Yn(e.cardBorder),color:o.palette.text.secondary,boxShadow:"none",...t.type.control,"& .MuiButton-startIcon":{mr:.5},"& .MuiButton-startIcon svg":{fontSize:16}}),children:"Filter"})})})}function wP({givens:e,values:t,onChange:n,onReset:r,canReset:o,layout:s="panel",options:i,optionsLoading:a,optionsFailed:l,optionsTruncated:c,optionSearch:u,apply:p,title:g}){const b=qn();if(e.length===0&&!(b&&s==="bar"))return null;const d=Array.from(t.values()).some(x=>x!==null),h=o??d,m=x=>{if(x===void 0)return{};const v=u?.get(x);return{...c?.has(x)?{optionsTruncated:!0}:{},...v?{optionSearch:v}:{}}},C=e.map(x=>f.jsx(W.Box,{children:f.jsx(Bi,{given:x,value:x.name?t.get(x.name):void 0,onChange:v=>x.name&&n(x.name,v),options:x.name?i?.get(x.name):void 0,optionsLoading:a,optionsFailed:x.name?l?.has(x.name):void 0,...m(x.name)})},x.name)),w=f.jsxs(W.Stack,{direction:"row",alignItems:"center",spacing:1,children:[p&&f.jsx(W.Button,{variant:"contained",size:"small",disableElevation:!0,onClick:p.onApply,disabled:!p.pending,children:"Apply"}),h&&f.jsx(W.Button,{variant:"text",size:"small",onClick:r,children:"Reset"})]});return s==="bar"?f.jsxs(W.Stack,{direction:"row",role:"group","aria-label":g??"Filters",useFlexGap:!0,sx:{flexWrap:"wrap",alignItems:"center",gap:1},children:[e.map(x=>f.jsx(bP,{given:x,value:x.name?t.get(x.name):void 0,onChange:v=>x.name&&n(x.name,v),options:x.name?i?.get(x.name):void 0,optionsLoading:a,optionsFailed:x.name?l?.has(x.name):void 0,...m(x.name)},x.name)),b?.unrendered.map(x=>f.jsx(gd,{name:x.name,label:x.label},x.name)),f.jsx(yd,{}),f.jsx(W.Box,{sx:{ml:"auto"},children:w})]}):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:g??"Filters"}),w]}),f.jsx(W.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:C})]})}const CP=/^(https?|mailto|tel):/i,PP=/^[a-z][a-z0-9+.-]*:/i;function kP({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&&!CP.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 MP=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:cc},"& 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 TP({alt:e}){return f.jsx(f.Fragment,{children:e})}function DP({children:e,variant:t="caption",links:n,sx:r}){const{theme:o}=Se.usePublisherTheme();return f.jsx(W.Box,{sx:[MP(o.ui)[t],{fontFamily:o.font.family},...Array.isArray(r)?r:[r]],children:f.jsx(mp,{options:{forceBlock:t==="document",disableParsingRawHTML:!0,overrides:{a:{component:kP,props:{context:n}},img:{component:TP}}},children:e})})}const RP=new Set(["bar","line","chart","scatter_chart"]),IP=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function EP(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":RP.has(e)?"container":"content"}function $P(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&IP.has(e)}function OP(e){return e==="dashboard"?3:2}function bd(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function AP(e,t){const n=bd(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const FP=400,LP=700,NP=600,jP=800,vd=400,Fs=2e3;function xd(e){return e===void 0?Fs:Math.min(e,Fs)}function Ls({sizing:e,contentHeight:t,maxHeight:n,fillHeight:r}){if(e==="container")return n??vd;if(t===void 0||t<=0)return xd(n);const o=n===void 0?t:Math.min(n,t);return r===void 0?o:Math.max(o,r)}const To={opening:e=>e?`Opening the ${e}…`:"Opening…",running:"Running…",loading:"Loading…"};function zi({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 ir;function Sd(){return ir||(ir=import("@malloydata/render"),ir.catch(()=>{ir=void 0})),ir}function wd(){typeof window>"u"||Sd().catch(()=>{})}const Cd=$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 Pd({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 BP=new Set(["warn","error"]);function VP(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!BP.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(`
138
+ `)}}const zP=X.lazy(()=>Promise.resolve().then(()=>require("./RenderedResult-DtQtNV0d.cjs.js")).then(e=>e.RenderedResult$1));function kd({result:e,maxHeight:t,maxResultSize:n=0,renderLogs:r,drill:o,fill:s=!1}){const i=X.useRef(null);X.useEffect(()=>wd(),[]);const[a,l]=X.useState(void 0),[c,u]=X.useState(void 0),[p,g]=X.useState(!1),[b,d]=X.useState(void 0),h=VP(r),m=!!e;if(X.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,m,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(yp.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:()=>g(!0),children:"Proceed"})]});const w=f.jsx(zi,{text:To.loading,centered:!0,size:32}),x=Ls({sizing:a,contentHeight:c,maxHeight:t,fillHeight:s?b:void 0}),v=f.jsx(X.Suspense,{fallback:w,children:f.jsx(zP,{result:e,height:x,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 ${Ls({sizing:a,contentHeight:c,maxHeight:t})}px`,minHeight:0}},children:[s?f.jsx(W.Box,{sx:{position:"absolute",inset:0},children:v}):v,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(Pd,{"aria-label":"Render tag warnings",children:f.jsx(Cd,{fontSize:"small",color:h.severity==="error"?"error":"warning"})})})})]})}function Md({state:e,context:t,loadingText:n=To.running,maxHeight:r,maxResultSize:o,drill:s,fill:i,transform:a}){const{data:l,isSuccess:c,isError:u,error:p,fetchStatus:g,isPlaceholderData:b}=e,d=c||g==="fetching";X.useEffect(()=>{d&&wd()},[d]);const h=l?.data.result,m=X.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(zi,{text:g==="idle"?To.loading:n});const C=f.jsx(kd,{result:m,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:C})]})}const Ns=()=>typeof performance<"u"?performance.now():Date.now(),_P=$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"})),WP=3;function HP(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 UP(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} or ${e[e.length-1]}`}function Td({ignored:e}){const{theme:t}=Se.usePublisherTheme();if(e.length===0)return null;const n=e.length>WP?`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 ${UP(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(_P,{sx:{fontSize:12}}),f.jsx(W.Box,{component:"span",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})]})}function YP(e,t){if(e==="linear")return{layout:"linear",columns:1,widths:!1,insertBetween:!0};const n=t??qh;return{layout:"grid",columns:n,widths:n>1,insertBetween:!1}}const _i=20,GP={radius:"8px",padding:`${_i}px`};function qP(e,t=GP){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 Dd={query:120,text:72};function Wi({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:Dd[n],p:t==="none"?0:e?"12px 0":`${_i}px`},...Array.isArray(r)?r:[r]],children:s})}const Rd=$t.tileHeading;function Id({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:Rd,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 KP=-1;function XP(){const[e,t]=X.useState(!1),n=X.useRef(null);return{stickyRef:X.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 Ed=4,QP=2;function ZP({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:QP},...Array.isArray(s)?s:[s]],children:[t,n,r,o]})}function JP({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 ek({sx:e,children:t}){return f.jsx(Wi,{chrome:"none",kind:"text",...e?{sx:e}:{},children:t})}function tk({children:e}){const{theme:t}=Se.usePublisherTheme(),{stickyRef:n,stuck:r}=XP();return f.jsx(W.Box,{ref:n,className:$t.filterRow,"data-stuck":r||void 0,sx:{position:"sticky",top:`${KP}px`,zIndex:Ed,bgcolor:r?"background.default":"transparent",pb:1,pt:1,mt:-1,boxShadow:r?`0 1px 0 ${Yn(t.cardBorder)}`:"none",transition:`box-shadow ${Or}`,...Ar},children:e})}const $d=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},Od=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 Hi(e,t){if(e[t])return e;const n=e.default;return n?.[t]?n:e}const nk=e=>Hi(e,"MalloyTranslator"),rk=e=>Hi(e,"parseAnnotation"),ok=e=>Hi(e,"ASTQuery");async function sk(){return nk(await import("@malloydata/malloy"))}async function ik(){return rk(await import("@malloydata/malloy-tag"))}async function ak(){return ok(await import("@malloydata/malloy-query-builder"))}async function lk(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 ck(e){return e.find(t=>t.authoritative)??e.find(t=>t.writeable)}function Ad({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 uk(e,t){return e??(t===void 0?void 0:await lk(t))}function dk({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 pk(e){return e instanceof Error?e.message:String(e)}function fk(e){const t=e.response?.data;return t?.message?t.message:e instanceof Error?e.message:String(e)}async function hk({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(g){for(const b of a)t.invalidateQueries({queryKey:b});throw new Error(fk(g))}const p=u.data.contentHash;await c?.(p);for(const{queryKey:g,refetchType:b,wait:d}of l){const h=t.invalidateQueries({queryKey:g,...b?{refetchType:b}:{}});d&&await h}return p}function mk(e,t){return t===void 0||!/\.(saved|save_undone)$/.test(e.type)||e.where==="package"?e:{...e,workspace:t}}function gk(e){if(!("resourceUri"in e))return{environmentName:e.environmentName,packageName:e.packageName,versionId:void 0,namesBoth:!0};let t;try{t=$d(e.resourceUri)}catch{t=void 0}return{environmentName:t?.environmentName??"",packageName:t?.packageName??"",versionId:t?.versionId,namesBoth:!!t?.environmentName&&!!t?.packageName}}class Fd extends Error{constructor(t){super(t),this.name="DocumentNotFoundError"}}const Ld=e=>e instanceof Fd||e instanceof Error&&e.name==="DocumentNotFoundError",yk=String.raw`##?\|?[ \t]*(?:[([{<][ \t]*)?(?:(?:(?:row|source)[-_]?)?authorize|access[-_]?filter)(?=[)\]}>]|[ \t]|$)`;function Ui(e,t){if(/[\r\n]/.test(t))return`A ${e} is one line; it cannot hold a line break.`;if(new RegExp(yk,"iu").test(t))return`A ${e} cannot contain what reads as an access-control tag (authorize, row_authorize, source_authorize or access_filter).`}const ar=e=>_s.isBareName(e)?e:`\`${e}\``;function Yi(e){const{title:t,modelPath:n,source:r,view:o}=e;if(t.trim()==="")return"A title cannot be empty.";const s=Ui("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 bk=e=>{const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)},Al=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,vk="report.malloy";function Gi(e,t,n=vk){const r=Yi(e);if(r)throw new Error(r);const{modelPath:o,source:s,view:i}=e,a=e.title.trim(),l=Al(a),c=ar(`${s}_tiles`),u=ar(`${i}_tile`),p=`"${c} -> ${u}"`;return["##! experimental.givens",`##| artifact { layout=${t} title=${l}`," tiles=[",` ${p}`," ]",t==="grid"?"} dashboard { columns=12 }":"}","|##",`import { ${ar(s)} } from "${mc(o,n)}"`,"",`source: ${c} is ${ar(s)} extend {`,` # label=${Al(bk(i))}`,` view: ${u} is ${ar(i)}`,"}",""].join(`
139
+ `)}function xk(e,t){return Gi(e,"linear",t)}function Nd(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,80)}function Sk({title:e,modelPath:t,source:n,view:r}){for(const[o,s]of[["source",n],["view",r]])if(!_s.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.`:Ui("title",e)}function wk(e,t){const n=Sk(e);if(n)throw new Error(n);return Gi(e,"grid",t)}const jd=e=>(e??"").trim().replace(/\\/g,"/").split("/").filter(t=>t!=="").join("/");function Bd(e,t){const n=jd(t);return`${n===""?"":`${n}/`}${e}.malloy`}function Vd(e){return Nd(e)||"untitled"}function zd(e,t=1,n){const r=Vd(e);return Bd(t>1?`${r}-${t}`:r,n)}const _d=(e,t,n)=>`${e}/${t}/${n}`,Wd=(e,t,n,r,o)=>({workspace:t,type:e,path:_d(n,r,o)}),qi=20;function Ck(e){const{savesTo:t,writer:n}=Ad({...e,readFailed:!1});return t==="browser"?void 0:n}const Fl=e=>e.slice(e.lastIndexOf("/")+1).replace(/\.malloy$/,"");function Hd(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=Ns();let r;try{r=await kk(e,t)}catch(o){throw bo({path:e.path??"",layout:t},e.onEvent).emit({type:"report.create_refused",reason:o instanceof Error?o.message:String(o)}),o}return bo({path:r.path,layout:t},e.onEvent).emit({type:"report.created",where:e.target.route==="package"?"package":"host",durationMs:Ns()-n}),e.onCreated?.(r),r}async function kk(e,t){const{document:n,target:r}=e,o=Yi(n);if(o)throw new Error(o);const s=jd(e.directory),i=e.path!==void 0?[e.path]:Array.from({length:qi},(h,m)=>zd(n.title,m+1,s));for(const h of i){const m=Hd(h);if(m)throw new Error(m)}const a=h=>Gi(n,t,h);if(r.route==="package"){const h=new Set(r.existing);let m;for(const C of i)if(!h.has(C))try{await r.write(C,a(C)),m=C;break}catch(w){if(!Mk(w))throw w}if(m===void 0)throw Ll(n.title,e.path);return{layout:t,path:m,slug:Fl(m)}}const{storage:l,workspace:c,environmentName:u,packageName:p}=r,g=new Set(r.existing),b=new Set((await l.listDocuments(c)).map(h=>h.path));let d;for(const h of i){const m=Wd(t,c.name,u,p,h),C=await l.resolveDocumentPath?.(m)??h;if(b.has(m.path)||g.has(h)||g.has(C))continue;let w=!0;try{await l.getDocument(m)}catch(x){if(!Ld(x))throw x;w=!1}if(!w){d={layout:t,path:C,slug:Fl(C),locator:m};break}}if(d===void 0)throw Ll(n.title,e.path);return await l.saveDocument(d.locator,a(d.path)),d}const Mk=e=>e?.response?.status===409,Ll=(e,t)=>new Error(t!==void 0?`${t} already exists. Fix: choose a different location.`:`No free file name for "${e}" after ${qi} tries. Fix: choose a different title.`);function Ud(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 Yd=["bar_chart","line_chart","scatter_chart","shape_map","segment_map","big_value","sparkline"],Gd=["line_chart","bar_chart","big_value","scatter_chart","shape_map","segment_map"],qd=e=>Gd.includes(e),js=new Set([...Yd,"viz"]);function _r(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(!js.has(i))return;r.push(i)}else{if(o!==void 0||!js.has(s))return;o=s}return{negated:r,...o!==void 0&&{pick:o}}}function Ki(e){const t=e.trim();return!/^#[ \t]/.test(t)||_r(t)?!1:(t.replace(/"(?:[^"\\]|\\.)*"/g,'""').match(/[A-Za-z_]+/g)??[]).some(r=>js.has(r))}function Tk(e,t){return["#",...Gd.filter(r=>r!==e&&(t===void 0||t.includes(r))).map(r=>`-${r}`),"-viz",...e==="none"?[]:[e]].join(" ")}function Dk(e){return e.pick!==void 0?qd(e.pick)?e.pick:"custom":e.negated.includes("viz")?"none":"custom"}function Rk(e){if(e.length===0)return"default";if(e.length>1)return"custom";const t=_r(e[0]);return t?Dk(t):"custom"}function Ik(e){const t=e.filter(n=>_r(n));return e.some(Ki)?"custom":t.length===0?void 0:Rk(t)}const Ek=e=>e.filter(t=>_r(t)||Ki(t));function Bs(e){for(const t of e??[]){const n=/^#\(doc\)\s*(.*)$/s.exec(t.trim());if(n)return n[1].trim()}}function Kd(e){for(const t of e??[]){const n=/^#\s*(?:-[A-Za-z_]+\s+)*([a-z_]+)/.exec(t.trim())?.[1];if(n&&Yd.includes(n))return n}}function $k({environmentName:e,packageName:t,versionId:n,models:r,enabled:o}){const{apiClients:s,server:i}=Se.useServer(),a=Hn.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=X.useMemo(()=>{const d=new Map;return a.forEach((h,m)=>{const C=[],w=Ud(h.data?.modelInfo);for(const x of h.data?.sources??[]){if(typeof x.name!="string"||!w.has(x.name))continue;const v=Bs(x.annotations);for(const P of x.views??[])if(typeof P.name=="string"){const k=Bs(P.annotations),I=Kd(P.annotations);C.push({source:x.name,view:P.name,...k?{description:k}:{},...I?{chart:I}:{},...v?{sourceDescription:v}:{}})}}C.length>0&&d.set(r[m],C)}),d},[l,r]),u=a.some(d=>d.isLoading),p=u?[]:r.filter((d,h)=>a[h]?.isError),g=!u&&a.some(d=>d.isError&&_s.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:g}}const Xi=X.createContext(void 0);function Ok({children:e,documentStorage:t}){const n=X.useMemo(()=>({documentStorage:t}),[t]);return f.jsx(Xi.Provider,{value:n,children:e})}function Ak(){const e=X.useContext(Xi);if(!e)throw new Error("useDocumentStorage must be used within a DocumentStorageProvider");return e}function Fk(){return X.useContext(Xi)}function Lk(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 Nk=1e4,jk=e=>e==="notebook"?"linear":"grid",Bk=(e,t)=>`${e}s/${t}.malloy`,Vk=/\.malloy(nb)?$/,zk=e=>e&&e.slice(e.lastIndexOf("/")+1).replace(Vk,"")||void 0,Xd=e=>e.replace(/\.malloy$/,"").split("/").map(encodeURIComponent).join("/"),Qd=(e,t,n)=>`/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${Xd(n)}`,Zd="edit",_k=(e,t,n)=>`${Qd(e,t,n)}?${Zd}`,Jd=e=>e.layout==="linear"?"linear":"grid",ep=e=>({layout:Jd(e),path:e.path,editable:e.editable!==!1});function Qi(e,t){const n=t.find(r=>r.path===e);return n?.path?ep({...n,path:n.path}):void 0}function tp(e){return e===""||e.startsWith("/")?!1:e.split("/").every(t=>t!==""&&t!=="."&&t!=="..")}function Wk(e,t){if(!tp(e))return{kind:"unresolved"};for(const n of[`${e}.malloy`,e]){const r=Qi(n,t);if(r)return{kind:"path",report:r}}return{kind:"unresolved"}}function Hk(e,t,n){return[["dashboards"],["notebooks"],["dashboard"],...n===void 0?[]:[[Od({environmentName:e,packageName:t,modelPath:n})]]]}function Uk(e,t,n,r){for(const o of[["report"],["reports"],...Hk(t,n,r)])e.invalidateQueries({queryKey:o})}const Yk=(e,t,n)=>["reports",e,t,n];async function Gk(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 np(e,t,n,r=!0){const{apiClients:o}=Se.useServer(),s=Jo({queryKey:Yk(e,t,n),queryFn:()=>Gk(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 qk(e,t,n,r){const{reports:o,settled:s}=np(e,t,r);return{settled:s,reports:o,location:s?Qi(n,o):void 0}}function Jo(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 Hn.useQuery(n,Se.globalQueryClient)}function Kk(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 Hn.useMutation(t,Se.globalQueryClient)}function rp(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function Xk(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath]}function op(e,{enabled:t=!0}={}){const{apiClients:n}=Se.useServer(),r=rp(e);return Jo({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&&Zk(s.queryKey,r)?Hn.keepPreviousData(o):void 0,...Se.CHART_RESULT_QUERY_OPTIONS})}const Qk=8;function Zk(e,t){return e.every((n,r)=>r===Qk||r>=t.length||n===t[r])}const Jk=/<\/?[A-Za-z][^>]*>|<!--|<![A-Za-z]/;function sp(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&&Jk.test(s)){e.delete("label"),t=!0;continue}}const o=Array.isArray(r.eq)?r.eq:[];for(const s of[r,...o])sp(s)&&(t=!0)}return t}function eM(e){const t=e.trim();if(!/^#(?:\||[ \t\r\n]|$)/.test(t))return e;if(t.includes("@env."))return"";let n;try{n=bp.parseAnnotation(t)}catch{return""}return n.log.length>0?"":sp(n.tag)?`${n.tag.toString()}
140
+ `:e}function Vs(e){if(Array.isArray(e)){for(const n of e)Vs(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=eM(s.value))}else Vs(r)}function ip(e){let t;try{t=JSON.parse(e)}catch{return e}const n=JSON.stringify(t);Vs(t);const r=JSON.stringify(t);return r===n?e:r}const tM=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"]),nM={value:`# big_value
141
+ `},rM=/^#\(malloy\)[\s\S]*\bcalculation\b/;function oM(e){return e?e.kind==="measure"?!0:(e.annotations??[]).some(t=>typeof t?.value=="string"&&rM.test(t.value.trim())):!1}function sM(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(oM))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 iM(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(tM.has(o))return!0}return!1}function ap(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!sM(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return iM(r)?e:JSON.stringify({...t,annotations:[nM,...n]})}const aM=e=>ip(ap(e));function zs(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?Ec(t):e}function lM({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:g,declaredTypes:b,givenNames:d,height:h,maxResultSize:m,drill:C,onExplore:w,chrome:x="card",ignoredFilters:v,preamble:P,restricted:k,waitingFor:I,index:R}){const{theme:A}=Se.usePublisherTheme(),[O,$]=Sm(),y=op({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:s!==void 0?oi(P??"",`${i?`${i}
142
+ `:""}run: ${s}`):void 0,givens:ri(ni(p,b,d),g,d)},{enabled:$&&k!==!0&&I===void 0}),{emit:E}=Zs(),D=y.isError?y.error:void 0;X.useEffect(()=>{D!==void 0&&E({type:"report.query_failed",...R!==void 0?{tile:R}:{},category:wc(D)})},[D,E,R]);const M=k===!0||P!==void 0&&y.isError&&tg(y.error);return f.jsxs(Wi,{cardRef:O,borderless:u,chrome:x,sx:{"& .malloy-render, & .malloy-table":{width:"100%"},"& .publisher-tile-explore":{opacity:0,transition:`opacity ${Or}`,...Ar,...lc},"&:hover .publisher-tile-explore, & .publisher-tile-explore:focus-visible":{opacity:1}},children:[s!==void 0&&f.jsx(Id,{title:c?.title??a??zs(s),subtitle:c?c.subtitle:l,quiet:x==="none",tooltip:s,action:w&&f.jsx(W.Tooltip,{title:"Explore from here",children:f.jsx(W.IconButton,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${a??zs(s)}`,onClick:w,sx:{mt:-.5,mr:-.5,color:A.tileTitle},children:f.jsx(bm,{fontSize:"small"})})})}),v&&f.jsx(Td,{ignored:v}),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:zc})}):f.jsx(Md,{fill:!0,state:y,context:s??o??r,maxHeight:h,maxResultSize:m,drill:C,transform:P!==void 0?s!==void 0?aM:ip:s!==void 0?ap:void 0})]})}function cM(e,{enabled:t=!0}={}){const{apiClients:n}=Se.useServer();return Jo({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=vo;exports.AddButton=rm;exports.AddFilterButton=yd;exports.AddIcon=Xs;exports.ApiErrorDisplay=yc;exports.AppDialog=ic;exports.ArrowDropDownIcon=Hu;exports.BARE_RING_OFFSET_PX=Qh;exports.BUILDER_HANDOFF_STALE_MS=Nk;exports.Button=pr;exports.ButtonBase=Bn;exports.ChartGlyph=dc;exports.CheckIcon=nm;exports.Chip=Ou;exports.CircularProgress=gi;exports.ClassNameGenerator=jl;exports.CloseIcon=Bo;exports.DASHBOARD_CARD_PADDING_PX=_i;exports.DRILL_SELF=Ym;exports.DashboardGrid=em;exports.DashboardTile=lM;exports.DatePicker=Dr;exports.DeleteOutlineIcon=ym;exports.DocumentNotFoundError=Fd;exports.DocumentStorageProvider=Ok;exports.ErrorDetailAlert=gc;exports.ExpandMoreIcon=ac;exports.FilterEditingContext=ld;exports.FilterSettingsButton=gd;exports.FloatingIconButton=Pd;exports.FormControl=$i;exports.GRID_GAP_PX=cn;exports.GivenInput=Bi;exports.GivensPanel=wP;exports.Grow=Pr;exports.INITIAL_RENDER_HEIGHT=Fs;exports.IconButton=jr;exports.InfoOutlinedIcon=Cd;exports.InputLabel=Ei;exports.LOADING_COPY=To;exports.ListContext=$n;exports.Loading=zi;exports.LocalizationProvider=Cr;exports.MAX_SLUG_ATTEMPTS=qi;exports.MIN_TILE_PX=oc;exports.MODEL_CELL_MAX_HEIGHT=NP;exports.MOTION_FAST=Or;exports.NOTEBOOK_CELL_MAX_HEIGHT=LP;exports.PROSE_MAX_WIDTH=cc;exports.Paper=Br;exports.Popper=Pu;exports.Prose=DP;exports.REMOVE_BADGE_CLASS=Rn;exports.REPORT_EDIT_PARAM=Zd;exports.RESTRICTED_NOTICE=zc;exports.RESULTS_DIALOG_MAX_HEIGHT=jP;exports.RemoveBadge=ud;exports.ReportEventsContext=Sc;exports.ReportHeader=JP;exports.ReportPage=ZP;exports.ResultContainer=kd;exports.ResultPanel=Md;exports.STICKY_CONTROLS_Z=Ed;exports.SearchIcon=uc;exports.SecondaryButton=om;exports.Select=Fi;exports.StickyControls=tk;exports.SvgIcon=yo;exports.THEME_ID=Un;exports.TILE_HEADING_CLASS=Rd;exports.TILE_MAX_HEIGHT=FP;exports.TILE_MIN_HEIGHT=Dd;exports.TextField=Uu;exports.TextTileFrame=ek;exports.TileCard=Wi;exports.TileFilterTag=Td;exports.TileHeading=Id;exports.Typography=Xt;exports.UNCAPPED_CONTAINER_HEIGHT=vd;exports.UnsavedChangesDialog=tm;exports.ViewPicker=hm;exports.annotationTextProblem=Ui;exports.buildTableCssVars=qP;exports.capitalize=le;exports.chartLineText=Tk;exports.chartLinesOf=Ek;exports.chartOf=Kd;exports.chartStateOfTagLines=Ik;exports.chooseWorkspace=ck;exports.clearReportDraft=Tm;exports.clsx=de;exports.composeClasses=me;exports.contentNode=bd;exports.contentNodeDepth=OP;exports.createDocument=Pk;exports.createRoute=Ck;exports.createSimplePaletteValueFilter=Xe;exports.createSvgIcon=$e;exports.createTheme=Jl;exports.dangerTextColor=im;exports.dayjs=Re;exports.docOf=Bs;exports.documentPreamble=eg;exports.documentSlug=zk;exports.draftKey=_d;exports.draftStorageAvailable=Dm;exports.drillDestinations=Ic;exports.drillGivenName=$c;exports.drillValueLabel=Oc;exports.drillValueToFilter=Vo;exports.edgeColor=Yn;exports.emphasize=Hl;exports.encodeDrillValue=Ac;exports.encodeResourceUri=Od;exports.escapeMalloyString=bc;exports.expectedHashFor=uk;exports.exportedSources=Ud;exports.extractEventHandlers=li;exports.failureCategory=wc;exports.filledInputClasses=Ut;exports.formControlState=bn;exports.generateUtilityClass=ge;exports.generateUtilityClasses=he;exports.getAugmentedNamespace=Sp;exports.getDefaultExportFromCjs=Nt;exports.getReactElementRef=Gn;exports.givensToParams=io;exports.givensToRequest=ni;exports.hoverEdgeColor=Qs;exports.humanizeSlug=Ec;exports.initialResultHeight=xd;exports.inputBaseClasses=mn;exports.inputClasses=Tn;exports.invalidateReportQueries=Uk;exports.isChartPick=qd;exports.isDocumentNotFound=Ld;exports.isDrillTargetPath=tp;exports.layoutOfKind=jk;exports.layoutRules=YP;exports.legacyNamedPath=Bk;exports.listedLayout=Jd;exports.loadMalloy=sk;exports.loadMalloyRenderer=Sd;exports.loadMalloyTag=ik;exports.loadQueryBuilder=ak;exports.localGivenSpec=wm;exports.locateReport=Qi;exports.locatedReport=ep;exports.locatorFor=Wd;exports.malloyLiteral=Pm;exports.measureContentHeight=AP;exports.memoTheme=Ee;exports.mentionsChartTag=Ki;exports.mergeSlotProps=rc;exports.missingRequiredGivens=uP;exports.modelResultsKey=Xk;exports.newDashboardSource=wk;exports.newDocumentProblem=Yi;exports.newNotebookSource=xk;exports.now=Ns;exports.nudgedSpan=Xh;exports.outlinedInputClasses=bt;exports.ownerDocument=Ye;exports.parseChartLine=_r;exports.parseResourceUri=$d;exports.queryResultKey=rp;exports.readableName=fm;exports.reducedMotionSx=Ar;exports.remeasuresAfterReady=$P;exports.removeBadgeRevealSx=cd;exports.renderGivenDefault=ji;exports.reportClasses=$t;exports.reportDraftKey=Mm;exports.reportEditRoute=_k;exports.reportEmitter=bo;exports.reportPathFor=Bd;exports.reportPathForTitle=zd;exports.reportPathProblem=Hd;exports.reportQueryOptions=Lk;exports.reportRoute=Qd;exports.reportRoutePath=Xd;exports.requiredPrompt=pP;exports.resolveDrill=Gm;exports.resolveDrillTarget=Wk;exports.resolveEditorTarget=gk;exports.resolveResultHeight=Ls;exports.resultSizing=EP;exports.rootShouldForwardProp=pt;exports.saveCaption=dk;exports.saveTarget=Ad;exports.scrollBehavior=sm;exports.setRef=ws;exports.slugFor=Nd;exports.slugOrFallback=Vd;exports.storageErrorMessage=pk;exports.styled=G;exports.tileIgnoredFilterLabels=HP;exports.tileTitle=zs;exports.typographyClasses=xy;exports.useCompiledDocument=cM;exports.useControlled=Tt;exports.useDefaultProps=Ce;exports.useDefaultTileSpan=Jh;exports.useDocumentChoices=$k;exports.useDocumentControls=ug;exports.useDocumentLocation=qk;exports.useDocumentStorage=Ak;exports.useDrillSelf=Fc;exports.useEnhancedEffect=Ue;exports.useEventCallback=ue;exports.useForkRef=ke;exports.useFormControl=ft;exports.useGivensState=Vc;exports.useId=xt;exports.useMutationWithApiError=Kk;exports.useOptionalDocumentStorage=Fk;exports.useQueryResult=op;exports.useQueryWithApiError=Jo;exports.useReportDraft=$m;exports.useReportEmitter=Om;exports.useReportEvents=Zs;exports.useReportListing=np;exports.useSlot=je;exports.useSuggestOptions=Wc;exports.useTheme=gn;exports.useTimeout=ai;exports.utc=Js;exports.visibleWithoutHoverSx=lc;exports.waitingOn=dP;exports.waitingText=fP;exports.withHostGivens=ri;exports.withPreamble=oi;exports.withReportContext=vc;exports.withSource=gm;exports.withWorkspace=mk;exports.writePackageFile=hk;