@malloy-publisher/sdk 0.10.2 → 0.10.4

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 (47) hide show
  1. package/dist/{RenderedResult-BCJC0ZVj.es.js → RenderedResult-B_sW7neX.es.js} +328 -265
  2. package/dist/RenderedResult-BlYdT4lz.cjs.js +179 -0
  3. package/dist/builder/index.cjs.js +1 -1
  4. package/dist/builder/index.es.js +2 -2
  5. package/dist/client/api.d.ts +5 -5
  6. package/dist/components/Dashboard/DashboardView.d.ts +10 -3
  7. package/dist/components/Dashboard/DownloadRowsCsv.d.ts +10 -0
  8. package/dist/components/Dashboard/RowsDialog.d.ts +63 -21
  9. package/dist/components/Dashboard/index.d.ts +2 -0
  10. package/dist/components/Dashboard/rowsCsv.d.ts +26 -0
  11. package/dist/components/RenderedResult/ResultContainer.d.ts +2 -3
  12. package/dist/components/RenderedResult/resultSizing.d.ts +2 -0
  13. package/dist/components/Report/Report.d.ts +8 -1
  14. package/dist/components/drill/drillClauses.d.ts +34 -0
  15. package/dist/components/drill/drillClickRelay.d.ts +36 -0
  16. package/dist/components/drill/resolveDrill.d.ts +29 -0
  17. package/dist/components/drill/rowsTarget.d.ts +114 -0
  18. package/dist/components/drill/useDrill.d.ts +24 -12
  19. package/dist/index.cjs.js +13 -11
  20. package/dist/index.es.js +7331 -6886
  21. package/dist/{useCompiledDocument-C995sQ3j.cjs.js → useCompiledDocument-CyPOSStA.cjs.js} +31 -31
  22. package/dist/{useCompiledDocument-Citpvpnx.es.js → useCompiledDocument-xJRD5DRP.es.js} +1587 -1574
  23. package/dist/utils/malloyString.d.ts +2 -1
  24. package/package.json +1 -1
  25. package/src/components/Dashboard/DashboardView.tsx +54 -28
  26. package/src/components/Dashboard/DownloadRowsCsv.tsx +152 -0
  27. package/src/components/Dashboard/RowsDialog.actions.spec.tsx +250 -0
  28. package/src/components/Dashboard/RowsDialog.drill.compile.spec.ts +672 -0
  29. package/src/components/Dashboard/RowsDialog.spec.ts +38 -11
  30. package/src/components/Dashboard/RowsDialog.tsx +194 -40
  31. package/src/components/Dashboard/index.ts +2 -0
  32. package/src/components/Dashboard/rowsCsv.spec.ts +105 -0
  33. package/src/components/Dashboard/rowsCsv.ts +107 -0
  34. package/src/components/RenderedResult/RenderedResult.tsx +44 -7
  35. package/src/components/RenderedResult/ResultContainer.tsx +2 -2
  36. package/src/components/RenderedResult/resultSizing.ts +3 -0
  37. package/src/components/Report/Report.tsx +9 -0
  38. package/src/components/drill/drillClauses.ts +201 -0
  39. package/src/components/drill/drillClickRelay.spec.ts +122 -0
  40. package/src/components/drill/drillClickRelay.ts +106 -0
  41. package/src/components/drill/resolveDrill.ts +29 -0
  42. package/src/components/drill/rowsTarget.ts +245 -0
  43. package/src/components/drill/useDrill.spec.tsx +311 -15
  44. package/src/components/drill/useDrill.tsx +206 -67
  45. package/src/components/legacy/malloynb/NotebookCell.tsx +0 -7
  46. package/src/utils/malloyString.ts +21 -2
  47. package/dist/RenderedResult-B5f4qOjp.cjs.js +0 -171
@@ -1,4 +1,4 @@
1
- "use strict";var Ap=Object.create;var oa=Object.defineProperty;var Fp=Object.getOwnPropertyDescriptor;var Lp=Object.getOwnPropertyNames;var Np=Object.getPrototypeOf,jp=Object.prototype.hasOwnProperty;var Bp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Lp(t))!jp.call(e,o)&&o!==n&&oa(e,o,{get:()=>t[o],enumerable:!(r=Fp(t,o))||r.enumerable});return e};var _r=(e,t,n)=>(n=e!=null?Ap(Np(e)):{},Bp(t||!e||!e.__esModule?oa(n,"default",{value:e,enumerable:!0}):n,e));const f=require("react/jsx-runtime"),H=require("@mui/material"),Se=require("./ServerProvider-e2369oom.cjs.js"),W=require("react"),Hn=require("@tanstack/react-query"),Vp=require("@emotion/react"),He=require("@mui/system"),lr=require("react-dom"),_p=require("markdown-to-jsx"),Ws=require("./text-entry-BJwltZiy.cjs.js"),zp=require("@emotion/styled"),tt=require("@malloydata/malloy-filter"),Wp=require("@mui/icons-material"),Hp=require("@malloydata/malloy-tag");function Ul(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=Ul(W),Up=Ul(lr),Ot={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"},sa=e=>e,Yp=()=>{let e=sa;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sa}}},Yl=Yp();function At(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 ae(e){if(typeof e!="string")throw new Error(At(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ia(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gp(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 ts={exports:{}},ns,aa;function qp(){if(aa)return ns;aa=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ns=e,ns}var rs,la;function Kp(){if(la)return rs;la=1;var e=qp();function t(){}function n(){}return n.resetWarningCache=t,rs=function(){function r(i,a,l,c,u,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}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},rs}var ca;function Xp(){return ca||(ca=1,ts.exports=Kp()()),ts.exports}var Qp=Xp();const Y=jt(Qp);function Gl(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=Gl(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=Gl(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 os={exports:{}},Ie={};/**
1
+ "use strict";var Fp=Object.create;var oa=Object.defineProperty;var Lp=Object.getOwnPropertyDescriptor;var Np=Object.getOwnPropertyNames;var jp=Object.getPrototypeOf,Bp=Object.prototype.hasOwnProperty;var Vp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Np(t))!Bp.call(e,o)&&o!==n&&oa(e,o,{get:()=>t[o],enumerable:!(r=Lp(t,o))||r.enumerable});return e};var _r=(e,t,n)=>(n=e!=null?Fp(jp(e)):{},Vp(t||!e||!e.__esModule?oa(n,"default",{value:e,enumerable:!0}):n,e));const f=require("react/jsx-runtime"),H=require("@mui/material"),Se=require("./ServerProvider-e2369oom.cjs.js"),W=require("react"),Hn=require("@tanstack/react-query"),_p=require("@emotion/react"),He=require("@mui/system"),lr=require("react-dom"),zp=require("markdown-to-jsx"),Ws=require("./text-entry-BJwltZiy.cjs.js"),Wp=require("@emotion/styled"),tt=require("@malloydata/malloy-filter"),Hp=require("@mui/icons-material"),Up=require("@malloydata/malloy-tag");function Ul(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=Ul(W),Yp=Ul(lr),Ot={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"},sa=e=>e,Gp=()=>{let e=sa;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sa}}},Yl=Gp();function At(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 ae(e){if(typeof e!="string")throw new Error(At(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ia(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qp(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 ts={exports:{}},ns,aa;function Kp(){if(aa)return ns;aa=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ns=e,ns}var rs,la;function Xp(){if(la)return rs;la=1;var e=Kp();function t(){}function n(){}return n.resetWarningCache=t,rs=function(){function r(i,a,l,c,u,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}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},rs}var ca;function Qp(){return ca||(ca=1,ts.exports=Xp()()),ts.exports}var Zp=Qp();const Y=jt(Zp);function Gl(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=Gl(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=Gl(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 os={exports:{}},Ie={};/**
2
2
  * @license React
3
3
  * react-is.production.js
4
4
  *
@@ -6,30 +6,30 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ua;function Zp(){if(ua)return Ie;ua=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"),h=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function d(m){if(typeof m=="object"&&m!==null){var g=m.$$typeof;switch(g){case e:switch(m=m.type,m){case n:case o:case r:case l:case c:case h:return m;default:switch(m=m&&m.$$typeof,m){case i:case a:case p:case u:return m;case s:return m;default:return g}}case t:return g}}}return Ie.ContextConsumer=s,Ie.ContextProvider=i,Ie.Element=e,Ie.ForwardRef=a,Ie.Fragment=n,Ie.Lazy=p,Ie.Memo=u,Ie.Portal=t,Ie.Profiler=o,Ie.StrictMode=r,Ie.Suspense=l,Ie.SuspenseList=c,Ie.isContextConsumer=function(m){return d(m)===s},Ie.isContextProvider=function(m){return d(m)===i},Ie.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Ie.isForwardRef=function(m){return d(m)===a},Ie.isFragment=function(m){return d(m)===n},Ie.isLazy=function(m){return d(m)===p},Ie.isMemo=function(m){return d(m)===u},Ie.isPortal=function(m){return d(m)===t},Ie.isProfiler=function(m){return d(m)===o},Ie.isStrictMode=function(m){return d(m)===r},Ie.isSuspense=function(m){return d(m)===l},Ie.isSuspenseList=function(m){return d(m)===c},Ie.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===r||m===l||m===c||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===u||m.$$typeof===i||m.$$typeof===s||m.$$typeof===a||m.$$typeof===v||m.getModuleId!==void 0)},Ie.typeOf=d,Ie}var da;function Jp(){return da||(da=1,os.exports=Zp()),os.exports}var ql=Jp();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 Kl(e){if(S.isValidElement(e)||ql.isValidElementType(e)||!kt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Kl(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])||ql.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])?Kl(t[o]):t[o]:r[o]=t[o]}),r}function fr(e,t){return t?Ge(e,t,{clone:!1}):e}function pa(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 ef(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function tf(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 nf(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 To={xs:0,sm:600,md:900,lg:1200,xl:1536},fa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${To[e]}px)`},rf={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:To[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ft(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||fa;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||fa;return Object.keys(t).reduce((i,a)=>{if(ef(s.keys,a)){const l=tf(r.containerQueries?r:rf,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||To).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 of(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function ha(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Mo(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 po(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Mo(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=Mo(l,r)||{};return Ft(i,a,p=>{let h=po(c,o,p);return p===h&&typeof p=="string"&&(h=po(c,o,`${t}${p==="default"?"":ae(p)}`,p)),n===!1?h:{[n]:h}})};return s.propTypes={},s.filterProps=[t],s}function sf(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const af={m:"margin",p:"padding"},lf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ma={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cf=sf(e=>{if(e.length>2)if(ma[e])e=ma[e];else return[e];const[t,n]=e.split(""),r=af[t],o=lf[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),Hs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Us=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Hs,...Us];function Dr(e,t,n,r){const o=Mo(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 Ys(e){return Dr(e,"spacing",8)}function Rr(e,t){return typeof t=="string"||t==null?t:e(t)}function uf(e,t){return n=>e.reduce((r,o)=>(r[o]=Rr(t,n),r),{})}function df(e,t,n,r){if(!t.includes(n))return null;const o=cf(n),s=uf(o,r),i=e[n];return Ft(e,i,s)}function Xl(e,t){const n=Ys(e.theme);return Object.keys(e).map(r=>df(e,t,r,n)).reduce(fr,{})}function Ve(e){return Xl(e,Hs)}Ve.propTypes={};Ve.filterProps=Hs;function _e(e){return Xl(e,Us)}_e.propTypes={};_e.filterProps=Us;function Do(...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 pf=dt("border",it),ff=dt("borderTop",it),hf=dt("borderRight",it),mf=dt("borderBottom",it),gf=dt("borderLeft",it),yf=dt("borderColor"),bf=dt("borderTopColor"),vf=dt("borderRightColor"),xf=dt("borderBottomColor"),Sf=dt("borderLeftColor"),wf=dt("outline",it),Cf=dt("outlineColor"),Ro=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dr(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Rr(t,r)});return Ft(e,e.borderRadius,n)}return null};Ro.propTypes={};Ro.filterProps=["borderRadius"];Do(pf,ff,hf,mf,gf,yf,bf,vf,xf,Sf,Ro,wf,Cf);const Io=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dr(e.theme,"spacing",8),n=r=>({gap:Rr(t,r)});return Ft(e,e.gap,n)}return null};Io.propTypes={};Io.filterProps=["gap"];const Eo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dr(e.theme,"spacing",8),n=r=>({columnGap:Rr(t,r)});return Ft(e,e.columnGap,n)}return null};Eo.propTypes={};Eo.filterProps=["columnGap"];const $o=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dr(e.theme,"spacing",8),n=r=>({rowGap:Rr(t,r)});return Ft(e,e.rowGap,n)}return null};$o.propTypes={};$o.filterProps=["rowGap"];const Pf=We({prop:"gridColumn"}),kf=We({prop:"gridRow"}),Tf=We({prop:"gridAutoFlow"}),Mf=We({prop:"gridAutoColumns"}),Df=We({prop:"gridAutoRows"}),Rf=We({prop:"gridTemplateColumns"}),If=We({prop:"gridTemplateRows"}),Ef=We({prop:"gridTemplateAreas"}),$f=We({prop:"gridArea"});Do(Io,Eo,$o,Pf,kf,Tf,Mf,Df,Rf,If,Ef,$f);function In(e,t){return t==="grey"?t:e}const Of=We({prop:"color",themeKey:"palette",transform:In}),Af=We({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:In}),Ff=We({prop:"backgroundColor",themeKey:"palette",transform:In});Do(Of,Af,Ff);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const Lf=We({prop:"width",transform:Je}),Gs=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||To[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Je(n)}};return Ft(e,e.maxWidth,t)}return null};Gs.filterProps=["maxWidth"];const Nf=We({prop:"minWidth",transform:Je}),jf=We({prop:"height",transform:Je}),Bf=We({prop:"maxHeight",transform:Je}),Vf=We({prop:"minHeight",transform:Je});We({prop:"size",cssProperty:"width",transform:Je});We({prop:"size",cssProperty:"height",transform:Je});const _f=We({prop:"boxSizing"});Do(Lf,Gs,Nf,jf,Bf,Vf,_f);const Ir={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:Ro},color:{themeKey:"palette",transform:In},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:In},backgroundColor:{themeKey:"palette",transform:In},p:{style:_e},pt:{style:_e},pr:{style:_e},pb:{style:_e},pl:{style:_e},px:{style:_e},py:{style:_e},padding:{style:_e},paddingTop:{style:_e},paddingRight:{style:_e},paddingBottom:{style:_e},paddingLeft:{style:_e},paddingX:{style:_e},paddingY:{style:_e},paddingInline:{style:_e},paddingInlineStart:{style:_e},paddingInlineEnd:{style:_e},paddingBlock:{style:_e},paddingBlockStart:{style:_e},paddingBlockEnd:{style:_e},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:Io},rowGap:{style:$o},columnGap:{style:Eo},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:Gs},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 zf(...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 Wf(e,t){return typeof e=="function"?e(t):e}function Hf(){function e(n,r,o,s){const i={[n]:r,theme:o},a=s[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:p}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=Mo(o,c)||{};return p?p(i):Ft(i,r,d=>{let m=po(h,u,d);return d===m&&typeof d=="string"&&(m=po(h,u,`${n}${d==="default"?"":ae(d)}`,d)),l===!1?m:{[l]:m}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Ir;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=of(o.breakpoints),p=Object.keys(u);let h=u;return Object.keys(c).forEach(v=>{const d=Wf(c[v],o);if(d!=null)if(typeof d=="object")if(i[v])h=fr(h,e(v,d,o,i));else{const m=Ft({theme:o},d,g=>({[v]:g}));zf(m,d)?h[v]=t({sx:d,theme:o,nested:!0}):h=fr(h,m)}else h=fr(h,e(v,d,o,i))}),!s&&o.modularCssLayers?{"@layer sx":pa(o,ha(p,h))}:pa(o,ha(p,h))}return Array.isArray(r)?r.map(a):a(r)}return t}const Fn=Hf();Fn.filterProps=["sx"];const Uf=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ir;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Yf(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Uf(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 Gf(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function qs(e,t=0,n=1){return Gf(e,t,n)}function qf(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 Xt(e){if(e.type)return e;if(e.charAt(0)==="#")return Xt(qf(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(At(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(At(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const Kf=e=>{const t=Xt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},cr=(e,t)=>{try{return Kf(e)}catch{return e}};function Oo(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 Ql(e){e=Xt(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])),Oo({type:a,values:l})}function bs(e){e=Xt(e);let t=e.type==="hsl"||e.type==="hsla"?Xt(Ql(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Xf(e,t){const n=bs(e),r=bs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function fo(e,t){return e=Xt(e),t=qs(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Oo(e)}function Jt(e,t,n){try{return fo(e,t)}catch{return e}}function Ao(e,t){if(e=Xt(e),t=qs(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 Oo(e)}function Me(e,t,n){try{return Ao(e,t)}catch{return e}}function Fo(e,t){if(e=Xt(e),t=qs(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 Oo(e)}function De(e,t,n){try{return Fo(e,t)}catch{return e}}function Zl(e,t=.15){return bs(e)>.5?Ao(e,t):Fo(e,t)}function zr(e,t,n){try{return Zl(e,t)}catch{return e}}const xr={black:"#000",white:"#fff"},Qf={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 Jl(){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 ec=Jl();function tc(){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=tc();function ga(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=Fo(e.main,o):t==="dark"&&(e.dark=Ao(e.main,s)))}function ya(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 Zf(e="light"){return e==="dark"?{main:Sn[200],light:Sn[50],dark:Sn[400]}:{main:Sn[700],light:Sn[400],dark:Sn[800]}}function Jf(e="light"){return e==="dark"?{main:vn[200],light:vn[50],dark:vn[400]}:{main:vn[500],light:vn[300],dark:vn[700]}}function eh(e="light"){return e==="dark"?{main:xn[500],light:xn[300],dark:xn[700]}:{main:xn[700],light:xn[400],dark:xn[800]}}function th(e="light"){return e==="dark"?{main:wn[400],light:wn[300],dark:wn[700]}:{main:wn[700],light:wn[500],dark:wn[900]}}function nh(e="light"){return e==="dark"?{main:Cn[400],light:Cn[300],dark:Cn[700]}:{main:Cn[800],light:Cn[500],dark:Cn[900]}}function rh(e="light"){return e==="dark"?{main:Qn[400],light:Qn[300],dark:Qn[700]}:{main:"#ed6c02",light:Qn[500],dark:Qn[900]}}function oh(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ks(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,i=e.primary||Zf(t),a=e.secondary||Jf(t),l=e.error||eh(t),c=e.info||th(t),u=e.success||nh(t),p=e.warning||rh(t);function h(g){return o?oh(g):Xf(g,vs.text.primary)>=n?vs.text.primary:ec.text.primary}const v=({color:g,name:C,mainShade:w=500,lightShade:y=300,darkShade:x=700})=>{if(g={...g},!g.main&&g[w]&&(g.main=g[w]),!g.hasOwnProperty("main"))throw new Error(At(11,C?` (${C})`:"",w));if(typeof g.main!="string")throw new Error(At(12,C?` (${C})`:"",JSON.stringify(g.main)));return o?(ya(o,g,"light",y,r),ya(o,g,"dark",x,r)):(ga(g,"light",y,r),ga(g,"dark",x,r)),g.contrastText||(g.contrastText=h(g.main)),g};let d;return t==="light"?d=Jl():t==="dark"&&(d=tc()),Ge({common:{...xr},mode:t,primary:v({color:i,name:"primary"}),secondary:v({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:l,name:"error"}),warning:v({color:p,name:"warning"}),info:v({color:c,name:"info"}),success:v({color:u,name:"success"}),grey:Qf,contrastThreshold:n,getContrastText:h,augmentColor:v,tonalOffset:r,...d},s)}function sh(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 ih={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 ah(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var lh=/[A-Z]|^ms/g,ch=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nc=function(t){return t.charCodeAt(1)===45},ba=function(t){return t!=null&&typeof t!="boolean"},ss=ah(function(e){return nc(e)?e:e.replace(lh,"-$&").toLowerCase()}),va=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ch,function(r,o,s){return qt={name:o,styles:s,next:qt},o})}return ih[t]!==1&&!nc(t)&&typeof n=="number"&&n!==0?n+"px":n};function ho(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 qt={name:o.name,styles:o.styles,next:qt},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)qt={name:i.name,styles:i.styles,next:qt},i=i.next;var a=s.styles+";";return a}return uh(e,t,n)}}var l=n;return l}function uh(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ho(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;ba(a)&&(r+=ss(s)+":"+va(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)ba(i[l])&&(r+=ss(s)+":"+va(s,i[l])+";");else{var c=ho(e,t,i);switch(s){case"animation":case"animationName":{r+=ss(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var xa=/label:\s*([^\s;{]+)\s*(;|$)/g,qt;function dh(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="";qt=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=ho(n,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=ho(n,t,e[a]),r){var l=s;o+=l[a]}xa.lastIndex=0;for(var c="",u;(u=xa.exec(o))!==null;)c+="-"+u[1];var p=sh(o)+c;return{name:p,styles:o,next:qt}}function ph(e,t){return zp(e,t)}function fh(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Sa=[];function cn(e){return Sa[0]=e,dh(Sa)}const Ue=typeof window<"u"?S.useLayoutEffect:S.useEffect;function hh(e){return Object.keys(e).length===0}function rc(e=null){const t=S.useContext(Vp.ThemeContext);return!t||hh(t)?e:t}const mh=S.createContext(),vt=()=>S.useContext(mh)??!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 gh=S.createContext(void 0);function yh(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 bh({props:e,name:t}){const n=S.useContext(gh);return yh({props:e,name:t,theme:{components:n}})}let wa=0;function vh(e){const[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t==null&&(wa+=1,n(`mui-${wa}`))},[t]),r}const xh={...S},Ca=xh.useId;function xt(e){if(Ca!==void 0){const t=Ca();return e??t}return vh(e)}const Sh=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 wh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=Sh(t),i=Object.keys(s);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,v){const d=i.indexOf(v);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(d!==-1&&typeof t[i[d]]=="number"?t[i[d]]:v)-r/100}${n})`}function u(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):a(h)}function p(h){const v=i.indexOf(h);return v===0?a(i[1]):v===i.length-1?l(i[v]):c(h,i[i.indexOf(h)+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 Ch={borderRadius:4};function Ph(e=8,t=Ys({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 kh(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 Xs(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=wh(n),l=Ph(o);let c=Ge({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Ch,...s}},i);return c=nf(c),c.applyStyles=kh,c=t.reduce((u,p)=>Ge(u,p),c),c.unstable_sxConfig={...Ir,...i?.unstable_sxConfig},c.unstable_sx=function(p){return Fn({sx:p,theme:this})},c}const Th=Xs();function Mh(e=Th){return rc(e)}const Pa=(e,t,n,r=[])=>{let o=e;t.forEach((s,i)=>{i===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},Dh=(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 is(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return Dh(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}),Pa(s,a,`var(${u})`,c),Pa(i,a,`var(${u}, ${p})`,c)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function Ih(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:h}=is(c,t);let v=h;const d={},{[l]:m,...g}=i;if(Object.entries(g||{}).forEach(([x,P])=>{const{vars:T,css:I,varsWithDefaults:R}=is(P,t);v=Ge(v,R),d[x]={css:I,vars:T}}),m){const{css:x,vars:P,varsWithDefaults:T}=is(m,t);v=Ge(v,T),d[l]={css:x,vars:P}}function C(x,P){let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),x){if(T==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${i[x]?.palette?.mode||x})`]:{":root":P}};if(T)return e.defaultColorScheme===x?`:root, ${T.replace("%s",String(x))}`:T.replace("%s",String(x))}return":root"}return{vars:v,generateThemeVars:()=>{let x={...u};return Object.entries(d).forEach(([,{vars:P}])=>{x=Ge(x,P)}),x},generateStyleSheets:()=>{const x=[],P=e.defaultColorScheme||"light";function T(A,O){Object.keys(O).length&&x.push(typeof A=="string"?{[A]:{...O}}:A)}T(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};T(n(P,{...$}),$)}return Object.entries(R).forEach(([A,{css:O}])=>{const $=i[A]?.palette?.mode,b=!r&&$?{colorScheme:$,...O}:{...O};T(n(A,{...b}),b)}),s&&x.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),x}}}function Eh(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 $h(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 Oh={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=Oh[t];return r?`${n}-${r}`:`${Yl.generate(e)}-${t}`}function Ah(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Fh(e){return Math.round(e*1e5)/1e5}const ka={textTransform:"uppercase"},Ta='"Roboto", "Helvetica", "Arial", sans-serif';function Lh(e,t){const{fontFamily:n=Ta,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,h=r/14,v=u||(g=>`${g/l*h}rem`),d=(g,C,w,y,x)=>({fontFamily:n,fontWeight:g,fontSize:v(C),lineHeight:w,...n===Ta?{letterSpacing:`${Fh(y/C)}em`}:{},...x,...c}),m={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,ka),caption:d(s,12,1.66,.4),overline:d(s,12,2.66,1,ka),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ge({htmlFontSize:l,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...m},p,{clone:!1})}const Nh=.2,jh=.14,Bh=.12;function Ne(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Nh})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${jh})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Bh})`].join(",")}const Vh=["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)],_h={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)"},zh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ma(e){return`${Math.round(e)}ms`}function Wh(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Hh(e){const t={..._h,...e.easing},n={...zh,...e.duration};return{getAutoHeightDuration:Wh,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=s;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:Ma(i)} ${a} ${typeof l=="string"?l:Ma(l)}`).join(",")},...e,easing:t,duration:n}}const Uh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Yh(e){return kt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function oc(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];!Yh(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';
9
+ */var ua;function Jp(){if(ua)return Ie;ua=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"),h=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function d(m){if(typeof m=="object"&&m!==null){var g=m.$$typeof;switch(g){case e:switch(m=m.type,m){case n:case o:case r:case l:case c:case h:return m;default:switch(m=m&&m.$$typeof,m){case i:case a:case p:case u:return m;case s:return m;default:return g}}case t:return g}}}return Ie.ContextConsumer=s,Ie.ContextProvider=i,Ie.Element=e,Ie.ForwardRef=a,Ie.Fragment=n,Ie.Lazy=p,Ie.Memo=u,Ie.Portal=t,Ie.Profiler=o,Ie.StrictMode=r,Ie.Suspense=l,Ie.SuspenseList=c,Ie.isContextConsumer=function(m){return d(m)===s},Ie.isContextProvider=function(m){return d(m)===i},Ie.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Ie.isForwardRef=function(m){return d(m)===a},Ie.isFragment=function(m){return d(m)===n},Ie.isLazy=function(m){return d(m)===p},Ie.isMemo=function(m){return d(m)===u},Ie.isPortal=function(m){return d(m)===t},Ie.isProfiler=function(m){return d(m)===o},Ie.isStrictMode=function(m){return d(m)===r},Ie.isSuspense=function(m){return d(m)===l},Ie.isSuspenseList=function(m){return d(m)===c},Ie.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===r||m===l||m===c||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===u||m.$$typeof===i||m.$$typeof===s||m.$$typeof===a||m.$$typeof===v||m.getModuleId!==void 0)},Ie.typeOf=d,Ie}var da;function ef(){return da||(da=1,os.exports=Jp()),os.exports}var ql=ef();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 Kl(e){if(S.isValidElement(e)||ql.isValidElementType(e)||!kt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Kl(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])||ql.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])?Kl(t[o]):t[o]:r[o]=t[o]}),r}function fr(e,t){return t?Ge(e,t,{clone:!1}):e}function pa(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 tf(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function nf(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 rf(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 To={xs:0,sm:600,md:900,lg:1200,xl:1536},fa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${To[e]}px)`},of={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:To[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ft(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||fa;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||fa;return Object.keys(t).reduce((i,a)=>{if(tf(s.keys,a)){const l=nf(r.containerQueries?r:of,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||To).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 sf(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function ha(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Mo(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 po(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Mo(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=Mo(l,r)||{};return Ft(i,a,p=>{let h=po(c,o,p);return p===h&&typeof p=="string"&&(h=po(c,o,`${t}${p==="default"?"":ae(p)}`,p)),n===!1?h:{[n]:h}})};return s.propTypes={},s.filterProps=[t],s}function af(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const lf={m:"margin",p:"padding"},cf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ma={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uf=af(e=>{if(e.length>2)if(ma[e])e=ma[e];else return[e];const[t,n]=e.split(""),r=lf[t],o=cf[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),Hs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Us=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Hs,...Us];function Dr(e,t,n,r){const o=Mo(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 Ys(e){return Dr(e,"spacing",8)}function Rr(e,t){return typeof t=="string"||t==null?t:e(t)}function df(e,t){return n=>e.reduce((r,o)=>(r[o]=Rr(t,n),r),{})}function pf(e,t,n,r){if(!t.includes(n))return null;const o=uf(n),s=df(o,r),i=e[n];return Ft(e,i,s)}function Xl(e,t){const n=Ys(e.theme);return Object.keys(e).map(r=>pf(e,t,r,n)).reduce(fr,{})}function Ve(e){return Xl(e,Hs)}Ve.propTypes={};Ve.filterProps=Hs;function _e(e){return Xl(e,Us)}_e.propTypes={};_e.filterProps=Us;function Do(...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 ff=dt("border",it),hf=dt("borderTop",it),mf=dt("borderRight",it),gf=dt("borderBottom",it),yf=dt("borderLeft",it),bf=dt("borderColor"),vf=dt("borderTopColor"),xf=dt("borderRightColor"),Sf=dt("borderBottomColor"),wf=dt("borderLeftColor"),Cf=dt("outline",it),Pf=dt("outlineColor"),Ro=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dr(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Rr(t,r)});return Ft(e,e.borderRadius,n)}return null};Ro.propTypes={};Ro.filterProps=["borderRadius"];Do(ff,hf,mf,gf,yf,bf,vf,xf,Sf,wf,Ro,Cf,Pf);const Io=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dr(e.theme,"spacing",8),n=r=>({gap:Rr(t,r)});return Ft(e,e.gap,n)}return null};Io.propTypes={};Io.filterProps=["gap"];const Eo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dr(e.theme,"spacing",8),n=r=>({columnGap:Rr(t,r)});return Ft(e,e.columnGap,n)}return null};Eo.propTypes={};Eo.filterProps=["columnGap"];const $o=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dr(e.theme,"spacing",8),n=r=>({rowGap:Rr(t,r)});return Ft(e,e.rowGap,n)}return null};$o.propTypes={};$o.filterProps=["rowGap"];const kf=We({prop:"gridColumn"}),Tf=We({prop:"gridRow"}),Mf=We({prop:"gridAutoFlow"}),Df=We({prop:"gridAutoColumns"}),Rf=We({prop:"gridAutoRows"}),If=We({prop:"gridTemplateColumns"}),Ef=We({prop:"gridTemplateRows"}),$f=We({prop:"gridTemplateAreas"}),Of=We({prop:"gridArea"});Do(Io,Eo,$o,kf,Tf,Mf,Df,Rf,If,Ef,$f,Of);function In(e,t){return t==="grey"?t:e}const Af=We({prop:"color",themeKey:"palette",transform:In}),Ff=We({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:In}),Lf=We({prop:"backgroundColor",themeKey:"palette",transform:In});Do(Af,Ff,Lf);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const Nf=We({prop:"width",transform:Je}),Gs=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||To[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Je(n)}};return Ft(e,e.maxWidth,t)}return null};Gs.filterProps=["maxWidth"];const jf=We({prop:"minWidth",transform:Je}),Bf=We({prop:"height",transform:Je}),Vf=We({prop:"maxHeight",transform:Je}),_f=We({prop:"minHeight",transform:Je});We({prop:"size",cssProperty:"width",transform:Je});We({prop:"size",cssProperty:"height",transform:Je});const zf=We({prop:"boxSizing"});Do(Nf,Gs,jf,Bf,Vf,_f,zf);const Ir={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:Ro},color:{themeKey:"palette",transform:In},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:In},backgroundColor:{themeKey:"palette",transform:In},p:{style:_e},pt:{style:_e},pr:{style:_e},pb:{style:_e},pl:{style:_e},px:{style:_e},py:{style:_e},padding:{style:_e},paddingTop:{style:_e},paddingRight:{style:_e},paddingBottom:{style:_e},paddingLeft:{style:_e},paddingX:{style:_e},paddingY:{style:_e},paddingInline:{style:_e},paddingInlineStart:{style:_e},paddingInlineEnd:{style:_e},paddingBlock:{style:_e},paddingBlockStart:{style:_e},paddingBlockEnd:{style:_e},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:Io},rowGap:{style:$o},columnGap:{style:Eo},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:Gs},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 Wf(...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 Hf(e,t){return typeof e=="function"?e(t):e}function Uf(){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 h=Mo(o,c)||{};return p?p(i):Ft(i,r,d=>{let m=po(h,u,d);return d===m&&typeof d=="string"&&(m=po(h,u,`${n}${d==="default"?"":ae(d)}`,d)),l===!1?m:{[l]:m}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Ir;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=sf(o.breakpoints),p=Object.keys(u);let h=u;return Object.keys(c).forEach(v=>{const d=Hf(c[v],o);if(d!=null)if(typeof d=="object")if(i[v])h=fr(h,e(v,d,o,i));else{const m=Ft({theme:o},d,g=>({[v]:g}));Wf(m,d)?h[v]=t({sx:d,theme:o,nested:!0}):h=fr(h,m)}else h=fr(h,e(v,d,o,i))}),!s&&o.modularCssLayers?{"@layer sx":pa(o,ha(p,h))}:pa(o,ha(p,h))}return Array.isArray(r)?r.map(a):a(r)}return t}const Fn=Uf();Fn.filterProps=["sx"];const Yf=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ir;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Gf(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Yf(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 qf(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function qs(e,t=0,n=1){return qf(e,t,n)}function Kf(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 Xt(e){if(e.type)return e;if(e.charAt(0)==="#")return Xt(Kf(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(At(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(At(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const Xf=e=>{const t=Xt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},cr=(e,t)=>{try{return Xf(e)}catch{return e}};function Oo(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 Ql(e){e=Xt(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])),Oo({type:a,values:l})}function bs(e){e=Xt(e);let t=e.type==="hsl"||e.type==="hsla"?Xt(Ql(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 Qf(e,t){const n=bs(e),r=bs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function fo(e,t){return e=Xt(e),t=qs(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Oo(e)}function Jt(e,t,n){try{return fo(e,t)}catch{return e}}function Ao(e,t){if(e=Xt(e),t=qs(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 Oo(e)}function Me(e,t,n){try{return Ao(e,t)}catch{return e}}function Fo(e,t){if(e=Xt(e),t=qs(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 Oo(e)}function De(e,t,n){try{return Fo(e,t)}catch{return e}}function Zl(e,t=.15){return bs(e)>.5?Ao(e,t):Fo(e,t)}function zr(e,t,n){try{return Zl(e,t)}catch{return e}}const xr={black:"#000",white:"#fff"},Zf={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 Jl(){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 ec=Jl();function tc(){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=tc();function ga(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=Fo(e.main,o):t==="dark"&&(e.dark=Ao(e.main,s)))}function ya(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 Jf(e="light"){return e==="dark"?{main:Sn[200],light:Sn[50],dark:Sn[400]}:{main:Sn[700],light:Sn[400],dark:Sn[800]}}function eh(e="light"){return e==="dark"?{main:vn[200],light:vn[50],dark:vn[400]}:{main:vn[500],light:vn[300],dark:vn[700]}}function th(e="light"){return e==="dark"?{main:xn[500],light:xn[300],dark:xn[700]}:{main:xn[700],light:xn[400],dark:xn[800]}}function nh(e="light"){return e==="dark"?{main:wn[400],light:wn[300],dark:wn[700]}:{main:wn[700],light:wn[500],dark:wn[900]}}function rh(e="light"){return e==="dark"?{main:Cn[400],light:Cn[300],dark:Cn[700]}:{main:Cn[800],light:Cn[500],dark:Cn[900]}}function oh(e="light"){return e==="dark"?{main:Qn[400],light:Qn[300],dark:Qn[700]}:{main:"#ed6c02",light:Qn[500],dark:Qn[900]}}function sh(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ks(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,i=e.primary||Jf(t),a=e.secondary||eh(t),l=e.error||th(t),c=e.info||nh(t),u=e.success||rh(t),p=e.warning||oh(t);function h(g){return o?sh(g):Qf(g,vs.text.primary)>=n?vs.text.primary:ec.text.primary}const v=({color:g,name:C,mainShade:w=500,lightShade:y=300,darkShade:x=700})=>{if(g={...g},!g.main&&g[w]&&(g.main=g[w]),!g.hasOwnProperty("main"))throw new Error(At(11,C?` (${C})`:"",w));if(typeof g.main!="string")throw new Error(At(12,C?` (${C})`:"",JSON.stringify(g.main)));return o?(ya(o,g,"light",y,r),ya(o,g,"dark",x,r)):(ga(g,"light",y,r),ga(g,"dark",x,r)),g.contrastText||(g.contrastText=h(g.main)),g};let d;return t==="light"?d=Jl():t==="dark"&&(d=tc()),Ge({common:{...xr},mode:t,primary:v({color:i,name:"primary"}),secondary:v({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:l,name:"error"}),warning:v({color:p,name:"warning"}),info:v({color:c,name:"info"}),success:v({color:u,name:"success"}),grey:Zf,contrastThreshold:n,getContrastText:h,augmentColor:v,tonalOffset:r,...d},s)}function ih(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 ah={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 lh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ch=/[A-Z]|^ms/g,uh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nc=function(t){return t.charCodeAt(1)===45},ba=function(t){return t!=null&&typeof t!="boolean"},ss=lh(function(e){return nc(e)?e:e.replace(ch,"-$&").toLowerCase()}),va=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(uh,function(r,o,s){return qt={name:o,styles:s,next:qt},o})}return ah[t]!==1&&!nc(t)&&typeof n=="number"&&n!==0?n+"px":n};function ho(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 qt={name:o.name,styles:o.styles,next:qt},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)qt={name:i.name,styles:i.styles,next:qt},i=i.next;var a=s.styles+";";return a}return dh(e,t,n)}}var l=n;return l}function dh(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ho(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;ba(a)&&(r+=ss(s)+":"+va(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)ba(i[l])&&(r+=ss(s)+":"+va(s,i[l])+";");else{var c=ho(e,t,i);switch(s){case"animation":case"animationName":{r+=ss(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var xa=/label:\s*([^\s;{]+)\s*(;|$)/g,qt;function ph(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="";qt=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=ho(n,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=ho(n,t,e[a]),r){var l=s;o+=l[a]}xa.lastIndex=0;for(var c="",u;(u=xa.exec(o))!==null;)c+="-"+u[1];var p=ih(o)+c;return{name:p,styles:o,next:qt}}function fh(e,t){return Wp(e,t)}function hh(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Sa=[];function cn(e){return Sa[0]=e,ph(Sa)}const Ue=typeof window<"u"?S.useLayoutEffect:S.useEffect;function mh(e){return Object.keys(e).length===0}function rc(e=null){const t=S.useContext(_p.ThemeContext);return!t||mh(t)?e:t}const gh=S.createContext(),vt=()=>S.useContext(gh)??!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 yh=S.createContext(void 0);function bh(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 vh({props:e,name:t}){const n=S.useContext(yh);return bh({props:e,name:t,theme:{components:n}})}let wa=0;function xh(e){const[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t==null&&(wa+=1,n(`mui-${wa}`))},[t]),r}const Sh={...S},Ca=Sh.useId;function xt(e){if(Ca!==void 0){const t=Ca();return e??t}return xh(e)}const wh=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 Ch(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=wh(t),i=Object.keys(s);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,v){const d=i.indexOf(v);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(d!==-1&&typeof t[i[d]]=="number"?t[i[d]]:v)-r/100}${n})`}function u(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):a(h)}function p(h){const v=i.indexOf(h);return v===0?a(i[1]):v===i.length-1?l(i[v]):c(h,i[i.indexOf(h)+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 Ph={borderRadius:4};function kh(e=8,t=Ys({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 Th(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 Xs(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=Ch(n),l=kh(o);let c=Ge({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Ph,...s}},i);return c=rf(c),c.applyStyles=Th,c=t.reduce((u,p)=>Ge(u,p),c),c.unstable_sxConfig={...Ir,...i?.unstable_sxConfig},c.unstable_sx=function(p){return Fn({sx:p,theme:this})},c}const Mh=Xs();function Dh(e=Mh){return rc(e)}const Pa=(e,t,n,r=[])=>{let o=e;t.forEach((s,i)=>{i===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},Rh=(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)},Ih=(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 is(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return Rh(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,p=Ih(a,l);Object.assign(o,{[u]:p}),Pa(s,a,`var(${u})`,c),Pa(i,a,`var(${u}, ${p})`,c)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function Eh(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...c}=e,{vars:u,css:p,varsWithDefaults:h}=is(c,t);let v=h;const d={},{[l]:m,...g}=i;if(Object.entries(g||{}).forEach(([x,P])=>{const{vars:T,css:I,varsWithDefaults:R}=is(P,t);v=Ge(v,R),d[x]={css:I,vars:T}}),m){const{css:x,vars:P,varsWithDefaults:T}=is(m,t);v=Ge(v,T),d[l]={css:x,vars:P}}function C(x,P){let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),x){if(T==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${i[x]?.palette?.mode||x})`]:{":root":P}};if(T)return e.defaultColorScheme===x?`:root, ${T.replace("%s",String(x))}`:T.replace("%s",String(x))}return":root"}return{vars:v,generateThemeVars:()=>{let x={...u};return Object.entries(d).forEach(([,{vars:P}])=>{x=Ge(x,P)}),x},generateStyleSheets:()=>{const x=[],P=e.defaultColorScheme||"light";function T(A,O){Object.keys(O).length&&x.push(typeof A=="string"?{[A]:{...O}}:A)}T(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};T(n(P,{...$}),$)}return Object.entries(R).forEach(([A,{css:O}])=>{const $=i[A]?.palette?.mode,b=!r&&$?{colorScheme:$,...O}:{...O};T(n(A,{...b}),b)}),s&&x.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),x}}}function $h(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 Oh(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}`:`${Yl.generate(e)}-${t}`}function Fh(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Lh(e){return Math.round(e*1e5)/1e5}const ka={textTransform:"uppercase"},Ta='"Roboto", "Helvetica", "Arial", sans-serif';function Nh(e,t){const{fontFamily:n=Ta,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,h=r/14,v=u||(g=>`${g/l*h}rem`),d=(g,C,w,y,x)=>({fontFamily:n,fontWeight:g,fontSize:v(C),lineHeight:w,...n===Ta?{letterSpacing:`${Lh(y/C)}em`}:{},...x,...c}),m={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,ka),caption:d(s,12,1.66,.4),overline:d(s,12,2.66,1,ka),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ge({htmlFontSize:l,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...m},p,{clone:!1})}const jh=.2,Bh=.14,Vh=.12;function Ne(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${jh})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Bh})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Vh})`].join(",")}const _h=["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)],zh={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)"},Wh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ma(e){return`${Math.round(e)}ms`}function Hh(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Uh(e){const t={...zh,...e.easing},n={...Wh,...e.duration};return{getAutoHeightDuration:Hh,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=s;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:Ma(i)} ${a} ${typeof l=="string"?l:Ma(l)}`).join(",")},...e,easing:t,duration:n}}const Yh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Gh(e){return kt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function oc(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let s=0;s<o.length;s++){const[i,a]=o[s];!Gh(a)||i.startsWith("unstable_")?delete r[i]:kt(a)&&(r[i]={...a},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
10
10
 
11
11
  const theme = ${JSON.stringify(t,null,2)};
12
12
 
13
13
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
14
14
  theme.transitions = createTransitions(theme.transitions || {});
15
15
 
16
- export default theme;`}function Da(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Gh=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 qh(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})`:fo(t,Gh(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Da(n)})`:Fo(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Da(n)})`:Ao(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(At(20));const p=Ks({...s,colorSpace:c}),h=Xs(e);let v=Ge(h,{mixins:Ah(h.breakpoints,r),palette:p,shadows:Vh.slice(),typography:Lh(p,a),transitions:Hh(i),zIndex:{...Uh}});return v=Ge(v,u),v=t.reduce((d,m)=>Ge(d,m),v),v.unstable_sxConfig={...Ir,...u?.unstable_sxConfig},v.unstable_sx=function(m){return Fn({sx:m,theme:this})},v.toRuntimeSource=oc,qh(v),v}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 Kh=[...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 sc(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ic(e){return e==="dark"?Kh:[]}function Xh(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,i=Ks({...t,colorSpace:o});return{palette:i,opacity:{...sc(i.mode),...n},overlays:r||ic(i.mode),...s}}function Qh(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 Zh=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Jh=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 Zh(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 em(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function q(e,t,n){!e[t]&&n&&(e[t]=n)}function ur(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ql(e)}function Et(e,t){`${t}Channel`in e||(e[`${t}Channel`]=cr(ur(e[t])))}function tm(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{}},nm=(e="mui")=>He.unstable_createGetCssVar(e);function as(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=Xh({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:i,...a}=xs({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...sc(s),...n?.opacity},overlays:n?.overlays||ic(s)},a}function rm(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=Qh,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,p=Object.keys(n)[0],h=r||(n.light&&p!=="light"?"light":p),v=nm(s),{[h]:d,light:m,dark:g,...C}=n,w={...C};let y=d;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(y=!0),!y)throw new Error(At(21,h));let x;i&&(x="oklch");const P=as(x,w,y,u,h);m&&!w.light&&as(x,w,m,void 0,"light"),g&&!w.dark&&as(x,w,g,void 0,"dark");let T={defaultColorScheme:h,...P,cssVarPrefix:s,colorSchemeSelector:l,rootSelector:c,getCssVar:v,colorSchemes:w,font:{...Eh(P.typography),...P.font},spacing:tm(u.spacing)};Object.keys(T.colorSchemes).forEach($=>{const b=T.colorSchemes[$].palette,E=M=>{const k=M.split("-"),F=k[1],L=k[2];return v(M,b[F][L])};b.mode==="light"&&(q(b.common,"background","#fff"),q(b.common,"onBackground","#000")),b.mode==="dark"&&(q(b.common,"background","#000"),q(b.common,"onBackground","#fff"));function D(M,k,F){if(x){let L;return M===Jt&&(L=`transparent ${((1-F)*100).toFixed(0)}%`),M===Me&&(L=`#000 ${(F*100).toFixed(0)}%`),M===De&&(L=`#fff ${(F*100).toFixed(0)}%`),`color-mix(in ${x}, ${k}, ${L})`}return M(k,F)}if(em(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){q(b.Alert,"errorColor",D(Me,b.error.light,.6)),q(b.Alert,"infoColor",D(Me,b.info.light,.6)),q(b.Alert,"successColor",D(Me,b.success.light,.6)),q(b.Alert,"warningColor",D(Me,b.warning.light,.6)),q(b.Alert,"errorFilledBg",E("palette-error-main")),q(b.Alert,"infoFilledBg",E("palette-info-main")),q(b.Alert,"successFilledBg",E("palette-success-main")),q(b.Alert,"warningFilledBg",E("palette-warning-main")),q(b.Alert,"errorFilledColor",Ct(()=>b.getContrastText(b.error.main))),q(b.Alert,"infoFilledColor",Ct(()=>b.getContrastText(b.info.main))),q(b.Alert,"successFilledColor",Ct(()=>b.getContrastText(b.success.main))),q(b.Alert,"warningFilledColor",Ct(()=>b.getContrastText(b.warning.main))),q(b.Alert,"errorStandardBg",D(De,b.error.light,.9)),q(b.Alert,"infoStandardBg",D(De,b.info.light,.9)),q(b.Alert,"successStandardBg",D(De,b.success.light,.9)),q(b.Alert,"warningStandardBg",D(De,b.warning.light,.9)),q(b.Alert,"errorIconColor",E("palette-error-main")),q(b.Alert,"infoIconColor",E("palette-info-main")),q(b.Alert,"successIconColor",E("palette-success-main")),q(b.Alert,"warningIconColor",E("palette-warning-main")),q(b.AppBar,"defaultBg",E("palette-grey-100")),q(b.Avatar,"defaultBg",E("palette-grey-400")),q(b.Button,"inheritContainedBg",E("palette-grey-300")),q(b.Button,"inheritContainedHoverBg",E("palette-grey-A100")),q(b.Chip,"defaultBorder",E("palette-grey-400")),q(b.Chip,"defaultAvatarColor",E("palette-grey-700")),q(b.Chip,"defaultIconColor",E("palette-grey-700")),q(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),q(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),q(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),q(b.LinearProgress,"primaryBg",D(De,b.primary.main,.62)),q(b.LinearProgress,"secondaryBg",D(De,b.secondary.main,.62)),q(b.LinearProgress,"errorBg",D(De,b.error.main,.62)),q(b.LinearProgress,"infoBg",D(De,b.info.main,.62)),q(b.LinearProgress,"successBg",D(De,b.success.main,.62)),q(b.LinearProgress,"warningBg",D(De,b.warning.main,.62)),q(b.Skeleton,"bg",x?D(Jt,b.text.primary,.11):`rgba(${E("palette-text-primaryChannel")} / 0.11)`),q(b.Slider,"primaryTrack",D(De,b.primary.main,.62)),q(b.Slider,"secondaryTrack",D(De,b.secondary.main,.62)),q(b.Slider,"errorTrack",D(De,b.error.main,.62)),q(b.Slider,"infoTrack",D(De,b.info.main,.62)),q(b.Slider,"successTrack",D(De,b.success.main,.62)),q(b.Slider,"warningTrack",D(De,b.warning.main,.62));const M=x?D(Me,b.background.default,.6825):zr(b.background.default,.8);q(b.SnackbarContent,"bg",M),q(b.SnackbarContent,"color",Ct(()=>x?vs.text.primary:b.getContrastText(M))),q(b.SpeedDialAction,"fabHoverBg",zr(b.background.paper,.15)),q(b.StepConnector,"border",E("palette-grey-400")),q(b.StepContent,"border",E("palette-grey-400")),q(b.Switch,"defaultColor",E("palette-common-white")),q(b.Switch,"defaultDisabledColor",E("palette-grey-100")),q(b.Switch,"primaryDisabledColor",D(De,b.primary.main,.62)),q(b.Switch,"secondaryDisabledColor",D(De,b.secondary.main,.62)),q(b.Switch,"errorDisabledColor",D(De,b.error.main,.62)),q(b.Switch,"infoDisabledColor",D(De,b.info.main,.62)),q(b.Switch,"successDisabledColor",D(De,b.success.main,.62)),q(b.Switch,"warningDisabledColor",D(De,b.warning.main,.62)),q(b.TableCell,"border",D(De,D(Jt,b.divider,1),.88)),q(b.Tooltip,"bg",D(Jt,b.grey[700],.92))}if(b.mode==="dark"){q(b.Alert,"errorColor",D(De,b.error.light,.6)),q(b.Alert,"infoColor",D(De,b.info.light,.6)),q(b.Alert,"successColor",D(De,b.success.light,.6)),q(b.Alert,"warningColor",D(De,b.warning.light,.6)),q(b.Alert,"errorFilledBg",E("palette-error-dark")),q(b.Alert,"infoFilledBg",E("palette-info-dark")),q(b.Alert,"successFilledBg",E("palette-success-dark")),q(b.Alert,"warningFilledBg",E("palette-warning-dark")),q(b.Alert,"errorFilledColor",Ct(()=>b.getContrastText(b.error.dark))),q(b.Alert,"infoFilledColor",Ct(()=>b.getContrastText(b.info.dark))),q(b.Alert,"successFilledColor",Ct(()=>b.getContrastText(b.success.dark))),q(b.Alert,"warningFilledColor",Ct(()=>b.getContrastText(b.warning.dark))),q(b.Alert,"errorStandardBg",D(Me,b.error.light,.9)),q(b.Alert,"infoStandardBg",D(Me,b.info.light,.9)),q(b.Alert,"successStandardBg",D(Me,b.success.light,.9)),q(b.Alert,"warningStandardBg",D(Me,b.warning.light,.9)),q(b.Alert,"errorIconColor",E("palette-error-main")),q(b.Alert,"infoIconColor",E("palette-info-main")),q(b.Alert,"successIconColor",E("palette-success-main")),q(b.Alert,"warningIconColor",E("palette-warning-main")),q(b.AppBar,"defaultBg",E("palette-grey-900")),q(b.AppBar,"darkBg",E("palette-background-paper")),q(b.AppBar,"darkColor",E("palette-text-primary")),q(b.Avatar,"defaultBg",E("palette-grey-600")),q(b.Button,"inheritContainedBg",E("palette-grey-800")),q(b.Button,"inheritContainedHoverBg",E("palette-grey-700")),q(b.Chip,"defaultBorder",E("palette-grey-700")),q(b.Chip,"defaultAvatarColor",E("palette-grey-300")),q(b.Chip,"defaultIconColor",E("palette-grey-300")),q(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),q(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),q(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),q(b.LinearProgress,"primaryBg",D(Me,b.primary.main,.5)),q(b.LinearProgress,"secondaryBg",D(Me,b.secondary.main,.5)),q(b.LinearProgress,"errorBg",D(Me,b.error.main,.5)),q(b.LinearProgress,"infoBg",D(Me,b.info.main,.5)),q(b.LinearProgress,"successBg",D(Me,b.success.main,.5)),q(b.LinearProgress,"warningBg",D(Me,b.warning.main,.5)),q(b.Skeleton,"bg",x?D(Jt,b.text.primary,.13):`rgba(${E("palette-text-primaryChannel")} / 0.13)`),q(b.Slider,"primaryTrack",D(Me,b.primary.main,.5)),q(b.Slider,"secondaryTrack",D(Me,b.secondary.main,.5)),q(b.Slider,"errorTrack",D(Me,b.error.main,.5)),q(b.Slider,"infoTrack",D(Me,b.info.main,.5)),q(b.Slider,"successTrack",D(Me,b.success.main,.5)),q(b.Slider,"warningTrack",D(Me,b.warning.main,.5));const M=x?D(De,b.background.default,.985):zr(b.background.default,.98);q(b.SnackbarContent,"bg",M),q(b.SnackbarContent,"color",Ct(()=>x?ec.text.primary:b.getContrastText(M))),q(b.SpeedDialAction,"fabHoverBg",zr(b.background.paper,.15)),q(b.StepConnector,"border",E("palette-grey-600")),q(b.StepContent,"border",E("palette-grey-600")),q(b.Switch,"defaultColor",E("palette-grey-300")),q(b.Switch,"defaultDisabledColor",E("palette-grey-600")),q(b.Switch,"primaryDisabledColor",D(Me,b.primary.main,.55)),q(b.Switch,"secondaryDisabledColor",D(Me,b.secondary.main,.55)),q(b.Switch,"errorDisabledColor",D(Me,b.error.main,.55)),q(b.Switch,"infoDisabledColor",D(Me,b.info.main,.55)),q(b.Switch,"successDisabledColor",D(Me,b.success.main,.55)),q(b.Switch,"warningDisabledColor",D(Me,b.warning.main,.55)),q(b.TableCell,"border",D(Me,D(Jt,b.divider,1),.68)),q(b.Tooltip,"bg",D(Jt,b.grey[700],.92))}Et(b.background,"default"),Et(b.background,"paper"),Et(b.common,"background"),Et(b.common,"onBackground"),Et(b,"divider"),Object.keys(b).forEach(M=>{const k=b[M];M!=="tonalOffset"&&k&&typeof k=="object"&&(k.main&&q(b[M],"mainChannel",cr(ur(k.main))),k.light&&q(b[M],"lightChannel",cr(ur(k.light))),k.dark&&q(b[M],"darkChannel",cr(ur(k.dark))),k.contrastText&&q(b[M],"contrastTextChannel",cr(ur(k.contrastText))),M==="text"&&(Et(b[M],"primary"),Et(b[M],"secondary")),M==="action"&&(k.active&&Et(b[M],"active"),k.selected&&Et(b[M],"selected")))})}),T=t.reduce(($,b)=>Ge($,b),T);const I={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Jh(T),enableContrastVars:i},{vars:R,generateThemeVars:A,generateStyleSheets:O}=Ih(T,I);return T.vars=R,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([$,b])=>{T[$]=b}),T.generateThemeVars=A,T.generateStyleSheets=O,T.generateSpacing=function(){return He.createSpacing(u.spacing,Ys(this))},T.getColorSchemeSelector=$h(l),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=a,T.unstable_sxConfig={...Ir,...u?.unstable_sxConfig},T.unstable_sx=function(b){return Fn({sx:b,theme:this})},T.toRuntimeSource=oc,T}function Ra(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ks({...n===!0?{}:n.palette,mode:t})})}function ac(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},Ra(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},Ra(p,"light",c.light)),p}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),rm({...i,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const Lo=ac(),Un="$$material";function gn(){const e=He.useTheme(Lo);return e[Un]||e}function om(e){return f.jsx(He.GlobalStyles,{...e,defaultTheme:Lo,themeId:Un})}function sm(e){const{variants:t,...n}=e,r={variants:t,style:cn(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=cn(o.style))}),r}const im=Xs();function ls(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function an(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function am(e){return e?(t,n)=>n[e]:null}function lm(e,t,n){e.theme=dm(e.theme)?n:e.theme[t]||e.theme}function Jr(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Jr(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?an(r.style,n):r.style;else{const{variants:s,...i}=r;o=n?an(cn(i),n):i}return lc(e,r.variants,[o],n)}return r?.isProcessed?n?an(cn(r.style),n):r.style:n?an(cn(r),n):r}function lc(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?an(cn(i.style(o)),r):i.style(o))):n.push(r?an(cn(i.style),r):i.style)}return n}function cm(e={}){const{themeId:t,defaultTheme:n=im,rootShouldForwardProp:r=ls,slotShouldForwardProp:o=ls}=e;function s(a){lm(a,t,n)}return(a,l={})=>{fh(a,T=>T.filter(I=>I!==Fn));const{name:c,slot:u,skipVariantsResolver:p,skipSx:h,overridesResolver:v=am(fm(u)),...d}=l,m=c&&c.startsWith("Mui")||u?"components":"custom",g=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,C=h||!1;let w=ls;u==="Root"||u==="root"?w=r:u?w=o:pm(a)&&(w=void 0);const y=ph(a,{shouldForwardProp:w,label:um(),...d}),x=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(R){return Jr(R,T,R.theme.modularCssLayers?m:void 0)};if(kt(T)){const I=sm(T);return function(A){return I.variants?Jr(A,I,A.theme.modularCssLayers?m:void 0):A.theme.modularCssLayers?an(I.style,m):I.style}}return T},P=(...T)=>{const I=[],R=T.map(x),A=[];if(I.push(s),c&&v&&A.push(function(E){const M=E.theme.components?.[c]?.styleOverrides;if(!M)return null;const k={};for(const F in M)k[F]=Jr(E,M[F],E.theme.modularCssLayers?"theme":void 0);return v(E,k)}),c&&!g&&A.push(function(E){const M=E.theme?.components?.[c]?.variants;return M?lc(E,M,[],E.theme.modularCssLayers?"theme":void 0):null}),C||A.push(Fn),Array.isArray(R[0])){const b=R.shift(),E=new Array(I.length).fill(""),D=new Array(A.length).fill("");let M;M=[...E,...b,...D],M.raw=[...E,...b.raw,...D],I.unshift(M)}const O=[...I,...R,...A],$=y(...O);return a.muiName&&($.muiName=a.muiName),$};return y.withConfig&&(P.withConfig=y.withConfig),P}}function um(e,t){return void 0}function dm(e){for(const t in e)return!1;return!0}function pm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function fm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function cc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pt=e=>cc(e)&&e!=="classes",K=cm({themeId:Un,defaultTheme:Lo,rootShouldForwardProp:pt});function hm(e){return function(n){return f.jsx(om,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function mm(){return Yf}const Ee=He.unstable_memoTheme;function Ce(e){return bh(e)}function he(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ge(e,o,n)}),r}function gm(e){return ge("MuiSvgIcon",e)}he("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ym=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ae(t)}`,`fontSize${ae(n)}`]};return me(o,gm,r)},bm=K("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ae(n.color)}`],t[`fontSize${ae(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}}]}))),mo=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:h="0 0 24 24",...v}=r,d=S.isValidElement(o)&&o.type==="svg",m={...r,color:i,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:d},g={};u||(g.viewBox=h);const C=ym(m);return f.jsxs(bm,{as:a,className:de(C.root,s),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...g,...v,...d&&o.props,ownerState:m,children:[d?o.props.children:o,p?f.jsx("title",{children:p}):null]})});mo.muiName="SvgIcon";function $e(e,t){function n(r,o){return f.jsx(mo,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=mo.muiName,S.memo(S.forwardRef(n))}function uc(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 eo(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 Lt(e){return Ye(e).defaultView||window}function ws(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Dt(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 vm(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function dc(e,t){if(!e)return t;function n(i,a){const l={};return Object.keys(a).forEach(c=>{vm(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 Qs=$e(f.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),pc=2,xm=24,Sm=(e,t,n)=>Math.min(Math.max(e+t,1),Math.min(n,xm)),Tt=16,wm=Tt/2;function Cm(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}const No=80,fc=3,Pm=2,km=1,hc=16,mc=e=>e*No+(e-1)*Tt,Tm=(e,t=fc)=>Math.min(Math.max(Math.round((e+Tt)/(No+Tt)),t),hc),gc=240;function Mm(e,t,n=gc){const[r,o]=W.useState(0);return W.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]),yc(t,r,n)}function yc(e,t,n){if(!(t>0)||e<=1)return 1;const r=(t-(e-1)*Tt)/e;return Math.min(e,Math.max(1,Math.ceil((n+Tt)/(r+Tt))))}const bc={query:5,text:2},vc=e=>e.some(t=>t.row!==void 0);function Dm(e,t,n){const r=Math.min(e.colspan??1,t),o=e.col===void 0?void 0:Math.min(e.col,t-r+1);return{gridRow:e.row===void 0?`span ${n}`:`${e.row} / span ${n}`,gridColumn:o===void 0?`span ${r}`:`${o} / span ${r}`}}const Rm=e=>e.row===void 0?1e6:e.row*1e3+(e.col??0);function Im({tiles:e,columns:t,keyOf:n,renderTile:r,minTilePx:o,rowGapPx:s=Tt,defaultRowspan:i=a=>bc[a.kind==="text"?"text":"query"]}){const a=vc(e),l=W.useRef(null),[c,u]=W.useState(0);W.useEffect(()=>{const h=l.current;if(o===void 0||!h||typeof ResizeObserver>"u")return;const v=new ResizeObserver(([d])=>u(d?.contentRect.width??0));return v.observe(h),()=>v.disconnect()},[o]);const p=o===void 0?1:yc(t,c,o);return f.jsx(H.Box,{ref:l,sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},columnGap:`${Tt}px`,rowGap:`${s}px`,...a&&{gridAutoRows:`${No}px`}},children:e.map((h,v)=>f.jsx(H.Box,{sx:{display:"grid",minWidth:0,...!a&&h.rowspan!==void 0&&{height:mc(h.rowspan),alignSelf:"start"},...(a||h.rowspan!==void 0)&&{gridTemplateRows:"minmax(0, 1fr)"},...a?(()=>{const d=h.rowspan??i(h),m=Dm(h.colspan===void 0&&p>1?{...h,colspan:p}:h,t,d);return{gridRow:{xs:`span ${d}`,md:m.gridRow},gridColumn:{md:m.gridColumn},order:{xs:Rm(h),md:0}}})():{gridColumn:{md:Cm(h.colspan===void 0&&p>1?{...h,colspan:p}:h,t)}}},children:r(h,v)},n(h,v)))})}function jo(e){let t="",n=0;for(;;){const r=e.indexOf('"',n);if(r<0)break;let o=r+1;for(;o<e.length&&e[o]!=='"';)o+=e[o]==="\\"?2:1;if(o>=e.length)break;t+=`${e.slice(n,r)}""`,n=o+1}return t+e.slice(n)}const xc=["bar_chart","line_chart","scatter_chart","shape_map","segment_map","big_value","sparkline","combo_chart"],Zs=["line_chart","bar_chart","big_value","scatter_chart","shape_map","segment_map","combo_chart"],Sc=e=>Zs.includes(e),Cs=new Set([...xc,"viz"]);function Er(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(!Cs.has(i))return;r.push(i)}else{if(o!==void 0||!Cs.has(s))return;o=s}return{negated:r,...o!==void 0&&{pick:o}}}function Js(e){const t=e.trim();return!/^#[ \t]/.test(t)||Er(t)?!1:(jo(t).match(/[A-Za-z_]+/g)??[]).some(r=>Cs.has(r))}function Em(){return["#",...Zs.filter(e=>e!=="big_value").map(e=>`-${e}`)].join(" ")}function $m(e,t){return["#",...Zs.filter(r=>r!==e&&(t===void 0||t.includes(r)||e==="none"&&r==="big_value")).map(r=>`-${r}`),"-viz",...e==="none"?[]:[e]].join(" ")}function Om(e){return e.pick!==void 0?Sc(e.pick)?e.pick:"custom":e.negated.includes("viz")?"none":"custom"}function Am(e){if(e.length===0)return"default";if(e.length>1)return"custom";const t=Er(e[0]);return t?Om(t):"custom"}function Fm(e){const t=e.filter(n=>Er(n));return e.some(Js)?"custom":t.length===0?void 0:Am(t)}const Lm=/^#[ \t]*theme\.palette\.series[ \t]*=[ \t]*\[[ \t]*"(#[0-9A-Fa-f]{6})"[ \t]*\][ \t]*$/;function Nm(e){return Lm.exec(e.trim())?.[1]?.toLowerCase()}const jm=e=>`# theme.palette.series=["${e.toLowerCase()}"]`,Bm="# -theme.palette.series",wc=e=>/^#[0-9A-Fa-f]{6}$/.test(e);function Vm(e){const t=e.trim().toLowerCase();if(wc(t))return t;const n=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/.exec(t);return n?`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`:void 0}const _m=e=>e.filter(t=>Er(t)||Js(t)),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 Cc({open:e,onClose:t,title:n,description:r,maxWidth:o="sm",showClose:s=!1,actions:i,initialFocus:a,className:l,children:c}){const u=W.useId(),p=Se.usePublisherTheme().theme.ui;return f.jsxs(H.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(H.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(H.IconButton,{"aria-label":"Close",onClick:t,size:"small",sx:{color:"text.secondary",mr:-1},children:f.jsx(Bo,{fontSize:"small"})})]}),f.jsxs(H.DialogContent,{sx:{px:3,pb:1,pt:1},children:[r&&f.jsx(H.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:r}),f.jsx(H.Stack,{sx:{gap:2,pt:r?0:1},children:c})]}),i&&f.jsx(H.DialogActions,{sx:{px:3,pb:3,pt:2,gap:1},children:i})]})}function zm({open:e,canSave:t,onKeepEditing:n,onDiscard:r,onSaveAndExit:o}){return f.jsx(Cc,{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(H.Button,{onClick:n,children:"Keep editing"}),f.jsx(H.Button,{color:"error",onClick:r,children:"Discard changes"}),t&&o&&f.jsx(H.Button,{variant:"contained",onClick:o,children:"Save and exit"})]}),children:null})}const Pc=$e(f.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}));function Wm({label:e,onClick:t,disabled:n}){return f.jsx(H.Button,{variant:"contained",color:"primary",startIcon:f.jsx(Qs,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function Hm({label:e,icon:t,onClick:n,disabled:r,disabledReason:o,ariaLabel:s,ariaHasPopup:i}){const a=f.jsx("span",{children:f.jsx(H.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(H.Tooltip,{title:o,children:a}):a}const kc=$e(f.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),$r="120ms",Or={"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},Um=()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches?"auto":"smooth",Tc={"@media (hover: none)":{opacity:1}},Ym=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 Mc="72ch",Yn=e=>e.replace(/^1px solid /,""),ei=(e,t)=>`color-mix(in srgb, ${Yn(e)}, ${t} 25%)`,Vo={line_chart:"A line chart",bar_chart:"A bar chart",scatter_chart:"A scatter chart",combo_chart:"A bar and line chart"},Gm={line:"line_chart",bar:"bar_chart",scatter:"scatter_chart",combo:"combo_chart"},qm=new Set(["x","y","y2","series"]);function Ps(e){const t=e.trim();return!t.startsWith("#")||t.startsWith("#(")||t.startsWith('#"')?[]:jo(t.slice(1)).split(/[\s{}[\],]+/).filter(Boolean)}function Dc(e){const t=[];let n;for(const r of e)for(const o of Ps(r))if(o.startsWith("-")){const s=o.slice(1);s==="viz"&&(n=void 0);const i=t.indexOf(s);i>=0&&t.splice(i,1)}else if(o.startsWith("viz="))n=Gm[o.slice(4)]??o;else if(Vo[o]!==void 0||o==="big_value"){const s=t.indexOf(o);s>=0&&t.splice(s,1),t.push(o)}return n??t.at(-1)}function Km(e){const t=Dc(e);return t!==void 0&&Vo[t]!==void 0}function Rc(e,{groupBys:t,totals:n}){if(Vo[e]!==void 0){if(e==="scatter_chart")return t===0&&n<2?"no_x_axis":void 0;if(t===0)return"no_x_axis";if(e==="combo_chart")return n===2?void 0:"combo_totals";if(n===0)return"no_y_axis"}}function Xm(e){const t=e.trim();if(!t.startsWith("#(malloy)"))return!1;const n=jo(t.slice(9));let r="",o=0;for(const i of n)i==="{"||i==="["?o++:i==="}"||i==="]"?o=Math.max(0,o-1):o===0&&(r+=i==="="?" = ":i);const s=r.split(/\s+/);return s.some((i,a)=>i==="calculation"&&s[a-1]!=="=")}const ks=e=>e!==void 0&&(e.kind==="measure"||(e.annotations??[]).some(t=>Xm(t?.value??""))),Qm=e=>e.kind==="join"||e.type?.kind==="array_type";function Ic(e){const t=e.filter(ks).length;return{groupBys:e.filter(r=>!ks(r)&&!Qm(r)).length,totals:t}}const Ia=e=>qm.has(e.split("=")[0]);function Zm(e){if(!e)return;let t;try{t=JSON.parse(e)}catch{return}const n=t?.schema?.fields;if(!Array.isArray(n)||n.length===0)return;const r=(t.annotations??[]).map(c=>c?.value).filter(c=>typeof c=="string"),o=Dc(r),s=o&&Vo[o];if(!o||!s||r.some(c=>Ps(c).some(Ia))||n.some(c=>(c.annotations??[]).some(u=>Ps(u.value??"").some(Ia))))return;const{groupBys:a,totals:l}=Ic(n);switch(Rc(o,{groupBys:a,totals:l})){case"no_x_axis":return`This chart has no field for the x-axis. ${s} needs a group by, such as a date or a category. Show it as big numbers or a table instead, or add a group by to its query.`;case"combo_totals":return`${s} needs exactly two totals, the first drawn as bars and the second as a line. This one has ${l}.`;case"no_y_axis":return`This chart has no total for the y-axis. ${s} needs at least one aggregate, such as a count or a sum.`;default:return}}const Jm=$e(f.jsx("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})),eg=$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"})),tg=$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"})),ng=$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")]),Ec=$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"})),rg=$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"})),og=$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 sg(e){const t=e.replace(/_+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function $c({chart:e}){const t={fontSize:16};switch(e){case"bar_chart":case"combo_chart":return f.jsx(Jm,{sx:t});case"line_chart":case"sparkline":return f.jsx(rg,{sx:t});case"scatter_chart":return f.jsx(ng,{sx:t});case"shape_map":case"segment_map":return f.jsx(eg,{sx:t});case"big_value":return f.jsx(tg,{sx:t});default:return f.jsx(og,{sx:t})}}function ig({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,h=W.useId(),v=t.trim().toLowerCase(),d=W.useMemo(()=>e.map(P=>({...P,entries:P.entries.filter(T=>v===""||[T.name,T.title,P.label,P.detail??""].join(" ").toLowerCase().includes(v))})).filter(P=>P.entries.length>0),[e,v]),m=d.flatMap(P=>P.entries),g=W.useMemo(()=>new Map(e.flatMap(P=>P.entries).map((P,T)=>[P.key,`${h}-${T}`])),[e,h]),C=P=>g.get(P)??`${h}-none`,w=m.some(P=>P.key===r)?r:void 0,y=P=>{o(P),window.requestAnimationFrame(()=>window.document.getElementById(C(P))?.scrollIntoView({block:"nearest"}))},x=P=>{if(m.length===0)return;const T=m.findIndex(R=>R.key===w),I=T===-1?P===1?0:m.length-1:Math.min(m.length-1,Math.max(0,T+P));y(m[I].key)};return f.jsxs(H.Box,{sx:{display:"flex",flexDirection:"column",minHeight:0,flex:1},children:[f.jsx(H.Box,{sx:{p:1.5,pb:1},children:f.jsx(H.TextField,{size:"small",fullWidth:!0,inputRef:i,placeholder:"Search the model",value:t,disabled:c,onChange:P=>n(P.target.value),onKeyDown:P=>{if(P.key==="ArrowDown")P.preventDefault(),x(1);else if(P.key==="ArrowUp")P.preventDefault(),x(-1);else if(P.key==="Enter"){const T=w??m[0]?.key;if(T===void 0)return;P.preventDefault(),s(T)}},inputProps:{"aria-label":"Search the model",role:"combobox","aria-controls":h,"aria-expanded":!0,...w!==void 0?{"aria-activedescendant":C(w)}:{}},InputProps:{startAdornment:f.jsx(H.InputAdornment,{position:"start",children:f.jsx(Ec,{sx:{fontSize:18,color:"text.secondary"}})})}})}),f.jsxs(H.Box,{id:h,role:"listbox","aria-label":"From the model",sx:{overflowY:"auto",flex:1,minHeight:0,pb:1},children:[e.length===0&&a,e.length>0&&d.length===0&&f.jsxs(H.Typography,{variant:"body2",sx:{color:u.tileTitle,px:2,py:1},children:["No view matches “",t.trim(),"”."]}),d.map(P=>f.jsxs(H.Box,{role:"group","aria-label":P.ariaLabel??P.label,children:[f.jsxs(H.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(H.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(T=>{const I=T.key===r;return f.jsxs(H.Box,{id:C(T.key),role:"option","aria-selected":I,"aria-label":`${T.title} (${T.name})`,onClick:()=>{c||y(T.key)},onDoubleClick:()=>{c||s(T.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(H.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($c,{chart:T.chart})}),f.jsxs(H.Box,{sx:{minWidth:0},children:[f.jsx(H.Box,{sx:{...p.type.control,fontWeight:I?p.type.label.fontWeight:400,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:T.title}),f.jsx(H.Box,{sx:{...p.type.code,color:"text.secondary"},children:T.name})]})]},T.key)})]},P.key)),v===""&&l]})]})}const ag=new Set(["bar","line","chart","scatter_chart","combo"]),lg=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function cg(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":ag.has(e)?"container":"content"}function ug(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&lg.has(e)}function dg(e){return e==="dashboard"?3:2}function Oc(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function pg(e,t){const n=Oc(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const ti=400,fg=700,hg=700;function mg({renderAs:e,maxHeight:t,tableMaxHeight:n}){return e!=="table"||n===void 0?t:t===void 0?n:Math.min(t,n)}const gg=600,yg=800,Ac=400,Fc=2e3;function Lc(e,t){const n=t??Fc;return e===void 0?n:Math.min(e,n)}function Ts({sizing:e,contentHeight:t,maxHeight:n,fillHeight:r,firstPaintHeight:o}){if(e==="container"){const i=n??Ac;return r!==void 0&&r>0?Math.min(i,r):i}if(t===void 0||t<=0)return Lc(n,o);const s=n===void 0?t:Math.min(n,t);return r===void 0?s:Math.max(s,r)}const Nc="data-publisher-tight";function jc(e,t,n=1){return e===1&&t<=2&&n===1?void 0:e}function bg(e,t,n,r=1){const o={...e},s=jc(t,n,r);return s===void 0?delete o.colspan:o.colspan=s,o}function vg(e,t){if(e==="linear")return{layout:"linear",columns:1,widths:!1,insertBetween:!0,tileMaxHeight:void 0,tableMaxHeight:hg};const n=t??pc;return{layout:"grid",columns:n,widths:n>1,insertBetween:!1,tileMaxHeight:ti,tableMaxHeight:void 0}}const Bc="document.malloy",Vc=e=>e.slice(0,e.lastIndexOf("/")+1),ni=(e,t)=>new URL(e,`https://malloy.invalid/${Vc(t)}`).pathname.slice(1);function _c(e,t){const n=Vc(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 zc(e,t,n,r=Bc,o=[n]){return e.sources.some(s=>s.base===t)?!0:e.imports.some(s=>s.kind==="names"?s.names.includes(t):o.includes(ni(s.from,r)))}function xg(e,t,n,r=Bc,o=[n]){const{imports:s}=e;if(zc(e,t,n,r,o))return s;const i=s.findIndex(a=>a.kind==="names"&&o.includes(ni(a.from,r)));return i<0?[...s,{kind:"names",names:[t],from:_c(n,r)}]:s.map((a,l)=>l===i&&a.kind==="names"?{...a,names:[...a.names,t]}:a)}const Sg=$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"})),wg=$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"})),Cg=600,Ea=()=>typeof IntersectionObserver>"u";function Pg(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 kg(e=Cg){const[t,n]=W.useState(Ea),r=W.useRef(t),o=W.useRef(null),s=W.useCallback(i=>{if(o.current?.disconnect(),o.current=null,!i||r.current||Ea())return;const a=i.getBoundingClientRect(),l=Pg(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(h=>h.isIntersecting)&&(r.current=!0,u.disconnect(),n(!0))},{root:l,rootMargin:`${e}px 0px`});u.observe(i),o.current=u},[e]);return W.useEffect(()=>()=>o.current?.disconnect(),[]),W.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 Wc({summary:e,detail:t}){return f.jsxs(H.Alert,{severity:"error",sx:{"& .MuiAlert-message":{minWidth:0,flex:1}},children:[e!==void 0&&f.jsx(H.Box,{sx:{mb:.5},children:e}),f.jsx(H.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 Hc({error:e,context:t}){const n=e.data?.message||"Unknown error";return f.jsx(Wc,{summary:t,detail:n})}function Tg(e){const t=Mg(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 Mg(e){return e.type?.startsWith("filter<")?e.default?.match(/^f(['"])([\s\S]*)\1$/)?.[2]??e.default:e.default}function ri(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}function Dg(e,t){if(e==null||e==="")return;const n=o=>`'${ri(o)}'`;switch(t===void 0?Rg(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=$a(e);return o&&`@${o}`}case"timestamp":{const o=$a(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 Rg(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 $a(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]}function Ig(e,t=!1){return e==null?"null":t?e instanceof Date?`@${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:`@${e}`:typeof e=="string"?`'${ri(e)}'`:typeof e=="number"?String(e):typeof e=="boolean"?e?"true":"false":String(e)}const Ln="malloy-publisher.report-draft:",Nn={storage:()=>window.localStorage};function Eg(e){const{server:t,environmentName:n,packageName:r,versionId:o,path:s}=e;return`${t}|${n}/${r}@${o??""}/${s}`}function $g(e){if(typeof e=="string"){to(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),h=p.indexOf("|");if(h===-1)continue;const[v,d]=[p.slice(0,h),p.slice(h+1)];if(t!==void 0&&v!==t||!d.startsWith(s))continue;const m=d.slice(s.length);(i!==void 0?m!==i:m.slice(m.indexOf("/")+1)!==o)||l.push(u)}for(const c of l)a.removeItem(c)}catch{}}function Og(){try{const e=`${Ln}probe`;return Nn.storage().setItem(e,"1"),Nn.storage().removeItem(e),!0}catch{return!1}}function Ag(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 Fg(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 Lg(e,t){try{return Nn.storage().setItem(Ln+e,JSON.stringify(t)),!0}catch{return!1}}function to(e){try{Nn.storage().removeItem(Ln+e)}catch{}}function cs(e,t){const n=e;for(const r of Object.keys(n))delete n[r];Object.assign(n,structuredClone(t))}function Ng(e,t,n){const[r,o]=W.useState(),[s,i]=W.useState(),[a,l]=W.useState(!1),c=W.useRef(void 0),u=W.useRef(void 0),p=W.useRef(!1),h=Ag(n),v=W.useRef(t);v.current=t;const d=W.useRef(!1);W.useEffect(()=>{if(e===void 0||d.current)return;d.current=!0;const x=Fg(e);if(!x)return;const P=v.current;if(JSON.stringify(x.document)===JSON.stringify(P.document)){to(e);return}if(x.base!==h){c.current=x,o({savedAt:x.savedAt,stale:!0,pending:!0});return}P.update(T=>cs(T,x.document)),u.current=JSON.stringify(x.document),p.current=!0,o({savedAt:x.savedAt,stale:!1,pending:!1})},[e]);const{document:m,dirty:g}=t;W.useEffect(()=>{if(e===void 0||!d.current||c.current&&!g)return;if(c.current&&(c.current=void 0,o(void 0)),u.current!==void 0){const P=JSON.stringify(m);p.current?P===u.current&&(p.current=!1):P!==u.current&&(u.current=void 0,o(void 0))}if(!g){to(e),i(void 0),l(!1);return}const x=Date.now();Lg(e,{v:1,document:m,base:h,savedAt:x})?(i(x),l(!1)):(i(void 0),l(!0))},[e,m,g,h]);const C=W.useCallback(()=>{const x=c.current;x&&(c.current=void 0,v.current.update(P=>cs(P,x.document)),u.current=JSON.stringify(x.document),p.current=!0,o(P=>P&&{...P,pending:!1}))},[]),w=W.useCallback(()=>{c.current||(u.current=void 0,o(void 0))},[]),y=W.useCallback(()=>{if(c.current&&e!==void 0){c.current=void 0,to(e),o(void 0);return}const x=v.current;x.update(P=>cs(P,x.saved)),u.current=void 0,o(void 0)},[e]);return{keptAt:s,keeping:!a,restored:r,dismissRestored:w,discard:y,restoreOffered:C}}const Uc=(e,t)=>({...t,...e}),Yc={emit:()=>{},listening:!1};function go(e,t){return t?{listening:!0,emit:n=>{try{t(Uc(n,e))}catch{}}}:Yc}function jg(e,t){const n=W.useRef(t);n.current=t;const r=t!==void 0,{path:o,layout:s}=e;return W.useMemo(()=>go({path:o,...s?{layout:s}:{}},r?i=>n.current?.(i):void 0),[o,s,r])}const Gc=W.createContext(Yc),oi=()=>W.useContext(Gc);function qc(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 no={exports:{}},Bg=no.exports,Oa;function Vg(){return Oa||(Oa=1,(function(e,t){(function(n,r){e.exports=r()})(Bg,(function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",u="week",p="month",h="quarter",v="year",d="date",m="Invalid Date",g=/^(\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"],k=D%100;return"["+D+(M[(k-20)%10]||M[k]||M[0])+"]"}},y=function(D,M,k){var F=String(D);return!F||F.length>=M?D:""+Array(M+1-F.length).join(k)+D},x={s:y,z:function(D){var M=-D.utcOffset(),k=Math.abs(M),F=Math.floor(k/60),L=k%60;return(M<=0?"+":"-")+y(F,2,"0")+":"+y(L,2,"0")},m:function D(M,k){if(M.date()<k.date())return-D(k,M);var F=12*(k.year()-M.year())+(k.month()-M.month()),L=M.clone().add(F,p),N=k-L<0,U=M.clone().add(F+(N?-1:1),p);return+(-(F+(k-L)/(N?L-U:U-L))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:p,y:v,w:u,d:c,D:d,h:l,m:a,s:i,ms:s,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},P="en",T={};T[P]=w;var I="$isDayjsObject",R=function(D){return D instanceof b||!(!D||!D[I])},A=function D(M,k,F){var L;if(!M)return P;if(typeof M=="string"){var N=M.toLowerCase();T[N]&&(L=N),k&&(T[N]=k,L=N);var U=M.split("-");if(!L&&U.length>1)return D(U[0])}else{var J=M.name;T[J]=M,L=J}return!F&&L&&(P=L),L||!F&&P},O=function(D,M){if(R(D))return D.clone();var k=typeof M=="object"?M:{};return k.date=D,k.args=arguments,new b(k)},$=x;$.l=A,$.i=R,$.w=function(D,M){return O(D,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var b=(function(){function D(k){this.$L=A(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[I]=!0}var M=D.prototype;return M.parse=function(k){this.$d=(function(F){var L=F.date,N=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 U=L.match(g);if(U){var J=U[2]-1||0,re=(U[7]||"0").substring(0,3);return N?new Date(Date.UTC(U[1],J,U[3]||1,U[4]||0,U[5]||0,U[6]||0,re)):new Date(U[1],J,U[3]||1,U[4]||0,U[5]||0,U[6]||0,re)}}return new Date(L)})(k),this.init()},M.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},M.$utils=function(){return $},M.isValid=function(){return this.$d.toString()!==m},M.isSame=function(k,F){var L=O(k);return this.startOf(F)<=L&&L<=this.endOf(F)},M.isAfter=function(k,F){return O(k)<this.startOf(F)},M.isBefore=function(k,F){return this.endOf(F)<O(k)},M.$g=function(k,F,L){return $.u(k)?this[F]:this.set(L,k)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(k,F){var L=this,N=!!$.u(F)||F,U=$.p(k),J=function(z,Z){var te=$.w(L.$u?Date.UTC(L.$y,Z,z):new Date(L.$y,Z,z),L);return N?te:te.endOf(c)},re=function(z,Z){return $.w(L.toDate()[z].apply(L.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(Z)),L)},le=this.$W,ie=this.$M,V=this.$D,Q="set"+(this.$u?"UTC":"");switch(U){case v:return N?J(1,0):J(31,11);case p:return N?J(1,ie):J(0,ie+1);case u:var G=this.$locale().weekStart||0,_=(le<G?le+7:le)-G;return J(N?V-_:V+(6-_),ie);case c:case d:return re(Q+"Hours",0);case l:return re(Q+"Minutes",1);case a:return re(Q+"Seconds",2);case i:return re(Q+"Milliseconds",3);default:return this.clone()}},M.endOf=function(k){return this.startOf(k,!1)},M.$set=function(k,F){var L,N=$.p(k),U="set"+(this.$u?"UTC":""),J=(L={},L[c]=U+"Date",L[d]=U+"Date",L[p]=U+"Month",L[v]=U+"FullYear",L[l]=U+"Hours",L[a]=U+"Minutes",L[i]=U+"Seconds",L[s]=U+"Milliseconds",L)[N],re=N===c?this.$D+(F-this.$W):F;if(N===p||N===v){var le=this.clone().set(d,1);le.$d[J](re),le.init(),this.$d=le.set(d,Math.min(this.$D,le.daysInMonth())).$d}else J&&this.$d[J](re);return this.init(),this},M.set=function(k,F){return this.clone().$set(k,F)},M.get=function(k){return this[$.p(k)]()},M.add=function(k,F){var L,N=this;k=Number(k);var U=$.p(F),J=function(ie){var V=O(N);return $.w(V.date(V.date()+Math.round(ie*k)),N)};if(U===p)return this.set(p,this.$M+k);if(U===v)return this.set(v,this.$y+k);if(U===c)return J(1);if(U===u)return J(7);var re=(L={},L[a]=r,L[l]=o,L[i]=n,L)[U]||1,le=this.$d.getTime()+k*re;return $.w(le,this)},M.subtract=function(k,F){return this.add(-1*k,F)},M.format=function(k){var F=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var N=k||"YYYY-MM-DDTHH:mm:ssZ",U=$.z(this),J=this.$H,re=this.$m,le=this.$M,ie=L.weekdays,V=L.months,Q=L.meridiem,G=function(Z,te,ee,B){return Z&&(Z[te]||Z(F,N))||ee[te].slice(0,B)},_=function(Z){return $.s(J%12||12,Z,"0")},z=Q||function(Z,te,ee){var B=Z<12?"AM":"PM";return ee?B.toLowerCase():B};return N.replace(C,(function(Z,te){return te||(function(ee){switch(ee){case"YY":return String(F.$y).slice(-2);case"YYYY":return $.s(F.$y,4,"0");case"M":return le+1;case"MM":return $.s(le+1,2,"0");case"MMM":return G(L.monthsShort,le,V,3);case"MMMM":return G(V,le);case"D":return F.$D;case"DD":return $.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return G(L.weekdaysMin,F.$W,ie,2);case"ddd":return G(L.weekdaysShort,F.$W,ie,3);case"dddd":return ie[F.$W];case"H":return String(J);case"HH":return $.s(J,2,"0");case"h":return _(1);case"hh":return _(2);case"a":return z(J,re,!0);case"A":return z(J,re,!1);case"m":return String(re);case"mm":return $.s(re,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 U}return null})(Z)||U.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(k,F,L){var N,U=this,J=$.p(F),re=O(k),le=(re.utcOffset()-this.utcOffset())*r,ie=this-re,V=function(){return $.m(U,re)};switch(J){case v:N=V()/12;break;case p:N=V();break;case h:N=V()/3;break;case u:N=(ie-le)/6048e5;break;case c:N=(ie-le)/864e5;break;case l:N=ie/o;break;case a:N=ie/r;break;case i:N=ie/n;break;default:N=ie}return L?N:$.a(N)},M.daysInMonth=function(){return this.endOf(p).$D},M.$locale=function(){return T[this.$L]},M.locale=function(k,F){if(!k)return this.$L;var L=this.clone(),N=A(k,F,!0);return N&&(L.$L=N),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=b.prototype;return O.prototype=E,[["$ms",s],["$s",i],["$m",a],["$H",l],["$W",c],["$M",p],["$y",v],["$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,b,O),D.$i=!0),O},O.locale=A,O.isDayjs=R,O.unix=function(D){return O(1e3*D)},O.en=T[P],O.Ls=T,O.p={},O}))})(no)),no.exports}var _g=Vg();const Re=jt(_g);var ro={exports:{}},zg=ro.exports,Aa;function Wg(){return Aa||(Aa=1,(function(e,t){(function(n,r){e.exports=r()})(zg,(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(m){var g={date:m,utc:!0,args:arguments};return new i(g)},l.utc=function(m){var g=a(this.toDate(),{locale:this.$L,utc:!0});return m?g.add(this.utcOffset(),n):g},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),c.call(this,m)};var u=l.init;l.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else u.call(this)};var p=l.utcOffset;l.utcOffset=function(m,g){var C=this.$utils().u;if(C(m))return this.$u?0:C(this.$offset)?p.call(this):this.$offset;if(typeof m=="string"&&(m=(function(P){P===void 0&&(P="");var T=P.match(r);if(!T)return null;var I=(""+T[0]).match(o)||["-",0,0],R=I[0],A=60*+I[1]+ +I[2];return A===0?0:R==="+"?A:-A})(m),m===null))return this;var w=Math.abs(m)<=16?60*m:m;if(w===0)return this.utc(g);var y=this.clone();if(g)return y.$offset=w,y.$u=!1,y;var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(y=this.local().add(w+x,n)).$offset=w,y.$x.$localOffset=x,y};var h=l.format;l.format=function(m){var g=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,g)},l.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*m},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var v=l.toDate;l.toDate=function(m){return m==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():v.call(this)};var d=l.diff;l.diff=function(m,g,C){if(m&&this.$u===m.$u)return d.call(this,m,g,C);var w=this.local(),y=a(m).local();return d.call(w,y,g,C)}}}))})(ro)),ro.exports}var Hg=Wg();const si=jt(Hg);Re.extend(si);function Gt(e){return(e??"").startsWith("filter<")}function Ug(e){const{parsed:t}=tt.BooleanFilterExpression.parse(e);if(!(!t||t.not))return t.operator==="true"||t.operator==="false"?t.operator:void 0}function Kt(e){const t=/^filter<(.+)>$/.exec(e??"");return t?t[1]:void 0}function ii(e){const t=e.filter(n=>n.trim()!=="");return t.length===0?"":tt.StringFilterExpression.unparse({operator:"=",values:[...t]})}function Kc(e){if(e.trim()==="")return[];const{parsed:t}=tt.StringFilterExpression.parse(e);return Qc(t)?t.values:[e]}function Xc(e){return e===void 0||e.trim()===""?!0:Qc(tt.StringFilterExpression.parse(e).parsed)}function Qc(e){return e!==null&&tt.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function Yg(e){return tt.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function Zc(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 Gg(e,t){return tt.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function Jc(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 qg(e){const t=wr.find(n=>n.key===e);return t?tt.TemporalFilterExpression.unparse(t.clause):void 0}function eu(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 Kg=/^\d{4}-\d{2}-\d{2}$/;function Xg(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 tu(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=Fa(n.fromMoment),o=Fa(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 Fa(e){return e.moment==="literal"&&Kg.test(e.literal)?e.literal:void 0}const Qg="self";function nu(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(La)).filter(La):[]}function ru(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function ou(e){return e.tag?.tag("drill")?.text("given")??e.name}function _o(e){if(typeof e=="string"){const t=ii([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 su(e){return e instanceof Date?_o(e)??"":String(e)}function Zg(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=nu(t);if(n.length===0)return;const r=_o(e.value);if(r!==void 0)return{to:n,given:ou(t),value:r,rawValue:e.value,label:su(e.value)}}function La(e){return typeof e=="string"&&e!==""}function iu(e,t){if(t!==void 0&&!Gt(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 Kt(t)==="string"&&typeof e=="number"?Number.isFinite(e)?ii([String(e)]):void 0:Kt(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:_o(e)}function au({declaredTypes:e,setGiven:t,documentName:n}){const r=oi(),o=W.useMemo(()=>{const l=new Map;for(const c of e.keys())l.has(c.toLowerCase())||l.set(c.toLowerCase(),c);return l},[e]),s=W.useCallback(l=>e.has(l)?l:o.get(l.toLowerCase()),[e,o]),i=W.useCallback(l=>s(l)!==void 0,[s]),a=W.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),h=iu(c,p);if(h===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,h),r.emit({type:"report.drill",to:"self",outcome:"resolved"})},[e,n,s,t,r]);return{resolveGiven:s,canSelf:i,onSelf:a}}function lu(e,t){if(e!=null){if(e instanceof Date)return ai(e,t);if(!Array.isArray(e))return String(e)}}function Jg(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 ey=/^(\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 cu(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 ty(e,t=!1){const n=cu(e);if(n==="")return;const r=ey.exec(n);if(!r)return;const[,o,s,i,a,l,c,u,p]=r,h={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)},v=Date.UTC(h.year,h.month-1,h.day,h.hour,h.minute,h.second,h.milli),d=new Date(v);if(!(d.getUTCFullYear()===h.year&&d.getUTCMonth()===h.month-1&&d.getUTCDate()===h.day&&d.getUTCHours()===h.hour&&d.getUTCMinutes()===h.minute&&d.getUTCSeconds()===h.second)||p!==void 0&&a===void 0)return;const g=ny(p);if(g===void 0)return;const C=new Date(v-g*6e4);if(!(t&&p!==void 0&&C.getUTCDate()!==h.day))return C}function ny(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 uu(e){return!ry.has(e??"")}const ry=new Set(["boolean","number","date","timestamp","timestamptz"]);function du(e,t){if(t===""&&!uu(e))return null;if(Gt(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=cu(t);return ty(n,e==="date")??n}default:return t}}function oo(e,t){const n={};for(const[r,o]of e){const s=lu(o,t.get(r));s!==void 0&&(n[r]=s)}return n}function ai(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 li(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?ai(i,t.get(s)):i));return o}function ci(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?ai(i,void 0):i);return o}function Na(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,du(t.get(r),o));return n}function us(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 ja(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function oy(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}const sy=1500;function Wr(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function pu({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:s}){const i=W.useMemo(()=>Na(t??{},e),[e,JSON.stringify(t)]),a=W.useRef(null),l=W.useRef([]),c=W.useRef(0),u=W.useRef({documentKey:o,params:n}),p=k=>k!==null&&oy(n??{},k,e),h=Date.now();l.current=l.current.filter(k=>h-k.at<sy);const d=(a.current===null?l.current.map(k=>k.params):[...l.current.map(k=>k.params),a.current]).findIndex(p);u.current.documentKey!==o&&(l.current=[]),(u.current.documentKey!==o||!Wr(n??{},u.current.params??{})&&d<0)&&(u.current={documentKey:o,params:n}),d>0&&(l.current=l.current.slice(d));const m=u.current.params,g=JSON.stringify(t),C=JSON.stringify(m),w=W.useMemo(()=>Na({...t??{},...m??{}},e),[e,g,C]),y=W.useMemo(()=>JSON.stringify([o??null,ja(t),ja(m)]),[o,g,C]),[x,P]=W.useState(null),T=x?.key===y?x:null;W.useEffect(()=>{x!==null&&x.key!==y&&P(null)},[x,y]);const I=W.useMemo(()=>us(T?.draft??w,e),[T,w,e]),R=W.useMemo(()=>us(T?.applied??w,e),[T,w,e]),A=W.useCallback(k=>k?.key===y?k:{key:y,draft:w,applied:w},[y,w]),O=W.useMemo(()=>oo(R,e),[R,e]);a.current===null&&(a.current=O,c.current=Date.now()),W.useEffect(()=>{r&&(Wr(a.current??{},O)||(a.current!==null&&(l.current=[...l.current.slice(-31),{params:a.current,at:c.current}]),a.current=O,c.current=Date.now(),r(O)))},[O,r]);const $=W.useCallback((k,F)=>{P(L=>{const N=A(L),U=new Map(N.draft);return F===null?U.delete(k):U.set(k,F),{key:N.key,draft:U,applied:s?U:N.applied}})},[s,A]),b=W.useCallback(()=>{P(k=>({key:A(k).key,draft:i,applied:i}))},[A,i]),E=W.useCallback(()=>{P(k=>{const F=A(k);return{key:F.key,draft:F.draft,applied:F.draft}})},[A]),D=W.useMemo(()=>{if(s)return!1;if(I.size!==R.size)return!0;for(const[k,F]of I){const L=R.get(k);if(F instanceof Date&&L instanceof Date){if(F.getTime()!==L.getTime())return!0}else if(Array.isArray(F)&&Array.isArray(L)){if(String(F)!==String(L))return!0}else if(F!==L)return!0}return!1},[s,I,R]),M=W.useMemo(()=>{const k=oo(us(i,e),e);return Wr(oo(I,e),k)&&Wr(O,k)},[i,I,O,e]);return{draft:I,applied:R,setGiven:$,reset:b,apply:E,pending:D,atStart:M}}const fu="You don't have access to this data";function iy(e){return(e??[]).filter(t=>t.kind==="definition"&&!t.restricted).map(t=>t.text??"").join(`
16
+ export default theme;`}function Da(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const qh=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 Kh(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})`:fo(t,qh(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Da(n)})`:Fo(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Da(n)})`:Ao(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(At(20));const p=Ks({...s,colorSpace:c}),h=Xs(e);let v=Ge(h,{mixins:Fh(h.breakpoints,r),palette:p,shadows:_h.slice(),typography:Nh(p,a),transitions:Uh(i),zIndex:{...Yh}});return v=Ge(v,u),v=t.reduce((d,m)=>Ge(d,m),v),v.unstable_sxConfig={...Ir,...u?.unstable_sxConfig},v.unstable_sx=function(m){return Fn({sx:m,theme:this})},v.toRuntimeSource=oc,Kh(v),v}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 Xh=[...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 sc(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ic(e){return e==="dark"?Xh:[]}function Qh(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,i=Ks({...t,colorSpace:o});return{palette:i,opacity:{...sc(i.mode),...n},overlays:r||ic(i.mode),...s}}function Zh(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 Jh=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],em=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 Jh(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 tm(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function q(e,t,n){!e[t]&&n&&(e[t]=n)}function ur(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ql(e)}function Et(e,t){`${t}Channel`in e||(e[`${t}Channel`]=cr(ur(e[t])))}function nm(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{}},rm=(e="mui")=>He.unstable_createGetCssVar(e);function as(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=Qh({...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:{...sc(s),...n?.opacity},overlays:n?.overlays||ic(s)},a}function om(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=Zh,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,p=Object.keys(n)[0],h=r||(n.light&&p!=="light"?"light":p),v=rm(s),{[h]:d,light:m,dark:g,...C}=n,w={...C};let y=d;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(y=!0),!y)throw new Error(At(21,h));let x;i&&(x="oklch");const P=as(x,w,y,u,h);m&&!w.light&&as(x,w,m,void 0,"light"),g&&!w.dark&&as(x,w,g,void 0,"dark");let T={defaultColorScheme:h,...P,cssVarPrefix:s,colorSchemeSelector:l,rootSelector:c,getCssVar:v,colorSchemes:w,font:{...$h(P.typography),...P.font},spacing:nm(u.spacing)};Object.keys(T.colorSchemes).forEach($=>{const b=T.colorSchemes[$].palette,E=M=>{const k=M.split("-"),F=k[1],L=k[2];return v(M,b[F][L])};b.mode==="light"&&(q(b.common,"background","#fff"),q(b.common,"onBackground","#000")),b.mode==="dark"&&(q(b.common,"background","#000"),q(b.common,"onBackground","#fff"));function D(M,k,F){if(x){let L;return M===Jt&&(L=`transparent ${((1-F)*100).toFixed(0)}%`),M===Me&&(L=`#000 ${(F*100).toFixed(0)}%`),M===De&&(L=`#fff ${(F*100).toFixed(0)}%`),`color-mix(in ${x}, ${k}, ${L})`}return M(k,F)}if(tm(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){q(b.Alert,"errorColor",D(Me,b.error.light,.6)),q(b.Alert,"infoColor",D(Me,b.info.light,.6)),q(b.Alert,"successColor",D(Me,b.success.light,.6)),q(b.Alert,"warningColor",D(Me,b.warning.light,.6)),q(b.Alert,"errorFilledBg",E("palette-error-main")),q(b.Alert,"infoFilledBg",E("palette-info-main")),q(b.Alert,"successFilledBg",E("palette-success-main")),q(b.Alert,"warningFilledBg",E("palette-warning-main")),q(b.Alert,"errorFilledColor",Ct(()=>b.getContrastText(b.error.main))),q(b.Alert,"infoFilledColor",Ct(()=>b.getContrastText(b.info.main))),q(b.Alert,"successFilledColor",Ct(()=>b.getContrastText(b.success.main))),q(b.Alert,"warningFilledColor",Ct(()=>b.getContrastText(b.warning.main))),q(b.Alert,"errorStandardBg",D(De,b.error.light,.9)),q(b.Alert,"infoStandardBg",D(De,b.info.light,.9)),q(b.Alert,"successStandardBg",D(De,b.success.light,.9)),q(b.Alert,"warningStandardBg",D(De,b.warning.light,.9)),q(b.Alert,"errorIconColor",E("palette-error-main")),q(b.Alert,"infoIconColor",E("palette-info-main")),q(b.Alert,"successIconColor",E("palette-success-main")),q(b.Alert,"warningIconColor",E("palette-warning-main")),q(b.AppBar,"defaultBg",E("palette-grey-100")),q(b.Avatar,"defaultBg",E("palette-grey-400")),q(b.Button,"inheritContainedBg",E("palette-grey-300")),q(b.Button,"inheritContainedHoverBg",E("palette-grey-A100")),q(b.Chip,"defaultBorder",E("palette-grey-400")),q(b.Chip,"defaultAvatarColor",E("palette-grey-700")),q(b.Chip,"defaultIconColor",E("palette-grey-700")),q(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),q(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),q(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),q(b.LinearProgress,"primaryBg",D(De,b.primary.main,.62)),q(b.LinearProgress,"secondaryBg",D(De,b.secondary.main,.62)),q(b.LinearProgress,"errorBg",D(De,b.error.main,.62)),q(b.LinearProgress,"infoBg",D(De,b.info.main,.62)),q(b.LinearProgress,"successBg",D(De,b.success.main,.62)),q(b.LinearProgress,"warningBg",D(De,b.warning.main,.62)),q(b.Skeleton,"bg",x?D(Jt,b.text.primary,.11):`rgba(${E("palette-text-primaryChannel")} / 0.11)`),q(b.Slider,"primaryTrack",D(De,b.primary.main,.62)),q(b.Slider,"secondaryTrack",D(De,b.secondary.main,.62)),q(b.Slider,"errorTrack",D(De,b.error.main,.62)),q(b.Slider,"infoTrack",D(De,b.info.main,.62)),q(b.Slider,"successTrack",D(De,b.success.main,.62)),q(b.Slider,"warningTrack",D(De,b.warning.main,.62));const M=x?D(Me,b.background.default,.6825):zr(b.background.default,.8);q(b.SnackbarContent,"bg",M),q(b.SnackbarContent,"color",Ct(()=>x?vs.text.primary:b.getContrastText(M))),q(b.SpeedDialAction,"fabHoverBg",zr(b.background.paper,.15)),q(b.StepConnector,"border",E("palette-grey-400")),q(b.StepContent,"border",E("palette-grey-400")),q(b.Switch,"defaultColor",E("palette-common-white")),q(b.Switch,"defaultDisabledColor",E("palette-grey-100")),q(b.Switch,"primaryDisabledColor",D(De,b.primary.main,.62)),q(b.Switch,"secondaryDisabledColor",D(De,b.secondary.main,.62)),q(b.Switch,"errorDisabledColor",D(De,b.error.main,.62)),q(b.Switch,"infoDisabledColor",D(De,b.info.main,.62)),q(b.Switch,"successDisabledColor",D(De,b.success.main,.62)),q(b.Switch,"warningDisabledColor",D(De,b.warning.main,.62)),q(b.TableCell,"border",D(De,D(Jt,b.divider,1),.88)),q(b.Tooltip,"bg",D(Jt,b.grey[700],.92))}if(b.mode==="dark"){q(b.Alert,"errorColor",D(De,b.error.light,.6)),q(b.Alert,"infoColor",D(De,b.info.light,.6)),q(b.Alert,"successColor",D(De,b.success.light,.6)),q(b.Alert,"warningColor",D(De,b.warning.light,.6)),q(b.Alert,"errorFilledBg",E("palette-error-dark")),q(b.Alert,"infoFilledBg",E("palette-info-dark")),q(b.Alert,"successFilledBg",E("palette-success-dark")),q(b.Alert,"warningFilledBg",E("palette-warning-dark")),q(b.Alert,"errorFilledColor",Ct(()=>b.getContrastText(b.error.dark))),q(b.Alert,"infoFilledColor",Ct(()=>b.getContrastText(b.info.dark))),q(b.Alert,"successFilledColor",Ct(()=>b.getContrastText(b.success.dark))),q(b.Alert,"warningFilledColor",Ct(()=>b.getContrastText(b.warning.dark))),q(b.Alert,"errorStandardBg",D(Me,b.error.light,.9)),q(b.Alert,"infoStandardBg",D(Me,b.info.light,.9)),q(b.Alert,"successStandardBg",D(Me,b.success.light,.9)),q(b.Alert,"warningStandardBg",D(Me,b.warning.light,.9)),q(b.Alert,"errorIconColor",E("palette-error-main")),q(b.Alert,"infoIconColor",E("palette-info-main")),q(b.Alert,"successIconColor",E("palette-success-main")),q(b.Alert,"warningIconColor",E("palette-warning-main")),q(b.AppBar,"defaultBg",E("palette-grey-900")),q(b.AppBar,"darkBg",E("palette-background-paper")),q(b.AppBar,"darkColor",E("palette-text-primary")),q(b.Avatar,"defaultBg",E("palette-grey-600")),q(b.Button,"inheritContainedBg",E("palette-grey-800")),q(b.Button,"inheritContainedHoverBg",E("palette-grey-700")),q(b.Chip,"defaultBorder",E("palette-grey-700")),q(b.Chip,"defaultAvatarColor",E("palette-grey-300")),q(b.Chip,"defaultIconColor",E("palette-grey-300")),q(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),q(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),q(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),q(b.LinearProgress,"primaryBg",D(Me,b.primary.main,.5)),q(b.LinearProgress,"secondaryBg",D(Me,b.secondary.main,.5)),q(b.LinearProgress,"errorBg",D(Me,b.error.main,.5)),q(b.LinearProgress,"infoBg",D(Me,b.info.main,.5)),q(b.LinearProgress,"successBg",D(Me,b.success.main,.5)),q(b.LinearProgress,"warningBg",D(Me,b.warning.main,.5)),q(b.Skeleton,"bg",x?D(Jt,b.text.primary,.13):`rgba(${E("palette-text-primaryChannel")} / 0.13)`),q(b.Slider,"primaryTrack",D(Me,b.primary.main,.5)),q(b.Slider,"secondaryTrack",D(Me,b.secondary.main,.5)),q(b.Slider,"errorTrack",D(Me,b.error.main,.5)),q(b.Slider,"infoTrack",D(Me,b.info.main,.5)),q(b.Slider,"successTrack",D(Me,b.success.main,.5)),q(b.Slider,"warningTrack",D(Me,b.warning.main,.5));const M=x?D(De,b.background.default,.985):zr(b.background.default,.98);q(b.SnackbarContent,"bg",M),q(b.SnackbarContent,"color",Ct(()=>x?ec.text.primary:b.getContrastText(M))),q(b.SpeedDialAction,"fabHoverBg",zr(b.background.paper,.15)),q(b.StepConnector,"border",E("palette-grey-600")),q(b.StepContent,"border",E("palette-grey-600")),q(b.Switch,"defaultColor",E("palette-grey-300")),q(b.Switch,"defaultDisabledColor",E("palette-grey-600")),q(b.Switch,"primaryDisabledColor",D(Me,b.primary.main,.55)),q(b.Switch,"secondaryDisabledColor",D(Me,b.secondary.main,.55)),q(b.Switch,"errorDisabledColor",D(Me,b.error.main,.55)),q(b.Switch,"infoDisabledColor",D(Me,b.info.main,.55)),q(b.Switch,"successDisabledColor",D(Me,b.success.main,.55)),q(b.Switch,"warningDisabledColor",D(Me,b.warning.main,.55)),q(b.TableCell,"border",D(Me,D(Jt,b.divider,1),.68)),q(b.Tooltip,"bg",D(Jt,b.grey[700],.92))}Et(b.background,"default"),Et(b.background,"paper"),Et(b.common,"background"),Et(b.common,"onBackground"),Et(b,"divider"),Object.keys(b).forEach(M=>{const k=b[M];M!=="tonalOffset"&&k&&typeof k=="object"&&(k.main&&q(b[M],"mainChannel",cr(ur(k.main))),k.light&&q(b[M],"lightChannel",cr(ur(k.light))),k.dark&&q(b[M],"darkChannel",cr(ur(k.dark))),k.contrastText&&q(b[M],"contrastTextChannel",cr(ur(k.contrastText))),M==="text"&&(Et(b[M],"primary"),Et(b[M],"secondary")),M==="action"&&(k.active&&Et(b[M],"active"),k.selected&&Et(b[M],"selected")))})}),T=t.reduce(($,b)=>Ge($,b),T);const I={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:em(T),enableContrastVars:i},{vars:R,generateThemeVars:A,generateStyleSheets:O}=Eh(T,I);return T.vars=R,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([$,b])=>{T[$]=b}),T.generateThemeVars=A,T.generateStyleSheets=O,T.generateSpacing=function(){return He.createSpacing(u.spacing,Ys(this))},T.getColorSchemeSelector=Oh(l),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=a,T.unstable_sxConfig={...Ir,...u?.unstable_sxConfig},T.unstable_sx=function(b){return Fn({sx:b,theme:this})},T.toRuntimeSource=oc,T}function Ra(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ks({...n===!0?{}:n.palette,mode:t})})}function ac(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},Ra(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},Ra(p,"light",c.light)),p}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),om({...i,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const Lo=ac(),Un="$$material";function gn(){const e=He.useTheme(Lo);return e[Un]||e}function sm(e){return f.jsx(He.GlobalStyles,{...e,defaultTheme:Lo,themeId:Un})}function im(e){const{variants:t,...n}=e,r={variants:t,style:cn(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=cn(o.style))}),r}const am=Xs();function ls(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function an(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function lm(e){return e?(t,n)=>n[e]:null}function cm(e,t,n){e.theme=pm(e.theme)?n:e.theme[t]||e.theme}function Jr(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Jr(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?an(r.style,n):r.style;else{const{variants:s,...i}=r;o=n?an(cn(i),n):i}return lc(e,r.variants,[o],n)}return r?.isProcessed?n?an(cn(r.style),n):r.style:n?an(cn(r),n):r}function lc(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?an(cn(i.style(o)),r):i.style(o))):n.push(r?an(cn(i.style),r):i.style)}return n}function um(e={}){const{themeId:t,defaultTheme:n=am,rootShouldForwardProp:r=ls,slotShouldForwardProp:o=ls}=e;function s(a){cm(a,t,n)}return(a,l={})=>{hh(a,T=>T.filter(I=>I!==Fn));const{name:c,slot:u,skipVariantsResolver:p,skipSx:h,overridesResolver:v=lm(hm(u)),...d}=l,m=c&&c.startsWith("Mui")||u?"components":"custom",g=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,C=h||!1;let w=ls;u==="Root"||u==="root"?w=r:u?w=o:fm(a)&&(w=void 0);const y=fh(a,{shouldForwardProp:w,label:dm(),...d}),x=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(R){return Jr(R,T,R.theme.modularCssLayers?m:void 0)};if(kt(T)){const I=im(T);return function(A){return I.variants?Jr(A,I,A.theme.modularCssLayers?m:void 0):A.theme.modularCssLayers?an(I.style,m):I.style}}return T},P=(...T)=>{const I=[],R=T.map(x),A=[];if(I.push(s),c&&v&&A.push(function(E){const M=E.theme.components?.[c]?.styleOverrides;if(!M)return null;const k={};for(const F in M)k[F]=Jr(E,M[F],E.theme.modularCssLayers?"theme":void 0);return v(E,k)}),c&&!g&&A.push(function(E){const M=E.theme?.components?.[c]?.variants;return M?lc(E,M,[],E.theme.modularCssLayers?"theme":void 0):null}),C||A.push(Fn),Array.isArray(R[0])){const b=R.shift(),E=new Array(I.length).fill(""),D=new Array(A.length).fill("");let M;M=[...E,...b,...D],M.raw=[...E,...b.raw,...D],I.unshift(M)}const O=[...I,...R,...A],$=y(...O);return a.muiName&&($.muiName=a.muiName),$};return y.withConfig&&(P.withConfig=y.withConfig),P}}function dm(e,t){return void 0}function pm(e){for(const t in e)return!1;return!0}function fm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function cc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pt=e=>cc(e)&&e!=="classes",K=um({themeId:Un,defaultTheme:Lo,rootShouldForwardProp:pt});function mm(e){return function(n){return f.jsx(sm,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function gm(){return Gf}const Ee=He.unstable_memoTheme;function Ce(e){return vh(e)}function he(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ge(e,o,n)}),r}function ym(e){return ge("MuiSvgIcon",e)}he("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const bm=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ae(t)}`,`fontSize${ae(n)}`]};return me(o,ym,r)},vm=K("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ae(n.color)}`],t[`fontSize${ae(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}}]}))),mo=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:h="0 0 24 24",...v}=r,d=S.isValidElement(o)&&o.type==="svg",m={...r,color:i,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:d},g={};u||(g.viewBox=h);const C=bm(m);return f.jsxs(vm,{as:a,className:de(C.root,s),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...g,...v,...d&&o.props,ownerState:m,children:[d?o.props.children:o,p?f.jsx("title",{children:p}):null]})});mo.muiName="SvgIcon";function $e(e,t){function n(r,o){return f.jsx(mo,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=mo.muiName,S.memo(S.forwardRef(n))}function uc(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 eo(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 Lt(e){return Ye(e).defaultView||window}function ws(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Dt(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 xm(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function dc(e,t){if(!e)return t;function n(i,a){const l={};return Object.keys(a).forEach(c=>{xm(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 Qs=$e(f.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),pc=2,Sm=24,wm=(e,t,n)=>Math.min(Math.max(e+t,1),Math.min(n,Sm)),Tt=16,Cm=Tt/2;function Pm(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}const No=80,fc=3,km=2,Tm=1,hc=16,mc=e=>e*No+(e-1)*Tt,Mm=(e,t=fc)=>Math.min(Math.max(Math.round((e+Tt)/(No+Tt)),t),hc),gc=240;function Dm(e,t,n=gc){const[r,o]=W.useState(0);return W.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]),yc(t,r,n)}function yc(e,t,n){if(!(t>0)||e<=1)return 1;const r=(t-(e-1)*Tt)/e;return Math.min(e,Math.max(1,Math.ceil((n+Tt)/(r+Tt))))}const bc={query:5,text:2},vc=e=>e.some(t=>t.row!==void 0);function Rm(e,t,n){const r=Math.min(e.colspan??1,t),o=e.col===void 0?void 0:Math.min(e.col,t-r+1);return{gridRow:e.row===void 0?`span ${n}`:`${e.row} / span ${n}`,gridColumn:o===void 0?`span ${r}`:`${o} / span ${r}`}}const Im=e=>e.row===void 0?1e6:e.row*1e3+(e.col??0);function Em({tiles:e,columns:t,keyOf:n,renderTile:r,minTilePx:o,rowGapPx:s=Tt,defaultRowspan:i=a=>bc[a.kind==="text"?"text":"query"]}){const a=vc(e),l=W.useRef(null),[c,u]=W.useState(0);W.useEffect(()=>{const h=l.current;if(o===void 0||!h||typeof ResizeObserver>"u")return;const v=new ResizeObserver(([d])=>u(d?.contentRect.width??0));return v.observe(h),()=>v.disconnect()},[o]);const p=o===void 0?1:yc(t,c,o);return f.jsx(H.Box,{ref:l,sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},columnGap:`${Tt}px`,rowGap:`${s}px`,...a&&{gridAutoRows:`${No}px`}},children:e.map((h,v)=>f.jsx(H.Box,{sx:{display:"grid",minWidth:0,...!a&&h.rowspan!==void 0&&{height:mc(h.rowspan),alignSelf:"start"},...(a||h.rowspan!==void 0)&&{gridTemplateRows:"minmax(0, 1fr)"},...a?(()=>{const d=h.rowspan??i(h),m=Rm(h.colspan===void 0&&p>1?{...h,colspan:p}:h,t,d);return{gridRow:{xs:`span ${d}`,md:m.gridRow},gridColumn:{md:m.gridColumn},order:{xs:Im(h),md:0}}})():{gridColumn:{md:Pm(h.colspan===void 0&&p>1?{...h,colspan:p}:h,t)}}},children:r(h,v)},n(h,v)))})}function jo(e){let t="",n=0;for(;;){const r=e.indexOf('"',n);if(r<0)break;let o=r+1;for(;o<e.length&&e[o]!=='"';)o+=e[o]==="\\"?2:1;if(o>=e.length)break;t+=`${e.slice(n,r)}""`,n=o+1}return t+e.slice(n)}const xc=["bar_chart","line_chart","scatter_chart","shape_map","segment_map","big_value","sparkline","combo_chart"],Zs=["line_chart","bar_chart","big_value","scatter_chart","shape_map","segment_map","combo_chart"],Sc=e=>Zs.includes(e),Cs=new Set([...xc,"viz"]);function Er(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(!Cs.has(i))return;r.push(i)}else{if(o!==void 0||!Cs.has(s))return;o=s}return{negated:r,...o!==void 0&&{pick:o}}}function Js(e){const t=e.trim();return!/^#[ \t]/.test(t)||Er(t)?!1:(jo(t).match(/[A-Za-z_]+/g)??[]).some(r=>Cs.has(r))}function $m(){return["#",...Zs.filter(e=>e!=="big_value").map(e=>`-${e}`)].join(" ")}function Om(e,t){return["#",...Zs.filter(r=>r!==e&&(t===void 0||t.includes(r)||e==="none"&&r==="big_value")).map(r=>`-${r}`),"-viz",...e==="none"?[]:[e]].join(" ")}function Am(e){return e.pick!==void 0?Sc(e.pick)?e.pick:"custom":e.negated.includes("viz")?"none":"custom"}function Fm(e){if(e.length===0)return"default";if(e.length>1)return"custom";const t=Er(e[0]);return t?Am(t):"custom"}function Lm(e){const t=e.filter(n=>Er(n));return e.some(Js)?"custom":t.length===0?void 0:Fm(t)}const Nm=/^#[ \t]*theme\.palette\.series[ \t]*=[ \t]*\[[ \t]*"(#[0-9A-Fa-f]{6})"[ \t]*\][ \t]*$/;function jm(e){return Nm.exec(e.trim())?.[1]?.toLowerCase()}const Bm=e=>`# theme.palette.series=["${e.toLowerCase()}"]`,Vm="# -theme.palette.series",wc=e=>/^#[0-9A-Fa-f]{6}$/.test(e);function _m(e){const t=e.trim().toLowerCase();if(wc(t))return t;const n=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/.exec(t);return n?`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`:void 0}const zm=e=>e.filter(t=>Er(t)||Js(t)),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 Cc({open:e,onClose:t,title:n,description:r,maxWidth:o="sm",showClose:s=!1,actions:i,initialFocus:a,className:l,children:c}){const u=W.useId(),p=Se.usePublisherTheme().theme.ui;return f.jsxs(H.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(H.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(H.IconButton,{"aria-label":"Close",onClick:t,size:"small",sx:{color:"text.secondary",mr:-1},children:f.jsx(Bo,{fontSize:"small"})})]}),f.jsxs(H.DialogContent,{sx:{px:3,pb:1,pt:1},children:[r&&f.jsx(H.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:r}),f.jsx(H.Stack,{sx:{gap:2,pt:r?0:1},children:c})]}),i&&f.jsx(H.DialogActions,{sx:{px:3,pb:3,pt:2,gap:1},children:i})]})}function Wm({open:e,canSave:t,onKeepEditing:n,onDiscard:r,onSaveAndExit:o}){return f.jsx(Cc,{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(H.Button,{onClick:n,children:"Keep editing"}),f.jsx(H.Button,{color:"error",onClick:r,children:"Discard changes"}),t&&o&&f.jsx(H.Button,{variant:"contained",onClick:o,children:"Save and exit"})]}),children:null})}const Pc=$e(f.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}));function Hm({label:e,onClick:t,disabled:n}){return f.jsx(H.Button,{variant:"contained",color:"primary",startIcon:f.jsx(Qs,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function Um({label:e,icon:t,onClick:n,disabled:r,disabledReason:o,ariaLabel:s,ariaHasPopup:i}){const a=f.jsx("span",{children:f.jsx(H.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(H.Tooltip,{title:o,children:a}):a}const kc=$e(f.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),$r="120ms",Or={"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},Ym=()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches?"auto":"smooth",Tc={"@media (hover: none)":{opacity:1}},Gm=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 Mc="72ch",Yn=e=>e.replace(/^1px solid /,""),ei=(e,t)=>`color-mix(in srgb, ${Yn(e)}, ${t} 25%)`,Vo={line_chart:"A line chart",bar_chart:"A bar chart",scatter_chart:"A scatter chart",combo_chart:"A bar and line chart"},qm={line:"line_chart",bar:"bar_chart",scatter:"scatter_chart",combo:"combo_chart"},Km=new Set(["x","y","y2","series"]);function Ps(e){const t=e.trim();return!t.startsWith("#")||t.startsWith("#(")||t.startsWith('#"')?[]:jo(t.slice(1)).split(/[\s{}[\],]+/).filter(Boolean)}function Dc(e){const t=[];let n;for(const r of e)for(const o of Ps(r))if(o.startsWith("-")){const s=o.slice(1);s==="viz"&&(n=void 0);const i=t.indexOf(s);i>=0&&t.splice(i,1)}else if(o.startsWith("viz="))n=qm[o.slice(4)]??o;else if(Vo[o]!==void 0||o==="big_value"){const s=t.indexOf(o);s>=0&&t.splice(s,1),t.push(o)}return n??t.at(-1)}function Xm(e){const t=Dc(e);return t!==void 0&&Vo[t]!==void 0}function Rc(e,{groupBys:t,totals:n}){if(Vo[e]!==void 0){if(e==="scatter_chart")return t===0&&n<2?"no_x_axis":void 0;if(t===0)return"no_x_axis";if(e==="combo_chart")return n===2?void 0:"combo_totals";if(n===0)return"no_y_axis"}}function Qm(e){const t=e.trim();if(!t.startsWith("#(malloy)"))return!1;const n=jo(t.slice(9));let r="",o=0;for(const i of n)i==="{"||i==="["?o++:i==="}"||i==="]"?o=Math.max(0,o-1):o===0&&(r+=i==="="?" = ":i);const s=r.split(/\s+/);return s.some((i,a)=>i==="calculation"&&s[a-1]!=="=")}const ks=e=>e!==void 0&&(e.kind==="measure"||(e.annotations??[]).some(t=>Qm(t?.value??""))),Zm=e=>e.kind==="join"||e.type?.kind==="array_type";function Ic(e){const t=e.filter(ks).length;return{groupBys:e.filter(r=>!ks(r)&&!Zm(r)).length,totals:t}}const Ia=e=>Km.has(e.split("=")[0]);function Jm(e){if(!e)return;let t;try{t=JSON.parse(e)}catch{return}const n=t?.schema?.fields;if(!Array.isArray(n)||n.length===0)return;const r=(t.annotations??[]).map(c=>c?.value).filter(c=>typeof c=="string"),o=Dc(r),s=o&&Vo[o];if(!o||!s||r.some(c=>Ps(c).some(Ia))||n.some(c=>(c.annotations??[]).some(u=>Ps(u.value??"").some(Ia))))return;const{groupBys:a,totals:l}=Ic(n);switch(Rc(o,{groupBys:a,totals:l})){case"no_x_axis":return`This chart has no field for the x-axis. ${s} needs a group by, such as a date or a category. Show it as big numbers or a table instead, or add a group by to its query.`;case"combo_totals":return`${s} needs exactly two totals, the first drawn as bars and the second as a line. This one has ${l}.`;case"no_y_axis":return`This chart has no total for the y-axis. ${s} needs at least one aggregate, such as a count or a sum.`;default:return}}const eg=$e(f.jsx("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})),tg=$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"})),ng=$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"})),rg=$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")]),Ec=$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"})),og=$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"})),sg=$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 ig(e){const t=e.replace(/_+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function $c({chart:e}){const t={fontSize:16};switch(e){case"bar_chart":case"combo_chart":return f.jsx(eg,{sx:t});case"line_chart":case"sparkline":return f.jsx(og,{sx:t});case"scatter_chart":return f.jsx(rg,{sx:t});case"shape_map":case"segment_map":return f.jsx(tg,{sx:t});case"big_value":return f.jsx(ng,{sx:t});default:return f.jsx(sg,{sx:t})}}function ag({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,h=W.useId(),v=t.trim().toLowerCase(),d=W.useMemo(()=>e.map(P=>({...P,entries:P.entries.filter(T=>v===""||[T.name,T.title,P.label,P.detail??""].join(" ").toLowerCase().includes(v))})).filter(P=>P.entries.length>0),[e,v]),m=d.flatMap(P=>P.entries),g=W.useMemo(()=>new Map(e.flatMap(P=>P.entries).map((P,T)=>[P.key,`${h}-${T}`])),[e,h]),C=P=>g.get(P)??`${h}-none`,w=m.some(P=>P.key===r)?r:void 0,y=P=>{o(P),window.requestAnimationFrame(()=>window.document.getElementById(C(P))?.scrollIntoView({block:"nearest"}))},x=P=>{if(m.length===0)return;const T=m.findIndex(R=>R.key===w),I=T===-1?P===1?0:m.length-1:Math.min(m.length-1,Math.max(0,T+P));y(m[I].key)};return f.jsxs(H.Box,{sx:{display:"flex",flexDirection:"column",minHeight:0,flex:1},children:[f.jsx(H.Box,{sx:{p:1.5,pb:1},children:f.jsx(H.TextField,{size:"small",fullWidth:!0,inputRef:i,placeholder:"Search the model",value:t,disabled:c,onChange:P=>n(P.target.value),onKeyDown:P=>{if(P.key==="ArrowDown")P.preventDefault(),x(1);else if(P.key==="ArrowUp")P.preventDefault(),x(-1);else if(P.key==="Enter"){const T=w??m[0]?.key;if(T===void 0)return;P.preventDefault(),s(T)}},inputProps:{"aria-label":"Search the model",role:"combobox","aria-controls":h,"aria-expanded":!0,...w!==void 0?{"aria-activedescendant":C(w)}:{}},InputProps:{startAdornment:f.jsx(H.InputAdornment,{position:"start",children:f.jsx(Ec,{sx:{fontSize:18,color:"text.secondary"}})})}})}),f.jsxs(H.Box,{id:h,role:"listbox","aria-label":"From the model",sx:{overflowY:"auto",flex:1,minHeight:0,pb:1},children:[e.length===0&&a,e.length>0&&d.length===0&&f.jsxs(H.Typography,{variant:"body2",sx:{color:u.tileTitle,px:2,py:1},children:["No view matches “",t.trim(),"”."]}),d.map(P=>f.jsxs(H.Box,{role:"group","aria-label":P.ariaLabel??P.label,children:[f.jsxs(H.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(H.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(T=>{const I=T.key===r;return f.jsxs(H.Box,{id:C(T.key),role:"option","aria-selected":I,"aria-label":`${T.title} (${T.name})`,onClick:()=>{c||y(T.key)},onDoubleClick:()=>{c||s(T.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(H.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($c,{chart:T.chart})}),f.jsxs(H.Box,{sx:{minWidth:0},children:[f.jsx(H.Box,{sx:{...p.type.control,fontWeight:I?p.type.label.fontWeight:400,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:T.title}),f.jsx(H.Box,{sx:{...p.type.code,color:"text.secondary"},children:T.name})]})]},T.key)})]},P.key)),v===""&&l]})]})}const lg=new Set(["bar","line","chart","scatter_chart","combo"]),cg=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function ug(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":lg.has(e)?"container":"content"}function dg(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&cg.has(e)}function pg(e){return e==="dashboard"?3:2}function Oc(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function fg(e,t){const n=Oc(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const ti=400,hg=700,mg=700;function gg({renderAs:e,maxHeight:t,tableMaxHeight:n}){return e!=="table"||n===void 0?t:t===void 0?n:Math.min(t,n)}const yg=600,bg=800,Ac=400,Fc=2e3;function Lc(e,t){const n=t??Fc;return e===void 0?n:Math.min(e,n)}function Ts({sizing:e,contentHeight:t,maxHeight:n,fillHeight:r,firstPaintHeight:o}){if(e==="container"){const i=n??Ac;return r!==void 0&&r>0?Math.min(i,r):i}if(t===void 0||t<=0)return Lc(n,o);const s=n===void 0?t:Math.min(n,t);return r===void 0?s:Math.max(s,r)}const Nc="data-publisher-tight",jc="publisher-result-scroller";function Bc(e,t,n=1){return e===1&&t<=2&&n===1?void 0:e}function vg(e,t,n,r=1){const o={...e},s=Bc(t,n,r);return s===void 0?delete o.colspan:o.colspan=s,o}function xg(e,t){if(e==="linear")return{layout:"linear",columns:1,widths:!1,insertBetween:!0,tileMaxHeight:void 0,tableMaxHeight:mg};const n=t??pc;return{layout:"grid",columns:n,widths:n>1,insertBetween:!1,tileMaxHeight:ti,tableMaxHeight:void 0}}const Vc="document.malloy",_c=e=>e.slice(0,e.lastIndexOf("/")+1),ni=(e,t)=>new URL(e,`https://malloy.invalid/${_c(t)}`).pathname.slice(1);function zc(e,t){const n=_c(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 Wc(e,t,n,r=Vc,o=[n]){return e.sources.some(s=>s.base===t)?!0:e.imports.some(s=>s.kind==="names"?s.names.includes(t):o.includes(ni(s.from,r)))}function Sg(e,t,n,r=Vc,o=[n]){const{imports:s}=e;if(Wc(e,t,n,r,o))return s;const i=s.findIndex(a=>a.kind==="names"&&o.includes(ni(a.from,r)));return i<0?[...s,{kind:"names",names:[t],from:zc(n,r)}]:s.map((a,l)=>l===i&&a.kind==="names"?{...a,names:[...a.names,t]}:a)}const wg=$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"})),Cg=$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"})),Pg=600,Ea=()=>typeof IntersectionObserver>"u";function kg(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 Tg(e=Pg){const[t,n]=W.useState(Ea),r=W.useRef(t),o=W.useRef(null),s=W.useCallback(i=>{if(o.current?.disconnect(),o.current=null,!i||r.current||Ea())return;const a=i.getBoundingClientRect(),l=kg(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(h=>h.isIntersecting)&&(r.current=!0,u.disconnect(),n(!0))},{root:l,rootMargin:`${e}px 0px`});u.observe(i),o.current=u},[e]);return W.useEffect(()=>()=>o.current?.disconnect(),[]),W.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 Hc({summary:e,detail:t}){return f.jsxs(H.Alert,{severity:"error",sx:{"& .MuiAlert-message":{minWidth:0,flex:1}},children:[e!==void 0&&f.jsx(H.Box,{sx:{mb:.5},children:e}),f.jsx(H.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 Uc({error:e,context:t}){const n=e.data?.message||"Unknown error";return f.jsx(Hc,{summary:t,detail:n})}function Mg(e){const t=Dg(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 Dg(e){return e.type?.startsWith("filter<")?e.default?.match(/^f(['"])([\s\S]*)\1$/)?.[2]??e.default:e.default}function ri(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/[\u0000-\u001f]/g,t=>Rg[t]??Ig(t))}const Rg={"\n":"\\n","\r":"\\r"," ":"\\t","\b":"\\b","\f":"\\f"},Ig=e=>`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`;function Eg(e,t){if(e==null||e==="")return;const n=o=>`'${ri(o)}'`;switch(t===void 0?$g(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=$a(e);return o&&`@${o}`}case"timestamp":{const o=$a(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 $g(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 $a(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]}function Og(e,t=!1){return e==null?"null":t?e instanceof Date?`@${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:`@${e}`:typeof e=="string"?`'${ri(e)}'`:typeof e=="number"?String(e):typeof e=="boolean"?e?"true":"false":String(e)}const Ln="malloy-publisher.report-draft:",Nn={storage:()=>window.localStorage};function Ag(e){const{server:t,environmentName:n,packageName:r,versionId:o,path:s}=e;return`${t}|${n}/${r}@${o??""}/${s}`}function Fg(e){if(typeof e=="string"){to(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),h=p.indexOf("|");if(h===-1)continue;const[v,d]=[p.slice(0,h),p.slice(h+1)];if(t!==void 0&&v!==t||!d.startsWith(s))continue;const m=d.slice(s.length);(i!==void 0?m!==i:m.slice(m.indexOf("/")+1)!==o)||l.push(u)}for(const c of l)a.removeItem(c)}catch{}}function Lg(){try{const e=`${Ln}probe`;return Nn.storage().setItem(e,"1"),Nn.storage().removeItem(e),!0}catch{return!1}}function Ng(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 jg(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 Bg(e,t){try{return Nn.storage().setItem(Ln+e,JSON.stringify(t)),!0}catch{return!1}}function to(e){try{Nn.storage().removeItem(Ln+e)}catch{}}function cs(e,t){const n=e;for(const r of Object.keys(n))delete n[r];Object.assign(n,structuredClone(t))}function Vg(e,t,n){const[r,o]=W.useState(),[s,i]=W.useState(),[a,l]=W.useState(!1),c=W.useRef(void 0),u=W.useRef(void 0),p=W.useRef(!1),h=Ng(n),v=W.useRef(t);v.current=t;const d=W.useRef(!1);W.useEffect(()=>{if(e===void 0||d.current)return;d.current=!0;const x=jg(e);if(!x)return;const P=v.current;if(JSON.stringify(x.document)===JSON.stringify(P.document)){to(e);return}if(x.base!==h){c.current=x,o({savedAt:x.savedAt,stale:!0,pending:!0});return}P.update(T=>cs(T,x.document)),u.current=JSON.stringify(x.document),p.current=!0,o({savedAt:x.savedAt,stale:!1,pending:!1})},[e]);const{document:m,dirty:g}=t;W.useEffect(()=>{if(e===void 0||!d.current||c.current&&!g)return;if(c.current&&(c.current=void 0,o(void 0)),u.current!==void 0){const P=JSON.stringify(m);p.current?P===u.current&&(p.current=!1):P!==u.current&&(u.current=void 0,o(void 0))}if(!g){to(e),i(void 0),l(!1);return}const x=Date.now();Bg(e,{v:1,document:m,base:h,savedAt:x})?(i(x),l(!1)):(i(void 0),l(!0))},[e,m,g,h]);const C=W.useCallback(()=>{const x=c.current;x&&(c.current=void 0,v.current.update(P=>cs(P,x.document)),u.current=JSON.stringify(x.document),p.current=!0,o(P=>P&&{...P,pending:!1}))},[]),w=W.useCallback(()=>{c.current||(u.current=void 0,o(void 0))},[]),y=W.useCallback(()=>{if(c.current&&e!==void 0){c.current=void 0,to(e),o(void 0);return}const x=v.current;x.update(P=>cs(P,x.saved)),u.current=void 0,o(void 0)},[e]);return{keptAt:s,keeping:!a,restored:r,dismissRestored:w,discard:y,restoreOffered:C}}const Yc=(e,t)=>({...t,...e}),Gc={emit:()=>{},listening:!1};function go(e,t){return t?{listening:!0,emit:n=>{try{t(Yc(n,e))}catch{}}}:Gc}function _g(e,t){const n=W.useRef(t);n.current=t;const r=t!==void 0,{path:o,layout:s}=e;return W.useMemo(()=>go({path:o,...s?{layout:s}:{}},r?i=>n.current?.(i):void 0),[o,s,r])}const qc=W.createContext(Gc),oi=()=>W.useContext(qc);function Kc(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 no={exports:{}},zg=no.exports,Oa;function Wg(){return Oa||(Oa=1,(function(e,t){(function(n,r){e.exports=r()})(zg,(function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",u="week",p="month",h="quarter",v="year",d="date",m="Invalid Date",g=/^(\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"],k=D%100;return"["+D+(M[(k-20)%10]||M[k]||M[0])+"]"}},y=function(D,M,k){var F=String(D);return!F||F.length>=M?D:""+Array(M+1-F.length).join(k)+D},x={s:y,z:function(D){var M=-D.utcOffset(),k=Math.abs(M),F=Math.floor(k/60),L=k%60;return(M<=0?"+":"-")+y(F,2,"0")+":"+y(L,2,"0")},m:function D(M,k){if(M.date()<k.date())return-D(k,M);var F=12*(k.year()-M.year())+(k.month()-M.month()),L=M.clone().add(F,p),N=k-L<0,U=M.clone().add(F+(N?-1:1),p);return+(-(F+(k-L)/(N?L-U:U-L))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:p,y:v,w:u,d:c,D:d,h:l,m:a,s:i,ms:s,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},P="en",T={};T[P]=w;var I="$isDayjsObject",R=function(D){return D instanceof b||!(!D||!D[I])},A=function D(M,k,F){var L;if(!M)return P;if(typeof M=="string"){var N=M.toLowerCase();T[N]&&(L=N),k&&(T[N]=k,L=N);var U=M.split("-");if(!L&&U.length>1)return D(U[0])}else{var J=M.name;T[J]=M,L=J}return!F&&L&&(P=L),L||!F&&P},O=function(D,M){if(R(D))return D.clone();var k=typeof M=="object"?M:{};return k.date=D,k.args=arguments,new b(k)},$=x;$.l=A,$.i=R,$.w=function(D,M){return O(D,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var b=(function(){function D(k){this.$L=A(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[I]=!0}var M=D.prototype;return M.parse=function(k){this.$d=(function(F){var L=F.date,N=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 U=L.match(g);if(U){var J=U[2]-1||0,re=(U[7]||"0").substring(0,3);return N?new Date(Date.UTC(U[1],J,U[3]||1,U[4]||0,U[5]||0,U[6]||0,re)):new Date(U[1],J,U[3]||1,U[4]||0,U[5]||0,U[6]||0,re)}}return new Date(L)})(k),this.init()},M.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},M.$utils=function(){return $},M.isValid=function(){return this.$d.toString()!==m},M.isSame=function(k,F){var L=O(k);return this.startOf(F)<=L&&L<=this.endOf(F)},M.isAfter=function(k,F){return O(k)<this.startOf(F)},M.isBefore=function(k,F){return this.endOf(F)<O(k)},M.$g=function(k,F,L){return $.u(k)?this[F]:this.set(L,k)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(k,F){var L=this,N=!!$.u(F)||F,U=$.p(k),J=function(z,Z){var te=$.w(L.$u?Date.UTC(L.$y,Z,z):new Date(L.$y,Z,z),L);return N?te:te.endOf(c)},re=function(z,Z){return $.w(L.toDate()[z].apply(L.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(Z)),L)},le=this.$W,ie=this.$M,V=this.$D,Q="set"+(this.$u?"UTC":"");switch(U){case v:return N?J(1,0):J(31,11);case p:return N?J(1,ie):J(0,ie+1);case u:var G=this.$locale().weekStart||0,_=(le<G?le+7:le)-G;return J(N?V-_:V+(6-_),ie);case c:case d:return re(Q+"Hours",0);case l:return re(Q+"Minutes",1);case a:return re(Q+"Seconds",2);case i:return re(Q+"Milliseconds",3);default:return this.clone()}},M.endOf=function(k){return this.startOf(k,!1)},M.$set=function(k,F){var L,N=$.p(k),U="set"+(this.$u?"UTC":""),J=(L={},L[c]=U+"Date",L[d]=U+"Date",L[p]=U+"Month",L[v]=U+"FullYear",L[l]=U+"Hours",L[a]=U+"Minutes",L[i]=U+"Seconds",L[s]=U+"Milliseconds",L)[N],re=N===c?this.$D+(F-this.$W):F;if(N===p||N===v){var le=this.clone().set(d,1);le.$d[J](re),le.init(),this.$d=le.set(d,Math.min(this.$D,le.daysInMonth())).$d}else J&&this.$d[J](re);return this.init(),this},M.set=function(k,F){return this.clone().$set(k,F)},M.get=function(k){return this[$.p(k)]()},M.add=function(k,F){var L,N=this;k=Number(k);var U=$.p(F),J=function(ie){var V=O(N);return $.w(V.date(V.date()+Math.round(ie*k)),N)};if(U===p)return this.set(p,this.$M+k);if(U===v)return this.set(v,this.$y+k);if(U===c)return J(1);if(U===u)return J(7);var re=(L={},L[a]=r,L[l]=o,L[i]=n,L)[U]||1,le=this.$d.getTime()+k*re;return $.w(le,this)},M.subtract=function(k,F){return this.add(-1*k,F)},M.format=function(k){var F=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var N=k||"YYYY-MM-DDTHH:mm:ssZ",U=$.z(this),J=this.$H,re=this.$m,le=this.$M,ie=L.weekdays,V=L.months,Q=L.meridiem,G=function(Z,te,ee,B){return Z&&(Z[te]||Z(F,N))||ee[te].slice(0,B)},_=function(Z){return $.s(J%12||12,Z,"0")},z=Q||function(Z,te,ee){var B=Z<12?"AM":"PM";return ee?B.toLowerCase():B};return N.replace(C,(function(Z,te){return te||(function(ee){switch(ee){case"YY":return String(F.$y).slice(-2);case"YYYY":return $.s(F.$y,4,"0");case"M":return le+1;case"MM":return $.s(le+1,2,"0");case"MMM":return G(L.monthsShort,le,V,3);case"MMMM":return G(V,le);case"D":return F.$D;case"DD":return $.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return G(L.weekdaysMin,F.$W,ie,2);case"ddd":return G(L.weekdaysShort,F.$W,ie,3);case"dddd":return ie[F.$W];case"H":return String(J);case"HH":return $.s(J,2,"0");case"h":return _(1);case"hh":return _(2);case"a":return z(J,re,!0);case"A":return z(J,re,!1);case"m":return String(re);case"mm":return $.s(re,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 U}return null})(Z)||U.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(k,F,L){var N,U=this,J=$.p(F),re=O(k),le=(re.utcOffset()-this.utcOffset())*r,ie=this-re,V=function(){return $.m(U,re)};switch(J){case v:N=V()/12;break;case p:N=V();break;case h:N=V()/3;break;case u:N=(ie-le)/6048e5;break;case c:N=(ie-le)/864e5;break;case l:N=ie/o;break;case a:N=ie/r;break;case i:N=ie/n;break;default:N=ie}return L?N:$.a(N)},M.daysInMonth=function(){return this.endOf(p).$D},M.$locale=function(){return T[this.$L]},M.locale=function(k,F){if(!k)return this.$L;var L=this.clone(),N=A(k,F,!0);return N&&(L.$L=N),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=b.prototype;return O.prototype=E,[["$ms",s],["$s",i],["$m",a],["$H",l],["$W",c],["$M",p],["$y",v],["$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,b,O),D.$i=!0),O},O.locale=A,O.isDayjs=R,O.unix=function(D){return O(1e3*D)},O.en=T[P],O.Ls=T,O.p={},O}))})(no)),no.exports}var Hg=Wg();const Re=jt(Hg);var ro={exports:{}},Ug=ro.exports,Aa;function Yg(){return Aa||(Aa=1,(function(e,t){(function(n,r){e.exports=r()})(Ug,(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(m){var g={date:m,utc:!0,args:arguments};return new i(g)},l.utc=function(m){var g=a(this.toDate(),{locale:this.$L,utc:!0});return m?g.add(this.utcOffset(),n):g},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),c.call(this,m)};var u=l.init;l.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else u.call(this)};var p=l.utcOffset;l.utcOffset=function(m,g){var C=this.$utils().u;if(C(m))return this.$u?0:C(this.$offset)?p.call(this):this.$offset;if(typeof m=="string"&&(m=(function(P){P===void 0&&(P="");var T=P.match(r);if(!T)return null;var I=(""+T[0]).match(o)||["-",0,0],R=I[0],A=60*+I[1]+ +I[2];return A===0?0:R==="+"?A:-A})(m),m===null))return this;var w=Math.abs(m)<=16?60*m:m;if(w===0)return this.utc(g);var y=this.clone();if(g)return y.$offset=w,y.$u=!1,y;var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(y=this.local().add(w+x,n)).$offset=w,y.$x.$localOffset=x,y};var h=l.format;l.format=function(m){var g=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,g)},l.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*m},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var v=l.toDate;l.toDate=function(m){return m==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():v.call(this)};var d=l.diff;l.diff=function(m,g,C){if(m&&this.$u===m.$u)return d.call(this,m,g,C);var w=this.local(),y=a(m).local();return d.call(w,y,g,C)}}}))})(ro)),ro.exports}var Gg=Yg();const si=jt(Gg);Re.extend(si);function Gt(e){return(e??"").startsWith("filter<")}function qg(e){const{parsed:t}=tt.BooleanFilterExpression.parse(e);if(!(!t||t.not))return t.operator==="true"||t.operator==="false"?t.operator:void 0}function Kt(e){const t=/^filter<(.+)>$/.exec(e??"");return t?t[1]:void 0}function ii(e){const t=e.filter(n=>n.trim()!=="");return t.length===0?"":tt.StringFilterExpression.unparse({operator:"=",values:[...t]})}function Xc(e){if(e.trim()==="")return[];const{parsed:t}=tt.StringFilterExpression.parse(e);return Zc(t)?t.values:[e]}function Qc(e){return e===void 0||e.trim()===""?!0:Zc(tt.StringFilterExpression.parse(e).parsed)}function Zc(e){return e!==null&&tt.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function Kg(e){return tt.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function Jc(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 Xg(e,t){return tt.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function eu(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 Qg(e){const t=wr.find(n=>n.key===e);return t?tt.TemporalFilterExpression.unparse(t.clause):void 0}function tu(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 Zg=/^\d{4}-\d{2}-\d{2}$/;function Jg(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 nu(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=Fa(n.fromMoment),o=Fa(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 Fa(e){return e.moment==="literal"&&Zg.test(e.literal)?e.literal:void 0}const ey="self";function ru(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(La)).filter(La):[]}function ou(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function su(e){return e.tag?.tag("drill")?.text("given")??e.name}function _o(e){if(typeof e=="string"){const t=ii([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 iu(e){return e instanceof Date?_o(e)??"":String(e)}function ty(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=ru(t);if(n.length===0)return;const r=_o(e.value);if(r!==void 0)return{to:n,given:su(t),value:r,rawValue:e.value,label:iu(e.value)}}function La(e){return typeof e=="string"&&e!==""}function au(e,t){if(t!==void 0&&!Gt(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 Kt(t)==="string"&&typeof e=="number"?Number.isFinite(e)?ii([String(e)]):void 0:Kt(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:_o(e)}function lu({declaredTypes:e,setGiven:t,documentName:n}){const r=oi(),o=W.useMemo(()=>{const l=new Map;for(const c of e.keys())l.has(c.toLowerCase())||l.set(c.toLowerCase(),c);return l},[e]),s=W.useCallback(l=>e.has(l)?l:o.get(l.toLowerCase()),[e,o]),i=W.useCallback(l=>s(l)!==void 0,[s]),a=W.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),h=au(c,p);if(h===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,h),r.emit({type:"report.drill",to:"self",outcome:"resolved"})},[e,n,s,t,r]);return{resolveGiven:s,canSelf:i,onSelf:a}}function cu(e,t){if(e!=null){if(e instanceof Date)return ai(e,t);if(!Array.isArray(e))return String(e)}}function ny(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 ry=/^(\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 uu(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 oy(e,t=!1){const n=uu(e);if(n==="")return;const r=ry.exec(n);if(!r)return;const[,o,s,i,a,l,c,u,p]=r,h={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)},v=Date.UTC(h.year,h.month-1,h.day,h.hour,h.minute,h.second,h.milli),d=new Date(v);if(!(d.getUTCFullYear()===h.year&&d.getUTCMonth()===h.month-1&&d.getUTCDate()===h.day&&d.getUTCHours()===h.hour&&d.getUTCMinutes()===h.minute&&d.getUTCSeconds()===h.second)||p!==void 0&&a===void 0)return;const g=sy(p);if(g===void 0)return;const C=new Date(v-g*6e4);if(!(t&&p!==void 0&&C.getUTCDate()!==h.day))return C}function sy(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 du(e){return!iy.has(e??"")}const iy=new Set(["boolean","number","date","timestamp","timestamptz"]);function pu(e,t){if(t===""&&!du(e))return null;if(Gt(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=uu(t);return oy(n,e==="date")??n}default:return t}}function oo(e,t){const n={};for(const[r,o]of e){const s=cu(o,t.get(r));s!==void 0&&(n[r]=s)}return n}function ai(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 li(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?ai(i,t.get(s)):i));return o}function ci(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?ai(i,void 0):i);return o}function Na(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,pu(t.get(r),o));return n}function us(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 ja(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function ay(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}const ly=1500;function Wr(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function fu({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:s}){const i=W.useMemo(()=>Na(t??{},e),[e,JSON.stringify(t)]),a=W.useRef(null),l=W.useRef([]),c=W.useRef(0),u=W.useRef({documentKey:o,params:n}),p=k=>k!==null&&ay(n??{},k,e),h=Date.now();l.current=l.current.filter(k=>h-k.at<ly);const d=(a.current===null?l.current.map(k=>k.params):[...l.current.map(k=>k.params),a.current]).findIndex(p);u.current.documentKey!==o&&(l.current=[]),(u.current.documentKey!==o||!Wr(n??{},u.current.params??{})&&d<0)&&(u.current={documentKey:o,params:n}),d>0&&(l.current=l.current.slice(d));const m=u.current.params,g=JSON.stringify(t),C=JSON.stringify(m),w=W.useMemo(()=>Na({...t??{},...m??{}},e),[e,g,C]),y=W.useMemo(()=>JSON.stringify([o??null,ja(t),ja(m)]),[o,g,C]),[x,P]=W.useState(null),T=x?.key===y?x:null;W.useEffect(()=>{x!==null&&x.key!==y&&P(null)},[x,y]);const I=W.useMemo(()=>us(T?.draft??w,e),[T,w,e]),R=W.useMemo(()=>us(T?.applied??w,e),[T,w,e]),A=W.useCallback(k=>k?.key===y?k:{key:y,draft:w,applied:w},[y,w]),O=W.useMemo(()=>oo(R,e),[R,e]);a.current===null&&(a.current=O,c.current=Date.now()),W.useEffect(()=>{r&&(Wr(a.current??{},O)||(a.current!==null&&(l.current=[...l.current.slice(-31),{params:a.current,at:c.current}]),a.current=O,c.current=Date.now(),r(O)))},[O,r]);const $=W.useCallback((k,F)=>{P(L=>{const N=A(L),U=new Map(N.draft);return F===null?U.delete(k):U.set(k,F),{key:N.key,draft:U,applied:s?U:N.applied}})},[s,A]),b=W.useCallback(()=>{P(k=>({key:A(k).key,draft:i,applied:i}))},[A,i]),E=W.useCallback(()=>{P(k=>{const F=A(k);return{key:F.key,draft:F.draft,applied:F.draft}})},[A]),D=W.useMemo(()=>{if(s)return!1;if(I.size!==R.size)return!0;for(const[k,F]of I){const L=R.get(k);if(F instanceof Date&&L instanceof Date){if(F.getTime()!==L.getTime())return!0}else if(Array.isArray(F)&&Array.isArray(L)){if(String(F)!==String(L))return!0}else if(F!==L)return!0}return!1},[s,I,R]),M=W.useMemo(()=>{const k=oo(us(i,e),e);return Wr(oo(I,e),k)&&Wr(O,k)},[i,I,O,e]);return{draft:I,applied:R,setGiven:$,reset:b,apply:E,pending:D,atStart:M}}const hu="You don't have access to this data";function cy(e){return(e??[]).filter(t=>t.kind==="definition"&&!t.restricted).map(t=>t.text??"").join(`
17
17
 
18
18
  `)}function ui(e,t){return e===""?t:`${e}
19
19
 
20
- ${t}`}function ay(e){return e?.status===403}const un=1e3,di=200;function hu(e){const t=e.split(".");return t[t.length-1]}function ly(e,t,n){const r=(n===void 0?un:di)+1;return`run: ${e} -> {
20
+ ${t}`}function uy(e){return e?.status===403}const un=1e3,di=200;function mu(e){const t=e.split(".");return t[t.length-1]}function dy(e,t,n){const r=(n===void 0?un:di)+1;return`run: ${e} -> {
21
21
  group_by: ${t}
22
- `+(n===void 0?"":` where: ${cy(t,n)}
23
- `)+` order_by: ${hu(t)} asc
22
+ `+(n===void 0?"":` where: ${py(t,n)}
23
+ `)+` order_by: ${mu(t)} asc
24
24
  limit: ${r}
25
- }`}function cy(e,t){return`strpos(lower(${e}::string), ${uy(t.toLowerCase())}) > 0`}function uy(e){return`'${e.replace(/[\u0000-\u001f\u007f]/g,"").replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}function dy(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=ci(li(t.values,t.declaredTypes,n),py(t),n);return Object.keys(r).length>0?r:void 0}function py(e){if(e.host)return Object.fromEntries(Object.entries(e.host).filter(([t])=>!e.declaredTypes.has(t)))}function mu(e,t,n,r,o,s,i){const{apiClients:a}=Se.useServer(),l=W.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 y=dy(w,s),x=w.suggest??{},P=[e,t,o,n,w.name,x.query,x.source,x.dimension,y===void 0?null:JSON.stringify(y),...i===void 0?[]:[i]];return{spec:w,identity:P,run:async(I,R)=>{const A=x.query!==void 0,O=await a.models.executeQueryModel(e,t,n,A&&i===void 0?{queryName:x.query,compactJson:!0,versionId:o,givens:y}:{query:ui(i??"",A?`run: ${x.query}`:ly(x.source,x.dimension,I)),compactJson:!0,versionId:o,givens:y},void 0,{signal:R});return fy(O.data.result,x.dimension===void 0?void 0:hu(x.dimension),A?{limit:un,cutOffAt:un}:{limit:I===void 0?un:di})},searchable:x.query===void 0}}),u=Hn.useQueries({queries:c.map(({identity:w,run:y})=>({queryKey:["givenSuggest",...w],enabled:n!==void 0,staleTime:300*1e3,refetchOnWindowFocus:!1,queryFn:({signal:x})=>y(void 0,x)}))}),p=W.useMemo(()=>{const w=new Map;return l.forEach((y,x)=>{const P=u[x]?.data;y.name&&P&&w.set(y.name,P.values)}),w},[l,JSON.stringify(u.map(w=>w.data))]),h=W.useMemo(()=>{const w=new Set;return l.forEach((y,x)=>{y.name&&u[x]?.isError&&w.add(y.name)}),w},[l,u.map(w=>w.isError).join("|")]),v=u.map(w=>!!w.data?.truncated).join("|"),d=W.useMemo(()=>{const w=new Set;return l.forEach((y,x)=>{y.name&&u[x]?.data?.truncated&&w.add(y.name)}),w},[l,v]),m=JSON.stringify(c.map(w=>w.identity)),g=W.useRef(c);g.current=c;const C=W.useMemo(()=>{const w=new Map;return c.forEach(({spec:y,identity:x,searchable:P},T)=>{!y.name||!P||!d.has(y.name)||w.set(y.name,{key:["givenSuggestSearch",...x],run:(I,R)=>g.current[T].run(I,R)})}),w},[m,d]);return{options:p,isLoading:u.some(w=>w.isLoading),failed:h,truncated:d,search:C}}function fy(e,t,{limit:n,cutOffAt:r}){const o=hy(e);return{values:my(o.slice(0,n),t),truncated:r===void 0?o.length>n:o.length>=r}}function hy(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 my(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 gy({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:h,hostGivens:v}){const d=W.useMemo(()=>new Map(e.filter(R=>R.name!==void 0).map(R=>[R.name,R.type])),[e]),m=W.useCallback(R=>{t&&o?.(R,Array.from(d.keys()))},[t,o,d]),g=pu({declaredTypes:d,startingValues:n,params:r,onParamsChange:t?m:void 0,documentKey:s,autorun:i}),{options:C,isLoading:w,failed:y,truncated:x,search:P}=mu(a,l,c,e,u,{values:g.applied,declaredTypes:d,...v?{host:v}:{}},h),{canSelf:T,onSelf:I}=au({declaredTypes:d,setGiven:g.setGiven,documentName:p});return{...g,declaredTypes:d,options:C,optionsLoading:w,optionsFailed:y,optionsTruncated:x,optionSearch:P,canSelf:T,onSelf:I,panel:{givens:e,values:g.draft,onChange:g.setGiven,onReset:g.reset,canReset:!g.atStart,options:C,optionsLoading:w,optionsFailed:y,optionsTruncated:x,optionSearch:P,apply:i?void 0:{onApply:g.apply,pending:g.pending}}}}const yy=$e(f.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(null,arguments)}var so={exports:{}},by=so.exports,Ba;function vy(){return Ba||(Ba=1,(function(e,t){(function(n,r){e.exports=r()})(by,(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 h=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),v=this.diff(h,n,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(so)),so.exports}var xy=vy();const Sy=jt(xy);var io={exports:{}},wy=io.exports,Va;function Cy(){return Va||(Va=1,(function(e,t){(function(n,r){e.exports=r()})(wy,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},c=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(C){this[g]=+C}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(C){if(!C||C==="Z")return 0;var w=C.match(/([+-]|\d\d)/g),y=60*w[1]+(+w[2]||0);return y===0?0:w[0]==="+"?-y:y})(g)}],h=function(g){var C=l[g];return C&&(C.indexOf?C:C.s.concat(C.f))},v=function(g,C){var w,y=l.meridiem;if(y){for(var x=1;x<=24;x+=1)if(g.indexOf(y(x,0,C))>-1){w=x>12;break}}else w=g===(C?"pm":"PM");return w},d={A:[a,function(g){this.afternoon=v(g,!1)}],a:[a,function(g){this.afternoon=v(g,!0)}],Q:[o,function(g){this.month=3*(g-1)+1}],S:[o,function(g){this.milliseconds=100*+g}],SS:[s,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[s,u("day")],Do:[a,function(g){var C=l.ordinal,w=g.match(/\d+/);if(this.day=w[0],C)for(var y=1;y<=31;y+=1)C(y).replace(/\[|\]/g,"")===g&&(this.day=y)}],w:[i,u("week")],ww:[s,u("week")],M:[i,u("month")],MM:[s,u("month")],MMM:[a,function(g){var C=h("months"),w=(h("monthsShort")||C.map((function(y){return y.slice(0,3)}))).indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[a,function(g){var C=h("months").indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(g){this.year=c(g)}],YYYY:[/\d{4}/,u("year")],Z:p,ZZ:p};function m(g){var C,w;C=g,w=l&&l.formats;for(var y=(g=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(O,$,b){var E=b&&b.toUpperCase();return $||w[b]||n[b]||w[E].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,M,k){return M||k.slice(1)}))}))).match(r),x=y.length,P=0;P<x;P+=1){var T=y[P],I=d[T],R=I&&I[0],A=I&&I[1];y[P]=A?{regex:R,parser:A}:T.replace(/^\[|\]$/g,"")}return function(O){for(var $={},b=0,E=0;b<x;b+=1){var D=y[b];if(typeof D=="string")E+=D.length;else{var M=D.regex,k=D.parser,F=O.slice(E),L=M.exec(F)[0];k.call($,L),O=O.replace(L,"")}}return(function(N){var U=N.afternoon;if(U!==void 0){var J=N.hours;U?J<12&&(N.hours+=12):J===12&&(N.hours=0),delete N.afternoon}})($),$}}return function(g,C,w){w.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var y=C.prototype,x=y.parse;y.parse=function(P){var T=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,b=O||$,E=R[2];$&&(E=R[2]),l=this.$locale(),!O&&E&&(l=w.Ls[E]),this.$d=(function(F,L,N,U){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*F);var J=m(L)(F),re=J.year,le=J.month,ie=J.day,V=J.hours,Q=J.minutes,G=J.seconds,_=J.milliseconds,z=J.zone,Z=J.week,te=new Date,ee=ie||(re||le?1:te.getDate()),B=re||te.getFullYear(),X=0;re&&!le||(X=le>0?le-1:te.getMonth());var oe,ne=V||0,ce=Q||0,se=G||0,fe=_||0;return z?new Date(Date.UTC(B,X,ee,ne,ce,se,fe+60*z.offset*1e3)):N?new Date(Date.UTC(B,X,ee,ne,ce,se,fe)):(oe=new Date(B,X,ee,ne,ce,se,fe),Z&&(oe=U(oe).week(Z).toDate()),oe)}catch{return new Date("")}})(T,A,I,w),this.init(),E&&E!==!0&&(this.$L=this.locale(E).$L),b&&T!=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 k=w.apply(this,R);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}M===D&&(this.$d=new Date(""))}else x.call(this,P)}}}))})(io)),io.exports}var Py=Cy();const ky=jt(Py);var ao={exports:{}},Ty=ao.exports,_a;function My(){return _a||(_a=1,(function(e,t){(function(n,r){e.exports=r()})(Ty,(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,h){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(v,d,m){var g=m&&m.toUpperCase();return d||h[m]||n[m]||h[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,w,y){return w||y.slice(1)}))}))})(l,c===void 0?{}:c);return a.call(this,u)}}}))})(ao)),ao.exports}var Dy=My();const Ry=jt(Dy);var lo={exports:{}},Iy=lo.exports,za;function Ey(){return za||(za=1,(function(e,t){(function(n,r){e.exports=r()})(Iy,(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]==="(",h=l[1]===")";return(p?this.isAfter(c,a):!this.isBefore(c,a))&&(h?this.isBefore(u,a):!this.isAfter(u,a))||(p?this.isBefore(c,a):!this.isAfter(c,a))&&(h?this.isAfter(u,a):!this.isBefore(u,a))}}}))})(lo)),lo.exports}var $y=Ey();const Oy=jt($y);var co={exports:{}},Ay=co.exports,Wa;function Fy(){return Wa||(Wa=1,(function(e,t){(function(n,r){e.exports=r()})(Ay,(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)}}}))})(co)),co.exports}var Ly=Fy();const Ny=jt(Ly);Re.extend(Ry);Re.extend(Sy);Re.extend(Oy);Re.extend(Ny);const jy={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"},By={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"},ds=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
25
+ }`}function py(e,t){return`strpos(lower(${e}::string), ${fy(t.toLowerCase())}) > 0`}function fy(e){return`'${e.replace(/[\u0000-\u001f\u007f]/g,"").replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}function hy(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=ci(li(t.values,t.declaredTypes,n),my(t),n);return Object.keys(r).length>0?r:void 0}function my(e){if(e.host)return Object.fromEntries(Object.entries(e.host).filter(([t])=>!e.declaredTypes.has(t)))}function gu(e,t,n,r,o,s,i){const{apiClients:a}=Se.useServer(),l=W.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 y=hy(w,s),x=w.suggest??{},P=[e,t,o,n,w.name,x.query,x.source,x.dimension,y===void 0?null:JSON.stringify(y),...i===void 0?[]:[i]];return{spec:w,identity:P,run:async(I,R)=>{const A=x.query!==void 0,O=await a.models.executeQueryModel(e,t,n,A&&i===void 0?{queryName:x.query,compactJson:!0,versionId:o,givens:y}:{query:ui(i??"",A?`run: ${x.query}`:dy(x.source,x.dimension,I)),compactJson:!0,versionId:o,givens:y},void 0,{signal:R});return gy(O.data.result,x.dimension===void 0?void 0:mu(x.dimension),A?{limit:un,cutOffAt:un}:{limit:I===void 0?un:di})},searchable:x.query===void 0}}),u=Hn.useQueries({queries:c.map(({identity:w,run:y})=>({queryKey:["givenSuggest",...w],enabled:n!==void 0,staleTime:300*1e3,refetchOnWindowFocus:!1,queryFn:({signal:x})=>y(void 0,x)}))}),p=W.useMemo(()=>{const w=new Map;return l.forEach((y,x)=>{const P=u[x]?.data;y.name&&P&&w.set(y.name,P.values)}),w},[l,JSON.stringify(u.map(w=>w.data))]),h=W.useMemo(()=>{const w=new Set;return l.forEach((y,x)=>{y.name&&u[x]?.isError&&w.add(y.name)}),w},[l,u.map(w=>w.isError).join("|")]),v=u.map(w=>!!w.data?.truncated).join("|"),d=W.useMemo(()=>{const w=new Set;return l.forEach((y,x)=>{y.name&&u[x]?.data?.truncated&&w.add(y.name)}),w},[l,v]),m=JSON.stringify(c.map(w=>w.identity)),g=W.useRef(c);g.current=c;const C=W.useMemo(()=>{const w=new Map;return c.forEach(({spec:y,identity:x,searchable:P},T)=>{!y.name||!P||!d.has(y.name)||w.set(y.name,{key:["givenSuggestSearch",...x],run:(I,R)=>g.current[T].run(I,R)})}),w},[m,d]);return{options:p,isLoading:u.some(w=>w.isLoading),failed:h,truncated:d,search:C}}function gy(e,t,{limit:n,cutOffAt:r}){const o=yy(e);return{values:by(o.slice(0,n),t),truncated:r===void 0?o.length>n:o.length>=r}}function yy(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 by(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 vy({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:h,hostGivens:v}){const d=W.useMemo(()=>new Map(e.filter(R=>R.name!==void 0).map(R=>[R.name,R.type])),[e]),m=W.useCallback(R=>{t&&o?.(R,Array.from(d.keys()))},[t,o,d]),g=fu({declaredTypes:d,startingValues:n,params:r,onParamsChange:t?m:void 0,documentKey:s,autorun:i}),{options:C,isLoading:w,failed:y,truncated:x,search:P}=gu(a,l,c,e,u,{values:g.applied,declaredTypes:d,...v?{host:v}:{}},h),{canSelf:T,onSelf:I}=lu({declaredTypes:d,setGiven:g.setGiven,documentName:p});return{...g,declaredTypes:d,options:C,optionsLoading:w,optionsFailed:y,optionsTruncated:x,optionSearch:P,canSelf:T,onSelf:I,panel:{givens:e,values:g.draft,onChange:g.setGiven,onReset:g.reset,canReset:!g.atStart,options:C,optionsLoading:w,optionsFailed:y,optionsTruncated:x,optionSearch:P,apply:i?void 0:{onApply:g.apply,pending:g.pending}}}}const xy=$e(f.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(null,arguments)}var so={exports:{}},Sy=so.exports,Ba;function wy(){return Ba||(Ba=1,(function(e,t){(function(n,r){e.exports=r()})(Sy,(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 h=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),v=this.diff(h,n,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(so)),so.exports}var Cy=wy();const Py=jt(Cy);var io={exports:{}},ky=io.exports,Va;function Ty(){return Va||(Va=1,(function(e,t){(function(n,r){e.exports=r()})(ky,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},c=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(C){this[g]=+C}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(C){if(!C||C==="Z")return 0;var w=C.match(/([+-]|\d\d)/g),y=60*w[1]+(+w[2]||0);return y===0?0:w[0]==="+"?-y:y})(g)}],h=function(g){var C=l[g];return C&&(C.indexOf?C:C.s.concat(C.f))},v=function(g,C){var w,y=l.meridiem;if(y){for(var x=1;x<=24;x+=1)if(g.indexOf(y(x,0,C))>-1){w=x>12;break}}else w=g===(C?"pm":"PM");return w},d={A:[a,function(g){this.afternoon=v(g,!1)}],a:[a,function(g){this.afternoon=v(g,!0)}],Q:[o,function(g){this.month=3*(g-1)+1}],S:[o,function(g){this.milliseconds=100*+g}],SS:[s,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[s,u("day")],Do:[a,function(g){var C=l.ordinal,w=g.match(/\d+/);if(this.day=w[0],C)for(var y=1;y<=31;y+=1)C(y).replace(/\[|\]/g,"")===g&&(this.day=y)}],w:[i,u("week")],ww:[s,u("week")],M:[i,u("month")],MM:[s,u("month")],MMM:[a,function(g){var C=h("months"),w=(h("monthsShort")||C.map((function(y){return y.slice(0,3)}))).indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[a,function(g){var C=h("months").indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(g){this.year=c(g)}],YYYY:[/\d{4}/,u("year")],Z:p,ZZ:p};function m(g){var C,w;C=g,w=l&&l.formats;for(var y=(g=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(O,$,b){var E=b&&b.toUpperCase();return $||w[b]||n[b]||w[E].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,M,k){return M||k.slice(1)}))}))).match(r),x=y.length,P=0;P<x;P+=1){var T=y[P],I=d[T],R=I&&I[0],A=I&&I[1];y[P]=A?{regex:R,parser:A}:T.replace(/^\[|\]$/g,"")}return function(O){for(var $={},b=0,E=0;b<x;b+=1){var D=y[b];if(typeof D=="string")E+=D.length;else{var M=D.regex,k=D.parser,F=O.slice(E),L=M.exec(F)[0];k.call($,L),O=O.replace(L,"")}}return(function(N){var U=N.afternoon;if(U!==void 0){var J=N.hours;U?J<12&&(N.hours+=12):J===12&&(N.hours=0),delete N.afternoon}})($),$}}return function(g,C,w){w.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var y=C.prototype,x=y.parse;y.parse=function(P){var T=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,b=O||$,E=R[2];$&&(E=R[2]),l=this.$locale(),!O&&E&&(l=w.Ls[E]),this.$d=(function(F,L,N,U){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*F);var J=m(L)(F),re=J.year,le=J.month,ie=J.day,V=J.hours,Q=J.minutes,G=J.seconds,_=J.milliseconds,z=J.zone,Z=J.week,te=new Date,ee=ie||(re||le?1:te.getDate()),B=re||te.getFullYear(),X=0;re&&!le||(X=le>0?le-1:te.getMonth());var oe,ne=V||0,ce=Q||0,se=G||0,fe=_||0;return z?new Date(Date.UTC(B,X,ee,ne,ce,se,fe+60*z.offset*1e3)):N?new Date(Date.UTC(B,X,ee,ne,ce,se,fe)):(oe=new Date(B,X,ee,ne,ce,se,fe),Z&&(oe=U(oe).week(Z).toDate()),oe)}catch{return new Date("")}})(T,A,I,w),this.init(),E&&E!==!0&&(this.$L=this.locale(E).$L),b&&T!=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 k=w.apply(this,R);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}M===D&&(this.$d=new Date(""))}else x.call(this,P)}}}))})(io)),io.exports}var My=Ty();const Dy=jt(My);var ao={exports:{}},Ry=ao.exports,_a;function Iy(){return _a||(_a=1,(function(e,t){(function(n,r){e.exports=r()})(Ry,(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,h){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(v,d,m){var g=m&&m.toUpperCase();return d||h[m]||n[m]||h[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,w,y){return w||y.slice(1)}))}))})(l,c===void 0?{}:c);return a.call(this,u)}}}))})(ao)),ao.exports}var Ey=Iy();const $y=jt(Ey);var lo={exports:{}},Oy=lo.exports,za;function Ay(){return za||(za=1,(function(e,t){(function(n,r){e.exports=r()})(Oy,(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]==="(",h=l[1]===")";return(p?this.isAfter(c,a):!this.isBefore(c,a))&&(h?this.isBefore(u,a):!this.isAfter(u,a))||(p?this.isBefore(c,a):!this.isAfter(c,a))&&(h?this.isAfter(u,a):!this.isBefore(u,a))}}}))})(lo)),lo.exports}var Fy=Ay();const Ly=jt(Fy);var co={exports:{}},Ny=co.exports,Wa;function jy(){return Wa||(Wa=1,(function(e,t){(function(n,r){e.exports=r()})(Ny,(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)}}}))})(co)),co.exports}var By=jy();const Vy=jt(By);Re.extend($y);Re.extend(Py);Re.extend(Ly);Re.extend(Vy);const _y={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"},zy={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"},ds=["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
26
  `),Ha=["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
- `),Vy=(e,t)=>t?(...n)=>e(...n).locale(t):e;class gu{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=jy,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(ds);return Re.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(ds);if(!this.hasTimezonePlugin())throw new Error(Ha);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(ds);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(Ha)}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=Vy(Re,t),this.locale=t,this.formats=j({},By,n),Re.extend(ky)}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 yu(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 _y({props:e,name:t,defaultTheme:n,themeId:r}){let o=Mh(n);return o=o[r]||o,yu({theme:o,name:t,props:e})}function zy(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 Wy={...S},bu=Wy.useSyncExternalStore;function Hy(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 bu(l,a,i)}function vu(e={}){const{themeId:t}=e;return function(r,o={}){let s=rc();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}=yu({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
- `)),(bu!==void 0?Hy:zy)(p,a,l,c,u)}}vu();const xu=vu({themeId:Un});function Fe({props:e,name:t}){return _y({props:e,name:t,defaultTheme:Lo,themeId:Un})}const Su=Y.oneOfType([Y.func,Y.object]),Ua={};function wu(e,t){const n=S.useRef(Ua);return n.current===Ua&&(n.current=e(t)),n}const Uy=[];function Yy(e){S.useEffect(e,Uy)}class pi{static create(){return new pi}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 fi(){const e=wu(pi.create).current;return Yy(e.disposeEffect),e}function Ya(e){try{return e.matches(":focus-visible")}catch{}return!1}function Cu(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Gy={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 Pu(e,t,n){return e===void 0||jn(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function hi(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 Ga(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 ku(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const v=de(n?.className,s,o?.className,r?.className),d={...n?.style,...o?.style,...r?.style},m={...n,...o,...r};return v.length>0&&(m.className=v),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:void 0}}const i=hi({...o,...r}),a=Ga(r),l=Ga(o),c=t(i),u=de(c?.className,n?.className,s,o?.className,r?.className),p={...c?.style,...n?.style,...o?.style,...r?.style},h={...c,...n,...l,...a};return u.length>0&&(h.className=u),Object.keys(p).length>0&&(h.style=p),{props:h,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}=ku({...s,externalSlotProps:i}),c=ke(l,i?.ref,e.additionalProps?.ref);return Pu(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)),qy=({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}},yo=(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=yo(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},Ky=(e,t)=>t==null||!e.isValid(t)?null:t,lt=(e,t,n)=>t==null||!e.isValid(t)?n:t,Xy=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),mi=(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},Tu=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Qy=["year","month","day"],qa=e=>Qy.includes(e),gi=(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},Zy=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Jy=["hours","minutes","seconds"],eb=e=>Jy.includes(e),Ka=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),tb=(e,t)=>(n,r)=>e?t.isAfter(n,r):Ka(n,t)>Ka(r,t),Pt={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},nb=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},rb=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let s=o?o():Jn(t,n,Tu(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=tb(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=Jn(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:yo(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=Jn(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:yo(t,s,e.maxTime))),s},Mu=(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}},ob=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Wo=(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))},Du=(e,t,n,r)=>{switch(n){case"month":return mi(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Wo(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[]}},Xa="s",sb=["0","1","2","3","4","5","6","7","8","9"],ib=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Xa)==="0"?sb:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),Xa))},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("")},yi=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Qa=(e,t)=>{const n=pn(e,t);return n!==" "&&!Number.isNaN(Number(n))},Ru=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},Iu=(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=Ru(s,o.maxLength)),yi(s,r)},ab=(e,t,n,r,o,s,i,a)=>{const l=ob(r),c=r==="Home",u=r==="End",p=n.value===""||c||u,h=()=>{const d=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),m=w=>Iu(e,w,d,s,n),g=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*g;return C%g!==0&&((l<0||c)&&(C+=g-(g+C)%g),(l>0||u)&&(C-=C%g)),C>d.maximum?m(d.minimum+(C-d.maximum-1)%(d.maximum-d.minimum+1)):C<d.minimum?m(d.maximum-(d.minimum-C-1)%(d.maximum-d.minimum+1)):m(C)},v=()=>{const d=Du(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"?h():v()},bi=(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},Za=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),lb=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Eu=(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")}},cb=(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(bi(c,"non-input",n)))}const i=o.join(" "),a=s.join(" ");return e.parse(a,i)},ub=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),db=(e,t,n)=>{const o=e.map(s=>{const i=bi(s,n?"input-rtl":"input-ltr",t);return`${s.startSeparator}${i}${s.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},pb=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),s=e.endOfDay(r),{maxDaysInMonth:i,longestMonth:a}=mi(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:lb(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=Wo(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})}},fb=(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=Wo(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}},Ja={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},el=(e,t,n,r,o)=>[...n].sort((s,i)=>Ja[s.type]-Ja[i.type]).reduce((s,i)=>!o||i.modified?fb(e,i,t,s):s,r),hb=()=>navigator.userAgent.toLowerCase().includes("android"),mb=(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],h=u===e.length-1?null:r[u+1];n[c]={leftIndex:p,rightIndex:h}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Ms=(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},gb=(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}},yb=(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}},bb=["value","referenceDate"],Rt={emptyValue:null,getTodayValue:Tu,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ve(e,bb);return t!=null&&r.utils.isValid(t)?t:n??rb(r)},cleanValue:Ky,areValuesEqual:Xy,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)},vb={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:ub,getV6InputValueFromSections:db,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)},xb=["localeText"],Ds=S.createContext(null),vi=function(t){const{localeText:n}=t,r=ve(t,xb),{utils:o,localeText:s}=S.useContext(Ds)??{utils:void 0,localeText:void 0},i=Fe({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:p,localeText:h}=i,v=S.useMemo(()=>j({},h,s,n),[h,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]),m=S.useMemo(()=>d?{minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}:null,[d]),g=S.useMemo(()=>({utils:d,defaultDates:m,localeText:v}),[m,d,v]);return f.jsx(Ds.Provider,{value:g,children:a})},Sb=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:j({},e)}}}}),$u=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)}},Ou={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"},wb=Ou;Sb(Ou);const yn=()=>{const e=S.useContext(Ds);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(`
27
+ `),Wy=(e,t)=>t?(...n)=>e(...n).locale(t):e;class yu{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=_y,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(ds);return Re.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(ds);if(!this.hasTimezonePlugin())throw new Error(Ha);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(ds);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(Ha)}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=Wy(Re,t),this.locale=t,this.formats=j({},zy,n),Re.extend(Dy)}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 bu(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 Hy({props:e,name:t,defaultTheme:n,themeId:r}){let o=Dh(n);return o=o[r]||o,bu({theme:o,name:t,props:e})}function Uy(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 Yy={...S},vu=Yy.useSyncExternalStore;function Gy(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 vu(l,a,i)}function xu(e={}){const{themeId:t}=e;return function(r,o={}){let s=rc();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}=bu({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
+ `)),(vu!==void 0?Gy:Uy)(p,a,l,c,u)}}xu();const Su=xu({themeId:Un});function Fe({props:e,name:t}){return Hy({props:e,name:t,defaultTheme:Lo,themeId:Un})}const wu=Y.oneOfType([Y.func,Y.object]),Ua={};function Cu(e,t){const n=S.useRef(Ua);return n.current===Ua&&(n.current=e(t)),n}const qy=[];function Ky(e){S.useEffect(e,qy)}class pi{static create(){return new pi}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 fi(){const e=Cu(pi.create).current;return Ky(e.disposeEffect),e}function Ya(e){try{return e.matches(":focus-visible")}catch{}return!1}function Pu(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Xy={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 ku(e,t,n){return e===void 0||jn(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function hi(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 Ga(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 Tu(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const v=de(n?.className,s,o?.className,r?.className),d={...n?.style,...o?.style,...r?.style},m={...n,...o,...r};return v.length>0&&(m.className=v),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:void 0}}const i=hi({...o,...r}),a=Ga(r),l=Ga(o),c=t(i),u=de(c?.className,n?.className,s,o?.className,r?.className),p={...c?.style,...n?.style,...o?.style,...r?.style},h={...c,...n,...l,...a};return u.length>0&&(h.className=u),Object.keys(p).length>0&&(h.style=p),{props:h,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}=Tu({...s,externalSlotProps:i}),c=ke(l,i?.ref,e.additionalProps?.ref);return ku(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)),Qy=({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}},yo=(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=yo(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},Zy=(e,t)=>t==null||!e.isValid(t)?null:t,lt=(e,t,n)=>t==null||!e.isValid(t)?n:t,Jy=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),mi=(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},Mu=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),eb=["year","month","day"],qa=e=>eb.includes(e),gi=(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},tb=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},nb=["hours","minutes","seconds"],rb=e=>nb.includes(e),Ka=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),ob=(e,t)=>(n,r)=>e?t.isAfter(n,r):Ka(n,t)>Ka(r,t),Pt={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},sb=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},ib=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let s=o?o():Jn(t,n,Mu(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=ob(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=Jn(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:yo(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=Jn(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:yo(t,s,e.maxTime))),s},Du=(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}},ab=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Wo=(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))},Ru=(e,t,n,r)=>{switch(n){case"month":return mi(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Wo(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[]}},Xa="s",lb=["0","1","2","3","4","5","6","7","8","9"],cb=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Xa)==="0"?lb:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),Xa))},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("")},yi=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Qa=(e,t)=>{const n=pn(e,t);return n!==" "&&!Number.isNaN(Number(n))},Iu=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},Eu=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(n.longestMonth,t);return e.formatByString(i,o.format)}let s=t.toString();return o.hasLeadingZerosInInput&&(s=Iu(s,o.maxLength)),yi(s,r)},ub=(e,t,n,r,o,s,i,a)=>{const l=ab(r),c=r==="Home",u=r==="End",p=n.value===""||c||u,h=()=>{const d=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),m=w=>Eu(e,w,d,s,n),g=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*g;return C%g!==0&&((l<0||c)&&(C+=g-(g+C)%g),(l>0||u)&&(C-=C%g)),C>d.maximum?m(d.minimum+(C-d.maximum-1)%(d.maximum-d.minimum+1)):C<d.minimum?m(d.maximum-(d.minimum-C-1)%(d.maximum-d.minimum+1)):m(C)},v=()=>{const d=Ru(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"?h():v()},bi=(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},Za=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),db=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,$u=(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")}},pb=(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(bi(c,"non-input",n)))}const i=o.join(" "),a=s.join(" ");return e.parse(a,i)},fb=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),hb=(e,t,n)=>{const o=e.map(s=>{const i=bi(s,n?"input-rtl":"input-ltr",t);return`${s.startSeparator}${i}${s.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},mb=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),s=e.endOfDay(r),{maxDaysInMonth:i,longestMonth:a}=mi(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:db(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=Wo(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})}},gb=(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=Wo(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}},Ja={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},el=(e,t,n,r,o)=>[...n].sort((s,i)=>Ja[s.type]-Ja[i.type]).reduce((s,i)=>!o||i.modified?gb(e,i,t,s):s,r),yb=()=>navigator.userAgent.toLowerCase().includes("android"),bb=(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],h=u===e.length-1?null:r[u+1];n[c]={leftIndex:p,rightIndex:h}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Ms=(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},vb=(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}},xb=(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}},Sb=["value","referenceDate"],Rt={emptyValue:null,getTodayValue:Mu,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ve(e,Sb);return t!=null&&r.utils.isValid(t)?t:n??ib(r)},cleanValue:Zy,areValuesEqual:Jy,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)},wb={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:fb,getV6InputValueFromSections:hb,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)},Cb=["localeText"],Ds=S.createContext(null),vi=function(t){const{localeText:n}=t,r=ve(t,Cb),{utils:o,localeText:s}=S.useContext(Ds)??{utils:void 0,localeText:void 0},i=Fe({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:p,localeText:h}=i,v=S.useMemo(()=>j({},h,s,n),[h,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]),m=S.useMemo(()=>d?{minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}:null,[d]),g=S.useMemo(()=>({utils:d,defaultDates:m,localeText:v}),[m,d,v]);return f.jsx(Ds.Provider,{value:g,children:a})},Pb=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:j({},e)}}}}),Ou=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)}},Au={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"},kb=Au;Pb(Au);const yn=()=>{const e=S.useContext(Ds);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
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(()=>j({},wb,e.localeText),[e.localeText]);return S.useMemo(()=>j({},e,{localeText:t}),[e,t])},Le=()=>yn().utils,Ar=()=>yn().defaultDates,Ho=e=>{const t=Le(),n=S.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Cb(e){return typeof e.main=="string"}function Pb(e,t=[]){if(!Cb(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&&Pb(t,e)}function kb(e){return ge("MuiTypography",e)}const Tb=he("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Mb={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Db=mm(),Rb=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${ae(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return me(a,kb,i)},Ib=K("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${ae(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${ae(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}}]}))),tl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Qt=S.forwardRef(function(t,n){const{color:r,...o}=Ce({props:t,name:"MuiTypography"}),s=!Mb[r],i=Db({...o,...s&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:p=!1,paragraph:h=!1,variant:v="body1",variantMapping:d=tl,...m}=i,g={...i,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:p,paragraph:h,variant:v,variantMapping:d},C=c||(h?"p":d[v]||tl[v])||"span",w=Rb(g);return f.jsx(Ib,{as:C,ref:n,className:de(w.root,l),...m,ownerState:g,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...m.style}})});function Eb(e){return ge("MuiPickersToolbar",e)}he("MuiPickersToolbar",["root","content"]);const $b=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Ob=e=>{const{classes:t}=e;return me({root:["root"],content:["content"]},Eb,t)},Ab=K("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"}}]})),Fb=K("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"}}]}),Lb=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,$b),u=r,p=Ob(u);return a?null:f.jsxs(Ab,j({ref:n,className:de(p.root,s),ownerState:u},c,{children:[f.jsx(Qt,{color:"text.secondary",variant:"overline",id:l,children:i}),f.jsx(Fb,{className:p.content,ownerState:u,children:o})]}))}),Bt=()=>yn().localeText;function Nb(e){return ge("MuiDatePickerToolbar",e)}he("MuiDatePickerToolbar",["root","title"]);const jb=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Bb=e=>{const{classes:t}=e;return me({root:["root"],title:["title"]},Nb,t)},Vb=K(Lb,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_b=K(Qt,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),zb=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,jb),p=Le(),h=Bt(),v=Bb(r),d=S.useMemo(()=>{if(!o)return a;const g=gi(p,{format:i,views:l},!0);return p.formatByString(o,g)},[o,i,a,p,l]),m=r;return f.jsx(Vb,j({ref:n,toolbarTitle:h.datePickerToolbarTitle,isLandscape:s,className:de(v.root,c)},u,{children:f.jsx(_b,{variant:"h4",align:s?"left":"center",ownerState:m,className:v.title,children:d})}))});function Au(e,t){const n=Le(),r=Ar(),o=Fe({props:e,name:t}),s=S.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:j({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return j({},o,{localeText:s},qy({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate),slots:j({toolbar:zb},o.slots)})}const Fr=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:s,shouldDisableYear:i,disablePast:a,disableFuture:l}=e,c=r.utils.date(void 0,n),u=lt(r.utils,e.minDate,r.defaultDates.minDate),p=lt(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(s&&s(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(a&&r.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(p&&r.utils.isAfterDay(t,p)):return"maxDate";default:return null}};Fr.valueManager=Rt;const Fu=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Wb=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Hb=["minDateTime","maxDateTime"],Ub=[...Fu,...Wb,...Hb],Lu=e=>Ub.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function Nu(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 Uo=S.createContext(void 0);function ft(){return S.useContext(Uo)}function Yb(e){return ge("MuiInputAdornment",e)}const nl=he("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var rl;const Gb=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ae(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},qb=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ae(o)}`,i,r&&"hiddenLabel",s&&`size${ae(s)}`]};return me(a,Yb,t)},Kb=K("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Gb})(Ee(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${nl.positionStart}&:not(.${nl.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),ju=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,h=ft()||{};let v=u;u&&h.variant,h&&!v&&(v=h.variant);const d={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:v},m=qb(d);return f.jsx(Uo.Provider,{value:null,children:f.jsx(Kb,{as:i,ownerState:d,className:de(m.root,s),ref:n,...p,children:typeof o=="string"&&!l?f.jsx(Qt,{color:"textSecondary",children:o}):f.jsxs(S.Fragment,{children:[c==="start"?rl||(rl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});class bo{static create(){return new bo}static use(){const t=wu(bo.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=Qb(),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 Xb(){return bo.use()}function Qb(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Rs(e,t){return Rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Rs(e,t)}function xi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rs(e,t)}function Zb(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Jb(e,t){e.classList?e.classList.add(t):Zb(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function ol(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ev(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=ol(e.className,t):e.setAttribute("class",ol(e.className&&e.className.baseVal||"",t))}const sl={disabled:!1},vo=W.createContext(null);var Bu=function(t){return t.scrollTop},dr="unmounted",on="exited",sn="entering",Tn="entered",Is="exiting",St=(function(e){xi(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=on,s.appearStatus=sn):l=Tn:r.unmountOnExit||r.mountOnEnter?l=dr:l=on,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===dr?{status:on}: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!==sn&&i!==Tn&&(s=sn):(i===sn||i===Tn)&&(s=Is)}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===sn){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:lr.findDOMNode(this);i&&Bu(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===on&&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(),h=a?p.appear:p.enter;if(!o&&!i||sl.disabled){this.safeSetState({status:Tn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:sn},function(){s.props.onEntering(c,u),s.onTransitionEnd(h,function(){s.safeSetState({status:Tn},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||sl.disabled){this.safeSetState({status:on},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Is},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:on},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 W.createElement(vo.Provider,{value:null},typeof i=="function"?i(o,a):W.cloneElement(W.Children.only(i),a))},t})(W.Component);St.contextType=vo;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=on;St.ENTERING=sn;St.ENTERED=Tn;St.EXITING=Is;var tv=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Jb(t,r)})},ps=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return ev(t,r)})},Si=(function(e){xi(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],h=p?"appear":"enter";r.addClass(u,h,"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],h=p?"appear":"enter";r.removeClasses(u,h),r.addClass(u,h,"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],h=c?p+"-active":l[a+"Active"],v=c?p+"-done":l[a+"Done"];return{baseClassName:p,activeClassName:h,doneClassName:v}},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&&Bu(o),a&&(this.appliedClasses[s][i]=a,tv(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&&ps(o,a),l&&ps(o,l),c&&ps(o,c)},n.render=function(){var o=this.props;o.classNames;var s=ve(o,["classNames"]);return W.createElement(St,j({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(W.Component);Si.defaultProps={classNames:""};Si.propTypes={};function nv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wi(e,t){var n=function(s){return t&&W.isValidElement(s)?t(s):s},r=Object.create(null);return e&&W.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function rv(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 ln(e,t,n){return n[t]!=null?n[t]:e.props[t]}function ov(e,t){return wi(e.children,function(n){return W.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ln(n,"appear",e),enter:ln(n,"enter",e),exit:ln(n,"exit",e)})})}function sv(e,t,n){var r=wi(e.children),o=rv(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(W.isValidElement(i)){var a=s in t,l=s in r,c=t[s],u=W.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[s]=W.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:ln(i,"exit",e),enter:ln(i,"enter",e)}):!l&&a&&!u?o[s]=W.cloneElement(i,{in:!1}):l&&a&&W.isValidElement(c)&&(o[s]=W.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:ln(i,"exit",e),enter:ln(i,"enter",e)}))}}),o}var iv=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},av={component:"div",childFactory:function(t){return t}},Lr=(function(e){xi(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(nv(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?ov(o,a):sv(o,i,a),firstRender:!1}},n.handleExited=function(o,s){var i=wi(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(a){var l=j({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,s=o.component,i=o.childFactory,a=ve(o,["component","childFactory"]),l=this.state.contextValue,c=iv(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?W.createElement(vo.Provider,{value:l},c):W.createElement(vo.Provider,{value:l},W.createElement(s,a,c))},t})(W.Component);Lr.propTypes={};Lr.defaultProps=av;function lv(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),h=de(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={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 m=setTimeout(l,c);return()=>{clearTimeout(m)}}},[l,a,c]),f.jsx("span",{className:h,style:v,children:f.jsx("span",{className:d})})}const st=he("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Es=550,cv=80,uv=He.keyframes`
32
+ `));const t=S.useMemo(()=>j({},kb,e.localeText),[e.localeText]);return S.useMemo(()=>j({},e,{localeText:t}),[e,t])},Le=()=>yn().utils,Ar=()=>yn().defaultDates,Ho=e=>{const t=Le(),n=S.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Tb(e){return typeof e.main=="string"}function Mb(e,t=[]){if(!Tb(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&&Mb(t,e)}function Db(e){return ge("MuiTypography",e)}const Rb=he("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Ib={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Eb=gm(),$b=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${ae(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return me(a,Db,i)},Ob=K("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${ae(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${ae(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}}]}))),tl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Qt=S.forwardRef(function(t,n){const{color:r,...o}=Ce({props:t,name:"MuiTypography"}),s=!Ib[r],i=Eb({...o,...s&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:p=!1,paragraph:h=!1,variant:v="body1",variantMapping:d=tl,...m}=i,g={...i,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:p,paragraph:h,variant:v,variantMapping:d},C=c||(h?"p":d[v]||tl[v])||"span",w=$b(g);return f.jsx(Ob,{as:C,ref:n,className:de(w.root,l),...m,ownerState:g,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...m.style}})});function Ab(e){return ge("MuiPickersToolbar",e)}he("MuiPickersToolbar",["root","content"]);const Fb=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Lb=e=>{const{classes:t}=e;return me({root:["root"],content:["content"]},Ab,t)},Nb=K("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"}}]})),jb=K("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"}}]}),Bb=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,Fb),u=r,p=Lb(u);return a?null:f.jsxs(Nb,j({ref:n,className:de(p.root,s),ownerState:u},c,{children:[f.jsx(Qt,{color:"text.secondary",variant:"overline",id:l,children:i}),f.jsx(jb,{className:p.content,ownerState:u,children:o})]}))}),Bt=()=>yn().localeText;function Vb(e){return ge("MuiDatePickerToolbar",e)}he("MuiDatePickerToolbar",["root","title"]);const _b=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],zb=e=>{const{classes:t}=e;return me({root:["root"],title:["title"]},Vb,t)},Wb=K(Bb,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hb=K(Qt,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Ub=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,_b),p=Le(),h=Bt(),v=zb(r),d=S.useMemo(()=>{if(!o)return a;const g=gi(p,{format:i,views:l},!0);return p.formatByString(o,g)},[o,i,a,p,l]),m=r;return f.jsx(Wb,j({ref:n,toolbarTitle:h.datePickerToolbarTitle,isLandscape:s,className:de(v.root,c)},u,{children:f.jsx(Hb,{variant:"h4",align:s?"left":"center",ownerState:m,className:v.title,children:d})}))});function Fu(e,t){const n=Le(),r=Ar(),o=Fe({props:e,name:t}),s=S.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:j({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return j({},o,{localeText:s},Qy({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate),slots:j({toolbar:Ub},o.slots)})}const Fr=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:s,shouldDisableYear:i,disablePast:a,disableFuture:l}=e,c=r.utils.date(void 0,n),u=lt(r.utils,e.minDate,r.defaultDates.minDate),p=lt(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(s&&s(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(a&&r.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(p&&r.utils.isAfterDay(t,p)):return"maxDate";default:return null}};Fr.valueManager=Rt;const Lu=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Yb=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Gb=["minDateTime","maxDateTime"],qb=[...Lu,...Yb,...Gb],Nu=e=>qb.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function ju(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 Uo=S.createContext(void 0);function ft(){return S.useContext(Uo)}function Kb(e){return ge("MuiInputAdornment",e)}const nl=he("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var rl;const Xb=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ae(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Qb=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ae(o)}`,i,r&&"hiddenLabel",s&&`size${ae(s)}`]};return me(a,Kb,t)},Zb=K("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Xb})(Ee(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${nl.positionStart}&:not(.${nl.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Bu=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,h=ft()||{};let v=u;u&&h.variant,h&&!v&&(v=h.variant);const d={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:v},m=Qb(d);return f.jsx(Uo.Provider,{value:null,children:f.jsx(Zb,{as:i,ownerState:d,className:de(m.root,s),ref:n,...p,children:typeof o=="string"&&!l?f.jsx(Qt,{color:"textSecondary",children:o}):f.jsxs(S.Fragment,{children:[c==="start"?rl||(rl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});class bo{static create(){return new bo}static use(){const t=Cu(bo.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=ev(),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 Jb(){return bo.use()}function ev(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Rs(e,t){return Rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Rs(e,t)}function xi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rs(e,t)}function tv(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function nv(e,t){e.classList?e.classList.add(t):tv(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function ol(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function rv(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=ol(e.className,t):e.setAttribute("class",ol(e.className&&e.className.baseVal||"",t))}const sl={disabled:!1},vo=W.createContext(null);var Vu=function(t){return t.scrollTop},dr="unmounted",on="exited",sn="entering",Tn="entered",Is="exiting",St=(function(e){xi(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=on,s.appearStatus=sn):l=Tn:r.unmountOnExit||r.mountOnEnter?l=dr:l=on,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===dr?{status:on}: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!==sn&&i!==Tn&&(s=sn):(i===sn||i===Tn)&&(s=Is)}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===sn){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:lr.findDOMNode(this);i&&Vu(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===on&&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(),h=a?p.appear:p.enter;if(!o&&!i||sl.disabled){this.safeSetState({status:Tn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:sn},function(){s.props.onEntering(c,u),s.onTransitionEnd(h,function(){s.safeSetState({status:Tn},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||sl.disabled){this.safeSetState({status:on},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Is},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:on},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 W.createElement(vo.Provider,{value:null},typeof i=="function"?i(o,a):W.cloneElement(W.Children.only(i),a))},t})(W.Component);St.contextType=vo;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=on;St.ENTERING=sn;St.ENTERED=Tn;St.EXITING=Is;var ov=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return nv(t,r)})},ps=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return rv(t,r)})},Si=(function(e){xi(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],h=p?"appear":"enter";r.addClass(u,h,"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],h=p?"appear":"enter";r.removeClasses(u,h),r.addClass(u,h,"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],h=c?p+"-active":l[a+"Active"],v=c?p+"-done":l[a+"Done"];return{baseClassName:p,activeClassName:h,doneClassName:v}},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&&Vu(o),a&&(this.appliedClasses[s][i]=a,ov(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&&ps(o,a),l&&ps(o,l),c&&ps(o,c)},n.render=function(){var o=this.props;o.classNames;var s=ve(o,["classNames"]);return W.createElement(St,j({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(W.Component);Si.defaultProps={classNames:""};Si.propTypes={};function sv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wi(e,t){var n=function(s){return t&&W.isValidElement(s)?t(s):s},r=Object.create(null);return e&&W.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function iv(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 ln(e,t,n){return n[t]!=null?n[t]:e.props[t]}function av(e,t){return wi(e.children,function(n){return W.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ln(n,"appear",e),enter:ln(n,"enter",e),exit:ln(n,"exit",e)})})}function lv(e,t,n){var r=wi(e.children),o=iv(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(W.isValidElement(i)){var a=s in t,l=s in r,c=t[s],u=W.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[s]=W.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:ln(i,"exit",e),enter:ln(i,"enter",e)}):!l&&a&&!u?o[s]=W.cloneElement(i,{in:!1}):l&&a&&W.isValidElement(c)&&(o[s]=W.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:ln(i,"exit",e),enter:ln(i,"enter",e)}))}}),o}var cv=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},uv={component:"div",childFactory:function(t){return t}},Lr=(function(e){xi(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(sv(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?av(o,a):lv(o,i,a),firstRender:!1}},n.handleExited=function(o,s){var i=wi(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(a){var l=j({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,s=o.component,i=o.childFactory,a=ve(o,["component","childFactory"]),l=this.state.contextValue,c=cv(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?W.createElement(vo.Provider,{value:l},c):W.createElement(vo.Provider,{value:l},W.createElement(s,a,c))},t})(W.Component);Lr.propTypes={};Lr.defaultProps=uv;function dv(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),h=de(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={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 m=setTimeout(l,c);return()=>{clearTimeout(m)}}},[l,a,c]),f.jsx("span",{className:h,style:v,children:f.jsx("span",{className:d})})}const st=he("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Es=550,pv=80,fv=He.keyframes`
33
33
  0% {
34
34
  transform: scale(0);
35
35
  opacity: 0.1;
@@ -39,7 +39,7 @@ ${t}`}function ay(e){return e?.status===403}const un=1e3,di=200;function hu(e){c
39
39
  transform: scale(1);
40
40
  opacity: 0.3;
41
41
  }
42
- `,dv=He.keyframes`
42
+ `,hv=He.keyframes`
43
43
  0% {
44
44
  opacity: 1;
45
45
  }
@@ -47,7 +47,7 @@ ${t}`}function ay(e){return e?.status===403}const un=1e3,di=200;function hu(e){c
47
47
  100% {
48
48
  opacity: 0;
49
49
  }
50
- `,pv=He.keyframes`
50
+ `,mv=He.keyframes`
51
51
  0% {
52
52
  transform: scale(1);
53
53
  }
@@ -59,14 +59,14 @@ ${t}`}function ay(e){return e?.status===403}const un=1e3,di=200;function hu(e){c
59
59
  100% {
60
60
  transform: scale(1);
61
61
  }
62
- `,fv=K("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),hv=K(lv,{name:"MuiTouchRipple",slot:"Ripple"})`
62
+ `,gv=K("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yv=K(dv,{name:"MuiTouchRipple",slot:"Ripple"})`
63
63
  opacity: 0;
64
64
  position: absolute;
65
65
 
66
66
  &.${st.rippleVisible} {
67
67
  opacity: 0.3;
68
68
  transform: scale(1);
69
- animation-name: ${uv};
69
+ animation-name: ${fv};
70
70
  animation-duration: ${Es}ms;
71
71
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
72
72
  }
@@ -86,7 +86,7 @@ ${t}`}function ay(e){return e?.status===403}const un=1e3,di=200;function hu(e){c
86
86
 
87
87
  & .${st.childLeaving} {
88
88
  opacity: 0;
89
- animation-name: ${dv};
89
+ animation-name: ${hv};
90
90
  animation-duration: ${Es}ms;
91
91
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
92
92
  }
@@ -96,13 +96,13 @@ ${t}`}function ay(e){return e?.status===403}const un=1e3,di=200;function hu(e){c
96
96
  /* @noflip */
97
97
  left: 0px;
98
98
  top: 0;
99
- animation-name: ${pv};
99
+ animation-name: ${mv};
100
100
  animation-duration: 2500ms;
101
101
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
102
102
  animation-iteration-count: infinite;
103
103
  animation-delay: 200ms;
104
104
  }
105
- `,mv=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 h=S.useRef(!1),v=fi(),d=S.useRef(null),m=S.useRef(null),g=S.useCallback(x=>{const{pulsate:P,rippleX:T,rippleY:I,rippleSize:R,cb:A}=x;c(O=>[...O,f.jsx(hv,{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:Es,pulsate:P,rippleX:T,rippleY:I,rippleSize:R},u.current)]),u.current+=1,p.current=A},[s]),C=S.useCallback((x={},P={},T=()=>{})=>{const{pulsate:I=!1,center:R=o||P.pulsate,fakeElement:A=!1}=P;if(x?.type==="mousedown"&&h.current){h.current=!1;return}x?.type==="touchstart"&&(h.current=!0);const O=A?null:m.current,$=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let b,E,D;if(R||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)b=Math.round($.width/2),E=Math.round($.height/2);else{const{clientX:M,clientY:k}=x.touches&&x.touches.length>0?x.touches[0]:x;b=Math.round(M-$.left),E=Math.round(k-$.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)-b),b)*2+2,k=Math.max(Math.abs((O?O.clientHeight:0)-E),E)*2+2;D=Math.sqrt(M**2+k**2)}x?.touches?d.current===null&&(d.current=()=>{g({pulsate:I,rippleX:b,rippleY:E,rippleSize:D,cb:T})},v.start(cv,()=>{d.current&&(d.current(),d.current=null)})):g({pulsate:I,rippleX:b,rippleY:E,rippleSize:D,cb:T})},[o,g,v]),w=S.useCallback(()=>{C({},{pulsate:!0})},[C]),y=S.useCallback((x,P)=>{if(v.clear(),x?.type==="touchend"&&d.current){d.current(),d.current=null,v.start(0,()=>{y(x,P)});return}d.current=null,c(T=>T.length>0?T.slice(1):T),p.current=P},[v]);return S.useImperativeHandle(n,()=>({pulsate:w,start:C,stop:y}),[w,C,y]),f.jsx(fv,{className:de(st.root,s.root,i),ref:m,...a,children:f.jsx(Lr,{component:null,exit:!0,children:l})})});function gv(e){return ge("MuiButtonBase",e)}const yv=he("MuiButtonBase",["root","disabled","focusVisible"]),bv=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=me({root:["root",t&&"disabled",n&&"focusVisible"]},gv,o);return n&&r&&(i.root+=` ${r}`),i},vv=K("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"},[`&.${yv.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:h=!1,focusVisibleClassName:v,LinkComponent:d="a",onBlur:m,onClick:g,onContextMenu:C,onDragLeave:w,onFocus:y,onFocusVisible:x,onKeyDown:P,onKeyUp:T,onMouseDown:I,onMouseLeave:R,onMouseUp:A,onTouchEnd:O,onTouchMove:$,onTouchStart:b,tabIndex:E=0,TouchRippleProps:D,touchRippleRef:M,type:k,...F}=r,L=S.useRef(null),N=Xb(),U=ke(N.ref,M),[J,re]=S.useState(!1);c&&J&&re(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{re(!0),L.current.focus()}}),[]);const le=N.shouldMount&&!u&&!c;S.useEffect(()=>{J&&h&&!u&&N.pulsate()},[u,h,J,N]);const ie=$t(N,"start",I,p),V=$t(N,"stop",C,p),Q=$t(N,"stop",w,p),G=$t(N,"stop",A,p),_=$t(N,"stop",pe=>{J&&pe.preventDefault(),R&&R(pe)},p),z=$t(N,"start",b,p),Z=$t(N,"stop",O,p),te=$t(N,"stop",$,p),ee=$t(N,"stop",pe=>{Ya(pe.target)||re(!1),m&&m(pe)},!1),B=ue(pe=>{L.current||(L.current=pe.currentTarget),Ya(pe.target)&&(re(!0),x&&x(pe)),y&&y(pe)}),X=()=>{const pe=L.current;return l&&l!=="button"&&!(pe.tagName==="A"&&pe.href)},oe=ue(pe=>{h&&!pe.repeat&&J&&pe.key===" "&&N.stop(pe,()=>{N.start(pe)}),pe.target===pe.currentTarget&&X()&&pe.key===" "&&pe.preventDefault(),P&&P(pe),pe.target===pe.currentTarget&&X()&&pe.key==="Enter"&&!c&&(pe.preventDefault(),g&&g(pe))}),ne=ue(pe=>{h&&pe.key===" "&&J&&!pe.defaultPrevented&&N.stop(pe,()=>{N.pulsate(pe)}),T&&T(pe),g&&pe.target===pe.currentTarget&&X()&&pe.key===" "&&!pe.defaultPrevented&&g(pe)});let ce=l;ce==="button"&&(F.href||F.to)&&(ce=d);const se={};ce==="button"?(se.type=k===void 0?"button":k,se.disabled=c):(!F.href&&!F.to&&(se.role="button"),c&&(se["aria-disabled"]=c));const fe=ke(n,L),be={...r,centerRipple:s,component:l,disabled:c,disableRipple:u,disableTouchRipple:p,focusRipple:h,tabIndex:E,focusVisible:J},we=bv(be);return f.jsxs(vv,{as:ce,className:de(we.root,a),ownerState:be,onBlur:ee,onClick:g,onContextMenu:V,onFocus:B,onKeyDown:oe,onKeyUp:ne,onMouseDown:ie,onMouseLeave:_,onMouseUp:G,onDragLeave:Q,onTouchEnd:Z,onTouchMove:te,onTouchStart:z,ref:fe,tabIndex:c?-1:E,type:k,...se,...F,children:[i,le?f.jsx(mv,{ref:U,center:s,...D}):null]})});function $t(e,t,n,r=!1){return ue(o=>(n&&n(o),r||e[t](o),!0))}function xv(e){return ge("MuiCircularProgress",e)}he("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ut=44,$s=He.keyframes`
105
+ `,bv=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 h=S.useRef(!1),v=fi(),d=S.useRef(null),m=S.useRef(null),g=S.useCallback(x=>{const{pulsate:P,rippleX:T,rippleY:I,rippleSize:R,cb:A}=x;c(O=>[...O,f.jsx(yv,{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:Es,pulsate:P,rippleX:T,rippleY:I,rippleSize:R},u.current)]),u.current+=1,p.current=A},[s]),C=S.useCallback((x={},P={},T=()=>{})=>{const{pulsate:I=!1,center:R=o||P.pulsate,fakeElement:A=!1}=P;if(x?.type==="mousedown"&&h.current){h.current=!1;return}x?.type==="touchstart"&&(h.current=!0);const O=A?null:m.current,$=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let b,E,D;if(R||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)b=Math.round($.width/2),E=Math.round($.height/2);else{const{clientX:M,clientY:k}=x.touches&&x.touches.length>0?x.touches[0]:x;b=Math.round(M-$.left),E=Math.round(k-$.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)-b),b)*2+2,k=Math.max(Math.abs((O?O.clientHeight:0)-E),E)*2+2;D=Math.sqrt(M**2+k**2)}x?.touches?d.current===null&&(d.current=()=>{g({pulsate:I,rippleX:b,rippleY:E,rippleSize:D,cb:T})},v.start(pv,()=>{d.current&&(d.current(),d.current=null)})):g({pulsate:I,rippleX:b,rippleY:E,rippleSize:D,cb:T})},[o,g,v]),w=S.useCallback(()=>{C({},{pulsate:!0})},[C]),y=S.useCallback((x,P)=>{if(v.clear(),x?.type==="touchend"&&d.current){d.current(),d.current=null,v.start(0,()=>{y(x,P)});return}d.current=null,c(T=>T.length>0?T.slice(1):T),p.current=P},[v]);return S.useImperativeHandle(n,()=>({pulsate:w,start:C,stop:y}),[w,C,y]),f.jsx(gv,{className:de(st.root,s.root,i),ref:m,...a,children:f.jsx(Lr,{component:null,exit:!0,children:l})})});function vv(e){return ge("MuiButtonBase",e)}const xv=he("MuiButtonBase",["root","disabled","focusVisible"]),Sv=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=me({root:["root",t&&"disabled",n&&"focusVisible"]},vv,o);return n&&r&&(i.root+=` ${r}`),i},wv=K("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"},[`&.${xv.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:h=!1,focusVisibleClassName:v,LinkComponent:d="a",onBlur:m,onClick:g,onContextMenu:C,onDragLeave:w,onFocus:y,onFocusVisible:x,onKeyDown:P,onKeyUp:T,onMouseDown:I,onMouseLeave:R,onMouseUp:A,onTouchEnd:O,onTouchMove:$,onTouchStart:b,tabIndex:E=0,TouchRippleProps:D,touchRippleRef:M,type:k,...F}=r,L=S.useRef(null),N=Jb(),U=ke(N.ref,M),[J,re]=S.useState(!1);c&&J&&re(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{re(!0),L.current.focus()}}),[]);const le=N.shouldMount&&!u&&!c;S.useEffect(()=>{J&&h&&!u&&N.pulsate()},[u,h,J,N]);const ie=$t(N,"start",I,p),V=$t(N,"stop",C,p),Q=$t(N,"stop",w,p),G=$t(N,"stop",A,p),_=$t(N,"stop",pe=>{J&&pe.preventDefault(),R&&R(pe)},p),z=$t(N,"start",b,p),Z=$t(N,"stop",O,p),te=$t(N,"stop",$,p),ee=$t(N,"stop",pe=>{Ya(pe.target)||re(!1),m&&m(pe)},!1),B=ue(pe=>{L.current||(L.current=pe.currentTarget),Ya(pe.target)&&(re(!0),x&&x(pe)),y&&y(pe)}),X=()=>{const pe=L.current;return l&&l!=="button"&&!(pe.tagName==="A"&&pe.href)},oe=ue(pe=>{h&&!pe.repeat&&J&&pe.key===" "&&N.stop(pe,()=>{N.start(pe)}),pe.target===pe.currentTarget&&X()&&pe.key===" "&&pe.preventDefault(),P&&P(pe),pe.target===pe.currentTarget&&X()&&pe.key==="Enter"&&!c&&(pe.preventDefault(),g&&g(pe))}),ne=ue(pe=>{h&&pe.key===" "&&J&&!pe.defaultPrevented&&N.stop(pe,()=>{N.pulsate(pe)}),T&&T(pe),g&&pe.target===pe.currentTarget&&X()&&pe.key===" "&&!pe.defaultPrevented&&g(pe)});let ce=l;ce==="button"&&(F.href||F.to)&&(ce=d);const se={};ce==="button"?(se.type=k===void 0?"button":k,se.disabled=c):(!F.href&&!F.to&&(se.role="button"),c&&(se["aria-disabled"]=c));const fe=ke(n,L),be={...r,centerRipple:s,component:l,disabled:c,disableRipple:u,disableTouchRipple:p,focusRipple:h,tabIndex:E,focusVisible:J},we=Sv(be);return f.jsxs(wv,{as:ce,className:de(we.root,a),ownerState:be,onBlur:ee,onClick:g,onContextMenu:V,onFocus:B,onKeyDown:oe,onKeyUp:ne,onMouseDown:ie,onMouseLeave:_,onMouseUp:G,onDragLeave:Q,onTouchEnd:Z,onTouchMove:te,onTouchStart:z,ref:fe,tabIndex:c?-1:E,type:k,...se,...F,children:[i,le?f.jsx(bv,{ref:U,center:s,...D}):null]})});function $t(e,t,n,r=!1){return ue(o=>(n&&n(o),r||e[t](o),!0))}function Cv(e){return ge("MuiCircularProgress",e)}he("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ut=44,$s=He.keyframes`
106
106
  0% {
107
107
  transform: rotate(0deg);
108
108
  }
@@ -125,18 +125,18 @@ ${t}`}function ay(e){return e?.status===403}const un=1e3,di=200;function hu(e){c
125
125
  stroke-dasharray: 1px, 200px;
126
126
  stroke-dashoffset: -126px;
127
127
  }
128
- `,Sv=typeof $s!="string"?He.css`
128
+ `,Pv=typeof $s!="string"?He.css`
129
129
  animation: ${$s} 1.4s linear infinite;
130
- `:null,wv=typeof Os!="string"?He.css`
130
+ `:null,kv=typeof Os!="string"?He.css`
131
131
  animation: ${Os} 1.4s ease-in-out infinite;
132
- `:null,Cv=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${ae(r)}`],svg:["svg"],circle:["circle",`circle${ae(n)}`,o&&"circleDisableShrink"]};return me(s,xv,t)},Pv=K("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ae(n.color)}`]]}})(Ee(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Sv||{animation:`${$s} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),kv=K("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Tv=K("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ae(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:wv||{animation:`${Os} 1.4s ease-in-out infinite`}}]}))),Ci=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",...h}=r,v={...r,color:s,disableShrink:i,size:a,thickness:c,value:u,variant:p},d=Cv(v),m={},g={},C={};if(p==="determinate"){const w=2*Math.PI*((Ut-c)/2);m.strokeDasharray=w.toFixed(3),C["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*w).toFixed(3)}px`,g.transform="rotate(-90deg)"}return f.jsx(Pv,{className:de(d.root,o),style:{width:a,height:a,...g,...l},ownerState:v,ref:n,role:"progressbar",...C,...h,children:f.jsx(kv,{className:d.svg,ownerState:v,viewBox:`${Ut/2} ${Ut/2} ${Ut} ${Ut}`,children:f.jsx(Tv,{className:d.circle,style:m,ownerState:v,cx:Ut,cy:Ut,r:(Ut-c)/2,fill:"none",strokeWidth:c})})})});function Mv(e){return ge("MuiIconButton",e)}const il=he("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Dv=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${ae(r)}`,o&&`edge${ae(o)}`,`size${ae(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return me(a,Mv,t)},Rv=K(Bn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ae(n.color)}`],n.edge&&t[`edge${ae(n.edge)}`],t[`size${ae(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)}}],[`&.${il.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${il.loading}`]:{color:"transparent"}}))),Iv=K("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Nr=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:h=null,loadingIndicator:v,...d}=r,m=xt(p),g=v??f.jsx(Ci,{"aria-labelledby":m,color:"inherit",size:16}),C={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:g,size:u},w=Dv(C);return f.jsxs(Rv,{id:h?m:p,className:de(w.root,i),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:n,...d,ownerState:C,children:[typeof h=="boolean"&&f.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:f.jsx(Iv,{className:w.loadingIndicator,ownerState:C,children:h&&g})}),s]})}),Vu=e=>e.scrollTop;function xo(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 As(e){return`scale(${e}, ${e**2})`}const Ev={entering:{opacity:1,transform:As(1)},entered:{opacity:1,transform:"none"}},fs=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Cr=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:h,onExiting:v,style:d,timeout:m="auto",TransitionComponent:g=St,...C}=t,w=fi(),y=S.useRef(),x=gn(),P=S.useRef(null),T=ke(P,Gn(s),n),I=M=>k=>{if(M){const F=P.current;k===void 0?M(F):M(F,k)}},R=I(u),A=I((M,k)=>{Vu(M);const{duration:F,delay:L,easing:N}=xo({style:d,timeout:m,easing:i},{mode:"enter"});let U;m==="auto"?(U=x.transitions.getAutoHeightDuration(M.clientHeight),y.current=U):U=F,M.style.transition=[x.transitions.create("opacity",{duration:U,delay:L}),x.transitions.create("transform",{duration:fs?U:U*.666,delay:L,easing:N})].join(","),l&&l(M,k)}),O=I(c),$=I(v),b=I(M=>{const{duration:k,delay:F,easing:L}=xo({style:d,timeout:m,easing:i},{mode:"exit"});let N;m==="auto"?(N=x.transitions.getAutoHeightDuration(M.clientHeight),y.current=N):N=k,M.style.transition=[x.transitions.create("opacity",{duration:N,delay:F}),x.transitions.create("transform",{duration:fs?N:N*.666,delay:fs?F:F||N*.333,easing:L})].join(","),M.style.opacity=0,M.style.transform=As(.75),p&&p(M)}),E=I(h),D=M=>{m==="auto"&&w.start(y.current||0,M),r&&r(P.current,M)};return f.jsx(g,{appear:o,in:a,nodeRef:P,onEnter:A,onEntered:O,onEntering:R,onExit:b,onExited:E,onExiting:$,addEndListener:D,timeout:m==="auto"?null:m,...C,children:(M,{ownerState:k,...F})=>S.cloneElement(s,{style:{opacity:0,transform:As(.75),visibility:M==="exited"&&!a?"hidden":void 0,...Ev[M],...d,...s.props.style},ref:T,...F})})});Cr&&(Cr.muiSupportAuto=!0);const $v={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:h,onExit:v,onExited:d,onExiting:m,style:g,timeout:C=o,TransitionComponent:w=St,...y}=t,x=S.useRef(null),P=ke(x,Gn(a),n),T=D=>M=>{if(D){const k=x.current;M===void 0?D(k):D(k,M)}},I=T(h),R=T((D,M)=>{Vu(D);const k=xo({style:g,timeout:C,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",k),D.style.transition=r.transitions.create("opacity",k),u&&u(D,M)}),A=T(p),O=T(m),$=T(D=>{const M=xo({style:g,timeout:C,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",M),D.style.transition=r.transitions.create("opacity",M),v&&v(D)}),b=T(d),E=D=>{s&&s(x.current,D)};return f.jsx(w,{appear:i,in:c,nodeRef:x,onEnter:R,onEntered:A,onEntering:I,onExit:$,onExited:b,onExiting:O,addEndListener:E,timeout:C,...y,children:(D,{ownerState:M,...k})=>S.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...$v[D],...g,...a.props.style},ref:P,...k})})});function Ov(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 Av=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return me(s,Ov,o)},Fv=K("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ee(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),jr=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},h=Av(p);return f.jsx(Fv,{as:i,ownerState:p,className:de(h.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(${fo("#fff",Ss(a))}, ${fo("#fff",Ss(a))})`}},...u.style}})});var Qe="top",ct="bottom",ut="right",Ze="left",Pi="auto",Br=[Qe,ct,ut,Ze],Vn="start",Pr="end",Lv="clippingParents",_u="viewport",er="popper",Nv="reference",al=Br.reduce(function(e,t){return e.concat([t+"-"+Vn,t+"-"+Pr])},[]),zu=[].concat(Br,[Pi]).reduce(function(e,t){return e.concat([t,t+"-"+Vn,t+"-"+Pr])},[]),jv="beforeRead",Bv="read",Vv="afterRead",_v="beforeMain",zv="main",Wv="afterMain",Hv="beforeWrite",Uv="write",Yv="afterWrite",Gv=[jv,Bv,Vv,_v,zv,Wv,Hv,Uv,Yv];function It(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 ki(e){if(typeof ShadowRoot>"u")return!1;var t=et(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qv(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)||!It(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 Kv(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)||!It(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const Xv={name:"applyStyles",enabled:!0,phase:"write",fn:qv,effect:Kv,requires:["computeStyles"]};function Mt(e){return e.split("-")[0]}var dn=Math.max,So=Math.min,_n=Math.round;function Fs(){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 Wu(){return!/^((?!chrome|android).)*safari/i.test(Fs())}function zn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&at(e)&&(o=e.offsetWidth>0&&_n(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&_n(r.height)/e.offsetHeight||1);var i=hn(e)?et(e):window,a=i.visualViewport,l=!Wu()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,p=r.width/o,h=r.height/s;return{width:p,height:h,top:u,right:c+p,bottom:u+h,left:c,x:c,y:u}}function Ti(e){var t=zn(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Hu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ki(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Nt(e){return et(e).getComputedStyle(e)}function Qv(e){return["table","td","th"].indexOf(It(e))>=0}function Zt(e){return((hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yo(e){return It(e)==="html"?e:e.assignedSlot||e.parentNode||(ki(e)?e.host:null)||Zt(e)}function ll(e){return!at(e)||Nt(e).position==="fixed"?null:e.offsetParent}function Zv(e){var t=/firefox/i.test(Fs()),n=/Trident/i.test(Fs());if(n&&at(e)){var r=Nt(e);if(r.position==="fixed")return null}var o=Yo(e);for(ki(o)&&(o=o.host);at(o)&&["html","body"].indexOf(It(o))<0;){var s=Nt(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Vr(e){for(var t=et(e),n=ll(e);n&&Qv(n)&&Nt(n).position==="static";)n=ll(n);return n&&(It(n)==="html"||It(n)==="body"&&Nt(n).position==="static")?t:n||Zv(e)||t}function Mi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mr(e,t,n){return dn(e,So(t,n))}function Jv(e,t,n){var r=mr(e,t,n);return r>n?n:r}function Uu(){return{top:0,right:0,bottom:0,left:0}}function Yu(e){return Object.assign({},Uu(),e)}function Gu(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var e0=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Yu(typeof t!="number"?t:Gu(t,Br))};function t0(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=Mi(a),c=[Ze,ut].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var p=e0(o.padding,n),h=Ti(s),v=l==="y"?Qe:Ze,d=l==="y"?ct:ut,m=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],g=i[l]-n.rects.reference[l],C=Vr(s),w=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,y=m/2-g/2,x=p[v],P=w-h[u]-p[d],T=w/2-h[u]/2+y,I=mr(x,T,P),R=l;n.modifiersData[r]=(t={},t[R]=I,t.centerOffset=I-T,t)}}function n0(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Hu(t.elements.popper,o)&&(t.elements.arrow=o))}const r0={name:"arrow",enabled:!0,phase:"main",fn:t0,effect:n0,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wn(e){return e.split("-")[1]}var o0={top:"auto",right:"auto",bottom:"auto",left:"auto"};function s0(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:_n(n*o)/o||0,y:_n(r*o)/o||0}}function cl(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,h=i.x,v=h===void 0?0:h,d=i.y,m=d===void 0?0:d,g=typeof u=="function"?u({x:v,y:m}):{x:v,y:m};v=g.x,m=g.y;var C=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),y=Ze,x=Qe,P=window;if(c){var T=Vr(n),I="clientHeight",R="clientWidth";if(T===et(n)&&(T=Zt(n),Nt(T).position!=="static"&&a==="absolute"&&(I="scrollHeight",R="scrollWidth")),T=T,o===Qe||(o===Ze||o===ut)&&s===Pr){x=ct;var A=p&&T===P&&P.visualViewport?P.visualViewport.height:T[I];m-=A-r.height,m*=l?1:-1}if(o===Ze||(o===Qe||o===ct)&&s===Pr){y=ut;var O=p&&T===P&&P.visualViewport?P.visualViewport.width:T[R];v-=O-r.width,v*=l?1:-1}}var $=Object.assign({position:a},c&&o0),b=u===!0?s0({x:v,y:m},et(n)):{x:v,y:m};if(v=b.x,m=b.y,l){var E;return Object.assign({},$,(E={},E[x]=w?"0":"",E[y]=C?"0":"",E.transform=(P.devicePixelRatio||1)<=1?"translate("+v+"px, "+m+"px)":"translate3d("+v+"px, "+m+"px, 0)",E))}return Object.assign({},$,(t={},t[x]=w?m+"px":"",t[y]=C?v+"px":"",t.transform="",t))}function i0(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,cl(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,cl(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 a0={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:i0,data:{}};var Hr={passive:!0};function l0(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,a=i===void 0?!0:i,l=et(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,Hr)}),a&&l.addEventListener("resize",n.update,Hr),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Hr)}),a&&l.removeEventListener("resize",n.update,Hr)}}const c0={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:l0,data:{}};var u0={left:"right",right:"left",bottom:"top",top:"bottom"};function uo(e){return e.replace(/left|right|bottom|top/g,function(t){return u0[t]})}var d0={start:"end",end:"start"};function ul(e){return e.replace(/start|end/g,function(t){return d0[t]})}function Di(e){var t=et(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ri(e){return zn(Zt(e)).left+Di(e).scrollLeft}function p0(e,t){var n=et(e),r=Zt(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=Wu();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+Ri(e),y:l}}function f0(e){var t,n=Zt(e),r=Di(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+Ri(e),l=-r.scrollTop;return Nt(o||n).direction==="rtl"&&(a+=dn(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function Ii(e){var t=Nt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function qu(e){return["html","body","#document"].indexOf(It(e))>=0?e.ownerDocument.body:at(e)&&Ii(e)?e:qu(Yo(e))}function gr(e,t){var n;t===void 0&&(t=[]);var r=qu(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=et(r),i=o?[s].concat(s.visualViewport||[],Ii(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(gr(Yo(i)))}function Ls(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function h0(e,t){var n=zn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function dl(e,t,n){return t===_u?Ls(p0(e,n)):hn(t)?h0(t,n):Ls(f0(Zt(e)))}function m0(e){var t=gr(Yo(e)),n=["absolute","fixed"].indexOf(Nt(e).position)>=0,r=n&&at(e)?Vr(e):e;return hn(r)?t.filter(function(o){return hn(o)&&Hu(o,r)&&It(o)!=="body"}):[]}function g0(e,t,n,r){var o=t==="clippingParents"?m0(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=dl(e,c,r);return l.top=dn(u.top,l.top),l.right=So(u.right,l.right),l.bottom=So(u.bottom,l.bottom),l.left=dn(u.left,l.left),l},dl(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 Ku(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?Mi(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 Pr:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function kr(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?Lv:a,c=n.rootBoundary,u=c===void 0?_u:c,p=n.elementContext,h=p===void 0?er:p,v=n.altBoundary,d=v===void 0?!1:v,m=n.padding,g=m===void 0?0:m,C=Yu(typeof g!="number"?g:Gu(g,Br)),w=h===er?Nv:er,y=e.rects.popper,x=e.elements[d?w:h],P=g0(hn(x)?x:x.contextElement||Zt(e.elements.popper),l,u,i),T=zn(e.elements.reference),I=Ku({reference:T,element:y,placement:o}),R=Ls(Object.assign({},y,I)),A=h===er?R:T,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(h===er&&$){var b=$[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]+=b[M]*D})}return O}function y0(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?zu:l,u=Wn(r),p=u?a?al:al.filter(function(d){return Wn(d)===u}):Br,h=p.filter(function(d){return c.indexOf(d)>=0});h.length===0&&(h=p);var v=h.reduce(function(d,m){return d[m]=kr(e,{placement:m,boundary:o,rootBoundary:s,padding:i})[Mt(m)],d},{});return Object.keys(v).sort(function(d,m){return v[d]-v[m]})}function b0(e){if(Mt(e)===Pi)return[];var t=uo(e);return[ul(e),t,ul(t)]}function v0(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,h=n.altBoundary,v=n.flipVariations,d=v===void 0?!0:v,m=n.allowedAutoPlacements,g=t.options.placement,C=Mt(g),w=C===g,y=l||(w||!d?[uo(g)]:b0(g)),x=[g].concat(y).reduce(function(ie,V){return ie.concat(Mt(V)===Pi?y0(t,{placement:V,boundary:u,rootBoundary:p,padding:c,flipVariations:d,allowedAutoPlacements:m}):V)},[]),P=t.rects.reference,T=t.rects.popper,I=new Map,R=!0,A=x[0],O=0;O<x.length;O++){var $=x[O],b=Mt($),E=Wn($)===Vn,D=[Qe,ct].indexOf(b)>=0,M=D?"width":"height",k=kr(t,{placement:$,boundary:u,rootBoundary:p,altBoundary:h,padding:c}),F=D?E?ut:Ze:E?ct:Qe;P[M]>T[M]&&(F=uo(F));var L=uo(F),N=[];if(s&&N.push(k[b]<=0),a&&N.push(k[F]<=0,k[L]<=0),N.every(function(ie){return ie})){A=$,R=!1;break}I.set($,N)}if(R)for(var U=d?3:1,J=function(V){var Q=x.find(function(G){var _=I.get(G);if(_)return _.slice(0,V).every(function(z){return z})});if(Q)return A=Q,"break"},re=U;re>0;re--){var le=J(re);if(le==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const x0={name:"flip",enabled:!0,phase:"main",fn:v0,requiresIfExists:["offset"],data:{_skip:!1}};function pl(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 fl(e){return[Qe,ut,ct,Ze].some(function(t){return e[t]>=0})}function S0(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=kr(t,{elementContext:"reference"}),a=kr(t,{altBoundary:!0}),l=pl(i,r),c=pl(a,o,s),u=fl(l),p=fl(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 w0={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:S0};function C0(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 P0(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=zu.reduce(function(u,p){return u[p]=C0(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 k0={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:P0};function T0(e){var t=e.state,n=e.name;t.modifiersData[n]=Ku({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const M0={name:"popperOffsets",enabled:!0,phase:"read",fn:T0,data:{}};function D0(e){return e==="x"?"y":"x"}function R0(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,h=n.tether,v=h===void 0?!0:h,d=n.tetherOffset,m=d===void 0?0:d,g=kr(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),C=Mt(t.placement),w=Wn(t.placement),y=!w,x=Mi(C),P=D0(x),T=t.modifiersData.popperOffsets,I=t.rects.reference,R=t.rects.popper,A=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,O=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,b={x:0,y:0};if(T){if(s){var E,D=x==="y"?Qe:Ze,M=x==="y"?ct:ut,k=x==="y"?"height":"width",F=T[x],L=F+g[D],N=F-g[M],U=v?-R[k]/2:0,J=w===Vn?I[k]:R[k],re=w===Vn?-R[k]:-I[k],le=t.elements.arrow,ie=v&&le?Ti(le):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Uu(),Q=V[D],G=V[M],_=mr(0,I[k],ie[k]),z=y?I[k]/2-U-_-Q-O.mainAxis:J-_-Q-O.mainAxis,Z=y?-I[k]/2+U+_+G+O.mainAxis:re+_+G+O.mainAxis,te=t.elements.arrow&&Vr(t.elements.arrow),ee=te?x==="y"?te.clientTop||0:te.clientLeft||0:0,B=(E=$?.[x])!=null?E:0,X=F+z-B-ee,oe=F+Z-B,ne=mr(v?So(L,X):L,F,v?dn(N,oe):N);T[x]=ne,b[x]=ne-F}if(a){var ce,se=x==="x"?Qe:Ze,fe=x==="x"?ct:ut,be=T[P],we=P==="y"?"height":"width",pe=be+g[se],qe=be-g[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=v&&Be?Jv(mt,be,nt):mr(v?mt:pe,be,v?nt:qe);T[P]=rt,b[P]=rt-be}t.modifiersData[r]=b}}const I0={name:"preventOverflow",enabled:!0,phase:"main",fn:R0,requiresIfExists:["offset"]};function E0(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $0(e){return e===et(e)||!at(e)?Di(e):E0(e)}function O0(e){var t=e.getBoundingClientRect(),n=_n(t.width)/e.offsetWidth||1,r=_n(t.height)/e.offsetHeight||1;return n!==1||r!==1}function A0(e,t,n){n===void 0&&(n=!1);var r=at(t),o=at(t)&&O0(t),s=Zt(t),i=zn(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((It(t)!=="body"||Ii(s))&&(a=$0(t)),at(t)?(l=zn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Ri(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function F0(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 L0(e){var t=F0(e);return Gv.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function N0(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function j0(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 hl={placement:"bottom",modifiers:[],strategy:"absolute"};function ml(){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 B0(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?hl:o;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},hl,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],h=!1,v={state:u,setOptions:function(C){var w=typeof C=="function"?C(u.options):C;m(),u.options=Object.assign({},s,u.options,w),u.scrollParents={reference:hn(a)?gr(a):a.contextElement?gr(a.contextElement):[],popper:gr(l)};var y=L0(j0([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(x){return x.enabled}),d(),v.update()},forceUpdate:function(){if(!h){var C=u.elements,w=C.reference,y=C.popper;if(ml(w,y)){u.rects={reference:A0(w,Vr(y),u.options.strategy==="fixed"),popper:Ti(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var P=u.orderedModifiers[x],T=P.fn,I=P.options,R=I===void 0?{}:I,A=P.name;typeof T=="function"&&(u=T({state:u,options:R,name:A,instance:v})||u)}}}},update:N0(function(){return new Promise(function(g){v.forceUpdate(),g(u)})}),destroy:function(){m(),h=!0}};if(!ml(a,l))return v;v.setOptions(c).then(function(g){!h&&c.onFirstUpdate&&c.onFirstUpdate(g)});function d(){u.orderedModifiers.forEach(function(g){var C=g.name,w=g.options,y=w===void 0?{}:w,x=g.effect;if(typeof x=="function"){var P=x({state:u,name:C,instance:v,options:y}),T=function(){};p.push(P||T)}})}function m(){p.forEach(function(g){return g()}),p=[]}return v}}var V0=[c0,M0,a0,Xv,k0,x0,I0,r0,w0],_0=B0({defaultModifiers:V0});function z0(e){return typeof e=="function"?e():e}const Xu=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(z0(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&&Up.createPortal(r,i)});function W0(e){return ge("MuiPopper",e)}he("MuiPopper",["root"]);function H0(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 Ns(e){return typeof e=="function"?e():e}function U0(e){return e.nodeType!==void 0}const Y0=e=>{const{classes:t}=e;return me({root:["root"]},W0,t)},G0={},q0=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:h={},slots:v={},TransitionProps:d,ownerState:m,...g}=t,C=S.useRef(null),w=ke(C,n),y=S.useRef(null),x=ke(y,p),P=S.useRef(x);Ue(()=>{P.current=x},[x]),S.useImperativeHandle(p,()=>y.current,[]);const T=H0(c,s),[I,R]=S.useState(T),[A,O]=S.useState(Ns(r));S.useEffect(()=>{y.current&&y.current.forceUpdate()}),S.useEffect(()=>{r&&O(Ns(r))},[r]),Ue(()=>{if(!A||!l)return;const M=L=>{R(L.placement)};let k=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{M(L)}}];a!=null&&(k=k.concat(a)),u&&u.modifiers!=null&&(k=k.concat(u.modifiers));const F=_0(A,C.current,{placement:T,...u,modifiers:k});return P.current(F),()=>{F.destroy(),P.current(null)}},[A,i,a,l,u,T]);const $={placement:I};d!==null&&($.TransitionProps=d);const b=Y0(t),E=v.root??"div",D=Pe({elementType:E,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:b.root});return f.jsx(E,{...D,children:typeof o=="function"?o($):o})}),K0=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:h=G0,popperRef:v,style:d,transition:m=!1,slotProps:g={},slots:C={},...w}=t,[y,x]=S.useState(!0),P=()=>{x(!1)},T=()=>{x(!0)};if(!l&&!u&&(!m||y))return null;let I;if(s)I=s;else if(r){const O=Ns(r);I=O&&U0(O)?Ye(O).body:Ye(null).body}const R=!u&&l&&(!m||y)?"none":void 0,A=m?{in:u,onEnter:P,onExited:T}:void 0;return f.jsx(Xu,{disablePortal:a,container:I,children:f.jsx(q0,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:n,open:m?!y:u,placement:p,popperOptions:h,popperRef:v,slotProps:g,slots:C,...w,style:{position:"fixed",top:0,left:0,display:R,...d},TransitionProps:A,children:o})})}),X0=K(K0,{name:"MuiPopper",slot:"Root"})({}),Qu=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:h,open:v,placement:d,popperOptions:m,popperRef:g,transition:C,slots:w,slotProps:y,...x}=o,P=w?.root??a?.Root,T={anchorEl:s,container:c,disablePortal:u,keepMounted:p,modifiers:h,open:v,placement:d,popperOptions:m,popperRef:g,transition:C,...x};return f.jsx(X0,{as:i,direction:r?"rtl":"ltr",slots:{root:P},slotProps:y??l,...T,ref:n})}),Q0=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Z0(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 J0(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 ex(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||J0(e))}function tx(e){const t=[],n=[];return Array.from(e.querySelectorAll(Q0)).forEach((r,o)=>{const s=Z0(r);s===-1||!ex(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 nx(){return!0}function Zu(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=tx,isEnabled:i=nx,open:a}=e,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(null),p=S.useRef(null),h=S.useRef(null),v=S.useRef(!1),d=S.useRef(null),m=ke(Gn(t),d),g=S.useRef(null);S.useEffect(()=>{!a||!d.current||(v.current=!n)},[n,a]),S.useEffect(()=>{if(!a||!d.current)return;const y=Ye(d.current);return d.current.contains(y.activeElement)||(d.current.hasAttribute("tabIndex")||d.current.setAttribute("tabIndex","-1"),v.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 y=Ye(d.current),x=I=>{g.current=I,!(r||!i()||I.key!=="Tab")&&y.activeElement===d.current&&I.shiftKey&&(l.current=!0,u.current&&u.current.focus())},P=()=>{const I=d.current;if(I===null)return;if(!y.hasFocus()||!i()||l.current){l.current=!1;return}if(I.contains(y.activeElement)||r&&y.activeElement!==c.current&&y.activeElement!==u.current)return;if(y.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!v.current)return;let R=[];if((y.activeElement===c.current||y.activeElement===u.current)&&(R=s(d.current)),R.length>0){const A=!!(g.current?.shiftKey&&g.current?.key==="Tab"),O=R[0],$=R[R.length-1];typeof O!="string"&&typeof $!="string"&&(A?$.focus():O.focus())}else I.focus()};y.addEventListener("focusin",P),y.addEventListener("keydown",x,!0);const T=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(T),y.removeEventListener("focusin",P),y.removeEventListener("keydown",x,!0)}},[n,r,o,i,a,s]);const C=y=>{p.current===null&&(p.current=y.relatedTarget),v.current=!0,h.current=y.target;const x=t.props.onFocus;x&&x(y)},w=y=>{p.current===null&&(p.current=y.relatedTarget),v.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:m,onFocus:C}),f.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:u,"data-testid":"sentinelEnd"})]})}function rx(e){return ge("MuiPickersPopper",e)}he("MuiPickersPopper",["root","paper"]);function ox(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const sx=(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},ix="@media (pointer: fine)",ax="@media (prefers-reduced-motion: reduce)",En=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),gl=En&&En[1]?parseInt(En[1],10):null,yl=En&&En[2]?parseInt(En[2],10):null,lx=gl&&gl<10||yl&&yl<13||!1,Ju=()=>xu(ax,{defaultMatches:!1})||lx,cx=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],ux=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},rx,t)},dx=K(Qu,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),px=K(jr,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function fx(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function hx(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&&fx(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 mx=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,cx),p=j({},o,{placement:r}),h=Pe({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:p});return f.jsx(n,j({},u,h,{onClick:v=>{l(v),h.onClick?.(v)},onTouchStart:v=>{c(v),h.onTouchStart?.(v)},ownerState:p,children:s}))});function gx(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:h,reduceAnimations:v}=t;S.useEffect(()=>{function M(k){l&&k.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[m,g,C]=hx(l,i??a),w=S.useRef(null),y=ke(w,o),x=ke(y,m),P=t,T=ux(P),I=Ju(),R=v??I,A=M=>{M.key==="Escape"&&(M.stopPropagation(),a())},O=p?.desktopTransition??R?fn:Cr,$=p?.desktopTrapFocus??Zu,b=p?.desktopPaper??px,E=p?.popper??dx,D=Pe({elementType:E,externalSlotProps:h?.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:A},className:T.root,ownerState:t});return f.jsx(E,j({},D,{children:({TransitionProps:M,placement:k})=>f.jsx($,j({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},h?.desktopTrapFocus,{children:f.jsx(O,j({},M,h?.desktopTransition,{children:f.jsx(mx,{PaperComponent:b,ownerState:P,popperPlacement:k,ref:x,onPaperClick:g,onPaperTouchStart:C,paperClasses:T.paper,paperSlotProps:h?.desktopPaper,children:r})}))}))}))}const yx=({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}},Ei=({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 h=S.useMemo(()=>s.setTimezone(i,p,l),[s,i,p,l]),v=ue((d,...m)=>{const g=u(d);o?.(g,...m)});return{value:h,handleValueChange:v,timezone:p}},$i=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:s,valueManager:i})=>{const[a,l]=Dt({name:e,state:"value",controlled:n,default:r??i.emptyValue}),c=ue((u,...p)=>{l(u),s?.(u,...p)});return Ei({timezone:t,value:a,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:i})},bx=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},vx=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},xx=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},Sx=({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:h}=S.useRef(l),{current:v}=S.useRef(a!==void 0),[d,m]=S.useState(u),g=Le(),C=yn(),{isOpen:w,setIsOpen:y}=yx(e),{timezone:x,value:P,handleValueChange:T}=Ei({timezone:u,value:a,defaultValue:h,referenceDate:p,onChange:i,valueManager:t}),[I,R]=S.useState(()=>{let z;return P!==void 0?z=P:h!==void 0?z=h:z=t.emptyValue,{draft:z,lastPublishedValue:z,lastCommittedValue:z,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),A=t.getTimezone(g,I.draft);d!==u&&(m(u),u&&A&&u!==A&&R(z=>j({},z,{draft:t.setTimezone(g,u,z.draft)})));const{getValidationErrorForNewValue:O}=Nu({props:e,validator:o,timezone:x,value:I.draft,onError:e.onError}),$=ue(z=>{const Z={action:z,dateState:I,hasChanged:ne=>!t.areValuesEqual(g,z.value,ne),isControlled:v,closeOnSelect:c},te=bx(Z),ee=vx(Z),B=xx(Z);R(ne=>j({},ne,{draft:z.value,lastPublishedValue:te?z.value:ne.lastPublishedValue,lastCommittedValue:ee?z.value:ne.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let X=null;const oe=()=>(X||(X={validationError:z.name==="setValueFromField"?z.context.validationError:O(z.value)},z.name==="setValueFromShortcut"&&(X.shortcut=z.shortcut)),X);te&&T(z.value,oe()),ee&&s&&s(z.value,oe()),B&&y(!1)});if(I.lastControlledValue!==a){const z=t.areValuesEqual(g,I.draft,P);R(Z=>j({},Z,{lastControlledValue:a},z?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,hasBeenModifiedSinceMount:!0}))}const b=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"})}),k=ue(()=>{$({value:t.getTodayValue(g,x,n),name:"setValueFromAction",pickerAction:"today"})}),F=ue(z=>{z.preventDefault(),y(!0)}),L=ue(z=>{z?.preventDefault(),y(!1)}),N=ue((z,Z="partial")=>$({name:"setValueFromView",value:z,selectionState:Z})),U=ue((z,Z,te)=>$({name:"setValueFromShortcut",value:z,changeImportance:Z,shortcut:te})),J=ue((z,Z)=>$({name:"setValueFromField",value:z,context:Z})),re={onClear:b,onAccept:E,onDismiss:D,onCancel:M,onSetToday:k,onOpen:F,onClose:L},le={value:I.draft,onChange:J},ie=S.useMemo(()=>t.cleanValue(g,I.draft),[g,t,I.draft]),V={value:ie,onChange:N,onClose:L,open:w},G=j({},re,{value:ie,onChange:N,onSelectShortcut:U,isValid:z=>{const Z=o({adapter:C,value:z,timezone:x,props:e});return!t.hasError(Z)}}),_=S.useMemo(()=>({onOpen:F,onClose:L,open:w}),[w,L,F]);return{open:w,fieldProps:le,viewProps:V,layoutProps:G,actions:re,contextValue:_}};function ed({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,h]=Dt({name:"useViews",state:"view",controlled:r,default:u.current}),v=S.useRef(s?p:null),[d,m]=Dt({name:"useViews",state:"focusedView",controlled:i,default:v.current});S.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(I=>!o.includes(I)))&&(h(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,h,p,o]);const g=o.indexOf(p),C=o[g-1]??null,w=o[g+1]??null,y=ue((I,R)=>{m(R?I:A=>I===A?null:A),a?.(I,R)}),x=ue(I=>{y(I,!0),I!==p&&(h(I),t&&t(I))}),P=ue(()=>{w&&x(w)}),T=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&&x(E)}else O&&P()});return{view:p,setView:x,focusedView:d,setFocusedView:y,nextView:w,previousView:C,defaultView:o.includes(n)?n:o[0],goToNextView:P,setValueAndGoToNextView:T}}const wx=["className","sx"],Cx=({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:h,viewRenderers:v,timezone:d}=e,m=ve(e,wx),{view:g,setView:C,defaultView:w,focusedView:y,setFocusedView:x,setValueAndGoToNextView:P}=ed({view:c,views:u,openTo:p,onChange:i,onViewChange:h,autoFocus:r}),{hasUIView:T,viewModeLookup:I}=S.useMemo(()=>u.reduce((D,M)=>{let k;return v[M]!=null?k="UI":k="field",D.viewModeLookup[M]=k,k==="UI"&&(D.hasUIView=!0),D},{hasUIView:!1,viewModeLookup:{}}),[v,u]),R=S.useMemo(()=>u.reduce((D,M)=>v[M]!=null&&eb(M)?D+1:D,0),[v,u]),A=I[g],O=ue(()=>A==="UI"),[$,b]=S.useState(A==="UI"?g:null);return $!==g&&I[g]==="UI"&&b(g),Ue(()=>{A==="field"&&a&&(l(),setTimeout(()=>{s?.current?.setSelectedSections(g),s?.current?.focusField(g)}))},[g]),Ue(()=>{if(!a)return;let D=g;A==="field"&&$!=null&&(D=$),D!==w&&I[D]==="UI"&&I[w]==="UI"&&(D=w),D!==g&&C(D),x(D,!0)},[a]),{hasUIView:T,shouldRestoreFocus:O,layoutProps:{views:u,view:$,onViewChange:C},renderCurrentView:()=>{if($==null)return null;const D=v[$];if(D==null)return null;const M=j({},m,n,t,{views:u,timezone:d,onChange:P,view:$,onViewChange:C,focusedView:y,onFocusedViewChange:x,showViewSwitcher:R>1,timeViewsCount:R});return o?o(v,$,M):D(M)}}};function bl(){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 Px=(e,t)=>{const[n,r]=S.useState(bl);return Ue(()=>{const s=()=>{r(bl())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),ox(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},kx=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=Px(n.views,o),i=vt();return{layoutProps:j({},n,t,{isLandscape:s,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function Tx(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 td=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:s,autoFocusView:i,rendererInterceptor:a,fieldRef:l})=>{const c=Sx({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=Cx({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),p=kx({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),h=Tx({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:h}};function nd(e){return ge("MuiPickersLayout",e)}const en=he("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Mx(e){return ge("MuiButton",e)}const tn=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"]),Dx=S.createContext({}),Rx=S.createContext(void 0),Ix=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}${ae(t)}`,`size${ae(o)}`,`${s}Size${ae(o)}`,`color${ae(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${ae(a)}`],startIcon:["icon","startIcon",`iconSize${ae(o)}`],endIcon:["icon","endIcon",`iconSize${ae(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=me(c,Mx,l);return{...l,...u}},rd=[{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}}}],Ex=K(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}${ae(n.color)}`],t[`size${ae(n.size)}`],t[`${n.variant}Size${ae(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"},[`&.${tn.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]},[`&.${tn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${tn.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)",[`&.${tn.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"},[`&.${tn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${tn.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}),[`&.${tn.loading}`]:{color:"transparent"}}}]}})),$x=K("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ae(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}},...rd]})),Ox=K("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ae(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}},...rd]})),Ax=K("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}}]})),vl=K("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),pr=S.forwardRef(function(t,n){const r=S.useContext(Dx),o=S.useContext(Rx),s=Sr(r,t),i=Ce({props:s,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:v=!1,endIcon:d,focusVisibleClassName:m,fullWidth:g=!1,id:C,loading:w=null,loadingIndicator:y,loadingPosition:x="center",size:P="medium",startIcon:T,type:I,variant:R="text",...A}=i,O=xt(C),$=y??f.jsx(Ci,{"aria-labelledby":O,color:"inherit",size:16}),b={...i,color:l,component:c,disabled:p,disableElevation:h,disableFocusRipple:v,fullWidth:g,loading:w,loadingIndicator:$,loadingPosition:x,size:P,type:I,variant:R},E=Ix(b),D=(T||w&&x==="start")&&f.jsx($x,{className:E.startIcon,ownerState:b,children:T||f.jsx(vl,{className:E.loadingIconPlaceholder,ownerState:b})}),M=(d||w&&x==="end")&&f.jsx(Ox,{className:E.endIcon,ownerState:b,children:d||f.jsx(vl,{className:E.loadingIconPlaceholder,ownerState:b})}),k=o||"",F=typeof w=="boolean"?f.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:w&&f.jsx(Ax,{className:E.loadingIndicator,ownerState:b,children:$})}):null;return f.jsxs(Ex,{ownerState:b,className:de(r.className,E.root,u,k),component:c,disabled:p||w,focusRipple:!v,focusVisibleClassName:de(E.focusVisible,m),ref:n,type:I,id:w?O:C,...A,classes:E,children:[D,x!=="end"&&F,a,x==="end"&&F,M]})});function Fx(e){return ge("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const Lx=e=>{const{classes:t,disableSpacing:n}=e;return me({root:["root",!n&&"spacing"]},Fx,t)},Nx=K("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}}}]}),jx=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...i}=r,a={...r,disableSpacing:s},l=Lx(a);return f.jsx(Nx,{className:de(l.root,o),ownerState:a,ref:n,...i})}),Bx=["onAccept","onClear","onCancel","onSetToday","actions"];function Vx(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=ve(e,Bx),a=Bt();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(jx,j({},i,{children:l}))}const $n=S.createContext({});function _x(e){return ge("MuiList",e)}he("MuiList",["root","padding","dense","subheader"]);const zx=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},_x,t)},Wx=K("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}}]}),od=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]),h={...r,component:i,dense:a,disablePadding:l},v=zx(h);return f.jsx($n.Provider,{value:p,children:f.jsxs(Wx,{as:i,className:de(v.root,s),ref:n,ownerState:h,...u,children:[c,o]})})});function Hx(e){return ge("MuiListItem",e)}he("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Ux=he("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Yx(e){return ge("MuiListItemSecondaryAction",e)}he("MuiListItemSecondaryAction",["root","disableGutters"]);const Gx=e=>{const{disableGutters:t,classes:n}=e;return me({root:["root",t&&"disableGutters"]},Yx,n)},qx=K("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}}]}),sd=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=Gx(a);return f.jsx(qx,{className:de(l.root,o),ownerState:a,ref:n,...s})});sd.muiName="ListItemSecondaryAction";const Kx=(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]},Xx=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"]},Hx,n)},Qx=K("div",{name:"MuiListItem",slot:"Root",overridesResolver:Kx})(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:{[`& > .${Ux.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}}]}))),Zx=K("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Jx=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,...h}={},dense:v=!1,disableGutters:d=!1,disablePadding:m=!1,divider:g=!1,secondaryAction:C,slotProps:w={},slots:y={},...x}=r,P=S.useContext($n),T=S.useMemo(()=>({dense:v||P.dense||!1,alignItems:o,disableGutters:d}),[o,P.dense,v,d]),I=S.useRef(null),R=S.Children.toArray(s),A=R.length&&eo(R[R.length-1],["ListItemSecondaryAction"]),O={...r,alignItems:o,dense:T.dense,disableGutters:d,disablePadding:m,divider:g,hasSecondaryAction:A},$=Xx(O),b=ke(I,n),E=y.root||l.Root||Qx,D=w.root||c.root||{},M={className:de($.root,D.className,i),...x};let k=a||"li";return A?(k=!M.component&&!a?"div":k,u==="li"&&(k==="li"?k="div":M.component==="li"&&(M.component="div")),f.jsx($n.Provider,{value:T,children:f.jsxs(Zx,{as:u,className:de($.container,p),ref:b,ownerState:O,...h,children:[f.jsx(E,{...D,...!jn(E)&&{as:k,ownerState:{...O,...D.ownerState}},...M,children:R}),R.pop()]})})):f.jsx($n.Provider,{value:T,children:f.jsxs(E,{...D,as:k,ref:b,...!jn(E)&&{ownerState:{...O,...D.ownerState}},...M,children:[R,C&&f.jsx(sd,{children:C})]})})}),eS=$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 tS(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},...h}=s,v=u[e]||r,d=zo(p[e],o),{props:{component:m,...g},internalRef:C}=ku({className:n,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:d}),w=ke(C,d?.ref,t.ref),y=e==="root"?m||c:m,x=Pu(v,{...e==="root"&&!c&&!u[e]&&i,...e!=="root"&&!u[e]&&i,...g,...y&&!a&&{as:y},...y&&a&&{component:y},ref:w},o);return[v,x]}const nS=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${ae(r)}`,`color${ae(o)}`,a&&"clickable",a&&`clickableColor${ae(o)}`,i&&"deletable",i&&`deletableColor${ae(o)}`,`${l}${ae(o)}`],label:["label",`label${ae(r)}`],avatar:["avatar",`avatar${ae(r)}`,`avatarColor${ae(o)}`],icon:["icon",`icon${ae(r)}`,`iconColor${ae(s)}`],deleteIcon:["deleteIcon",`deleteIcon${ae(r)}`,`deleteIconColor${ae(o)}`,`deleteIcon${ae(l)}Color${ae(o)}`]};return me(c,tS,t)},rS=K("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${ae(a)}`]},{[`& .${xe.avatar}`]:t[`avatarColor${ae(r)}`]},{[`& .${xe.icon}`]:t.icon},{[`& .${xe.icon}`]:t[`icon${ae(a)}`]},{[`& .${xe.icon}`]:t[`iconColor${ae(o)}`]},{[`& .${xe.deleteIcon}`]:t.deleteIcon},{[`& .${xe.deleteIcon}`]:t[`deleteIcon${ae(a)}`]},{[`& .${xe.deleteIcon}`]:t[`deleteIconColor${ae(r)}`]},{[`& .${xe.deleteIcon}`]:t[`deleteIcon${ae(l)}Color${ae(r)}`]},t.root,t[`size${ae(a)}`],t[`color${ae(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${ae(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${ae(r)}`],t[l],t[`${l}${ae(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}}}}))]}})),oS=K("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ae(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 xl(e){return e.key==="Backspace"||e.key==="Delete"}const id=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:h,onClick:v,onDelete:d,onKeyDown:m,onKeyUp:g,size:C="medium",variant:w="filled",tabIndex:y,skipFocusWhenDisabled:x=!1,slots:P={},slotProps:T={},...I}=r,R=S.useRef(null),A=ke(R,n),O=Q=>{Q.stopPropagation(),d&&d(Q)},$=Q=>{Q.currentTarget===Q.target&&xl(Q)&&Q.preventDefault(),m&&m(Q)},b=Q=>{Q.currentTarget===Q.target&&d&&xl(Q)&&d(Q),g&&g(Q)},E=i!==!1&&v?!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},k=nS(M),F=D===Bn?{component:l||"div",focusVisibleClassName:k.focusVisible,...d&&{disableRipple:!0}}:{};let L=null;d&&(L=c&&S.isValidElement(c)?S.cloneElement(c,{className:de(c.props.className,k.deleteIcon),onClick:O}):f.jsx(eS,{className:k.deleteIcon,onClick:O}));let N=null;o&&S.isValidElement(o)&&(N=S.cloneElement(o,{className:de(k.avatar,o.props.className)}));let U=null;p&&S.isValidElement(p)&&(U=S.cloneElement(p,{className:de(k.icon,p.props.className)}));const J={slots:P,slotProps:T},[re,le]=je("root",{elementType:rS,externalForwardedProps:{...J,...I},ownerState:M,shouldForwardComponentProp:!0,ref:A,className:de(k.root,s),additionalProps:{disabled:E&&u?!0:void 0,tabIndex:x&&u?-1:y,...F},getSlotProps:Q=>({...Q,onClick:G=>{Q.onClick?.(G),v?.(G)},onKeyDown:G=>{Q.onKeyDown?.(G),$(G)},onKeyUp:G=>{Q.onKeyUp?.(G),b(G)}})}),[ie,V]=je("label",{elementType:oS,externalForwardedProps:J,ownerState:M,className:k.label});return f.jsxs(re,{as:D,...le,children:[N||U,f.jsx(ie,{...V,children:h}),L]})}),Tr=36,Go=2,qo=320,sS=280,Oi=336,iS=["items","changeImportance","isLandscape","onChange","isValid"],aS=["getValue"];function lS(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,s=ve(e,iS);if(t==null||t.length===0)return null;const i=t.map(a=>{let{getValue:l}=a,c=ve(a,aS);const u=l({isValid:o});return j({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return f.jsx(od,j({dense:!0,sx:[{maxHeight:Oi,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(a=>f.jsx(Jx,{children:f.jsx(id,j({},a))},a.id??a.label))}))}function cS(e){return e.view!==null}const uS=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"]},nd,t)},dS=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:h,isLandscape:v,disabled:d,readOnly:m,children:g,slots:C,slotProps:w}=e,y=uS(e),x=C?.actionBar??Vx,P=Pe({elementType:x,externalSlotProps:w?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:y.actionBar,ownerState:j({},e,{wrapperVariant:t})}),T=f.jsx(x,j({},P)),I=C?.toolbar,R=Pe({elementType:I,externalSlotProps:w?.toolbar,additionalProps:{isLandscape:v,onChange:u,value:c,view:i,onViewChange:l,views:a,disabled:d,readOnly:m},className:y.toolbar,ownerState:j({},e,{wrapperVariant:t})}),A=cS(R)&&I?f.jsx(I,j({},R)):null,O=g,$=C?.tabs,b=i&&$?f.jsx($,j({view:i,onViewChange:l,className:y.tabs},w?.tabs)):null,E=C?.shortcuts??lS,D=Pe({elementType:E,externalSlotProps:w?.shortcuts,additionalProps:{isValid:h,isLandscape:v,onChange:p},className:y.shortcuts,ownerState:{isValid:h,isLandscape:v,onChange:p,wrapperVariant:t}}),M=i&&E?f.jsx(E,j({},D)):null;return{toolbar:A,content:O,tabs:b,actionBar:T,shortcuts:M}},pS=e=>{const{isLandscape:t,classes:n}=e;return me({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},nd,n)},fS=K("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${en.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${en.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${en.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${en.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${en.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${en.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${en.shortcuts}`]:{gridColumn:3}}}]}),hS=K("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),ad=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:s,tabs:i,actionBar:a,shortcuts:l}=dS(r),{sx:c,className:u,isLandscape:p,wrapperVariant:h}=r,v=pS(r);return f.jsxs(fS,{ref:n,sx:c,className:de(v.root,u),ownerState:r,children:[p?l:o,p?o:l,f.jsx(hS,{className:v.contentWrapper,children:h==="desktop"?f.jsxs(S.Fragment,{children:[s,i]}):f.jsxs(S.Fragment,{children:[i,s]})}),a]})}),mS=S.createContext(null);function ld(e){const{contextValue:t,localeText:n,children:r}=e;return f.jsx(mS.Provider,{value:t,children:f.jsx(vi,{localeText:n,children:r})})}const gS=["props","getOpenDialogAriaText"],yS=["ownerState"],bS=["ownerState"],vS=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,gS);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:h,timezone:v,name:d,label:m,inputRef:g,readOnly:C,disabled:w,autoFocus:y,localeText:x,reduceAnimations:P}=t,T=S.useRef(null),I=S.useRef(null),R=xt(),A=s?.toolbar?.hidden??!1,{open:O,actions:$,hasUIView:b,layoutProps:E,renderCurrentView:D,shouldRestoreFocus:M,fieldProps:k,contextValue:F,ownerState:L}=td(j({},r,{props:t,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),N=o.inputAdornment??ju,U=Pe({elementType:N,externalSlotProps:s?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),J=ve(U,yS),re=o.openPickerButton??Nr,le=Pe({elementType:re,externalSlotProps:s?.openPickerButton,additionalProps:{disabled:w||C,onClick:O?$.onClose:$.onOpen,"aria-label":n(k.value),edge:J.position},ownerState:t}),ie=ve(le,bS),V=o.openPickerIcon,Q=Pe({elementType:V,externalSlotProps:s?.openPickerIcon,ownerState:L}),G=o.field,_=Pe({elementType:G,externalSlotProps:s?.field,additionalProps:j({},k,A&&{id:R},{readOnly:C,disabled:w,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:h,timezone:v,label:m,name:d,autoFocus:y&&!t.open,focused:O?!0:void 0},g?{inputRef:g}:{}),ownerState:t});b&&(_.InputProps=j({},_.InputProps,{ref:T},!t.disableOpenPicker&&{[`${J.position}Adornment`]:f.jsx(N,j({},J,{children:f.jsx(re,j({},ie,{children:f.jsx(V,j({},Q))}))}))}));const z=j({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},_.slots),Z=o.layout??ad;let te=R;A&&(m?te=`${R}-label`:te=void 0);const ee=j({},s,{toolbar:j({},s?.toolbar,{titleId:R}),popper:j({"aria-labelledby":te},s?.popper)}),B=ke(I,_.unstableFieldRef);return{renderPicker:()=>f.jsxs(ld,{contextValue:F,localeText:x,children:[f.jsx(G,j({},_,{slots:z,slotProps:ee,unstableFieldRef:B})),f.jsx(gx,j({role:"dialog",placement:"bottom-start",anchorEl:T.current},$,{open:O,slots:o,slotProps:ee,shouldRestoreFocus:M,reduceAnimations:P,children:f.jsx(Z,j({},E,ee?.layout,{slots:o,slotProps:ee,children:D()}))}))]})}},xS=$e(f.jsx("path",{d:"M7 10l5 5 5-5z"})),SS=$e(f.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),wS=$e(f.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),CS=$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 PS=$e(f.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function Ur(e){return parseInt(e,10)||0}const kS={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function TS(e){for(const t in e)return!1;return!0}function Sl(e){return TS(e)||e.outerHeightStyle===0&&!e.overflowing}const MS=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),h=S.useRef(null),v=S.useRef(null),d=S.useCallback(()=>{const y=u.current,x=v.current;if(!y||!x)return;const T=Lt(y).getComputedStyle(y);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=T.width,x.value=y.value||t.placeholder||"x",x.value.slice(-1)===`
132
+ `:null,Tv=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${ae(r)}`],svg:["svg"],circle:["circle",`circle${ae(n)}`,o&&"circleDisableShrink"]};return me(s,Cv,t)},Mv=K("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ae(n.color)}`]]}})(Ee(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Pv||{animation:`${$s} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Dv=K("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Rv=K("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ae(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:kv||{animation:`${Os} 1.4s ease-in-out infinite`}}]}))),Ci=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",...h}=r,v={...r,color:s,disableShrink:i,size:a,thickness:c,value:u,variant:p},d=Tv(v),m={},g={},C={};if(p==="determinate"){const w=2*Math.PI*((Ut-c)/2);m.strokeDasharray=w.toFixed(3),C["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*w).toFixed(3)}px`,g.transform="rotate(-90deg)"}return f.jsx(Mv,{className:de(d.root,o),style:{width:a,height:a,...g,...l},ownerState:v,ref:n,role:"progressbar",...C,...h,children:f.jsx(Dv,{className:d.svg,ownerState:v,viewBox:`${Ut/2} ${Ut/2} ${Ut} ${Ut}`,children:f.jsx(Rv,{className:d.circle,style:m,ownerState:v,cx:Ut,cy:Ut,r:(Ut-c)/2,fill:"none",strokeWidth:c})})})});function Iv(e){return ge("MuiIconButton",e)}const il=he("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Ev=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${ae(r)}`,o&&`edge${ae(o)}`,`size${ae(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return me(a,Iv,t)},$v=K(Bn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ae(n.color)}`],n.edge&&t[`edge${ae(n.edge)}`],t[`size${ae(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)}}],[`&.${il.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${il.loading}`]:{color:"transparent"}}))),Ov=K("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Nr=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:h=null,loadingIndicator:v,...d}=r,m=xt(p),g=v??f.jsx(Ci,{"aria-labelledby":m,color:"inherit",size:16}),C={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:g,size:u},w=Ev(C);return f.jsxs($v,{id:h?m:p,className:de(w.root,i),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:n,...d,ownerState:C,children:[typeof h=="boolean"&&f.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:f.jsx(Ov,{className:w.loadingIndicator,ownerState:C,children:h&&g})}),s]})}),_u=e=>e.scrollTop;function xo(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 As(e){return`scale(${e}, ${e**2})`}const Av={entering:{opacity:1,transform:As(1)},entered:{opacity:1,transform:"none"}},fs=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Cr=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:h,onExiting:v,style:d,timeout:m="auto",TransitionComponent:g=St,...C}=t,w=fi(),y=S.useRef(),x=gn(),P=S.useRef(null),T=ke(P,Gn(s),n),I=M=>k=>{if(M){const F=P.current;k===void 0?M(F):M(F,k)}},R=I(u),A=I((M,k)=>{_u(M);const{duration:F,delay:L,easing:N}=xo({style:d,timeout:m,easing:i},{mode:"enter"});let U;m==="auto"?(U=x.transitions.getAutoHeightDuration(M.clientHeight),y.current=U):U=F,M.style.transition=[x.transitions.create("opacity",{duration:U,delay:L}),x.transitions.create("transform",{duration:fs?U:U*.666,delay:L,easing:N})].join(","),l&&l(M,k)}),O=I(c),$=I(v),b=I(M=>{const{duration:k,delay:F,easing:L}=xo({style:d,timeout:m,easing:i},{mode:"exit"});let N;m==="auto"?(N=x.transitions.getAutoHeightDuration(M.clientHeight),y.current=N):N=k,M.style.transition=[x.transitions.create("opacity",{duration:N,delay:F}),x.transitions.create("transform",{duration:fs?N:N*.666,delay:fs?F:F||N*.333,easing:L})].join(","),M.style.opacity=0,M.style.transform=As(.75),p&&p(M)}),E=I(h),D=M=>{m==="auto"&&w.start(y.current||0,M),r&&r(P.current,M)};return f.jsx(g,{appear:o,in:a,nodeRef:P,onEnter:A,onEntered:O,onEntering:R,onExit:b,onExited:E,onExiting:$,addEndListener:D,timeout:m==="auto"?null:m,...C,children:(M,{ownerState:k,...F})=>S.cloneElement(s,{style:{opacity:0,transform:As(.75),visibility:M==="exited"&&!a?"hidden":void 0,...Av[M],...d,...s.props.style},ref:T,...F})})});Cr&&(Cr.muiSupportAuto=!0);const Fv={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:h,onExit:v,onExited:d,onExiting:m,style:g,timeout:C=o,TransitionComponent:w=St,...y}=t,x=S.useRef(null),P=ke(x,Gn(a),n),T=D=>M=>{if(D){const k=x.current;M===void 0?D(k):D(k,M)}},I=T(h),R=T((D,M)=>{_u(D);const k=xo({style:g,timeout:C,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",k),D.style.transition=r.transitions.create("opacity",k),u&&u(D,M)}),A=T(p),O=T(m),$=T(D=>{const M=xo({style:g,timeout:C,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",M),D.style.transition=r.transitions.create("opacity",M),v&&v(D)}),b=T(d),E=D=>{s&&s(x.current,D)};return f.jsx(w,{appear:i,in:c,nodeRef:x,onEnter:R,onEntered:A,onEntering:I,onExit:$,onExited:b,onExiting:O,addEndListener:E,timeout:C,...y,children:(D,{ownerState:M,...k})=>S.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...Fv[D],...g,...a.props.style},ref:P,...k})})});function Lv(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 Nv=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return me(s,Lv,o)},jv=K("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ee(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),jr=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},h=Nv(p);return f.jsx(jv,{as:i,ownerState:p,className:de(h.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(${fo("#fff",Ss(a))}, ${fo("#fff",Ss(a))})`}},...u.style}})});var Qe="top",ct="bottom",ut="right",Ze="left",Pi="auto",Br=[Qe,ct,ut,Ze],Vn="start",Pr="end",Bv="clippingParents",zu="viewport",er="popper",Vv="reference",al=Br.reduce(function(e,t){return e.concat([t+"-"+Vn,t+"-"+Pr])},[]),Wu=[].concat(Br,[Pi]).reduce(function(e,t){return e.concat([t,t+"-"+Vn,t+"-"+Pr])},[]),_v="beforeRead",zv="read",Wv="afterRead",Hv="beforeMain",Uv="main",Yv="afterMain",Gv="beforeWrite",qv="write",Kv="afterWrite",Xv=[_v,zv,Wv,Hv,Uv,Yv,Gv,qv,Kv];function It(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 ki(e){if(typeof ShadowRoot>"u")return!1;var t=et(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Qv(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)||!It(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 Zv(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)||!It(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const Jv={name:"applyStyles",enabled:!0,phase:"write",fn:Qv,effect:Zv,requires:["computeStyles"]};function Mt(e){return e.split("-")[0]}var dn=Math.max,So=Math.min,_n=Math.round;function Fs(){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 Hu(){return!/^((?!chrome|android).)*safari/i.test(Fs())}function zn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&at(e)&&(o=e.offsetWidth>0&&_n(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&_n(r.height)/e.offsetHeight||1);var i=hn(e)?et(e):window,a=i.visualViewport,l=!Hu()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,p=r.width/o,h=r.height/s;return{width:p,height:h,top:u,right:c+p,bottom:u+h,left:c,x:c,y:u}}function Ti(e){var t=zn(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Uu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ki(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Nt(e){return et(e).getComputedStyle(e)}function e0(e){return["table","td","th"].indexOf(It(e))>=0}function Zt(e){return((hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yo(e){return It(e)==="html"?e:e.assignedSlot||e.parentNode||(ki(e)?e.host:null)||Zt(e)}function ll(e){return!at(e)||Nt(e).position==="fixed"?null:e.offsetParent}function t0(e){var t=/firefox/i.test(Fs()),n=/Trident/i.test(Fs());if(n&&at(e)){var r=Nt(e);if(r.position==="fixed")return null}var o=Yo(e);for(ki(o)&&(o=o.host);at(o)&&["html","body"].indexOf(It(o))<0;){var s=Nt(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Vr(e){for(var t=et(e),n=ll(e);n&&e0(n)&&Nt(n).position==="static";)n=ll(n);return n&&(It(n)==="html"||It(n)==="body"&&Nt(n).position==="static")?t:n||t0(e)||t}function Mi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mr(e,t,n){return dn(e,So(t,n))}function n0(e,t,n){var r=mr(e,t,n);return r>n?n:r}function Yu(){return{top:0,right:0,bottom:0,left:0}}function Gu(e){return Object.assign({},Yu(),e)}function qu(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var r0=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Gu(typeof t!="number"?t:qu(t,Br))};function o0(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=Mi(a),c=[Ze,ut].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var p=r0(o.padding,n),h=Ti(s),v=l==="y"?Qe:Ze,d=l==="y"?ct:ut,m=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],g=i[l]-n.rects.reference[l],C=Vr(s),w=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,y=m/2-g/2,x=p[v],P=w-h[u]-p[d],T=w/2-h[u]/2+y,I=mr(x,T,P),R=l;n.modifiersData[r]=(t={},t[R]=I,t.centerOffset=I-T,t)}}function s0(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)||Uu(t.elements.popper,o)&&(t.elements.arrow=o))}const i0={name:"arrow",enabled:!0,phase:"main",fn:o0,effect:s0,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wn(e){return e.split("-")[1]}var a0={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l0(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:_n(n*o)/o||0,y:_n(r*o)/o||0}}function cl(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,h=i.x,v=h===void 0?0:h,d=i.y,m=d===void 0?0:d,g=typeof u=="function"?u({x:v,y:m}):{x:v,y:m};v=g.x,m=g.y;var C=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),y=Ze,x=Qe,P=window;if(c){var T=Vr(n),I="clientHeight",R="clientWidth";if(T===et(n)&&(T=Zt(n),Nt(T).position!=="static"&&a==="absolute"&&(I="scrollHeight",R="scrollWidth")),T=T,o===Qe||(o===Ze||o===ut)&&s===Pr){x=ct;var A=p&&T===P&&P.visualViewport?P.visualViewport.height:T[I];m-=A-r.height,m*=l?1:-1}if(o===Ze||(o===Qe||o===ct)&&s===Pr){y=ut;var O=p&&T===P&&P.visualViewport?P.visualViewport.width:T[R];v-=O-r.width,v*=l?1:-1}}var $=Object.assign({position:a},c&&a0),b=u===!0?l0({x:v,y:m},et(n)):{x:v,y:m};if(v=b.x,m=b.y,l){var E;return Object.assign({},$,(E={},E[x]=w?"0":"",E[y]=C?"0":"",E.transform=(P.devicePixelRatio||1)<=1?"translate("+v+"px, "+m+"px)":"translate3d("+v+"px, "+m+"px, 0)",E))}return Object.assign({},$,(t={},t[x]=w?m+"px":"",t[y]=C?v+"px":"",t.transform="",t))}function c0(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,cl(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,cl(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 u0={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:c0,data:{}};var Hr={passive:!0};function d0(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,a=i===void 0?!0:i,l=et(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,Hr)}),a&&l.addEventListener("resize",n.update,Hr),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Hr)}),a&&l.removeEventListener("resize",n.update,Hr)}}const p0={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:d0,data:{}};var f0={left:"right",right:"left",bottom:"top",top:"bottom"};function uo(e){return e.replace(/left|right|bottom|top/g,function(t){return f0[t]})}var h0={start:"end",end:"start"};function ul(e){return e.replace(/start|end/g,function(t){return h0[t]})}function Di(e){var t=et(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ri(e){return zn(Zt(e)).left+Di(e).scrollLeft}function m0(e,t){var n=et(e),r=Zt(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=Hu();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+Ri(e),y:l}}function g0(e){var t,n=Zt(e),r=Di(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+Ri(e),l=-r.scrollTop;return Nt(o||n).direction==="rtl"&&(a+=dn(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function Ii(e){var t=Nt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ku(e){return["html","body","#document"].indexOf(It(e))>=0?e.ownerDocument.body:at(e)&&Ii(e)?e:Ku(Yo(e))}function gr(e,t){var n;t===void 0&&(t=[]);var r=Ku(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=et(r),i=o?[s].concat(s.visualViewport||[],Ii(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(gr(Yo(i)))}function Ls(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function y0(e,t){var n=zn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function dl(e,t,n){return t===zu?Ls(m0(e,n)):hn(t)?y0(t,n):Ls(g0(Zt(e)))}function b0(e){var t=gr(Yo(e)),n=["absolute","fixed"].indexOf(Nt(e).position)>=0,r=n&&at(e)?Vr(e):e;return hn(r)?t.filter(function(o){return hn(o)&&Uu(o,r)&&It(o)!=="body"}):[]}function v0(e,t,n,r){var o=t==="clippingParents"?b0(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=dl(e,c,r);return l.top=dn(u.top,l.top),l.right=So(u.right,l.right),l.bottom=So(u.bottom,l.bottom),l.left=dn(u.left,l.left),l},dl(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 Xu(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?Mi(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 Pr:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function kr(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?Bv:a,c=n.rootBoundary,u=c===void 0?zu:c,p=n.elementContext,h=p===void 0?er:p,v=n.altBoundary,d=v===void 0?!1:v,m=n.padding,g=m===void 0?0:m,C=Gu(typeof g!="number"?g:qu(g,Br)),w=h===er?Vv:er,y=e.rects.popper,x=e.elements[d?w:h],P=v0(hn(x)?x:x.contextElement||Zt(e.elements.popper),l,u,i),T=zn(e.elements.reference),I=Xu({reference:T,element:y,placement:o}),R=Ls(Object.assign({},y,I)),A=h===er?R:T,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(h===er&&$){var b=$[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]+=b[M]*D})}return O}function x0(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?Wu:l,u=Wn(r),p=u?a?al:al.filter(function(d){return Wn(d)===u}):Br,h=p.filter(function(d){return c.indexOf(d)>=0});h.length===0&&(h=p);var v=h.reduce(function(d,m){return d[m]=kr(e,{placement:m,boundary:o,rootBoundary:s,padding:i})[Mt(m)],d},{});return Object.keys(v).sort(function(d,m){return v[d]-v[m]})}function S0(e){if(Mt(e)===Pi)return[];var t=uo(e);return[ul(e),t,ul(t)]}function w0(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,h=n.altBoundary,v=n.flipVariations,d=v===void 0?!0:v,m=n.allowedAutoPlacements,g=t.options.placement,C=Mt(g),w=C===g,y=l||(w||!d?[uo(g)]:S0(g)),x=[g].concat(y).reduce(function(ie,V){return ie.concat(Mt(V)===Pi?x0(t,{placement:V,boundary:u,rootBoundary:p,padding:c,flipVariations:d,allowedAutoPlacements:m}):V)},[]),P=t.rects.reference,T=t.rects.popper,I=new Map,R=!0,A=x[0],O=0;O<x.length;O++){var $=x[O],b=Mt($),E=Wn($)===Vn,D=[Qe,ct].indexOf(b)>=0,M=D?"width":"height",k=kr(t,{placement:$,boundary:u,rootBoundary:p,altBoundary:h,padding:c}),F=D?E?ut:Ze:E?ct:Qe;P[M]>T[M]&&(F=uo(F));var L=uo(F),N=[];if(s&&N.push(k[b]<=0),a&&N.push(k[F]<=0,k[L]<=0),N.every(function(ie){return ie})){A=$,R=!1;break}I.set($,N)}if(R)for(var U=d?3:1,J=function(V){var Q=x.find(function(G){var _=I.get(G);if(_)return _.slice(0,V).every(function(z){return z})});if(Q)return A=Q,"break"},re=U;re>0;re--){var le=J(re);if(le==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const C0={name:"flip",enabled:!0,phase:"main",fn:w0,requiresIfExists:["offset"],data:{_skip:!1}};function pl(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 fl(e){return[Qe,ut,ct,Ze].some(function(t){return e[t]>=0})}function P0(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=kr(t,{elementContext:"reference"}),a=kr(t,{altBoundary:!0}),l=pl(i,r),c=pl(a,o,s),u=fl(l),p=fl(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 k0={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:P0};function T0(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 M0(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=Wu.reduce(function(u,p){return u[p]=T0(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 D0={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:M0};function R0(e){var t=e.state,n=e.name;t.modifiersData[n]=Xu({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const I0={name:"popperOffsets",enabled:!0,phase:"read",fn:R0,data:{}};function E0(e){return e==="x"?"y":"x"}function $0(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,h=n.tether,v=h===void 0?!0:h,d=n.tetherOffset,m=d===void 0?0:d,g=kr(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),C=Mt(t.placement),w=Wn(t.placement),y=!w,x=Mi(C),P=E0(x),T=t.modifiersData.popperOffsets,I=t.rects.reference,R=t.rects.popper,A=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,O=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,b={x:0,y:0};if(T){if(s){var E,D=x==="y"?Qe:Ze,M=x==="y"?ct:ut,k=x==="y"?"height":"width",F=T[x],L=F+g[D],N=F-g[M],U=v?-R[k]/2:0,J=w===Vn?I[k]:R[k],re=w===Vn?-R[k]:-I[k],le=t.elements.arrow,ie=v&&le?Ti(le):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Yu(),Q=V[D],G=V[M],_=mr(0,I[k],ie[k]),z=y?I[k]/2-U-_-Q-O.mainAxis:J-_-Q-O.mainAxis,Z=y?-I[k]/2+U+_+G+O.mainAxis:re+_+G+O.mainAxis,te=t.elements.arrow&&Vr(t.elements.arrow),ee=te?x==="y"?te.clientTop||0:te.clientLeft||0:0,B=(E=$?.[x])!=null?E:0,X=F+z-B-ee,oe=F+Z-B,ne=mr(v?So(L,X):L,F,v?dn(N,oe):N);T[x]=ne,b[x]=ne-F}if(a){var ce,se=x==="x"?Qe:Ze,fe=x==="x"?ct:ut,be=T[P],we=P==="y"?"height":"width",pe=be+g[se],qe=be-g[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=v&&Be?n0(mt,be,nt):mr(v?mt:pe,be,v?nt:qe);T[P]=rt,b[P]=rt-be}t.modifiersData[r]=b}}const O0={name:"preventOverflow",enabled:!0,phase:"main",fn:$0,requiresIfExists:["offset"]};function A0(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function F0(e){return e===et(e)||!at(e)?Di(e):A0(e)}function L0(e){var t=e.getBoundingClientRect(),n=_n(t.width)/e.offsetWidth||1,r=_n(t.height)/e.offsetHeight||1;return n!==1||r!==1}function N0(e,t,n){n===void 0&&(n=!1);var r=at(t),o=at(t)&&L0(t),s=Zt(t),i=zn(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((It(t)!=="body"||Ii(s))&&(a=F0(t)),at(t)?(l=zn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Ri(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function j0(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 B0(e){var t=j0(e);return Xv.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function V0(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function _0(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 hl={placement:"bottom",modifiers:[],strategy:"absolute"};function ml(){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 z0(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?hl:o;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},hl,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],h=!1,v={state:u,setOptions:function(C){var w=typeof C=="function"?C(u.options):C;m(),u.options=Object.assign({},s,u.options,w),u.scrollParents={reference:hn(a)?gr(a):a.contextElement?gr(a.contextElement):[],popper:gr(l)};var y=B0(_0([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(x){return x.enabled}),d(),v.update()},forceUpdate:function(){if(!h){var C=u.elements,w=C.reference,y=C.popper;if(ml(w,y)){u.rects={reference:N0(w,Vr(y),u.options.strategy==="fixed"),popper:Ti(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var P=u.orderedModifiers[x],T=P.fn,I=P.options,R=I===void 0?{}:I,A=P.name;typeof T=="function"&&(u=T({state:u,options:R,name:A,instance:v})||u)}}}},update:V0(function(){return new Promise(function(g){v.forceUpdate(),g(u)})}),destroy:function(){m(),h=!0}};if(!ml(a,l))return v;v.setOptions(c).then(function(g){!h&&c.onFirstUpdate&&c.onFirstUpdate(g)});function d(){u.orderedModifiers.forEach(function(g){var C=g.name,w=g.options,y=w===void 0?{}:w,x=g.effect;if(typeof x=="function"){var P=x({state:u,name:C,instance:v,options:y}),T=function(){};p.push(P||T)}})}function m(){p.forEach(function(g){return g()}),p=[]}return v}}var W0=[p0,I0,u0,Jv,D0,C0,O0,i0,k0],H0=z0({defaultModifiers:W0});function U0(e){return typeof e=="function"?e():e}const Qu=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(U0(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&&Yp.createPortal(r,i)});function Y0(e){return ge("MuiPopper",e)}he("MuiPopper",["root"]);function G0(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 Ns(e){return typeof e=="function"?e():e}function q0(e){return e.nodeType!==void 0}const K0=e=>{const{classes:t}=e;return me({root:["root"]},Y0,t)},X0={},Q0=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:h={},slots:v={},TransitionProps:d,ownerState:m,...g}=t,C=S.useRef(null),w=ke(C,n),y=S.useRef(null),x=ke(y,p),P=S.useRef(x);Ue(()=>{P.current=x},[x]),S.useImperativeHandle(p,()=>y.current,[]);const T=G0(c,s),[I,R]=S.useState(T),[A,O]=S.useState(Ns(r));S.useEffect(()=>{y.current&&y.current.forceUpdate()}),S.useEffect(()=>{r&&O(Ns(r))},[r]),Ue(()=>{if(!A||!l)return;const M=L=>{R(L.placement)};let k=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{M(L)}}];a!=null&&(k=k.concat(a)),u&&u.modifiers!=null&&(k=k.concat(u.modifiers));const F=H0(A,C.current,{placement:T,...u,modifiers:k});return P.current(F),()=>{F.destroy(),P.current(null)}},[A,i,a,l,u,T]);const $={placement:I};d!==null&&($.TransitionProps=d);const b=K0(t),E=v.root??"div",D=Pe({elementType:E,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:b.root});return f.jsx(E,{...D,children:typeof o=="function"?o($):o})}),Z0=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:h=X0,popperRef:v,style:d,transition:m=!1,slotProps:g={},slots:C={},...w}=t,[y,x]=S.useState(!0),P=()=>{x(!1)},T=()=>{x(!0)};if(!l&&!u&&(!m||y))return null;let I;if(s)I=s;else if(r){const O=Ns(r);I=O&&q0(O)?Ye(O).body:Ye(null).body}const R=!u&&l&&(!m||y)?"none":void 0,A=m?{in:u,onEnter:P,onExited:T}:void 0;return f.jsx(Qu,{disablePortal:a,container:I,children:f.jsx(Q0,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:n,open:m?!y:u,placement:p,popperOptions:h,popperRef:v,slotProps:g,slots:C,...w,style:{position:"fixed",top:0,left:0,display:R,...d},TransitionProps:A,children:o})})}),J0=K(Z0,{name:"MuiPopper",slot:"Root"})({}),Zu=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:h,open:v,placement:d,popperOptions:m,popperRef:g,transition:C,slots:w,slotProps:y,...x}=o,P=w?.root??a?.Root,T={anchorEl:s,container:c,disablePortal:u,keepMounted:p,modifiers:h,open:v,placement:d,popperOptions:m,popperRef:g,transition:C,...x};return f.jsx(J0,{as:i,direction:r?"rtl":"ltr",slots:{root:P},slotProps:y??l,...T,ref:n})}),ex=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function tx(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 nx(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 rx(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||nx(e))}function ox(e){const t=[],n=[];return Array.from(e.querySelectorAll(ex)).forEach((r,o)=>{const s=tx(r);s===-1||!rx(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 sx(){return!0}function Ju(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=ox,isEnabled:i=sx,open:a}=e,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(null),p=S.useRef(null),h=S.useRef(null),v=S.useRef(!1),d=S.useRef(null),m=ke(Gn(t),d),g=S.useRef(null);S.useEffect(()=>{!a||!d.current||(v.current=!n)},[n,a]),S.useEffect(()=>{if(!a||!d.current)return;const y=Ye(d.current);return d.current.contains(y.activeElement)||(d.current.hasAttribute("tabIndex")||d.current.setAttribute("tabIndex","-1"),v.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 y=Ye(d.current),x=I=>{g.current=I,!(r||!i()||I.key!=="Tab")&&y.activeElement===d.current&&I.shiftKey&&(l.current=!0,u.current&&u.current.focus())},P=()=>{const I=d.current;if(I===null)return;if(!y.hasFocus()||!i()||l.current){l.current=!1;return}if(I.contains(y.activeElement)||r&&y.activeElement!==c.current&&y.activeElement!==u.current)return;if(y.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!v.current)return;let R=[];if((y.activeElement===c.current||y.activeElement===u.current)&&(R=s(d.current)),R.length>0){const A=!!(g.current?.shiftKey&&g.current?.key==="Tab"),O=R[0],$=R[R.length-1];typeof O!="string"&&typeof $!="string"&&(A?$.focus():O.focus())}else I.focus()};y.addEventListener("focusin",P),y.addEventListener("keydown",x,!0);const T=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(T),y.removeEventListener("focusin",P),y.removeEventListener("keydown",x,!0)}},[n,r,o,i,a,s]);const C=y=>{p.current===null&&(p.current=y.relatedTarget),v.current=!0,h.current=y.target;const x=t.props.onFocus;x&&x(y)},w=y=>{p.current===null&&(p.current=y.relatedTarget),v.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:m,onFocus:C}),f.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:u,"data-testid":"sentinelEnd"})]})}function ix(e){return ge("MuiPickersPopper",e)}he("MuiPickersPopper",["root","paper"]);function ax(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const lx=(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},cx="@media (pointer: fine)",ux="@media (prefers-reduced-motion: reduce)",En=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),gl=En&&En[1]?parseInt(En[1],10):null,yl=En&&En[2]?parseInt(En[2],10):null,dx=gl&&gl<10||yl&&yl<13||!1,ed=()=>Su(ux,{defaultMatches:!1})||dx,px=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],fx=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},ix,t)},hx=K(Zu,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),mx=K(jr,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function gx(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function yx(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&&gx(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 bx=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,px),p=j({},o,{placement:r}),h=Pe({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:p});return f.jsx(n,j({},u,h,{onClick:v=>{l(v),h.onClick?.(v)},onTouchStart:v=>{c(v),h.onTouchStart?.(v)},ownerState:p,children:s}))});function vx(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:h,reduceAnimations:v}=t;S.useEffect(()=>{function M(k){l&&k.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[m,g,C]=yx(l,i??a),w=S.useRef(null),y=ke(w,o),x=ke(y,m),P=t,T=fx(P),I=ed(),R=v??I,A=M=>{M.key==="Escape"&&(M.stopPropagation(),a())},O=p?.desktopTransition??R?fn:Cr,$=p?.desktopTrapFocus??Ju,b=p?.desktopPaper??mx,E=p?.popper??hx,D=Pe({elementType:E,externalSlotProps:h?.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:A},className:T.root,ownerState:t});return f.jsx(E,j({},D,{children:({TransitionProps:M,placement:k})=>f.jsx($,j({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},h?.desktopTrapFocus,{children:f.jsx(O,j({},M,h?.desktopTransition,{children:f.jsx(bx,{PaperComponent:b,ownerState:P,popperPlacement:k,ref:x,onPaperClick:g,onPaperTouchStart:C,paperClasses:T.paper,paperSlotProps:h?.desktopPaper,children:r})}))}))}))}const xx=({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}},Ei=({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 h=S.useMemo(()=>s.setTimezone(i,p,l),[s,i,p,l]),v=ue((d,...m)=>{const g=u(d);o?.(g,...m)});return{value:h,handleValueChange:v,timezone:p}},$i=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:s,valueManager:i})=>{const[a,l]=Dt({name:e,state:"value",controlled:n,default:r??i.emptyValue}),c=ue((u,...p)=>{l(u),s?.(u,...p)});return Ei({timezone:t,value:a,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:i})},Sx=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?s?!0:n(r.lastPublishedValue):!1},wx=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},Cx=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},Px=({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:h}=S.useRef(l),{current:v}=S.useRef(a!==void 0),[d,m]=S.useState(u),g=Le(),C=yn(),{isOpen:w,setIsOpen:y}=xx(e),{timezone:x,value:P,handleValueChange:T}=Ei({timezone:u,value:a,defaultValue:h,referenceDate:p,onChange:i,valueManager:t}),[I,R]=S.useState(()=>{let z;return P!==void 0?z=P:h!==void 0?z=h:z=t.emptyValue,{draft:z,lastPublishedValue:z,lastCommittedValue:z,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),A=t.getTimezone(g,I.draft);d!==u&&(m(u),u&&A&&u!==A&&R(z=>j({},z,{draft:t.setTimezone(g,u,z.draft)})));const{getValidationErrorForNewValue:O}=ju({props:e,validator:o,timezone:x,value:I.draft,onError:e.onError}),$=ue(z=>{const Z={action:z,dateState:I,hasChanged:ne=>!t.areValuesEqual(g,z.value,ne),isControlled:v,closeOnSelect:c},te=Sx(Z),ee=wx(Z),B=Cx(Z);R(ne=>j({},ne,{draft:z.value,lastPublishedValue:te?z.value:ne.lastPublishedValue,lastCommittedValue:ee?z.value:ne.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let X=null;const oe=()=>(X||(X={validationError:z.name==="setValueFromField"?z.context.validationError:O(z.value)},z.name==="setValueFromShortcut"&&(X.shortcut=z.shortcut)),X);te&&T(z.value,oe()),ee&&s&&s(z.value,oe()),B&&y(!1)});if(I.lastControlledValue!==a){const z=t.areValuesEqual(g,I.draft,P);R(Z=>j({},Z,{lastControlledValue:a},z?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,hasBeenModifiedSinceMount:!0}))}const b=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"})}),k=ue(()=>{$({value:t.getTodayValue(g,x,n),name:"setValueFromAction",pickerAction:"today"})}),F=ue(z=>{z.preventDefault(),y(!0)}),L=ue(z=>{z?.preventDefault(),y(!1)}),N=ue((z,Z="partial")=>$({name:"setValueFromView",value:z,selectionState:Z})),U=ue((z,Z,te)=>$({name:"setValueFromShortcut",value:z,changeImportance:Z,shortcut:te})),J=ue((z,Z)=>$({name:"setValueFromField",value:z,context:Z})),re={onClear:b,onAccept:E,onDismiss:D,onCancel:M,onSetToday:k,onOpen:F,onClose:L},le={value:I.draft,onChange:J},ie=S.useMemo(()=>t.cleanValue(g,I.draft),[g,t,I.draft]),V={value:ie,onChange:N,onClose:L,open:w},G=j({},re,{value:ie,onChange:N,onSelectShortcut:U,isValid:z=>{const Z=o({adapter:C,value:z,timezone:x,props:e});return!t.hasError(Z)}}),_=S.useMemo(()=>({onOpen:F,onClose:L,open:w}),[w,L,F]);return{open:w,fieldProps:le,viewProps:V,layoutProps:G,actions:re,contextValue:_}};function td({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,h]=Dt({name:"useViews",state:"view",controlled:r,default:u.current}),v=S.useRef(s?p:null),[d,m]=Dt({name:"useViews",state:"focusedView",controlled:i,default:v.current});S.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(I=>!o.includes(I)))&&(h(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,h,p,o]);const g=o.indexOf(p),C=o[g-1]??null,w=o[g+1]??null,y=ue((I,R)=>{m(R?I:A=>I===A?null:A),a?.(I,R)}),x=ue(I=>{y(I,!0),I!==p&&(h(I),t&&t(I))}),P=ue(()=>{w&&x(w)}),T=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&&x(E)}else O&&P()});return{view:p,setView:x,focusedView:d,setFocusedView:y,nextView:w,previousView:C,defaultView:o.includes(n)?n:o[0],goToNextView:P,setValueAndGoToNextView:T}}const kx=["className","sx"],Tx=({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:h,viewRenderers:v,timezone:d}=e,m=ve(e,kx),{view:g,setView:C,defaultView:w,focusedView:y,setFocusedView:x,setValueAndGoToNextView:P}=td({view:c,views:u,openTo:p,onChange:i,onViewChange:h,autoFocus:r}),{hasUIView:T,viewModeLookup:I}=S.useMemo(()=>u.reduce((D,M)=>{let k;return v[M]!=null?k="UI":k="field",D.viewModeLookup[M]=k,k==="UI"&&(D.hasUIView=!0),D},{hasUIView:!1,viewModeLookup:{}}),[v,u]),R=S.useMemo(()=>u.reduce((D,M)=>v[M]!=null&&rb(M)?D+1:D,0),[v,u]),A=I[g],O=ue(()=>A==="UI"),[$,b]=S.useState(A==="UI"?g:null);return $!==g&&I[g]==="UI"&&b(g),Ue(()=>{A==="field"&&a&&(l(),setTimeout(()=>{s?.current?.setSelectedSections(g),s?.current?.focusField(g)}))},[g]),Ue(()=>{if(!a)return;let D=g;A==="field"&&$!=null&&(D=$),D!==w&&I[D]==="UI"&&I[w]==="UI"&&(D=w),D!==g&&C(D),x(D,!0)},[a]),{hasUIView:T,shouldRestoreFocus:O,layoutProps:{views:u,view:$,onViewChange:C},renderCurrentView:()=>{if($==null)return null;const D=v[$];if(D==null)return null;const M=j({},m,n,t,{views:u,timezone:d,onChange:P,view:$,onViewChange:C,focusedView:y,onFocusedViewChange:x,showViewSwitcher:R>1,timeViewsCount:R});return o?o(v,$,M):D(M)}}};function bl(){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 Mx=(e,t)=>{const[n,r]=S.useState(bl);return Ue(()=>{const s=()=>{r(bl())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),ax(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Dx=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=Mx(n.views,o),i=vt();return{layoutProps:j({},n,t,{isLandscape:s,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function Rx(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 nd=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:s,autoFocusView:i,rendererInterceptor:a,fieldRef:l})=>{const c=Px({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=Tx({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),p=Dx({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),h=Rx({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:h}};function rd(e){return ge("MuiPickersLayout",e)}const en=he("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Ix(e){return ge("MuiButton",e)}const tn=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"]),Ex=S.createContext({}),$x=S.createContext(void 0),Ox=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}${ae(t)}`,`size${ae(o)}`,`${s}Size${ae(o)}`,`color${ae(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${ae(a)}`],startIcon:["icon","startIcon",`iconSize${ae(o)}`],endIcon:["icon","endIcon",`iconSize${ae(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=me(c,Ix,l);return{...l,...u}},od=[{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}}}],Ax=K(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}${ae(n.color)}`],t[`size${ae(n.size)}`],t[`${n.variant}Size${ae(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"},[`&.${tn.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]},[`&.${tn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${tn.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)",[`&.${tn.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"},[`&.${tn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${tn.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}),[`&.${tn.loading}`]:{color:"transparent"}}}]}})),Fx=K("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ae(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}},...od]})),Lx=K("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ae(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}},...od]})),Nx=K("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}}]})),vl=K("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),pr=S.forwardRef(function(t,n){const r=S.useContext(Ex),o=S.useContext($x),s=Sr(r,t),i=Ce({props:s,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:v=!1,endIcon:d,focusVisibleClassName:m,fullWidth:g=!1,id:C,loading:w=null,loadingIndicator:y,loadingPosition:x="center",size:P="medium",startIcon:T,type:I,variant:R="text",...A}=i,O=xt(C),$=y??f.jsx(Ci,{"aria-labelledby":O,color:"inherit",size:16}),b={...i,color:l,component:c,disabled:p,disableElevation:h,disableFocusRipple:v,fullWidth:g,loading:w,loadingIndicator:$,loadingPosition:x,size:P,type:I,variant:R},E=Ox(b),D=(T||w&&x==="start")&&f.jsx(Fx,{className:E.startIcon,ownerState:b,children:T||f.jsx(vl,{className:E.loadingIconPlaceholder,ownerState:b})}),M=(d||w&&x==="end")&&f.jsx(Lx,{className:E.endIcon,ownerState:b,children:d||f.jsx(vl,{className:E.loadingIconPlaceholder,ownerState:b})}),k=o||"",F=typeof w=="boolean"?f.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:w&&f.jsx(Nx,{className:E.loadingIndicator,ownerState:b,children:$})}):null;return f.jsxs(Ax,{ownerState:b,className:de(r.className,E.root,u,k),component:c,disabled:p||w,focusRipple:!v,focusVisibleClassName:de(E.focusVisible,m),ref:n,type:I,id:w?O:C,...A,classes:E,children:[D,x!=="end"&&F,a,x==="end"&&F,M]})});function jx(e){return ge("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const Bx=e=>{const{classes:t,disableSpacing:n}=e;return me({root:["root",!n&&"spacing"]},jx,t)},Vx=K("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=Bx(a);return f.jsx(Vx,{className:de(l.root,o),ownerState:a,ref:n,...i})}),zx=["onAccept","onClear","onCancel","onSetToday","actions"];function Wx(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=ve(e,zx),a=Bt();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,j({},i,{children:l}))}const $n=S.createContext({});function Hx(e){return ge("MuiList",e)}he("MuiList",["root","padding","dense","subheader"]);const Ux=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Hx,t)},Yx=K("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}}]}),sd=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]),h={...r,component:i,dense:a,disablePadding:l},v=Ux(h);return f.jsx($n.Provider,{value:p,children:f.jsxs(Yx,{as:i,className:de(v.root,s),ref:n,ownerState:h,...u,children:[c,o]})})});function Gx(e){return ge("MuiListItem",e)}he("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const qx=he("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Kx(e){return ge("MuiListItemSecondaryAction",e)}he("MuiListItemSecondaryAction",["root","disableGutters"]);const Xx=e=>{const{disableGutters:t,classes:n}=e;return me({root:["root",t&&"disableGutters"]},Kx,n)},Qx=K("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}}]}),id=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=Xx(a);return f.jsx(Qx,{className:de(l.root,o),ownerState:a,ref:n,...s})});id.muiName="ListItemSecondaryAction";const Zx=(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]},Jx=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"]},Gx,n)},eS=K("div",{name:"MuiListItem",slot:"Root",overridesResolver:Zx})(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:{[`& > .${qx.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}}]}))),tS=K("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),nS=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,...h}={},dense:v=!1,disableGutters:d=!1,disablePadding:m=!1,divider:g=!1,secondaryAction:C,slotProps:w={},slots:y={},...x}=r,P=S.useContext($n),T=S.useMemo(()=>({dense:v||P.dense||!1,alignItems:o,disableGutters:d}),[o,P.dense,v,d]),I=S.useRef(null),R=S.Children.toArray(s),A=R.length&&eo(R[R.length-1],["ListItemSecondaryAction"]),O={...r,alignItems:o,dense:T.dense,disableGutters:d,disablePadding:m,divider:g,hasSecondaryAction:A},$=Jx(O),b=ke(I,n),E=y.root||l.Root||eS,D=w.root||c.root||{},M={className:de($.root,D.className,i),...x};let k=a||"li";return A?(k=!M.component&&!a?"div":k,u==="li"&&(k==="li"?k="div":M.component==="li"&&(M.component="div")),f.jsx($n.Provider,{value:T,children:f.jsxs(tS,{as:u,className:de($.container,p),ref:b,ownerState:O,...h,children:[f.jsx(E,{...D,...!jn(E)&&{as:k,ownerState:{...O,...D.ownerState}},...M,children:R}),R.pop()]})})):f.jsx($n.Provider,{value:T,children:f.jsxs(E,{...D,as:k,ref:b,...!jn(E)&&{ownerState:{...O,...D.ownerState}},...M,children:[R,C&&f.jsx(id,{children:C})]})})}),rS=$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 oS(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},...h}=s,v=u[e]||r,d=zo(p[e],o),{props:{component:m,...g},internalRef:C}=Tu({className:n,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:d}),w=ke(C,d?.ref,t.ref),y=e==="root"?m||c:m,x=ku(v,{...e==="root"&&!c&&!u[e]&&i,...e!=="root"&&!u[e]&&i,...g,...y&&!a&&{as:y},...y&&a&&{component:y},ref:w},o);return[v,x]}const sS=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${ae(r)}`,`color${ae(o)}`,a&&"clickable",a&&`clickableColor${ae(o)}`,i&&"deletable",i&&`deletableColor${ae(o)}`,`${l}${ae(o)}`],label:["label",`label${ae(r)}`],avatar:["avatar",`avatar${ae(r)}`,`avatarColor${ae(o)}`],icon:["icon",`icon${ae(r)}`,`iconColor${ae(s)}`],deleteIcon:["deleteIcon",`deleteIcon${ae(r)}`,`deleteIconColor${ae(o)}`,`deleteIcon${ae(l)}Color${ae(o)}`]};return me(c,oS,t)},iS=K("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${ae(a)}`]},{[`& .${xe.avatar}`]:t[`avatarColor${ae(r)}`]},{[`& .${xe.icon}`]:t.icon},{[`& .${xe.icon}`]:t[`icon${ae(a)}`]},{[`& .${xe.icon}`]:t[`iconColor${ae(o)}`]},{[`& .${xe.deleteIcon}`]:t.deleteIcon},{[`& .${xe.deleteIcon}`]:t[`deleteIcon${ae(a)}`]},{[`& .${xe.deleteIcon}`]:t[`deleteIconColor${ae(r)}`]},{[`& .${xe.deleteIcon}`]:t[`deleteIcon${ae(l)}Color${ae(r)}`]},t.root,t[`size${ae(a)}`],t[`color${ae(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${ae(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${ae(r)}`],t[l],t[`${l}${ae(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}}}}))]}})),aS=K("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ae(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 xl(e){return e.key==="Backspace"||e.key==="Delete"}const ad=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:h,onClick:v,onDelete:d,onKeyDown:m,onKeyUp:g,size:C="medium",variant:w="filled",tabIndex:y,skipFocusWhenDisabled:x=!1,slots:P={},slotProps:T={},...I}=r,R=S.useRef(null),A=ke(R,n),O=Q=>{Q.stopPropagation(),d&&d(Q)},$=Q=>{Q.currentTarget===Q.target&&xl(Q)&&Q.preventDefault(),m&&m(Q)},b=Q=>{Q.currentTarget===Q.target&&d&&xl(Q)&&d(Q),g&&g(Q)},E=i!==!1&&v?!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},k=sS(M),F=D===Bn?{component:l||"div",focusVisibleClassName:k.focusVisible,...d&&{disableRipple:!0}}:{};let L=null;d&&(L=c&&S.isValidElement(c)?S.cloneElement(c,{className:de(c.props.className,k.deleteIcon),onClick:O}):f.jsx(rS,{className:k.deleteIcon,onClick:O}));let N=null;o&&S.isValidElement(o)&&(N=S.cloneElement(o,{className:de(k.avatar,o.props.className)}));let U=null;p&&S.isValidElement(p)&&(U=S.cloneElement(p,{className:de(k.icon,p.props.className)}));const J={slots:P,slotProps:T},[re,le]=je("root",{elementType:iS,externalForwardedProps:{...J,...I},ownerState:M,shouldForwardComponentProp:!0,ref:A,className:de(k.root,s),additionalProps:{disabled:E&&u?!0:void 0,tabIndex:x&&u?-1:y,...F},getSlotProps:Q=>({...Q,onClick:G=>{Q.onClick?.(G),v?.(G)},onKeyDown:G=>{Q.onKeyDown?.(G),$(G)},onKeyUp:G=>{Q.onKeyUp?.(G),b(G)}})}),[ie,V]=je("label",{elementType:aS,externalForwardedProps:J,ownerState:M,className:k.label});return f.jsxs(re,{as:D,...le,children:[N||U,f.jsx(ie,{...V,children:h}),L]})}),Tr=36,Go=2,qo=320,lS=280,Oi=336,cS=["items","changeImportance","isLandscape","onChange","isValid"],uS=["getValue"];function dS(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,s=ve(e,cS);if(t==null||t.length===0)return null;const i=t.map(a=>{let{getValue:l}=a,c=ve(a,uS);const u=l({isValid:o});return j({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return f.jsx(sd,j({dense:!0,sx:[{maxHeight:Oi,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(a=>f.jsx(nS,{children:f.jsx(ad,j({},a))},a.id??a.label))}))}function pS(e){return e.view!==null}const fS=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"]},rd,t)},hS=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:h,isLandscape:v,disabled:d,readOnly:m,children:g,slots:C,slotProps:w}=e,y=fS(e),x=C?.actionBar??Wx,P=Pe({elementType:x,externalSlotProps:w?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:y.actionBar,ownerState:j({},e,{wrapperVariant:t})}),T=f.jsx(x,j({},P)),I=C?.toolbar,R=Pe({elementType:I,externalSlotProps:w?.toolbar,additionalProps:{isLandscape:v,onChange:u,value:c,view:i,onViewChange:l,views:a,disabled:d,readOnly:m},className:y.toolbar,ownerState:j({},e,{wrapperVariant:t})}),A=pS(R)&&I?f.jsx(I,j({},R)):null,O=g,$=C?.tabs,b=i&&$?f.jsx($,j({view:i,onViewChange:l,className:y.tabs},w?.tabs)):null,E=C?.shortcuts??dS,D=Pe({elementType:E,externalSlotProps:w?.shortcuts,additionalProps:{isValid:h,isLandscape:v,onChange:p},className:y.shortcuts,ownerState:{isValid:h,isLandscape:v,onChange:p,wrapperVariant:t}}),M=i&&E?f.jsx(E,j({},D)):null;return{toolbar:A,content:O,tabs:b,actionBar:T,shortcuts:M}},mS=e=>{const{isLandscape:t,classes:n}=e;return me({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},rd,n)},gS=K("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${en.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${en.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${en.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${en.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${en.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${en.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${en.shortcuts}`]:{gridColumn:3}}}]}),yS=K("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),ld=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:s,tabs:i,actionBar:a,shortcuts:l}=hS(r),{sx:c,className:u,isLandscape:p,wrapperVariant:h}=r,v=mS(r);return f.jsxs(gS,{ref:n,sx:c,className:de(v.root,u),ownerState:r,children:[p?l:o,p?o:l,f.jsx(yS,{className:v.contentWrapper,children:h==="desktop"?f.jsxs(S.Fragment,{children:[s,i]}):f.jsxs(S.Fragment,{children:[i,s]})}),a]})}),bS=S.createContext(null);function cd(e){const{contextValue:t,localeText:n,children:r}=e;return f.jsx(bS.Provider,{value:t,children:f.jsx(vi,{localeText:n,children:r})})}const vS=["props","getOpenDialogAriaText"],xS=["ownerState"],SS=["ownerState"],wS=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,vS);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:h,timezone:v,name:d,label:m,inputRef:g,readOnly:C,disabled:w,autoFocus:y,localeText:x,reduceAnimations:P}=t,T=S.useRef(null),I=S.useRef(null),R=xt(),A=s?.toolbar?.hidden??!1,{open:O,actions:$,hasUIView:b,layoutProps:E,renderCurrentView:D,shouldRestoreFocus:M,fieldProps:k,contextValue:F,ownerState:L}=nd(j({},r,{props:t,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),N=o.inputAdornment??Bu,U=Pe({elementType:N,externalSlotProps:s?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),J=ve(U,xS),re=o.openPickerButton??Nr,le=Pe({elementType:re,externalSlotProps:s?.openPickerButton,additionalProps:{disabled:w||C,onClick:O?$.onClose:$.onOpen,"aria-label":n(k.value),edge:J.position},ownerState:t}),ie=ve(le,SS),V=o.openPickerIcon,Q=Pe({elementType:V,externalSlotProps:s?.openPickerIcon,ownerState:L}),G=o.field,_=Pe({elementType:G,externalSlotProps:s?.field,additionalProps:j({},k,A&&{id:R},{readOnly:C,disabled:w,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:h,timezone:v,label:m,name:d,autoFocus:y&&!t.open,focused:O?!0:void 0},g?{inputRef:g}:{}),ownerState:t});b&&(_.InputProps=j({},_.InputProps,{ref:T},!t.disableOpenPicker&&{[`${J.position}Adornment`]:f.jsx(N,j({},J,{children:f.jsx(re,j({},ie,{children:f.jsx(V,j({},Q))}))}))}));const z=j({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},_.slots),Z=o.layout??ld;let te=R;A&&(m?te=`${R}-label`:te=void 0);const ee=j({},s,{toolbar:j({},s?.toolbar,{titleId:R}),popper:j({"aria-labelledby":te},s?.popper)}),B=ke(I,_.unstableFieldRef);return{renderPicker:()=>f.jsxs(cd,{contextValue:F,localeText:x,children:[f.jsx(G,j({},_,{slots:z,slotProps:ee,unstableFieldRef:B})),f.jsx(vx,j({role:"dialog",placement:"bottom-start",anchorEl:T.current},$,{open:O,slots:o,slotProps:ee,shouldRestoreFocus:M,reduceAnimations:P,children:f.jsx(Z,j({},E,ee?.layout,{slots:o,slotProps:ee,children:D()}))}))]})}},CS=$e(f.jsx("path",{d:"M7 10l5 5 5-5z"})),PS=$e(f.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),kS=$e(f.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),TS=$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 MS=$e(f.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function Ur(e){return parseInt(e,10)||0}const DS={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function RS(e){for(const t in e)return!1;return!0}function Sl(e){return RS(e)||e.outerHeightStyle===0&&!e.overflowing}const IS=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),h=S.useRef(null),v=S.useRef(null),d=S.useCallback(()=>{const y=u.current,x=v.current;if(!y||!x)return;const T=Lt(y).getComputedStyle(y);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=T.width,x.value=y.value||t.placeholder||"x",x.value.slice(-1)===`
133
133
  `&&(x.value+=" ");const I=T.boxSizing,R=Ur(T.paddingBottom)+Ur(T.paddingTop),A=Ur(T.borderBottomWidth)+Ur(T.borderTopWidth),O=x.scrollHeight;x.value="x";const $=x.scrollHeight;let b=O;s&&(b=Math.max(Number(s)*$,b)),o&&(b=Math.min(Number(o)*$,b)),b=Math.max(b,$);const E=b+(I==="border-box"?R+A:0),D=Math.abs(b-O)<=1;return{outerHeightStyle:E,overflowing:D}},[o,s,t.placeholder]),m=ue(()=>{const y=u.current,x=d();if(!y||!x||Sl(x))return!1;const P=x.outerHeightStyle;return h.current!=null&&h.current!==P}),g=S.useCallback(()=>{const y=u.current,x=d();if(!y||!x||Sl(x))return;const P=x.outerHeightStyle;h.current!==P&&(h.current=P,y.style.height=`${P}px`),y.style.overflow=x.overflowing?"hidden":""},[d]),C=S.useRef(-1);Ue(()=>{const y=uc(g),x=u?.current;if(!x)return;const P=Lt(x);P.addEventListener("resize",y);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(()=>{m()&&(T.unobserve(x),cancelAnimationFrame(C.current),g(),C.current=requestAnimationFrame(()=>{T.observe(x)}))}),T.observe(x)),()=>{y.clear(),cancelAnimationFrame(C.current),P.removeEventListener("resize",y),T&&T.disconnect()}},[d,g,m]),Ue(()=>{g()});const w=y=>{c||g();const x=y.target,P=x.value.length,T=x.value.endsWith(`
134
- `),I=x.selectionStart===P;T&&I&&x.setSelectionRange(P,P),r&&r(y)};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:v,tabIndex:-1,style:{...kS.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 wl(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function wo(e,t=!1){return e&&(wl(e.value)&&e.value!==""||t&&wl(e.defaultValue)&&e.defaultValue!=="")}function DS(e){return e.startAdornment}function RS(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 Cl;const Ko=(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${ae(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Xo=(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]},IS=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:h,startAdornment:v,type:d}=e,m={root:["root",`color${ae(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",a&&"formControl",h&&h!=="medium"&&`size${ae(h)}`,u&&"multiline",v&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",d==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",v&&"inputAdornedStart",s&&"inputAdornedEnd",p&&"readOnly"]};return me(m,RS,t)},Qo=K("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ko})(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%"}}]}))),Zo=K("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Xo})(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"}}]}})),Pl=hm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ai=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:h,disableInjectingGlobalStyles:v,endAdornment:d,error:m,fullWidth:g=!1,id:C,inputComponent:w="input",inputProps:y={},inputRef:x,margin:P,maxRows:T,minRows:I,multiline:R=!1,name:A,onBlur:O,onChange:$,onClick:b,onFocus:E,onKeyDown:D,onKeyUp:M,placeholder:k,readOnly:F,renderSuffix:L,rows:N,size:U,slotProps:J={},slots:re={},startAdornment:le,type:ie="text",value:V,...Q}=r,G=y.value!=null?y.value:V,{current:_}=S.useRef(G!=null),z=S.useRef(),Z=S.useCallback(Oe=>{},[]),te=ke(z,x,y.ref,Z),[ee,B]=S.useState(!1),X=ft(),oe=bn({props:r,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=X?X.focused:ee,S.useEffect(()=>{!X&&h&&ee&&(B(!1),O&&O())},[X,h,ee,O]);const ne=X&&X.onFilled,ce=X&&X.onEmpty,se=S.useCallback(Oe=>{wo(Oe)?ne&&ne():ce&&ce()},[ne,ce]);Ue(()=>{_&&se({value:G})},[G,se,_]);const fe=Oe=>{E&&E(Oe),y.onFocus&&y.onFocus(Oe),X&&X.onFocus?X.onFocus(Oe):B(!0)},be=Oe=>{O&&O(Oe),y.onBlur&&y.onBlur(Oe),X&&X.onBlur?X.onBlur(Oe):B(!1)},we=(Oe,..._t)=>{if(!_){const zt=Oe.target||z.current;if(zt==null)throw new Error(At(1));se({value:zt.value})}y.onChange&&y.onChange(Oe,..._t),$&&$(Oe,..._t)};S.useEffect(()=>{se(z.current)},[]);const pe=Oe=>{z.current&&Oe.currentTarget===Oe.target&&z.current.focus(),b&&b(Oe)};let qe=w,Be=y;R&&qe==="input"&&(N?Be={type:void 0,minRows:N,maxRows:N,...Be}:Be={type:void 0,maxRows:T,minRows:I,...Be},qe=MS);const ht=Oe=>{se(Oe.animationName==="mui-auto-fill-cancel"?z.current:{value:"x"})};S.useEffect(()=>{X&&X.setAdornedStart(!!le)},[X,le]);const mt={...r,color:oe.color||"primary",disabled:oe.disabled,endAdornment:d,error:oe.error,focused:oe.focused,formControl:X,fullWidth:g,hiddenLabel:oe.hiddenLabel,multiline:R,size:oe.size,startAdornment:le,type:ie},nt=IS(mt),rt=re.root||c.Root||Qo,Vt=J.root||u.root||{},gt=re.input||c.Input||Zo;return Be={...Be,...J.input??u.input},f.jsxs(S.Fragment,{children:[!v&&typeof Pl=="function"&&(Cl||(Cl=f.jsx(Pl,{}))),f.jsxs(rt,{...Vt,ref:n,onClick:pe,...Q,...!jn(rt)&&{ownerState:{...mt,...Vt.ownerState}},className:de(nt.root,Vt.className,a,F&&"MuiInputBase-readOnly"),children:[le,f.jsx(Uo.Provider,{value:null,children:f.jsx(gt,{"aria-invalid":oe.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:p,disabled:oe.disabled,id:C,onAnimationStart:ht,name:A,placeholder:k,readOnly:F,required:oe.required,rows:N,value:G,onKeyDown:D,onKeyUp:M,type:ie,...Be,...!jn(gt)&&{as:qe,ownerState:{...mt,...Be.ownerState}},ref:te,className:de(nt.input,Be.className,F&&"MuiInputBase-readOnly"),onBlur:be,onChange:we,onFocus:fe})}),d,L?L({...oe,startAdornment:le}):null]})]})});function ES(e){return ge("MuiInput",e)}const Mn={...mn,...he("MuiInput",["root","underline","input"])},$S=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},ES,t);return{...t,...o}},OS=K(Qo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ko(e,t),!n.disableUnderline&&t.underline]}})(Ee(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Mn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Mn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Mn.disabled}, .${Mn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Mn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Xe()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),AS=K(Zo,{name:"MuiInput",slot:"Input",overridesResolver:Xo})({}),Fi=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:h="text",...v}=r,d=$S(r),g={root:{ownerState:{disableUnderline:o}}},C=u??i?Ge(u??i,g):g,w=p.root??s.Root??OS,y=p.input??s.Input??AS;return f.jsx(Ai,{slots:{root:w,input:y},slotProps:C,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:h,...v,classes:d})});Fi.muiName="Input";function FS(e){return ge("MuiFilledInput",e)}const Yt={...mn,...he("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},LS=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${ae(s)}`,i&&"hiddenLabel",a&&"multiline"],input:["input"]},c=me(l,FS,t);return{...t,...c}},NS=K(Qo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ko(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}},[`&.${Yt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Yt.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"},[`&.${Yt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yt.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(.${Yt.disabled}, .${Yt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Yt.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}}]}})),jS=K(Zo,{name:"MuiFilledInput",slot:"Input",overridesResolver:Xo})(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}}]}))),Li=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:h={},type:v="text",...d}=r,m={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:v},g=LS(r),C={root:{ownerState:m},input:{ownerState:m}},w=p??i?Ge(C,p??i):C,y=h.root??s.Root??NS,x=h.input??s.Input??jS;return f.jsx(Ai,{slots:{root:y,input:x},slotProps:w,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:v,...d,classes:g})});Li.muiName="Input";var kl;const BS=K("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%"}),VS=K("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 _S(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(BS,{"aria-hidden":!0,className:r,ownerState:l,...i,children:f.jsx(VS,{ownerState:l,children:a?f.jsx("span",{children:o}):kl||(kl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function zS(e){return ge("MuiOutlinedInput",e)}const bt={...mn,...he("MuiOutlinedInput",["root","notchedOutline","input"])},WS=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zS,t);return{...t,...r}},HS=K(Qo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ko})(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"}}]}})),US=K(_S,{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}})),YS=K(Zo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Xo})(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}}]}))),Ni=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:h="text",...v}=r,d=WS(r),m=ft(),g=bn({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...r,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:m,fullWidth:s,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:h},w=u.root??o.Root??HS,y=u.input??o.Input??YS,[x,P]=je("notchedOutline",{elementType:US,className:d.notchedOutline,shouldForwardComponentProp:!0,ownerState:C,externalForwardedProps:{slots:u,slotProps:p},additionalProps:{label:a!=null&&a!==""&&g.required?f.jsxs(S.Fragment,{children:[a," ","*"]}):a}});return f.jsx(Ai,{slots:{root:w,input:y},slotProps:p,renderSuffix:T=>f.jsx(x,{...P,notched:typeof c<"u"?c:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:s,inputComponent:i,multiline:l,ref:n,type:h,...v,classes:{...d,notchedOutline:null}})});Ni.muiName="Input";function GS(e){return ge("MuiFormLabel",e)}const yr=he("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),qS=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:a}=e,l={root:["root",`color${ae(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return me(l,GS,t)},KS=K("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}}}]}))),XS=K("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ee(({theme:e})=>({[`&.${yr.error}`]:{color:(e.vars||e).palette.error.main}}))),QS=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:h,...v}=r,d=ft(),m=bn({props:r,muiFormControl:d,states:["color","required","focused","disabled","error","filled"]}),g={...r,color:m.color||"primary",component:a,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},C=qS(g);return f.jsxs(KS,{as:a,ownerState:g,className:de(C.root,s),ref:n,...v,children:[o,m.required&&f.jsxs(XS,{ownerState:g,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function ZS(e){return ge("MuiInputLabel",e)}he("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const JS=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${ae(r)}`,i],asterisk:[a&&"asterisk"]},c=me(l,ZS,t);return{...t,...c}},ew=K(QS,{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)"}}]}))),ji=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 h=bn({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),v={...r,disableAnimation:o,formControl:u,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},d=JS(v);return f.jsx(ew,{"data-shrink":p,ref:n,className:de(d.root,l),...c,ownerState:v,classes:d})});function tw(e){return ge("MuiFormControl",e)}he("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const nw=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ae(n)}`,r&&"fullWidth"]};return me(o,tw,t)},rw=K("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ae(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%"}}]}),Bi=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:h=!1,margin:v="none",required:d=!1,size:m="medium",variant:g="outlined",...C}=r,w={...r,color:i,component:a,disabled:l,error:c,fullWidth:p,hiddenLabel:h,margin:v,required:d,size:m,variant:g},y=nw(w),[x,P]=S.useState(()=>{let M=!1;return o&&S.Children.forEach(o,k=>{if(!eo(k,["Input","Select"]))return;const F=eo(k,["Select"])?k.props.input:k;F&&DS(F.props)&&(M=!0)}),M}),[T,I]=S.useState(()=>{let M=!1;return o&&S.Children.forEach(o,k=>{eo(k,["Input","Select"])&&(wo(k.props,!0)||wo(k.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 b=S.useCallback(()=>{I(!0)},[]),E=S.useCallback(()=>{I(!1)},[]),D=S.useMemo(()=>({adornedStart:x,setAdornedStart:P,color:i,disabled:l,error:c,filled:T,focused:O,fullWidth:p,hiddenLabel:h,size:m,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:E,onFilled:b,registerEffect:$,required:d,variant:g}),[x,i,l,c,T,O,p,h,$,E,b,d,m,g]);return f.jsx(Uo.Provider,{value:D,children:f.jsx(rw,{as:a,ownerState:w,className:de(y.root,s),ref:n,...C,children:o})})});function ow(e){return ge("MuiFormHelperText",e)}const Tl=he("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ml;const sw=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${ae(r)}`,n&&"contained",a&&"focused",i&&"filled",l&&"required"]};return me(c,ow,t)},iw=K("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ae(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,[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Tl.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}}]}))),cd=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:h,variant:v,...d}=r,m=ft(),g=bn({props:r,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),C={...r,component:i,contained:g.variant==="filled"||g.variant==="outlined",variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};delete C.ownerState;const w=sw(C);return f.jsx(iw,{as:i,className:de(w.root,s),ref:n,...d,ownerState:C,children:o===" "?Ml||(Ml=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function hs(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Dl(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ud(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")||!ud(a,s)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const aw=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",...h}=t,v=S.useRef(null),d=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ue(()=>{o&&v.current.focus()},[o]),S.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,{direction:x})=>{const P=!v.current.style.width;if(y.clientHeight<v.current.clientHeight&&P){const T=`${Cu(Lt(y))}px`;v.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=T,v.current.style.width=`calc(100% + ${T})`}return v.current}}),[]);const m=y=>{const x=v.current,P=y.key;if(y.ctrlKey||y.metaKey||y.altKey){u&&u(y);return}const I=Ye(x).activeElement;if(P==="ArrowDown")y.preventDefault(),tr(x,I,c,l,hs);else if(P==="ArrowUp")y.preventDefault(),tr(x,I,c,l,Dl);else if(P==="Home")y.preventDefault(),tr(x,null,c,l,hs);else if(P==="End")y.preventDefault(),tr(x,null,c,l,Dl);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&&ud(I,R);R.previousKeyMatched&&($||tr(x,I,!1,l,hs,R))?y.preventDefault():R.previousKeyMatched=!1}u&&u(y)},g=ke(v,n);let C=-1;S.Children.forEach(i,(y,x)=>{if(!S.isValidElement(y)){C===x&&(C+=1,C>=i.length&&(C=-1));return}y.props.disabled||(p==="selectedMenu"&&y.props.selected||C===-1)&&(C=x),C===x&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(C+=1,C>=i.length&&(C=-1))});const w=S.Children.map(i,(y,x)=>{if(x===C){const P={};return s&&(P.autoFocus=!0),y.props.tabIndex===void 0&&p==="selectedMenu"&&(P.tabIndex=0),S.cloneElement(y,P)}return y});return f.jsx(od,{role:"menu",ref:g,className:a,onKeyDown:m,tabIndex:o?0:-1,...h,children:w})});function lw(e){const t=Ye(e);return t.body===e?Lt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function br(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Rl(e){return parseInt(Lt(e).getComputedStyle(e).paddingRight,10)||0}function cw(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 Il(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const a=!s.includes(i),l=!cw(i);a&&l&&br(i,o)})}function ms(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function uw(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(lw(r)){const i=Cu(Lt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Rl(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=`${Rl(l)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=Ye(r).body;else{const i=r.parentElement,a=Lt(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 dw(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class pw{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=dw(n);Il(n,t.mount,t.modalRef,o,!0);const s=ms(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=ms(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=uw(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ms(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),Il(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 fw(e){return ge("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const hw=e=>{const{classes:t,invisible:n}=e;return me({root:["root",n&&"invisible"]},fw,t)},mw=K("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"}}]}),dd=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:h={},TransitionComponent:v,transitionDuration:d,...m}=r,g={...r,component:i,invisible:a},C=hw(g),w={transition:v,root:c.Root,...h},y={...u,...p},x={component:i,slots:w,slotProps:y},[P,T]=je("root",{elementType:mw,externalForwardedProps:x,className:de(C.root,s),ownerState:g}),[I,R]=je("transition",{elementType:fn,externalForwardedProps:x,ownerState:g});return f.jsx(I,{in:l,timeout:d,...m,...R,children:f.jsx(P,{"aria-hidden":!0,...T,classes:C,ref:n,children:o})})});function gw(e){return typeof e=="function"?e():e}function yw(e){return e?e.props.hasOwnProperty("in"):!1}const El=()=>{},Yr=new pw;function bw(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({}),h=S.useRef(null),v=S.useRef(null),d=ke(v,u),[m,g]=S.useState(!c),C=yw(a);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const y=()=>Ye(h.current),x=()=>(p.current.modalRef=v.current,p.current.mount=h.current,p.current),P=()=>{Yr.mount(x(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},T=ue(()=>{const M=gw(t)||y().body;Yr.add(x(),M),v.current&&P()}),I=()=>Yr.isTopModal(x()),R=ue(M=>{h.current=M,M&&(c&&I()?P():v.current&&br(v.current,w))}),A=S.useCallback(()=>{Yr.remove(x(),w)},[w]);S.useEffect(()=>()=>{A()},[A]),S.useEffect(()=>{c?T():(!C||!o)&&A()},[c,A,C,o,T]);const O=M=>k=>{M.onKeyDown?.(k),!(k.key!=="Escape"||k.which===229||!I())&&(n||(k.stopPropagation(),l&&l(k,"escapeKeyDown")))},$=M=>k=>{M.onClick?.(k),k.target===k.currentTarget&&l&&l(k,"backdropClick")};return{getRootProps:(M={})=>{const k=hi(e);delete k.onTransitionEnter,delete k.onTransitionExited;const F={...k,...M};return{role:"presentation",...F,onKeyDown:O(F),ref:d}},getBackdropProps:(M={})=>{const k=M;return{"aria-hidden":!0,...k,onClick:$(k),open:c}},getTransitionProps:()=>{const M=()=>{g(!1),s&&s()},k=()=>{g(!0),i&&i(),o&&A()};return{onEnter:ia(M,a?.props.onEnter??El),onExited:ia(k,a?.props.onExited??El)}},rootRef:d,portalRef:R,isTopModal:I,exited:m,hasTransition:C}}function vw(e){return ge("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const xw=e=>{const{open:t,exited:n,classes:r}=e;return me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},vw,r)},Sw=K("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"}}]}))),ww=K(dd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),pd=S.forwardRef(function(t,n){const r=Ce({name:"MuiModal",props:t}),{BackdropComponent:o=ww,BackdropProps:s,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:u,component:p,components:h={},componentsProps:v={},disableAutoFocus:d=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:g=!1,disablePortal:C=!1,disableRestoreFocus:w=!1,disableScrollLock:y=!1,hideBackdrop:x=!1,keepMounted:P=!1,onClose:T,onTransitionEnter:I,onTransitionExited:R,open:A,slotProps:O={},slots:$={},theme:b,...E}=r,D={...r,closeAfterTransition:l,disableAutoFocus:d,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:C,disableRestoreFocus:w,disableScrollLock:y,hideBackdrop:x,keepMounted:P},{getRootProps:M,getBackdropProps:k,getTransitionProps:F,portalRef:L,isTopModal:N,exited:U,hasTransition:J}=bw({...D,rootRef:n}),re={...D,exited:U},le=xw(re),ie={};if(c.props.tabIndex===void 0&&(ie.tabIndex="-1"),J){const{onEnter:Z,onExited:te}=F();ie.onEnter=Z,ie.onExited=te}const V={slots:{root:h.Root,backdrop:h.Backdrop,...$},slotProps:{...v,...O}},[Q,G]=je("root",{ref:n,elementType:Sw,externalForwardedProps:{...V,...E,component:p},getSlotProps:M,ownerState:re,className:de(a,le?.root,!re.open&&re.exited&&le?.hidden)}),[_,z]=je("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:V,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:Z=>k({...Z,onClick:te=>{Z?.onClick&&Z.onClick(te)}}),className:de(s?.className,le?.backdrop),ownerState:re});return!P&&!A&&(!J||U)?null:f.jsx(Xu,{ref:L,container:u,disablePortal:C,children:f.jsxs(Q,{...G,children:[!x&&o?f.jsx(_,{...z}):null,f.jsx(Zu,{disableEnforceFocus:m,disableAutoFocus:d,disableRestoreFocus:w,isEnabled:N,open:A,children:S.cloneElement(c,ie)})]})})});function Cw(e){return ge("MuiPopover",e)}he("MuiPopover",["root","paper"]);function $l(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ol(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Al(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Gr(e){return typeof e=="function"?e():e}const Pw=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},Cw,t)},kw=K(pd,{name:"MuiPopover",slot:"Root"})({}),fd=K(jr,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Tw=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:h=8,marginThreshold:v=16,open:d,PaperProps:m={},slots:g={},slotProps:C={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:y,transitionDuration:x="auto",TransitionProps:P={},disableScrollLock:T=!1,...I}=r,R=S.useRef(),A={...r,anchorOrigin:i,anchorReference:l,elevation:h,marginThreshold:v,transformOrigin:w,TransitionComponent:y,transitionDuration:x,TransitionProps:P},O=Pw(A),$=S.useCallback(()=>{if(l==="anchorPosition")return a;const Z=Gr(s),ee=(Z&&Z.nodeType===1?Z:Ye(R.current).body).getBoundingClientRect();return{top:ee.top+$l(ee,i.vertical),left:ee.left+Ol(ee,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),b=S.useCallback(Z=>({vertical:$l(Z,w.vertical),horizontal:Ol(Z,w.horizontal)}),[w.horizontal,w.vertical]),E=S.useCallback(Z=>{const te={width:Z.offsetWidth,height:Z.offsetHeight},ee=b(te);if(l==="none")return{top:null,left:null,transformOrigin:Al(ee)};const B=$();let X=B.top-ee.vertical,oe=B.left-ee.horizontal;const ne=X+te.height,ce=oe+te.width,se=Lt(Gr(s)),fe=se.innerHeight-v,be=se.innerWidth-v;if(v!==null&&X<v){const we=X-v;X-=we,ee.vertical+=we}else if(v!==null&&ne>fe){const we=ne-fe;X-=we,ee.vertical+=we}if(v!==null&&oe<v){const we=oe-v;oe-=we,ee.horizontal+=we}else if(ce>be){const we=ce-be;oe-=we,ee.horizontal+=we}return{top:`${Math.round(X)}px`,left:`${Math.round(oe)}px`,transformOrigin:Al(ee)}},[s,l,$,b,v]),[D,M]=S.useState(d),k=S.useCallback(()=>{const Z=R.current;if(!Z)return;const te=E(Z);te.top!==null&&Z.style.setProperty("top",te.top),te.left!==null&&(Z.style.left=te.left),Z.style.transformOrigin=te.transformOrigin,M(!0)},[E]);S.useEffect(()=>(T&&window.addEventListener("scroll",k),()=>window.removeEventListener("scroll",k)),[s,T,k]);const F=()=>{k()},L=()=>{M(!1)};S.useEffect(()=>{d&&k()}),S.useImperativeHandle(o,()=>d?{updatePosition:()=>{k()}}:null,[d,k]),S.useEffect(()=>{if(!d)return;const Z=uc(()=>{k()}),te=Lt(Gr(s));return te.addEventListener("resize",Z),()=>{Z.clear(),te.removeEventListener("resize",Z)}},[s,d,k]);let N=x;const U={slots:{transition:y,...g},slotProps:{transition:P,paper:m,...C}},[J,re]=je("transition",{elementType:Cr,externalForwardedProps:U,ownerState:A,getSlotProps:Z=>({...Z,onEntering:(te,ee)=>{Z.onEntering?.(te,ee),F()},onExited:te=>{Z.onExited?.(te),L()}}),additionalProps:{appear:!0,in:d}});x==="auto"&&!J.muiSupportAuto&&(N=void 0);const le=p||(s?Ye(Gr(s)).body:void 0),[ie,{slots:V,slotProps:Q,...G}]=je("root",{ref:n,elementType:kw,externalForwardedProps:{...U,...I},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:dc(typeof C.backdrop=="function"?C.backdrop(A):C.backdrop,{invisible:!0})},container:le,open:d},ownerState:A,className:de(O.root,u)}),[_,z]=je("paper",{ref:R,className:O.paper,elementType:fd,externalForwardedProps:U,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:D?void 0:{opacity:0}},ownerState:A});return f.jsx(ie,{...G,...!jn(ie)&&{slots:V,slotProps:Q,disableScrollLock:T},children:f.jsx(J,{...re,timeout:N,children:f.jsx(_,{...z,children:c})})})});function Mw(e){return ge("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const Dw={vertical:"top",horizontal:"right"},Rw={vertical:"top",horizontal:"left"},Iw=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"],list:["list"]},Mw,t)},Ew=K(Tw,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),$w=K(fd,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ow=K(aw,{name:"MuiMenu",slot:"List"})({outline:0}),Aw=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:h,transitionDuration:v="auto",TransitionProps:{onEntering:d,...m}={},variant:g="selectedMenu",slots:C={},slotProps:w={},...y}=r,x=vt(),P={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:d,PaperProps:p,transitionDuration:v,TransitionProps:m,variant:g},T=Iw(P),I=o&&!a&&u,R=S.useRef(null),A=(N,U)=>{R.current&&R.current.adjustStyleForScrollbar(N,{direction:x?"rtl":"ltr"}),d&&d(N,U)},O=N=>{N.key==="Tab"&&(N.preventDefault(),c&&c(N,"tabKeyDown"))};let $=-1;S.Children.map(s,(N,U)=>{S.isValidElement(N)&&(N.props.disabled||(g==="selectedMenu"&&N.props.selected||$===-1)&&($=U))});const b={slots:C,slotProps:{list:l,transition:m,paper:p,...w}},E=Pe({elementType:C.root,externalSlotProps:w.root,ownerState:P,className:[T.root,i]}),[D,M]=je("paper",{className:T.paper,elementType:$w,externalForwardedProps:b,shouldForwardComponentProp:!0,ownerState:P}),[k,F]=je("list",{className:de(T.list,l.className),elementType:Ow,shouldForwardComponentProp:!0,externalForwardedProps:b,getSlotProps:N=>({...N,onKeyDown:U=>{O(U),N.onKeyDown?.(U)}}),ownerState:P}),L=typeof b.slotProps.transition=="function"?b.slotProps.transition(P):b.slotProps.transition;return f.jsx(Ew,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?Dw:Rw,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:(...N)=>{A(...N),L?.onEntering?.(...N)}}},open:u,ref:n,transitionDuration:v,ownerState:P,...y,classes:h,children:f.jsx(k,{actions:R,autoFocus:o&&($===-1||a),autoFocusItem:I,variant:g,...F,children:s})})});function Fw(e){return ge("MuiNativeSelect",e)}const Vi=he("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Lw=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${ae(n)}`,s&&"iconOpen",r&&"disabled"]};return me(a,Fw,t)},hd=K("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Vi.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}}}]})),Nw=K(hd,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Vi.multiple}`]:t.multiple}]}})({}),md=K("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Vi.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}}]})),jw=K(md,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ae(n.variant)}`],n.open&&t.iconOpen]}})({}),Bw=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=Lw(u);return f.jsxs(S.Fragment,{children:[f.jsx(Nw,{ownerState:u,className:de(p.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:f.jsx(jw,{as:i,ownerState:u,className:p.icon})]})});function gd(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 Fl;const Vw=K(hd,{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"}}),_w=K(md,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ae(n.variant)}`],n.open&&t.iconOpen]}})({}),zw=K("input",{shouldForwardProp:e=>cc(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Ll(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Ww(e){return e==null||typeof e=="string"&&!e.trim()}const Hw=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${ae(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return me(a,gd,t)},Uw=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:h,error:v=!1,IconComponent:d,inputRef:m,labelId:g,MenuProps:C={},multiple:w,name:y,onBlur:x,onChange:P,onClose:T,onFocus:I,onOpen:R,open:A,readOnly:O,renderValue:$,required:b,SelectDisplayProps:E={},tabIndex:D,type:M,value:k,variant:F="standard",...L}=t,[N,U]=Dt({controlled:k,default:u,name:"Select"}),[J,re]=Dt({controlled:A,default:c,name:"Select"}),le=S.useRef(null),ie=S.useRef(null),[V,Q]=S.useState(null),{current:G}=S.useRef(A!=null),[_,z]=S.useState(),Z=ke(n,m),te=S.useCallback(ye=>{ie.current=ye,ye&&Q(ye)},[]),ee=V?.parentNode;S.useImperativeHandle(Z,()=>({focus:()=>{ie.current.focus()},node:le.current,value:N}),[N]),S.useEffect(()=>{c&&J&&V&&!G&&(z(i?null:ee.clientWidth),ie.current.focus())},[V,i]),S.useEffect(()=>{s&&ie.current.focus()},[s]),S.useEffect(()=>{if(!g)return;const ye=Ye(ie.current).getElementById(g);if(ye){const Te=()=>{getSelection().isCollapsed&&ie.current.focus()};return ye.addEventListener("click",Te),()=>{ye.removeEventListener("click",Te)}}},[g]);const B=(ye,Te)=>{ye?R&&R(Te):T&&T(Te),G||(z(i?null:ee.clientWidth),re(ye))},X=ye=>{ye.button===0&&(ye.preventDefault(),ie.current.focus(),B(!0,ye))},oe=ye=>{B(!1,ye)},ne=S.Children.toArray(a),ce=ye=>{const Te=ne.find(ze=>ze.props.value===ye.target.value);Te!==void 0&&(U(Te.props.value),P&&P(ye,Te))},se=ye=>Te=>{let ze;if(Te.currentTarget.hasAttribute("tabindex")){if(w){ze=Array.isArray(N)?N.slice():[];const Wt=N.indexOf(ye.props.value);Wt===-1?ze.push(ye.props.value):ze.splice(Wt,1)}else ze=ye.props.value;if(ye.props.onClick&&ye.props.onClick(Te),N!==ze&&(U(ze),P)){const Wt=Te.nativeEvent||Te,Ae=new Wt.constructor(Wt.type,Wt);Object.defineProperty(Ae,"target",{writable:!0,value:{value:ze,name:y}}),P(Ae,ye)}w||B(!1,Te)}},fe=ye=>{O||[" ","ArrowUp","ArrowDown","Enter"].includes(ye.key)&&(ye.preventDefault(),B(!0,ye))},be=V!==null&&J,we=ye=>{!be&&x&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:N,name:y}}),x(ye))};delete L["aria-invalid"];let pe,qe;const Be=[];let ht=!1;(wo({value:N})||h)&&($?pe=$(N):ht=!0);const mt=ne.map(ye=>{if(!S.isValidElement(ye))return null;let Te;if(w){if(!Array.isArray(N))throw new Error(At(2));Te=N.some(ze=>Ll(ze,ye.props.value)),Te&&ht&&Be.push(ye.props.children)}else Te=Ll(N,ye.props.value),Te&&ht&&(qe=ye.props.children);return S.cloneElement(ye,{"aria-selected":Te?"true":"false",onClick:se(ye),onKeyUp:ze=>{ze.key===" "&&ze.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(ze)},role:"option",selected:Te,value:void 0,"data-value":ye.props.value})});ht&&(w?Be.length===0?pe=null:pe=Be.reduce((ye,Te,ze)=>(ye.push(Te),ze<Be.length-1&&ye.push(", "),ye),[]):pe=qe);let nt=_;!i&&G&&V&&(nt=ee.clientWidth);let rt;typeof D<"u"?rt=D:rt=p?null:0;const Vt=E.id||(y?`mui-component-select-${y}`:void 0),gt={...t,variant:F,value:N,open:be,error:v},Oe=Hw(gt),_t={...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(Vw,{as:"div",ref:te,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":[g,Vt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":b?"true":void 0,"aria-invalid":v?"true":void 0,onKeyDown:fe,onMouseDown:p||O?null:X,onBlur:we,onFocus:I,...E,ownerState:gt,className:de(E.className,Oe.select,l),id:Vt,children:Ww(pe)?Fl||(Fl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):pe}),f.jsx(zw,{"aria-invalid":v,value:Array.isArray(N)?N.join(","):N,name:y,ref:le,"aria-hidden":!0,onChange:ce,tabIndex:-1,disabled:p,className:Oe.nativeInput,autoFocus:s,required:b,...L,ownerState:gt}),f.jsx(_w,{as:d,className:Oe.icon,ownerState:gt}),f.jsx(Aw,{id:`menu-${y||""}`,anchorEl:ee,open:be,onClose:oe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,slotProps:{...C.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:Kn,...zt},paper:{..._t,style:{minWidth:nt,..._t!=null?_t.style:null}}},children:mt})]})}),yd=$e(f.jsx("path",{d:"M7 10l5 5 5-5z"})),Yw=e=>{const{classes:t}=e,r=me({root:["root"]},gd,t);return{...t,...r}},_i={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>pt(e)&&e!=="variant"},Gw=K(Fi,_i)(""),qw=K(Ni,_i)(""),Kw=K(Li,_i)(""),zi=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=yd,id:p,input:h,inputProps:v,label:d,labelId:m,MenuProps:g,multiple:C=!1,native:w=!1,onClose:y,onOpen:x,open:P,renderValue:T,SelectDisplayProps:I,variant:R="outlined",...A}=r,O=w?Bw:Uw,$=ft(),b=bn({props:r,muiFormControl:$,states:["variant","error"]}),E=b.variant||R,D={...r,variant:E,classes:i},M=Yw(D),{root:k,...F}=M,L=h||{standard:f.jsx(Gw,{ownerState:D}),outlined:f.jsx(qw,{label:d,ownerState:D}),filled:f.jsx(Kw,{ownerState:D})}[E],N=ke(n,Gn(L));return f.jsx(S.Fragment,{children:S.cloneElement(L,{inputComponent:O,inputProps:{children:s,error:b.error,IconComponent:u,variant:E,type:void 0,multiple:C,...w?{id:p}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:g,onClose:y,onOpen:x,open:P,renderValue:T,SelectDisplayProps:{id:p,...I}},...v,classes:v?Ge(F,v.classes):F,...h?h.props.inputProps:{}},...(C&&w||c)&&E==="outlined"?{notched:!0}:{},ref:N,className:de(L.props.className,a,M.root),...!h&&{variant:E},...A})})});zi.muiName="Select";function Xw(e){return ge("MuiTextField",e)}he("MuiTextField",["root"]);const Qw={standard:Fi,filled:Li,outlined:Ni},Zw=e=>{const{classes:t}=e;return me({root:["root"]},Xw,t)},Jw=K(Bi,{name:"MuiTextField",slot:"Root"})({}),bd=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:h,fullWidth:v=!1,helperText:d,id:m,InputLabelProps:g,inputProps:C,InputProps:w,inputRef:y,label:x,maxRows:P,minRows:T,multiline:I=!1,name:R,onBlur:A,onChange:O,onFocus:$,placeholder:b,required:E=!1,rows:D,select:M=!1,SelectProps:k,slots:F={},slotProps:L={},type:N,value:U,variant:J="outlined",...re}=r,le={...r,autoFocus:s,color:l,disabled:u,error:p,fullWidth:v,multiline:I,required:E,select:M,variant:J},ie=Zw(le),V=xt(m),Q=d&&V?`${V}-helper-text`:void 0,G=x&&V?`${V}-label`:void 0,_=Qw[J],z={slots:F,slotProps:{input:w,inputLabel:g,htmlInput:C,formHelperText:h,select:k,...L}},Z={},te=z.slotProps.inputLabel;J==="outlined"&&(te&&typeof te.shrink<"u"&&(Z.notched=te.shrink),Z.label=x),M&&((!k||!k.native)&&(Z.id=void 0),Z["aria-describedby"]=void 0);const[ee,B]=je("root",{elementType:Jw,shouldForwardComponentProp:!0,externalForwardedProps:{...z,...re},ownerState:le,className:de(ie.root,a),ref:n,additionalProps:{disabled:u,error:p,fullWidth:v,required:E,color:l,variant:J}}),[X,oe]=je("input",{elementType:_,externalForwardedProps:z,additionalProps:Z,ownerState:le}),[ne,ce]=je("inputLabel",{elementType:ji,externalForwardedProps:z,ownerState:le}),[se,fe]=je("htmlInput",{elementType:"input",externalForwardedProps:z,ownerState:le}),[be,we]=je("formHelperText",{elementType:cd,externalForwardedProps:z,ownerState:le}),[pe,qe]=je("select",{elementType:zi,externalForwardedProps:z,ownerState:le}),Be=f.jsx(X,{"aria-describedby":Q,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:v,multiline:I,name:R,rows:D,maxRows:P,minRows:T,type:N,value:U,id:V,inputRef:y,onBlur:A,onChange:O,onFocus:$,placeholder:b,inputProps:fe,slots:{input:F.htmlInput?se:void 0},...oe});return f.jsxs(ee,{...B,children:[x!=null&&x!==""&&f.jsx(ne,{htmlFor:V,id:G,...ce,children:x}),M?f.jsx(pe,{"aria-describedby":Q,id:V,labelId:G,value:U,input:Be,...qe,children:i}):Be,d&&f.jsx(be,{id:Q,...we,children:d})]})}),eC=({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},tC=({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},nC=(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}},rC=({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=Mu(e,i),c=Eu(e,l.contentType,l.type,i),u=n?c:l.contentType==="digit",p=t!=null&&e.isValid(t);let h=p?e.formatByString(t,i):"",v=null;if(u)if(c)v=h===""?e.formatByString(s,i).length:h.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${i} should have a 'maxDigitNumber' property on it's adapter`);v=l.maxLength,p&&(h=yi(Ru(pn(h,o),v),o))}return j({},l,{format:i,maxLength:v,value:h,placeholder:nC(e,r,l,i),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},oC=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),s=[];let i="";const a=Object.keys(t.formatTokenMap).sort((v,d)=>d.length-v.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${a.join("|")})*$`),u=new RegExp(`^(${a.join("|")})`),p=v=>r.find(d=>d.start<=v&&d.end>=v);let h=0;for(;h<n.length;){const v=p(h),d=v!=null,m=l.exec(n.slice(h))?.[1];if(!d&&m!=null&&c.test(m)){let g=m;for(;g.length>0;){const C=u.exec(g)[1];g=g.slice(C.length),s.push(rC(j({},e,{now:o,token:C,startSeparator:i}))),i=""}h+=m.length}else{const g=n[h];d&&v?.start===h||v?.end===h||(s.length===0?i+=g:s[s.length-1].endSeparator+=g),h+=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},sC=({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}),Nl=e=>{let t=eC(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=tC(j({},e,{expandedFormat:t})),r=oC(j({},e,{expandedFormat:t,escapedParts:n}));return sC(j({},e,{sections:r}))},iC=e=>{const t=Le(),n=Bt(),r=yn(),o=vt(),{valueManager:s,fieldValueManager:i,valueType:a,validator:l,internalProps:c,internalProps:{value:u,defaultValue:p,referenceDate:h,onChange:v,format:d,formatDensity:m="dense",selectedSections:g,onSelectedSectionsChange:C,shouldRespectLeadingZeros:w=!1,timezone:y,enableAccessibleFieldDOMStructure:x=!1}}=e,{timezone:P,value:T,handleValueChange:I}=Ei({timezone:y,value:u,defaultValue:p,referenceDate:h,onChange:v,valueManager:s}),R=S.useMemo(()=>ib(t),[t]),A=S.useMemo(()=>pb(t,R,P),[t,R,P]),O=S.useCallback((V,Q=null)=>i.getSectionsFromValue(t,V,Q,G=>Nl({utils:t,localeText:n,localizedDigits:R,format:d,date:G,formatDensity:m,shouldRespectLeadingZeros:w,enableAccessibleFieldDOMStructure:x,isRtl:o})),[i,d,n,R,o,w,t,m,x]),[$,b]=S.useState(()=>{const V=O(T),Q={sections:V,value:T,referenceValue:s.emptyValue,tempValueStrAndroid:null},G=nb(V),_=s.getInitialReferenceValue({referenceDate:h,value:T,utils:t,props:c,granularity:G,timezone:P});return j({},Q,{referenceValue:_})}),[E,D]=Dt({controlled:g,default:null,name:"useField",state:"selectedSections"}),M=V=>{D(V),C?.(V)},k=S.useMemo(()=>Ms(E,$.sections),[E,$.sections]),F=k==="all"?0:k,L=({value:V,referenceValue:Q,sections:G})=>{if(b(z=>j({},z,{sections:G,value:V,referenceValue:Q,tempValueStrAndroid:null})),s.areValuesEqual(t,$.value,V))return;const _={validationError:l({adapter:r,value:V,timezone:P,props:c})};I(V,_)},N=(V,Q)=>{const G=[...$.sections];return G[V]=j({},G[V],{value:Q,modified:!0}),G},U=()=>{L({value:s.emptyValue,referenceValue:$.referenceValue,sections:O(s.emptyValue)})},J=()=>{if(F==null)return;const V=$.sections[F],Q=i.getActiveDateManager(t,$,V),_=Q.getSections($.sections).filter(ee=>ee.value!=="").length===(V.value===""?0:1),z=N(F,""),Z=_?null:t.getInvalidDate(),te=Q.getNewValuesFromNewActiveDate(Z);L(j({},te,{sections:z}))},re=V=>{const Q=(z,Z)=>{const te=t.parse(z,d);if(te==null||!t.isValid(te))return null;const ee=Nl({utils:t,localeText:n,localizedDigits:R,format:d,date:te,formatDensity:m,shouldRespectLeadingZeros:w,enableAccessibleFieldDOMStructure:x,isRtl:o});return el(t,te,ee,Z,!1)},G=i.parseValueStr(V,$.referenceValue,Q),_=i.updateReferenceValue(t,G,$.referenceValue);L({value:G,referenceValue:_,sections:O(G,$.sections)})},le=({activeSection:V,newSectionValue:Q,shouldGoToNextSection:G})=>{G&&F<$.sections.length-1&&M(F+1);const _=i.getActiveDateManager(t,$,V),z=N(F,Q),Z=_.getSections(z),te=cb(t,Z,R);let ee,B;if(te!=null&&t.isValid(te)){const X=el(t,te,Z,_.referenceDate,!0);ee=_.getNewValuesFromNewActiveDate(X),B=!0}else ee=_.getNewValuesFromNewActiveDate(te),B=(te!=null&&!t.isValid(te))!=(_.date!=null&&!t.isValid(_.date));return B?L(j({},ee,{sections:z})):b(X=>j({},X,ee,{sections:z,tempValueStrAndroid:null}))},ie=V=>b(Q=>j({},Q,{tempValueStrAndroid:V}));return S.useEffect(()=>{const V=O($.value);b(Q=>j({},Q,{sections:V}))},[d,t.locale,o]),S.useEffect(()=>{let V;s.areValuesEqual(t,$.value,T)?V=s.getTimezone(t,$.value)!==s.getTimezone(t,T):V=!0,V&&b(Q=>j({},Q,{value:T,referenceValue:i.updateReferenceValue(t,T,Q.referenceValue),sections:O(T)}))},[T]),{state:$,activeSectionIndex:F,parsedSelectedSections:k,setSelectedSections:M,clearValue:U,clearActiveSection:J,updateSectionValue:le,updateValueFromValueStr:re,setTempAndroidValueStr:ie,getSectionsFromValue:O,sectionsValueBoundaries:A,localizedDigits:R,timezone:P}},aC=5e3,kn=e=>e.saveQuery!=null,lC=({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(),aC);return()=>{clearTimeout(d)}}return()=>{}},[a,c]);const u=({keyPressed:d,sectionIndex:m},g,C)=>{const w=d.toLowerCase(),y=e[m];if(a!=null&&(!C||C(a.value))&&a.sectionIndex===m){const P=`${a.value}${w}`,T=g(P,y);if(!kn(T))return l({sectionIndex:m,value:P,sectionType:y.type}),T}const x=g(w,y);return kn(x)&&!x.saveQuery?(c(),null):(l({sectionIndex:m,value:w,sectionType:y.type}),kn(x)?null:x)},p=d=>{const m=(w,y,x)=>{const P=y.filter(T=>T.toLowerCase().startsWith(x));return P.length===0?{saveQuery:!1}:{sectionValue:P[0],shouldGoToNextSection:P.length===1}},g=(w,y,x,P)=>{const T=I=>Du(i,s,y.type,I);if(y.contentType==="letter")return m(y.format,T(y.format),w);if(x&&P!=null&&Mu(i,x).contentType==="letter"){const I=T(x),R=m(x,I,w);return kn(R)?{saveQuery:!1}:j({},R,{sectionValue:P(R.sectionValue,I)})}return{saveQuery:!1}};return u(d,(w,y)=>{switch(y.type){case"month":{const x=P=>Za(i,P,i.formats.month,y.format);return g(w,y,i.formats.month,x)}case"weekDay":{const x=(P,T)=>T.indexOf(P).toString();return g(w,y,i.formats.weekday,x)}case"meridiem":return g(w,y);default:return{saveQuery:!1}}})},h=d=>{const m=(C,w)=>{const y=pn(C,r),x=Number(y),P=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(x>P.maximum)return{saveQuery:!1};if(x<P.minimum)return{saveQuery:!0};const T=x*10>P.maximum||y.length===P.maximum.toString().length;return{sectionValue:Iu(i,x,P,r,w),shouldGoToNextSection:T}};return u(d,(C,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return m(C,w);if(w.type==="month"){Eu(i,"digit","month","MM");const y=m(C,{type:w.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(kn(y))return y;const x=Za(i,y.sectionValue,"MM",w.format);return j({},y,{sectionValue:x})}if(w.type==="weekDay"){const y=m(C,w);if(kn(y))return y;const x=Wo(i,w.format)[Number(y.sectionValue)-1];return j({},y,{sectionValue:x})}return{saveQuery:!1}},C=>Qa(C,r))};return{applyCharacterEditing:ue(d=>{const m=e[d.sectionIndex],C=Qa(d.keyPressed,r)?h(j({},d,{keyPressed:yi(d.keyPressed,r)})):p(d);if(C==null){o(null);return}t({activeSection:m,newSectionValue:C.sectionValue,shouldGoToNextSection:C.shouldGoToNextSection})}),resetCharacterQuery:c}},cC=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:h,resetCharacterQuery:v,setSelectedSections:d,parsedSelectedSections:m,state:g,clearActiveSection:C,clearValue:w,updateSectionValue:y,updateValueFromValueStr:x,sectionOrder:P,areAllSectionsEmpty:T,sectionsValueBoundaries:I}=e,R=S.useRef(null),A=ke(r,R),O=Bt(),$=Le(),b=xt(),[E,D]=S.useState(!1),M=S.useMemo(()=>({syncSelectionToDOM:()=>{if(!R.current)return;const B=document.getSelection();if(!B)return;if(m==null){B.rangeCount>0&&R.current.getRoot().contains(B.getRangeAt(0).startContainer)&&B.removeAllRanges(),E&&R.current.getRoot().blur();return}if(!R.current.getRoot().contains(Ke(document)))return;const X=new window.Range;let oe;m==="all"?oe=R.current.getRoot():g.sections[m].type==="empty"?oe=R.current.getSectionContainer(m):oe=R.current.getSectionContent(m),X.selectNodeContents(oe),oe.focus(),B.removeAllRanges(),B.addRange(X)},getActiveSectionIndexFromDOM:()=>{const B=Ke(document);return!B||!R.current||!R.current.getRoot().contains(B)?null:R.current.getSectionIndexFromDOMElement(B)},focusField:(B=0)=>{if(!R.current||M.getActiveSectionIndexFromDOM()!=null)return;const X=Ms(B,g.sections);D(!0),R.current.getSectionContent(X).focus()},setSelectedSections:B=>{if(!R.current)return;const X=Ms(B,g.sections);D((X==="all"?0:X)!==null),d(B)},isFieldFocused:()=>{const B=Ke(document);return!!R.current&&R.current.getRoot().contains(B)}}),[m,d,g.sections,E]),k=ue(B=>{if(!R.current)return;const X=g.sections[B];R.current.getSectionContent(B).innerHTML=X.value||X.placeholder,M.syncSelectionToDOM()}),F=ue((B,...X)=>{B.isDefaultPrevented()||!R.current||(D(!0),s?.(B,...X),m==="all"?setTimeout(()=>{const oe=document.getSelection().getRangeAt(0).startOffset;if(oe===0){d(P.startIndex);return}let ne=0,ce=0;for(;ce<oe&&ne<g.sections.length;){const se=g.sections[ne];ne+=1,ce+=`${se.startSeparator}${se.value||se.placeholder}${se.endSeparator}`.length}d(ne-1)}):E?R.current.getRoot().contains(B.target)||d(P.startIndex):(D(!0),d(P.startIndex)))}),L=ue(B=>{if(a?.(B),!R.current||m!=="all")return;const oe=B.target.textContent??"";R.current.getRoot().innerHTML=g.sections.map(ne=>`${ne.startSeparator}${ne.value||ne.placeholder}${ne.endSeparator}`).join(""),M.syncSelectionToDOM(),oe.length===0||oe.charCodeAt(0)===10?(v(),w(),d("all")):oe.length>1?x(oe):(m==="all"&&d(0),h({keyPressed:oe,sectionIndex:0}))}),N=ue(B=>{if(l?.(B),n||m!=="all"){B.preventDefault();return}const X=B.clipboardData.getData("text");B.preventDefault(),v(),x(X)}),U=ue((...B)=>{if(i?.(...B),E||!R.current)return;D(!0),R.current.getSectionIndexFromDOMElement(Ke(document))!=null||d(P.startIndex)}),J=ue((...B)=>{o?.(...B),setTimeout(()=>{if(!R.current)return;const X=Ke(document);!R.current.getRoot().contains(X)&&(D(!1),d(null))})}),re=ue(B=>X=>{X.isDefaultPrevented()||d(B)}),le=ue(B=>{B.preventDefault()}),ie=ue(B=>()=>{d(B)}),V=ue(B=>{if(B.preventDefault(),n||t||typeof m!="number")return;const X=g.sections[m],oe=B.clipboardData.getData("text"),ne=/^[a-zA-Z]+$/.test(oe),ce=/^[0-9]+$/.test(oe),se=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(oe);X.contentType==="letter"&&ne||X.contentType==="digit"&&ce||X.contentType==="digit-with-letter"&&se?(v(),y({activeSection:X,newSectionValue:oe,shouldGoToNextSection:!0})):!ne&&!ce&&(v(),x(oe))}),Q=ue(B=>{B.preventDefault(),B.dataTransfer.dropEffect="none"}),G=ue(B=>{if(!R.current)return;const X=B.target,oe=X.textContent??"",ne=R.current.getSectionIndexFromDOMElement(X),ce=g.sections[ne];if(n||!R.current){k(ne);return}if(oe.length===0){if(ce.value===""){k(ne);return}const se=B.nativeEvent.inputType;if(se==="insertParagraph"||se==="insertLineBreak"){k(ne);return}v(),C();return}h({keyPressed:oe,sectionIndex:ne}),k(ne)});Ue(()=>{if(!(!E||!R.current)){if(m==="all")R.current.getRoot().focus();else if(typeof m=="number"){const B=R.current.getSectionContent(m);B&&B.focus()}}},[m,E]);const _=S.useMemo(()=>g.sections.reduce((B,X)=>(B[X.type]=I[X.type]({currentDate:null,contentType:X.contentType,format:X.format}),B),{}),[I,g.sections]),z=m==="all",Z=S.useMemo(()=>g.sections.map((B,X)=>{const oe=!z&&!t&&!n;return{container:{"data-sectionindex":X,onClick:re(X)},content:{tabIndex:z||X>0?-1:0,contentEditable:!z&&!t&&!n,role:"spinbutton",id:`${b}-${B.type}`,"aria-labelledby":`${b}-${B.type}`,"aria-readonly":n,"aria-valuenow":yb(B,$),"aria-valuemin":_[B.type].minimum,"aria-valuemax":_[B.type].maximum,"aria-valuetext":B.value?gb(B,$):O.empty,"aria-label":O[B.type],"aria-disabled":t,spellCheck:oe?!1:void 0,autoCapitalize:oe?"off":void 0,autoCorrect:oe?"off":void 0,[parseInt(S.version,10)>=17?"enterKeyHint":"enterkeyhint"]:oe?"next":void 0,children:B.value||B.placeholder,onInput:G,onPaste:V,onFocus:ie(X),onDragOver:Q,onMouseUp:le,inputMode:B.contentType==="letter"?"text":"numeric"},before:{children:B.startSeparator},after:{children:B.endSeparator}}}),[g.sections,ie,V,Q,G,re,le,t,n,z,O,$,_,b]),te=ue(B=>{x(B.target.value)}),ee=S.useMemo(()=>T?"":p.getV7HiddenInputValueFromSections(g.sections),[T,g.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:J,onClick:F,onFocus:U,onInput:L,onPaste:N,enableAccessibleFieldDOMStructure:!0,elements:Z,tabIndex:m===0?-1:0,contentEditable:z,value:ee,onChange:te,areAllSectionsEmpty:T}}},Dn=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),uC=(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=bi(a,n?"input-rtl":"input-ltr",t),c=`${a.startSeparator}${l}${a.endSeparator}`,u=Dn(c).length,p=c.length,h=Dn(l),v=o+(h===""?0:l.indexOf(h[0]))+a.startSeparator.length,d=v+h.length;s.push(j({},a,{start:r,end:r+u,startInInput:v,endInInput:d})),r+=u,o+=p}return s},dC=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:h,activeSectionIndex:v,state:d,fieldValueManager:m,valueManager:g,applyCharacterEditing:C,resetCharacterQuery:w,updateSectionValue:y,updateValueFromValueStr:x,clearActiveSection:P,clearValue:T,setTempAndroidValueStr:I,setSelectedSections:R,getSectionsFromValue:A,areAllSectionsEmpty:O,localizedDigits:$}=e,b=S.useRef(null),E=ke(l,b),D=S.useMemo(()=>uC(d.sections,$,t),[d.sections,$,t]),M=S.useMemo(()=>({syncSelectionToDOM:()=>{if(!b.current)return;if(h==null){b.current.scrollLeft&&(b.current.scrollLeft=0);return}if(b.current!==Ke(document))return;const G=b.current.scrollTop;if(h==="all")b.current.select();else{const _=D[h],z=_.type==="empty"?_.startInInput-_.startSeparator.length:_.startInInput,Z=_.type==="empty"?_.endInInput+_.endSeparator.length:_.endInInput;(z!==b.current.selectionStart||Z!==b.current.selectionEnd)&&b.current===Ke(document)&&b.current.setSelectionRange(z,Z),clearTimeout(r.current),r.current=setTimeout(()=>{b.current&&b.current===Ke(document)&&b.current.selectionStart===b.current.selectionEnd&&(b.current.selectionStart!==z||b.current.selectionEnd!==Z)&&M.syncSelectionToDOM()})}b.current.scrollTop=G},getActiveSectionIndexFromDOM:()=>{const G=b.current.selectionStart??0,_=b.current.selectionEnd??0;if(G===0&&_===0)return null;const z=G<=D[0].startInInput?1:D.findIndex(Z=>Z.startInInput-Z.startSeparator.length>G);return z===-1?D.length-1:z-1},focusField:(G=0)=>{Ke(document)!==b.current&&(b.current?.focus(),R(G))},setSelectedSections:G=>R(G),isFieldFocused:()=>b.current===Ke(document)}),[b,h,D,R]),k=()=>{const G=b.current.selectionStart??0;let _;G<=D[0].startInInput||G>=D[D.length-1].endInInput?_=1:_=D.findIndex(Z=>Z.startInInput-Z.startSeparator.length>G);const z=_===-1?D.length-1:_-1;R(z)},F=ue((...G)=>{o?.(...G);const _=b.current;clearTimeout(n.current),n.current=setTimeout(()=>{!_||_!==b.current||v==null&&(_.value.length&&Number(_.selectionEnd)-Number(_.selectionStart)===_.value.length?R("all"):k())})}),L=ue((G,..._)=>{G.isDefaultPrevented()||(s?.(G,..._),k())}),N=ue(G=>{if(i?.(G),G.preventDefault(),u||p)return;const _=G.clipboardData.getData("text");if(typeof h=="number"){const z=d.sections[h],Z=/^[a-zA-Z]+$/.test(_),te=/^[0-9]+$/.test(_),ee=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(_);if(z.contentType==="letter"&&Z||z.contentType==="digit"&&te||z.contentType==="digit-with-letter"&&ee){w(),y({activeSection:z,newSectionValue:_,shouldGoToNextSection:!0});return}if(Z||te)return}w(),x(_)}),U=ue((...G)=>{a?.(...G),R(null)}),J=ue(G=>{if(u)return;const _=G.target.value;if(_===""){w(),T();return}const z=G.nativeEvent.data,Z=z&&z.length>1,te=Z?z:_,ee=Dn(te);if(h==="all"&&R(v),v==null||Z){x(Z?z:ee);return}let B;if(h==="all"&&ee.length===1)B=ee;else{const X=Dn(m.getV6InputValueFromSections(D,$,t));let oe=-1,ne=-1;for(let be=0;be<X.length;be+=1)oe===-1&&X[be]!==ee[be]&&(oe=be),ne===-1&&X[X.length-be-1]!==ee[ee.length-be-1]&&(ne=be);const ce=D[v];if(oe<ce.start||X.length-ne-1>ce.end)return;const fe=ee.length-X.length+ce.end-Dn(ce.endSeparator||"").length;B=ee.slice(ce.start+Dn(ce.startSeparator||"").length,fe)}if(B.length===0){hb()&&I(te),w(),P();return}C({keyPressed:B,sectionIndex:v})}),re=S.useMemo(()=>c!==void 0?c:m.getV6InputValueFromSections(A(g.emptyValue),$,t),[c,m,A,g.emptyValue,$,t]),le=S.useMemo(()=>d.tempValueStrAndroid??m.getV6InputValueFromSections(d.sections,$,t),[d.sections,m,d.tempValueStrAndroid,$,t]);S.useEffect(()=>(b.current&&b.current===Ke(document)&&R("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const ie=S.useMemo(()=>v==null||d.sections[v].contentType==="letter"?"text":"numeric",[v,d.sections]),Q=!(b.current&&b.current===Ke(document))&&O;return{interactions:M,returnedValue:{readOnly:u,onBlur:U,onClick:L,onFocus:F,onPaste:N,inputRef:E,enableAccessibleFieldDOMStructure:!1,placeholder:re,inputMode:ie,autoComplete:"off",value:Q?"":le,onChange:J}}},pC=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:h,valueManager:v,validator:d}=e,m=vt(),g=iC(e),{state:C,activeSectionIndex:w,parsedSelectedSections:y,setSelectedSections:x,clearValue:P,clearActiveSection:T,updateSectionValue:I,setTempAndroidValueStr:R,sectionsValueBoundaries:A,localizedDigits:O,timezone:$}=g,b=lC({sections:C.sections,updateSectionValue:I,sectionsValueBoundaries:A,localizedDigits:O,setTempAndroidValueStr:R,timezone:$}),{resetCharacterQuery:E}=b,D=v.areValuesEqual(t,C.value,v.emptyValue),M=s?cC:dC,k=S.useMemo(()=>mb(C.sections,m&&!s),[C.sections,m,s]),{returnedValue:F,interactions:L}=M(j({},e,g,b,{areAllSectionsEmpty:D,sectionOrder:k})),N=ue(V=>{if(l?.(V),!i)switch(!0){case((V.ctrlKey||V.metaKey)&&String.fromCharCode(V.keyCode)==="A"&&!V.shiftKey&&!V.altKey):{V.preventDefault(),x("all");break}case V.key==="ArrowRight":{if(V.preventDefault(),y==null)x(k.startIndex);else if(y==="all")x(k.endIndex);else{const Q=k.neighbors[y].rightIndex;Q!==null&&x(Q)}break}case V.key==="ArrowLeft":{if(V.preventDefault(),y==null)x(k.endIndex);else if(y==="all")x(k.startIndex);else{const Q=k.neighbors[y].leftIndex;Q!==null&&x(Q)}break}case V.key==="Delete":{if(V.preventDefault(),a)break;y==null||y==="all"?P():T(),E();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(V.key):{if(V.preventDefault(),a||w==null)break;y==="all"&&x(w);const Q=C.sections[w],G=h.getActiveDateManager(t,C,Q),_=ab(t,$,Q,V.key,A,O,G.date,{minutesStep:o});I({activeSection:Q,newSectionValue:_,shouldGoToNextSection:!1});break}}});Ue(()=>{L.syncSelectionToDOM()});const{hasValidationError:U}=Nu({props:n,validator:d,timezone:$,value:C.value,onError:n.onError}),J=S.useMemo(()=>c!==void 0?c:U,[U,c]);S.useEffect(()=>{!J&&w==null&&E()},[C.referenceValue,w,J]),S.useEffect(()=>{C.tempValueStrAndroid!=null&&w!=null&&(E(),T())},[C.sections]),S.useImperativeHandle(r,()=>({getSections:()=>C.sections,getActiveSectionIndex:L.getActiveSectionIndexFromDOM,setSelectedSections:L.setSelectedSections,focusField:L.focusField,isFieldFocused:L.isFieldFocused}));const re=ue((V,...Q)=>{V.preventDefault(),p?.(V,...Q),P(),L.isFieldFocused()?x(k.startIndex):L.focusField(0)}),le={onKeyDown:N,onClear:re,error:J,clearable:!!(u&&!D&&!a&&!i)},ie={disabled:i,readOnly:a};return j({},e.forwardedProps,le,ie,F)},fC=["clearable","onClear","InputProps","sx","slots","slotProps"],hC=["ownerState"],mC=e=>{const t=Bt(),{clearable:n,onClear:r,InputProps:o,sx:s,slots:i,slotProps:a}=e,l=ve(e,fC),c=i?.clearButton??Nr,u=Pe({elementType:c,externalSlotProps:a?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=ve(u,hC),h=i?.clearIcon??PS,v=Pe({elementType:h,externalSlotProps:a?.clearIcon,ownerState:{}});return j({},l,{InputProps:j({},o,{endAdornment:f.jsxs(S.Fragment,{children:[n&&f.jsx(ju,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:f.jsx(c,j({},p,{onClick:r,children:f.jsx(h,j({fontSize:"small"},v))}))}),o?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(s)?s:[s]]})},gC=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],yC=(e,t)=>S.useMemo(()=>{const n=j({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return gC.forEach(o),Fu.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),bC=e=>{const t=Le(),n=Ar();return j({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:lt(t,e.minDate,n.minDate),maxDate:lt(t,e.maxDate,n.maxDate)})},vC=e=>{const t=bC(e),{forwardedProps:n,internalProps:r}=yC(t,"date");return pC({forwardedProps:n,internalProps:r,valueManager:Rt,fieldValueManager:vb,validator:Fr,valueType:"date"})};function xC(e){return ge("MuiPickersTextField",e)}he("MuiPickersTextField",["root","focused","disabled","error","required"]);function SC(e){return ge("MuiPickersInputBase",e)}const On=he("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function wC(e){return ge("MuiPickersSectionList",e)}const rr=he("MuiPickersSectionList",["root","section","sectionContent"]),CC=["slots","slotProps","elements","sectionListRef"],vd=K("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),xd=K("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Sd=K("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),wd=K("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),PC=e=>{const{classes:t}=e;return me({root:["root"],section:["section"],sectionContent:["sectionContent"]},wC,t)};function kC(e){const{slots:t,slotProps:n,element:r,classes:o}=e,s=t?.section??xd,i=Pe({elementType:s,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=t?.sectionContent??wd,l=Pe({elementType:a,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=t?.sectionSeparator??Sd,u=Pe({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),p=Pe({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return f.jsxs(s,j({},i,{children:[f.jsx(c,j({},u)),f.jsx(a,j({},l)),f.jsx(c,j({},p))]}))}const TC=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:s,elements:i,sectionListRef:a}=r,l=ve(r,CC),c=PC(r),u=S.useRef(null),p=ke(n,u),h=m=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return u.current};S.useImperativeHandle(a,()=>({getRoot(){return h("getRoot")},getSectionContainer(m){return h("getSectionContainer").querySelector(`.${rr.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return h("getSectionContent").querySelector(`.${rr.section}[data-sectionindex="${m}"] .${rr.sectionContent}`)},getSectionIndexFromDOMElement(m){const g=h("getSectionIndexFromDOMElement");if(m==null||!g.contains(m))return null;let C=null;return m.classList.contains(rr.section)?C=m:m.classList.contains(rr.sectionContent)&&(C=m.parentElement),C==null?null:Number(C.dataset.sectionindex)}}));const v=o?.root??vd,d=Pe({elementType:v,externalSlotProps:s?.root,externalForwardedProps:l,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return f.jsx(v,j({},d,{children:d.contentEditable?i.map(({content:m,before:g,after:C})=>`${g.children}${m.children}${C.children}`).join(""):f.jsx(S.Fragment,{children:i.map((m,g)=>f.jsx(kC,{slots:o,slotProps:s,element:m,classes:c},g))})}))}),MC=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],DC=e=>Math.round(e*1e5)/1e5,Jo=K("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>j({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${DC(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Wi=K(vd,{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}}]})),RC=K(xd,{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"})),IC=K(wd,{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"})),EC=K(Sd,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),$C=K("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(j({},Gy)),OC=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${ae(a)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return me(p,SC,o)},Hi=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:h,slotProps:v,contentEditable:d,tabIndex:m,onInput:g,onPaste:C,onKeyDown:w,name:y,readOnly:x,inputProps:P,inputRef:T,sectionListRef:I}=r,R=ve(r,MC),A=S.useRef(null),O=ke(n,A),$=ke(P?.ref,T),b=vt(),E=ft();if(!E)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const D=U=>{if(E.disabled){U.stopPropagation();return}E.onFocus?.(U)};S.useEffect(()=>{E&&E.setAdornedStart(!!u)},[E,u]),S.useEffect(()=>{E&&(s?E.onEmpty():E.onFilled())},[E,s]);const M=j({},r,E,{isRtl:b}),k=OC(M),F=h?.root||Jo,L=Pe({elementType:F,externalSlotProps:v?.root,externalForwardedProps:R,additionalProps:{"aria-invalid":E.error,ref:O},className:k.root,ownerState:M}),N=h?.input||Wi;return f.jsxs(F,j({},L,{children:[u,f.jsx(TC,{sectionListRef:I,elements:o,contentEditable:d,tabIndex:m,className:k.sectionsContainer,onFocus:D,onBlur:E.onBlur,onInput:g,onPaste:C,onKeyDown:w,slots:{root:N,section:RC,sectionContent:IC,sectionSeparator:EC},slotProps:{root:{ownerState:M},sectionContent:{className:On.sectionContent},sectionSeparator:({position:U})=>({className:U==="before"?On.sectionBefore:On.sectionAfter})}}),c,p?p(j({},E)):null,f.jsx($C,j({name:y,className:k.input,value:i,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:x,required:E.required,disabled:E.disabled},P,{ref:$}))]}))});function AC(e){return ge("MuiPickersOutlinedInput",e)}const yt=j({},On,he("MuiPickersOutlinedInput",["root","notchedOutline","input"])),FC=["children","className","label","notched","shrink"],LC=K("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}}),jl=K("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),NC=K("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 jC(e){const{className:t,label:n}=e,r=ve(e,FC),o=n!=null&&n!=="",s=j({},e,{withLabel:o});return f.jsx(LC,j({"aria-hidden":!0,className:t},r,{ownerState:s,children:f.jsx(NC,{ownerState:s,children:o?f.jsx(jl,{children:n}):f.jsx(jl,{className:"notranslate",children:"​"})})}))}const BC=["label","autoFocus","ownerState","notched"],VC=K(Jo,{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}}}))}}),_C=K(Wi,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),zC=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AC,t);return j({},t,r)},Cd=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:s,notched:i}=r,a=ve(r,BC),l=ft(),c=j({},r,s,l,{color:l?.color||"primary"}),u=zC(c);return f.jsx(Hi,j({slots:{root:VC,input:_C},renderSuffix:p=>f.jsx(jC,{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}))});Cd.muiName="Input";function WC(e){return ge("MuiPickersFilledInput",e)}const nn=j({},On,he("MuiPickersFilledInput",["root","underline","input"])),HC=["label","autoFocus","disableUnderline","ownerState"],UC=K(Jo,{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}},[`&.${nn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${nn.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"},[`&.${nn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nn.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(.${nn.disabled}, .${nn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${nn.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:i})=>!!i,style:{paddingLeft:12}},{props:({endAdornment:i})=>!!i,style:{paddingRight:12}}]}}),YC=K(Wi,{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}}]}),GC=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},WC,t);return j({},t,o)},Pd=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ve(r,HC),l=ft(),c=j({},r,i,l,{color:l?.color||"primary"}),u=GC(c);return f.jsx(Hi,j({slots:{root:UC,input:YC},slotProps:{root:{disableUnderline:s}}},a,{label:o,classes:u,ref:n}))});Pd.muiName="Input";function qC(e){return ge("MuiPickersFilledInput",e)}const or=j({},On,he("MuiPickersInput",["root","input"])),KC=["label","autoFocus","disableUnderline","ownerState"],XC=K(Jo,{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"}}}]}}),QC=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},qC,t);return j({},t,o)},kd=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ve(r,KC),l=ft(),c=j({},r,i,l,{disableUnderline:s,color:l?.color||"primary"}),u=QC(c);return f.jsx(Hi,j({slots:{root:XC}},a,{label:o,classes:u,ref:n}))});kd.muiName="Input";const ZC=["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"],JC={standard:kd,filled:Pd,outlined:Cd},e1=K(Bi,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),t1=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return me({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},xC,r)},n1=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:h,inputProps:v,inputRef:d,sectionListRef:m,elements:g,areAllSectionsEmpty:C,onClick:w,onKeyDown:y,onKeyUp:x,onPaste:P,onInput:T,endAdornment:I,startAdornment:R,tabIndex:A,contentEditable:O,focused:$,value:b,onChange:E,fullWidth:D,id:M,name:k,helperText:F,FormHelperTextProps:L,label:N,InputLabelProps:U}=r,J=ve(r,ZC),re=S.useRef(null),le=ke(n,re),ie=xt(M),V=F&&ie?`${ie}-helper-text`:void 0,Q=N&&ie?`${ie}-label`:void 0,G=j({},r,{color:a,disabled:l,error:c,focused:$,required:p,variant:u}),_=t1(G),z=JC[u];return f.jsxs(e1,j({className:de(_.root,i),ref:le,focused:$,onFocus:o,onBlur:s,disabled:l,variant:u,error:c,color:a,fullWidth:D,required:p,ownerState:G},J,{children:[f.jsx(ji,j({htmlFor:ie,id:Q},U,{children:N})),f.jsx(z,j({elements:g,areAllSectionsEmpty:C,onClick:w,onKeyDown:y,onKeyUp:x,onInput:T,onPaste:P,endAdornment:I,startAdornment:R,tabIndex:A,contentEditable:O,value:b,onChange:E,id:ie,fullWidth:D,inputProps:v,inputRef:d,sectionListRef:m,label:N,name:k,role:"group","aria-labelledby":Q,"aria-describedby":V,"aria-live":V?"polite":void 0},h)),F&&f.jsx(cd,j({id:V},L,{children:F}))]}))}),r1=["enableAccessibleFieldDOMStructure"],o1=["InputProps","readOnly"],s1=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],i1=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ve(e,r1);if(t){const{InputProps:p,readOnly:h}=n,v=ve(n,o1);return j({},v,{InputProps:j({},p??{},{readOnly:h})})}const{onPaste:r,onKeyDown:o,inputMode:s,readOnly:i,InputProps:a,inputProps:l,inputRef:c}=n,u=ve(n,s1);return j({},u,{InputProps:j({},a??{},{readOnly:i}),inputProps:j({},l??{},{inputMode:s,onPaste:r,onKeyDown:o,ref:c})})},a1=["slots","slotProps","InputProps","inputProps"],Td=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDateField"}),{slots:o,slotProps:s,InputProps:i,inputProps:a}=r,l=ve(r,a1),c=r,u=o?.textField??(t.enableAccessibleFieldDOMStructure?n1:bd),p=Pe({elementType:u,externalSlotProps:s?.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});p.inputProps=j({},a,p.inputProps),p.InputProps=j({},i,p.InputProps);const h=vC(p),v=i1(h),d=mC(j({},v,{slots:o,slotProps:s}));return f.jsx(u,j({},d))}),Md=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:a})=>{const l=yn();return S.useCallback(c=>Fr({adapter:l,value:c,timezone:a,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i}})!==null,[l,e,t,n,r,o,s,i,a])},l1=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return j({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const s=o.newTimezone;if(n.getTimezone(r.currentMonth)===s)return r;let i=n.setTimezone(r.currentMonth,s);return n.getMonth(i)!==n.getMonth(r.currentMonth)&&(i=n.setMonth(i,n.getMonth(r.currentMonth))),j({},r,{currentMonth:i})}case"finishMonthSwitchingAnimation":return j({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const s=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return j({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:s&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},c1=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,h=Le(),v=S.useRef(l1(!!c,s,h)).current,d=S.useMemo(()=>Rt.getInitialReferenceValue({value:t,utils:h,timezone:p,props:e,referenceDate:n,granularity:Pt.day}),[n,p]),[m,g]=S.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:d,currentMonth:h.startOfMonth(d),slideDirection:"left"});S.useEffect(()=>{g({type:"changeMonthTimezone",newTimezone:h.getTimezone(d)})},[d,h]);const C=S.useCallback(T=>{g(j({type:"changeMonth"},T)),l&&l(T.newMonth)},[l]),w=S.useCallback(T=>{const I=T;h.isSameMonth(I,m.currentMonth)||C({newMonth:h.startOfMonth(I),direction:h.isAfterDay(I,m.currentMonth)?"left":"right"})},[m.currentMonth,C,h]),y=Md({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:p}),x=S.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),P=ue((T,I)=>{y(T)||g({type:"changeFocusedDay",focusedDay:T,withoutMonthSwitchingAnimation:I})});return{referenceDate:d,calendarState:m,changeMonth:w,changeFocusedDay:P,isDateDisabled:y,onMonthSwitchingAnimationEnd:x,handleChangeMonth:C}},u1=e=>ge("MuiPickersFadeTransitionGroup",e);he("MuiPickersFadeTransitionGroup",["root"]);const d1=e=>{const{classes:t}=e;return me({root:["root"]},u1,t)},p1=K(Lr,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Dd(e){const t=Fe({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=d1(t),a=gn();return o?n:f.jsx(p1,{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 f1(e){return ge("MuiPickersDay",e)}const rn=he("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),h1=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],m1=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"]},f1,l)},Rd=({theme:e})=>j({},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),[`&.${rn.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${rn.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${rn.disabled}:not(.${rn.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${rn.disabled}&.${rn.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Go}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${rn.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Id=(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]},g1=K(Bn,{name:"MuiPickersDay",slot:"Root",overridesResolver:Id})(Rd),y1=K("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Id})(({theme:e})=>j({},Rd({theme:e}),{opacity:0,pointerEvents:"none"})),sr=()=>{},b1=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:h,onFocus:v=sr,onBlur:d=sr,onKeyDown:m=sr,onMouseDown:g=sr,onMouseEnter:C=sr,outsideCurrentMonth:w,selected:y=!1,showDaysOutsideCurrentMonth:x=!1,children:P,today:T=!1}=r,I=ve(r,h1),R=j({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:y,showDaysOutsideCurrentMonth:x,today:T}),A=m1(R),O=Le(),$=S.useRef(null),b=ke($,n);Ue(()=>{o&&!a&&!u&&!w&&$.current.focus()},[o,a,u,w]);const E=M=>{g(M),w&&M.preventDefault()},D=M=>{a||h(i),w&&M.currentTarget.focus(),p&&p(M)};return w&&!x?f.jsx(y1,{className:de(A.root,A.hiddenDaySpacingFiller,s),ownerState:R,role:I.role}):f.jsx(g1,j({className:de(A.root,s),ref:b,centerRipple:!0,disabled:a,tabIndex:y?0:-1,onKeyDown:M=>m(M,i),onFocus:M=>v(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")}))}),v1=S.memo(b1),x1=e=>ge("MuiPickersSlideTransition",e),ot=he("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),S1=["children","className","reduceAnimations","slideDirection","transKey","classes"],w1=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return me(r,x1,t)},C1=K(Lr,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ot["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ot["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ot.slideEnterActive}`]:t.slideEnterActive},{[`.${ot.slideExit}`]:t.slideExit},{[`.${ot["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ot["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ot["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ot["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ot.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ot.slideExit}`]:{transform:"translate(0%)"},[`& .${ot["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ot["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function P1(e){const t=Fe({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ve(t,S1),a=w1(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(C1,{className:de(a.root,r),childFactory:u=>S.cloneElement(u,{classNames:c}),role:"presentation",children:f.jsx(Si,j({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const k1=e=>ge("MuiDayCalendar",e);he("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const T1=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],M1=["ownerState"],D1=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"]},k1,t)},Ed=(Tr+Go*2)*6,R1=K("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),I1=K("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),E1=K(Qt,{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})),$1=K(Qt,{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})),O1=K(Qt,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>j({},e.typography.caption,{width:Tr,height:Tr,padding:0,margin:`0 ${Go}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),A1=K("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Ed}),F1=K(P1,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Ed}),L1=K("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),N1=K("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Go}px 0`,display:"flex",justifyContent:"center"});function j1(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:s,currentMonthNumber:i,isViewFocused:a}=e,l=ve(e,T1);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:h,slots:v,slotProps:d,timezone:m}=t,g=Le(),C=Ho(m),w=r!==null&&g.isSameDay(n,r),y=o.some(b=>g.isSameDay(b,n)),x=g.isSameDay(n,C),P=v?.day??v1,T=Pe({elementType:P,externalSlotProps:d?.day,additionalProps:j({disableHighlightToday:u,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:p,"data-timestamp":g.toJsDate(n).valueOf()},l),ownerState:j({},t,{day:n,selected:y})}),I=ve(T,M1),R=S.useMemo(()=>c||s(n),[c,s,n]),A=S.useMemo(()=>g.getMonth(n)!==i,[g,n,i]),O=S.useMemo(()=>{const b=g.startOfMonth(g.setMonth(n,i));return h?g.isSameDay(n,g.startOfWeek(b)):g.isSameDay(n,b)},[i,n,h,g]),$=S.useMemo(()=>{const b=g.endOfMonth(g.setMonth(n,i));return h?g.isSameDay(n,g.endOfWeek(b)):g.isSameDay(n,b)},[i,n,h,g]);return f.jsx(P,j({},I,{day:n,disabled:R,autoFocus:a&&w,today:x,outsideCurrentMonth:A,isFirstVisibleCell:O,isLastVisibleCell:$,selected:y,tabIndex:w?0:-1,"aria-selected":y,"aria-current":x?"date":void 0}))}function B1(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:h,renderLoading:v=()=>f.jsx("span",{children:"..."}),slideDirection:d,TransitionProps:m,disablePast:g,disableFuture:C,minDate:w,maxDate:y,shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:T,dayOfWeekFormatter:I=ne=>n.format(ne,"weekdayShort").charAt(0).toUpperCase(),hasFocus:R,onFocusedViewChange:A,gridLabelId:O,displayWeekNumber:$,fixedWeekNumber:b,autoFocus:E,timezone:D}=t,M=Ho(D),k=D1(t),F=vt(),L=Md({shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:T,minDate:w,maxDate:y,disablePast:g,disableFuture:C,timezone:D}),N=Bt(),[U,J]=Dt({name:"DayCalendar",state:"hasFocus",controlled:R,default:E??!1}),[re,le]=S.useState(()=>a||M),ie=ue(ne=>{p||c(ne)}),V=ne=>{L(ne)||(r(ne),le(ne),A?.(!0),J(!0))},Q=ue((ne,ce)=>{switch(ne.key){case"ArrowUp":V(n.addDays(ce,-7)),ne.preventDefault();break;case"ArrowDown":V(n.addDays(ce,7)),ne.preventDefault();break;case"ArrowLeft":{const se=n.addDays(ce,F?1:-1),fe=n.addMonths(ce,F?1:-1),be=hr({utils:n,date:se,minDate:F?se:n.startOfMonth(fe),maxDate:F?n.endOfMonth(fe):se,isDateDisabled:L,timezone:D});V(be||se),ne.preventDefault();break}case"ArrowRight":{const se=n.addDays(ce,F?-1:1),fe=n.addMonths(ce,F?-1:1),be=hr({utils:n,date:se,minDate:F?n.startOfMonth(fe):se,maxDate:F?se:n.endOfMonth(fe),isDateDisabled:L,timezone:D});V(be||se),ne.preventDefault();break}case"Home":V(n.startOfWeek(ce)),ne.preventDefault();break;case"End":V(n.endOfWeek(ce)),ne.preventDefault();break;case"PageUp":V(n.addMonths(ce,1)),ne.preventDefault();break;case"PageDown":V(n.addMonths(ce,-1)),ne.preventDefault();break}}),G=ue((ne,ce)=>V(ce)),_=ue((ne,ce)=>{U&&n.isSameDay(re,ce)&&A?.(!1)}),z=n.getMonth(s),Z=n.getYear(s),te=S.useMemo(()=>i.filter(ne=>!!ne).map(ne=>n.startOfDay(ne)),[n,i]),ee=`${Z}-${z}`,B=S.useMemo(()=>S.createRef(),[ee]),X=S.useMemo(()=>{const ne=n.startOfMonth(s),ce=n.endOfMonth(s);return L(re)||n.isAfterDay(re,ce)||n.isBeforeDay(re,ne)?hr({utils:n,date:re,minDate:ne,maxDate:ce,disablePast:g,disableFuture:C,isDateDisabled:L,timezone:D}):re},[s,C,g,re,L,n,D]),oe=S.useMemo(()=>{const ne=n.getWeekArray(s);let ce=n.addMonths(s,1);for(;b&&ne.length<b;){const se=n.getWeekArray(ce),fe=n.isSameDay(ne[ne.length-1][0],se[0][0]);se.slice(fe?1:0).forEach(be=>{ne.length<b&&ne.push(be)}),ce=n.addMonths(ce,1)}return ne},[s,b,n]);return f.jsxs(R1,{role:"grid","aria-labelledby":O,className:k.root,children:[f.jsxs(I1,{role:"row",className:k.header,children:[$&&f.jsx($1,{variant:"caption",role:"columnheader","aria-label":N.calendarWeekNumberHeaderLabel,className:k.weekNumberLabel,children:N.calendarWeekNumberHeaderText}),Zy(n,M).map((ne,ce)=>f.jsx(E1,{variant:"caption",role:"columnheader","aria-label":n.format(ne,"weekday"),className:k.weekDayLabel,children:I(ne)},ce.toString()))]}),l?f.jsx(A1,{className:k.loadingContainer,children:v()}):f.jsx(F1,j({transKey:ee,onExited:u,reduceAnimations:h,slideDirection:d,className:de(o,k.slideTransition)},m,{nodeRef:B,children:f.jsx(L1,{ref:B,role:"rowgroup",className:k.monthContainer,children:oe.map((ne,ce)=>f.jsxs(N1,{role:"row",className:k.weekContainer,"aria-rowindex":ce+1,children:[$&&f.jsx(O1,{className:k.weekNumber,role:"rowheader","aria-label":N.calendarWeekNumberAriaLabelText(n.getWeekNumber(ne[0])),children:N.calendarWeekNumberText(n.getWeekNumber(ne[0]))}),ne.map((se,fe)=>f.jsx(j1,{parentProps:t,day:se,selectedDays:te,focusableDay:X,onKeyDown:Q,onFocus:G,onBlur:_,onDaySelect:ie,isDateDisabled:L,currentMonthNumber:z,isViewFocused:U,"aria-colindex":fe+1},se.toString()))]},`week-${ne[0]}`))})}))]})}function V1(e){return ge("MuiPickersMonth",e)}const qr=he("MuiPickersMonth",["root","monthButton","disabled","selected"]),_1=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],z1=e=>{const{disabled:t,selected:n,classes:r}=e;return me({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},V1,r)},W1=K("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%"}}]}),H1=K("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${qr.disabled}`]:t.disabled},{[`&.${qr.selected}`]:t.selected}]})(({theme:e})=>j({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:He.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:He.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${qr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${qr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),U1=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:h,onBlur:v,"aria-current":d,"aria-label":m,slots:g,slotProps:C}=n,w=ve(n,_1),y=S.useRef(null),x=z1(n);Ue(()=>{r&&y.current?.focus()},[r]);const P=g?.monthButton??H1,T=Pe({elementType:P,externalSlotProps:C?.monthButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:y,type:"button",role:"radio","aria-current":d,"aria-checked":a,"aria-label":m,onClick:I=>u(I,l),onKeyDown:I=>p(I,l),onFocus:I=>h(I,l),onBlur:I=>v(I,l)},ownerState:n,className:x.monthButton});return f.jsx(W1,j({className:de(x.root,o),ownerState:n},w,{children:f.jsx(P,j({},T))}))});function Y1(e){return ge("MuiMonthCalendar",e)}he("MuiMonthCalendar",["root"]);const G1=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],q1=e=>{const{classes:t}=e;return me({root:["root"]},Y1,t)};function K1(e,t){const n=Le(),r=Ar(),o=Fe({props:e,name:t});return j({disableFuture:!1,disablePast:!1},o,{minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate)})}const X1=K("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:qo,boxSizing:"border-box"}),Q1=S.forwardRef(function(t,n){const r=K1(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:p,minDate:h,onChange:v,shouldDisableMonth:d,readOnly:m,autoFocus:g=!1,onMonthFocus:C,hasFocus:w,onFocusedViewChange:y,monthsPerRow:x=3,timezone:P,gridLabelId:T,slots:I,slotProps:R}=r,A=ve(r,G1),{value:O,handleValueChange:$,timezone:b}=$i({name:"MonthCalendar",timezone:P,value:s,defaultValue:i,referenceDate:a,onChange:v,valueManager:Rt}),E=Ho(b),D=vt(),M=Le(),k=S.useMemo(()=>Rt.getInitialReferenceValue({value:O,utils:M,props:r,timezone:b,referenceDate:a,granularity:Pt.month}),[]),F=r,L=q1(F),N=S.useMemo(()=>M.getMonth(E),[M,E]),U=S.useMemo(()=>O!=null?M.getMonth(O):null,[O,M]),[J,re]=S.useState(()=>U||M.getMonth(k)),[le,ie]=Dt({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),V=ue(ee=>{ie(ee),y&&y(ee)}),Q=S.useCallback(ee=>{const B=M.startOfMonth(u&&M.isAfter(E,h)?E:h),X=M.startOfMonth(c&&M.isBefore(E,p)?E:p),oe=M.startOfMonth(ee);return M.isBefore(oe,B)||M.isAfter(oe,X)?!0:d?d(oe):!1},[c,u,p,h,E,d,M]),G=ue((ee,B)=>{if(m)return;const X=M.setMonth(O??k,B);$(X)}),_=ue(ee=>{Q(M.setMonth(O??k,ee))||(re(ee),V(!0),C&&C(ee))});S.useEffect(()=>{re(ee=>U!==null&&ee!==U?U:ee)},[U]);const z=ue((ee,B)=>{switch(ee.key){case"ArrowUp":_((12+B-3)%12),ee.preventDefault();break;case"ArrowDown":_((12+B+3)%12),ee.preventDefault();break;case"ArrowLeft":_((12+B+(D?1:-1))%12),ee.preventDefault();break;case"ArrowRight":_((12+B+(D?-1:1))%12),ee.preventDefault();break}}),Z=ue((ee,B)=>{_(B)}),te=ue((ee,B)=>{J===B&&V(!1)});return f.jsx(X1,j({ref:n,className:de(L.root,o),ownerState:F,role:"radiogroup","aria-labelledby":T},A,{children:mi(M,O??k).map(ee=>{const B=M.getMonth(ee),X=M.format(ee,"monthShort"),oe=M.format(ee,"month"),ne=B===U,ce=l||Q(ee);return f.jsx(U1,{selected:ne,value:B,onClick:G,onKeyDown:z,autoFocus:le&&B===J,disabled:ce,tabIndex:B===J&&!ce?0:-1,onFocus:Z,onBlur:te,"aria-current":N===B?"date":void 0,"aria-label":oe,monthsPerRow:x,slots:I,slotProps:R,children:X},X)})}))});function Z1(e){return ge("MuiPickersYear",e)}const Kr=he("MuiPickersYear",["root","yearButton","selected","disabled"]),J1=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],eP=e=>{const{disabled:t,selected:n,classes:r}=e;return me({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Z1,r)},tP=K("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%"}}]}),nP=K("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Kr.disabled}`]:t.disabled},{[`&.${Kr.selected}`]:t.selected}]})(({theme:e})=>j({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:He.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:He.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Kr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Kr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),rP=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:h,onBlur:v,"aria-current":d,slots:m,slotProps:g}=n,C=ve(n,J1),w=S.useRef(null),y=eP(n);Ue(()=>{r&&w.current?.focus()},[r]);const x=m?.yearButton??nP,P=Pe({elementType:x,externalSlotProps:g?.yearButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:w,type:"button",role:"radio","aria-current":d,"aria-checked":a,onClick:T=>u(T,l),onKeyDown:T=>p(T,l),onFocus:T=>h(T,l),onBlur:T=>v(T,l)},ownerState:n,className:y.yearButton});return f.jsx(tP,j({className:de(y.root,o),ownerState:n},C,{children:f.jsx(x,j({},P))}))});function oP(e){return ge("MuiYearCalendar",e)}he("MuiYearCalendar",["root"]);const sP=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],iP=e=>{const{classes:t}=e;return me({root:["root"]},oP,t)};function aP(e,t){const n=Le(),r=Ar(),o=Fe({props:e,name:t});return j({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate)})}const lP=K("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:qo,maxHeight:sS,boxSizing:"border-box",position:"relative"}),cP=S.forwardRef(function(t,n){const r=aP(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:p,maxDate:h,minDate:v,onChange:d,readOnly:m,shouldDisableYear:g,onYearFocus:C,hasFocus:w,onFocusedViewChange:y,yearsOrder:x="asc",yearsPerRow:P,timezone:T,gridLabelId:I,slots:R,slotProps:A}=r,O=ve(r,sP),{value:$,handleValueChange:b,timezone:E}=$i({name:"YearCalendar",timezone:T,value:i,defaultValue:a,referenceDate:l,onChange:d,valueManager:Rt}),D=Ho(E),M=vt(),k=Le(),F=S.useMemo(()=>Rt.getInitialReferenceValue({value:$,utils:k,props:r,timezone:E,referenceDate:l,granularity:Pt.year}),[]),L=r,N=iP(L),U=S.useMemo(()=>k.getYear(D),[k,D]),J=S.useMemo(()=>$!=null?k.getYear($):null,[$,k]),[re,le]=S.useState(()=>J||k.getYear(F)),[ie,V]=Dt({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),Q=ue(se=>{V(se),y&&y(se)}),G=S.useCallback(se=>{if(p&&k.isBeforeYear(se,D)||u&&k.isAfterYear(se,D)||v&&k.isBeforeYear(se,v)||h&&k.isAfterYear(se,h))return!0;if(!g)return!1;const fe=k.startOfYear(se);return g(fe)},[u,p,h,v,D,g,k]),_=ue((se,fe)=>{if(m)return;const be=k.setYear($??F,fe);b(be)}),z=ue(se=>{G(k.setYear($??F,se))||(le(se),Q(!0),C?.(se))});S.useEffect(()=>{le(se=>J!==null&&se!==J?J:se)},[J]);const Z=x!=="desc"?P*1:P*-1,te=M&&x==="asc"||!M&&x==="desc"?-1:1,ee=ue((se,fe)=>{switch(se.key){case"ArrowUp":z(fe-Z),se.preventDefault();break;case"ArrowDown":z(fe+Z),se.preventDefault();break;case"ArrowLeft":z(fe-te),se.preventDefault();break;case"ArrowRight":z(fe+te),se.preventDefault();break}}),B=ue((se,fe)=>{z(fe)}),X=ue((se,fe)=>{re===fe&&Q(!1)}),oe=S.useRef(null),ne=ke(n,oe);S.useEffect(()=>{if(o||oe.current===null)return;const se=oe.current.querySelector('[tabindex="0"]');if(!se)return;const fe=se.offsetHeight,be=se.offsetTop,we=oe.current.clientHeight,pe=oe.current.scrollTop,qe=be+fe;fe>we||be<pe||(oe.current.scrollTop=qe-we/2-fe/2)},[o]);const ce=k.getYearRange([v,h]);return x==="desc"&&ce.reverse(),f.jsx(lP,j({ref:ne,className:de(N.root,s),ownerState:L,role:"radiogroup","aria-labelledby":I},O,{children:ce.map(se=>{const fe=k.getYear(se),be=fe===J,we=c||G(se);return f.jsx(rP,{selected:be,value:fe,onClick:_,onKeyDown:ee,autoFocus:ie&&fe===re,disabled:we,tabIndex:fe===re&&!we?0:-1,onFocus:B,onBlur:X,"aria-current":U===fe?"date":void 0,yearsPerRow:P,slots:R,slotProps:A,children:k.format(se,"year")},k.format(se,"year"))})}))}),uP=e=>ge("MuiPickersCalendarHeader",e),dP=he("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function pP(e){return ge("MuiPickersArrowSwitcher",e)}he("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const fP=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],hP=["ownerState"],mP=["ownerState"],gP=K("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),yP=K("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Bl=K(Nr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),bP=e=>{const{classes:t}=e;return me({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},pP,t)},vP=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:h,isPreviousDisabled:v,isPreviousHidden:d,onGoToPrevious:m,previousLabel:g,labelId:C}=o,w=ve(o,fP),y=o,x=bP(y),P={isDisabled:c,isHidden:u,goTo:p,label:h},T={isDisabled:v,isHidden:d,goTo:m,label:g},I=a?.previousIconButton??Bl,R=Pe({elementType:I,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"end",onClick:T.goTo},ownerState:j({},y,{hidden:T.isHidden}),className:de(x.button,x.previousIconButton)}),A=a?.nextIconButton??Bl,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:j({},y,{hidden:P.isHidden}),className:de(x.button,x.nextIconButton)}),$=a?.leftArrowIcon??SS,b=Pe({elementType:$,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:y,className:x.leftArrowIcon}),E=ve(b,hP),D=a?.rightArrowIcon??wS,M=Pe({elementType:D,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:y,className:x.rightArrowIcon}),k=ve(M,mP);return f.jsxs(gP,j({ref:n,className:de(x.root,i),ownerState:y},w,{children:[f.jsx(I,j({},R,{children:r?f.jsx(D,j({},k)):f.jsx($,j({},E))})),s?f.jsx(Qt,{variant:"subtitle1",component:"span",id:C,children:s}):f.jsx(yP,{className:x.spacer,ownerState:y}),f.jsx(A,j({},O,{children:r?f.jsx($,j({},E)):f.jsx(D,j({},k))}))]}))});function xP(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 SP(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 wP=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],CP=["ownerState"],PP=e=>{const{classes:t}=e;return me({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},uP,t)},kP=K("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}),TP=K("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>j({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),MP=K("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),DP=K(Nr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${dP.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),RP=K(xS,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),IP=S.forwardRef(function(t,n){const r=Bt(),o=Le(),s=Fe({props:t,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:a,currentMonth:l,disabled:c,disableFuture:u,disablePast:p,maxDate:h,minDate:v,onMonthChange:d,onViewChange:m,view:g,reduceAnimations:C,views:w,labelId:y,className:x,timezone:P,format:T=`${o.formats.month} ${o.formats.year}`}=s,I=ve(s,wP),R=s,A=PP(s),O=i?.switchViewButton??DP,$=Pe({elementType:O,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(g)},ownerState:R,className:A.switchViewButton}),b=i?.switchViewIcon??RP,E=Pe({elementType:b,externalSlotProps:a?.switchViewIcon,ownerState:R,className:A.switchViewIcon}),D=ve(E,CP),M=()=>d(o.addMonths(l,1),"left"),k=()=>d(o.addMonths(l,-1),"right"),F=xP(l,{disableFuture:u,maxDate:h,timezone:P}),L=SP(l,{disablePast:p,minDate:v,timezone:P}),N=()=>{if(!(w.length===1||!m||c))if(w.length===2)m(w.find(J=>J!==g)||w[0]);else{const J=w.indexOf(g)!==0?0:1;m(w[J])}};if(w.length===1&&w[0]==="year")return null;const U=o.formatByString(l,T);return f.jsxs(kP,j({},I,{ownerState:R,className:de(A.root,x),ref:n,children:[f.jsxs(TP,{role:"presentation",onClick:N,ownerState:R,"aria-live":"polite",className:A.labelContainer,children:[f.jsx(Dd,{reduceAnimations:C,transKey:U,children:f.jsx(MP,{id:y,ownerState:R,className:A.label,children:U})}),w.length>1&&!c&&f.jsx(O,j({},$,{children:f.jsx(b,j({},D))}))]}),f.jsx(fn,{in:g==="day",appear:!C,enter:!C,children:f.jsx(vP,{slots:i,slotProps:a,onGoToPrevious:k,isPreviousDisabled:L,previousLabel:r.previousMonth,onGoToNext:M,isNextDisabled:F,nextLabel:r.nextMonth})})]}))}),EP=K("div")({overflow:"hidden",width:qo,maxHeight:Oi,display:"flex",flexDirection:"column",margin:"0 auto"}),$P=e=>ge("MuiDateCalendar",e);he("MuiDateCalendar",["root","viewTransitionContainer"]);const OP=["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"],AP=e=>{const{classes:t}=e;return me({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},$P,t)};function FP(e,t){const n=Le(),r=Ar(),o=Ju(),s=Fe({props:e,name:t});return j({},s,{loading:s.loading??!1,disablePast:s.disablePast??!1,disableFuture:s.disableFuture??!1,openTo:s.openTo??"day",views:s.views??["year","day"],reduceAnimations:s.reduceAnimations??o,renderLoading:s.renderLoading??(()=>f.jsx("span",{children:"..."})),minDate:lt(n,s.minDate,r.minDate),maxDate:lt(n,s.maxDate,r.maxDate)})}const LP=K(EP,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Oi}),NP=K(Dd,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),jP=S.forwardRef(function(t,n){const r=Le(),o=xt(),s=FP(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:p,disablePast:h,onChange:v,onYearChange:d,onMonthChange:m,reduceAnimations:g,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:y,view:x,views:P,openTo:T,className:I,disabled:R,readOnly:A,minDate:O,maxDate:$,disableHighlightToday:b,focusedView:E,onFocusedViewChange:D,showDaysOutsideCurrentMonth:M,fixedWeekNumber:k,dayOfWeekFormatter:F,slots:L,slotProps:N,loading:U,renderLoading:J,displayWeekNumber:re,yearsOrder:le,yearsPerRow:ie,monthsPerRow:V,timezone:Q}=s,G=ve(s,OP),{value:_,handleValueChange:z,timezone:Z}=$i({name:"DateCalendar",timezone:Q,value:l,defaultValue:c,referenceDate:u,onChange:v,valueManager:Rt}),{view:te,setView:ee,focusedView:B,setFocusedView:X,goToNextView:oe,setValueAndGoToNextView:ne}=ed({view:x,views:P,openTo:T,onChange:z,onViewChange:a,autoFocus:i,focusedView:E,onFocusedViewChange:D}),{referenceDate:ce,calendarState:se,changeFocusedDay:fe,changeMonth:be,handleChangeMonth:we,isDateDisabled:pe,onMonthSwitchingAnimationEnd:qe}=c1({value:_,referenceDate:u,reduceAnimations:g,onMonthChange:m,minDate:O,maxDate:$,shouldDisableDate:C,disablePast:h,disableFuture:p,timezone:Z}),Be=R&&_||O,ht=R&&_||$,mt=`${o}-grid-label`,nt=B!==null,rt=L?.calendarHeader??IP,Vt=Pe({elementType:rt,externalSlotProps:N?.calendarHeader,additionalProps:{views:P,view:te,currentMonth:se.currentMonth,onViewChange:ee,onMonthChange:(Ae,wt)=>we({newMonth:Ae,direction:wt}),minDate:Be,maxDate:ht,disabled:R,disablePast:h,disableFuture:p,reduceAnimations:g,timezone:Z,labelId:mt},ownerState:s}),gt=ue(Ae=>{const wt=r.startOfMonth(Ae),Xn=r.endOfMonth(Ae),Ht=pe(Ae)?hr({utils:r,date:Ae,minDate:r.isBefore(O,wt)?wt:O,maxDate:r.isAfter($,Xn)?Xn:$,disablePast:h,disableFuture:p,isDateDisabled:pe,timezone:Z}):Ae;Ht?(ne(Ht,"finish"),m?.(wt)):(oe(),be(wt)),fe(Ht,!0)}),Oe=ue(Ae=>{const wt=r.startOfYear(Ae),Xn=r.endOfYear(Ae),Ht=pe(Ae)?hr({utils:r,date:Ae,minDate:r.isBefore(O,wt)?wt:O,maxDate:r.isAfter($,Xn)?Xn:$,disablePast:h,disableFuture:p,isDateDisabled:pe,timezone:Z}):Ae;Ht?(ne(Ht,"finish"),d?.(Ht)):(oe(),be(wt)),fe(Ht,!0)}),_t=ue(Ae=>z(Ae&&yo(r,Ae,_??ce),"finish",te));S.useEffect(()=>{_!=null&&r.isValid(_)&&be(_)},[_]);const zt=s,Kn=AP(zt),ye={disablePast:h,disableFuture:p,maxDate:$,minDate:O},Te={disableHighlightToday:b,readOnly:A,disabled:R,timezone:Z,gridLabelId:mt,slots:L,slotProps:N},ze=S.useRef(te);S.useEffect(()=>{ze.current!==te&&(B===ze.current&&X(te,!0),ze.current=te)},[B,X,te]);const Wt=S.useMemo(()=>[_],[_]);return f.jsxs(LP,j({ref:n,className:de(Kn.root,I),ownerState:zt},G,{children:[f.jsx(rt,j({},Vt,{slots:L,slotProps:N})),f.jsx(NP,{reduceAnimations:g,className:Kn.viewTransitionContainer,transKey:te,ownerState:zt,children:f.jsxs("div",{children:[te==="year"&&f.jsx(cP,j({},ye,Te,{value:_,onChange:Oe,shouldDisableYear:y,hasFocus:nt,onFocusedViewChange:Ae=>X("year",Ae),yearsOrder:le,yearsPerRow:ie,referenceDate:ce})),te==="month"&&f.jsx(Q1,j({},ye,Te,{hasFocus:nt,className:I,value:_,onChange:gt,shouldDisableMonth:w,onFocusedViewChange:Ae=>X("month",Ae),monthsPerRow:V,referenceDate:ce})),te==="day"&&f.jsx(B1,j({},se,ye,Te,{onMonthSwitchingAnimationEnd:qe,onFocusedDayChange:fe,reduceAnimations:g,selectedDays:Wt,onSelectedDaysChange:_t,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:y,hasFocus:nt,onFocusedViewChange:Ae=>X("day",Ae),showDaysOutsideCurrentMonth:M,fixedWeekNumber:k,dayOfWeekFormatter:F,displayWeekNumber:re,loading:U,renderLoading:J}))]})})]}))}),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:h,minDate:v,maxDate:d,shouldDisableDate:m,shouldDisableMonth:g,shouldDisableYear:C,reduceAnimations:w,onMonthChange:y,monthsPerRow:x,onYearChange:P,yearsOrder:T,yearsPerRow:I,slots:R,slotProps:A,loading:O,renderLoading:$,disableHighlightToday:b,readOnly:E,disabled:D,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:k,sx:F,autoFocus:L,fixedWeekNumber:N,displayWeekNumber:U,timezone:J})=>f.jsx(jP,{view:e,onViewChange:t,views:n.filter(qa),focusedView:r&&qa(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:p,disablePast:h,minDate:v,maxDate:d,shouldDisableDate:m,shouldDisableMonth:g,shouldDisableYear:C,reduceAnimations:w,onMonthChange:y,monthsPerRow:x,onYearChange:P,yearsOrder:T,yearsPerRow:I,slots:R,slotProps:A,loading:O,renderLoading:$,disableHighlightToday:b,readOnly:E,disabled:D,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:k,sx:F,autoFocus:L,fixedWeekNumber:N,displayWeekNumber:U,timezone:J}),$d=S.forwardRef(function(t,n){const r=Bt(),o=Le(),s=Au(t,"MuiDesktopDatePicker"),i=j({day:An,month:An,year:An},s.viewRenderers),a=j({},s,{viewRenderers:i,format:gi(o,s,!1),yearsPerRow:s.yearsPerRow??4,slots:j({openPickerIcon:CS,field:Td},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},zo(s.slotProps?.field,c),Lu(s),{ref:n}),toolbar:j({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=vS({props:a,valueManager:Rt,valueType:"date",getOpenDialogAriaText:$u({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Fr});return l()});$d.propTypes={autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,dayOfWeekFormatter:Y.func,defaultValue:Y.object,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,enableAccessibleFieldDOMStructure:Y.any,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:Su,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.object,minDate:Y.object,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","month","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.object,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number]),shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.object,view:Y.oneOf(["day","month","year"]),viewRenderers:Y.shape({day:Y.func,month:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","month","year"]).isRequired),yearsOrder:Y.oneOf(["asc","desc"]),yearsPerRow:Y.oneOf([3,4])};function BP(e){return ge("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);const VP=he("MuiDialogTitle",["root"]),_P=e=>{const{classes:t,dividers:n}=e;return me({root:["root",n&&"dividers"]},BP,t)},zP=K("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:{[`.${VP.root} + &`]:{paddingTop:0}}}]}))),WP=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...i}=r,a={...r,dividers:s},l=_P(a);return f.jsx(zP,{className:de(l.root,o),ownerState:a,ref:n,...i})});function HP(e){return ge("MuiDialog",e)}const vr=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),UP=S.createContext({}),YP=K(dd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),GP=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${ae(n)}`],paper:["paper",`paperScroll${ae(n)}`,`paperWidth${ae(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return me(i,HP,t)},qP=K(pd,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),KP=K("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ae(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"}}}]}),XP=K(jr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ae(n.scroll)}`],t[`paperWidth${ae(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%"}}}]}))),QP=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:h,disableEscapeKeyDown:v=!1,fullScreen:d=!1,fullWidth:m=!1,maxWidth:g="sm",onClick:C,onClose:w,open:y,PaperComponent:x=jr,PaperProps:P={},scroll:T="paper",slots:I={},slotProps:R={},TransitionComponent:A=fn,transitionDuration:O=s,TransitionProps:$,...b}=r,E={...r,disableEscapeKeyDown:v,fullScreen:d,fullWidth:m,maxWidth:g,scroll:T},D=GP(E),M=S.useRef(),k=B=>{M.current=B.target===B.currentTarget},F=B=>{C&&C(B),M.current&&(M.current=null,w&&w(B,"backdropClick"))},L=xt(a),N=S.useMemo(()=>({titleId:L}),[L]),U={transition:A,...I},J={transition:$,paper:P,backdrop:u,...R},re={slots:U,slotProps:J},[le,ie]=je("root",{elementType:qP,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:E,className:de(D.root,h),ref:n}),[V,Q]=je("backdrop",{elementType:YP,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:E}),[G,_]=je("paper",{elementType:XP,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:E,className:de(D.paper,P.className)}),[z,Z]=je("container",{elementType:KP,externalForwardedProps:re,ownerState:E,className:D.container}),[te,ee]=je("transition",{elementType:fn,externalForwardedProps:re,ownerState:E,additionalProps:{appear:!0,in:y,timeout:O,role:"presentation"}});return f.jsx(le,{closeAfterTransition:!0,slots:{backdrop:V},slotProps:{backdrop:{transitionDuration:O,as:c,...Q}},disableEscapeKeyDown:v,onClose:w,open:y,onClick:F,...ie,...b,children:f.jsx(te,{...ee,children:f.jsx(z,{onMouseDown:k,...Z,children:f.jsx(G,{as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":L,"aria-modal":l,..._,children:f.jsx(UP.Provider,{value:N,children:p})})})})})}),ZP=K(QP)({[`& .${vr.container}`]:{outline:0},[`& .${vr.paper}`]:{outline:0,minWidth:qo}}),JP=K(WP)({"&:first-of-type":{padding:0}});function ek(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:s}=e,i=o?.dialog??ZP,a=o?.mobileTransition??fn;return f.jsx(i,j({open:r,onClose:n},s?.dialog,{TransitionComponent:a,TransitionProps:s?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:s?.mobilePaper,children:f.jsx(JP,{children:t})}))}const tk=["props","getOpenDialogAriaText"],nk=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,tk);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:h,timezone:v,name:d,label:m,inputRef:g,readOnly:C,disabled:w,localeText:y}=t,x=S.useRef(null),P=xt(),T=s?.toolbar?.hidden??!1,{open:I,actions:R,layoutProps:A,renderCurrentView:O,fieldProps:$,contextValue:b}=td(j({},r,{props:t,fieldRef:x,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),E=o.field,D=Pe({elementType:E,externalSlotProps:s?.field,additionalProps:j({},$,T&&{id:P},!(w||C)&&{onClick:R.onOpen,onKeyDown:sx(R.onOpen)},{readOnly:C??!0,disabled:w,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:h,timezone:v,label:m,name:d},g?{inputRef:g}:{}),ownerState:t});D.inputProps=j({},D.inputProps,{"aria-label":n($.value)});const M=j({textField:o.textField},D.slots),k=o.layout??ad;let F=P;T&&(m?F=`${P}-label`:F=void 0);const L=j({},s,{toolbar:j({},s?.toolbar,{titleId:P}),mobilePaper:j({"aria-labelledby":F},s?.mobilePaper)}),N=ke(x,D.unstableFieldRef);return{renderPicker:()=>f.jsxs(ld,{contextValue:b,localeText:y,children:[f.jsx(E,j({},D,{slots:M,slotProps:L,unstableFieldRef:N})),f.jsx(ek,j({},R,{open:I,slots:o,slotProps:L,children:f.jsx(k,j({},A,L?.layout,{slots:o,slotProps:L,children:O()}))}))]})}},Od=S.forwardRef(function(t,n){const r=Bt(),o=Le(),s=Au(t,"MuiMobileDatePicker"),i=j({day:An,month:An,year:An},s.viewRenderers),a=j({},s,{viewRenderers:i,format:gi(o,s,!1),slots:j({field:Td},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},zo(s.slotProps?.field,c),Lu(s),{ref:n}),toolbar:j({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=nk({props:a,valueManager:Rt,valueType:"date",getOpenDialogAriaText:$u({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Fr});return l()});Od.propTypes={autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,dayOfWeekFormatter:Y.func,defaultValue:Y.object,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,enableAccessibleFieldDOMStructure:Y.any,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:Su,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.object,minDate:Y.object,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","month","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.object,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number]),shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.object,view:Y.oneOf(["day","month","year"]),viewRenderers:Y.shape({day:Y.func,month:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","month","year"]).isRequired),yearsOrder:Y.oneOf(["asc","desc"]),yearsPerRow:Y.oneOf([3,4])};const rk=["desktopModeMediaQuery"],Ad=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=ix}=r,s=ve(r,rk);return xu(o,{defaultMatches:!0})?f.jsx($d,j({ref:n},s)):f.jsx(Od,j({ref:n},s))}),Fd=400;function ok(e,t){const[n,r]=W.useState(e);return W.useEffect(()=>{const o=setTimeout(()=>r(e),t);return()=>clearTimeout(o)},[e,t]),n}function Ld(e,t,{same:n=Object.is,unset:r=!1}={}){const[o,s]=W.useState(e),[i,a]=W.useState(!1),l=W.useRef(!1),c=W.useRef(null),u=W.useRef(!1),p=W.useRef({draft:o,committed:e,focused:i,unset:r,commit:t,same:n});W.useEffect(()=>{p.current={draft:o,committed:e,focused:i,unset:r,commit:t,same:n}});const h=()=>{const y=p.current,x=c.current?c.current.value:y.committed;return l.current&&(y.unset||!y.same(y.draft,x))},v=()=>{const y=p.current;c.current={value:y.draft},y.commit(y.draft),y.unset&&y.same(y.draft,y.committed)&&(l.current=!1)},d=()=>{h()&&v()},[m,g]=W.useState(0),C=W.useMemo(()=>({draft:o,gen:m}),[o,m]),w=ok(C,Fd);return W.useEffect(()=>{const y=p.current;y.same(w.draft,y.draft)&&h()&&!u.current&&v()},[w]),W.useEffect(()=>()=>d(),[]),W.useEffect(()=>{if(c.current&&n(c.current.value,e)&&(c.current=null),n(o,e)){!r&&!c.current&&(l.current=!1);return}(!i||!l.current)&&s(e)},[e,i,o,r,n]),{draft:o,change:y=>{l.current=!0,s(y),!p.current.focused&&!n(y,e)&&t(y)},reset:y=>{l.current=!1,c.current=null,s(y)},bind:{onFocus:()=>a(!0),onBlur:()=>{a(!1),d(),c.current=null},onKeyDown:y=>{y.key==="Enter"&&!y.nativeEvent.isComposing&&d()},onCompositionStart:()=>{u.current=!0},onCompositionEnd:()=>{u.current=!1,g(y=>y+1)}}}}const sk=250,ik=300*1e3;function ak(e,t){const n=W.useContext(Hn.QueryClientContext),r=t.trim(),[o,s]=W.useState("");W.useEffect(()=>{const p=setTimeout(()=>s(r),sk);return()=>clearTimeout(p)},[r]);const[i,a]=W.useState(),l=e?JSON.stringify(e.key):void 0;W.useEffect(()=>{if(!e||!n||o==="")return;let p=!0;return n.fetchQuery({queryKey:[...e.key,o],queryFn:({signal:h})=>e.run(o,h),staleTime:ik}).then(h=>{p&&a({key:l,text:o,page:h})}).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 Ui(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"?lk(n):n}function lk(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(si);const Vl=14,ck=42;function uk(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 Yi({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=uk(e),h=Ui(u,e.default),v=h!==void 0?`Default: ${h===""?"(empty)":h}`:void 0,d=p||v?f.jsxs(f.Fragment,{children:[p,p&&v?f.jsx("br",{}):null,v]}):void 0,m=u==="string"||Kt(u)==="string",g=!Gt(u)||typeof t!="string"||Xc(t),C=V=>f.jsx(H.TextField,{label:l,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:f.jsxs(f.Fragment,{children:[`Not a ${V}. Clear it to pick one.`,d?f.jsx("br",{}):null,d]}),slotProps:{input:{endAdornment:f.jsx(Nd,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),w=Gt(u),y=e.control==="multiselect"&&w,x=Gt(u),P=e.control==="select"||e.control==="multiselect",T=P?x?typeof t=="string"?Kc(t):[]:typeof t=="string"&&t!==""?[t]:[]:[],[I,R]=W.useState(""),[A,O]=W.useState(null),$=W.useRef(null),b=ak(P?a:void 0,I);if(P&&m&&g&&!(!y&&T.length>1)){const V=G=>{const _=x?ii(G):void 0;if(G.length===0||_===""){n(null);return}n(x?_:G[0])},Q=gk(b,i,a);return f.jsx(jd.Provider,{value:Q,children:f.jsx(H.Autocomplete,{multiple:y,disableCloseOnSelect:y,freeSolo:!0,forcePopupIcon:!0,autoSelect:!y,options:b.page?.values??r??[],...b.page?{filterOptions:G=>G}:{},onInputChange:(G,_,z)=>R(z==="input"?_:""),loading:o||b.searching,loadingText:b.searching?"Searching…":"Loading…",noOptionsText:s?"Options unavailable":"No matching values",slots:{paper:mk},value:y?T:T[0]??null,onChange:(G,_)=>V(_===null?[]:Array.isArray(_)?_:[_]),renderInput:G=>f.jsx(H.TextField,{...G,label:l,size:"small",placeholder:T.length!==0?void 0:t===""?"All":h??"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:{...G.InputProps,endAdornment:f.jsxs(f.Fragment,{children:[o&&f.jsx(H.CircularProgress,{size:16}),G.InputProps.endAdornment]})},htmlInput:{...G.inputProps,onBlur:_=>{if(G.inputProps.onBlur?.(_),!y)return;const z=_.target.value.trim();z!==""&&!T.includes(z)&&V([...T,z])}}}}),fullWidth:!0})})}const E=Gt(u)&&Kt(u)==="number",{rangeMin:D,rangeMax:M}=e,k=E&&typeof t=="string"?Zc(t):void 0,F=E&&typeof t=="string"?Jc(t):void 0;if((E||u==="number")&&D!==void 0&&M!==void 0&&(!E||t===void 0||t===null||t===""||k!==void 0||F!==void 0)){const V=F??(k!==void 0?[k,M]:void 0),Q=E?V?.[0]:typeof t=="number"?t:void 0;if(Q===void 0&&t!==void 0&&t!==null&&t!=="")return C("number");const G=A!==null,_=G?Array.isArray(A)?A[0]:A:Q??D,z=Array.isArray(A)?[A[0],A[1]]:V??[D,M],Z=z[1]>=M?`≥ ${z[0]}`:`${z[0]} to ${z[1]}`,te=E&&t===""&&!G,ee=Q!==void 0||te||G;return f.jsxs(H.FormControl,{fullWidth:!0,children:[f.jsxs(H.Box,{component:"fieldset",sx:B=>({m:0,minWidth:0,border:c.cardBorder,borderRadius:2,px:`${Vl}px`,pt:0,pb:.75,minHeight:ck,transition:"border-color 120ms ease-in","&:hover":{borderColor:B.palette.text.secondary},"&:focus-within":{borderColor:B.palette.text.primary}}),children:[f.jsx(H.Typography,{component:"legend",variant:"caption",color:"text.secondary",sx:{px:.5,lineHeight:1},children:l}),f.jsxs(H.Stack,{direction:"row",alignItems:"center",spacing:1,children:[f.jsx(H.Typography,{variant:"body2",sx:{fontWeight:"fontWeightMedium"},children:ee?te?"Any":E?Z:String(_):E?"Any":h??"Unset"}),ee&&f.jsx(Mr,{onClear:()=>n(null),sx:{p:0}})]}),f.jsx(H.Slider,{size:"small",min:D,max:M,value:E?z:_,disableSwap:E,valueLabelDisplay:"auto","aria-label":E?void 0:l,getAriaLabel:E?B=>B===0?`${l} from`:`${l} to`:void 0,sx:{py:0,mt:.5},onChange:(B,X)=>{$.current=X,O(X)},onChangeCommitted:()=>{const B=$.current;if($.current=null,O(null),B!==null){if(E){const[X,oe]=Array.isArray(B)?[B[0],B[1]]:[B,B];if(X<=D&&oe>=M){n(null);return}n(oe>=M?Yg(X):Gg(X,oe));return}n(Array.isArray(B)?B[0]:B)}}}),f.jsxs(H.Stack,{direction:"row",justifyContent:"space-between",children:[f.jsx(H.Typography,{variant:"caption",color:"text.secondary",children:D}),f.jsx(H.Typography,{variant:"caption",color:"text.secondary",children:M})]})]}),d&&f.jsx(H.FormHelperText,{sx:{mx:`${Vl}px`},children:d})]})}const N=Gt(u)?Kt(u):void 0,U=N==="date"||N==="timestamp"||N==="timestamptz",J=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),re=t==null||J;if(U&&!J){const V=fk(t);if(V!==void 0)return f.jsx(hk,{label:l,state:V,onChange:n,helperNode:d,defaultDisplay:h})}if(U&&re){const V=J?Re.utc(t):null;return f.jsx(Co,{label:l,committed:V?.isValid()?V:null,toValue:Q=>Q.format("YYYY-MM-DD"),onChange:n,helperText:d})}if(Kt(u)==="boolean"){const V=typeof t=="string"?Ug(t):void 0;if(t==null||t===""||V!==void 0)return f.jsx(pk,{label:l,picked:V,emptyOverride:t==="",onChange:n,helperNode:d,defaultDisplay:h})}if(u==="boolean"){const V=typeof t=="boolean";if(!V&&t!==void 0&&t!==null)return C("true or false");const Q=e.default?.trim()==="true",G=V?t:Q;return f.jsxs(H.FormControl,{children:[f.jsxs(H.Stack,{direction:"row",alignItems:"center",children:[f.jsx(H.FormControlLabel,{control:f.jsx(H.Checkbox,{checked:G,onChange:_=>n(_.target.checked)}),label:l}),V&&f.jsx(Mr,{onClear:()=>n(null),edge:"end"})]}),d&&f.jsx(H.FormHelperText,{children:d})]})}if(u==="number"){const V=t!=null;return V&&t!==""&&typeof t!="number"?C("number"):f.jsx(_l,{label:l,type:"number",committed:typeof t=="number"?String(t):"",onCommit:Q=>n(Q===""?null:Number(Q)),placeholder:h,helperText:d,isOverridden:V,onClear:()=>n(null)})}if(u==="date"||u==="timestamp"||u==="timestamptz"){const V=t instanceof Date?t:typeof t=="string"?(_=>_ instanceof Date?_:null)(du(u,t)):null,Q=V?Re.utc(V):null;return t!=null&&t!==""&&V===null?C("date"):f.jsx(Co,{label:l,committed:Q,toValue:_=>Jg(_,V??void 0),onChange:n,helperText:d})}const le=typeof t=="string"?t:"",ie=t!=null;return f.jsx(_l,{label:l,committed:le,onCommit:n,placeholder:ie?void 0:h??(u.startsWith("filter<")?u:void 0),helperText:d,isOverridden:ie,emptyOverrides:!0,onClear:()=>n(null)})}function _l({label:e,type:t,committed:n,onCommit:r,placeholder:o,helperText:s,isOverridden:i,emptyOverrides:a=!1,onClear:l}){const{draft:c,change:u,reset:p,bind:h}=Ld(n,r,{unset:a&&!i});return f.jsx(H.TextField,{label:e,type:t,value:c,onChange:v=>u(v.target.value),placeholder:o,helperText:s,slotProps:{input:{endAdornment:i&&f.jsx(Nd,{onClear:()=>{p(""),l()}})}},...h,fullWidth:!0,size:"small"})}const dk=(e,t)=>e===null||t===null?e===t:e.year()===t.year()&&e.month()===t.month()&&e.date()===t.date();function Co({label:e,committed:t,toValue:n,onChange:r,helperText:o,minDate:s}){const{draft:i,change:a,reset:l,bind:c}=Ld(t,u=>{u===null?r(null):u.isValid()&&r(n(u))},{same:dk});return f.jsx(vi,{dateAdapter:gu,children:f.jsx(Ad,{label:e,value:i,minDate:s,onChange:a,slotProps:{textField:{fullWidth:!0,size:"small",helperText:o,...c},field:{clearable:!0,onClear:()=>{l(null),r(null)}},clearButton:{onMouseDown:u=>u.preventDefault()}}})})}function Mr({onClear:e,edge:t,sx:n}){return f.jsx(H.IconButton,{size:"small","aria-label":"Clear value",onClick:e,edge:t,sx:[{minWidth:24,minHeight:24},...Array.isArray(n)?n:[n]],children:f.jsx(yy,{fontSize:"small"})})}function Nd({onClear:e}){return f.jsx(H.InputAdornment,{position:"end",onMouseDown:t=>t.preventDefault(),children:f.jsx(Mr,{onClear:e,edge:"end"})})}const Xr="__any__";function pk({label:e,picked:t,emptyOverride:n,onChange:r,helperNode:o,defaultDisplay:s}){const i=t??(n?Xr:""),a=i!=="";return f.jsx(H.Box,{"data-testid":"boolean-filter",children:f.jsxs(H.TextField,{select:!0,label:e,value:i,size:"small",fullWidth:!0,helperText:o,slotProps:{select:{displayEmpty:!0,renderValue:l=>l==="true"||l==="false"?l:l===Xr?"Any":s||"Any"},input:{endAdornment:a?f.jsx(Mr,{onClear:()=>r(null),sx:{mr:2}}):void 0}},onChange:l=>{l.target.value!==Xr&&r(l.target.value)},children:[n&&f.jsx(H.MenuItem,{value:Xr,children:"Any"}),f.jsx(H.MenuItem,{value:"true",children:"true"}),f.jsx(H.MenuItem,{value:"false",children:"false"})]})})}function fk(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=eu(e);if(t!==void 0)return{kind:"preset",key:t};const n=tu(e);if(n!==void 0)return{kind:"days",...n}}const Qr="__custom__",gs="__any__";function hk({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]=W.useState(t.kind==="days"),[l,c]=W.useState(t.kind==="days"?{from:t.firstDay,to:t.lastDay}:{});W.useEffect(()=>{t.kind==="days"?(a(!0),c({from:t.firstDay,to:t.lastDay})):t.kind!=="unset"&&a(!1)},[s]);const u=t.kind!=="unset",p=i?Qr:t.kind==="preset"?t.key:t.kind==="any"?gs:"",h=d=>{c(d),d.from&&d.to&&!Re.utc(d.to).isBefore(Re.utc(d.from))&&n(Xg(d.from,d.to))},v=d=>{const m=d?Re.utc(d):null;return m?.isValid()?m:null};return f.jsxs(H.Stack,{direction:"row",spacing:1,"data-testid":"time-range",children:[f.jsxs(H.TextField,{select:!0,label:e,value:p,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:d=>{if(d===Qr)return"Custom range";if(d===gs)return"Any time";const m=wr.find(g=>g.key===d);return m?m.label:o??"Any time"}},input:{endAdornment:u?f.jsx(Mr,{onClear:()=>{a(!1),c({}),n(null)},sx:{mr:2}}):void 0}},onChange:d=>{const m=d.target.value;if(m===Qr){a(!0);return}a(!1);const g=qg(m);g!==void 0&&n(g)},children:[t.kind==="any"&&f.jsx(H.MenuItem,{value:gs,children:"Any time"}),wr.map(d=>f.jsx(H.MenuItem,{value:d.key,children:d.label},d.key)),f.jsx(H.MenuItem,{value:Qr,children:"Custom range"})]}),i&&f.jsxs(f.Fragment,{children:[f.jsx(Co,{label:"From",committed:v(l.from),toValue:d=>d.format("YYYY-MM-DD"),onChange:d=>h({...l,from:d===null?void 0:String(d)})}),f.jsx(Co,{label:"To",committed:v(l.to),minDate:v(l.from)??void 0,toValue:d=>d.format("YYYY-MM-DD"),onChange:d=>h({...l,to:d===null?void 0:String(d)})})]})]})}const jd=W.createContext(void 0);function mk({children:e,...t}){const n=W.useContext(jd);return f.jsxs(H.Paper,{...t,children:[e,n&&f.jsx(H.Box,{role:"note",sx:{px:2,py:1,borderTop:1,borderColor:"divider",color:"text.secondary",typography:"caption"},children:n})]})}const Zr=e=>e.toLocaleString("en-US");function gk(e,t,n){if(e.active)return e.searching?"Searching all values…":e.failed?`Could not search all values. Showing matches in the first ${Zr(un)}.`:e.page?.truncated?`Showing the first ${Zr(di)} matches. Keep typing to narrow them.`:void 0;if(t)return n?`Showing the first ${Zr(un)} values. Type to search them all.`:`Showing the first ${Zr(un)} values. A value not listed can still be typed.`}const Bd=W.createContext(void 0),qn=()=>W.useContext(Bd),Rn="remove-badge",Vd={[`& .${Rn}`]:{opacity:0},[`&:hover .${Rn}, &:focus-within .${Rn}`]:{opacity:1},"@media (hover: none)":{[`& .${Rn}`]:{opacity:1}}};function _d({label:e,onRemove:t,disabledReason:n,inset:r=0}){const{theme:o}=Se.usePublisherTheme(),s=n!==void 0,i=f.jsx(H.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 ${$r}`,...Or,"&:hover":{bgcolor:a.palette.background.paper,color:s?a.palette.text.secondary:a.palette.text.primary,borderColor:ei(o.cardBorder,o.tileTitle)}}),children:f.jsx(Bo,{sx:{fontSize:12}})});return s?f.jsx(H.Tooltip,{title:n,children:i}):i}const Gi=e=>e.required===!0,yk=(e,t)=>e==null||e===""&&!uu(t);function bk(e,t,n){return e.filter(r=>r.name!==void 0&&Gi(r)&&yk(t.get(r.name),r.type)&&(n?.[r.name]===void 0||n[r.name]===null))}function vk(e,t){if(!t||e.length===0)return[];const n=new Set(t);return e.filter(r=>r.name&&n.has(r.name))}const zd=e=>e.label??e.name??"";function Wd(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`}function xk(e){const t=e.map(zd);return`Pick a value for ${Wd(t)} to see this report.`}function Sk(e){return`Waiting for ${Wd(e.map(zd))}.`}const js=28,wk=/^\d{4}-\d{2}-\d{2}$/,Hd=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function ys(e){if(!wk.test(e))return e;const t=new Date(`${e}T00:00:00Z`);return Number.isNaN(t.getTime())?e:Hd.format(t)}function Ck(e){if(e.length===0)return"";const t=e.join(", ");return t.length<=js||e.length===1?Po(t):`${Po(e[0]??"")} +${e.length-1}`}function Po(e){return e.length>js?`${e.slice(0,js-1)}…`:e}function Pk(e){if(Gi(e))return"Required";const t=e.type??"string",n=Ui(t,e.default);if(n!==void 0&&n!=="")return Ud(t,n);const r=Kt(t)??t;return e.control==="select"||e.control==="multiselect"||r==="string"?"All":"Any"}function Ud(e,t){if(!Gt(e))return Po(ys(t));const n=Kt(e);if(n==="string"&&Xc(t))return Ck(Kc(t));if(n==="number"){const r=Jc(t);if(r)return`${r[0]}–${r[1]}`;const o=Zc(t);if(o!==void 0)return`≥ ${o}`}if(n==="date"||n==="timestamp"||n==="timestamptz"){const r=eu(t);if(r)return wr.find(s=>s.key===r)?.label??t;const o=tu(t);if(o)return`${ys(o.firstDay)} – ${ys(o.lastDay)}`}return Po(t)}function kk(e,t){return t==null?Pk(e):t instanceof Date?Number.isNaN(t.getTime())?"":Hd.format(t):typeof t=="boolean"?t?"Yes":"No":typeof t=="number"?String(t):t===""?"(empty)":Ud(e.type??"string",t)}function Tk(e){const{given:t,value:n,onChange:r}=e,{theme:o}=Se.usePublisherTheme(),s=o.ui,i=qn(),[a,l]=W.useState(null),c=t.name??"",u=t.label??c,p=n!=null,h=kk(t,n),v=a!==null,d=i?.stateOf(c),m=d?.problem,g=d?.fixed,C=f.jsxs(Yd,{name:c,set:p,open:v,problem:m,fixed:g!==void 0,required:!p&&Gi(t),children:[f.jsxs(H.ButtonBase,{"aria-haspopup":"dialog","aria-expanded":v,"aria-label":`${u}: ${h}`,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(H.Box,{component:"span",sx:w=>({color:p?o.accent:w.palette.text.secondary,whiteSpace:"nowrap"}),children:u}),f.jsx(H.Box,{component:"span",sx:{fontWeight:s.type.control.fontWeight,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:h}),!p&&f.jsx(kc,{"aria-hidden":!0,sx:w=>({fontSize:16,color:w.palette.text.secondary,transform:v?"rotate(180deg)":"none"})})]}),p&&f.jsx(H.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:[m?f.jsx(H.Tooltip,{title:m,children:C}):C,f.jsxs(H.Popover,{className:Ot.filterPopover,open:v,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(Yi,{...e}),i&&f.jsxs(H.Box,{sx:w=>({mt:1.5,pt:1,borderTop:`1px solid ${w.palette.divider}`,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:.5}),children:[m&&f.jsx(H.Typography,{sx:{...s.type.caption,color:"warning.main"},children:m}),g!==void 0&&f.jsx(H.Typography,{sx:w=>({...s.type.caption,color:w.palette.text.secondary}),children:g}),f.jsx(Rk,{name:c,type:t.type,text:Mk(n,t.type)}),g===void 0?f.jsx(H.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(H.Button,{size:"small",onClick:()=>{l(null),d.openModel?.()},sx:{px:.75,minWidth:0,...s.type.control},children:"Open the model"})]})]})]})}function Mk(e,t){if(e!=null)return lu(e,t)}function Dk(e,t){return e===void 0||!t?.startsWith("filter<")?e:/^f(['"])([\s\S]*)\1$/.exec(e)?.[2]??e}function Rk({name:e,type:t,text:n}){const r=qn(),o=Se.usePublisherTheme().theme.ui;if(!r?.setStartingValue)return null;const s=r.setStartingValue,i=Dk(r.startingValueOf?.(e),t),a=r.stateOf(e)?.origin==="dashboard",l={px:.75,minWidth:0,...o.type.control};return f.jsxs(f.Fragment,{children:[i!==void 0&&i===n&&f.jsxs(H.Typography,{sx:c=>({...o.type.caption,color:c.palette.text.secondary,px:.75,display:"flex",alignItems:"center",gap:.5}),children:[f.jsx(Pc,{"aria-hidden":!0,sx:{fontSize:14}}),"Report default"]}),n!==void 0&&n!==i&&f.jsx(H.Button,{size:"small",onClick:()=>s(e,n),sx:l,children:"Make this the report's default"}),i!==void 0&&f.jsx(H.Button,{size:"small",onClick:()=>s(e,void 0),sx:l,children:a?"Use the filter's default":"Use the model's default"})]})}function Yd({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(H.Box,{className:Ot.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 ${$r}`,...Or,"&:hover":{borderColor:t||n||o?void 0:ei(l.cardBorder,l.tileTitle)},maxWidth:"100%",...Vd}),children:[a,u&&!s&&f.jsx(_d,{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(Yd,{name:e,unused:n,problem:s,children:f.jsxs(H.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(H.Box,{component:"span",sx:{fontStyle:"italic"},children:"Unused"})]})});return s?f.jsx(H.Tooltip,{title:s,children:i}):i}function qd(){const{theme:e}=Se.usePublisherTheme(),t=e.ui,n=qn();if(!n)return null;const r=n.addDisabledReason!==void 0;return f.jsx(H.Tooltip,{title:n.addDisabledReason??"",children:f.jsx("span",{children:f.jsx(H.Button,{variant:"outlined",startIcon:f.jsx(Qs,{}),"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 Ik({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:h}){const v=qn();if(e.length===0&&!(v&&s==="bar"))return null;const d=Array.from(t.values()).some(y=>y!==null),m=o??d,g=y=>{if(y===void 0)return{};const x=u?.get(y);return{...c?.has(y)?{optionsTruncated:!0}:{},...x?{optionSearch:x}:{}}},C=e.map(y=>f.jsx(H.Box,{children:f.jsx(Yi,{given:y,value:y.name?t.get(y.name):void 0,onChange:x=>y.name&&n(y.name,x),options:y.name?i?.get(y.name):void 0,optionsLoading:a,optionsFailed:y.name?l?.has(y.name):void 0,...g(y.name)})},y.name)),w=f.jsxs(H.Stack,{direction:"row",alignItems:"center",spacing:1,children:[p&&f.jsx(H.Button,{variant:"contained",size:"small",disableElevation:!0,onClick:()=>p.pending&&p.onApply(),"aria-disabled":!p.pending,sx:{"&[aria-disabled='true']":{cursor:"default",color:"action.disabled",backgroundColor:"action.disabledBackground","&:hover":{backgroundColor:"action.disabledBackground"}}},children:"Apply"}),m&&f.jsx(H.Button,{variant:"text",size:"small",onClick:r,children:"Reset"})]});return s==="bar"?f.jsxs(H.Stack,{direction:"row",role:"group","aria-label":h??"Filters",useFlexGap:!0,sx:{flexWrap:"wrap",alignItems:"center",gap:1},children:[e.map(y=>f.jsx(Tk,{given:y,value:y.name?t.get(y.name):void 0,onChange:x=>y.name&&n(y.name,x),options:y.name?i?.get(y.name):void 0,optionsLoading:a,optionsFailed:y.name?l?.has(y.name):void 0,...g(y.name)},y.name)),v?.unrendered.map(y=>f.jsx(Gd,{name:y.name,label:y.label},y.name)),f.jsx(qd,{}),f.jsx(H.Box,{sx:{ml:"auto"},children:w})]}):f.jsxs(H.Paper,{elevation:0,sx:{p:3,backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[f.jsxs(H.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[f.jsx(H.Typography,{variant:"subtitle2",sx:{fontWeight:"fontWeightMedium",color:"text.primary"},children:h??"Filters"}),w]}),f.jsx(H.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:C})]})}const Ek=/^(https?|mailto|tel):/i,$k=/^[a-z][a-z0-9+.-]*:/i;function Ok({href:e,title:t,children:n,context:r}){const o=!!e&&$k.test(e),s=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!s||!r){const p=o&&!Ek.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 Ak=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:Mc},"& 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 Fk({alt:e}){return f.jsx(f.Fragment,{children:e})}function Lk({children:e,variant:t="caption",links:n,sx:r}){const{theme:o}=Se.usePublisherTheme();return f.jsx(H.Box,{sx:[Ak(o.ui)[t],{fontFamily:o.font.family},...Array.isArray(r)?r:[r]],children:f.jsx(_p,{options:{forceBlock:t==="document",disableParsingRawHTML:!0,overrides:{a:{component:Ok,props:{context:n}},img:{component:Fk}}},children:e})})}const ko={opening:e=>e?`Opening the ${e}…`:"Opening…",running:"Running…",loading:"Loading…"};function qi({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(H.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:s},children:[f.jsx(H.CircularProgress,{size:t,color:n,thickness:r}),e&&f.jsx(H.Typography,{variant:i,color:"text.secondary",children:e})]});return o?f.jsx(H.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:a}):a}let ir;function Kd(){return ir||(ir=import("@malloydata/render"),ir.catch(()=>{ir=void 0})),ir}function Xd(){typeof window>"u"||Kd().catch(()=>{})}const Qd=$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 Zd({sx:e,...t}){const{theme:n}=Se.usePublisherTheme();return f.jsx(H.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 Nk=new Set(["warn","error"]);function jk(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!Nk.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 Bk="publisher-result-scroller",Vk=W.lazy(()=>Promise.resolve().then(()=>require("./RenderedResult-B5f4qOjp.cjs.js")).then(e=>e.RenderedResult$1));function Jd({result:e,maxHeight:t,tableMaxHeight:n,firstPaintHeight:r,maxResultSize:o=0,renderLogs:s,drill:i,fill:a=!1,compactToFit:l=!1}){const c=W.useRef(null);W.useEffect(()=>Xd(),[]);const[u,p]=W.useState(void 0),[h,v]=W.useState(void 0),[d,m]=W.useState(void 0),g=W.useCallback((F,L)=>{p(F),m(L)},[]),[C,w]=W.useState(!1),[y,x]=W.useState(void 0),P=jk(s),T=!!e;W.useEffect(()=>{const F=c.current;if(!a||!F)return;const L=new ResizeObserver(([N])=>{x(Math.round(N.contentRect.height)),O(Math.round(N.contentRect.width))});return L.observe(F),()=>L.disconnect()},[a,T,C]);const[I,R]=W.useState(void 0),[A,O]=W.useState(void 0),$=a&&l&&u==="content";if(W.useEffect(()=>{R(void 0)},[e,A,$]),W.useEffect(()=>{$&&(y===void 0||h===void 0||(I===void 0&&h>y+1?R(h):I!==void 0&&y>=I&&R(void 0)))},[$,y,h,I]),!e)return null;if(o>0&&e.length>o&&!C)return f.jsxs(H.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(Wp.Warning,{sx:{fontSize:48,color:"#757575"}}),f.jsx(H.Typography,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),f.jsx(H.Button,{variant:"contained",color:"primary",onClick:()=>w(!0),children:"Proceed"})]});const E=f.jsx(qi,{text:ko.loading,centered:!0,size:32}),D=mg({renderAs:d,maxHeight:t,tableMaxHeight:n}),M=Ts({sizing:u,contentHeight:h,maxHeight:D,fillHeight:a?y:void 0,firstPaintHeight:r}),k=f.jsx(W.Suspense,{fallback:E,children:f.jsx(Vk,{result:e,height:M,onSizeChange:v,onSizing:g,drill:i,fill:a})});return f.jsxs(H.Box,{ref:c,sx:{position:"relative",height:"auto",border:"0px",borderRadius:0,overflowX:"hidden",overflowY:a?"hidden":"auto",...a&&{flex:`1 1 ${Ts({sizing:u,contentHeight:h,maxHeight:D,firstPaintHeight:r})}px`,minHeight:0}},children:[a?f.jsx(H.Box,{className:Bk,...$&&I!==void 0?{[Nc]:""}:{},sx:{position:"absolute",inset:0,overflowX:"hidden",overflowY:"auto"},children:k}):k,P&&f.jsx(H.Box,{sx:{position:"absolute",top:4,right:4,zIndex:1},children:f.jsx(H.Tooltip,{title:P.title,slotProps:{tooltip:{sx:{whiteSpace:"pre-line"}}},children:f.jsx(Zd,{"aria-label":"Render tag warnings",children:f.jsx(Qd,{fontSize:"small",color:P.severity==="error"?"error":"warning"})})})})]})}function ep({state:e,context:t,loadingText:n=ko.running,maxHeight:r,tableMaxHeight:o,firstPaintHeight:s,maxResultSize:i,drill:a,fill:l,compactToFit:c,transform:u}){const{data:p,isSuccess:h,isError:v,error:d,fetchStatus:m,isPlaceholderData:g}=e,C=h||m==="fetching";W.useEffect(()=>{C&&Xd()},[C]);const w=p?.data.result,y=W.useMemo(()=>w!==void 0&&u?u(w):w,[w,u]),x=W.useMemo(()=>Zm(y),[y]);if(v)return f.jsx(H.Box,{sx:{p:2},children:f.jsx(Hc,{context:t,error:d})});if(!h)return f.jsx(qi,{text:m==="idle"?ko.loading:n});if(x)return f.jsx(H.Box,{sx:{p:2},children:f.jsx(H.Typography,{variant:"body2",role:"status",color:"text.secondary",children:x})});const P=f.jsx(Jd,{result:y,maxHeight:r,tableMaxHeight:o,...s!==void 0?{firstPaintHeight:s}:{},maxResultSize:i,renderLogs:p.data.renderLogs,drill:a,fill:l,compactToFit:c});return f.jsxs(H.Box,{"aria-busy":g||void 0,sx:{position:"relative",display:"flex",flexDirection:"column",flex:"1 1 auto",minHeight:0,minWidth:0,...l?{height:"100%"}:{},"& > .result-body":{display:"flex",flexDirection:"column",flex:"1 1 auto",minHeight:0,minWidth:0,...l?{height:"100%"}:{},opacity:g?.55:1,transition:g?"opacity 160ms ease 200ms":"opacity 120ms ease","@media (prefers-reduced-motion: reduce)":{transition:"none"}}},children:[g&&f.jsx(H.LinearProgress,{"aria-label":n,sx:{position:"absolute",top:0,left:0,right:0,height:2,zIndex:1,bgcolor:"transparent",borderRadius:1}}),f.jsx(H.Box,{className:"result-body",children:P})]})}const Bs=()=>typeof performance<"u"?performance.now():Date.now(),_k=$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"})),zk=3;function Wk(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 Hk(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} or ${e[e.length-1]}`}function tp({ignored:e}){const{theme:t}=Se.usePublisherTheme();if(e.length===0)return null;const n=e.length>zk?`Doesn't respond to ${e.length} filters`:`Doesn't respond to ${e.join(", ")}`;return f.jsxs(H.Box,{"data-testid":"tile-filter-tag",title:`This tile's query never reads ${Hk(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(_k,{sx:{fontSize:12}}),f.jsx(H.Box,{component:"span",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})]})}const Ki=20,Uk={radius:"8px",padding:`${Ki}px`};function Yk(e,t=Uk){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 np={query:120,text:72};function Xi({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(H.Paper,{ref:o,className:Ot.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",isolation:"isolate",display:"flex",flexDirection:"column",minWidth:0,minHeight:t==="none"?0:np[n],p:t==="none"?0:e?"12px 0":`${Ki}px`},...Array.isArray(r)?r:[r]],children:s})}const rp=Ot.tileHeading;function op({title:e,subtitle:t,tooltip:n,action:r,quiet:o=!1}){const{theme:s}=Se.usePublisherTheme(),i=s.ui;return f.jsxs(H.Box,{className:rp,sx:{pb:o?.5:1.5,display:"flex",alignItems:"flex-start",gap:1},children:[f.jsxs(H.Box,{sx:{minWidth:0,flex:1},children:[f.jsx(H.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(H.Typography,{component:"div",sx:{...i.type.caption,display:"block",mt:"2px",color:s.tileTitle,fontFamily:s.font.family,opacity:.75},children:t})]}),r]})}const Gk=-1;function qk(e){const t=e.ownerDocument;for(let n=e.parentElement;n&&n!==t.body&&n!==t.documentElement;n=n.parentElement)if(/(auto|scroll|overlay)/.test(getComputedStyle(n).overflowY))return n}function Kk(e,t){if((t?t.scrollTop:window.scrollY)<=0)return!1;const r=parseFloat(getComputedStyle(e).top);if(Number.isNaN(r))return!1;const o=t?t.getBoundingClientRect().top+t.clientTop:0;return e.getBoundingClientRect().top-o<=r+.5}function Xk(){const[e,t]=W.useState(!1),n=W.useRef(null);return{stickyRef:W.useCallback(o=>{if(n.current?.(),n.current=null,!o||typeof window>"u")return;const s=qk(o),i=s??window;let a=0;const l=()=>{a=0,t(Kk(o,s))},c=()=>{a===0&&(a=requestAnimationFrame(l))};i.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",c),l(),n.current=()=>{i.removeEventListener("scroll",c),window.removeEventListener("resize",c),a!==0&&cancelAnimationFrame(a)}},[]),stuck:e}}const sp=4,ip="--publisher-sticky-top",Qk=2;function Zk({layout:e,notice:t,header:n,controls:r,children:o,sx:s}){return f.jsxs(H.Stack,{className:Ot.report,"data-layout":e,sx:[{gap:Qk},...Array.isArray(s)?s:[s]],children:[t,n,r,o]})}function Jk({title:e,description:t,actions:n}){const r=Se.usePublisherTheme().theme.ui;return f.jsxs(H.Stack,{className:Ot.header,sx:{gap:1.5},children:[f.jsxs(H.Stack,{direction:"row",sx:{alignItems:"center",gap:2},children:[f.jsx(H.Typography,{component:"h1",className:Ot.title,sx:{...r.type.pageTitle,m:0,flex:1,minWidth:0},children:e}),n&&f.jsx(H.Box,{sx:{my:"-4px"},children:n})]}),t]})}function eT({sx:e,children:t}){return f.jsx(Xi,{chrome:"none",kind:"text",...e?{sx:e}:{},children:t})}function tT({children:e}){const{theme:t}=Se.usePublisherTheme(),{stickyRef:n,stuck:r}=Xk();return f.jsx(H.Box,{ref:n,className:Ot.filterRow,"data-stuck":r||void 0,sx:{position:"sticky",top:`calc(var(${ip}, 0px) + ${Gk}px)`,zIndex:sp,bgcolor:r?"background.default":"transparent",pb:1,pt:1,mt:-1,boxShadow:r?`0 1px 0 ${Yn(t.cardBorder)}`:"none",transition:`box-shadow ${$r}`,...Or},children:e})}const ap=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},lp=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 Qi(e,t){if(e[t])return e;const n=e.default;return n?.[t]?n:e}const nT=e=>Qi(e,"MalloyTranslator"),rT=e=>Qi(e,"parseAnnotation"),oT=e=>Qi(e,"ASTQuery");async function sT(){return nT(await import("@malloydata/malloy"))}async function iT(){return rT(await import("@malloydata/malloy-tag"))}async function aT(){return oT(await import("@malloydata/malloy-query-builder"))}async function lT(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 cT(e){return e.find(t=>t.authoritative)??e.find(t=>t.writeable)}function cp({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 uT(e,t){return e??(t===void 0?void 0:await lT(t))}function dT({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 pT(e){return e instanceof Error?e.message:String(e)}function fT(e){const t=e.response?.data;return t?.message?t.message:e instanceof Error?e.message:String(e)}async function hT({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(h){for(const v of a)t.invalidateQueries({queryKey:v});throw new Error(fT(h))}const p=u.data.contentHash;await c?.(p);for(const{queryKey:h,refetchType:v,wait:d}of l){const m=t.invalidateQueries({queryKey:h,...v?{refetchType:v}:{}});d&&await m}return p}function mT(e,t){return t===void 0||!/\.(saved|save_undone)$/.test(e.type)||e.where==="package"?e:{...e,workspace:t}}function gT(e){if(!("resourceUri"in e))return{environmentName:e.environmentName,packageName:e.packageName,versionId:void 0,namesBoth:!0};let t;try{t=ap(e.resourceUri)}catch{t=void 0}return{environmentName:t?.environmentName??"",packageName:t?.packageName??"",versionId:t?.versionId,namesBoth:!!t?.environmentName&&!!t?.packageName}}class up extends Error{constructor(t){super(t),this.name="DocumentNotFoundError"}}const dp=e=>e instanceof up||e instanceof Error&&e.name==="DocumentNotFoundError",yT=String.raw`##?\|?[ \t]*(?:[([{<][ \t]*)?(?:(?:(?:row|source)[-_]?)?authorize|access[-_]?filter)(?=[)\]}>]|[ \t]|$)`;function Zi(e,t){if(/[\r\n]/.test(t))return`A ${e} is one line; it cannot hold a line break.`;if(new RegExp(yT,"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=>Ws.isBareName(e)?e:`\`${e}\``;function Ji(e){const{title:t,modelPath:n,source:r,view:o}=e;if(t.trim()==="")return"A title cannot be empty.";const s=Zi("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 bT=e=>{const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)},zl=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,vT="report.malloy";function ea(e,t,n=vT){const r=Ji(e);if(r)throw new Error(r);const{modelPath:o,source:s,view:i}=e,a=e.title.trim(),l=zl(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 "${_c(o,n)}"`,"",`source: ${c} is ${ar(s)} extend {`,` # label=${zl(bT(i))}`,` view: ${u} is ${ar(i)}`,"}",""].join(`
139
- `)}function xT(e,t){return ea(e,"linear",t)}function pp(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,80)}function ST({title:e,modelPath:t,source:n,view:r}){for(const[o,s]of[["source",n],["view",r]])if(!Ws.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.`:Zi("title",e)}function wT(e,t){const n=ST(e);if(n)throw new Error(n);return ea(e,"grid",t)}const fp=e=>(e??"").trim().replace(/\\/g,"/").split("/").filter(t=>t!=="").join("/");function hp(e,t){const n=fp(t);return`${n===""?"":`${n}/`}${e}.malloy`}function mp(e){return pp(e)||"untitled"}function gp(e,t=1,n){const r=mp(e);return hp(t>1?`${r}-${t}`:r,n)}const yp=(e,t,n)=>`${e}/${t}/${n}`,bp=(e,t,n,r,o)=>({workspace:t,type:e,path:yp(n,r,o)}),ta=20;function CT(e){const{savesTo:t,writer:n}=cp({...e,readFailed:!1});return t==="browser"?void 0:n}const Wl=e=>e.slice(e.lastIndexOf("/")+1).replace(/\.malloy$/,"");function vp(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 PT(e){const t=e.layout??"linear",n=Bs();let r;try{r=await kT(e,t)}catch(o){throw go({path:e.path??"",layout:t},e.onEvent).emit({type:"report.create_refused",reason:o instanceof Error?o.message:String(o)}),o}return go({path:r.path,layout:t},e.onEvent).emit({type:"report.created",where:e.target.route==="package"?"package":"host",durationMs:Bs()-n}),e.onCreated?.(r),r}async function kT(e,t){const{document:n,target:r}=e,o=Ji(n);if(o)throw new Error(o);const s=fp(e.directory),i=e.path!==void 0?[e.path]:Array.from({length:ta},(m,g)=>gp(n.title,g+1,s));for(const m of i){const g=vp(m);if(g)throw new Error(g)}const a=m=>ea(n,t,m);if(r.route==="package"){const m=new Set(r.existing);let g;for(const C of i)if(!m.has(C))try{await r.write(C,a(C)),g=C;break}catch(w){if(!TT(w))throw w}if(g===void 0)throw Hl(n.title,e.path);return{layout:t,path:g,slug:Wl(g)}}const{storage:l,workspace:c,environmentName:u,packageName:p}=r,h=new Set(r.existing),v=new Set((await l.listDocuments(c)).map(m=>m.path));let d;for(const m of i){const g=bp(t,c.name,u,p,m),C=await l.resolveDocumentPath?.(g)??m;if(v.has(g.path)||h.has(m)||h.has(C))continue;let w=!0;try{await l.getDocument(g)}catch(y){if(!dp(y))throw y;w=!1}if(!w){d={layout:t,path:C,slug:Wl(C),locator:g};break}}if(d===void 0)throw Hl(n.title,e.path);return await l.saveDocument(d.locator,a(d.path)),d}const TT=e=>e?.response?.status===409,Hl=(e,t)=>new Error(t!==void 0?`${t} already exists. Fix: choose a different location.`:`No free file name for "${e}" after ${ta} tries. Fix: choose a different title.`);function xp(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}}function Vs(e){for(const t of e??[]){const n=/^#\(doc\)\s*(.*)$/s.exec(t.trim());if(n)return n[1].trim()}}function Sp(e){for(const t of e??[]){const n=/^#\s*(?:-[A-Za-z_]+\s+)*([a-z_]+)/.exec(t.trim())?.[1];if(n&&xc.includes(n))return n}}function MT({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=W.useMemo(()=>{const d=new Map;return a.forEach((m,g)=>{const C=[],w=xp(m.data?.modelInfo);for(const y of m.data?.sources??[]){if(typeof y.name!="string"||!w.has(y.name))continue;const x=Vs(y.annotations);for(const P of y.views??[])if(typeof P.name=="string"){const T=Vs(P.annotations),I=Sp(P.annotations);C.push({source:y.name,view:P.name,...T?{description:T}:{},...I?{chart:I}:{},...x?{sourceDescription:x}:{}})}}C.length>0&&d.set(r[g],C)}),d},[l,r]),u=a.some(d=>d.isLoading),p=u?[]:r.filter((d,m)=>a[m]?.isError),h=!u&&a.some(d=>d.isError&&Ws.canRetryRequest(d.error)),v=()=>{a.forEach(d=>{d.isError&&d.refetch()})};return{choices:c,isLoading:u,isSuccess:a.length>0&&a.every(d=>!d.isPending),failed:p,retry:v,canRetry:h}}const na=W.createContext(void 0);function DT({children:e,documentStorage:t}){const n=W.useMemo(()=>({documentStorage:t}),[t]);return f.jsx(na.Provider,{value:n,children:e})}function RT(){const e=W.useContext(na);if(!e)throw new Error("useDocumentStorage must be used within a DocumentStorageProvider");return e}function IT(){return W.useContext(na)}function ET(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 $T=1e4,OT=e=>e==="notebook"?"linear":"grid",AT=(e,t)=>`${e}s/${t}.malloy`,FT=/\.malloy(nb)?$/,LT=e=>e&&e.slice(e.lastIndexOf("/")+1).replace(FT,"")||void 0,wp=e=>e.replace(/\.malloy$/,"").split("/").map(encodeURIComponent).join("/"),Cp=(e,t,n)=>`/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${wp(n)}`,Pp="edit",NT=(e,t,n)=>`${Cp(e,t,n)}?${Pp}`,kp=e=>e.layout==="linear"?"linear":"grid",Tp=e=>({layout:kp(e),path:e.path,editable:e.editable!==!1});function ra(e,t){const n=t.find(r=>r.path===e);return n?.path?Tp({...n,path:n.path}):void 0}function Mp(e){return e===""||e.startsWith("/")?!1:e.split("/").every(t=>t!==""&&t!=="."&&t!=="..")}function jT(e,t){if(!Mp(e))return{kind:"unresolved"};for(const n of[`${e}.malloy`,e]){const r=ra(n,t);if(r)return{kind:"path",report:r}}return{kind:"unresolved"}}function BT(e,t,n){return[["dashboards"],["notebooks"],["dashboard"],...n===void 0?[]:[[lp({environmentName:e,packageName:t,modelPath:n})]]]}function VT(e,t,n,r){for(const o of[["report"],["reports"],...BT(t,n,r)])e.invalidateQueries({queryKey:o})}const _T=(e,t,n)=>["reports",e,t,n];async function zT(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 Dp(e,t,n,r=!0){const{apiClients:o}=Se.useServer(),s=es({queryKey:_T(e,t,n),queryFn:()=>zT(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 WT(e,t,n,r){const{reports:o,settled:s}=Dp(e,t,r);return{settled:s,reports:o,location:s?ra(n,o):void 0}}function es(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 HT(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 UT(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath]}function Ip(e,{enabled:t=!0}={}){const{apiClients:n}=Se.useServer(),r=Rp(e);return es({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&&GT(s.queryKey,r)?Hn.keepPreviousData(o):void 0,...Se.CHART_RESULT_QUERY_OPTIONS})}const YT=8;function GT(e,t){return e.every((n,r)=>r===YT||r>=t.length||n===t[r])}const qT=/<\/?[A-Za-z][^>]*>|<!--|<![A-Za-z]/;function Ep(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&&qT.test(s)){e.delete("label"),t=!0;continue}}const o=Array.isArray(r.eq)?r.eq:[];for(const s of[r,...o])Ep(s)&&(t=!0)}return t}function KT(e){const t=e.trim();if(!/^#(?:\||[ \t\r\n]|$)/.test(t))return e;if(t.includes("@env."))return"";let n;try{n=Hp.parseAnnotation(t)}catch{return""}return n.log.length>0?"":Ep(n.tag)?`${n.tag.toString()}
140
- `:e}function _s(e){if(Array.isArray(e)){for(const n of e)_s(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=KT(s.value))}else _s(r)}function $p(e){let t;try{t=JSON.parse(e)}catch{return e}const n=JSON.stringify(t);_s(t);const r=JSON.stringify(t);return r===n?e:r}const XT=new Set(["bar_chart","line_chart","scatter_chart","combo_chart","shape_map","segment_map","point_map","big_value","sparkline","list","list_detail","dashboard","transpose","table","json","image","link","text"]),QT={value:`# big_value
141
- `};function ZT(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(r=>ks(r)))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 JT(e){for(const t of e){const n=t.trim();if(!n.startsWith("#")||n.startsWith("#(")||n.startsWith('#"'))continue;const r=jo(n.slice(1));for(const o of r.split(/[\s{}=.,[\]]+/))if(XT.has(o))return!0}return!1}function Op(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!ZT(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return JT(r)?e:JSON.stringify({...t,annotations:[QT,...n]})}const eM=e=>$p(Op(e));function zs(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?ru(t):e}function tM({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:h,declaredTypes:v,givenNames:d,height:m,tableMaxHeight:g,fixedHeight:C,maxResultSize:w,drill:y,onExplore:x,chrome:P="card",ignoredFilters:T,preamble:I,restricted:R,waitingFor:A,index:O}){const{theme:$}=Se.usePublisherTheme(),[b,E]=kg(),D=Ip({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:s!==void 0?ui(I??"",`${i?`${i}
142
- `:""}run: ${s}`):void 0,givens:ci(li(p,v,d),h,d)},{enabled:E&&R!==!0&&A===void 0}),{emit:M}=oi(),k=D.isError?D.error:void 0;W.useEffect(()=>{k!==void 0&&M({type:"report.query_failed",...O!==void 0?{tile:O}:{},category:qc(k)})},[k,M,O]);const F=R===!0||I!==void 0&&D.isError&&ay(D.error);return f.jsxs(Xi,{cardRef:b,borderless:u,chrome:P,sx:{"& .malloy-render, & .malloy-table":{width:"100%"},"& .publisher-tile-explore":{opacity:0,transition:`opacity ${$r}`,...Or,...Tc},"&:hover .publisher-tile-explore, & .publisher-tile-explore:focus-visible":{opacity:1}},children:[s!==void 0&&f.jsx(op,{title:c?.title??a??zs(s),subtitle:c?c.subtitle:l,quiet:P==="none",tooltip:s,action:x&&f.jsx(H.Tooltip,{title:"Explore from here",children:f.jsx(H.IconButton,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${a??zs(s)}`,onClick:x,sx:{mt:-.5,mr:-.5,color:$.tileTitle},children:f.jsx(wg,{fontSize:"small"})})})}),T&&f.jsx(tp,{ignored:T}),A!==void 0?f.jsx(H.Box,{sx:{p:2},children:f.jsx(H.Typography,{variant:"body2",role:"status",color:"text.secondary",children:A})}):F?f.jsx(H.Box,{sx:{p:2},children:f.jsx(H.Typography,{variant:"body2",role:"status",color:"text.secondary",children:fu})}):f.jsx(ep,{fill:!0,state:D,context:s??o??r,maxHeight:m,tableMaxHeight:g,compactToFit:C,firstPaintHeight:ti,maxResultSize:w,drill:y,transform:I!==void 0?s!==void 0?eM:$p:s!==void 0?Op:void 0})]})}function nM(e,{enabled:t=!0}={}){const{apiClients:n}=Se.useServer();return es({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=gu;exports.AddButton=Wm;exports.AddFilterButton=qd;exports.AddIcon=Qs;exports.ApiErrorDisplay=Hc;exports.AppDialog=Cc;exports.ArrowDropDownIcon=yd;exports.BARE_RING_OFFSET_PX=wm;exports.BUILDER_HANDOFF_STALE_MS=$T;exports.Button=pr;exports.ButtonBase=Bn;exports.ChartGlyph=$c;exports.CheckIcon=Pc;exports.Chip=id;exports.CircularProgress=Ci;exports.ClassNameGenerator=Yl;exports.CloseIcon=Bo;exports.DASHBOARD_CARD_PADDING_PX=Ki;exports.DEFAULT_COLUMNS=pc;exports.DRILL_SELF=Qg;exports.DashboardGrid=Im;exports.DashboardTile=tM;exports.DatePicker=Ad;exports.DeleteOutlineIcon=Sg;exports.DocumentNotFoundError=up;exports.DocumentStorageProvider=DT;exports.ErrorDetailAlert=Wc;exports.ExpandMoreIcon=kc;exports.FilterEditingContext=Bd;exports.FilterSettingsButton=Gd;exports.FloatingIconButton=Zd;exports.FormControl=Bi;exports.GIVEN_SETTLE_MS=Fd;exports.GRID_GAP_PX=Tt;exports.GivenInput=Yi;exports.GivensPanel=Ik;exports.Grow=Cr;exports.INITIAL_RENDER_HEIGHT=Fc;exports.IconButton=Nr;exports.InfoOutlinedIcon=Qd;exports.InputLabel=ji;exports.LOADING_COPY=ko;exports.ListContext=$n;exports.Loading=qi;exports.LocalizationProvider=vi;exports.MAX_SLUG_ATTEMPTS=ta;exports.MAX_TILE_ROWS=hc;exports.MIN_TEXT_TILE_ROWS=km;exports.MIN_TILE_PX=gc;exports.MIN_TILE_ROWS=fc;exports.MIN_VALUE_TILE_ROWS=Pm;exports.MODEL_CELL_MAX_HEIGHT=gg;exports.MOTION_FAST=$r;exports.NOTEBOOK_CELL_MAX_HEIGHT=fg;exports.PLACED_DEFAULT_ROWSPAN=bc;exports.PROSE_MAX_WIDTH=Mc;exports.Paper=jr;exports.Popper=Qu;exports.Prose=Lk;exports.REMOVE_BADGE_CLASS=Rn;exports.REPORT_EDIT_PARAM=Pp;exports.RESTRICTED_NOTICE=fu;exports.RESULTS_DIALOG_MAX_HEIGHT=yg;exports.RemoveBadge=_d;exports.ReportEventsContext=Gc;exports.ReportHeader=Jk;exports.ReportPage=Zk;exports.ResultContainer=Jd;exports.ResultPanel=ep;exports.STICKY_CONTROLS_Z=sp;exports.STICKY_TOP_VAR=ip;exports.SearchIcon=Ec;exports.SecondaryButton=Hm;exports.Select=zi;exports.StickyControls=tT;exports.SvgIcon=mo;exports.THEME_ID=Un;exports.TIGHT_ATTR=Nc;exports.TILE_HEADING_CLASS=rp;exports.TILE_MAX_HEIGHT=ti;exports.TILE_MIN_HEIGHT=np;exports.TILE_ROW_PX=No;exports.TextField=bd;exports.TextTileFrame=eT;exports.TileCard=Xi;exports.TileFilterTag=tp;exports.TileHeading=op;exports.Typography=Qt;exports.UNCAPPED_CONTAINER_HEIGHT=Ac;exports.UnsavedChangesDialog=zm;exports.ViewPicker=ig;exports.annotationTextProblem=Zi;exports.buildTableCssVars=Yk;exports.capitalize=ae;exports.chartLineText=$m;exports.chartLinesOf=_m;exports.chartOf=Sp;exports.chartResetLine=Em;exports.chartShapeGap=Rc;exports.chartStateOfTagLines=Fm;exports.chooseWorkspace=cT;exports.clearReportDraft=$g;exports.clsx=de;exports.columnCounts=Ic;exports.composeClasses=me;exports.contentNode=Oc;exports.contentNodeDepth=dg;exports.createDocument=PT;exports.createRoute=CT;exports.createSimplePaletteValueFilter=Xe;exports.createSvgIcon=$e;exports.createTheme=ac;exports.dangerTextColor=Ym;exports.dayjs=Re;exports.docOf=Vs;exports.documentPreamble=iy;exports.documentSlug=LT;exports.draftKey=yp;exports.draftStorageAvailable=Og;exports.drillDestinations=nu;exports.drillGivenName=ou;exports.drillValueLabel=su;exports.drillValueToFilter=_o;exports.edgeColor=Yn;exports.emphasize=Zl;exports.encodeDrillValue=iu;exports.encodeResourceUri=lp;exports.escapeMalloyString=ri;exports.expectedHashFor=uT;exports.exportedSources=xp;exports.extractEventHandlers=hi;exports.failureCategory=qc;exports.filledInputClasses=Yt;exports.formControlState=bn;exports.formatMalloyValue=Ig;exports.generateUtilityClass=ge;exports.generateUtilityClasses=he;exports.getAugmentedNamespace=Gp;exports.getDefaultExportFromCjs=jt;exports.getReactElementRef=Gn;exports.givensToParams=oo;exports.givensToRequest=li;exports.hoverEdgeColor=ei;exports.humanizeSlug=ru;exports.initialResultHeight=Lc;exports.inputBaseClasses=mn;exports.inputClasses=Mn;exports.invalidateReportQueries=VT;exports.isChartPick=Sc;exports.isDocumentNotFound=dp;exports.isDrillTargetPath=Mp;exports.isPlaced=vc;exports.isSeriesColor=wc;exports.layoutOfKind=OT;exports.layoutRules=vg;exports.legacyNamedPath=AT;exports.listedLayout=kp;exports.loadMalloy=sT;exports.loadMalloyRenderer=Kd;exports.loadMalloyTag=iT;exports.loadQueryBuilder=aT;exports.localGivenSpec=Tg;exports.locateReport=ra;exports.locatedReport=Tp;exports.locatorFor=bp;exports.malloyLiteral=Dg;exports.measureContentHeight=pg;exports.memoTheme=Ee;exports.mentionsChartTag=Js;exports.mergeSlotProps=dc;exports.missingRequiredGivens=bk;exports.modelResultsKey=UT;exports.newDashboardSource=wT;exports.newDocumentProblem=Ji;exports.newNotebookSource=xT;exports.now=Bs;exports.nudgedSpan=Sm;exports.outlinedInputClasses=bt;exports.ownerDocument=Ye;exports.parseChartLine=Er;exports.parseResourceUri=ap;exports.queryResultKey=Rp;exports.reaches=zc;exports.readableName=sg;exports.reducedMotionSx=Or;exports.remeasuresAfterReady=ug;exports.removeBadgeRevealSx=Vd;exports.renderGivenDefault=Ui;exports.reportClasses=Ot;exports.reportDraftKey=Eg;exports.reportEditRoute=NT;exports.reportEmitter=go;exports.reportPathFor=hp;exports.reportPathForTitle=gp;exports.reportPathProblem=vp;exports.reportQueryOptions=ET;exports.reportRoute=Cp;exports.reportRoutePath=wp;exports.requestsRowChart=Km;exports.requiredPrompt=xk;exports.resolveDrill=Zg;exports.resolveDrillTarget=jT;exports.resolveEditorTarget=gT;exports.resolveResultHeight=Ts;exports.resolvedOf=ni;exports.resultSizing=cg;exports.rootShouldForwardProp=pt;exports.rowsForHeight=Tm;exports.saveCaption=dT;exports.saveTarget=cp;exports.scrollBehavior=Um;exports.seriesColorFrom=Vm;exports.seriesColorLine=jm;exports.seriesColorOf=Nm;exports.seriesColorResetLine=Bm;exports.setRef=ws;exports.slugFor=pp;exports.slugOrFallback=mp;exports.storageErrorMessage=pT;exports.styled=K;exports.tileHeightPx=mc;exports.tileIgnoredFilterLabels=Wk;exports.tileTitle=zs;exports.typographyClasses=Tb;exports.useCompiledDocument=nM;exports.useControlled=Dt;exports.useDefaultProps=Ce;exports.useDefaultTileSpan=Mm;exports.useDocumentChoices=MT;exports.useDocumentControls=gy;exports.useDocumentLocation=WT;exports.useDocumentStorage=RT;exports.useDrillSelf=au;exports.useEnhancedEffect=Ue;exports.useEventCallback=ue;exports.useForkRef=ke;exports.useFormControl=ft;exports.useGivensState=pu;exports.useId=xt;exports.useMutationWithApiError=HT;exports.useOptionalDocumentStorage=IT;exports.useQueryResult=Ip;exports.useQueryWithApiError=es;exports.useReportDraft=Ng;exports.useReportEmitter=jg;exports.useReportEvents=oi;exports.useReportListing=Dp;exports.useSlot=je;exports.useSuggestOptions=mu;exports.useTheme=gn;exports.useTimeout=fi;exports.utc=si;exports.visibleWithoutHoverSx=Tc;exports.waitingOn=vk;exports.waitingText=Sk;exports.withHostGivens=ci;exports.withPreamble=ui;exports.withReportContext=Uc;exports.withSource=xg;exports.withSpan=bg;exports.withWorkspace=mT;exports.writePackageFile=hT;exports.writtenSpan=jc;
134
+ `),I=x.selectionStart===P;T&&I&&x.setSelectionRange(P,P),r&&r(y)};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:v,tabIndex:-1,style:{...DS.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 wl(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function wo(e,t=!1){return e&&(wl(e.value)&&e.value!==""||t&&wl(e.defaultValue)&&e.defaultValue!=="")}function ES(e){return e.startAdornment}function $S(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 Cl;const Ko=(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${ae(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Xo=(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]},OS=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:h,startAdornment:v,type:d}=e,m={root:["root",`color${ae(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",a&&"formControl",h&&h!=="medium"&&`size${ae(h)}`,u&&"multiline",v&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",d==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",v&&"inputAdornedStart",s&&"inputAdornedEnd",p&&"readOnly"]};return me(m,$S,t)},Qo=K("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ko})(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%"}}]}))),Zo=K("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Xo})(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"}}]}})),Pl=mm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ai=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:h,disableInjectingGlobalStyles:v,endAdornment:d,error:m,fullWidth:g=!1,id:C,inputComponent:w="input",inputProps:y={},inputRef:x,margin:P,maxRows:T,minRows:I,multiline:R=!1,name:A,onBlur:O,onChange:$,onClick:b,onFocus:E,onKeyDown:D,onKeyUp:M,placeholder:k,readOnly:F,renderSuffix:L,rows:N,size:U,slotProps:J={},slots:re={},startAdornment:le,type:ie="text",value:V,...Q}=r,G=y.value!=null?y.value:V,{current:_}=S.useRef(G!=null),z=S.useRef(),Z=S.useCallback(Oe=>{},[]),te=ke(z,x,y.ref,Z),[ee,B]=S.useState(!1),X=ft(),oe=bn({props:r,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=X?X.focused:ee,S.useEffect(()=>{!X&&h&&ee&&(B(!1),O&&O())},[X,h,ee,O]);const ne=X&&X.onFilled,ce=X&&X.onEmpty,se=S.useCallback(Oe=>{wo(Oe)?ne&&ne():ce&&ce()},[ne,ce]);Ue(()=>{_&&se({value:G})},[G,se,_]);const fe=Oe=>{E&&E(Oe),y.onFocus&&y.onFocus(Oe),X&&X.onFocus?X.onFocus(Oe):B(!0)},be=Oe=>{O&&O(Oe),y.onBlur&&y.onBlur(Oe),X&&X.onBlur?X.onBlur(Oe):B(!1)},we=(Oe,..._t)=>{if(!_){const zt=Oe.target||z.current;if(zt==null)throw new Error(At(1));se({value:zt.value})}y.onChange&&y.onChange(Oe,..._t),$&&$(Oe,..._t)};S.useEffect(()=>{se(z.current)},[]);const pe=Oe=>{z.current&&Oe.currentTarget===Oe.target&&z.current.focus(),b&&b(Oe)};let qe=w,Be=y;R&&qe==="input"&&(N?Be={type:void 0,minRows:N,maxRows:N,...Be}:Be={type:void 0,maxRows:T,minRows:I,...Be},qe=IS);const ht=Oe=>{se(Oe.animationName==="mui-auto-fill-cancel"?z.current:{value:"x"})};S.useEffect(()=>{X&&X.setAdornedStart(!!le)},[X,le]);const mt={...r,color:oe.color||"primary",disabled:oe.disabled,endAdornment:d,error:oe.error,focused:oe.focused,formControl:X,fullWidth:g,hiddenLabel:oe.hiddenLabel,multiline:R,size:oe.size,startAdornment:le,type:ie},nt=OS(mt),rt=re.root||c.Root||Qo,Vt=J.root||u.root||{},gt=re.input||c.Input||Zo;return Be={...Be,...J.input??u.input},f.jsxs(S.Fragment,{children:[!v&&typeof Pl=="function"&&(Cl||(Cl=f.jsx(Pl,{}))),f.jsxs(rt,{...Vt,ref:n,onClick:pe,...Q,...!jn(rt)&&{ownerState:{...mt,...Vt.ownerState}},className:de(nt.root,Vt.className,a,F&&"MuiInputBase-readOnly"),children:[le,f.jsx(Uo.Provider,{value:null,children:f.jsx(gt,{"aria-invalid":oe.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:p,disabled:oe.disabled,id:C,onAnimationStart:ht,name:A,placeholder:k,readOnly:F,required:oe.required,rows:N,value:G,onKeyDown:D,onKeyUp:M,type:ie,...Be,...!jn(gt)&&{as:qe,ownerState:{...mt,...Be.ownerState}},ref:te,className:de(nt.input,Be.className,F&&"MuiInputBase-readOnly"),onBlur:be,onChange:we,onFocus:fe})}),d,L?L({...oe,startAdornment:le}):null]})]})});function AS(e){return ge("MuiInput",e)}const Mn={...mn,...he("MuiInput",["root","underline","input"])},FS=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},AS,t);return{...t,...o}},LS=K(Qo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ko(e,t),!n.disableUnderline&&t.underline]}})(Ee(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Mn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Mn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Mn.disabled}, .${Mn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Mn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Xe()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),NS=K(Zo,{name:"MuiInput",slot:"Input",overridesResolver:Xo})({}),Fi=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:h="text",...v}=r,d=FS(r),g={root:{ownerState:{disableUnderline:o}}},C=u??i?Ge(u??i,g):g,w=p.root??s.Root??LS,y=p.input??s.Input??NS;return f.jsx(Ai,{slots:{root:w,input:y},slotProps:C,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:h,...v,classes:d})});Fi.muiName="Input";function jS(e){return ge("MuiFilledInput",e)}const Yt={...mn,...he("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},BS=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${ae(s)}`,i&&"hiddenLabel",a&&"multiline"],input:["input"]},c=me(l,jS,t);return{...t,...c}},VS=K(Qo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ko(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}},[`&.${Yt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Yt.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"},[`&.${Yt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yt.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(.${Yt.disabled}, .${Yt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Yt.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}}]}})),_S=K(Zo,{name:"MuiFilledInput",slot:"Input",overridesResolver:Xo})(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}}]}))),Li=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:h={},type:v="text",...d}=r,m={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:v},g=BS(r),C={root:{ownerState:m},input:{ownerState:m}},w=p??i?Ge(C,p??i):C,y=h.root??s.Root??VS,x=h.input??s.Input??_S;return f.jsx(Ai,{slots:{root:y,input:x},slotProps:w,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:v,...d,classes:g})});Li.muiName="Input";var kl;const zS=K("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%"}),WS=K("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 HS(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(zS,{"aria-hidden":!0,className:r,ownerState:l,...i,children:f.jsx(WS,{ownerState:l,children:a?f.jsx("span",{children:o}):kl||(kl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function US(e){return ge("MuiOutlinedInput",e)}const bt={...mn,...he("MuiOutlinedInput",["root","notchedOutline","input"])},YS=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},US,t);return{...t,...r}},GS=K(Qo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ko})(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"}}]}})),qS=K(HS,{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}})),KS=K(Zo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Xo})(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}}]}))),Ni=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:h="text",...v}=r,d=YS(r),m=ft(),g=bn({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...r,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:m,fullWidth:s,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:h},w=u.root??o.Root??GS,y=u.input??o.Input??KS,[x,P]=je("notchedOutline",{elementType:qS,className:d.notchedOutline,shouldForwardComponentProp:!0,ownerState:C,externalForwardedProps:{slots:u,slotProps:p},additionalProps:{label:a!=null&&a!==""&&g.required?f.jsxs(S.Fragment,{children:[a," ","*"]}):a}});return f.jsx(Ai,{slots:{root:w,input:y},slotProps:p,renderSuffix:T=>f.jsx(x,{...P,notched:typeof c<"u"?c:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:s,inputComponent:i,multiline:l,ref:n,type:h,...v,classes:{...d,notchedOutline:null}})});Ni.muiName="Input";function XS(e){return ge("MuiFormLabel",e)}const yr=he("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),QS=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:a}=e,l={root:["root",`color${ae(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return me(l,XS,t)},ZS=K("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}}}]}))),JS=K("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ee(({theme:e})=>({[`&.${yr.error}`]:{color:(e.vars||e).palette.error.main}}))),ew=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:h,...v}=r,d=ft(),m=bn({props:r,muiFormControl:d,states:["color","required","focused","disabled","error","filled"]}),g={...r,color:m.color||"primary",component:a,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},C=QS(g);return f.jsxs(ZS,{as:a,ownerState:g,className:de(C.root,s),ref:n,...v,children:[o,m.required&&f.jsxs(JS,{ownerState:g,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function tw(e){return ge("MuiInputLabel",e)}he("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const nw=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${ae(r)}`,i],asterisk:[a&&"asterisk"]},c=me(l,tw,t);return{...t,...c}},rw=K(ew,{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)"}}]}))),ji=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 h=bn({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),v={...r,disableAnimation:o,formControl:u,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},d=nw(v);return f.jsx(rw,{"data-shrink":p,ref:n,className:de(d.root,l),...c,ownerState:v,classes:d})});function ow(e){return ge("MuiFormControl",e)}he("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const sw=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ae(n)}`,r&&"fullWidth"]};return me(o,ow,t)},iw=K("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ae(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%"}}]}),Bi=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:h=!1,margin:v="none",required:d=!1,size:m="medium",variant:g="outlined",...C}=r,w={...r,color:i,component:a,disabled:l,error:c,fullWidth:p,hiddenLabel:h,margin:v,required:d,size:m,variant:g},y=sw(w),[x,P]=S.useState(()=>{let M=!1;return o&&S.Children.forEach(o,k=>{if(!eo(k,["Input","Select"]))return;const F=eo(k,["Select"])?k.props.input:k;F&&ES(F.props)&&(M=!0)}),M}),[T,I]=S.useState(()=>{let M=!1;return o&&S.Children.forEach(o,k=>{eo(k,["Input","Select"])&&(wo(k.props,!0)||wo(k.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 b=S.useCallback(()=>{I(!0)},[]),E=S.useCallback(()=>{I(!1)},[]),D=S.useMemo(()=>({adornedStart:x,setAdornedStart:P,color:i,disabled:l,error:c,filled:T,focused:O,fullWidth:p,hiddenLabel:h,size:m,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:E,onFilled:b,registerEffect:$,required:d,variant:g}),[x,i,l,c,T,O,p,h,$,E,b,d,m,g]);return f.jsx(Uo.Provider,{value:D,children:f.jsx(iw,{as:a,ownerState:w,className:de(y.root,s),ref:n,...C,children:o})})});function aw(e){return ge("MuiFormHelperText",e)}const Tl=he("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ml;const lw=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${ae(r)}`,n&&"contained",a&&"focused",i&&"filled",l&&"required"]};return me(c,aw,t)},cw=K("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ae(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,[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Tl.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}}]}))),ud=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:h,variant:v,...d}=r,m=ft(),g=bn({props:r,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),C={...r,component:i,contained:g.variant==="filled"||g.variant==="outlined",variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};delete C.ownerState;const w=lw(C);return f.jsx(cw,{as:i,className:de(w.root,s),ref:n,...d,ownerState:C,children:o===" "?Ml||(Ml=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function hs(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Dl(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function dd(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")||!dd(a,s)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const uw=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",...h}=t,v=S.useRef(null),d=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ue(()=>{o&&v.current.focus()},[o]),S.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,{direction:x})=>{const P=!v.current.style.width;if(y.clientHeight<v.current.clientHeight&&P){const T=`${Pu(Lt(y))}px`;v.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=T,v.current.style.width=`calc(100% + ${T})`}return v.current}}),[]);const m=y=>{const x=v.current,P=y.key;if(y.ctrlKey||y.metaKey||y.altKey){u&&u(y);return}const I=Ye(x).activeElement;if(P==="ArrowDown")y.preventDefault(),tr(x,I,c,l,hs);else if(P==="ArrowUp")y.preventDefault(),tr(x,I,c,l,Dl);else if(P==="Home")y.preventDefault(),tr(x,null,c,l,hs);else if(P==="End")y.preventDefault(),tr(x,null,c,l,Dl);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&&dd(I,R);R.previousKeyMatched&&($||tr(x,I,!1,l,hs,R))?y.preventDefault():R.previousKeyMatched=!1}u&&u(y)},g=ke(v,n);let C=-1;S.Children.forEach(i,(y,x)=>{if(!S.isValidElement(y)){C===x&&(C+=1,C>=i.length&&(C=-1));return}y.props.disabled||(p==="selectedMenu"&&y.props.selected||C===-1)&&(C=x),C===x&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(C+=1,C>=i.length&&(C=-1))});const w=S.Children.map(i,(y,x)=>{if(x===C){const P={};return s&&(P.autoFocus=!0),y.props.tabIndex===void 0&&p==="selectedMenu"&&(P.tabIndex=0),S.cloneElement(y,P)}return y});return f.jsx(sd,{role:"menu",ref:g,className:a,onKeyDown:m,tabIndex:o?0:-1,...h,children:w})});function dw(e){const t=Ye(e);return t.body===e?Lt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function br(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Rl(e){return parseInt(Lt(e).getComputedStyle(e).paddingRight,10)||0}function pw(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 Il(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const a=!s.includes(i),l=!pw(i);a&&l&&br(i,o)})}function ms(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function fw(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(dw(r)){const i=Pu(Lt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Rl(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=`${Rl(l)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=Ye(r).body;else{const i=r.parentElement,a=Lt(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 hw(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class mw{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=hw(n);Il(n,t.mount,t.modalRef,o,!0);const s=ms(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=ms(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=fw(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ms(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),Il(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 gw(e){return ge("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const yw=e=>{const{classes:t,invisible:n}=e;return me({root:["root",n&&"invisible"]},gw,t)},bw=K("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"}}]}),pd=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:h={},TransitionComponent:v,transitionDuration:d,...m}=r,g={...r,component:i,invisible:a},C=yw(g),w={transition:v,root:c.Root,...h},y={...u,...p},x={component:i,slots:w,slotProps:y},[P,T]=je("root",{elementType:bw,externalForwardedProps:x,className:de(C.root,s),ownerState:g}),[I,R]=je("transition",{elementType:fn,externalForwardedProps:x,ownerState:g});return f.jsx(I,{in:l,timeout:d,...m,...R,children:f.jsx(P,{"aria-hidden":!0,...T,classes:C,ref:n,children:o})})});function vw(e){return typeof e=="function"?e():e}function xw(e){return e?e.props.hasOwnProperty("in"):!1}const El=()=>{},Yr=new mw;function Sw(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({}),h=S.useRef(null),v=S.useRef(null),d=ke(v,u),[m,g]=S.useState(!c),C=xw(a);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const y=()=>Ye(h.current),x=()=>(p.current.modalRef=v.current,p.current.mount=h.current,p.current),P=()=>{Yr.mount(x(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},T=ue(()=>{const M=vw(t)||y().body;Yr.add(x(),M),v.current&&P()}),I=()=>Yr.isTopModal(x()),R=ue(M=>{h.current=M,M&&(c&&I()?P():v.current&&br(v.current,w))}),A=S.useCallback(()=>{Yr.remove(x(),w)},[w]);S.useEffect(()=>()=>{A()},[A]),S.useEffect(()=>{c?T():(!C||!o)&&A()},[c,A,C,o,T]);const O=M=>k=>{M.onKeyDown?.(k),!(k.key!=="Escape"||k.which===229||!I())&&(n||(k.stopPropagation(),l&&l(k,"escapeKeyDown")))},$=M=>k=>{M.onClick?.(k),k.target===k.currentTarget&&l&&l(k,"backdropClick")};return{getRootProps:(M={})=>{const k=hi(e);delete k.onTransitionEnter,delete k.onTransitionExited;const F={...k,...M};return{role:"presentation",...F,onKeyDown:O(F),ref:d}},getBackdropProps:(M={})=>{const k=M;return{"aria-hidden":!0,...k,onClick:$(k),open:c}},getTransitionProps:()=>{const M=()=>{g(!1),s&&s()},k=()=>{g(!0),i&&i(),o&&A()};return{onEnter:ia(M,a?.props.onEnter??El),onExited:ia(k,a?.props.onExited??El)}},rootRef:d,portalRef:R,isTopModal:I,exited:m,hasTransition:C}}function ww(e){return ge("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const Cw=e=>{const{open:t,exited:n,classes:r}=e;return me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ww,r)},Pw=K("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"}}]}))),kw=K(pd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),fd=S.forwardRef(function(t,n){const r=Ce({name:"MuiModal",props:t}),{BackdropComponent:o=kw,BackdropProps:s,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:u,component:p,components:h={},componentsProps:v={},disableAutoFocus:d=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:g=!1,disablePortal:C=!1,disableRestoreFocus:w=!1,disableScrollLock:y=!1,hideBackdrop:x=!1,keepMounted:P=!1,onClose:T,onTransitionEnter:I,onTransitionExited:R,open:A,slotProps:O={},slots:$={},theme:b,...E}=r,D={...r,closeAfterTransition:l,disableAutoFocus:d,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:C,disableRestoreFocus:w,disableScrollLock:y,hideBackdrop:x,keepMounted:P},{getRootProps:M,getBackdropProps:k,getTransitionProps:F,portalRef:L,isTopModal:N,exited:U,hasTransition:J}=Sw({...D,rootRef:n}),re={...D,exited:U},le=Cw(re),ie={};if(c.props.tabIndex===void 0&&(ie.tabIndex="-1"),J){const{onEnter:Z,onExited:te}=F();ie.onEnter=Z,ie.onExited=te}const V={slots:{root:h.Root,backdrop:h.Backdrop,...$},slotProps:{...v,...O}},[Q,G]=je("root",{ref:n,elementType:Pw,externalForwardedProps:{...V,...E,component:p},getSlotProps:M,ownerState:re,className:de(a,le?.root,!re.open&&re.exited&&le?.hidden)}),[_,z]=je("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:V,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:Z=>k({...Z,onClick:te=>{Z?.onClick&&Z.onClick(te)}}),className:de(s?.className,le?.backdrop),ownerState:re});return!P&&!A&&(!J||U)?null:f.jsx(Qu,{ref:L,container:u,disablePortal:C,children:f.jsxs(Q,{...G,children:[!x&&o?f.jsx(_,{...z}):null,f.jsx(Ju,{disableEnforceFocus:m,disableAutoFocus:d,disableRestoreFocus:w,isEnabled:N,open:A,children:S.cloneElement(c,ie)})]})})});function Tw(e){return ge("MuiPopover",e)}he("MuiPopover",["root","paper"]);function $l(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ol(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Al(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Gr(e){return typeof e=="function"?e():e}const Mw=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},Tw,t)},Dw=K(fd,{name:"MuiPopover",slot:"Root"})({}),hd=K(jr,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Rw=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:h=8,marginThreshold:v=16,open:d,PaperProps:m={},slots:g={},slotProps:C={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:y,transitionDuration:x="auto",TransitionProps:P={},disableScrollLock:T=!1,...I}=r,R=S.useRef(),A={...r,anchorOrigin:i,anchorReference:l,elevation:h,marginThreshold:v,transformOrigin:w,TransitionComponent:y,transitionDuration:x,TransitionProps:P},O=Mw(A),$=S.useCallback(()=>{if(l==="anchorPosition")return a;const Z=Gr(s),ee=(Z&&Z.nodeType===1?Z:Ye(R.current).body).getBoundingClientRect();return{top:ee.top+$l(ee,i.vertical),left:ee.left+Ol(ee,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),b=S.useCallback(Z=>({vertical:$l(Z,w.vertical),horizontal:Ol(Z,w.horizontal)}),[w.horizontal,w.vertical]),E=S.useCallback(Z=>{const te={width:Z.offsetWidth,height:Z.offsetHeight},ee=b(te);if(l==="none")return{top:null,left:null,transformOrigin:Al(ee)};const B=$();let X=B.top-ee.vertical,oe=B.left-ee.horizontal;const ne=X+te.height,ce=oe+te.width,se=Lt(Gr(s)),fe=se.innerHeight-v,be=se.innerWidth-v;if(v!==null&&X<v){const we=X-v;X-=we,ee.vertical+=we}else if(v!==null&&ne>fe){const we=ne-fe;X-=we,ee.vertical+=we}if(v!==null&&oe<v){const we=oe-v;oe-=we,ee.horizontal+=we}else if(ce>be){const we=ce-be;oe-=we,ee.horizontal+=we}return{top:`${Math.round(X)}px`,left:`${Math.round(oe)}px`,transformOrigin:Al(ee)}},[s,l,$,b,v]),[D,M]=S.useState(d),k=S.useCallback(()=>{const Z=R.current;if(!Z)return;const te=E(Z);te.top!==null&&Z.style.setProperty("top",te.top),te.left!==null&&(Z.style.left=te.left),Z.style.transformOrigin=te.transformOrigin,M(!0)},[E]);S.useEffect(()=>(T&&window.addEventListener("scroll",k),()=>window.removeEventListener("scroll",k)),[s,T,k]);const F=()=>{k()},L=()=>{M(!1)};S.useEffect(()=>{d&&k()}),S.useImperativeHandle(o,()=>d?{updatePosition:()=>{k()}}:null,[d,k]),S.useEffect(()=>{if(!d)return;const Z=uc(()=>{k()}),te=Lt(Gr(s));return te.addEventListener("resize",Z),()=>{Z.clear(),te.removeEventListener("resize",Z)}},[s,d,k]);let N=x;const U={slots:{transition:y,...g},slotProps:{transition:P,paper:m,...C}},[J,re]=je("transition",{elementType:Cr,externalForwardedProps:U,ownerState:A,getSlotProps:Z=>({...Z,onEntering:(te,ee)=>{Z.onEntering?.(te,ee),F()},onExited:te=>{Z.onExited?.(te),L()}}),additionalProps:{appear:!0,in:d}});x==="auto"&&!J.muiSupportAuto&&(N=void 0);const le=p||(s?Ye(Gr(s)).body:void 0),[ie,{slots:V,slotProps:Q,...G}]=je("root",{ref:n,elementType:Dw,externalForwardedProps:{...U,...I},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:dc(typeof C.backdrop=="function"?C.backdrop(A):C.backdrop,{invisible:!0})},container:le,open:d},ownerState:A,className:de(O.root,u)}),[_,z]=je("paper",{ref:R,className:O.paper,elementType:hd,externalForwardedProps:U,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:D?void 0:{opacity:0}},ownerState:A});return f.jsx(ie,{...G,...!jn(ie)&&{slots:V,slotProps:Q,disableScrollLock:T},children:f.jsx(J,{...re,timeout:N,children:f.jsx(_,{...z,children:c})})})});function Iw(e){return ge("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const Ew={vertical:"top",horizontal:"right"},$w={vertical:"top",horizontal:"left"},Ow=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"],list:["list"]},Iw,t)},Aw=K(Rw,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Fw=K(hd,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Lw=K(uw,{name:"MuiMenu",slot:"List"})({outline:0}),Nw=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:h,transitionDuration:v="auto",TransitionProps:{onEntering:d,...m}={},variant:g="selectedMenu",slots:C={},slotProps:w={},...y}=r,x=vt(),P={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:d,PaperProps:p,transitionDuration:v,TransitionProps:m,variant:g},T=Ow(P),I=o&&!a&&u,R=S.useRef(null),A=(N,U)=>{R.current&&R.current.adjustStyleForScrollbar(N,{direction:x?"rtl":"ltr"}),d&&d(N,U)},O=N=>{N.key==="Tab"&&(N.preventDefault(),c&&c(N,"tabKeyDown"))};let $=-1;S.Children.map(s,(N,U)=>{S.isValidElement(N)&&(N.props.disabled||(g==="selectedMenu"&&N.props.selected||$===-1)&&($=U))});const b={slots:C,slotProps:{list:l,transition:m,paper:p,...w}},E=Pe({elementType:C.root,externalSlotProps:w.root,ownerState:P,className:[T.root,i]}),[D,M]=je("paper",{className:T.paper,elementType:Fw,externalForwardedProps:b,shouldForwardComponentProp:!0,ownerState:P}),[k,F]=je("list",{className:de(T.list,l.className),elementType:Lw,shouldForwardComponentProp:!0,externalForwardedProps:b,getSlotProps:N=>({...N,onKeyDown:U=>{O(U),N.onKeyDown?.(U)}}),ownerState:P}),L=typeof b.slotProps.transition=="function"?b.slotProps.transition(P):b.slotProps.transition;return f.jsx(Aw,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?Ew:$w,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:(...N)=>{A(...N),L?.onEntering?.(...N)}}},open:u,ref:n,transitionDuration:v,ownerState:P,...y,classes:h,children:f.jsx(k,{actions:R,autoFocus:o&&($===-1||a),autoFocusItem:I,variant:g,...F,children:s})})});function jw(e){return ge("MuiNativeSelect",e)}const Vi=he("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Bw=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${ae(n)}`,s&&"iconOpen",r&&"disabled"]};return me(a,jw,t)},md=K("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Vi.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}}}]})),Vw=K(md,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Vi.multiple}`]:t.multiple}]}})({}),gd=K("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Vi.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}}]})),_w=K(gd,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ae(n.variant)}`],n.open&&t.iconOpen]}})({}),zw=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=Bw(u);return f.jsxs(S.Fragment,{children:[f.jsx(Vw,{ownerState:u,className:de(p.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:f.jsx(_w,{as:i,ownerState:u,className:p.icon})]})});function yd(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 Fl;const Ww=K(md,{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"}}),Hw=K(gd,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ae(n.variant)}`],n.open&&t.iconOpen]}})({}),Uw=K("input",{shouldForwardProp:e=>cc(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Ll(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Yw(e){return e==null||typeof e=="string"&&!e.trim()}const Gw=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${ae(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return me(a,yd,t)},qw=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:h,error:v=!1,IconComponent:d,inputRef:m,labelId:g,MenuProps:C={},multiple:w,name:y,onBlur:x,onChange:P,onClose:T,onFocus:I,onOpen:R,open:A,readOnly:O,renderValue:$,required:b,SelectDisplayProps:E={},tabIndex:D,type:M,value:k,variant:F="standard",...L}=t,[N,U]=Dt({controlled:k,default:u,name:"Select"}),[J,re]=Dt({controlled:A,default:c,name:"Select"}),le=S.useRef(null),ie=S.useRef(null),[V,Q]=S.useState(null),{current:G}=S.useRef(A!=null),[_,z]=S.useState(),Z=ke(n,m),te=S.useCallback(ye=>{ie.current=ye,ye&&Q(ye)},[]),ee=V?.parentNode;S.useImperativeHandle(Z,()=>({focus:()=>{ie.current.focus()},node:le.current,value:N}),[N]),S.useEffect(()=>{c&&J&&V&&!G&&(z(i?null:ee.clientWidth),ie.current.focus())},[V,i]),S.useEffect(()=>{s&&ie.current.focus()},[s]),S.useEffect(()=>{if(!g)return;const ye=Ye(ie.current).getElementById(g);if(ye){const Te=()=>{getSelection().isCollapsed&&ie.current.focus()};return ye.addEventListener("click",Te),()=>{ye.removeEventListener("click",Te)}}},[g]);const B=(ye,Te)=>{ye?R&&R(Te):T&&T(Te),G||(z(i?null:ee.clientWidth),re(ye))},X=ye=>{ye.button===0&&(ye.preventDefault(),ie.current.focus(),B(!0,ye))},oe=ye=>{B(!1,ye)},ne=S.Children.toArray(a),ce=ye=>{const Te=ne.find(ze=>ze.props.value===ye.target.value);Te!==void 0&&(U(Te.props.value),P&&P(ye,Te))},se=ye=>Te=>{let ze;if(Te.currentTarget.hasAttribute("tabindex")){if(w){ze=Array.isArray(N)?N.slice():[];const Wt=N.indexOf(ye.props.value);Wt===-1?ze.push(ye.props.value):ze.splice(Wt,1)}else ze=ye.props.value;if(ye.props.onClick&&ye.props.onClick(Te),N!==ze&&(U(ze),P)){const Wt=Te.nativeEvent||Te,Ae=new Wt.constructor(Wt.type,Wt);Object.defineProperty(Ae,"target",{writable:!0,value:{value:ze,name:y}}),P(Ae,ye)}w||B(!1,Te)}},fe=ye=>{O||[" ","ArrowUp","ArrowDown","Enter"].includes(ye.key)&&(ye.preventDefault(),B(!0,ye))},be=V!==null&&J,we=ye=>{!be&&x&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:N,name:y}}),x(ye))};delete L["aria-invalid"];let pe,qe;const Be=[];let ht=!1;(wo({value:N})||h)&&($?pe=$(N):ht=!0);const mt=ne.map(ye=>{if(!S.isValidElement(ye))return null;let Te;if(w){if(!Array.isArray(N))throw new Error(At(2));Te=N.some(ze=>Ll(ze,ye.props.value)),Te&&ht&&Be.push(ye.props.children)}else Te=Ll(N,ye.props.value),Te&&ht&&(qe=ye.props.children);return S.cloneElement(ye,{"aria-selected":Te?"true":"false",onClick:se(ye),onKeyUp:ze=>{ze.key===" "&&ze.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(ze)},role:"option",selected:Te,value:void 0,"data-value":ye.props.value})});ht&&(w?Be.length===0?pe=null:pe=Be.reduce((ye,Te,ze)=>(ye.push(Te),ze<Be.length-1&&ye.push(", "),ye),[]):pe=qe);let nt=_;!i&&G&&V&&(nt=ee.clientWidth);let rt;typeof D<"u"?rt=D:rt=p?null:0;const Vt=E.id||(y?`mui-component-select-${y}`:void 0),gt={...t,variant:F,value:N,open:be,error:v},Oe=Gw(gt),_t={...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(Ww,{as:"div",ref:te,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":[g,Vt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":b?"true":void 0,"aria-invalid":v?"true":void 0,onKeyDown:fe,onMouseDown:p||O?null:X,onBlur:we,onFocus:I,...E,ownerState:gt,className:de(E.className,Oe.select,l),id:Vt,children:Yw(pe)?Fl||(Fl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):pe}),f.jsx(Uw,{"aria-invalid":v,value:Array.isArray(N)?N.join(","):N,name:y,ref:le,"aria-hidden":!0,onChange:ce,tabIndex:-1,disabled:p,className:Oe.nativeInput,autoFocus:s,required:b,...L,ownerState:gt}),f.jsx(Hw,{as:d,className:Oe.icon,ownerState:gt}),f.jsx(Nw,{id:`menu-${y||""}`,anchorEl:ee,open:be,onClose:oe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,slotProps:{...C.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:Kn,...zt},paper:{..._t,style:{minWidth:nt,..._t!=null?_t.style:null}}},children:mt})]})}),bd=$e(f.jsx("path",{d:"M7 10l5 5 5-5z"})),Kw=e=>{const{classes:t}=e,r=me({root:["root"]},yd,t);return{...t,...r}},_i={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>pt(e)&&e!=="variant"},Xw=K(Fi,_i)(""),Qw=K(Ni,_i)(""),Zw=K(Li,_i)(""),zi=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=bd,id:p,input:h,inputProps:v,label:d,labelId:m,MenuProps:g,multiple:C=!1,native:w=!1,onClose:y,onOpen:x,open:P,renderValue:T,SelectDisplayProps:I,variant:R="outlined",...A}=r,O=w?zw:qw,$=ft(),b=bn({props:r,muiFormControl:$,states:["variant","error"]}),E=b.variant||R,D={...r,variant:E,classes:i},M=Kw(D),{root:k,...F}=M,L=h||{standard:f.jsx(Xw,{ownerState:D}),outlined:f.jsx(Qw,{label:d,ownerState:D}),filled:f.jsx(Zw,{ownerState:D})}[E],N=ke(n,Gn(L));return f.jsx(S.Fragment,{children:S.cloneElement(L,{inputComponent:O,inputProps:{children:s,error:b.error,IconComponent:u,variant:E,type:void 0,multiple:C,...w?{id:p}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:g,onClose:y,onOpen:x,open:P,renderValue:T,SelectDisplayProps:{id:p,...I}},...v,classes:v?Ge(F,v.classes):F,...h?h.props.inputProps:{}},...(C&&w||c)&&E==="outlined"?{notched:!0}:{},ref:N,className:de(L.props.className,a,M.root),...!h&&{variant:E},...A})})});zi.muiName="Select";function Jw(e){return ge("MuiTextField",e)}he("MuiTextField",["root"]);const eC={standard:Fi,filled:Li,outlined:Ni},tC=e=>{const{classes:t}=e;return me({root:["root"]},Jw,t)},nC=K(Bi,{name:"MuiTextField",slot:"Root"})({}),vd=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:h,fullWidth:v=!1,helperText:d,id:m,InputLabelProps:g,inputProps:C,InputProps:w,inputRef:y,label:x,maxRows:P,minRows:T,multiline:I=!1,name:R,onBlur:A,onChange:O,onFocus:$,placeholder:b,required:E=!1,rows:D,select:M=!1,SelectProps:k,slots:F={},slotProps:L={},type:N,value:U,variant:J="outlined",...re}=r,le={...r,autoFocus:s,color:l,disabled:u,error:p,fullWidth:v,multiline:I,required:E,select:M,variant:J},ie=tC(le),V=xt(m),Q=d&&V?`${V}-helper-text`:void 0,G=x&&V?`${V}-label`:void 0,_=eC[J],z={slots:F,slotProps:{input:w,inputLabel:g,htmlInput:C,formHelperText:h,select:k,...L}},Z={},te=z.slotProps.inputLabel;J==="outlined"&&(te&&typeof te.shrink<"u"&&(Z.notched=te.shrink),Z.label=x),M&&((!k||!k.native)&&(Z.id=void 0),Z["aria-describedby"]=void 0);const[ee,B]=je("root",{elementType:nC,shouldForwardComponentProp:!0,externalForwardedProps:{...z,...re},ownerState:le,className:de(ie.root,a),ref:n,additionalProps:{disabled:u,error:p,fullWidth:v,required:E,color:l,variant:J}}),[X,oe]=je("input",{elementType:_,externalForwardedProps:z,additionalProps:Z,ownerState:le}),[ne,ce]=je("inputLabel",{elementType:ji,externalForwardedProps:z,ownerState:le}),[se,fe]=je("htmlInput",{elementType:"input",externalForwardedProps:z,ownerState:le}),[be,we]=je("formHelperText",{elementType:ud,externalForwardedProps:z,ownerState:le}),[pe,qe]=je("select",{elementType:zi,externalForwardedProps:z,ownerState:le}),Be=f.jsx(X,{"aria-describedby":Q,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:v,multiline:I,name:R,rows:D,maxRows:P,minRows:T,type:N,value:U,id:V,inputRef:y,onBlur:A,onChange:O,onFocus:$,placeholder:b,inputProps:fe,slots:{input:F.htmlInput?se:void 0},...oe});return f.jsxs(ee,{...B,children:[x!=null&&x!==""&&f.jsx(ne,{htmlFor:V,id:G,...ce,children:x}),M?f.jsx(pe,{"aria-describedby":Q,id:V,labelId:G,value:U,input:Be,...qe,children:i}):Be,d&&f.jsx(be,{id:Q,...we,children:d})]})}),rC=({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},oC=({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},sC=(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}},iC=({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=Du(e,i),c=$u(e,l.contentType,l.type,i),u=n?c:l.contentType==="digit",p=t!=null&&e.isValid(t);let h=p?e.formatByString(t,i):"",v=null;if(u)if(c)v=h===""?e.formatByString(s,i).length:h.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${i} should have a 'maxDigitNumber' property on it's adapter`);v=l.maxLength,p&&(h=yi(Iu(pn(h,o),v),o))}return j({},l,{format:i,maxLength:v,value:h,placeholder:sC(e,r,l,i),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},aC=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),s=[];let i="";const a=Object.keys(t.formatTokenMap).sort((v,d)=>d.length-v.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${a.join("|")})*$`),u=new RegExp(`^(${a.join("|")})`),p=v=>r.find(d=>d.start<=v&&d.end>=v);let h=0;for(;h<n.length;){const v=p(h),d=v!=null,m=l.exec(n.slice(h))?.[1];if(!d&&m!=null&&c.test(m)){let g=m;for(;g.length>0;){const C=u.exec(g)[1];g=g.slice(C.length),s.push(iC(j({},e,{now:o,token:C,startSeparator:i}))),i=""}h+=m.length}else{const g=n[h];d&&v?.start===h||v?.end===h||(s.length===0?i+=g:s[s.length-1].endSeparator+=g),h+=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},lC=({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}),Nl=e=>{let t=rC(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=oC(j({},e,{expandedFormat:t})),r=aC(j({},e,{expandedFormat:t,escapedParts:n}));return lC(j({},e,{sections:r}))},cC=e=>{const t=Le(),n=Bt(),r=yn(),o=vt(),{valueManager:s,fieldValueManager:i,valueType:a,validator:l,internalProps:c,internalProps:{value:u,defaultValue:p,referenceDate:h,onChange:v,format:d,formatDensity:m="dense",selectedSections:g,onSelectedSectionsChange:C,shouldRespectLeadingZeros:w=!1,timezone:y,enableAccessibleFieldDOMStructure:x=!1}}=e,{timezone:P,value:T,handleValueChange:I}=Ei({timezone:y,value:u,defaultValue:p,referenceDate:h,onChange:v,valueManager:s}),R=S.useMemo(()=>cb(t),[t]),A=S.useMemo(()=>mb(t,R,P),[t,R,P]),O=S.useCallback((V,Q=null)=>i.getSectionsFromValue(t,V,Q,G=>Nl({utils:t,localeText:n,localizedDigits:R,format:d,date:G,formatDensity:m,shouldRespectLeadingZeros:w,enableAccessibleFieldDOMStructure:x,isRtl:o})),[i,d,n,R,o,w,t,m,x]),[$,b]=S.useState(()=>{const V=O(T),Q={sections:V,value:T,referenceValue:s.emptyValue,tempValueStrAndroid:null},G=sb(V),_=s.getInitialReferenceValue({referenceDate:h,value:T,utils:t,props:c,granularity:G,timezone:P});return j({},Q,{referenceValue:_})}),[E,D]=Dt({controlled:g,default:null,name:"useField",state:"selectedSections"}),M=V=>{D(V),C?.(V)},k=S.useMemo(()=>Ms(E,$.sections),[E,$.sections]),F=k==="all"?0:k,L=({value:V,referenceValue:Q,sections:G})=>{if(b(z=>j({},z,{sections:G,value:V,referenceValue:Q,tempValueStrAndroid:null})),s.areValuesEqual(t,$.value,V))return;const _={validationError:l({adapter:r,value:V,timezone:P,props:c})};I(V,_)},N=(V,Q)=>{const G=[...$.sections];return G[V]=j({},G[V],{value:Q,modified:!0}),G},U=()=>{L({value:s.emptyValue,referenceValue:$.referenceValue,sections:O(s.emptyValue)})},J=()=>{if(F==null)return;const V=$.sections[F],Q=i.getActiveDateManager(t,$,V),_=Q.getSections($.sections).filter(ee=>ee.value!=="").length===(V.value===""?0:1),z=N(F,""),Z=_?null:t.getInvalidDate(),te=Q.getNewValuesFromNewActiveDate(Z);L(j({},te,{sections:z}))},re=V=>{const Q=(z,Z)=>{const te=t.parse(z,d);if(te==null||!t.isValid(te))return null;const ee=Nl({utils:t,localeText:n,localizedDigits:R,format:d,date:te,formatDensity:m,shouldRespectLeadingZeros:w,enableAccessibleFieldDOMStructure:x,isRtl:o});return el(t,te,ee,Z,!1)},G=i.parseValueStr(V,$.referenceValue,Q),_=i.updateReferenceValue(t,G,$.referenceValue);L({value:G,referenceValue:_,sections:O(G,$.sections)})},le=({activeSection:V,newSectionValue:Q,shouldGoToNextSection:G})=>{G&&F<$.sections.length-1&&M(F+1);const _=i.getActiveDateManager(t,$,V),z=N(F,Q),Z=_.getSections(z),te=pb(t,Z,R);let ee,B;if(te!=null&&t.isValid(te)){const X=el(t,te,Z,_.referenceDate,!0);ee=_.getNewValuesFromNewActiveDate(X),B=!0}else ee=_.getNewValuesFromNewActiveDate(te),B=(te!=null&&!t.isValid(te))!=(_.date!=null&&!t.isValid(_.date));return B?L(j({},ee,{sections:z})):b(X=>j({},X,ee,{sections:z,tempValueStrAndroid:null}))},ie=V=>b(Q=>j({},Q,{tempValueStrAndroid:V}));return S.useEffect(()=>{const V=O($.value);b(Q=>j({},Q,{sections:V}))},[d,t.locale,o]),S.useEffect(()=>{let V;s.areValuesEqual(t,$.value,T)?V=s.getTimezone(t,$.value)!==s.getTimezone(t,T):V=!0,V&&b(Q=>j({},Q,{value:T,referenceValue:i.updateReferenceValue(t,T,Q.referenceValue),sections:O(T)}))},[T]),{state:$,activeSectionIndex:F,parsedSelectedSections:k,setSelectedSections:M,clearValue:U,clearActiveSection:J,updateSectionValue:le,updateValueFromValueStr:re,setTempAndroidValueStr:ie,getSectionsFromValue:O,sectionsValueBoundaries:A,localizedDigits:R,timezone:P}},uC=5e3,kn=e=>e.saveQuery!=null,dC=({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(),uC);return()=>{clearTimeout(d)}}return()=>{}},[a,c]);const u=({keyPressed:d,sectionIndex:m},g,C)=>{const w=d.toLowerCase(),y=e[m];if(a!=null&&(!C||C(a.value))&&a.sectionIndex===m){const P=`${a.value}${w}`,T=g(P,y);if(!kn(T))return l({sectionIndex:m,value:P,sectionType:y.type}),T}const x=g(w,y);return kn(x)&&!x.saveQuery?(c(),null):(l({sectionIndex:m,value:w,sectionType:y.type}),kn(x)?null:x)},p=d=>{const m=(w,y,x)=>{const P=y.filter(T=>T.toLowerCase().startsWith(x));return P.length===0?{saveQuery:!1}:{sectionValue:P[0],shouldGoToNextSection:P.length===1}},g=(w,y,x,P)=>{const T=I=>Ru(i,s,y.type,I);if(y.contentType==="letter")return m(y.format,T(y.format),w);if(x&&P!=null&&Du(i,x).contentType==="letter"){const I=T(x),R=m(x,I,w);return kn(R)?{saveQuery:!1}:j({},R,{sectionValue:P(R.sectionValue,I)})}return{saveQuery:!1}};return u(d,(w,y)=>{switch(y.type){case"month":{const x=P=>Za(i,P,i.formats.month,y.format);return g(w,y,i.formats.month,x)}case"weekDay":{const x=(P,T)=>T.indexOf(P).toString();return g(w,y,i.formats.weekday,x)}case"meridiem":return g(w,y);default:return{saveQuery:!1}}})},h=d=>{const m=(C,w)=>{const y=pn(C,r),x=Number(y),P=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(x>P.maximum)return{saveQuery:!1};if(x<P.minimum)return{saveQuery:!0};const T=x*10>P.maximum||y.length===P.maximum.toString().length;return{sectionValue:Eu(i,x,P,r,w),shouldGoToNextSection:T}};return u(d,(C,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return m(C,w);if(w.type==="month"){$u(i,"digit","month","MM");const y=m(C,{type:w.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(kn(y))return y;const x=Za(i,y.sectionValue,"MM",w.format);return j({},y,{sectionValue:x})}if(w.type==="weekDay"){const y=m(C,w);if(kn(y))return y;const x=Wo(i,w.format)[Number(y.sectionValue)-1];return j({},y,{sectionValue:x})}return{saveQuery:!1}},C=>Qa(C,r))};return{applyCharacterEditing:ue(d=>{const m=e[d.sectionIndex],C=Qa(d.keyPressed,r)?h(j({},d,{keyPressed:yi(d.keyPressed,r)})):p(d);if(C==null){o(null);return}t({activeSection:m,newSectionValue:C.sectionValue,shouldGoToNextSection:C.shouldGoToNextSection})}),resetCharacterQuery:c}},pC=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:h,resetCharacterQuery:v,setSelectedSections:d,parsedSelectedSections:m,state:g,clearActiveSection:C,clearValue:w,updateSectionValue:y,updateValueFromValueStr:x,sectionOrder:P,areAllSectionsEmpty:T,sectionsValueBoundaries:I}=e,R=S.useRef(null),A=ke(r,R),O=Bt(),$=Le(),b=xt(),[E,D]=S.useState(!1),M=S.useMemo(()=>({syncSelectionToDOM:()=>{if(!R.current)return;const B=document.getSelection();if(!B)return;if(m==null){B.rangeCount>0&&R.current.getRoot().contains(B.getRangeAt(0).startContainer)&&B.removeAllRanges(),E&&R.current.getRoot().blur();return}if(!R.current.getRoot().contains(Ke(document)))return;const X=new window.Range;let oe;m==="all"?oe=R.current.getRoot():g.sections[m].type==="empty"?oe=R.current.getSectionContainer(m):oe=R.current.getSectionContent(m),X.selectNodeContents(oe),oe.focus(),B.removeAllRanges(),B.addRange(X)},getActiveSectionIndexFromDOM:()=>{const B=Ke(document);return!B||!R.current||!R.current.getRoot().contains(B)?null:R.current.getSectionIndexFromDOMElement(B)},focusField:(B=0)=>{if(!R.current||M.getActiveSectionIndexFromDOM()!=null)return;const X=Ms(B,g.sections);D(!0),R.current.getSectionContent(X).focus()},setSelectedSections:B=>{if(!R.current)return;const X=Ms(B,g.sections);D((X==="all"?0:X)!==null),d(B)},isFieldFocused:()=>{const B=Ke(document);return!!R.current&&R.current.getRoot().contains(B)}}),[m,d,g.sections,E]),k=ue(B=>{if(!R.current)return;const X=g.sections[B];R.current.getSectionContent(B).innerHTML=X.value||X.placeholder,M.syncSelectionToDOM()}),F=ue((B,...X)=>{B.isDefaultPrevented()||!R.current||(D(!0),s?.(B,...X),m==="all"?setTimeout(()=>{const oe=document.getSelection().getRangeAt(0).startOffset;if(oe===0){d(P.startIndex);return}let ne=0,ce=0;for(;ce<oe&&ne<g.sections.length;){const se=g.sections[ne];ne+=1,ce+=`${se.startSeparator}${se.value||se.placeholder}${se.endSeparator}`.length}d(ne-1)}):E?R.current.getRoot().contains(B.target)||d(P.startIndex):(D(!0),d(P.startIndex)))}),L=ue(B=>{if(a?.(B),!R.current||m!=="all")return;const oe=B.target.textContent??"";R.current.getRoot().innerHTML=g.sections.map(ne=>`${ne.startSeparator}${ne.value||ne.placeholder}${ne.endSeparator}`).join(""),M.syncSelectionToDOM(),oe.length===0||oe.charCodeAt(0)===10?(v(),w(),d("all")):oe.length>1?x(oe):(m==="all"&&d(0),h({keyPressed:oe,sectionIndex:0}))}),N=ue(B=>{if(l?.(B),n||m!=="all"){B.preventDefault();return}const X=B.clipboardData.getData("text");B.preventDefault(),v(),x(X)}),U=ue((...B)=>{if(i?.(...B),E||!R.current)return;D(!0),R.current.getSectionIndexFromDOMElement(Ke(document))!=null||d(P.startIndex)}),J=ue((...B)=>{o?.(...B),setTimeout(()=>{if(!R.current)return;const X=Ke(document);!R.current.getRoot().contains(X)&&(D(!1),d(null))})}),re=ue(B=>X=>{X.isDefaultPrevented()||d(B)}),le=ue(B=>{B.preventDefault()}),ie=ue(B=>()=>{d(B)}),V=ue(B=>{if(B.preventDefault(),n||t||typeof m!="number")return;const X=g.sections[m],oe=B.clipboardData.getData("text"),ne=/^[a-zA-Z]+$/.test(oe),ce=/^[0-9]+$/.test(oe),se=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(oe);X.contentType==="letter"&&ne||X.contentType==="digit"&&ce||X.contentType==="digit-with-letter"&&se?(v(),y({activeSection:X,newSectionValue:oe,shouldGoToNextSection:!0})):!ne&&!ce&&(v(),x(oe))}),Q=ue(B=>{B.preventDefault(),B.dataTransfer.dropEffect="none"}),G=ue(B=>{if(!R.current)return;const X=B.target,oe=X.textContent??"",ne=R.current.getSectionIndexFromDOMElement(X),ce=g.sections[ne];if(n||!R.current){k(ne);return}if(oe.length===0){if(ce.value===""){k(ne);return}const se=B.nativeEvent.inputType;if(se==="insertParagraph"||se==="insertLineBreak"){k(ne);return}v(),C();return}h({keyPressed:oe,sectionIndex:ne}),k(ne)});Ue(()=>{if(!(!E||!R.current)){if(m==="all")R.current.getRoot().focus();else if(typeof m=="number"){const B=R.current.getSectionContent(m);B&&B.focus()}}},[m,E]);const _=S.useMemo(()=>g.sections.reduce((B,X)=>(B[X.type]=I[X.type]({currentDate:null,contentType:X.contentType,format:X.format}),B),{}),[I,g.sections]),z=m==="all",Z=S.useMemo(()=>g.sections.map((B,X)=>{const oe=!z&&!t&&!n;return{container:{"data-sectionindex":X,onClick:re(X)},content:{tabIndex:z||X>0?-1:0,contentEditable:!z&&!t&&!n,role:"spinbutton",id:`${b}-${B.type}`,"aria-labelledby":`${b}-${B.type}`,"aria-readonly":n,"aria-valuenow":xb(B,$),"aria-valuemin":_[B.type].minimum,"aria-valuemax":_[B.type].maximum,"aria-valuetext":B.value?vb(B,$):O.empty,"aria-label":O[B.type],"aria-disabled":t,spellCheck:oe?!1:void 0,autoCapitalize:oe?"off":void 0,autoCorrect:oe?"off":void 0,[parseInt(S.version,10)>=17?"enterKeyHint":"enterkeyhint"]:oe?"next":void 0,children:B.value||B.placeholder,onInput:G,onPaste:V,onFocus:ie(X),onDragOver:Q,onMouseUp:le,inputMode:B.contentType==="letter"?"text":"numeric"},before:{children:B.startSeparator},after:{children:B.endSeparator}}}),[g.sections,ie,V,Q,G,re,le,t,n,z,O,$,_,b]),te=ue(B=>{x(B.target.value)}),ee=S.useMemo(()=>T?"":p.getV7HiddenInputValueFromSections(g.sections),[T,g.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:J,onClick:F,onFocus:U,onInput:L,onPaste:N,enableAccessibleFieldDOMStructure:!0,elements:Z,tabIndex:m===0?-1:0,contentEditable:z,value:ee,onChange:te,areAllSectionsEmpty:T}}},Dn=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),fC=(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=bi(a,n?"input-rtl":"input-ltr",t),c=`${a.startSeparator}${l}${a.endSeparator}`,u=Dn(c).length,p=c.length,h=Dn(l),v=o+(h===""?0:l.indexOf(h[0]))+a.startSeparator.length,d=v+h.length;s.push(j({},a,{start:r,end:r+u,startInInput:v,endInInput:d})),r+=u,o+=p}return s},hC=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:h,activeSectionIndex:v,state:d,fieldValueManager:m,valueManager:g,applyCharacterEditing:C,resetCharacterQuery:w,updateSectionValue:y,updateValueFromValueStr:x,clearActiveSection:P,clearValue:T,setTempAndroidValueStr:I,setSelectedSections:R,getSectionsFromValue:A,areAllSectionsEmpty:O,localizedDigits:$}=e,b=S.useRef(null),E=ke(l,b),D=S.useMemo(()=>fC(d.sections,$,t),[d.sections,$,t]),M=S.useMemo(()=>({syncSelectionToDOM:()=>{if(!b.current)return;if(h==null){b.current.scrollLeft&&(b.current.scrollLeft=0);return}if(b.current!==Ke(document))return;const G=b.current.scrollTop;if(h==="all")b.current.select();else{const _=D[h],z=_.type==="empty"?_.startInInput-_.startSeparator.length:_.startInInput,Z=_.type==="empty"?_.endInInput+_.endSeparator.length:_.endInInput;(z!==b.current.selectionStart||Z!==b.current.selectionEnd)&&b.current===Ke(document)&&b.current.setSelectionRange(z,Z),clearTimeout(r.current),r.current=setTimeout(()=>{b.current&&b.current===Ke(document)&&b.current.selectionStart===b.current.selectionEnd&&(b.current.selectionStart!==z||b.current.selectionEnd!==Z)&&M.syncSelectionToDOM()})}b.current.scrollTop=G},getActiveSectionIndexFromDOM:()=>{const G=b.current.selectionStart??0,_=b.current.selectionEnd??0;if(G===0&&_===0)return null;const z=G<=D[0].startInInput?1:D.findIndex(Z=>Z.startInInput-Z.startSeparator.length>G);return z===-1?D.length-1:z-1},focusField:(G=0)=>{Ke(document)!==b.current&&(b.current?.focus(),R(G))},setSelectedSections:G=>R(G),isFieldFocused:()=>b.current===Ke(document)}),[b,h,D,R]),k=()=>{const G=b.current.selectionStart??0;let _;G<=D[0].startInInput||G>=D[D.length-1].endInInput?_=1:_=D.findIndex(Z=>Z.startInInput-Z.startSeparator.length>G);const z=_===-1?D.length-1:_-1;R(z)},F=ue((...G)=>{o?.(...G);const _=b.current;clearTimeout(n.current),n.current=setTimeout(()=>{!_||_!==b.current||v==null&&(_.value.length&&Number(_.selectionEnd)-Number(_.selectionStart)===_.value.length?R("all"):k())})}),L=ue((G,..._)=>{G.isDefaultPrevented()||(s?.(G,..._),k())}),N=ue(G=>{if(i?.(G),G.preventDefault(),u||p)return;const _=G.clipboardData.getData("text");if(typeof h=="number"){const z=d.sections[h],Z=/^[a-zA-Z]+$/.test(_),te=/^[0-9]+$/.test(_),ee=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(_);if(z.contentType==="letter"&&Z||z.contentType==="digit"&&te||z.contentType==="digit-with-letter"&&ee){w(),y({activeSection:z,newSectionValue:_,shouldGoToNextSection:!0});return}if(Z||te)return}w(),x(_)}),U=ue((...G)=>{a?.(...G),R(null)}),J=ue(G=>{if(u)return;const _=G.target.value;if(_===""){w(),T();return}const z=G.nativeEvent.data,Z=z&&z.length>1,te=Z?z:_,ee=Dn(te);if(h==="all"&&R(v),v==null||Z){x(Z?z:ee);return}let B;if(h==="all"&&ee.length===1)B=ee;else{const X=Dn(m.getV6InputValueFromSections(D,$,t));let oe=-1,ne=-1;for(let be=0;be<X.length;be+=1)oe===-1&&X[be]!==ee[be]&&(oe=be),ne===-1&&X[X.length-be-1]!==ee[ee.length-be-1]&&(ne=be);const ce=D[v];if(oe<ce.start||X.length-ne-1>ce.end)return;const fe=ee.length-X.length+ce.end-Dn(ce.endSeparator||"").length;B=ee.slice(ce.start+Dn(ce.startSeparator||"").length,fe)}if(B.length===0){yb()&&I(te),w(),P();return}C({keyPressed:B,sectionIndex:v})}),re=S.useMemo(()=>c!==void 0?c:m.getV6InputValueFromSections(A(g.emptyValue),$,t),[c,m,A,g.emptyValue,$,t]),le=S.useMemo(()=>d.tempValueStrAndroid??m.getV6InputValueFromSections(d.sections,$,t),[d.sections,m,d.tempValueStrAndroid,$,t]);S.useEffect(()=>(b.current&&b.current===Ke(document)&&R("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const ie=S.useMemo(()=>v==null||d.sections[v].contentType==="letter"?"text":"numeric",[v,d.sections]),Q=!(b.current&&b.current===Ke(document))&&O;return{interactions:M,returnedValue:{readOnly:u,onBlur:U,onClick:L,onFocus:F,onPaste:N,inputRef:E,enableAccessibleFieldDOMStructure:!1,placeholder:re,inputMode:ie,autoComplete:"off",value:Q?"":le,onChange:J}}},mC=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:h,valueManager:v,validator:d}=e,m=vt(),g=cC(e),{state:C,activeSectionIndex:w,parsedSelectedSections:y,setSelectedSections:x,clearValue:P,clearActiveSection:T,updateSectionValue:I,setTempAndroidValueStr:R,sectionsValueBoundaries:A,localizedDigits:O,timezone:$}=g,b=dC({sections:C.sections,updateSectionValue:I,sectionsValueBoundaries:A,localizedDigits:O,setTempAndroidValueStr:R,timezone:$}),{resetCharacterQuery:E}=b,D=v.areValuesEqual(t,C.value,v.emptyValue),M=s?pC:hC,k=S.useMemo(()=>bb(C.sections,m&&!s),[C.sections,m,s]),{returnedValue:F,interactions:L}=M(j({},e,g,b,{areAllSectionsEmpty:D,sectionOrder:k})),N=ue(V=>{if(l?.(V),!i)switch(!0){case((V.ctrlKey||V.metaKey)&&String.fromCharCode(V.keyCode)==="A"&&!V.shiftKey&&!V.altKey):{V.preventDefault(),x("all");break}case V.key==="ArrowRight":{if(V.preventDefault(),y==null)x(k.startIndex);else if(y==="all")x(k.endIndex);else{const Q=k.neighbors[y].rightIndex;Q!==null&&x(Q)}break}case V.key==="ArrowLeft":{if(V.preventDefault(),y==null)x(k.endIndex);else if(y==="all")x(k.startIndex);else{const Q=k.neighbors[y].leftIndex;Q!==null&&x(Q)}break}case V.key==="Delete":{if(V.preventDefault(),a)break;y==null||y==="all"?P():T(),E();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(V.key):{if(V.preventDefault(),a||w==null)break;y==="all"&&x(w);const Q=C.sections[w],G=h.getActiveDateManager(t,C,Q),_=ub(t,$,Q,V.key,A,O,G.date,{minutesStep:o});I({activeSection:Q,newSectionValue:_,shouldGoToNextSection:!1});break}}});Ue(()=>{L.syncSelectionToDOM()});const{hasValidationError:U}=ju({props:n,validator:d,timezone:$,value:C.value,onError:n.onError}),J=S.useMemo(()=>c!==void 0?c:U,[U,c]);S.useEffect(()=>{!J&&w==null&&E()},[C.referenceValue,w,J]),S.useEffect(()=>{C.tempValueStrAndroid!=null&&w!=null&&(E(),T())},[C.sections]),S.useImperativeHandle(r,()=>({getSections:()=>C.sections,getActiveSectionIndex:L.getActiveSectionIndexFromDOM,setSelectedSections:L.setSelectedSections,focusField:L.focusField,isFieldFocused:L.isFieldFocused}));const re=ue((V,...Q)=>{V.preventDefault(),p?.(V,...Q),P(),L.isFieldFocused()?x(k.startIndex):L.focusField(0)}),le={onKeyDown:N,onClear:re,error:J,clearable:!!(u&&!D&&!a&&!i)},ie={disabled:i,readOnly:a};return j({},e.forwardedProps,le,ie,F)},gC=["clearable","onClear","InputProps","sx","slots","slotProps"],yC=["ownerState"],bC=e=>{const t=Bt(),{clearable:n,onClear:r,InputProps:o,sx:s,slots:i,slotProps:a}=e,l=ve(e,gC),c=i?.clearButton??Nr,u=Pe({elementType:c,externalSlotProps:a?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=ve(u,yC),h=i?.clearIcon??MS,v=Pe({elementType:h,externalSlotProps:a?.clearIcon,ownerState:{}});return j({},l,{InputProps:j({},o,{endAdornment:f.jsxs(S.Fragment,{children:[n&&f.jsx(Bu,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:f.jsx(c,j({},p,{onClick:r,children:f.jsx(h,j({fontSize:"small"},v))}))}),o?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(s)?s:[s]]})},vC=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],xC=(e,t)=>S.useMemo(()=>{const n=j({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return vC.forEach(o),Lu.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),SC=e=>{const t=Le(),n=Ar();return j({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:lt(t,e.minDate,n.minDate),maxDate:lt(t,e.maxDate,n.maxDate)})},wC=e=>{const t=SC(e),{forwardedProps:n,internalProps:r}=xC(t,"date");return mC({forwardedProps:n,internalProps:r,valueManager:Rt,fieldValueManager:wb,validator:Fr,valueType:"date"})};function CC(e){return ge("MuiPickersTextField",e)}he("MuiPickersTextField",["root","focused","disabled","error","required"]);function PC(e){return ge("MuiPickersInputBase",e)}const On=he("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function kC(e){return ge("MuiPickersSectionList",e)}const rr=he("MuiPickersSectionList",["root","section","sectionContent"]),TC=["slots","slotProps","elements","sectionListRef"],xd=K("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Sd=K("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),wd=K("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Cd=K("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),MC=e=>{const{classes:t}=e;return me({root:["root"],section:["section"],sectionContent:["sectionContent"]},kC,t)};function DC(e){const{slots:t,slotProps:n,element:r,classes:o}=e,s=t?.section??Sd,i=Pe({elementType:s,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=t?.sectionContent??Cd,l=Pe({elementType:a,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=t?.sectionSeparator??wd,u=Pe({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),p=Pe({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return f.jsxs(s,j({},i,{children:[f.jsx(c,j({},u)),f.jsx(a,j({},l)),f.jsx(c,j({},p))]}))}const RC=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:s,elements:i,sectionListRef:a}=r,l=ve(r,TC),c=MC(r),u=S.useRef(null),p=ke(n,u),h=m=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return u.current};S.useImperativeHandle(a,()=>({getRoot(){return h("getRoot")},getSectionContainer(m){return h("getSectionContainer").querySelector(`.${rr.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return h("getSectionContent").querySelector(`.${rr.section}[data-sectionindex="${m}"] .${rr.sectionContent}`)},getSectionIndexFromDOMElement(m){const g=h("getSectionIndexFromDOMElement");if(m==null||!g.contains(m))return null;let C=null;return m.classList.contains(rr.section)?C=m:m.classList.contains(rr.sectionContent)&&(C=m.parentElement),C==null?null:Number(C.dataset.sectionindex)}}));const v=o?.root??xd,d=Pe({elementType:v,externalSlotProps:s?.root,externalForwardedProps:l,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return f.jsx(v,j({},d,{children:d.contentEditable?i.map(({content:m,before:g,after:C})=>`${g.children}${m.children}${C.children}`).join(""):f.jsx(S.Fragment,{children:i.map((m,g)=>f.jsx(DC,{slots:o,slotProps:s,element:m,classes:c},g))})}))}),IC=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],EC=e=>Math.round(e*1e5)/1e5,Jo=K("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>j({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${EC(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Wi=K(xd,{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}}]})),$C=K(Sd,{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"})),OC=K(Cd,{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"})),AC=K(wd,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),FC=K("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(j({},Xy)),LC=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${ae(a)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return me(p,PC,o)},Hi=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:h,slotProps:v,contentEditable:d,tabIndex:m,onInput:g,onPaste:C,onKeyDown:w,name:y,readOnly:x,inputProps:P,inputRef:T,sectionListRef:I}=r,R=ve(r,IC),A=S.useRef(null),O=ke(n,A),$=ke(P?.ref,T),b=vt(),E=ft();if(!E)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const D=U=>{if(E.disabled){U.stopPropagation();return}E.onFocus?.(U)};S.useEffect(()=>{E&&E.setAdornedStart(!!u)},[E,u]),S.useEffect(()=>{E&&(s?E.onEmpty():E.onFilled())},[E,s]);const M=j({},r,E,{isRtl:b}),k=LC(M),F=h?.root||Jo,L=Pe({elementType:F,externalSlotProps:v?.root,externalForwardedProps:R,additionalProps:{"aria-invalid":E.error,ref:O},className:k.root,ownerState:M}),N=h?.input||Wi;return f.jsxs(F,j({},L,{children:[u,f.jsx(RC,{sectionListRef:I,elements:o,contentEditable:d,tabIndex:m,className:k.sectionsContainer,onFocus:D,onBlur:E.onBlur,onInput:g,onPaste:C,onKeyDown:w,slots:{root:N,section:$C,sectionContent:OC,sectionSeparator:AC},slotProps:{root:{ownerState:M},sectionContent:{className:On.sectionContent},sectionSeparator:({position:U})=>({className:U==="before"?On.sectionBefore:On.sectionAfter})}}),c,p?p(j({},E)):null,f.jsx(FC,j({name:y,className:k.input,value:i,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:x,required:E.required,disabled:E.disabled},P,{ref:$}))]}))});function NC(e){return ge("MuiPickersOutlinedInput",e)}const yt=j({},On,he("MuiPickersOutlinedInput",["root","notchedOutline","input"])),jC=["children","className","label","notched","shrink"],BC=K("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}}),jl=K("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),VC=K("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 _C(e){const{className:t,label:n}=e,r=ve(e,jC),o=n!=null&&n!=="",s=j({},e,{withLabel:o});return f.jsx(BC,j({"aria-hidden":!0,className:t},r,{ownerState:s,children:f.jsx(VC,{ownerState:s,children:o?f.jsx(jl,{children:n}):f.jsx(jl,{className:"notranslate",children:"​"})})}))}const zC=["label","autoFocus","ownerState","notched"],WC=K(Jo,{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}}}))}}),HC=K(Wi,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),UC=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},NC,t);return j({},t,r)},Pd=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:s,notched:i}=r,a=ve(r,zC),l=ft(),c=j({},r,s,l,{color:l?.color||"primary"}),u=UC(c);return f.jsx(Hi,j({slots:{root:WC,input:HC},renderSuffix:p=>f.jsx(_C,{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}))});Pd.muiName="Input";function YC(e){return ge("MuiPickersFilledInput",e)}const nn=j({},On,he("MuiPickersFilledInput",["root","underline","input"])),GC=["label","autoFocus","disableUnderline","ownerState"],qC=K(Jo,{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}},[`&.${nn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${nn.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"},[`&.${nn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nn.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(.${nn.disabled}, .${nn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${nn.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:i})=>!!i,style:{paddingLeft:12}},{props:({endAdornment:i})=>!!i,style:{paddingRight:12}}]}}),KC=K(Wi,{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}}]}),XC=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},YC,t);return j({},t,o)},kd=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ve(r,GC),l=ft(),c=j({},r,i,l,{color:l?.color||"primary"}),u=XC(c);return f.jsx(Hi,j({slots:{root:qC,input:KC},slotProps:{root:{disableUnderline:s}}},a,{label:o,classes:u,ref:n}))});kd.muiName="Input";function QC(e){return ge("MuiPickersFilledInput",e)}const or=j({},On,he("MuiPickersInput",["root","input"])),ZC=["label","autoFocus","disableUnderline","ownerState"],JC=K(Jo,{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"}}}]}}),e1=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},QC,t);return j({},t,o)},Td=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ve(r,ZC),l=ft(),c=j({},r,i,l,{disableUnderline:s,color:l?.color||"primary"}),u=e1(c);return f.jsx(Hi,j({slots:{root:JC}},a,{label:o,classes:u,ref:n}))});Td.muiName="Input";const t1=["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"],n1={standard:Td,filled:kd,outlined:Pd},r1=K(Bi,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),o1=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return me({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},CC,r)},s1=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:h,inputProps:v,inputRef:d,sectionListRef:m,elements:g,areAllSectionsEmpty:C,onClick:w,onKeyDown:y,onKeyUp:x,onPaste:P,onInput:T,endAdornment:I,startAdornment:R,tabIndex:A,contentEditable:O,focused:$,value:b,onChange:E,fullWidth:D,id:M,name:k,helperText:F,FormHelperTextProps:L,label:N,InputLabelProps:U}=r,J=ve(r,t1),re=S.useRef(null),le=ke(n,re),ie=xt(M),V=F&&ie?`${ie}-helper-text`:void 0,Q=N&&ie?`${ie}-label`:void 0,G=j({},r,{color:a,disabled:l,error:c,focused:$,required:p,variant:u}),_=o1(G),z=n1[u];return f.jsxs(r1,j({className:de(_.root,i),ref:le,focused:$,onFocus:o,onBlur:s,disabled:l,variant:u,error:c,color:a,fullWidth:D,required:p,ownerState:G},J,{children:[f.jsx(ji,j({htmlFor:ie,id:Q},U,{children:N})),f.jsx(z,j({elements:g,areAllSectionsEmpty:C,onClick:w,onKeyDown:y,onKeyUp:x,onInput:T,onPaste:P,endAdornment:I,startAdornment:R,tabIndex:A,contentEditable:O,value:b,onChange:E,id:ie,fullWidth:D,inputProps:v,inputRef:d,sectionListRef:m,label:N,name:k,role:"group","aria-labelledby":Q,"aria-describedby":V,"aria-live":V?"polite":void 0},h)),F&&f.jsx(ud,j({id:V},L,{children:F}))]}))}),i1=["enableAccessibleFieldDOMStructure"],a1=["InputProps","readOnly"],l1=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],c1=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ve(e,i1);if(t){const{InputProps:p,readOnly:h}=n,v=ve(n,a1);return j({},v,{InputProps:j({},p??{},{readOnly:h})})}const{onPaste:r,onKeyDown:o,inputMode:s,readOnly:i,InputProps:a,inputProps:l,inputRef:c}=n,u=ve(n,l1);return j({},u,{InputProps:j({},a??{},{readOnly:i}),inputProps:j({},l??{},{inputMode:s,onPaste:r,onKeyDown:o,ref:c})})},u1=["slots","slotProps","InputProps","inputProps"],Md=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDateField"}),{slots:o,slotProps:s,InputProps:i,inputProps:a}=r,l=ve(r,u1),c=r,u=o?.textField??(t.enableAccessibleFieldDOMStructure?s1:vd),p=Pe({elementType:u,externalSlotProps:s?.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});p.inputProps=j({},a,p.inputProps),p.InputProps=j({},i,p.InputProps);const h=wC(p),v=c1(h),d=bC(j({},v,{slots:o,slotProps:s}));return f.jsx(u,j({},d))}),Dd=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:a})=>{const l=yn();return S.useCallback(c=>Fr({adapter:l,value:c,timezone:a,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i}})!==null,[l,e,t,n,r,o,s,i,a])},d1=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return j({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const s=o.newTimezone;if(n.getTimezone(r.currentMonth)===s)return r;let i=n.setTimezone(r.currentMonth,s);return n.getMonth(i)!==n.getMonth(r.currentMonth)&&(i=n.setMonth(i,n.getMonth(r.currentMonth))),j({},r,{currentMonth:i})}case"finishMonthSwitchingAnimation":return j({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const s=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return j({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:s&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},p1=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,h=Le(),v=S.useRef(d1(!!c,s,h)).current,d=S.useMemo(()=>Rt.getInitialReferenceValue({value:t,utils:h,timezone:p,props:e,referenceDate:n,granularity:Pt.day}),[n,p]),[m,g]=S.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:d,currentMonth:h.startOfMonth(d),slideDirection:"left"});S.useEffect(()=>{g({type:"changeMonthTimezone",newTimezone:h.getTimezone(d)})},[d,h]);const C=S.useCallback(T=>{g(j({type:"changeMonth"},T)),l&&l(T.newMonth)},[l]),w=S.useCallback(T=>{const I=T;h.isSameMonth(I,m.currentMonth)||C({newMonth:h.startOfMonth(I),direction:h.isAfterDay(I,m.currentMonth)?"left":"right"})},[m.currentMonth,C,h]),y=Dd({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:p}),x=S.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),P=ue((T,I)=>{y(T)||g({type:"changeFocusedDay",focusedDay:T,withoutMonthSwitchingAnimation:I})});return{referenceDate:d,calendarState:m,changeMonth:w,changeFocusedDay:P,isDateDisabled:y,onMonthSwitchingAnimationEnd:x,handleChangeMonth:C}},f1=e=>ge("MuiPickersFadeTransitionGroup",e);he("MuiPickersFadeTransitionGroup",["root"]);const h1=e=>{const{classes:t}=e;return me({root:["root"]},f1,t)},m1=K(Lr,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Rd(e){const t=Fe({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=h1(t),a=gn();return o?n:f.jsx(m1,{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 g1(e){return ge("MuiPickersDay",e)}const rn=he("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),y1=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],b1=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"]},g1,l)},Id=({theme:e})=>j({},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),[`&.${rn.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${rn.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${rn.disabled}:not(.${rn.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${rn.disabled}&.${rn.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Go}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${rn.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Ed=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},v1=K(Bn,{name:"MuiPickersDay",slot:"Root",overridesResolver:Ed})(Id),x1=K("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Ed})(({theme:e})=>j({},Id({theme:e}),{opacity:0,pointerEvents:"none"})),sr=()=>{},S1=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:h,onFocus:v=sr,onBlur:d=sr,onKeyDown:m=sr,onMouseDown:g=sr,onMouseEnter:C=sr,outsideCurrentMonth:w,selected:y=!1,showDaysOutsideCurrentMonth:x=!1,children:P,today:T=!1}=r,I=ve(r,y1),R=j({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:y,showDaysOutsideCurrentMonth:x,today:T}),A=b1(R),O=Le(),$=S.useRef(null),b=ke($,n);Ue(()=>{o&&!a&&!u&&!w&&$.current.focus()},[o,a,u,w]);const E=M=>{g(M),w&&M.preventDefault()},D=M=>{a||h(i),w&&M.currentTarget.focus(),p&&p(M)};return w&&!x?f.jsx(x1,{className:de(A.root,A.hiddenDaySpacingFiller,s),ownerState:R,role:I.role}):f.jsx(v1,j({className:de(A.root,s),ref:b,centerRipple:!0,disabled:a,tabIndex:y?0:-1,onKeyDown:M=>m(M,i),onFocus:M=>v(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")}))}),w1=S.memo(S1),C1=e=>ge("MuiPickersSlideTransition",e),ot=he("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),P1=["children","className","reduceAnimations","slideDirection","transKey","classes"],k1=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return me(r,C1,t)},T1=K(Lr,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ot["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ot["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ot.slideEnterActive}`]:t.slideEnterActive},{[`.${ot.slideExit}`]:t.slideExit},{[`.${ot["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ot["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ot["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ot["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ot.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ot.slideExit}`]:{transform:"translate(0%)"},[`& .${ot["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ot["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function M1(e){const t=Fe({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ve(t,P1),a=k1(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(T1,{className:de(a.root,r),childFactory:u=>S.cloneElement(u,{classNames:c}),role:"presentation",children:f.jsx(Si,j({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const D1=e=>ge("MuiDayCalendar",e);he("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const R1=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],I1=["ownerState"],E1=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"]},D1,t)},$d=(Tr+Go*2)*6,$1=K("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),O1=K("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),A1=K(Qt,{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})),F1=K(Qt,{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})),L1=K(Qt,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>j({},e.typography.caption,{width:Tr,height:Tr,padding:0,margin:`0 ${Go}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),N1=K("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:$d}),j1=K(M1,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:$d}),B1=K("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),V1=K("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Go}px 0`,display:"flex",justifyContent:"center"});function _1(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:s,currentMonthNumber:i,isViewFocused:a}=e,l=ve(e,R1);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:h,slots:v,slotProps:d,timezone:m}=t,g=Le(),C=Ho(m),w=r!==null&&g.isSameDay(n,r),y=o.some(b=>g.isSameDay(b,n)),x=g.isSameDay(n,C),P=v?.day??w1,T=Pe({elementType:P,externalSlotProps:d?.day,additionalProps:j({disableHighlightToday:u,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:p,"data-timestamp":g.toJsDate(n).valueOf()},l),ownerState:j({},t,{day:n,selected:y})}),I=ve(T,I1),R=S.useMemo(()=>c||s(n),[c,s,n]),A=S.useMemo(()=>g.getMonth(n)!==i,[g,n,i]),O=S.useMemo(()=>{const b=g.startOfMonth(g.setMonth(n,i));return h?g.isSameDay(n,g.startOfWeek(b)):g.isSameDay(n,b)},[i,n,h,g]),$=S.useMemo(()=>{const b=g.endOfMonth(g.setMonth(n,i));return h?g.isSameDay(n,g.endOfWeek(b)):g.isSameDay(n,b)},[i,n,h,g]);return f.jsx(P,j({},I,{day:n,disabled:R,autoFocus:a&&w,today:x,outsideCurrentMonth:A,isFirstVisibleCell:O,isLastVisibleCell:$,selected:y,tabIndex:w?0:-1,"aria-selected":y,"aria-current":x?"date":void 0}))}function z1(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:h,renderLoading:v=()=>f.jsx("span",{children:"..."}),slideDirection:d,TransitionProps:m,disablePast:g,disableFuture:C,minDate:w,maxDate:y,shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:T,dayOfWeekFormatter:I=ne=>n.format(ne,"weekdayShort").charAt(0).toUpperCase(),hasFocus:R,onFocusedViewChange:A,gridLabelId:O,displayWeekNumber:$,fixedWeekNumber:b,autoFocus:E,timezone:D}=t,M=Ho(D),k=E1(t),F=vt(),L=Dd({shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:T,minDate:w,maxDate:y,disablePast:g,disableFuture:C,timezone:D}),N=Bt(),[U,J]=Dt({name:"DayCalendar",state:"hasFocus",controlled:R,default:E??!1}),[re,le]=S.useState(()=>a||M),ie=ue(ne=>{p||c(ne)}),V=ne=>{L(ne)||(r(ne),le(ne),A?.(!0),J(!0))},Q=ue((ne,ce)=>{switch(ne.key){case"ArrowUp":V(n.addDays(ce,-7)),ne.preventDefault();break;case"ArrowDown":V(n.addDays(ce,7)),ne.preventDefault();break;case"ArrowLeft":{const se=n.addDays(ce,F?1:-1),fe=n.addMonths(ce,F?1:-1),be=hr({utils:n,date:se,minDate:F?se:n.startOfMonth(fe),maxDate:F?n.endOfMonth(fe):se,isDateDisabled:L,timezone:D});V(be||se),ne.preventDefault();break}case"ArrowRight":{const se=n.addDays(ce,F?-1:1),fe=n.addMonths(ce,F?-1:1),be=hr({utils:n,date:se,minDate:F?n.startOfMonth(fe):se,maxDate:F?se:n.endOfMonth(fe),isDateDisabled:L,timezone:D});V(be||se),ne.preventDefault();break}case"Home":V(n.startOfWeek(ce)),ne.preventDefault();break;case"End":V(n.endOfWeek(ce)),ne.preventDefault();break;case"PageUp":V(n.addMonths(ce,1)),ne.preventDefault();break;case"PageDown":V(n.addMonths(ce,-1)),ne.preventDefault();break}}),G=ue((ne,ce)=>V(ce)),_=ue((ne,ce)=>{U&&n.isSameDay(re,ce)&&A?.(!1)}),z=n.getMonth(s),Z=n.getYear(s),te=S.useMemo(()=>i.filter(ne=>!!ne).map(ne=>n.startOfDay(ne)),[n,i]),ee=`${Z}-${z}`,B=S.useMemo(()=>S.createRef(),[ee]),X=S.useMemo(()=>{const ne=n.startOfMonth(s),ce=n.endOfMonth(s);return L(re)||n.isAfterDay(re,ce)||n.isBeforeDay(re,ne)?hr({utils:n,date:re,minDate:ne,maxDate:ce,disablePast:g,disableFuture:C,isDateDisabled:L,timezone:D}):re},[s,C,g,re,L,n,D]),oe=S.useMemo(()=>{const ne=n.getWeekArray(s);let ce=n.addMonths(s,1);for(;b&&ne.length<b;){const se=n.getWeekArray(ce),fe=n.isSameDay(ne[ne.length-1][0],se[0][0]);se.slice(fe?1:0).forEach(be=>{ne.length<b&&ne.push(be)}),ce=n.addMonths(ce,1)}return ne},[s,b,n]);return f.jsxs($1,{role:"grid","aria-labelledby":O,className:k.root,children:[f.jsxs(O1,{role:"row",className:k.header,children:[$&&f.jsx(F1,{variant:"caption",role:"columnheader","aria-label":N.calendarWeekNumberHeaderLabel,className:k.weekNumberLabel,children:N.calendarWeekNumberHeaderText}),tb(n,M).map((ne,ce)=>f.jsx(A1,{variant:"caption",role:"columnheader","aria-label":n.format(ne,"weekday"),className:k.weekDayLabel,children:I(ne)},ce.toString()))]}),l?f.jsx(N1,{className:k.loadingContainer,children:v()}):f.jsx(j1,j({transKey:ee,onExited:u,reduceAnimations:h,slideDirection:d,className:de(o,k.slideTransition)},m,{nodeRef:B,children:f.jsx(B1,{ref:B,role:"rowgroup",className:k.monthContainer,children:oe.map((ne,ce)=>f.jsxs(V1,{role:"row",className:k.weekContainer,"aria-rowindex":ce+1,children:[$&&f.jsx(L1,{className:k.weekNumber,role:"rowheader","aria-label":N.calendarWeekNumberAriaLabelText(n.getWeekNumber(ne[0])),children:N.calendarWeekNumberText(n.getWeekNumber(ne[0]))}),ne.map((se,fe)=>f.jsx(_1,{parentProps:t,day:se,selectedDays:te,focusableDay:X,onKeyDown:Q,onFocus:G,onBlur:_,onDaySelect:ie,isDateDisabled:L,currentMonthNumber:z,isViewFocused:U,"aria-colindex":fe+1},se.toString()))]},`week-${ne[0]}`))})}))]})}function W1(e){return ge("MuiPickersMonth",e)}const qr=he("MuiPickersMonth",["root","monthButton","disabled","selected"]),H1=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],U1=e=>{const{disabled:t,selected:n,classes:r}=e;return me({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},W1,r)},Y1=K("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%"}}]}),G1=K("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${qr.disabled}`]:t.disabled},{[`&.${qr.selected}`]:t.selected}]})(({theme:e})=>j({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:He.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:He.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${qr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${qr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),q1=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:h,onBlur:v,"aria-current":d,"aria-label":m,slots:g,slotProps:C}=n,w=ve(n,H1),y=S.useRef(null),x=U1(n);Ue(()=>{r&&y.current?.focus()},[r]);const P=g?.monthButton??G1,T=Pe({elementType:P,externalSlotProps:C?.monthButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:y,type:"button",role:"radio","aria-current":d,"aria-checked":a,"aria-label":m,onClick:I=>u(I,l),onKeyDown:I=>p(I,l),onFocus:I=>h(I,l),onBlur:I=>v(I,l)},ownerState:n,className:x.monthButton});return f.jsx(Y1,j({className:de(x.root,o),ownerState:n},w,{children:f.jsx(P,j({},T))}))});function K1(e){return ge("MuiMonthCalendar",e)}he("MuiMonthCalendar",["root"]);const X1=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Q1=e=>{const{classes:t}=e;return me({root:["root"]},K1,t)};function Z1(e,t){const n=Le(),r=Ar(),o=Fe({props:e,name:t});return j({disableFuture:!1,disablePast:!1},o,{minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate)})}const J1=K("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:qo,boxSizing:"border-box"}),eP=S.forwardRef(function(t,n){const r=Z1(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:p,minDate:h,onChange:v,shouldDisableMonth:d,readOnly:m,autoFocus:g=!1,onMonthFocus:C,hasFocus:w,onFocusedViewChange:y,monthsPerRow:x=3,timezone:P,gridLabelId:T,slots:I,slotProps:R}=r,A=ve(r,X1),{value:O,handleValueChange:$,timezone:b}=$i({name:"MonthCalendar",timezone:P,value:s,defaultValue:i,referenceDate:a,onChange:v,valueManager:Rt}),E=Ho(b),D=vt(),M=Le(),k=S.useMemo(()=>Rt.getInitialReferenceValue({value:O,utils:M,props:r,timezone:b,referenceDate:a,granularity:Pt.month}),[]),F=r,L=Q1(F),N=S.useMemo(()=>M.getMonth(E),[M,E]),U=S.useMemo(()=>O!=null?M.getMonth(O):null,[O,M]),[J,re]=S.useState(()=>U||M.getMonth(k)),[le,ie]=Dt({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),V=ue(ee=>{ie(ee),y&&y(ee)}),Q=S.useCallback(ee=>{const B=M.startOfMonth(u&&M.isAfter(E,h)?E:h),X=M.startOfMonth(c&&M.isBefore(E,p)?E:p),oe=M.startOfMonth(ee);return M.isBefore(oe,B)||M.isAfter(oe,X)?!0:d?d(oe):!1},[c,u,p,h,E,d,M]),G=ue((ee,B)=>{if(m)return;const X=M.setMonth(O??k,B);$(X)}),_=ue(ee=>{Q(M.setMonth(O??k,ee))||(re(ee),V(!0),C&&C(ee))});S.useEffect(()=>{re(ee=>U!==null&&ee!==U?U:ee)},[U]);const z=ue((ee,B)=>{switch(ee.key){case"ArrowUp":_((12+B-3)%12),ee.preventDefault();break;case"ArrowDown":_((12+B+3)%12),ee.preventDefault();break;case"ArrowLeft":_((12+B+(D?1:-1))%12),ee.preventDefault();break;case"ArrowRight":_((12+B+(D?-1:1))%12),ee.preventDefault();break}}),Z=ue((ee,B)=>{_(B)}),te=ue((ee,B)=>{J===B&&V(!1)});return f.jsx(J1,j({ref:n,className:de(L.root,o),ownerState:F,role:"radiogroup","aria-labelledby":T},A,{children:mi(M,O??k).map(ee=>{const B=M.getMonth(ee),X=M.format(ee,"monthShort"),oe=M.format(ee,"month"),ne=B===U,ce=l||Q(ee);return f.jsx(q1,{selected:ne,value:B,onClick:G,onKeyDown:z,autoFocus:le&&B===J,disabled:ce,tabIndex:B===J&&!ce?0:-1,onFocus:Z,onBlur:te,"aria-current":N===B?"date":void 0,"aria-label":oe,monthsPerRow:x,slots:I,slotProps:R,children:X},X)})}))});function tP(e){return ge("MuiPickersYear",e)}const Kr=he("MuiPickersYear",["root","yearButton","selected","disabled"]),nP=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],rP=e=>{const{disabled:t,selected:n,classes:r}=e;return me({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},tP,r)},oP=K("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%"}}]}),sP=K("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Kr.disabled}`]:t.disabled},{[`&.${Kr.selected}`]:t.selected}]})(({theme:e})=>j({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:He.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:He.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Kr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Kr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),iP=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:h,onBlur:v,"aria-current":d,slots:m,slotProps:g}=n,C=ve(n,nP),w=S.useRef(null),y=rP(n);Ue(()=>{r&&w.current?.focus()},[r]);const x=m?.yearButton??sP,P=Pe({elementType:x,externalSlotProps:g?.yearButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:w,type:"button",role:"radio","aria-current":d,"aria-checked":a,onClick:T=>u(T,l),onKeyDown:T=>p(T,l),onFocus:T=>h(T,l),onBlur:T=>v(T,l)},ownerState:n,className:y.yearButton});return f.jsx(oP,j({className:de(y.root,o),ownerState:n},C,{children:f.jsx(x,j({},P))}))});function aP(e){return ge("MuiYearCalendar",e)}he("MuiYearCalendar",["root"]);const lP=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],cP=e=>{const{classes:t}=e;return me({root:["root"]},aP,t)};function uP(e,t){const n=Le(),r=Ar(),o=Fe({props:e,name:t});return j({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate)})}const dP=K("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:qo,maxHeight:lS,boxSizing:"border-box",position:"relative"}),pP=S.forwardRef(function(t,n){const r=uP(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:p,maxDate:h,minDate:v,onChange:d,readOnly:m,shouldDisableYear:g,onYearFocus:C,hasFocus:w,onFocusedViewChange:y,yearsOrder:x="asc",yearsPerRow:P,timezone:T,gridLabelId:I,slots:R,slotProps:A}=r,O=ve(r,lP),{value:$,handleValueChange:b,timezone:E}=$i({name:"YearCalendar",timezone:T,value:i,defaultValue:a,referenceDate:l,onChange:d,valueManager:Rt}),D=Ho(E),M=vt(),k=Le(),F=S.useMemo(()=>Rt.getInitialReferenceValue({value:$,utils:k,props:r,timezone:E,referenceDate:l,granularity:Pt.year}),[]),L=r,N=cP(L),U=S.useMemo(()=>k.getYear(D),[k,D]),J=S.useMemo(()=>$!=null?k.getYear($):null,[$,k]),[re,le]=S.useState(()=>J||k.getYear(F)),[ie,V]=Dt({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),Q=ue(se=>{V(se),y&&y(se)}),G=S.useCallback(se=>{if(p&&k.isBeforeYear(se,D)||u&&k.isAfterYear(se,D)||v&&k.isBeforeYear(se,v)||h&&k.isAfterYear(se,h))return!0;if(!g)return!1;const fe=k.startOfYear(se);return g(fe)},[u,p,h,v,D,g,k]),_=ue((se,fe)=>{if(m)return;const be=k.setYear($??F,fe);b(be)}),z=ue(se=>{G(k.setYear($??F,se))||(le(se),Q(!0),C?.(se))});S.useEffect(()=>{le(se=>J!==null&&se!==J?J:se)},[J]);const Z=x!=="desc"?P*1:P*-1,te=M&&x==="asc"||!M&&x==="desc"?-1:1,ee=ue((se,fe)=>{switch(se.key){case"ArrowUp":z(fe-Z),se.preventDefault();break;case"ArrowDown":z(fe+Z),se.preventDefault();break;case"ArrowLeft":z(fe-te),se.preventDefault();break;case"ArrowRight":z(fe+te),se.preventDefault();break}}),B=ue((se,fe)=>{z(fe)}),X=ue((se,fe)=>{re===fe&&Q(!1)}),oe=S.useRef(null),ne=ke(n,oe);S.useEffect(()=>{if(o||oe.current===null)return;const se=oe.current.querySelector('[tabindex="0"]');if(!se)return;const fe=se.offsetHeight,be=se.offsetTop,we=oe.current.clientHeight,pe=oe.current.scrollTop,qe=be+fe;fe>we||be<pe||(oe.current.scrollTop=qe-we/2-fe/2)},[o]);const ce=k.getYearRange([v,h]);return x==="desc"&&ce.reverse(),f.jsx(dP,j({ref:ne,className:de(N.root,s),ownerState:L,role:"radiogroup","aria-labelledby":I},O,{children:ce.map(se=>{const fe=k.getYear(se),be=fe===J,we=c||G(se);return f.jsx(iP,{selected:be,value:fe,onClick:_,onKeyDown:ee,autoFocus:ie&&fe===re,disabled:we,tabIndex:fe===re&&!we?0:-1,onFocus:B,onBlur:X,"aria-current":U===fe?"date":void 0,yearsPerRow:P,slots:R,slotProps:A,children:k.format(se,"year")},k.format(se,"year"))})}))}),fP=e=>ge("MuiPickersCalendarHeader",e),hP=he("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function mP(e){return ge("MuiPickersArrowSwitcher",e)}he("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const gP=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],yP=["ownerState"],bP=["ownerState"],vP=K("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),xP=K("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Bl=K(Nr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),SP=e=>{const{classes:t}=e;return me({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},mP,t)},wP=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:h,isPreviousDisabled:v,isPreviousHidden:d,onGoToPrevious:m,previousLabel:g,labelId:C}=o,w=ve(o,gP),y=o,x=SP(y),P={isDisabled:c,isHidden:u,goTo:p,label:h},T={isDisabled:v,isHidden:d,goTo:m,label:g},I=a?.previousIconButton??Bl,R=Pe({elementType:I,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"end",onClick:T.goTo},ownerState:j({},y,{hidden:T.isHidden}),className:de(x.button,x.previousIconButton)}),A=a?.nextIconButton??Bl,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:j({},y,{hidden:P.isHidden}),className:de(x.button,x.nextIconButton)}),$=a?.leftArrowIcon??PS,b=Pe({elementType:$,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:y,className:x.leftArrowIcon}),E=ve(b,yP),D=a?.rightArrowIcon??kS,M=Pe({elementType:D,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:y,className:x.rightArrowIcon}),k=ve(M,bP);return f.jsxs(vP,j({ref:n,className:de(x.root,i),ownerState:y},w,{children:[f.jsx(I,j({},R,{children:r?f.jsx(D,j({},k)):f.jsx($,j({},E))})),s?f.jsx(Qt,{variant:"subtitle1",component:"span",id:C,children:s}):f.jsx(xP,{className:x.spacer,ownerState:y}),f.jsx(A,j({},O,{children:r?f.jsx($,j({},E)):f.jsx(D,j({},k))}))]}))});function CP(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 PP(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 kP=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],TP=["ownerState"],MP=e=>{const{classes:t}=e;return me({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},fP,t)},DP=K("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}),RP=K("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>j({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),IP=K("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),EP=K(Nr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${hP.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),$P=K(CS,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),OP=S.forwardRef(function(t,n){const r=Bt(),o=Le(),s=Fe({props:t,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:a,currentMonth:l,disabled:c,disableFuture:u,disablePast:p,maxDate:h,minDate:v,onMonthChange:d,onViewChange:m,view:g,reduceAnimations:C,views:w,labelId:y,className:x,timezone:P,format:T=`${o.formats.month} ${o.formats.year}`}=s,I=ve(s,kP),R=s,A=MP(s),O=i?.switchViewButton??EP,$=Pe({elementType:O,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(g)},ownerState:R,className:A.switchViewButton}),b=i?.switchViewIcon??$P,E=Pe({elementType:b,externalSlotProps:a?.switchViewIcon,ownerState:R,className:A.switchViewIcon}),D=ve(E,TP),M=()=>d(o.addMonths(l,1),"left"),k=()=>d(o.addMonths(l,-1),"right"),F=CP(l,{disableFuture:u,maxDate:h,timezone:P}),L=PP(l,{disablePast:p,minDate:v,timezone:P}),N=()=>{if(!(w.length===1||!m||c))if(w.length===2)m(w.find(J=>J!==g)||w[0]);else{const J=w.indexOf(g)!==0?0:1;m(w[J])}};if(w.length===1&&w[0]==="year")return null;const U=o.formatByString(l,T);return f.jsxs(DP,j({},I,{ownerState:R,className:de(A.root,x),ref:n,children:[f.jsxs(RP,{role:"presentation",onClick:N,ownerState:R,"aria-live":"polite",className:A.labelContainer,children:[f.jsx(Rd,{reduceAnimations:C,transKey:U,children:f.jsx(IP,{id:y,ownerState:R,className:A.label,children:U})}),w.length>1&&!c&&f.jsx(O,j({},$,{children:f.jsx(b,j({},D))}))]}),f.jsx(fn,{in:g==="day",appear:!C,enter:!C,children:f.jsx(wP,{slots:i,slotProps:a,onGoToPrevious:k,isPreviousDisabled:L,previousLabel:r.previousMonth,onGoToNext:M,isNextDisabled:F,nextLabel:r.nextMonth})})]}))}),AP=K("div")({overflow:"hidden",width:qo,maxHeight:Oi,display:"flex",flexDirection:"column",margin:"0 auto"}),FP=e=>ge("MuiDateCalendar",e);he("MuiDateCalendar",["root","viewTransitionContainer"]);const LP=["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"],NP=e=>{const{classes:t}=e;return me({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},FP,t)};function jP(e,t){const n=Le(),r=Ar(),o=ed(),s=Fe({props:e,name:t});return j({},s,{loading:s.loading??!1,disablePast:s.disablePast??!1,disableFuture:s.disableFuture??!1,openTo:s.openTo??"day",views:s.views??["year","day"],reduceAnimations:s.reduceAnimations??o,renderLoading:s.renderLoading??(()=>f.jsx("span",{children:"..."})),minDate:lt(n,s.minDate,r.minDate),maxDate:lt(n,s.maxDate,r.maxDate)})}const BP=K(AP,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Oi}),VP=K(Rd,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),_P=S.forwardRef(function(t,n){const r=Le(),o=xt(),s=jP(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:p,disablePast:h,onChange:v,onYearChange:d,onMonthChange:m,reduceAnimations:g,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:y,view:x,views:P,openTo:T,className:I,disabled:R,readOnly:A,minDate:O,maxDate:$,disableHighlightToday:b,focusedView:E,onFocusedViewChange:D,showDaysOutsideCurrentMonth:M,fixedWeekNumber:k,dayOfWeekFormatter:F,slots:L,slotProps:N,loading:U,renderLoading:J,displayWeekNumber:re,yearsOrder:le,yearsPerRow:ie,monthsPerRow:V,timezone:Q}=s,G=ve(s,LP),{value:_,handleValueChange:z,timezone:Z}=$i({name:"DateCalendar",timezone:Q,value:l,defaultValue:c,referenceDate:u,onChange:v,valueManager:Rt}),{view:te,setView:ee,focusedView:B,setFocusedView:X,goToNextView:oe,setValueAndGoToNextView:ne}=td({view:x,views:P,openTo:T,onChange:z,onViewChange:a,autoFocus:i,focusedView:E,onFocusedViewChange:D}),{referenceDate:ce,calendarState:se,changeFocusedDay:fe,changeMonth:be,handleChangeMonth:we,isDateDisabled:pe,onMonthSwitchingAnimationEnd:qe}=p1({value:_,referenceDate:u,reduceAnimations:g,onMonthChange:m,minDate:O,maxDate:$,shouldDisableDate:C,disablePast:h,disableFuture:p,timezone:Z}),Be=R&&_||O,ht=R&&_||$,mt=`${o}-grid-label`,nt=B!==null,rt=L?.calendarHeader??OP,Vt=Pe({elementType:rt,externalSlotProps:N?.calendarHeader,additionalProps:{views:P,view:te,currentMonth:se.currentMonth,onViewChange:ee,onMonthChange:(Ae,wt)=>we({newMonth:Ae,direction:wt}),minDate:Be,maxDate:ht,disabled:R,disablePast:h,disableFuture:p,reduceAnimations:g,timezone:Z,labelId:mt},ownerState:s}),gt=ue(Ae=>{const wt=r.startOfMonth(Ae),Xn=r.endOfMonth(Ae),Ht=pe(Ae)?hr({utils:r,date:Ae,minDate:r.isBefore(O,wt)?wt:O,maxDate:r.isAfter($,Xn)?Xn:$,disablePast:h,disableFuture:p,isDateDisabled:pe,timezone:Z}):Ae;Ht?(ne(Ht,"finish"),m?.(wt)):(oe(),be(wt)),fe(Ht,!0)}),Oe=ue(Ae=>{const wt=r.startOfYear(Ae),Xn=r.endOfYear(Ae),Ht=pe(Ae)?hr({utils:r,date:Ae,minDate:r.isBefore(O,wt)?wt:O,maxDate:r.isAfter($,Xn)?Xn:$,disablePast:h,disableFuture:p,isDateDisabled:pe,timezone:Z}):Ae;Ht?(ne(Ht,"finish"),d?.(Ht)):(oe(),be(wt)),fe(Ht,!0)}),_t=ue(Ae=>z(Ae&&yo(r,Ae,_??ce),"finish",te));S.useEffect(()=>{_!=null&&r.isValid(_)&&be(_)},[_]);const zt=s,Kn=NP(zt),ye={disablePast:h,disableFuture:p,maxDate:$,minDate:O},Te={disableHighlightToday:b,readOnly:A,disabled:R,timezone:Z,gridLabelId:mt,slots:L,slotProps:N},ze=S.useRef(te);S.useEffect(()=>{ze.current!==te&&(B===ze.current&&X(te,!0),ze.current=te)},[B,X,te]);const Wt=S.useMemo(()=>[_],[_]);return f.jsxs(BP,j({ref:n,className:de(Kn.root,I),ownerState:zt},G,{children:[f.jsx(rt,j({},Vt,{slots:L,slotProps:N})),f.jsx(VP,{reduceAnimations:g,className:Kn.viewTransitionContainer,transKey:te,ownerState:zt,children:f.jsxs("div",{children:[te==="year"&&f.jsx(pP,j({},ye,Te,{value:_,onChange:Oe,shouldDisableYear:y,hasFocus:nt,onFocusedViewChange:Ae=>X("year",Ae),yearsOrder:le,yearsPerRow:ie,referenceDate:ce})),te==="month"&&f.jsx(eP,j({},ye,Te,{hasFocus:nt,className:I,value:_,onChange:gt,shouldDisableMonth:w,onFocusedViewChange:Ae=>X("month",Ae),monthsPerRow:V,referenceDate:ce})),te==="day"&&f.jsx(z1,j({},se,ye,Te,{onMonthSwitchingAnimationEnd:qe,onFocusedDayChange:fe,reduceAnimations:g,selectedDays:Wt,onSelectedDaysChange:_t,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:y,hasFocus:nt,onFocusedViewChange:Ae=>X("day",Ae),showDaysOutsideCurrentMonth:M,fixedWeekNumber:k,dayOfWeekFormatter:F,displayWeekNumber:re,loading:U,renderLoading:J}))]})})]}))}),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:h,minDate:v,maxDate:d,shouldDisableDate:m,shouldDisableMonth:g,shouldDisableYear:C,reduceAnimations:w,onMonthChange:y,monthsPerRow:x,onYearChange:P,yearsOrder:T,yearsPerRow:I,slots:R,slotProps:A,loading:O,renderLoading:$,disableHighlightToday:b,readOnly:E,disabled:D,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:k,sx:F,autoFocus:L,fixedWeekNumber:N,displayWeekNumber:U,timezone:J})=>f.jsx(_P,{view:e,onViewChange:t,views:n.filter(qa),focusedView:r&&qa(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:p,disablePast:h,minDate:v,maxDate:d,shouldDisableDate:m,shouldDisableMonth:g,shouldDisableYear:C,reduceAnimations:w,onMonthChange:y,monthsPerRow:x,onYearChange:P,yearsOrder:T,yearsPerRow:I,slots:R,slotProps:A,loading:O,renderLoading:$,disableHighlightToday:b,readOnly:E,disabled:D,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:k,sx:F,autoFocus:L,fixedWeekNumber:N,displayWeekNumber:U,timezone:J}),Od=S.forwardRef(function(t,n){const r=Bt(),o=Le(),s=Fu(t,"MuiDesktopDatePicker"),i=j({day:An,month:An,year:An},s.viewRenderers),a=j({},s,{viewRenderers:i,format:gi(o,s,!1),yearsPerRow:s.yearsPerRow??4,slots:j({openPickerIcon:TS,field:Md},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},zo(s.slotProps?.field,c),Nu(s),{ref:n}),toolbar:j({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=wS({props:a,valueManager:Rt,valueType:"date",getOpenDialogAriaText:Ou({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Fr});return l()});Od.propTypes={autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,dayOfWeekFormatter:Y.func,defaultValue:Y.object,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,enableAccessibleFieldDOMStructure:Y.any,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:wu,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.object,minDate:Y.object,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","month","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.object,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number]),shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.object,view:Y.oneOf(["day","month","year"]),viewRenderers:Y.shape({day:Y.func,month:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","month","year"]).isRequired),yearsOrder:Y.oneOf(["asc","desc"]),yearsPerRow:Y.oneOf([3,4])};function zP(e){return ge("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);const WP=he("MuiDialogTitle",["root"]),HP=e=>{const{classes:t,dividers:n}=e;return me({root:["root",n&&"dividers"]},zP,t)},UP=K("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:{[`.${WP.root} + &`]:{paddingTop:0}}}]}))),YP=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...i}=r,a={...r,dividers:s},l=HP(a);return f.jsx(UP,{className:de(l.root,o),ownerState:a,ref:n,...i})});function GP(e){return ge("MuiDialog",e)}const vr=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),qP=S.createContext({}),KP=K(pd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),XP=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${ae(n)}`],paper:["paper",`paperScroll${ae(n)}`,`paperWidth${ae(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return me(i,GP,t)},QP=K(fd,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),ZP=K("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ae(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"}}}]}),JP=K(jr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ae(n.scroll)}`],t[`paperWidth${ae(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%"}}}]}))),ek=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:h,disableEscapeKeyDown:v=!1,fullScreen:d=!1,fullWidth:m=!1,maxWidth:g="sm",onClick:C,onClose:w,open:y,PaperComponent:x=jr,PaperProps:P={},scroll:T="paper",slots:I={},slotProps:R={},TransitionComponent:A=fn,transitionDuration:O=s,TransitionProps:$,...b}=r,E={...r,disableEscapeKeyDown:v,fullScreen:d,fullWidth:m,maxWidth:g,scroll:T},D=XP(E),M=S.useRef(),k=B=>{M.current=B.target===B.currentTarget},F=B=>{C&&C(B),M.current&&(M.current=null,w&&w(B,"backdropClick"))},L=xt(a),N=S.useMemo(()=>({titleId:L}),[L]),U={transition:A,...I},J={transition:$,paper:P,backdrop:u,...R},re={slots:U,slotProps:J},[le,ie]=je("root",{elementType:QP,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:E,className:de(D.root,h),ref:n}),[V,Q]=je("backdrop",{elementType:KP,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:E}),[G,_]=je("paper",{elementType:JP,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:E,className:de(D.paper,P.className)}),[z,Z]=je("container",{elementType:ZP,externalForwardedProps:re,ownerState:E,className:D.container}),[te,ee]=je("transition",{elementType:fn,externalForwardedProps:re,ownerState:E,additionalProps:{appear:!0,in:y,timeout:O,role:"presentation"}});return f.jsx(le,{closeAfterTransition:!0,slots:{backdrop:V},slotProps:{backdrop:{transitionDuration:O,as:c,...Q}},disableEscapeKeyDown:v,onClose:w,open:y,onClick:F,...ie,...b,children:f.jsx(te,{...ee,children:f.jsx(z,{onMouseDown:k,...Z,children:f.jsx(G,{as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":L,"aria-modal":l,..._,children:f.jsx(qP.Provider,{value:N,children:p})})})})})}),tk=K(ek)({[`& .${vr.container}`]:{outline:0},[`& .${vr.paper}`]:{outline:0,minWidth:qo}}),nk=K(YP)({"&:first-of-type":{padding:0}});function rk(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:s}=e,i=o?.dialog??tk,a=o?.mobileTransition??fn;return f.jsx(i,j({open:r,onClose:n},s?.dialog,{TransitionComponent:a,TransitionProps:s?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:s?.mobilePaper,children:f.jsx(nk,{children:t})}))}const ok=["props","getOpenDialogAriaText"],sk=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,ok);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:h,timezone:v,name:d,label:m,inputRef:g,readOnly:C,disabled:w,localeText:y}=t,x=S.useRef(null),P=xt(),T=s?.toolbar?.hidden??!1,{open:I,actions:R,layoutProps:A,renderCurrentView:O,fieldProps:$,contextValue:b}=nd(j({},r,{props:t,fieldRef:x,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),E=o.field,D=Pe({elementType:E,externalSlotProps:s?.field,additionalProps:j({},$,T&&{id:P},!(w||C)&&{onClick:R.onOpen,onKeyDown:lx(R.onOpen)},{readOnly:C??!0,disabled:w,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:h,timezone:v,label:m,name:d},g?{inputRef:g}:{}),ownerState:t});D.inputProps=j({},D.inputProps,{"aria-label":n($.value)});const M=j({textField:o.textField},D.slots),k=o.layout??ld;let F=P;T&&(m?F=`${P}-label`:F=void 0);const L=j({},s,{toolbar:j({},s?.toolbar,{titleId:P}),mobilePaper:j({"aria-labelledby":F},s?.mobilePaper)}),N=ke(x,D.unstableFieldRef);return{renderPicker:()=>f.jsxs(cd,{contextValue:b,localeText:y,children:[f.jsx(E,j({},D,{slots:M,slotProps:L,unstableFieldRef:N})),f.jsx(rk,j({},R,{open:I,slots:o,slotProps:L,children:f.jsx(k,j({},A,L?.layout,{slots:o,slotProps:L,children:O()}))}))]})}},Ad=S.forwardRef(function(t,n){const r=Bt(),o=Le(),s=Fu(t,"MuiMobileDatePicker"),i=j({day:An,month:An,year:An},s.viewRenderers),a=j({},s,{viewRenderers:i,format:gi(o,s,!1),slots:j({field:Md},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},zo(s.slotProps?.field,c),Nu(s),{ref:n}),toolbar:j({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=sk({props:a,valueManager:Rt,valueType:"date",getOpenDialogAriaText:Ou({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Fr});return l()});Ad.propTypes={autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,dayOfWeekFormatter:Y.func,defaultValue:Y.object,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,enableAccessibleFieldDOMStructure:Y.any,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:wu,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.object,minDate:Y.object,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","month","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.object,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number]),shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.object,view:Y.oneOf(["day","month","year"]),viewRenderers:Y.shape({day:Y.func,month:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","month","year"]).isRequired),yearsOrder:Y.oneOf(["asc","desc"]),yearsPerRow:Y.oneOf([3,4])};const ik=["desktopModeMediaQuery"],Fd=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=cx}=r,s=ve(r,ik);return Su(o,{defaultMatches:!0})?f.jsx(Od,j({ref:n},s)):f.jsx(Ad,j({ref:n},s))}),Ld=400;function ak(e,t){const[n,r]=W.useState(e);return W.useEffect(()=>{const o=setTimeout(()=>r(e),t);return()=>clearTimeout(o)},[e,t]),n}function Nd(e,t,{same:n=Object.is,unset:r=!1}={}){const[o,s]=W.useState(e),[i,a]=W.useState(!1),l=W.useRef(!1),c=W.useRef(null),u=W.useRef(!1),p=W.useRef({draft:o,committed:e,focused:i,unset:r,commit:t,same:n});W.useEffect(()=>{p.current={draft:o,committed:e,focused:i,unset:r,commit:t,same:n}});const h=()=>{const y=p.current,x=c.current?c.current.value:y.committed;return l.current&&(y.unset||!y.same(y.draft,x))},v=()=>{const y=p.current;c.current={value:y.draft},y.commit(y.draft),y.unset&&y.same(y.draft,y.committed)&&(l.current=!1)},d=()=>{h()&&v()},[m,g]=W.useState(0),C=W.useMemo(()=>({draft:o,gen:m}),[o,m]),w=ak(C,Ld);return W.useEffect(()=>{const y=p.current;y.same(w.draft,y.draft)&&h()&&!u.current&&v()},[w]),W.useEffect(()=>()=>d(),[]),W.useEffect(()=>{if(c.current&&n(c.current.value,e)&&(c.current=null),n(o,e)){!r&&!c.current&&(l.current=!1);return}(!i||!l.current)&&s(e)},[e,i,o,r,n]),{draft:o,change:y=>{l.current=!0,s(y),!p.current.focused&&!n(y,e)&&t(y)},reset:y=>{l.current=!1,c.current=null,s(y)},bind:{onFocus:()=>a(!0),onBlur:()=>{a(!1),d(),c.current=null},onKeyDown:y=>{y.key==="Enter"&&!y.nativeEvent.isComposing&&d()},onCompositionStart:()=>{u.current=!0},onCompositionEnd:()=>{u.current=!1,g(y=>y+1)}}}}const lk=250,ck=300*1e3;function uk(e,t){const n=W.useContext(Hn.QueryClientContext),r=t.trim(),[o,s]=W.useState("");W.useEffect(()=>{const p=setTimeout(()=>s(r),lk);return()=>clearTimeout(p)},[r]);const[i,a]=W.useState(),l=e?JSON.stringify(e.key):void 0;W.useEffect(()=>{if(!e||!n||o==="")return;let p=!0;return n.fetchQuery({queryKey:[...e.key,o],queryFn:({signal:h})=>e.run(o,h),staleTime:ck}).then(h=>{p&&a({key:l,text:o,page:h})}).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 Ui(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"?dk(n):n}function dk(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(si);const Vl=14,pk=42;function fk(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 Yi({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=fk(e),h=Ui(u,e.default),v=h!==void 0?`Default: ${h===""?"(empty)":h}`:void 0,d=p||v?f.jsxs(f.Fragment,{children:[p,p&&v?f.jsx("br",{}):null,v]}):void 0,m=u==="string"||Kt(u)==="string",g=!Gt(u)||typeof t!="string"||Qc(t),C=V=>f.jsx(H.TextField,{label:l,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:f.jsxs(f.Fragment,{children:[`Not a ${V}. Clear it to pick one.`,d?f.jsx("br",{}):null,d]}),slotProps:{input:{endAdornment:f.jsx(jd,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),w=Gt(u),y=e.control==="multiselect"&&w,x=Gt(u),P=e.control==="select"||e.control==="multiselect",T=P?x?typeof t=="string"?Xc(t):[]:typeof t=="string"&&t!==""?[t]:[]:[],[I,R]=W.useState(""),[A,O]=W.useState(null),$=W.useRef(null),b=uk(P?a:void 0,I);if(P&&m&&g&&!(!y&&T.length>1)){const V=G=>{const _=x?ii(G):void 0;if(G.length===0||_===""){n(null);return}n(x?_:G[0])},Q=vk(b,i,a);return f.jsx(Bd.Provider,{value:Q,children:f.jsx(H.Autocomplete,{multiple:y,disableCloseOnSelect:y,freeSolo:!0,forcePopupIcon:!0,autoSelect:!y,options:b.page?.values??r??[],...b.page?{filterOptions:G=>G}:{},onInputChange:(G,_,z)=>R(z==="input"?_:""),loading:o||b.searching,loadingText:b.searching?"Searching…":"Loading…",noOptionsText:s?"Options unavailable":"No matching values",slots:{paper:bk},value:y?T:T[0]??null,onChange:(G,_)=>V(_===null?[]:Array.isArray(_)?_:[_]),renderInput:G=>f.jsx(H.TextField,{...G,label:l,size:"small",placeholder:T.length!==0?void 0:t===""?"All":h??"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:{...G.InputProps,endAdornment:f.jsxs(f.Fragment,{children:[o&&f.jsx(H.CircularProgress,{size:16}),G.InputProps.endAdornment]})},htmlInput:{...G.inputProps,onBlur:_=>{if(G.inputProps.onBlur?.(_),!y)return;const z=_.target.value.trim();z!==""&&!T.includes(z)&&V([...T,z])}}}}),fullWidth:!0})})}const E=Gt(u)&&Kt(u)==="number",{rangeMin:D,rangeMax:M}=e,k=E&&typeof t=="string"?Jc(t):void 0,F=E&&typeof t=="string"?eu(t):void 0;if((E||u==="number")&&D!==void 0&&M!==void 0&&(!E||t===void 0||t===null||t===""||k!==void 0||F!==void 0)){const V=F??(k!==void 0?[k,M]:void 0),Q=E?V?.[0]:typeof t=="number"?t:void 0;if(Q===void 0&&t!==void 0&&t!==null&&t!=="")return C("number");const G=A!==null,_=G?Array.isArray(A)?A[0]:A:Q??D,z=Array.isArray(A)?[A[0],A[1]]:V??[D,M],Z=z[1]>=M?`≥ ${z[0]}`:`${z[0]} to ${z[1]}`,te=E&&t===""&&!G,ee=Q!==void 0||te||G;return f.jsxs(H.FormControl,{fullWidth:!0,children:[f.jsxs(H.Box,{component:"fieldset",sx:B=>({m:0,minWidth:0,border:c.cardBorder,borderRadius:2,px:`${Vl}px`,pt:0,pb:.75,minHeight:pk,transition:"border-color 120ms ease-in","&:hover":{borderColor:B.palette.text.secondary},"&:focus-within":{borderColor:B.palette.text.primary}}),children:[f.jsx(H.Typography,{component:"legend",variant:"caption",color:"text.secondary",sx:{px:.5,lineHeight:1},children:l}),f.jsxs(H.Stack,{direction:"row",alignItems:"center",spacing:1,children:[f.jsx(H.Typography,{variant:"body2",sx:{fontWeight:"fontWeightMedium"},children:ee?te?"Any":E?Z:String(_):E?"Any":h??"Unset"}),ee&&f.jsx(Mr,{onClear:()=>n(null),sx:{p:0}})]}),f.jsx(H.Slider,{size:"small",min:D,max:M,value:E?z:_,disableSwap:E,valueLabelDisplay:"auto","aria-label":E?void 0:l,getAriaLabel:E?B=>B===0?`${l} from`:`${l} to`:void 0,sx:{py:0,mt:.5},onChange:(B,X)=>{$.current=X,O(X)},onChangeCommitted:()=>{const B=$.current;if($.current=null,O(null),B!==null){if(E){const[X,oe]=Array.isArray(B)?[B[0],B[1]]:[B,B];if(X<=D&&oe>=M){n(null);return}n(oe>=M?Kg(X):Xg(X,oe));return}n(Array.isArray(B)?B[0]:B)}}}),f.jsxs(H.Stack,{direction:"row",justifyContent:"space-between",children:[f.jsx(H.Typography,{variant:"caption",color:"text.secondary",children:D}),f.jsx(H.Typography,{variant:"caption",color:"text.secondary",children:M})]})]}),d&&f.jsx(H.FormHelperText,{sx:{mx:`${Vl}px`},children:d})]})}const N=Gt(u)?Kt(u):void 0,U=N==="date"||N==="timestamp"||N==="timestamptz",J=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),re=t==null||J;if(U&&!J){const V=gk(t);if(V!==void 0)return f.jsx(yk,{label:l,state:V,onChange:n,helperNode:d,defaultDisplay:h})}if(U&&re){const V=J?Re.utc(t):null;return f.jsx(Co,{label:l,committed:V?.isValid()?V:null,toValue:Q=>Q.format("YYYY-MM-DD"),onChange:n,helperText:d})}if(Kt(u)==="boolean"){const V=typeof t=="string"?qg(t):void 0;if(t==null||t===""||V!==void 0)return f.jsx(mk,{label:l,picked:V,emptyOverride:t==="",onChange:n,helperNode:d,defaultDisplay:h})}if(u==="boolean"){const V=typeof t=="boolean";if(!V&&t!==void 0&&t!==null)return C("true or false");const Q=e.default?.trim()==="true",G=V?t:Q;return f.jsxs(H.FormControl,{children:[f.jsxs(H.Stack,{direction:"row",alignItems:"center",children:[f.jsx(H.FormControlLabel,{control:f.jsx(H.Checkbox,{checked:G,onChange:_=>n(_.target.checked)}),label:l}),V&&f.jsx(Mr,{onClear:()=>n(null),edge:"end"})]}),d&&f.jsx(H.FormHelperText,{children:d})]})}if(u==="number"){const V=t!=null;return V&&t!==""&&typeof t!="number"?C("number"):f.jsx(_l,{label:l,type:"number",committed:typeof t=="number"?String(t):"",onCommit:Q=>n(Q===""?null:Number(Q)),placeholder:h,helperText:d,isOverridden:V,onClear:()=>n(null)})}if(u==="date"||u==="timestamp"||u==="timestamptz"){const V=t instanceof Date?t:typeof t=="string"?(_=>_ instanceof Date?_:null)(pu(u,t)):null,Q=V?Re.utc(V):null;return t!=null&&t!==""&&V===null?C("date"):f.jsx(Co,{label:l,committed:Q,toValue:_=>ny(_,V??void 0),onChange:n,helperText:d})}const le=typeof t=="string"?t:"",ie=t!=null;return f.jsx(_l,{label:l,committed:le,onCommit:n,placeholder:ie?void 0:h??(u.startsWith("filter<")?u:void 0),helperText:d,isOverridden:ie,emptyOverrides:!0,onClear:()=>n(null)})}function _l({label:e,type:t,committed:n,onCommit:r,placeholder:o,helperText:s,isOverridden:i,emptyOverrides:a=!1,onClear:l}){const{draft:c,change:u,reset:p,bind:h}=Nd(n,r,{unset:a&&!i});return f.jsx(H.TextField,{label:e,type:t,value:c,onChange:v=>u(v.target.value),placeholder:o,helperText:s,slotProps:{input:{endAdornment:i&&f.jsx(jd,{onClear:()=>{p(""),l()}})}},...h,fullWidth:!0,size:"small"})}const hk=(e,t)=>e===null||t===null?e===t:e.year()===t.year()&&e.month()===t.month()&&e.date()===t.date();function Co({label:e,committed:t,toValue:n,onChange:r,helperText:o,minDate:s}){const{draft:i,change:a,reset:l,bind:c}=Nd(t,u=>{u===null?r(null):u.isValid()&&r(n(u))},{same:hk});return f.jsx(vi,{dateAdapter:yu,children:f.jsx(Fd,{label:e,value:i,minDate:s,onChange:a,slotProps:{textField:{fullWidth:!0,size:"small",helperText:o,...c},field:{clearable:!0,onClear:()=>{l(null),r(null)}},clearButton:{onMouseDown:u=>u.preventDefault()}}})})}function Mr({onClear:e,edge:t,sx:n}){return f.jsx(H.IconButton,{size:"small","aria-label":"Clear value",onClick:e,edge:t,sx:[{minWidth:24,minHeight:24},...Array.isArray(n)?n:[n]],children:f.jsx(xy,{fontSize:"small"})})}function jd({onClear:e}){return f.jsx(H.InputAdornment,{position:"end",onMouseDown:t=>t.preventDefault(),children:f.jsx(Mr,{onClear:e,edge:"end"})})}const Xr="__any__";function mk({label:e,picked:t,emptyOverride:n,onChange:r,helperNode:o,defaultDisplay:s}){const i=t??(n?Xr:""),a=i!=="";return f.jsx(H.Box,{"data-testid":"boolean-filter",children:f.jsxs(H.TextField,{select:!0,label:e,value:i,size:"small",fullWidth:!0,helperText:o,slotProps:{select:{displayEmpty:!0,renderValue:l=>l==="true"||l==="false"?l:l===Xr?"Any":s||"Any"},input:{endAdornment:a?f.jsx(Mr,{onClear:()=>r(null),sx:{mr:2}}):void 0}},onChange:l=>{l.target.value!==Xr&&r(l.target.value)},children:[n&&f.jsx(H.MenuItem,{value:Xr,children:"Any"}),f.jsx(H.MenuItem,{value:"true",children:"true"}),f.jsx(H.MenuItem,{value:"false",children:"false"})]})})}function gk(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=tu(e);if(t!==void 0)return{kind:"preset",key:t};const n=nu(e);if(n!==void 0)return{kind:"days",...n}}const Qr="__custom__",gs="__any__";function yk({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]=W.useState(t.kind==="days"),[l,c]=W.useState(t.kind==="days"?{from:t.firstDay,to:t.lastDay}:{});W.useEffect(()=>{t.kind==="days"?(a(!0),c({from:t.firstDay,to:t.lastDay})):t.kind!=="unset"&&a(!1)},[s]);const u=t.kind!=="unset",p=i?Qr:t.kind==="preset"?t.key:t.kind==="any"?gs:"",h=d=>{c(d),d.from&&d.to&&!Re.utc(d.to).isBefore(Re.utc(d.from))&&n(Jg(d.from,d.to))},v=d=>{const m=d?Re.utc(d):null;return m?.isValid()?m:null};return f.jsxs(H.Stack,{direction:"row",spacing:1,"data-testid":"time-range",children:[f.jsxs(H.TextField,{select:!0,label:e,value:p,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:d=>{if(d===Qr)return"Custom range";if(d===gs)return"Any time";const m=wr.find(g=>g.key===d);return m?m.label:o??"Any time"}},input:{endAdornment:u?f.jsx(Mr,{onClear:()=>{a(!1),c({}),n(null)},sx:{mr:2}}):void 0}},onChange:d=>{const m=d.target.value;if(m===Qr){a(!0);return}a(!1);const g=Qg(m);g!==void 0&&n(g)},children:[t.kind==="any"&&f.jsx(H.MenuItem,{value:gs,children:"Any time"}),wr.map(d=>f.jsx(H.MenuItem,{value:d.key,children:d.label},d.key)),f.jsx(H.MenuItem,{value:Qr,children:"Custom range"})]}),i&&f.jsxs(f.Fragment,{children:[f.jsx(Co,{label:"From",committed:v(l.from),toValue:d=>d.format("YYYY-MM-DD"),onChange:d=>h({...l,from:d===null?void 0:String(d)})}),f.jsx(Co,{label:"To",committed:v(l.to),minDate:v(l.from)??void 0,toValue:d=>d.format("YYYY-MM-DD"),onChange:d=>h({...l,to:d===null?void 0:String(d)})})]})]})}const Bd=W.createContext(void 0);function bk({children:e,...t}){const n=W.useContext(Bd);return f.jsxs(H.Paper,{...t,children:[e,n&&f.jsx(H.Box,{role:"note",sx:{px:2,py:1,borderTop:1,borderColor:"divider",color:"text.secondary",typography:"caption"},children:n})]})}const Zr=e=>e.toLocaleString("en-US");function vk(e,t,n){if(e.active)return e.searching?"Searching all values…":e.failed?`Could not search all values. Showing matches in the first ${Zr(un)}.`:e.page?.truncated?`Showing the first ${Zr(di)} matches. Keep typing to narrow them.`:void 0;if(t)return n?`Showing the first ${Zr(un)} values. Type to search them all.`:`Showing the first ${Zr(un)} values. A value not listed can still be typed.`}const Vd=W.createContext(void 0),qn=()=>W.useContext(Vd),Rn="remove-badge",_d={[`& .${Rn}`]:{opacity:0},[`&:hover .${Rn}, &:focus-within .${Rn}`]:{opacity:1},"@media (hover: none)":{[`& .${Rn}`]:{opacity:1}}};function zd({label:e,onRemove:t,disabledReason:n,inset:r=0}){const{theme:o}=Se.usePublisherTheme(),s=n!==void 0,i=f.jsx(H.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 ${$r}`,...Or,"&:hover":{bgcolor:a.palette.background.paper,color:s?a.palette.text.secondary:a.palette.text.primary,borderColor:ei(o.cardBorder,o.tileTitle)}}),children:f.jsx(Bo,{sx:{fontSize:12}})});return s?f.jsx(H.Tooltip,{title:n,children:i}):i}const Gi=e=>e.required===!0,xk=(e,t)=>e==null||e===""&&!du(t);function Sk(e,t,n){return e.filter(r=>r.name!==void 0&&Gi(r)&&xk(t.get(r.name),r.type)&&(n?.[r.name]===void 0||n[r.name]===null))}function wk(e,t){if(!t||e.length===0)return[];const n=new Set(t);return e.filter(r=>r.name&&n.has(r.name))}const Wd=e=>e.label??e.name??"";function Hd(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`}function Ck(e){const t=e.map(Wd);return`Pick a value for ${Hd(t)} to see this report.`}function Pk(e){return`Waiting for ${Hd(e.map(Wd))}.`}const js=28,kk=/^\d{4}-\d{2}-\d{2}$/,Ud=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function ys(e){if(!kk.test(e))return e;const t=new Date(`${e}T00:00:00Z`);return Number.isNaN(t.getTime())?e:Ud.format(t)}function Tk(e){if(e.length===0)return"";const t=e.join(", ");return t.length<=js||e.length===1?Po(t):`${Po(e[0]??"")} +${e.length-1}`}function Po(e){return e.length>js?`${e.slice(0,js-1)}…`:e}function Mk(e){if(Gi(e))return"Required";const t=e.type??"string",n=Ui(t,e.default);if(n!==void 0&&n!=="")return Yd(t,n);const r=Kt(t)??t;return e.control==="select"||e.control==="multiselect"||r==="string"?"All":"Any"}function Yd(e,t){if(!Gt(e))return Po(ys(t));const n=Kt(e);if(n==="string"&&Qc(t))return Tk(Xc(t));if(n==="number"){const r=eu(t);if(r)return`${r[0]}–${r[1]}`;const o=Jc(t);if(o!==void 0)return`≥ ${o}`}if(n==="date"||n==="timestamp"||n==="timestamptz"){const r=tu(t);if(r)return wr.find(s=>s.key===r)?.label??t;const o=nu(t);if(o)return`${ys(o.firstDay)} – ${ys(o.lastDay)}`}return Po(t)}function Dk(e,t){return t==null?Mk(e):t instanceof Date?Number.isNaN(t.getTime())?"":Ud.format(t):typeof t=="boolean"?t?"Yes":"No":typeof t=="number"?String(t):t===""?"(empty)":Yd(e.type??"string",t)}function Rk(e){const{given:t,value:n,onChange:r}=e,{theme:o}=Se.usePublisherTheme(),s=o.ui,i=qn(),[a,l]=W.useState(null),c=t.name??"",u=t.label??c,p=n!=null,h=Dk(t,n),v=a!==null,d=i?.stateOf(c),m=d?.problem,g=d?.fixed,C=f.jsxs(Gd,{name:c,set:p,open:v,problem:m,fixed:g!==void 0,required:!p&&Gi(t),children:[f.jsxs(H.ButtonBase,{"aria-haspopup":"dialog","aria-expanded":v,"aria-label":`${u}: ${h}`,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(H.Box,{component:"span",sx:w=>({color:p?o.accent:w.palette.text.secondary,whiteSpace:"nowrap"}),children:u}),f.jsx(H.Box,{component:"span",sx:{fontWeight:s.type.control.fontWeight,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:h}),!p&&f.jsx(kc,{"aria-hidden":!0,sx:w=>({fontSize:16,color:w.palette.text.secondary,transform:v?"rotate(180deg)":"none"})})]}),p&&f.jsx(H.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:[m?f.jsx(H.Tooltip,{title:m,children:C}):C,f.jsxs(H.Popover,{className:Ot.filterPopover,open:v,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(Yi,{...e}),i&&f.jsxs(H.Box,{sx:w=>({mt:1.5,pt:1,borderTop:`1px solid ${w.palette.divider}`,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:.5}),children:[m&&f.jsx(H.Typography,{sx:{...s.type.caption,color:"warning.main"},children:m}),g!==void 0&&f.jsx(H.Typography,{sx:w=>({...s.type.caption,color:w.palette.text.secondary}),children:g}),f.jsx($k,{name:c,type:t.type,text:Ik(n,t.type)}),g===void 0?f.jsx(H.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(H.Button,{size:"small",onClick:()=>{l(null),d.openModel?.()},sx:{px:.75,minWidth:0,...s.type.control},children:"Open the model"})]})]})]})}function Ik(e,t){if(e!=null)return cu(e,t)}function Ek(e,t){return e===void 0||!t?.startsWith("filter<")?e:/^f(['"])([\s\S]*)\1$/.exec(e)?.[2]??e}function $k({name:e,type:t,text:n}){const r=qn(),o=Se.usePublisherTheme().theme.ui;if(!r?.setStartingValue)return null;const s=r.setStartingValue,i=Ek(r.startingValueOf?.(e),t),a=r.stateOf(e)?.origin==="dashboard",l={px:.75,minWidth:0,...o.type.control};return f.jsxs(f.Fragment,{children:[i!==void 0&&i===n&&f.jsxs(H.Typography,{sx:c=>({...o.type.caption,color:c.palette.text.secondary,px:.75,display:"flex",alignItems:"center",gap:.5}),children:[f.jsx(Pc,{"aria-hidden":!0,sx:{fontSize:14}}),"Report default"]}),n!==void 0&&n!==i&&f.jsx(H.Button,{size:"small",onClick:()=>s(e,n),sx:l,children:"Make this the report's default"}),i!==void 0&&f.jsx(H.Button,{size:"small",onClick:()=>s(e,void 0),sx:l,children:a?"Use the filter's default":"Use the model's default"})]})}function Gd({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(H.Box,{className:Ot.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 ${$r}`,...Or,"&:hover":{borderColor:t||n||o?void 0:ei(l.cardBorder,l.tileTitle)},maxWidth:"100%",..._d}),children:[a,u&&!s&&f.jsx(zd,{label:`Remove filter ${e}`,onRemove:()=>u.onRemove(e)})]})}function qd({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(Gd,{name:e,unused:n,problem:s,children:f.jsxs(H.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(H.Box,{component:"span",sx:{fontStyle:"italic"},children:"Unused"})]})});return s?f.jsx(H.Tooltip,{title:s,children:i}):i}function Kd(){const{theme:e}=Se.usePublisherTheme(),t=e.ui,n=qn();if(!n)return null;const r=n.addDisabledReason!==void 0;return f.jsx(H.Tooltip,{title:n.addDisabledReason??"",children:f.jsx("span",{children:f.jsx(H.Button,{variant:"outlined",startIcon:f.jsx(Qs,{}),"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 Ok({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:h}){const v=qn();if(e.length===0&&!(v&&s==="bar"))return null;const d=Array.from(t.values()).some(y=>y!==null),m=o??d,g=y=>{if(y===void 0)return{};const x=u?.get(y);return{...c?.has(y)?{optionsTruncated:!0}:{},...x?{optionSearch:x}:{}}},C=e.map(y=>f.jsx(H.Box,{children:f.jsx(Yi,{given:y,value:y.name?t.get(y.name):void 0,onChange:x=>y.name&&n(y.name,x),options:y.name?i?.get(y.name):void 0,optionsLoading:a,optionsFailed:y.name?l?.has(y.name):void 0,...g(y.name)})},y.name)),w=f.jsxs(H.Stack,{direction:"row",alignItems:"center",spacing:1,children:[p&&f.jsx(H.Button,{variant:"contained",size:"small",disableElevation:!0,onClick:()=>p.pending&&p.onApply(),"aria-disabled":!p.pending,sx:{"&[aria-disabled='true']":{cursor:"default",color:"action.disabled",backgroundColor:"action.disabledBackground","&:hover":{backgroundColor:"action.disabledBackground"}}},children:"Apply"}),m&&f.jsx(H.Button,{variant:"text",size:"small",onClick:r,children:"Reset"})]});return s==="bar"?f.jsxs(H.Stack,{direction:"row",role:"group","aria-label":h??"Filters",useFlexGap:!0,sx:{flexWrap:"wrap",alignItems:"center",gap:1},children:[e.map(y=>f.jsx(Rk,{given:y,value:y.name?t.get(y.name):void 0,onChange:x=>y.name&&n(y.name,x),options:y.name?i?.get(y.name):void 0,optionsLoading:a,optionsFailed:y.name?l?.has(y.name):void 0,...g(y.name)},y.name)),v?.unrendered.map(y=>f.jsx(qd,{name:y.name,label:y.label},y.name)),f.jsx(Kd,{}),f.jsx(H.Box,{sx:{ml:"auto"},children:w})]}):f.jsxs(H.Paper,{elevation:0,sx:{p:3,backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[f.jsxs(H.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[f.jsx(H.Typography,{variant:"subtitle2",sx:{fontWeight:"fontWeightMedium",color:"text.primary"},children:h??"Filters"}),w]}),f.jsx(H.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:C})]})}const Ak=/^(https?|mailto|tel):/i,Fk=/^[a-z][a-z0-9+.-]*:/i;function Lk({href:e,title:t,children:n,context:r}){const o=!!e&&Fk.test(e),s=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!s||!r){const p=o&&!Ak.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 Nk=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:Mc},"& 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 jk({alt:e}){return f.jsx(f.Fragment,{children:e})}function Bk({children:e,variant:t="caption",links:n,sx:r}){const{theme:o}=Se.usePublisherTheme();return f.jsx(H.Box,{sx:[Nk(o.ui)[t],{fontFamily:o.font.family},...Array.isArray(r)?r:[r]],children:f.jsx(zp,{options:{forceBlock:t==="document",disableParsingRawHTML:!0,overrides:{a:{component:Lk,props:{context:n}},img:{component:jk}}},children:e})})}const ko={opening:e=>e?`Opening the ${e}…`:"Opening…",running:"Running…",loading:"Loading…"};function qi({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(H.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:s},children:[f.jsx(H.CircularProgress,{size:t,color:n,thickness:r}),e&&f.jsx(H.Typography,{variant:i,color:"text.secondary",children:e})]});return o?f.jsx(H.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:a}):a}let ir;function Xd(){return ir||(ir=import("@malloydata/render"),ir.catch(()=>{ir=void 0})),ir}function Qd(){typeof window>"u"||Xd().catch(()=>{})}const Zd=$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 Jd({sx:e,...t}){const{theme:n}=Se.usePublisherTheme();return f.jsx(H.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 Vk=new Set(["warn","error"]);function _k(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!Vk.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 zk=W.lazy(()=>Promise.resolve().then(()=>require("./RenderedResult-BlYdT4lz.cjs.js")).then(e=>e.RenderedResult$1));function ep({result:e,maxHeight:t,tableMaxHeight:n,firstPaintHeight:r,maxResultSize:o=0,renderLogs:s,drill:i,fill:a=!1,compactToFit:l=!1}){const c=W.useRef(null);W.useEffect(()=>Qd(),[]);const[u,p]=W.useState(void 0),[h,v]=W.useState(void 0),[d,m]=W.useState(void 0),g=W.useCallback((F,L)=>{p(F),m(L)},[]),[C,w]=W.useState(!1),[y,x]=W.useState(void 0),P=_k(s),T=!!e;W.useEffect(()=>{const F=c.current;if(!a||!F)return;const L=new ResizeObserver(([N])=>{x(Math.round(N.contentRect.height)),O(Math.round(N.contentRect.width))});return L.observe(F),()=>L.disconnect()},[a,T,C]);const[I,R]=W.useState(void 0),[A,O]=W.useState(void 0),$=a&&l&&u==="content";if(W.useEffect(()=>{R(void 0)},[e,A,$]),W.useEffect(()=>{$&&(y===void 0||h===void 0||(I===void 0&&h>y+1?R(h):I!==void 0&&y>=I&&R(void 0)))},[$,y,h,I]),!e)return null;if(o>0&&e.length>o&&!C)return f.jsxs(H.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(Hp.Warning,{sx:{fontSize:48,color:"#757575"}}),f.jsx(H.Typography,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),f.jsx(H.Button,{variant:"contained",color:"primary",onClick:()=>w(!0),children:"Proceed"})]});const E=f.jsx(qi,{text:ko.loading,centered:!0,size:32}),D=gg({renderAs:d,maxHeight:t,tableMaxHeight:n}),M=Ts({sizing:u,contentHeight:h,maxHeight:D,fillHeight:a?y:void 0,firstPaintHeight:r}),k=f.jsx(W.Suspense,{fallback:E,children:f.jsx(zk,{result:e,height:M,onSizeChange:v,onSizing:g,drill:i,fill:a})});return f.jsxs(H.Box,{ref:c,sx:{position:"relative",height:"auto",border:"0px",borderRadius:0,overflowX:"hidden",overflowY:a?"hidden":"auto",...a&&{flex:`1 1 ${Ts({sizing:u,contentHeight:h,maxHeight:D,firstPaintHeight:r})}px`,minHeight:0}},children:[a?f.jsx(H.Box,{className:jc,...$&&I!==void 0?{[Nc]:""}:{},sx:{position:"absolute",inset:0,overflowX:"hidden",overflowY:"auto"},children:k}):k,P&&f.jsx(H.Box,{sx:{position:"absolute",top:4,right:4,zIndex:1},children:f.jsx(H.Tooltip,{title:P.title,slotProps:{tooltip:{sx:{whiteSpace:"pre-line"}}},children:f.jsx(Jd,{"aria-label":"Render tag warnings",children:f.jsx(Zd,{fontSize:"small",color:P.severity==="error"?"error":"warning"})})})})]})}function tp({state:e,context:t,loadingText:n=ko.running,maxHeight:r,tableMaxHeight:o,firstPaintHeight:s,maxResultSize:i,drill:a,fill:l,compactToFit:c,transform:u}){const{data:p,isSuccess:h,isError:v,error:d,fetchStatus:m,isPlaceholderData:g}=e,C=h||m==="fetching";W.useEffect(()=>{C&&Qd()},[C]);const w=p?.data.result,y=W.useMemo(()=>w!==void 0&&u?u(w):w,[w,u]),x=W.useMemo(()=>Jm(y),[y]);if(v)return f.jsx(H.Box,{sx:{p:2},children:f.jsx(Uc,{context:t,error:d})});if(!h)return f.jsx(qi,{text:m==="idle"?ko.loading:n});if(x)return f.jsx(H.Box,{sx:{p:2},children:f.jsx(H.Typography,{variant:"body2",role:"status",color:"text.secondary",children:x})});const P=f.jsx(ep,{result:y,maxHeight:r,tableMaxHeight:o,...s!==void 0?{firstPaintHeight:s}:{},maxResultSize:i,renderLogs:p.data.renderLogs,drill:a,fill:l,compactToFit:c});return f.jsxs(H.Box,{"aria-busy":g||void 0,sx:{position:"relative",display:"flex",flexDirection:"column",flex:"1 1 auto",minHeight:0,minWidth:0,...l?{height:"100%"}:{},"& > .result-body":{display:"flex",flexDirection:"column",flex:"1 1 auto",minHeight:0,minWidth:0,...l?{height:"100%"}:{},opacity:g?.55:1,transition:g?"opacity 160ms ease 200ms":"opacity 120ms ease","@media (prefers-reduced-motion: reduce)":{transition:"none"}}},children:[g&&f.jsx(H.LinearProgress,{"aria-label":n,sx:{position:"absolute",top:0,left:0,right:0,height:2,zIndex:1,bgcolor:"transparent",borderRadius:1}}),f.jsx(H.Box,{className:"result-body",children:P})]})}const Bs=()=>typeof performance<"u"?performance.now():Date.now(),Wk=$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"})),Hk=3;function Uk(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 Yk(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} or ${e[e.length-1]}`}function np({ignored:e}){const{theme:t}=Se.usePublisherTheme();if(e.length===0)return null;const n=e.length>Hk?`Doesn't respond to ${e.length} filters`:`Doesn't respond to ${e.join(", ")}`;return f.jsxs(H.Box,{"data-testid":"tile-filter-tag",title:`This tile's query never reads ${Yk(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(Wk,{sx:{fontSize:12}}),f.jsx(H.Box,{component:"span",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})]})}const Gk=/\.malloy(nb)?$/,qk=e=>e&&e.slice(e.lastIndexOf("/")+1).replace(Gk,"")||void 0,rp=e=>e.replace(/\.malloy$/,"").split("/").map(encodeURIComponent).join("/"),op=(e,t,n)=>`/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${rp(n)}`,sp="edit",Kk=(e,t,n)=>`${op(e,t,n)}?${sp}`,ip=e=>e.layout==="linear"?"linear":"grid",ap=e=>({layout:ip(e),path:e.path,editable:e.editable!==!1});function Ki(e,t){const n=t.find(r=>r.path===e);return n?.path?ap({...n,path:n.path}):void 0}function lp(e){return e===""||e.startsWith("/")?!1:e.split("/").every(t=>t!==""&&t!=="."&&t!=="..")}function Xk(e,t){if(!lp(e))return{kind:"unresolved"};for(const n of[`${e}.malloy`,e]){const r=Ki(n,t);if(r)return{kind:"path",report:r}}return{kind:"unresolved"}}const Qk=(e,t,n)=>["reports",e,t,n];async function Zk(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 cp(e,t,n,r=!0){const{apiClients:o}=Se.useServer(),s=es({queryKey:Qk(e,t,n),queryFn:()=>Zk(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 Jk(e,t,n,r){const{reports:o,settled:s}=cp(e,t,r);return{settled:s,reports:o,location:s?Ki(n,o):void 0}}const Xi=20,eT={radius:"8px",padding:`${Xi}px`};function tT(e,t=eT){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 up={query:120,text:72};function Qi({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(H.Paper,{ref:o,className:Ot.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",isolation:"isolate",display:"flex",flexDirection:"column",minWidth:0,minHeight:t==="none"?0:up[n],p:t==="none"?0:e?"12px 0":`${Xi}px`},...Array.isArray(r)?r:[r]],children:s})}const dp=Ot.tileHeading;function pp({title:e,subtitle:t,tooltip:n,action:r,quiet:o=!1}){const{theme:s}=Se.usePublisherTheme(),i=s.ui;return f.jsxs(H.Box,{className:dp,sx:{pb:o?.5:1.5,display:"flex",alignItems:"flex-start",gap:1},children:[f.jsxs(H.Box,{sx:{minWidth:0,flex:1},children:[f.jsx(H.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(H.Typography,{component:"div",sx:{...i.type.caption,display:"block",mt:"2px",color:s.tileTitle,fontFamily:s.font.family,opacity:.75},children:t})]}),r]})}const nT=-1;function rT(e){const t=e.ownerDocument;for(let n=e.parentElement;n&&n!==t.body&&n!==t.documentElement;n=n.parentElement)if(/(auto|scroll|overlay)/.test(getComputedStyle(n).overflowY))return n}function oT(e,t){if((t?t.scrollTop:window.scrollY)<=0)return!1;const r=parseFloat(getComputedStyle(e).top);if(Number.isNaN(r))return!1;const o=t?t.getBoundingClientRect().top+t.clientTop:0;return e.getBoundingClientRect().top-o<=r+.5}function sT(){const[e,t]=W.useState(!1),n=W.useRef(null);return{stickyRef:W.useCallback(o=>{if(n.current?.(),n.current=null,!o||typeof window>"u")return;const s=rT(o),i=s??window;let a=0;const l=()=>{a=0,t(oT(o,s))},c=()=>{a===0&&(a=requestAnimationFrame(l))};i.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",c),l(),n.current=()=>{i.removeEventListener("scroll",c),window.removeEventListener("resize",c),a!==0&&cancelAnimationFrame(a)}},[]),stuck:e}}const fp=4,hp="--publisher-sticky-top",iT=2;function aT({layout:e,notice:t,header:n,controls:r,children:o,sx:s}){return f.jsxs(H.Stack,{className:Ot.report,"data-layout":e,sx:[{gap:iT},...Array.isArray(s)?s:[s]],children:[t,n,r,o]})}function lT({title:e,description:t,actions:n}){const r=Se.usePublisherTheme().theme.ui;return f.jsxs(H.Stack,{className:Ot.header,sx:{gap:1.5},children:[f.jsxs(H.Stack,{direction:"row",sx:{alignItems:"center",gap:2},children:[f.jsx(H.Typography,{component:"h1",className:Ot.title,sx:{...r.type.pageTitle,m:0,flex:1,minWidth:0},children:e}),n&&f.jsx(H.Box,{sx:{my:"-4px"},children:n})]}),t]})}function cT({sx:e,children:t}){return f.jsx(Qi,{chrome:"none",kind:"text",...e?{sx:e}:{},children:t})}function uT({children:e}){const{theme:t}=Se.usePublisherTheme(),{stickyRef:n,stuck:r}=sT();return f.jsx(H.Box,{ref:n,className:Ot.filterRow,"data-stuck":r||void 0,sx:{position:"sticky",top:`calc(var(${hp}, 0px) + ${nT}px)`,zIndex:fp,bgcolor:r?"background.default":"transparent",pb:1,pt:1,mt:-1,boxShadow:r?`0 1px 0 ${Yn(t.cardBorder)}`:"none",transition:`box-shadow ${$r}`,...Or},children:e})}const mp=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},gp=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 Zi(e,t){if(e[t])return e;const n=e.default;return n?.[t]?n:e}const dT=e=>Zi(e,"MalloyTranslator"),pT=e=>Zi(e,"parseAnnotation"),fT=e=>Zi(e,"ASTQuery");async function hT(){return dT(await import("@malloydata/malloy"))}async function mT(){return pT(await import("@malloydata/malloy-tag"))}async function gT(){return fT(await import("@malloydata/malloy-query-builder"))}async function yT(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 bT(e){return e.find(t=>t.authoritative)??e.find(t=>t.writeable)}function yp({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 vT(e,t){return e??(t===void 0?void 0:await yT(t))}function xT({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 ST(e){return e instanceof Error?e.message:String(e)}function wT(e){const t=e.response?.data;return t?.message?t.message:e instanceof Error?e.message:String(e)}async function CT({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(h){for(const v of a)t.invalidateQueries({queryKey:v});throw new Error(wT(h))}const p=u.data.contentHash;await c?.(p);for(const{queryKey:h,refetchType:v,wait:d}of l){const m=t.invalidateQueries({queryKey:h,...v?{refetchType:v}:{}});d&&await m}return p}function PT(e,t){return t===void 0||!/\.(saved|save_undone)$/.test(e.type)||e.where==="package"?e:{...e,workspace:t}}function kT(e){if(!("resourceUri"in e))return{environmentName:e.environmentName,packageName:e.packageName,versionId:void 0,namesBoth:!0};let t;try{t=mp(e.resourceUri)}catch{t=void 0}return{environmentName:t?.environmentName??"",packageName:t?.packageName??"",versionId:t?.versionId,namesBoth:!!t?.environmentName&&!!t?.packageName}}class bp extends Error{constructor(t){super(t),this.name="DocumentNotFoundError"}}const vp=e=>e instanceof bp||e instanceof Error&&e.name==="DocumentNotFoundError",TT=String.raw`##?\|?[ \t]*(?:[([{<][ \t]*)?(?:(?:(?:row|source)[-_]?)?authorize|access[-_]?filter)(?=[)\]}>]|[ \t]|$)`;function Ji(e,t){if(/[\r\n]/.test(t))return`A ${e} is one line; it cannot hold a line break.`;if(new RegExp(TT,"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=>Ws.isBareName(e)?e:`\`${e}\``;function ea(e){const{title:t,modelPath:n,source:r,view:o}=e;if(t.trim()==="")return"A title cannot be empty.";const s=Ji("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 MT=e=>{const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)},zl=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,DT="report.malloy";function ta(e,t,n=DT){const r=ea(e);if(r)throw new Error(r);const{modelPath:o,source:s,view:i}=e,a=e.title.trim(),l=zl(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 "${zc(o,n)}"`,"",`source: ${c} is ${ar(s)} extend {`,` # label=${zl(MT(i))}`,` view: ${u} is ${ar(i)}`,"}",""].join(`
139
+ `)}function RT(e,t){return ta(e,"linear",t)}function xp(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,80)}function IT({title:e,modelPath:t,source:n,view:r}){for(const[o,s]of[["source",n],["view",r]])if(!Ws.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.`:Ji("title",e)}function ET(e,t){const n=IT(e);if(n)throw new Error(n);return ta(e,"grid",t)}const Sp=e=>(e??"").trim().replace(/\\/g,"/").split("/").filter(t=>t!=="").join("/");function wp(e,t){const n=Sp(t);return`${n===""?"":`${n}/`}${e}.malloy`}function Cp(e){return xp(e)||"untitled"}function Pp(e,t=1,n){const r=Cp(e);return wp(t>1?`${r}-${t}`:r,n)}const kp=(e,t,n)=>`${e}/${t}/${n}`,Tp=(e,t,n,r,o)=>({workspace:t,type:e,path:kp(n,r,o)}),na=20;function $T(e){const{savesTo:t,writer:n}=yp({...e,readFailed:!1});return t==="browser"?void 0:n}const Wl=e=>e.slice(e.lastIndexOf("/")+1).replace(/\.malloy$/,"");function Mp(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 OT(e){const t=e.layout??"linear",n=Bs();let r;try{r=await AT(e,t)}catch(o){throw go({path:e.path??"",layout:t},e.onEvent).emit({type:"report.create_refused",reason:o instanceof Error?o.message:String(o)}),o}return go({path:r.path,layout:t},e.onEvent).emit({type:"report.created",where:e.target.route==="package"?"package":"host",durationMs:Bs()-n}),e.onCreated?.(r),r}async function AT(e,t){const{document:n,target:r}=e,o=ea(n);if(o)throw new Error(o);const s=Sp(e.directory),i=e.path!==void 0?[e.path]:Array.from({length:na},(m,g)=>Pp(n.title,g+1,s));for(const m of i){const g=Mp(m);if(g)throw new Error(g)}const a=m=>ta(n,t,m);if(r.route==="package"){const m=new Set(r.existing);let g;for(const C of i)if(!m.has(C))try{await r.write(C,a(C)),g=C;break}catch(w){if(!FT(w))throw w}if(g===void 0)throw Hl(n.title,e.path);return{layout:t,path:g,slug:Wl(g)}}const{storage:l,workspace:c,environmentName:u,packageName:p}=r,h=new Set(r.existing),v=new Set((await l.listDocuments(c)).map(m=>m.path));let d;for(const m of i){const g=Tp(t,c.name,u,p,m),C=await l.resolveDocumentPath?.(g)??m;if(v.has(g.path)||h.has(m)||h.has(C))continue;let w=!0;try{await l.getDocument(g)}catch(y){if(!vp(y))throw y;w=!1}if(!w){d={layout:t,path:C,slug:Wl(C),locator:g};break}}if(d===void 0)throw Hl(n.title,e.path);return await l.saveDocument(d.locator,a(d.path)),d}const FT=e=>e?.response?.status===409,Hl=(e,t)=>new Error(t!==void 0?`${t} already exists. Fix: choose a different location.`:`No free file name for "${e}" after ${na} tries. Fix: choose a different title.`);function Dp(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}}function Vs(e){for(const t of e??[]){const n=/^#\(doc\)\s*(.*)$/s.exec(t.trim());if(n)return n[1].trim()}}function Rp(e){for(const t of e??[]){const n=/^#\s*(?:-[A-Za-z_]+\s+)*([a-z_]+)/.exec(t.trim())?.[1];if(n&&xc.includes(n))return n}}function LT({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=W.useMemo(()=>{const d=new Map;return a.forEach((m,g)=>{const C=[],w=Dp(m.data?.modelInfo);for(const y of m.data?.sources??[]){if(typeof y.name!="string"||!w.has(y.name))continue;const x=Vs(y.annotations);for(const P of y.views??[])if(typeof P.name=="string"){const T=Vs(P.annotations),I=Rp(P.annotations);C.push({source:y.name,view:P.name,...T?{description:T}:{},...I?{chart:I}:{},...x?{sourceDescription:x}:{}})}}C.length>0&&d.set(r[g],C)}),d},[l,r]),u=a.some(d=>d.isLoading),p=u?[]:r.filter((d,m)=>a[m]?.isError),h=!u&&a.some(d=>d.isError&&Ws.canRetryRequest(d.error)),v=()=>{a.forEach(d=>{d.isError&&d.refetch()})};return{choices:c,isLoading:u,isSuccess:a.length>0&&a.every(d=>!d.isPending),failed:p,retry:v,canRetry:h}}const ra=W.createContext(void 0);function NT({children:e,documentStorage:t}){const n=W.useMemo(()=>({documentStorage:t}),[t]);return f.jsx(ra.Provider,{value:n,children:e})}function jT(){const e=W.useContext(ra);if(!e)throw new Error("useDocumentStorage must be used within a DocumentStorageProvider");return e}function BT(){return W.useContext(ra)}function VT(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 _T=1e4,zT=e=>e==="notebook"?"linear":"grid",WT=(e,t)=>`${e}s/${t}.malloy`;function HT(e,t,n){return[["dashboards"],["notebooks"],["dashboard"],...n===void 0?[]:[[gp({environmentName:e,packageName:t,modelPath:n})]]]}function UT(e,t,n,r){for(const o of[["report"],["reports"],...HT(t,n,r)])e.invalidateQueries({queryKey:o})}function es(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 YT(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 Ip(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function GT(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath]}function Ep(e,{enabled:t=!0}={}){const{apiClients:n}=Se.useServer(),r=Ip(e);return es({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&&KT(s.queryKey,r)?Hn.keepPreviousData(o):void 0,...Se.CHART_RESULT_QUERY_OPTIONS})}const qT=8;function KT(e,t){return e.every((n,r)=>r===qT||r>=t.length||n===t[r])}const XT=/<\/?[A-Za-z][^>]*>|<!--|<![A-Za-z]/;function $p(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&&XT.test(s)){e.delete("label"),t=!0;continue}}const o=Array.isArray(r.eq)?r.eq:[];for(const s of[r,...o])$p(s)&&(t=!0)}return t}function QT(e){const t=e.trim();if(!/^#(?:\||[ \t\r\n]|$)/.test(t))return e;if(t.includes("@env."))return"";let n;try{n=Up.parseAnnotation(t)}catch{return""}return n.log.length>0?"":$p(n.tag)?`${n.tag.toString()}
140
+ `:e}function _s(e){if(Array.isArray(e)){for(const n of e)_s(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=QT(s.value))}else _s(r)}function Op(e){let t;try{t=JSON.parse(e)}catch{return e}const n=JSON.stringify(t);_s(t);const r=JSON.stringify(t);return r===n?e:r}const ZT=new Set(["bar_chart","line_chart","scatter_chart","combo_chart","shape_map","segment_map","point_map","big_value","sparkline","list","list_detail","dashboard","transpose","table","json","image","link","text"]),JT={value:`# big_value
141
+ `};function eM(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(r=>ks(r)))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 tM(e){for(const t of e){const n=t.trim();if(!n.startsWith("#")||n.startsWith("#(")||n.startsWith('#"'))continue;const r=jo(n.slice(1));for(const o of r.split(/[\s{}=.,[\]]+/))if(ZT.has(o))return!0}return!1}function Ap(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!eM(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return tM(r)?e:JSON.stringify({...t,annotations:[JT,...n]})}const nM=e=>Op(Ap(e));function zs(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?ou(t):e}function rM({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:h,declaredTypes:v,givenNames:d,height:m,tableMaxHeight:g,fixedHeight:C,maxResultSize:w,drill:y,onExplore:x,chrome:P="card",ignoredFilters:T,preamble:I,restricted:R,waitingFor:A,index:O}){const{theme:$}=Se.usePublisherTheme(),[b,E]=Tg(),D=Ep({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:s!==void 0?ui(I??"",`${i?`${i}
142
+ `:""}run: ${s}`):void 0,givens:ci(li(p,v,d),h,d)},{enabled:E&&R!==!0&&A===void 0}),{emit:M}=oi(),k=D.isError?D.error:void 0;W.useEffect(()=>{k!==void 0&&M({type:"report.query_failed",...O!==void 0?{tile:O}:{},category:Kc(k)})},[k,M,O]);const F=R===!0||I!==void 0&&D.isError&&uy(D.error);return f.jsxs(Qi,{cardRef:b,borderless:u,chrome:P,sx:{"& .malloy-render, & .malloy-table":{width:"100%"},"& .publisher-tile-explore":{opacity:0,transition:`opacity ${$r}`,...Or,...Tc},"&:hover .publisher-tile-explore, & .publisher-tile-explore:focus-visible":{opacity:1}},children:[s!==void 0&&f.jsx(pp,{title:c?.title??a??zs(s),subtitle:c?c.subtitle:l,quiet:P==="none",tooltip:s,action:x&&f.jsx(H.Tooltip,{title:"Explore from here",children:f.jsx(H.IconButton,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${a??zs(s)}`,onClick:x,sx:{mt:-.5,mr:-.5,color:$.tileTitle},children:f.jsx(Cg,{fontSize:"small"})})})}),T&&f.jsx(np,{ignored:T}),A!==void 0?f.jsx(H.Box,{sx:{p:2},children:f.jsx(H.Typography,{variant:"body2",role:"status",color:"text.secondary",children:A})}):F?f.jsx(H.Box,{sx:{p:2},children:f.jsx(H.Typography,{variant:"body2",role:"status",color:"text.secondary",children:hu})}):f.jsx(tp,{fill:!0,state:D,context:s??o??r,maxHeight:m,tableMaxHeight:g,compactToFit:C,firstPaintHeight:ti,maxResultSize:w,drill:y,transform:I!==void 0?s!==void 0?nM:Op:s!==void 0?Ap:void 0})]})}function oM(e,{enabled:t=!0}={}){const{apiClients:n}=Se.useServer();return es({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=yu;exports.AddButton=Hm;exports.AddFilterButton=Kd;exports.AddIcon=Qs;exports.ApiErrorDisplay=Uc;exports.AppDialog=Cc;exports.ArrowDropDownIcon=bd;exports.BARE_RING_OFFSET_PX=Cm;exports.BUILDER_HANDOFF_STALE_MS=_T;exports.Button=pr;exports.ButtonBase=Bn;exports.ChartGlyph=$c;exports.CheckIcon=Pc;exports.Chip=ad;exports.CircularProgress=Ci;exports.ClassNameGenerator=Yl;exports.CloseIcon=Bo;exports.DASHBOARD_CARD_PADDING_PX=Xi;exports.DEFAULT_COLUMNS=pc;exports.DRILL_SELF=ey;exports.DashboardGrid=Em;exports.DashboardTile=rM;exports.DatePicker=Fd;exports.DeleteOutlineIcon=wg;exports.DocumentNotFoundError=bp;exports.DocumentStorageProvider=NT;exports.ErrorDetailAlert=Hc;exports.ExpandMoreIcon=kc;exports.FilterEditingContext=Vd;exports.FilterSettingsButton=qd;exports.FloatingIconButton=Jd;exports.FormControl=Bi;exports.GIVEN_SETTLE_MS=Ld;exports.GRID_GAP_PX=Tt;exports.GivenInput=Yi;exports.GivensPanel=Ok;exports.Grow=Cr;exports.INITIAL_RENDER_HEIGHT=Fc;exports.IconButton=Nr;exports.InfoOutlinedIcon=Zd;exports.InputLabel=ji;exports.LOADING_COPY=ko;exports.ListContext=$n;exports.Loading=qi;exports.LocalizationProvider=vi;exports.MAX_SLUG_ATTEMPTS=na;exports.MAX_TILE_ROWS=hc;exports.MIN_TEXT_TILE_ROWS=Tm;exports.MIN_TILE_PX=gc;exports.MIN_TILE_ROWS=fc;exports.MIN_VALUE_TILE_ROWS=km;exports.MODEL_CELL_MAX_HEIGHT=yg;exports.MOTION_FAST=$r;exports.NOTEBOOK_CELL_MAX_HEIGHT=hg;exports.PLACED_DEFAULT_ROWSPAN=bc;exports.PROSE_MAX_WIDTH=Mc;exports.Paper=jr;exports.Popper=Zu;exports.Prose=Bk;exports.REMOVE_BADGE_CLASS=Rn;exports.REPORT_EDIT_PARAM=sp;exports.RESTRICTED_NOTICE=hu;exports.RESULTS_DIALOG_MAX_HEIGHT=bg;exports.RESULT_SCROLLER_CLASS=jc;exports.RemoveBadge=zd;exports.ReportEventsContext=qc;exports.ReportHeader=lT;exports.ReportPage=aT;exports.ResultContainer=ep;exports.ResultPanel=tp;exports.STICKY_CONTROLS_Z=fp;exports.STICKY_TOP_VAR=hp;exports.SearchIcon=Ec;exports.SecondaryButton=Um;exports.Select=zi;exports.StickyControls=uT;exports.SvgIcon=mo;exports.THEME_ID=Un;exports.TIGHT_ATTR=Nc;exports.TILE_HEADING_CLASS=dp;exports.TILE_MAX_HEIGHT=ti;exports.TILE_MIN_HEIGHT=up;exports.TILE_ROW_PX=No;exports.TextField=vd;exports.TextTileFrame=cT;exports.TileCard=Qi;exports.TileFilterTag=np;exports.TileHeading=pp;exports.Typography=Qt;exports.UNCAPPED_CONTAINER_HEIGHT=Ac;exports.UnsavedChangesDialog=Wm;exports.ViewPicker=ag;exports.annotationTextProblem=Ji;exports.buildTableCssVars=tT;exports.capitalize=ae;exports.chartLineText=Om;exports.chartLinesOf=zm;exports.chartOf=Rp;exports.chartResetLine=$m;exports.chartShapeGap=Rc;exports.chartStateOfTagLines=Lm;exports.chooseWorkspace=bT;exports.clearReportDraft=Fg;exports.clsx=de;exports.columnCounts=Ic;exports.composeClasses=me;exports.contentNode=Oc;exports.contentNodeDepth=pg;exports.createDocument=OT;exports.createRoute=$T;exports.createSimplePaletteValueFilter=Xe;exports.createSvgIcon=$e;exports.createTheme=ac;exports.dangerTextColor=Gm;exports.dayjs=Re;exports.docOf=Vs;exports.documentPreamble=cy;exports.documentSlug=qk;exports.draftKey=kp;exports.draftStorageAvailable=Lg;exports.drillDestinations=ru;exports.drillGivenName=su;exports.drillValueLabel=iu;exports.drillValueToFilter=_o;exports.edgeColor=Yn;exports.emphasize=Zl;exports.encodeDrillValue=au;exports.encodeResourceUri=gp;exports.escapeMalloyString=ri;exports.expectedHashFor=vT;exports.exportedSources=Dp;exports.extractEventHandlers=hi;exports.failureCategory=Kc;exports.filledInputClasses=Yt;exports.formControlState=bn;exports.formatMalloyValue=Og;exports.generateUtilityClass=ge;exports.generateUtilityClasses=he;exports.getAugmentedNamespace=qp;exports.getDefaultExportFromCjs=jt;exports.getReactElementRef=Gn;exports.givensToParams=oo;exports.givensToRequest=li;exports.hoverEdgeColor=ei;exports.humanizeSlug=ou;exports.initialResultHeight=Lc;exports.inputBaseClasses=mn;exports.inputClasses=Mn;exports.invalidateReportQueries=UT;exports.isChartPick=Sc;exports.isDocumentNotFound=vp;exports.isDrillTargetPath=lp;exports.isPlaced=vc;exports.isSeriesColor=wc;exports.layoutOfKind=zT;exports.layoutRules=xg;exports.legacyNamedPath=WT;exports.listedLayout=ip;exports.loadMalloy=hT;exports.loadMalloyRenderer=Xd;exports.loadMalloyTag=mT;exports.loadQueryBuilder=gT;exports.localGivenSpec=Mg;exports.locateReport=Ki;exports.locatedReport=ap;exports.locatorFor=Tp;exports.malloyLiteral=Eg;exports.measureContentHeight=fg;exports.memoTheme=Ee;exports.mentionsChartTag=Js;exports.mergeSlotProps=dc;exports.missingRequiredGivens=Sk;exports.modelResultsKey=GT;exports.newDashboardSource=ET;exports.newDocumentProblem=ea;exports.newNotebookSource=RT;exports.now=Bs;exports.nudgedSpan=wm;exports.outlinedInputClasses=bt;exports.ownerDocument=Ye;exports.parseChartLine=Er;exports.parseResourceUri=mp;exports.queryResultKey=Ip;exports.reaches=Wc;exports.readableName=ig;exports.reducedMotionSx=Or;exports.remeasuresAfterReady=dg;exports.removeBadgeRevealSx=_d;exports.renderGivenDefault=Ui;exports.reportClasses=Ot;exports.reportDraftKey=Ag;exports.reportEditRoute=Kk;exports.reportEmitter=go;exports.reportPathFor=wp;exports.reportPathForTitle=Pp;exports.reportPathProblem=Mp;exports.reportQueryOptions=VT;exports.reportRoute=op;exports.reportRoutePath=rp;exports.requestsRowChart=Xm;exports.requiredPrompt=Ck;exports.resolveDrill=ty;exports.resolveDrillTarget=Xk;exports.resolveEditorTarget=kT;exports.resolveResultHeight=Ts;exports.resolvedOf=ni;exports.resultSizing=ug;exports.rootShouldForwardProp=pt;exports.rowsForHeight=Mm;exports.saveCaption=xT;exports.saveTarget=yp;exports.scrollBehavior=Ym;exports.seriesColorFrom=_m;exports.seriesColorLine=Bm;exports.seriesColorOf=jm;exports.seriesColorResetLine=Vm;exports.setRef=ws;exports.slugFor=xp;exports.slugOrFallback=Cp;exports.storageErrorMessage=ST;exports.styled=K;exports.tileHeightPx=mc;exports.tileIgnoredFilterLabels=Uk;exports.tileTitle=zs;exports.typographyClasses=Rb;exports.useCompiledDocument=oM;exports.useControlled=Dt;exports.useDefaultProps=Ce;exports.useDefaultTileSpan=Dm;exports.useDocumentChoices=LT;exports.useDocumentControls=vy;exports.useDocumentLocation=Jk;exports.useDocumentStorage=jT;exports.useDrillSelf=lu;exports.useEnhancedEffect=Ue;exports.useEventCallback=ue;exports.useForkRef=ke;exports.useFormControl=ft;exports.useGivensState=fu;exports.useId=xt;exports.useMutationWithApiError=YT;exports.useOptionalDocumentStorage=BT;exports.useQueryResult=Ep;exports.useQueryWithApiError=es;exports.useReportDraft=Vg;exports.useReportEmitter=_g;exports.useReportEvents=oi;exports.useReportListing=cp;exports.useSlot=je;exports.useSuggestOptions=gu;exports.useTheme=gn;exports.useTimeout=fi;exports.utc=si;exports.visibleWithoutHoverSx=Tc;exports.waitingOn=wk;exports.waitingText=Pk;exports.withHostGivens=ci;exports.withPreamble=ui;exports.withReportContext=Yc;exports.withSource=Sg;exports.withSpan=vg;exports.withWorkspace=PT;exports.writePackageFile=CT;exports.writtenSpan=Bc;