@malloy-publisher/sdk 0.9.14 → 0.9.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RenderedResult-5hOs5XnV.cjs.js +171 -0
- package/dist/RenderedResult-DxmHGZNQ.es.js +671 -0
- package/dist/{ServerProvider-BV7IoDMR.es.js → ServerProvider-D7neZcTk.es.js} +283 -265
- package/dist/ServerProvider-e2369oom.cjs.js +1 -0
- package/dist/builder/index.cjs.js +80 -79
- package/dist/builder/index.es.js +7732 -6717
- package/dist/builder-entry.d.ts +1 -1
- package/dist/client/api.d.ts +31 -7
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/Dashboard/DashboardGrid.d.ts +51 -1
- package/dist/components/Dashboard/DashboardTile.d.ts +7 -2
- package/dist/components/Dashboard/DashboardView.d.ts +9 -2
- package/dist/components/Dashboard/index.d.ts +1 -1
- package/dist/components/Dashboard/promoteMeasureRow.d.ts +5 -7
- package/dist/components/Dashboard/useStuck.d.ts +18 -12
- package/dist/components/RenderedResult/RenderedResult.d.ts +3 -2
- package/dist/components/RenderedResult/ResultContainer.d.ts +18 -1
- package/dist/components/RenderedResult/ResultPanel.d.ts +7 -1
- package/dist/components/RenderedResult/chartPresentation.d.ts +15 -0
- package/dist/components/RenderedResult/chartShapeProblem.d.ts +55 -0
- package/dist/components/RenderedResult/resultSizing.d.ts +47 -6
- package/dist/components/Report/Report.d.ts +7 -1
- package/dist/components/Report/ReportPage.d.ts +7 -0
- package/dist/components/Report/layoutRules.d.ts +45 -0
- package/dist/components/ReportBuilder/AddTileDialog.d.ts +2 -1
- package/dist/components/ReportBuilder/ArrangeMenu.d.ts +9 -0
- package/dist/components/ReportBuilder/BuilderGrid.d.ts +15 -4
- package/dist/components/ReportBuilder/BuilderToolbar.d.ts +3 -1
- package/dist/components/ReportBuilder/ChartPicker.d.ts +4 -2
- package/dist/components/ReportBuilder/EditorSurface.d.ts +10 -1
- package/dist/components/ReportBuilder/ReportBuilder.d.ts +1 -1
- package/dist/components/ReportBuilder/TileFrame.d.ts +54 -10
- package/dist/components/ReportBuilder/TileMenu.d.ts +5 -2
- package/dist/components/ReportBuilder/builderControls.d.ts +19 -0
- package/dist/components/ReportBuilder/catalog.d.ts +23 -0
- package/dist/components/ReportBuilder/chartLine.d.ts +38 -5
- package/dist/components/ReportBuilder/controls.d.ts +2 -2
- package/dist/components/ReportBuilder/document.d.ts +53 -5
- package/dist/components/ReportBuilder/imports.d.ts +7 -0
- package/dist/components/ReportBuilder/placement.d.ts +121 -0
- package/dist/components/ReportBuilder/preview.d.ts +59 -10
- package/dist/components/ReportBuilder/sortable.d.ts +12 -1
- package/dist/components/ReportBuilder/useBuilderSession.d.ts +1 -1
- package/dist/components/ReportBuilder/useBuilderShortcuts.d.ts +9 -1
- package/dist/components/ReportBuilder/useEdgeResize.d.ts +84 -0
- package/dist/components/ReportBuilder/useTileReorder.d.ts +30 -3
- package/dist/index.cjs.js +7 -7
- package/dist/index.es.js +3349 -3307
- package/dist/text/index.es.js +1 -1
- package/dist/{text-entry-72YFLeNk.es.js → text-entry-YKJZbRPo.es.js} +2 -2
- package/dist/theme/classes.d.ts +1 -1
- package/dist/theme/resolveTheme.d.ts +15 -0
- package/dist/{useCompiledDocument-B4QF1mIl.es.js → useCompiledDocument-CaYP_OYG.es.js} +6353 -6047
- package/dist/useCompiledDocument-zYEfLogf.cjs.js +142 -0
- package/dist/utils/blankQuoted.d.ts +15 -0
- package/package.json +1 -1
- package/src/builder-entry.ts +1 -0
- package/src/components/Dashboard/DashboardGrid.tsx +129 -10
- package/src/components/Dashboard/DashboardTile.tsx +15 -1
- package/src/components/Dashboard/DashboardView.tsx +64 -10
- package/src/components/Dashboard/TileCard.tsx +6 -0
- package/src/components/Dashboard/index.ts +1 -0
- package/src/components/Dashboard/promoteMeasureRow.spec.ts +19 -0
- package/src/components/Dashboard/promoteMeasureRow.ts +15 -36
- package/src/components/Dashboard/tileHeight.spec.ts +72 -0
- package/src/components/Dashboard/useStuck.ts +76 -28
- package/src/components/Package/NewDocumentDialog.spec.tsx +20 -16
- package/src/components/Package/NewDocumentDialog.tsx +10 -11
- package/src/components/RenderedResult/RenderedResult.lifecycle.spec.tsx +167 -2
- package/src/components/RenderedResult/RenderedResult.tsx +39 -6
- package/src/components/RenderedResult/ResultContainer.tsx +99 -10
- package/src/components/RenderedResult/ResultPanel.tsx +25 -1
- package/src/components/RenderedResult/chartPresentation.spec.ts +153 -0
- package/src/components/RenderedResult/chartPresentation.ts +166 -0
- package/src/components/RenderedResult/chartShapeProblem.spec.tsx +245 -0
- package/src/components/RenderedResult/chartShapeProblem.ts +219 -0
- package/src/components/RenderedResult/resultSizing.spec.ts +75 -3
- package/src/components/RenderedResult/resultSizing.ts +71 -11
- package/src/components/Report/Report.spec.tsx +19 -0
- package/src/components/Report/Report.tsx +8 -1
- package/src/components/Report/ReportPage.tsx +13 -1
- package/src/components/Report/layoutRules.spec.ts +43 -3
- package/src/components/Report/layoutRules.ts +70 -0
- package/src/components/Report/tileOverflow.spec.tsx +162 -0
- package/src/components/ReportBuilder/AddTileDialog.spec.tsx +2 -2
- package/src/components/ReportBuilder/AddTileDialog.tsx +11 -6
- package/src/components/ReportBuilder/ArrangeMenu.tsx +80 -0
- package/src/components/ReportBuilder/BuilderBar.tsx +5 -1
- package/src/components/ReportBuilder/BuilderDialogs.tsx +28 -1
- package/src/components/ReportBuilder/BuilderGrid.tsx +142 -35
- package/src/components/ReportBuilder/BuilderToolbar.tsx +4 -0
- package/src/components/ReportBuilder/ChartPicker.spec.ts +91 -4
- package/src/components/ReportBuilder/ChartPicker.tsx +45 -10
- package/src/components/ReportBuilder/DrillDialog.tsx +8 -2
- package/src/components/ReportBuilder/EditorSurface.tsx +101 -20
- package/src/components/ReportBuilder/FilterDialog.tsx +17 -8
- package/src/components/ReportBuilder/FilterStrip.tsx +2 -1
- package/src/components/ReportBuilder/ReportBuilder.charts.spec.tsx +193 -2
- package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +4 -2
- package/src/components/ReportBuilder/ReportBuilder.notebook.spec.tsx +2 -2
- package/src/components/ReportBuilder/ReportBuilder.spec.tsx +242 -2
- package/src/components/ReportBuilder/ReportBuilder.tsx +161 -27
- package/src/components/ReportBuilder/ReportEditor.fileModel.spec.tsx +178 -0
- package/src/components/ReportBuilder/ReportEditor.modelFilters.spec.tsx +3 -5
- package/src/components/ReportBuilder/ReportEditor.readOnlyTitle.spec.tsx +92 -0
- package/src/components/ReportBuilder/ReportEditor.tsx +13 -0
- package/src/components/ReportBuilder/TileFrame.tsx +366 -170
- package/src/components/ReportBuilder/TileMenu.tsx +259 -20
- package/src/components/ReportBuilder/ViewPicker.tsx +4 -3
- package/src/components/ReportBuilder/addTileToDocument.spec.ts +34 -0
- package/src/components/ReportBuilder/addTileToDocument.ts +26 -1
- package/src/components/ReportBuilder/builderControls.ts +34 -0
- package/src/components/ReportBuilder/catalog.aggregate.spec.ts +137 -1
- package/src/components/ReportBuilder/catalog.ts +90 -37
- package/src/components/ReportBuilder/chartLine.spec.ts +42 -5
- package/src/components/ReportBuilder/chartLine.ts +80 -2
- package/src/components/ReportBuilder/controls.ts +4 -3
- package/src/components/ReportBuilder/document.ts +65 -7
- package/src/components/ReportBuilder/emptyStart.spec.ts +1 -1
- package/src/components/ReportBuilder/entryLayout.spec.ts +151 -0
- package/src/components/ReportBuilder/imports.ts +1 -1
- package/src/components/ReportBuilder/invariants.spec.ts +18 -10
- package/src/components/ReportBuilder/layout.ts +3 -0
- package/src/components/ReportBuilder/placement.spec.ts +401 -0
- package/src/components/ReportBuilder/placement.ts +416 -0
- package/src/components/ReportBuilder/preview.shapes.spec.ts +46 -6
- package/src/components/ReportBuilder/preview.spec.ts +151 -11
- package/src/components/ReportBuilder/preview.ts +203 -40
- package/src/components/ReportBuilder/preview.unsaved.compile.spec.ts +190 -0
- package/src/components/ReportBuilder/readDocument.spec.ts +53 -19
- package/src/components/ReportBuilder/readDocument.ts +197 -29
- package/src/components/ReportBuilder/scannerShapes.spec.ts +10 -10
- package/src/components/ReportBuilder/sortable.tsx +30 -2
- package/src/components/ReportBuilder/spliceDocument.chart.spec.ts +1 -1
- package/src/components/ReportBuilder/spliceDocument.color.spec.ts +80 -0
- package/src/components/ReportBuilder/spliceDocument.colspan.spec.ts +78 -0
- package/src/components/ReportBuilder/spliceDocument.spec.ts +110 -58
- package/src/components/ReportBuilder/spliceDocument.ts +139 -91
- package/src/components/ReportBuilder/statementExtent.spec.ts +3 -3
- package/src/components/ReportBuilder/testing/reportGivenOrder.json +42 -0
- package/src/components/ReportBuilder/textTiles.spec.ts +2 -2
- package/src/components/ReportBuilder/tileDisplayTitle.ts +2 -2
- package/src/components/ReportBuilder/useBuilderSession.ts +7 -2
- package/src/components/ReportBuilder/useBuilderShortcuts.ts +25 -1
- package/src/components/ReportBuilder/useEdgeResize.spec.tsx +324 -0
- package/src/components/ReportBuilder/useEdgeResize.ts +397 -0
- package/src/components/ReportBuilder/useTileEditing.ts +16 -3
- package/src/components/ReportBuilder/useTileReorder.ts +143 -6
- package/src/components/given/FilterButton.spec.tsx +27 -11
- package/src/components/given/FilterButton.tsx +19 -6
- package/src/theme/classes.ts +1 -1
- package/src/theme/resolveTheme.spec.ts +72 -1
- package/src/theme/resolveTheme.ts +43 -0
- package/src/utils/blankQuoted.spec.ts +50 -0
- package/src/utils/blankQuoted.ts +32 -0
- package/src/utils/malloyText.ts +2 -1
- package/dist/RenderedResult-DnBtf-cI.es.js +0 -593
- package/dist/RenderedResult-DtQtNV0d.cjs.js +0 -153
- package/dist/ServerProvider-BIFPCzTD.cjs.js +0 -1
- package/dist/components/ReportBuilder/useTileResize.d.ts +0 -32
- package/dist/useCompiledDocument-D0OAMejE.cjs.js +0 -142
- package/src/components/ReportBuilder/useTileResize.spec.tsx +0 -146
- package/src/components/ReportBuilder/useTileResize.ts +0 -133
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";var Ip=Object.create;var sa=Object.defineProperty;var Ep=Object.getOwnPropertyDescriptor;var $p=Object.getOwnPropertyNames;var Op=Object.getPrototypeOf,Ap=Object.prototype.hasOwnProperty;var Fp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $p(t))!Ap.call(e,o)&&o!==n&&sa(e,o,{get:()=>t[o],enumerable:!(r=Ep(t,o))||r.enumerable});return e};var Wr=(e,t,n)=>(n=e!=null?Ip(Op(e)):{},Fp(t||!e||!e.__esModule?sa(n,"default",{value:e,enumerable:!0}):n,e));const f=require("react/jsx-runtime"),z=require("@mui/material"),Se=require("./ServerProvider-e2369oom.cjs.js"),q=require("react"),Hn=require("@tanstack/react-query"),Lp=require("@emotion/react"),He=require("@mui/system"),lr=require("react-dom"),Np=require("markdown-to-jsx"),Ys=require("./text-entry-BJwltZiy.cjs.js"),jp=require("@emotion/styled"),tt=require("@malloydata/malloy-filter"),Bp=require("@mui/icons-material"),Vp=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(q),_p=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"},ia=e=>e,zp=()=>{let e=ia;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ia}}},Yl=zp();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 le(e){if(typeof e!="string")throw new Error(At(7));return e.charAt(0).toUpperCase()+e.slice(1)}function aa(...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 Wp(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 rs={exports:{}},os,la;function Hp(){if(la)return os;la=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return os=e,os}var ss,ca;function Up(){if(ca)return ss;ca=1;var e=Hp();function t(){}function n(){}return n.resetWarningCache=t,ss=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},ss}var ua;function Yp(){return ua||(ua=1,rs.exports=Up()()),rs.exports}var Gp=Yp();const W=jt(Gp);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 is={exports:{}},Ie={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-is.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var da;function qp(){if(da)return Ie;da=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 pa;function Kp(){return pa||(pa=1,is.exports=qp()),is.exports}var ql=Kp();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 fa(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 Xp(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Qp(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 Zp(e){const t=(s,i)=>s.replace("@media",i?`@container ${i}`:"@container");function n(s,i){s.up=(...a)=>t(e.breakpoints.up(...a),i),s.down=(...a)=>t(e.breakpoints.down(...a),i),s.between=(...a)=>t(e.breakpoints.between(...a),i),s.only=(...a)=>t(e.breakpoints.only(...a),i),s.not=(...a)=>{const l=t(e.breakpoints.not(...a),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=s=>(n(r,s),r);return n(o),{...e,containerQueries:o}}const Do={xs:0,sm:600,md:900,lg:1200,xl:1536},ha={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Do[e]}px)`},Jp={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Do[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ft(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||ha;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||ha;return Object.keys(t).reduce((i,a)=>{if(Xp(s.keys,a)){const l=Qp(r.containerQueries?r:Jp,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||Do).includes(a)){const l=s.up(a);i[l]=n(t[a],a)}else{const l=a;i[l]=t[l]}return i},{})}return n(t)}function ef(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function ma(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Ro(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ho(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ro(e,n)||r,t&&(o=t(o,r,e)),o}function We(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const a=i[t],l=i.theme,c=Ro(l,r)||{};return Ft(i,a,p=>{let h=ho(c,o,p);return p===h&&typeof p=="string"&&(h=ho(c,o,`${t}${p==="default"?"":le(p)}`,p)),n===!1?h:{[n]:h}})};return s.propTypes={},s.filterProps=[t],s}function tf(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const nf={m:"margin",p:"padding"},rf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ga={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},of=tf(e=>{if(e.length>2)if(ga[e])e=ga[e];else return[e];const[t,n]=e.split(""),r=nf[t],o=rf[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),Gs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],qs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Gs,...qs];function Ir(e,t,n,r){const o=Ro(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s:Array.isArray(o)?s=>{if(typeof s=="string")return s;const i=Math.abs(s),a=o[i];return s>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof o=="function"?o:()=>{}}function Ks(e){return Ir(e,"spacing",8)}function Er(e,t){return typeof t=="string"||t==null?t:e(t)}function sf(e,t){return n=>e.reduce((r,o)=>(r[o]=Er(t,n),r),{})}function af(e,t,n,r){if(!t.includes(n))return null;const o=of(n),s=sf(o,r),i=e[n];return Ft(e,i,s)}function Xl(e,t){const n=Ks(e.theme);return Object.keys(e).map(r=>af(e,t,r,n)).reduce(fr,{})}function Ve(e){return Xl(e,Gs)}Ve.propTypes={};Ve.filterProps=Gs;function _e(e){return Xl(e,qs)}_e.propTypes={};_e.filterProps=qs;function Io(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?fr(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function it(e){return typeof e!="number"?e:`${e}px solid`}function dt(e,t){return We({prop:e,themeKey:"borders",transform:t})}const lf=dt("border",it),cf=dt("borderTop",it),uf=dt("borderRight",it),df=dt("borderBottom",it),pf=dt("borderLeft",it),ff=dt("borderColor"),hf=dt("borderTopColor"),mf=dt("borderRightColor"),gf=dt("borderBottomColor"),yf=dt("borderLeftColor"),bf=dt("outline",it),vf=dt("outlineColor"),Eo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ir(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Er(t,r)});return Ft(e,e.borderRadius,n)}return null};Eo.propTypes={};Eo.filterProps=["borderRadius"];Io(lf,cf,uf,df,pf,ff,hf,mf,gf,yf,Eo,bf,vf);const $o=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ir(e.theme,"spacing",8),n=r=>({gap:Er(t,r)});return Ft(e,e.gap,n)}return null};$o.propTypes={};$o.filterProps=["gap"];const Oo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ir(e.theme,"spacing",8),n=r=>({columnGap:Er(t,r)});return Ft(e,e.columnGap,n)}return null};Oo.propTypes={};Oo.filterProps=["columnGap"];const Ao=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ir(e.theme,"spacing",8),n=r=>({rowGap:Er(t,r)});return Ft(e,e.rowGap,n)}return null};Ao.propTypes={};Ao.filterProps=["rowGap"];const xf=We({prop:"gridColumn"}),Sf=We({prop:"gridRow"}),wf=We({prop:"gridAutoFlow"}),Cf=We({prop:"gridAutoColumns"}),Pf=We({prop:"gridAutoRows"}),kf=We({prop:"gridTemplateColumns"}),Tf=We({prop:"gridTemplateRows"}),Mf=We({prop:"gridTemplateAreas"}),Df=We({prop:"gridArea"});Io($o,Oo,Ao,xf,Sf,wf,Cf,Pf,kf,Tf,Mf,Df);function In(e,t){return t==="grey"?t:e}const Rf=We({prop:"color",themeKey:"palette",transform:In}),If=We({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:In}),Ef=We({prop:"backgroundColor",themeKey:"palette",transform:In});Io(Rf,If,Ef);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const $f=We({prop:"width",transform:Je}),Xs=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Do[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Je(n)}};return Ft(e,e.maxWidth,t)}return null};Xs.filterProps=["maxWidth"];const Of=We({prop:"minWidth",transform:Je}),Af=We({prop:"height",transform:Je}),Ff=We({prop:"maxHeight",transform:Je}),Lf=We({prop:"minHeight",transform:Je});We({prop:"size",cssProperty:"width",transform:Je});We({prop:"size",cssProperty:"height",transform:Je});const Nf=We({prop:"boxSizing"});Io($f,Xs,Of,Af,Ff,Lf,Nf);const $r={border:{themeKey:"borders",transform:it},borderTop:{themeKey:"borders",transform:it},borderRight:{themeKey:"borders",transform:it},borderBottom:{themeKey:"borders",transform:it},borderLeft:{themeKey:"borders",transform:it},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:it},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Eo},color:{themeKey:"palette",transform:In},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:In},backgroundColor:{themeKey:"palette",transform:In},p:{style:_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:$o},rowGap:{style:Ao},columnGap:{style:Oo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Je},maxWidth:{style:Xs},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 jf(...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 Bf(e,t){return typeof e=="function"?e(t):e}function Vf(){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=Ro(o,c)||{};return p?p(i):Ft(i,r,d=>{let m=ho(h,u,d);return d===m&&typeof d=="string"&&(m=ho(h,u,`${n}${d==="default"?"":le(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??$r;function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const u=ef(o.breakpoints),p=Object.keys(u);let h=u;return Object.keys(c).forEach(v=>{const d=Bf(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}));jf(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":fa(o,ma(p,h))}:fa(o,ma(p,h))}return Array.isArray(r)?r.map(a):a(r)}return t}const Fn=Vf();Fn.filterProps=["sx"];const _f=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??$r;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function zf(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=_f(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 Wf(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 Wf(e,t,n)}function Hf(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(Hf(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 Uf=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 Uf(e)}catch{return e}};function Fo(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function 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])),Fo({type:a,values:l})}function Ss(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 Yf(e,t){const n=Ss(e),r=Ss(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function mo(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,Fo(e)}function Jt(e,t,n){try{return mo(e,t)}catch{return e}}function Lo(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 Fo(e)}function Me(e,t,n){try{return Lo(e,t)}catch{return e}}function No(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 Fo(e)}function De(e,t,n){try{return No(e,t)}catch{return e}}function Zl(e,t=.15){return Ss(e)>.5?Lo(e,t):No(e,t)}function Hr(e,t,n){try{return Zl(e,t)}catch{return e}}const xr={black:"#000",white:"#fff"},Gf={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 ws=tc();function ya(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=No(e.main,o):t==="dark"&&(e.dark=Lo(e.main,s)))}function ba(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 qf(e="light"){return e==="dark"?{main:Sn[200],light:Sn[50],dark:Sn[400]}:{main:Sn[700],light:Sn[400],dark:Sn[800]}}function Kf(e="light"){return e==="dark"?{main:vn[200],light:vn[50],dark:vn[400]}:{main:vn[500],light:vn[300],dark:vn[700]}}function Xf(e="light"){return e==="dark"?{main:xn[500],light:xn[300],dark:xn[700]}:{main:xn[700],light:xn[400],dark:xn[800]}}function Qf(e="light"){return e==="dark"?{main:wn[400],light:wn[300],dark:wn[700]}:{main:wn[700],light:wn[500],dark:wn[900]}}function Zf(e="light"){return e==="dark"?{main:Cn[400],light:Cn[300],dark:Cn[700]}:{main:Cn[800],light:Cn[500],dark:Cn[900]}}function Jf(e="light"){return e==="dark"?{main:Qn[400],light:Qn[300],dark:Qn[700]}:{main:"#ed6c02",light:Qn[500],dark:Qn[900]}}function eh(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Zs(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,i=e.primary||qf(t),a=e.secondary||Kf(t),l=e.error||Xf(t),c=e.info||Qf(t),u=e.success||Zf(t),p=e.warning||Jf(t);function h(g){return o?eh(g):Yf(g,ws.text.primary)>=n?ws.text.primary:ec.text.primary}const v=({color:g,name:C,mainShade:w=500,lightShade:b=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?(ba(o,g,"light",b,r),ba(o,g,"dark",x,r)):(ya(g,"light",b,r),ya(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:Gf,contrastThreshold:n,getContrastText:h,augmentColor:v,tonalOffset:r,...d},s)}function th(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 nh={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 rh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var oh=/[A-Z]|^ms/g,sh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nc=function(t){return t.charCodeAt(1)===45},va=function(t){return t!=null&&typeof t!="boolean"},as=rh(function(e){return nc(e)?e:e.replace(oh,"-$&").toLowerCase()}),xa=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(sh,function(r,o,s){return qt={name:o,styles:s,next:qt},o})}return nh[t]!==1&&!nc(t)&&typeof n=="number"&&n!==0?n+"px":n};function go(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return 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 ih(e,t,n)}}var l=n;return l}function ih(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=go(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;va(a)&&(r+=as(s)+":"+xa(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)va(i[l])&&(r+=as(s)+":"+xa(s,i[l])+";");else{var c=go(e,t,i);switch(s){case"animation":case"animationName":{r+=as(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var Sa=/label:\s*([^\s;{]+)\s*(;|$)/g,qt;function ah(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+=go(n,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=go(n,t,e[a]),r){var l=s;o+=l[a]}Sa.lastIndex=0;for(var c="",u;(u=Sa.exec(o))!==null;)c+="-"+u[1];var p=th(o)+c;return{name:p,styles:o,next:qt}}function lh(e,t){return jp(e,t)}function ch(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const wa=[];function cn(e){return wa[0]=e,ah(wa)}const Ue=typeof window<"u"?S.useLayoutEffect:S.useEffect;function uh(e){return Object.keys(e).length===0}function rc(e=null){const t=S.useContext(Lp.ThemeContext);return!t||uh(t)?e:t}const dh=S.createContext(),vt=()=>S.useContext(dh)??!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 ph=S.createContext(void 0);function fh(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 hh({props:e,name:t}){const n=S.useContext(ph);return fh({props:e,name:t,theme:{components:n}})}let Ca=0;function mh(e){const[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t==null&&(Ca+=1,n(`mui-${Ca}`))},[t]),r}const gh={...S},Pa=gh.useId;function xt(e){if(Pa!==void 0){const t=Pa();return e??t}return mh(e)}const yh=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 bh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=yh(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 vh={borderRadius:4};function xh(e=8,t=Ks({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 Sh(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 Js(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=bh(n),l=xh(o);let c=Ge({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...vh,...s}},i);return c=Zp(c),c.applyStyles=Sh,c=t.reduce((u,p)=>Ge(u,p),c),c.unstable_sxConfig={...$r,...i?.unstable_sxConfig},c.unstable_sx=function(p){return Fn({sx:p,theme:this})},c}const wh=Js();function Ch(e=wh){return rc(e)}const ka=(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])})},Ph=(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)},kh=(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 ls(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return Ph(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,p=kh(a,l);Object.assign(o,{[u]:p}),ka(s,a,`var(${u})`,c),ka(i,a,`var(${u}, ${p})`,c)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function Th(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}=ls(c,t);let v=h;const d={},{[l]:m,...g}=i;if(Object.entries(g||{}).forEach(([x,P])=>{const{vars:k,css:I,varsWithDefaults:R}=ls(P,t);v=Ge(v,R),d[x]={css:I,vars:k}}),m){const{css:x,vars:P,varsWithDefaults:k}=ls(m,t);v=Ge(v,k),d[l]={css:x,vars:P}}function C(x,P){let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),x){if(k==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${i[x]?.palette?.mode||x})`]:{":root":P}};if(k)return e.defaultColorScheme===x?`:root, ${k.replace("%s",String(x))}`:k.replace("%s",String(x))}return":root"}return{vars: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 k(A,O){Object.keys(O).length&&x.push(typeof A=="string"?{[A]:{...O}}:A)}k(n(void 0,{...p}),p);const{[P]:I,...R}=d;if(I){const{css:A}=I,O=i[P]?.palette?.mode,$=!r&&O?{colorScheme:O,...A}:{...A};k(n(P,{...$}),$)}return Object.entries(R).forEach(([A,{css:O}])=>{const $=i[A]?.palette?.mode,y=!r&&$?{colorScheme:$,...O}:{...O};k(n(A,{...y}),y)}),s&&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 Mh(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 Dh(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const Rh={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ge(e,t,n="Mui"){const r=Rh[t];return r?`${n}-${r}`:`${Yl.generate(e)}-${t}`}function Ih(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Eh(e){return Math.round(e*1e5)/1e5}const Ta={textTransform:"uppercase"},Ma='"Roboto", "Helvetica", "Arial", sans-serif';function $h(e,t){const{fontFamily:n=Ma,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,b,x)=>({fontFamily:n,fontWeight:g,fontSize:v(C),lineHeight:w,...n===Ma?{letterSpacing:`${Eh(b/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,Ta),caption:d(s,12,1.66,.4),overline:d(s,12,2.66,1,Ta),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 Oh=.2,Ah=.14,Fh=.12;function Ne(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Oh})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ah})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Fh})`].join(",")}const Lh=["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)],Nh={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)"},jh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Da(e){return`${Math.round(e)}ms`}function Bh(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Vh(e){const t={...Nh,...e.easing},n={...jh,...e.duration};return{getAutoHeightDuration:Bh,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:Da(i)} ${a} ${typeof l=="string"?l:Da(l)}`).join(",")},...e,easing:t,duration:n}}const _h={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function zh(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];!zh(a)||i.startsWith("unstable_")?delete r[i]:kt(a)&&(r[i]={...a},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
10
|
+
|
|
11
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
12
|
+
|
|
13
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
14
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
15
|
+
|
|
16
|
+
export default theme;`}function Ra(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Wh=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 Hh(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:mo(t,Wh(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Ra(n)})`:No(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Ra(n)})`:Lo(t,n)}})}function Cs(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=Zs({...s,colorSpace:c}),h=Js(e);let v=Ge(h,{mixins:Ih(h.breakpoints,r),palette:p,shadows:Lh.slice(),typography:$h(p,a),transitions:Vh(i),zIndex:{..._h}});return v=Ge(v,u),v=t.reduce((d,m)=>Ge(d,m),v),v.unstable_sxConfig={...$r,...u?.unstable_sxConfig},v.unstable_sx=function(m){return Fn({sx:m,theme:this})},v.toRuntimeSource=oc,Hh(v),v}function Ps(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 Uh=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ps(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"?Uh:[]}function Yh(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,i=Zs({...t,colorSpace:o});return{palette:i,opacity:{...sc(i.mode),...n},overlays:r||ic(i.mode),...s}}function Gh(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 qh=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Kh=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 qh(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 Xh(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Y(e,t,n){!e[t]&&n&&(e[t]=n)}function ur(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ql(e)}function Et(e,t){`${t}Channel`in e||(e[`${t}Channel`]=cr(ur(e[t])))}function Qh(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{}},Zh=(e="mui")=>He.unstable_createGetCssVar(e);function cs(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=Yh({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:i,...a}=Cs({...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 Jh(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=Gh,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=Zh(s),{[h]:d,light:m,dark:g,...C}=n,w={...C};let b=d;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(At(21,h));let x;i&&(x="oklch");const P=cs(x,w,b,u,h);m&&!w.light&&cs(x,w,m,void 0,"light"),g&&!w.dark&&cs(x,w,g,void 0,"dark");let k={defaultColorScheme:h,...P,cssVarPrefix:s,colorSchemeSelector:l,rootSelector:c,getCssVar:v,colorSchemes:w,font:{...Mh(P.typography),...P.font},spacing:Qh(u.spacing)};Object.keys(k.colorSchemes).forEach($=>{const y=k.colorSchemes[$].palette,E=M=>{const T=M.split("-"),F=T[1],L=T[2];return v(M,y[F][L])};y.mode==="light"&&(Y(y.common,"background","#fff"),Y(y.common,"onBackground","#000")),y.mode==="dark"&&(Y(y.common,"background","#000"),Y(y.common,"onBackground","#fff"));function D(M,T,F){if(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}, ${T}, ${L})`}return M(T,F)}if(Xh(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){Y(y.Alert,"errorColor",D(Me,y.error.light,.6)),Y(y.Alert,"infoColor",D(Me,y.info.light,.6)),Y(y.Alert,"successColor",D(Me,y.success.light,.6)),Y(y.Alert,"warningColor",D(Me,y.warning.light,.6)),Y(y.Alert,"errorFilledBg",E("palette-error-main")),Y(y.Alert,"infoFilledBg",E("palette-info-main")),Y(y.Alert,"successFilledBg",E("palette-success-main")),Y(y.Alert,"warningFilledBg",E("palette-warning-main")),Y(y.Alert,"errorFilledColor",Ct(()=>y.getContrastText(y.error.main))),Y(y.Alert,"infoFilledColor",Ct(()=>y.getContrastText(y.info.main))),Y(y.Alert,"successFilledColor",Ct(()=>y.getContrastText(y.success.main))),Y(y.Alert,"warningFilledColor",Ct(()=>y.getContrastText(y.warning.main))),Y(y.Alert,"errorStandardBg",D(De,y.error.light,.9)),Y(y.Alert,"infoStandardBg",D(De,y.info.light,.9)),Y(y.Alert,"successStandardBg",D(De,y.success.light,.9)),Y(y.Alert,"warningStandardBg",D(De,y.warning.light,.9)),Y(y.Alert,"errorIconColor",E("palette-error-main")),Y(y.Alert,"infoIconColor",E("palette-info-main")),Y(y.Alert,"successIconColor",E("palette-success-main")),Y(y.Alert,"warningIconColor",E("palette-warning-main")),Y(y.AppBar,"defaultBg",E("palette-grey-100")),Y(y.Avatar,"defaultBg",E("palette-grey-400")),Y(y.Button,"inheritContainedBg",E("palette-grey-300")),Y(y.Button,"inheritContainedHoverBg",E("palette-grey-A100")),Y(y.Chip,"defaultBorder",E("palette-grey-400")),Y(y.Chip,"defaultAvatarColor",E("palette-grey-700")),Y(y.Chip,"defaultIconColor",E("palette-grey-700")),Y(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Y(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Y(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Y(y.LinearProgress,"primaryBg",D(De,y.primary.main,.62)),Y(y.LinearProgress,"secondaryBg",D(De,y.secondary.main,.62)),Y(y.LinearProgress,"errorBg",D(De,y.error.main,.62)),Y(y.LinearProgress,"infoBg",D(De,y.info.main,.62)),Y(y.LinearProgress,"successBg",D(De,y.success.main,.62)),Y(y.LinearProgress,"warningBg",D(De,y.warning.main,.62)),Y(y.Skeleton,"bg",x?D(Jt,y.text.primary,.11):`rgba(${E("palette-text-primaryChannel")} / 0.11)`),Y(y.Slider,"primaryTrack",D(De,y.primary.main,.62)),Y(y.Slider,"secondaryTrack",D(De,y.secondary.main,.62)),Y(y.Slider,"errorTrack",D(De,y.error.main,.62)),Y(y.Slider,"infoTrack",D(De,y.info.main,.62)),Y(y.Slider,"successTrack",D(De,y.success.main,.62)),Y(y.Slider,"warningTrack",D(De,y.warning.main,.62));const M=x?D(Me,y.background.default,.6825):Hr(y.background.default,.8);Y(y.SnackbarContent,"bg",M),Y(y.SnackbarContent,"color",Ct(()=>x?ws.text.primary:y.getContrastText(M))),Y(y.SpeedDialAction,"fabHoverBg",Hr(y.background.paper,.15)),Y(y.StepConnector,"border",E("palette-grey-400")),Y(y.StepContent,"border",E("palette-grey-400")),Y(y.Switch,"defaultColor",E("palette-common-white")),Y(y.Switch,"defaultDisabledColor",E("palette-grey-100")),Y(y.Switch,"primaryDisabledColor",D(De,y.primary.main,.62)),Y(y.Switch,"secondaryDisabledColor",D(De,y.secondary.main,.62)),Y(y.Switch,"errorDisabledColor",D(De,y.error.main,.62)),Y(y.Switch,"infoDisabledColor",D(De,y.info.main,.62)),Y(y.Switch,"successDisabledColor",D(De,y.success.main,.62)),Y(y.Switch,"warningDisabledColor",D(De,y.warning.main,.62)),Y(y.TableCell,"border",D(De,D(Jt,y.divider,1),.88)),Y(y.Tooltip,"bg",D(Jt,y.grey[700],.92))}if(y.mode==="dark"){Y(y.Alert,"errorColor",D(De,y.error.light,.6)),Y(y.Alert,"infoColor",D(De,y.info.light,.6)),Y(y.Alert,"successColor",D(De,y.success.light,.6)),Y(y.Alert,"warningColor",D(De,y.warning.light,.6)),Y(y.Alert,"errorFilledBg",E("palette-error-dark")),Y(y.Alert,"infoFilledBg",E("palette-info-dark")),Y(y.Alert,"successFilledBg",E("palette-success-dark")),Y(y.Alert,"warningFilledBg",E("palette-warning-dark")),Y(y.Alert,"errorFilledColor",Ct(()=>y.getContrastText(y.error.dark))),Y(y.Alert,"infoFilledColor",Ct(()=>y.getContrastText(y.info.dark))),Y(y.Alert,"successFilledColor",Ct(()=>y.getContrastText(y.success.dark))),Y(y.Alert,"warningFilledColor",Ct(()=>y.getContrastText(y.warning.dark))),Y(y.Alert,"errorStandardBg",D(Me,y.error.light,.9)),Y(y.Alert,"infoStandardBg",D(Me,y.info.light,.9)),Y(y.Alert,"successStandardBg",D(Me,y.success.light,.9)),Y(y.Alert,"warningStandardBg",D(Me,y.warning.light,.9)),Y(y.Alert,"errorIconColor",E("palette-error-main")),Y(y.Alert,"infoIconColor",E("palette-info-main")),Y(y.Alert,"successIconColor",E("palette-success-main")),Y(y.Alert,"warningIconColor",E("palette-warning-main")),Y(y.AppBar,"defaultBg",E("palette-grey-900")),Y(y.AppBar,"darkBg",E("palette-background-paper")),Y(y.AppBar,"darkColor",E("palette-text-primary")),Y(y.Avatar,"defaultBg",E("palette-grey-600")),Y(y.Button,"inheritContainedBg",E("palette-grey-800")),Y(y.Button,"inheritContainedHoverBg",E("palette-grey-700")),Y(y.Chip,"defaultBorder",E("palette-grey-700")),Y(y.Chip,"defaultAvatarColor",E("palette-grey-300")),Y(y.Chip,"defaultIconColor",E("palette-grey-300")),Y(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Y(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Y(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Y(y.LinearProgress,"primaryBg",D(Me,y.primary.main,.5)),Y(y.LinearProgress,"secondaryBg",D(Me,y.secondary.main,.5)),Y(y.LinearProgress,"errorBg",D(Me,y.error.main,.5)),Y(y.LinearProgress,"infoBg",D(Me,y.info.main,.5)),Y(y.LinearProgress,"successBg",D(Me,y.success.main,.5)),Y(y.LinearProgress,"warningBg",D(Me,y.warning.main,.5)),Y(y.Skeleton,"bg",x?D(Jt,y.text.primary,.13):`rgba(${E("palette-text-primaryChannel")} / 0.13)`),Y(y.Slider,"primaryTrack",D(Me,y.primary.main,.5)),Y(y.Slider,"secondaryTrack",D(Me,y.secondary.main,.5)),Y(y.Slider,"errorTrack",D(Me,y.error.main,.5)),Y(y.Slider,"infoTrack",D(Me,y.info.main,.5)),Y(y.Slider,"successTrack",D(Me,y.success.main,.5)),Y(y.Slider,"warningTrack",D(Me,y.warning.main,.5));const M=x?D(De,y.background.default,.985):Hr(y.background.default,.98);Y(y.SnackbarContent,"bg",M),Y(y.SnackbarContent,"color",Ct(()=>x?ec.text.primary:y.getContrastText(M))),Y(y.SpeedDialAction,"fabHoverBg",Hr(y.background.paper,.15)),Y(y.StepConnector,"border",E("palette-grey-600")),Y(y.StepContent,"border",E("palette-grey-600")),Y(y.Switch,"defaultColor",E("palette-grey-300")),Y(y.Switch,"defaultDisabledColor",E("palette-grey-600")),Y(y.Switch,"primaryDisabledColor",D(Me,y.primary.main,.55)),Y(y.Switch,"secondaryDisabledColor",D(Me,y.secondary.main,.55)),Y(y.Switch,"errorDisabledColor",D(Me,y.error.main,.55)),Y(y.Switch,"infoDisabledColor",D(Me,y.info.main,.55)),Y(y.Switch,"successDisabledColor",D(Me,y.success.main,.55)),Y(y.Switch,"warningDisabledColor",D(Me,y.warning.main,.55)),Y(y.TableCell,"border",D(Me,D(Jt,y.divider,1),.68)),Y(y.Tooltip,"bg",D(Jt,y.grey[700],.92))}Et(y.background,"default"),Et(y.background,"paper"),Et(y.common,"background"),Et(y.common,"onBackground"),Et(y,"divider"),Object.keys(y).forEach(M=>{const T=y[M];M!=="tonalOffset"&&T&&typeof T=="object"&&(T.main&&Y(y[M],"mainChannel",cr(ur(T.main))),T.light&&Y(y[M],"lightChannel",cr(ur(T.light))),T.dark&&Y(y[M],"darkChannel",cr(ur(T.dark))),T.contrastText&&Y(y[M],"contrastTextChannel",cr(ur(T.contrastText))),M==="text"&&(Et(y[M],"primary"),Et(y[M],"secondary")),M==="action"&&(T.active&&Et(y[M],"active"),T.selected&&Et(y[M],"selected")))})}),k=t.reduce(($,y)=>Ge($,y),k);const I={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Kh(k),enableContrastVars:i},{vars:R,generateThemeVars:A,generateStyleSheets:O}=Th(k,I);return k.vars=R,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([$,y])=>{k[$]=y}),k.generateThemeVars=A,k.generateStyleSheets=O,k.generateSpacing=function(){return He.createSpacing(u.spacing,Ks(this))},k.getColorSchemeSelector=Dh(l),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=a,k.unstable_sxConfig={...$r,...u?.unstable_sxConfig},k.unstable_sx=function(y){return Fn({sx:y,theme:this})},k.toRuntimeSource=oc,k}function Ia(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Zs({...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 Cs(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const p=Cs({...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},Ia(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},Ia(p,"light",c.light)),p}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),Jh({...i,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const jo=ac(),Un="$$material";function gn(){const e=He.useTheme(jo);return e[Un]||e}function em(e){return f.jsx(He.GlobalStyles,{...e,defaultTheme:jo,themeId:Un})}function tm(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 nm=Js();function us(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 rm(e){return e?(t,n)=>n[e]:null}function om(e,t,n){e.theme=am(e.theme)?n:e.theme[t]||e.theme}function to(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>to(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?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 sm(e={}){const{themeId:t,defaultTheme:n=nm,rootShouldForwardProp:r=us,slotShouldForwardProp:o=us}=e;function s(a){om(a,t,n)}return(a,l={})=>{ch(a,k=>k.filter(I=>I!==Fn));const{name:c,slot:u,skipVariantsResolver:p,skipSx:h,overridesResolver:v=rm(cm(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=us;u==="Root"||u==="root"?w=r:u?w=o:lm(a)&&(w=void 0);const b=lh(a,{shouldForwardProp:w,label:im(),...d}),x=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(R){return to(R,k,R.theme.modularCssLayers?m:void 0)};if(kt(k)){const I=tm(k);return function(A){return I.variants?to(A,I,A.theme.modularCssLayers?m:void 0):A.theme.modularCssLayers?an(I.style,m):I.style}}return k},P=(...k)=>{const I=[],R=k.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 T={};for(const F in M)T[F]=to(E,M[F],E.theme.modularCssLayers?"theme":void 0);return v(E,T)}),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 y=R.shift(),E=new Array(I.length).fill(""),D=new Array(A.length).fill("");let M;M=[...E,...y,...D],M.raw=[...E,...y.raw,...D],I.unshift(M)}const O=[...I,...R,...A],$=b(...O);return a.muiName&&($.muiName=a.muiName),$};return b.withConfig&&(P.withConfig=b.withConfig),P}}function im(e,t){return void 0}function am(e){for(const t in e)return!1;return!0}function lm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cm(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",G=sm({themeId:Un,defaultTheme:jo,rootShouldForwardProp:pt});function um(e){return function(n){return f.jsx(em,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function dm(){return zf}const Ee=He.unstable_memoTheme;function Ce(e){return hh(e)}function he(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ge(e,o,n)}),r}function pm(e){return ge("MuiSvgIcon",e)}he("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const fm=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(n)}`]};return me(o,pm,r)},hm=G("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${le(n.color)}`],t[`fontSize${le(n.fontSize)}`]]}})(Ee(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),yo=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:p,viewBox: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=fm(m);return f.jsxs(hm,{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]})});yo.muiName="SvgIcon";function $e(e,t){function n(r,o){return f.jsx(yo,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=yo.muiName,S.memo(S.forwardRef(n))}function 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 no(e,t){return S.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Ye(e){return e&&e.ownerDocument||document}function Lt(e){return Ye(e).defaultView||window}function ks(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 mm(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=>{mm(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 ei=$e(f.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),pc=2,gm=24,ym=(e,t,n)=>Math.min(Math.max(e+t,1),Math.min(n,gm)),Tt=16,bm=Tt/2;function vm(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}const Bo=80,fc=3,xm=2,Sm=1,hc=16,mc=e=>e*Bo+(e-1)*Tt,wm=(e,t=fc)=>Math.min(Math.max(Math.round((e+Tt)/(Bo+Tt)),t),hc),gc=240;function Cm(e,t,n=gc){const[r,o]=q.useState(0);return q.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 Pm(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 km=e=>e.row===void 0?1e6:e.row*1e3+(e.col??0);function Tm({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=q.useRef(null),[c,u]=q.useState(0);q.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(z.Box,{ref:l,sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},columnGap:`${Tt}px`,rowGap:`${s}px`,...a&&{gridAutoRows:`${Bo}px`}},children:e.map((h,v)=>f.jsx(z.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=Pm(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:km(h),md:0}}})():{gridColumn:{md:vm(h.colspan===void 0&&p>1?{...h,colspan:p}:h,t)}}},children:r(h,v)},n(h,v)))})}function Vo(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"],ti=["line_chart","bar_chart","big_value","scatter_chart","shape_map","segment_map","combo_chart"],Sc=e=>ti.includes(e),Ts=new Set([...xc,"viz"]);function Or(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(!Ts.has(i))return;r.push(i)}else{if(o!==void 0||!Ts.has(s))return;o=s}return{negated:r,...o!==void 0&&{pick:o}}}function ni(e){const t=e.trim();return!/^#[ \t]/.test(t)||Or(t)?!1:(Vo(t).match(/[A-Za-z_]+/g)??[]).some(r=>Ts.has(r))}function Mm(){return["#",...ti.filter(e=>e!=="big_value").map(e=>`-${e}`)].join(" ")}function Dm(e,t){return["#",...ti.filter(r=>r!==e&&(t===void 0||t.includes(r)||e==="none"&&r==="big_value")).map(r=>`-${r}`),"-viz",...e==="none"?[]:[e]].join(" ")}function Rm(e){return e.pick!==void 0?Sc(e.pick)?e.pick:"custom":e.negated.includes("viz")?"none":"custom"}function Im(e){if(e.length===0)return"default";if(e.length>1)return"custom";const t=Or(e[0]);return t?Rm(t):"custom"}function Em(e){const t=e.filter(n=>Or(n));return e.some(ni)?"custom":t.length===0?void 0:Im(t)}const $m=/^#[ \t]*theme\.palette\.series[ \t]*=[ \t]*\[[ \t]*"(#[0-9A-Fa-f]{6})"[ \t]*\][ \t]*$/;function Om(e){return $m.exec(e.trim())?.[1]?.toLowerCase()}const Am=e=>`# theme.palette.series=["${e.toLowerCase()}"]`,Fm="# -theme.palette.series",wc=e=>/^#[0-9A-Fa-f]{6}$/.test(e);function Lm(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 Nm=e=>e.filter(t=>Or(t)||ni(t)),_o=$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=q.useId(),p=Se.usePublisherTheme().theme.ui;return f.jsxs(z.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(z.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(z.IconButton,{"aria-label":"Close",onClick:t,size:"small",sx:{color:"text.secondary",mr:-1},children:f.jsx(_o,{fontSize:"small"})})]}),f.jsxs(z.DialogContent,{sx:{px:3,pb:1,pt:1},children:[r&&f.jsx(z.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:r}),f.jsx(z.Stack,{sx:{gap:2,pt:r?0:1},children:c})]}),i&&f.jsx(z.DialogActions,{sx:{px:3,pb:3,pt:2,gap:1},children:i})]})}function jm({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(z.Button,{onClick:n,children:"Keep editing"}),f.jsx(z.Button,{color:"error",onClick:r,children:"Discard changes"}),t&&o&&f.jsx(z.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 Bm({label:e,onClick:t,disabled:n}){return f.jsx(z.Button,{variant:"contained",color:"primary",startIcon:f.jsx(ei,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function Vm({label:e,icon:t,onClick:n,disabled:r,disabledReason:o,ariaLabel:s,ariaHasPopup:i}){const a=f.jsx("span",{children:f.jsx(z.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(z.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"})),Ar="120ms",Fr={"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},_m=()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches?"auto":"smooth",Tc={"@media (hover: none)":{opacity:1}},zm=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 /,""),ri=(e,t)=>`color-mix(in srgb, ${Yn(e)}, ${t} 25%)`,zo={line_chart:"A line chart",bar_chart:"A bar chart",scatter_chart:"A scatter chart",combo_chart:"A bar and line chart"},Wm={line:"line_chart",bar:"bar_chart",scatter:"scatter_chart",combo:"combo_chart"},Hm=new Set(["x","y","y2","series"]);function Ms(e){const t=e.trim();return!t.startsWith("#")||t.startsWith("#(")||t.startsWith('#"')?[]:Vo(t.slice(1)).split(/[\s{}[\],]+/).filter(Boolean)}function Dc(e){const t=[];let n;for(const r of e)for(const o of Ms(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=Wm[o.slice(4)]??o;else if(zo[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 Um(e){const t=Dc(e);return t!==void 0&&zo[t]!==void 0}function Rc(e,{groupBys:t,totals:n}){if(zo[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 Ym(e){const t=e.trim();if(!t.startsWith("#(malloy)"))return!1;const n=Vo(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 Ds=e=>e!==void 0&&(e.kind==="measure"||(e.annotations??[]).some(t=>Ym(t?.value??""))),Gm=e=>e.kind==="join"||e.type?.kind==="array_type";function Ic(e){const t=e.filter(Ds).length;return{groupBys:e.filter(r=>!Ds(r)&&!Gm(r)).length,totals:t}}const Ea=e=>Hm.has(e.split("=")[0]);function qm(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&&zo[o];if(!o||!s||r.some(c=>Ms(c).some(Ea))||n.some(c=>(c.annotations??[]).some(u=>Ms(u.value??"").some(Ea))))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 Km=$e(f.jsx("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})),Xm=$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"})),Qm=$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"})),Zm=$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"})),Jm=$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"})),eg=$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 tg(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(Km,{sx:t});case"line_chart":case"sparkline":return f.jsx(Jm,{sx:t});case"scatter_chart":return f.jsx(Zm,{sx:t});case"shape_map":case"segment_map":return f.jsx(Xm,{sx:t});case"big_value":return f.jsx(Qm,{sx:t});default:return f.jsx(eg,{sx:t})}}function ng({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=q.useId(),v=t.trim().toLowerCase(),d=q.useMemo(()=>e.map(P=>({...P,entries:P.entries.filter(k=>v===""||[k.name,k.title,P.label,P.detail??""].join(" ").toLowerCase().includes(v))})).filter(P=>P.entries.length>0),[e,v]),m=d.flatMap(P=>P.entries),g=q.useMemo(()=>new Map(e.flatMap(P=>P.entries).map((P,k)=>[P.key,`${h}-${k}`])),[e,h]),C=P=>g.get(P)??`${h}-none`,w=m.some(P=>P.key===r)?r:void 0,b=P=>{o(P),window.requestAnimationFrame(()=>window.document.getElementById(C(P))?.scrollIntoView({block:"nearest"}))},x=P=>{if(m.length===0)return;const k=m.findIndex(R=>R.key===w),I=k===-1?P===1?0:m.length-1:Math.min(m.length-1,Math.max(0,k+P));b(m[I].key)};return f.jsxs(z.Box,{sx:{display:"flex",flexDirection:"column",minHeight:0,flex:1},children:[f.jsx(z.Box,{sx:{p:1.5,pb:1},children:f.jsx(z.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 k=w??m[0]?.key;if(k===void 0)return;P.preventDefault(),s(k)}},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(z.InputAdornment,{position:"start",children:f.jsx(Ec,{sx:{fontSize:18,color:"text.secondary"}})})}})}),f.jsxs(z.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(z.Typography,{variant:"body2",sx:{color:u.tileTitle,px:2,py:1},children:["No view matches “",t.trim(),"”."]}),d.map(P=>f.jsxs(z.Box,{role:"group","aria-label":P.ariaLabel??P.label,children:[f.jsxs(z.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(z.Box,{component:"span",sx:{...p.type.label,fontSize:"0.92em",letterSpacing:"0.04em",textTransform:"uppercase"},children:P.label.replace(/_+/g," ")}),P.detail&&` · ${P.detail}`]}),P.entries.map(k=>{const I=k.key===r;return f.jsxs(z.Box,{id:C(k.key),role:"option","aria-selected":I,"aria-label":`${k.title} (${k.name})`,onClick:()=>{c||b(k.key)},onDoubleClick:()=>{c||s(k.key)},sx:R=>({display:"flex",alignItems:"center",gap:1.25,mx:.75,px:1.25,py:.75,borderRadius:p.radius.control,cursor:c?"default":"pointer",bgcolor:I?`color-mix(in srgb, ${u.accent} 9%, ${R.palette.background.paper})`:"transparent","&:hover":I||c?{}:{bgcolor:R.palette.action.hover}}),children:[f.jsx(z.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:k.chart})}),f.jsxs(z.Box,{sx:{minWidth:0},children:[f.jsx(z.Box,{sx:{...p.type.control,fontWeight:I?p.type.label.fontWeight:400,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:k.title}),f.jsx(z.Box,{sx:{...p.type.code,color:"text.secondary"},children:k.name})]})]},k.key)})]},P.key)),v===""&&l]})]})}const rg=new Set(["bar","line","chart","scatter_chart","combo"]),og=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function sg(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":rg.has(e)?"container":"content"}function ig(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&og.has(e)}function ag(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 lg(e,t){const n=Oc(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const oi=400,cg=700,ug=700;function dg({renderAs:e,maxHeight:t,tableMaxHeight:n}){return e!=="table"||n===void 0?t:t===void 0?n:Math.min(t,n)}const pg=600,fg=800,Ac=400,Fc=2e3;function Lc(e,t){const n=t??Fc;return e===void 0?n:Math.min(e,n)}function Rs({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 hg(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 mg(e,t){if(e==="linear")return{layout:"linear",columns:1,widths:!1,insertBetween:!0,tileMaxHeight:void 0,tableMaxHeight:ug};const n=t??pc;return{layout:"grid",columns:n,widths:n>1,insertBetween:!1,tileMaxHeight:oi,tableMaxHeight:void 0}}const Bc="document.malloy",Vc=e=>e.slice(0,e.lastIndexOf("/")+1),si=(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(si(s.from,r)))}function gg(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(si(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 yg=$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"})),bg=$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"})),vg=600,$a=()=>typeof IntersectionObserver>"u";function xg(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 Sg(e=vg){const[t,n]=q.useState($a),r=q.useRef(t),o=q.useRef(null),s=q.useCallback(i=>{if(o.current?.disconnect(),o.current=null,!i||r.current||$a())return;const a=i.getBoundingClientRect(),l=xg(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 q.useEffect(()=>()=>o.current?.disconnect(),[]),q.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(z.Alert,{severity:"error",sx:{"& .MuiAlert-message":{minWidth:0,flex:1}},children:[e!==void 0&&f.jsx(z.Box,{sx:{mb:.5},children:e}),f.jsx(z.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 wg(e){const t=Cg(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 Cg(e){return e.type?.startsWith("filter<")?e.default?.match(/^f(['"])([\s\S]*)\1$/)?.[2]??e.default:e.default}function Uc(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}function Pg(e,t){if(e==null||e==="")return;const n=o=>`'${Uc(o)}'`;switch(t===void 0?kg(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=Oa(e);return o&&`@${o}`}case"timestamp":{const o=Oa(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 kg(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 Oa(e){return e instanceof Date?Number.isNaN(e.getTime())?void 0:e.toISOString().slice(0,10):/^(\d{4}-\d{2}-\d{2})/.exec(String(e))?.[1]}const Ln="malloy-publisher.report-draft:",Nn={storage:()=>window.localStorage};function Tg(e){const{server:t,environmentName:n,packageName:r,versionId:o,path:s}=e;return`${t}|${n}/${r}@${o??""}/${s}`}function Mg(e){if(typeof e=="string"){ro(e);return}const{server:t,environmentName:n,packageName:r,path:o}=e,s=`${n}/${r}@`,i=e.versionId!==void 0?`${e.versionId}/${o}`:void 0;try{const a=Nn.storage(),l=[];for(let c=0;c<a.length;c++){const u=a.key(c);if(!u?.startsWith(Ln))continue;const p=u.slice(Ln.length),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 Dg(){try{const e=`${Ln}probe`;return Nn.storage().setItem(e,"1"),Nn.storage().removeItem(e),!0}catch{return!1}}function Rg(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 Ig(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 Eg(e,t){try{return Nn.storage().setItem(Ln+e,JSON.stringify(t)),!0}catch{return!1}}function ro(e){try{Nn.storage().removeItem(Ln+e)}catch{}}function ds(e,t){const n=e;for(const r of Object.keys(n))delete n[r];Object.assign(n,structuredClone(t))}function $g(e,t,n){const[r,o]=q.useState(),[s,i]=q.useState(),[a,l]=q.useState(!1),c=q.useRef(void 0),u=q.useRef(void 0),p=q.useRef(!1),h=Rg(n),v=q.useRef(t);v.current=t;const d=q.useRef(!1);q.useEffect(()=>{if(e===void 0||d.current)return;d.current=!0;const x=Ig(e);if(!x)return;const P=v.current;if(JSON.stringify(x.document)===JSON.stringify(P.document)){ro(e);return}if(x.base!==h){c.current=x,o({savedAt:x.savedAt,stale:!0,pending:!0});return}P.update(k=>ds(k,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;q.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){ro(e),i(void 0),l(!1);return}const x=Date.now();Eg(e,{v:1,document:m,base:h,savedAt:x})?(i(x),l(!1)):(i(void 0),l(!0))},[e,m,g,h]);const C=q.useCallback(()=>{const x=c.current;x&&(c.current=void 0,v.current.update(P=>ds(P,x.document)),u.current=JSON.stringify(x.document),p.current=!0,o(P=>P&&{...P,pending:!1}))},[]),w=q.useCallback(()=>{c.current||(u.current=void 0,o(void 0))},[]),b=q.useCallback(()=>{if(c.current&&e!==void 0){c.current=void 0,ro(e),o(void 0);return}const x=v.current;x.update(P=>ds(P,x.saved)),u.current=void 0,o(void 0)},[e]);return{keptAt:s,keeping:!a,restored:r,dismissRestored:w,discard:b,restoreOffered:C}}const Yc=(e,t)=>({...t,...e}),Gc={emit:()=>{},listening:!1};function bo(e,t){return t?{listening:!0,emit:n=>{try{t(Yc(n,e))}catch{}}}:Gc}function Og(e,t){const n=q.useRef(t);n.current=t;const r=t!==void 0,{path:o,layout:s}=e;return q.useMemo(()=>bo({path:o,...s?{layout:s}:{}},r?i=>n.current?.(i):void 0),[o,s,r])}const qc=q.createContext(Gc),ii=()=>q.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 oo={exports:{}},Ag=oo.exports,Aa;function Fg(){return Aa||(Aa=1,(function(e,t){(function(n,r){e.exports=r()})(Ag,(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"],T=D%100;return"["+D+(M[(T-20)%10]||M[T]||M[0])+"]"}},b=function(D,M,T){var F=String(D);return!F||F.length>=M?D:""+Array(M+1-F.length).join(T)+D},x={s:b,z:function(D){var M=-D.utcOffset(),T=Math.abs(M),F=Math.floor(T/60),L=T%60;return(M<=0?"+":"-")+b(F,2,"0")+":"+b(L,2,"0")},m:function D(M,T){if(M.date()<T.date())return-D(T,M);var F=12*(T.year()-M.year())+(T.month()-M.month()),L=M.clone().add(F,p),N=T-L<0,H=M.clone().add(F+(N?-1:1),p);return+(-(F+(T-L)/(N?L-H:H-L))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:p,y: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",k={};k[P]=w;var I="$isDayjsObject",R=function(D){return D instanceof y||!(!D||!D[I])},A=function D(M,T,F){var L;if(!M)return P;if(typeof M=="string"){var N=M.toLowerCase();k[N]&&(L=N),T&&(k[N]=T,L=N);var H=M.split("-");if(!L&&H.length>1)return D(H[0])}else{var Q=M.name;k[Q]=M,L=Q}return!F&&L&&(P=L),L||!F&&P},O=function(D,M){if(R(D))return D.clone();var T=typeof M=="object"?M:{};return T.date=D,T.args=arguments,new y(T)},$=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 y=(function(){function D(T){this.$L=A(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[I]=!0}var M=D.prototype;return M.parse=function(T){this.$d=(function(F){var L=F.date,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 H=L.match(g);if(H){var Q=H[2]-1||0,K=(H[7]||"0").substring(0,3);return N?new Date(Date.UTC(H[1],Q,H[3]||1,H[4]||0,H[5]||0,H[6]||0,K)):new Date(H[1],Q,H[3]||1,H[4]||0,H[5]||0,H[6]||0,K)}}return new Date(L)})(T),this.init()},M.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},M.$utils=function(){return $},M.isValid=function(){return this.$d.toString()!==m},M.isSame=function(T,F){var L=O(T);return this.startOf(F)<=L&&L<=this.endOf(F)},M.isAfter=function(T,F){return O(T)<this.startOf(F)},M.isBefore=function(T,F){return this.endOf(F)<O(T)},M.$g=function(T,F,L){return $.u(T)?this[F]:this.set(L,T)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(T,F){var L=this,N=!!$.u(F)||F,H=$.p(T),Q=function(_,U){var ne=$.w(L.$u?Date.UTC(L.$y,U,_):new Date(L.$y,U,_),L);return N?ne:ne.endOf(c)},K=function(_,U){return $.w(L.toDate()[_].apply(L.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(U)),L)},se=this.$W,re=this.$M,B=this.$D,J="set"+(this.$u?"UTC":"");switch(H){case v:return N?Q(1,0):Q(31,11);case p:return N?Q(1,re):Q(0,re+1);case u:var ee=this.$locale().weekStart||0,X=(se<ee?se+7:se)-ee;return Q(N?B-X:B+(6-X),re);case c:case d:return K(J+"Hours",0);case l:return K(J+"Minutes",1);case a:return K(J+"Seconds",2);case i:return K(J+"Milliseconds",3);default:return this.clone()}},M.endOf=function(T){return this.startOf(T,!1)},M.$set=function(T,F){var L,N=$.p(T),H="set"+(this.$u?"UTC":""),Q=(L={},L[c]=H+"Date",L[d]=H+"Date",L[p]=H+"Month",L[v]=H+"FullYear",L[l]=H+"Hours",L[a]=H+"Minutes",L[i]=H+"Seconds",L[s]=H+"Milliseconds",L)[N],K=N===c?this.$D+(F-this.$W):F;if(N===p||N===v){var se=this.clone().set(d,1);se.$d[Q](K),se.init(),this.$d=se.set(d,Math.min(this.$D,se.daysInMonth())).$d}else Q&&this.$d[Q](K);return this.init(),this},M.set=function(T,F){return this.clone().$set(T,F)},M.get=function(T){return this[$.p(T)]()},M.add=function(T,F){var L,N=this;T=Number(T);var H=$.p(F),Q=function(re){var B=O(N);return $.w(B.date(B.date()+Math.round(re*T)),N)};if(H===p)return this.set(p,this.$M+T);if(H===v)return this.set(v,this.$y+T);if(H===c)return Q(1);if(H===u)return Q(7);var K=(L={},L[a]=r,L[l]=o,L[i]=n,L)[H]||1,se=this.$d.getTime()+T*K;return $.w(se,this)},M.subtract=function(T,F){return this.add(-1*T,F)},M.format=function(T){var F=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var N=T||"YYYY-MM-DDTHH:mm:ssZ",H=$.z(this),Q=this.$H,K=this.$m,se=this.$M,re=L.weekdays,B=L.months,J=L.meridiem,ee=function(U,ne,te,V){return U&&(U[ne]||U(F,N))||te[ne].slice(0,V)},X=function(U){return $.s(Q%12||12,U,"0")},_=J||function(U,ne,te){var V=U<12?"AM":"PM";return te?V.toLowerCase():V};return N.replace(C,(function(U,ne){return ne||(function(te){switch(te){case"YY":return String(F.$y).slice(-2);case"YYYY":return $.s(F.$y,4,"0");case"M":return se+1;case"MM":return $.s(se+1,2,"0");case"MMM":return ee(L.monthsShort,se,B,3);case"MMMM":return ee(B,se);case"D":return F.$D;case"DD":return $.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return ee(L.weekdaysMin,F.$W,re,2);case"ddd":return ee(L.weekdaysShort,F.$W,re,3);case"dddd":return re[F.$W];case"H":return String(Q);case"HH":return $.s(Q,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return _(Q,K,!0);case"A":return _(Q,K,!1);case"m":return String(K);case"mm":return $.s(K,2,"0");case"s":return String(F.$s);case"ss":return $.s(F.$s,2,"0");case"SSS":return $.s(F.$ms,3,"0");case"Z":return H}return null})(U)||H.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(T,F,L){var N,H=this,Q=$.p(F),K=O(T),se=(K.utcOffset()-this.utcOffset())*r,re=this-K,B=function(){return $.m(H,K)};switch(Q){case v:N=B()/12;break;case p:N=B();break;case h:N=B()/3;break;case u:N=(re-se)/6048e5;break;case c:N=(re-se)/864e5;break;case l:N=re/o;break;case a:N=re/r;break;case i:N=re/n;break;default:N=re}return L?N:$.a(N)},M.daysInMonth=function(){return this.endOf(p).$D},M.$locale=function(){return k[this.$L]},M.locale=function(T,F){if(!T)return this.$L;var L=this.clone(),N=A(T,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=y.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,y,O),D.$i=!0),O},O.locale=A,O.isDayjs=R,O.unix=function(D){return O(1e3*D)},O.en=k[P],O.Ls=k,O.p={},O}))})(oo)),oo.exports}var Lg=Fg();const Re=jt(Lg);var so={exports:{}},Ng=so.exports,Fa;function jg(){return Fa||(Fa=1,(function(e,t){(function(n,r){e.exports=r()})(Ng,(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 k=P.match(r);if(!k)return null;var I=(""+k[0]).match(o)||["-",0,0],R=I[0],A=60*+I[1]+ +I[2];return A===0?0:R==="+"?A:-A})(m),m===null))return this;var w=Math.abs(m)<=16?60*m:m;if(w===0)return this.utc(g);var b=this.clone();if(g)return b.$offset=w,b.$u=!1,b;var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(b=this.local().add(w+x,n)).$offset=w,b.$x.$localOffset=x,b};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(),b=a(m).local();return d.call(w,b,g,C)}}}))})(so)),so.exports}var Bg=jg();const ai=jt(Bg);Re.extend(ai);function Gt(e){return(e??"").startsWith("filter<")}function Vg(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 li(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 _g(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 zg(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 Wg(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 Hg=/^\d{4}-\d{2}-\d{2}$/;function Ug(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=La(n.fromMoment),o=La(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 La(e){return e.moment==="literal"&&Hg.test(e.literal)?e.literal:void 0}const Yg="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(Na)).filter(Na):[]}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 Wo(e){if(typeof e=="string"){const t=li([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?Wo(e)??"":String(e)}function Gg(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=ru(t);if(n.length===0)return;const r=Wo(e.value);if(r!==void 0)return{to:n,given:su(t),value:r,rawValue:e.value,label:iu(e.value)}}function Na(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)?li([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:Wo(e)}function lu({declaredTypes:e,setGiven:t,documentName:n}){const r=ii(),o=q.useMemo(()=>{const l=new Map;for(const c of e.keys())l.has(c.toLowerCase())||l.set(c.toLowerCase(),c);return l},[e]),s=q.useCallback(l=>e.has(l)?l:o.get(l.toLowerCase()),[e,o]),i=q.useCallback(l=>s(l)!==void 0,[s]),a=q.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 ci(e,t);if(!Array.isArray(e))return String(e)}}function qg(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 Kg=/^(\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 Xg(e,t=!1){const n=uu(e);if(n==="")return;const r=Kg.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=Qg(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 Qg(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!Zg.has(e??"")}const Zg=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 Xg(n,e==="date")??n}default:return t}}function io(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 ci(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 ui(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?ci(i,t.get(s)):i));return o}function di(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?ci(i,void 0):i);return o}function ja(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 ps(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 Ba(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function Jg(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}function Ur(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function fu({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:s}){const i=q.useMemo(()=>ja(t??{},e),[e,JSON.stringify(t)]),a=q.useRef(null),l=q.useRef(null),c=q.useRef({documentKey:o,params:n}),u=y=>y!==null&&Jg(n??{},y,e);u(a.current)&&(l.current=null),(c.current.documentKey!==o||!Ur(n??{},c.current.params??{})&&!u(a.current)&&!u(l.current))&&(c.current={documentKey:o,params:n});const p=c.current.params,h=JSON.stringify(t),v=JSON.stringify(p),d=q.useMemo(()=>ja({...t??{},...p??{}},e),[e,h,v]),m=q.useMemo(()=>JSON.stringify([o??null,Ba(t),Ba(p)]),[o,h,v]),[g,C]=q.useState(null),w=g?.key===m?g:null;q.useEffect(()=>{g!==null&&g.key!==m&&C(null)},[g,m]);const b=q.useMemo(()=>ps(w?.draft??d,e),[w,d,e]),x=q.useMemo(()=>ps(w?.applied??d,e),[w,d,e]),P=q.useCallback(y=>y?.key===m?y:{key:m,draft:d,applied:d},[m,d]),k=q.useMemo(()=>io(x,e),[x,e]);a.current===null&&(a.current=k),q.useEffect(()=>{r&&(Ur(a.current??{},k)||(l.current=a.current,a.current=k,r(k)))},[k,r]);const I=q.useCallback((y,E)=>{C(D=>{const M=P(D),T=new Map(M.draft);return E===null?T.delete(y):T.set(y,E),{key:M.key,draft:T,applied:s?T:M.applied}})},[s,P]),R=q.useCallback(()=>{C(y=>({key:P(y).key,draft:i,applied:i}))},[P,i]),A=q.useCallback(()=>{C(y=>{const E=P(y);return{key:E.key,draft:E.draft,applied:E.draft}})},[P]),O=q.useMemo(()=>{if(s)return!1;if(b.size!==x.size)return!0;for(const[y,E]of b){const D=x.get(y);if(E instanceof Date&&D instanceof Date){if(E.getTime()!==D.getTime())return!0}else if(Array.isArray(E)&&Array.isArray(D)){if(String(E)!==String(D))return!0}else if(E!==D)return!0}return!1},[s,b,x]),$=q.useMemo(()=>{const y=io(ps(i,e),e);return Ur(io(b,e),y)&&Ur(k,y)},[i,b,k,e]);return{draft:b,applied:x,setGiven:I,reset:R,apply:A,pending:O,atStart:$}}const hu="You don't have access to this data";function ey(e){return(e??[]).filter(t=>t.kind==="definition"&&!t.restricted).map(t=>t.text??"").join(`
|
|
17
|
+
|
|
18
|
+
`)}function pi(e,t){return e===""?t:`${e}
|
|
19
|
+
|
|
20
|
+
${t}`}function ty(e){return e?.status===403}const un=1e3,fi=200;function mu(e){const t=e.split(".");return t[t.length-1]}function ny(e,t,n){const r=(n===void 0?un:fi)+1;return`run: ${e} -> {
|
|
21
|
+
group_by: ${t}
|
|
22
|
+
`+(n===void 0?"":` where: ${ry(t,n)}
|
|
23
|
+
`)+` order_by: ${mu(t)} asc
|
|
24
|
+
limit: ${r}
|
|
25
|
+
}`}function ry(e,t){return`strpos(lower(${e}::string), ${oy(t.toLowerCase())}) > 0`}function oy(e){return`'${e.replace(/[\u0000-\u001f\u007f]/g,"").replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}function sy(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=di(ui(t.values,t.declaredTypes,n),iy(t),n);return Object.keys(r).length>0?r:void 0}function iy(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=q.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 b=sy(w,s),x=w.suggest??{},P=[e,t,o,n,w.name,x.query,x.source,x.dimension,b===void 0?null:JSON.stringify(b),...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:b}:{query:pi(i??"",A?`run: ${x.query}`:ny(x.source,x.dimension,I)),compactJson:!0,versionId:o,givens:b},void 0,{signal:R});return ay(O.data.result,x.dimension===void 0?void 0:mu(x.dimension),A?{limit:un,cutOffAt:un}:{limit:I===void 0?un:fi})},searchable:x.query===void 0}}),u=Hn.useQueries({queries:c.map(({identity:w,run:b})=>({queryKey:["givenSuggest",...w],enabled:n!==void 0,staleTime:300*1e3,refetchOnWindowFocus:!1,queryFn:({signal:x})=>b(void 0,x)}))}),p=q.useMemo(()=>{const w=new Map;return l.forEach((b,x)=>{const P=u[x]?.data;b.name&&P&&w.set(b.name,P.values)}),w},[l,JSON.stringify(u.map(w=>w.data))]),h=q.useMemo(()=>{const w=new Set;return l.forEach((b,x)=>{b.name&&u[x]?.isError&&w.add(b.name)}),w},[l,u.map(w=>w.isError).join("|")]),v=u.map(w=>!!w.data?.truncated).join("|"),d=q.useMemo(()=>{const w=new Set;return l.forEach((b,x)=>{b.name&&u[x]?.data?.truncated&&w.add(b.name)}),w},[l,v]),m=JSON.stringify(c.map(w=>w.identity)),g=q.useRef(c);g.current=c;const C=q.useMemo(()=>{const w=new Map;return c.forEach(({spec:b,identity:x,searchable:P},k)=>{!b.name||!P||!d.has(b.name)||w.set(b.name,{key:["givenSuggestSearch",...x],run:(I,R)=>g.current[k].run(I,R)})}),w},[m,d]);return{options:p,isLoading:u.some(w=>w.isLoading),failed:h,truncated:d,search:C}}function ay(e,t,{limit:n,cutOffAt:r}){const o=ly(e);return{values:cy(o.slice(0,n),t),truncated:r===void 0?o.length>n:o.length>=r}}function ly(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 cy(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 uy({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=q.useMemo(()=>new Map(e.filter(R=>R.name!==void 0).map(R=>[R.name,R.type])),[e]),m=q.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:b,truncated:x,search:P}=gu(a,l,c,e,u,{values:g.applied,declaredTypes:d,...v?{host:v}:{}},h),{canSelf:k,onSelf:I}=lu({declaredTypes:d,setGiven:g.setGiven,documentName:p});return{...g,declaredTypes:d,options:C,optionsLoading:w,optionsFailed:b,optionsTruncated:x,optionSearch:P,canSelf:k,onSelf:I,panel:{givens:e,values:g.draft,onChange:g.setGiven,onReset:g.reset,canReset:!g.atStart,options:C,optionsLoading:w,optionsFailed:b,optionsTruncated:x,optionSearch:P,apply:i?void 0:{onApply:g.apply,pending:g.pending}}}}const dy=$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 ao={exports:{}},py=ao.exports,Va;function fy(){return Va||(Va=1,(function(e,t){(function(n,r){e.exports=r()})(py,(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)}}}))})(ao)),ao.exports}var hy=fy();const my=jt(hy);var lo={exports:{}},gy=lo.exports,_a;function yy(){return _a||(_a=1,(function(e,t){(function(n,r){e.exports=r()})(gy,(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),b=60*w[1]+(+w[2]||0);return b===0?0:w[0]==="+"?-b:b})(g)}],h=function(g){var C=l[g];return C&&(C.indexOf?C:C.s.concat(C.f))},v=function(g,C){var w,b=l.meridiem;if(b){for(var x=1;x<=24;x+=1)if(g.indexOf(b(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 b=1;b<=31;b+=1)C(b).replace(/\[|\]/g,"")===g&&(this.day=b)}],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(b){return b.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 b=(g=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(O,$,y){var E=y&&y.toUpperCase();return $||w[y]||n[y]||w[E].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,M,T){return M||T.slice(1)}))}))).match(r),x=b.length,P=0;P<x;P+=1){var k=b[P],I=d[k],R=I&&I[0],A=I&&I[1];b[P]=A?{regex:R,parser:A}:k.replace(/^\[|\]$/g,"")}return function(O){for(var $={},y=0,E=0;y<x;y+=1){var D=b[y];if(typeof D=="string")E+=D.length;else{var M=D.regex,T=D.parser,F=O.slice(E),L=M.exec(F)[0];T.call($,L),O=O.replace(L,"")}}return(function(N){var H=N.afternoon;if(H!==void 0){var Q=N.hours;H?Q<12&&(N.hours+=12):Q===12&&(N.hours=0),delete N.afternoon}})($),$}}return function(g,C,w){w.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var b=C.prototype,x=b.parse;b.parse=function(P){var k=P.date,I=P.utc,R=P.args;this.$u=I;var A=R[1];if(typeof A=="string"){var O=R[2]===!0,$=R[3]===!0,y=O||$,E=R[2];$&&(E=R[2]),l=this.$locale(),!O&&E&&(l=w.Ls[E]),this.$d=(function(F,L,N,H){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*F);var Q=m(L)(F),K=Q.year,se=Q.month,re=Q.day,B=Q.hours,J=Q.minutes,ee=Q.seconds,X=Q.milliseconds,_=Q.zone,U=Q.week,ne=new Date,te=re||(K||se?1:ne.getDate()),V=K||ne.getFullYear(),Z=0;K&&!se||(Z=se>0?se-1:ne.getMonth());var ie,oe=B||0,ce=J||0,ae=ee||0,fe=X||0;return _?new Date(Date.UTC(V,Z,te,oe,ce,ae,fe+60*_.offset*1e3)):N?new Date(Date.UTC(V,Z,te,oe,ce,ae,fe)):(ie=new Date(V,Z,te,oe,ce,ae,fe),U&&(ie=H(ie).week(U).toDate()),ie)}catch{return new Date("")}})(k,A,I,w),this.init(),E&&E!==!0&&(this.$L=this.locale(E).$L),y&&k!=this.format(A)&&(this.$d=new Date("")),l={}}else if(A instanceof Array)for(var D=A.length,M=1;M<=D;M+=1){R[1]=A[M-1];var T=w.apply(this,R);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}M===D&&(this.$d=new Date(""))}else x.call(this,P)}}}))})(lo)),lo.exports}var by=yy();const vy=jt(by);var co={exports:{}},xy=co.exports,za;function Sy(){return za||(za=1,(function(e,t){(function(n,r){e.exports=r()})(xy,(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,b){return w||b.slice(1)}))}))})(l,c===void 0?{}:c);return a.call(this,u)}}}))})(co)),co.exports}var wy=Sy();const Cy=jt(wy);var uo={exports:{}},Py=uo.exports,Wa;function ky(){return Wa||(Wa=1,(function(e,t){(function(n,r){e.exports=r()})(Py,(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))}}}))})(uo)),uo.exports}var Ty=ky();const My=jt(Ty);var po={exports:{}},Dy=po.exports,Ha;function Ry(){return Ha||(Ha=1,(function(e,t){(function(n,r){e.exports=r()})(Dy,(function(){return function(n,r){var o=r.prototype,s=o.format;o.format=function(i){var a=this,l=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(p){switch(p){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return c.s(a.week(),p==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),p==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return p}}));return s.bind(this)(u)}}}))})(po)),po.exports}var Iy=Ry();const Ey=jt(Iy);Re.extend(Cy);Re.extend(my);Re.extend(My);Re.extend(Ey);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"},Oy={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"},fs=["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
|
+
`),Ua=["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
|
+
`),Ay=(e,t)=>t?(...n)=>e(...n).locale(t):e;class vo{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=$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(fs);return Re.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(fs);if(!this.hasTimezonePlugin())throw new Error(Ua);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(fs);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(Ua)}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=Ay(Re,t),this.locale=t,this.formats=j({},Oy,n),Re.extend(vy)}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 Fy({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ch(n);return o=o[r]||o,yu({theme:o,name:t,props:e})}function Ly(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 Ny={...S},bu=Ny.useSyncExternalStore;function jy(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?jy:Ly)(p,a,l,c,u)}}vu();const xu=vu({themeId:Un});function Fe({props:e,name:t}){return Fy({props:e,name:t,defaultTheme:jo,themeId:Un})}const Su=W.oneOfType([W.func,W.object]),Ya={};function wu(e,t){const n=S.useRef(Ya);return n.current===Ya&&(n.current=e(t)),n}const By=[];function Vy(e){S.useEffect(e,By)}class hi{static create(){return new hi}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 mi(){const e=wu(hi.create).current;return Vy(e.disposeEffect),e}function Ga(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 _y={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 gi(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 qa(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=gi({...o,...r}),a=qa(r),l=qa(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 Ho(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?{}:Ho(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)),zy=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let s;if(e!=null)s=e;else if(o.includes(t))s=t;else if(o.length>0)s=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:s}},xo=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},hr=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:a})=>{const l=xo(i,i.date(void 0,a),e);n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!s(c))return c;c=i.addDays(c,1)}if(u){if(!s(u))return u;u=i.addDays(u,-1)}}return null},Wy=(e,t)=>t==null||!e.isValid(t)?null:t,lt=(e,t,n)=>t==null||!e.isValid(t)?n:t,Hy=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),yi=(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),Uy=["year","month","day"],Ka=e=>Uy.includes(e),bi=(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},Yy=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Gy=["hours","minutes","seconds"],qy=e=>Gy.includes(e),Xa=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Ky=(e,t)=>(n,r)=>e?t.isAfter(n,r):Xa(n,t)>Xa(r,t),Pt={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Xy=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},Qy=({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=Ky(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=Jn(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:xo(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=Jn(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:xo(t,s,e.maxTime))),s},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}},Zy=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Uo=(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 yi(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Uo(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[]}},Qa="s",Jy=["0","1","2","3","4","5","6","7","8","9"],eb=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Qa)==="0"?Jy:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),Qa))},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("")},vi=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Za=(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)),vi(s,r)},tb=(e,t,n,r,o,s,i,a)=>{const l=Zy(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()},xi=(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},Ja=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),nb=(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")}},rb=(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(xi(c,"non-input",n)))}const i=o.join(" "),a=s.join(" ");return e.parse(a,i)},ob=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),sb=(e,t,n)=>{const o=e.map(s=>{const i=xi(s,n?"input-rtl":"input-ltr",t);return`${s.startSeparator}${i}${s.endSeparator}`}).join("");return n?`${o}`:o},ib=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),s=e.endOfDay(r),{maxDaysInMonth:i,longestMonth:a}=yi(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:nb(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=Uo(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})}},ab=(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=Uo(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}},el={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},tl=(e,t,n,r,o)=>[...n].sort((s,i)=>el[s.type]-el[i.type]).reduce((s,i)=>!o||i.modified?ab(e,i,t,s):s,r),lb=()=>navigator.userAgent.toLowerCase().includes("android"),cb=(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]}},Is=(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},ub=(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}},db=(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}},pb=["value","referenceDate"],Rt={emptyValue:null,getTodayValue:Tu,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ve(e,pb);return t!=null&&r.utils.isValid(t)?t:n??Qy(r)},cleanValue:Wy,areValuesEqual:Hy,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)},fb={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:ob,getV6InputValueFromSections:sb,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)},hb=["localeText"],Es=S.createContext(null),Cr=function(t){const{localeText:n}=t,r=ve(t,hb),{utils:o,localeText:s}=S.useContext(Es)??{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(Es.Provider,{value:g,children:a})},mb=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"},gb=Ou;mb(Ou);const yn=()=>{const e=S.useContext(Es);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
|
|
31
|
+
`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
|
|
32
|
+
`));const t=S.useMemo(()=>j({},gb,e.localeText),[e.localeText]);return S.useMemo(()=>j({},e,{localeText:t}),[e,t])},Le=()=>yn().utils,Lr=()=>yn().defaultDates,Yo=e=>{const t=Le(),n=S.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function yb(e){return typeof e.main=="string"}function bb(e,t=[]){if(!yb(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&&bb(t,e)}function vb(e){return ge("MuiTypography",e)}const xb=he("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Sb={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},wb=dm(),Cb=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${le(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return me(a,vb,i)},Pb=G("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ee(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${le(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),nl={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=!Sb[r],i=wb({...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=nl,...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]||nl[v])||"span",w=Cb(g);return f.jsx(Pb,{as:C,ref:n,className:de(w.root,l),...m,ownerState:g,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...m.style}})});function kb(e){return ge("MuiPickersToolbar",e)}he("MuiPickersToolbar",["root","content"]);const Tb=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Mb=e=>{const{classes:t}=e;return me({root:["root"],content:["content"]},kb,t)},Db=G("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),Rb=G("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Ib=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,Tb),u=r,p=Mb(u);return a?null:f.jsxs(Db,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(Rb,{className:p.content,ownerState:u,children:o})]}))}),Bt=()=>yn().localeText;function Eb(e){return ge("MuiDatePickerToolbar",e)}he("MuiDatePickerToolbar",["root","title"]);const $b=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Ob=e=>{const{classes:t}=e;return me({root:["root"],title:["title"]},Eb,t)},Ab=G(Ib,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fb=G(Qt,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Lb=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=Ob(r),d=S.useMemo(()=>{if(!o)return a;const g=bi(p,{format:i,views:l},!0);return p.formatByString(o,g)},[o,i,a,p,l]),m=r;return f.jsx(Ab,j({ref:n,toolbarTitle:h.datePickerToolbarTitle,isLandscape:s,className:de(v.root,c)},u,{children:f.jsx(Fb,{variant:"h4",align:s?"left":"center",ownerState:m,className:v.title,children:d})}))});function Au(e,t){const n=Le(),r=Lr(),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},zy({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:Lb},o.slots)})}const Nr=({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}};Nr.valueManager=Rt;const Fu=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Nb=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],jb=["minDateTime","maxDateTime"],Bb=[...Fu,...Nb,...jb],Lu=e=>Bb.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 Go=S.createContext(void 0);function ft(){return S.useContext(Go)}function Vb(e){return ge("MuiInputAdornment",e)}const rl=he("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ol;const _b=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},zb=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${le(o)}`,i,r&&"hiddenLabel",s&&`size${le(s)}`]};return me(a,Vb,t)},Wb=G("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:_b})(Ee(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${rl.positionStart}&:not(.${rl.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=zb(d);return f.jsx(Go.Provider,{value:null,children:f.jsx(Wb,{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"?ol||(ol=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]})})})});class So{static create(){return new So}static use(){const t=wu(So.create).current,[n,r]=S.useState(!1);return t.shouldMount=n,t.setShouldMount=r,S.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Ub(),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 Hb(){return So.use()}function Ub(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function $s(e,t){return $s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},$s(e,t)}function Si(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$s(e,t)}function Yb(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Gb(e,t){e.classList?e.classList.add(t):Yb(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function sl(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function qb(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=sl(e.className,t):e.setAttribute("class",sl(e.className&&e.className.baseVal||"",t))}const il={disabled:!1},wo=q.createContext(null);var Bu=function(t){return t.scrollTop},dr="unmounted",on="exited",sn="entering",Tn="entered",Os="exiting",St=(function(e){Si(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=Os)}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||il.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||il.disabled){this.safeSetState({status:on},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Os},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 q.createElement(wo.Provider,{value:null},typeof i=="function"?i(o,a):q.cloneElement(q.Children.only(i),a))},t})(q.Component);St.contextType=wo;St.propTypes={};function Pn(){}St.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pn,onEntering:Pn,onEntered:Pn,onExit:Pn,onExiting:Pn,onExited:Pn};St.UNMOUNTED=dr;St.EXITED=on;St.ENTERING=sn;St.ENTERED=Tn;St.EXITING=Os;var Kb=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Gb(t,r)})},hs=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return qb(t,r)})},wi=(function(e){Si(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,Kb(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&&hs(o,a),l&&hs(o,l),c&&hs(o,c)},n.render=function(){var o=this.props;o.classNames;var s=ve(o,["classNames"]);return q.createElement(St,j({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(q.Component);wi.defaultProps={classNames:""};wi.propTypes={};function Xb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ci(e,t){var n=function(s){return t&&q.isValidElement(s)?t(s):s},r=Object.create(null);return e&&q.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Qb(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 Zb(e,t){return Ci(e.children,function(n){return q.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 Jb(e,t,n){var r=Ci(e.children),o=Qb(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(q.isValidElement(i)){var a=s in t,l=s in r,c=t[s],u=q.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[s]=q.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:ln(i,"exit",e),enter:ln(i,"enter",e)}):!l&&a&&!u?o[s]=q.cloneElement(i,{in:!1}):l&&a&&q.isValidElement(c)&&(o[s]=q.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:ln(i,"exit",e),enter:ln(i,"enter",e)}))}}),o}var ev=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},tv={component:"div",childFactory:function(t){return t}},jr=(function(e){Si(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(Xb(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?Zb(o,a):Jb(o,i,a),firstRender:!1}},n.handleExited=function(o,s){var i=Ci(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(a){var l=j({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,s=o.component,i=o.childFactory,a=ve(o,["component","childFactory"]),l=this.state.contextValue,c=ev(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?q.createElement(wo.Provider,{value:l},c):q.createElement(wo.Provider,{value:l},q.createElement(s,a,c))},t})(q.Component);jr.propTypes={};jr.defaultProps=tv;function nv(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"]),As=550,rv=80,ov=He.keyframes`
|
|
33
|
+
0% {
|
|
34
|
+
transform: scale(0);
|
|
35
|
+
opacity: 0.1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
100% {
|
|
39
|
+
transform: scale(1);
|
|
40
|
+
opacity: 0.3;
|
|
41
|
+
}
|
|
42
|
+
`,sv=He.keyframes`
|
|
43
|
+
0% {
|
|
44
|
+
opacity: 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
100% {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
}
|
|
50
|
+
`,iv=He.keyframes`
|
|
51
|
+
0% {
|
|
52
|
+
transform: scale(1);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
50% {
|
|
56
|
+
transform: scale(0.92);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
100% {
|
|
60
|
+
transform: scale(1);
|
|
61
|
+
}
|
|
62
|
+
`,av=G("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),lv=G(nv,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
63
|
+
opacity: 0;
|
|
64
|
+
position: absolute;
|
|
65
|
+
|
|
66
|
+
&.${st.rippleVisible} {
|
|
67
|
+
opacity: 0.3;
|
|
68
|
+
transform: scale(1);
|
|
69
|
+
animation-name: ${ov};
|
|
70
|
+
animation-duration: ${As}ms;
|
|
71
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.${st.ripplePulsate} {
|
|
75
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
& .${st.child} {
|
|
79
|
+
opacity: 1;
|
|
80
|
+
display: block;
|
|
81
|
+
width: 100%;
|
|
82
|
+
height: 100%;
|
|
83
|
+
border-radius: 50%;
|
|
84
|
+
background-color: currentColor;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
& .${st.childLeaving} {
|
|
88
|
+
opacity: 0;
|
|
89
|
+
animation-name: ${sv};
|
|
90
|
+
animation-duration: ${As}ms;
|
|
91
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
& .${st.childPulsate} {
|
|
95
|
+
position: absolute;
|
|
96
|
+
/* @noflip */
|
|
97
|
+
left: 0px;
|
|
98
|
+
top: 0;
|
|
99
|
+
animation-name: ${iv};
|
|
100
|
+
animation-duration: 2500ms;
|
|
101
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
102
|
+
animation-iteration-count: infinite;
|
|
103
|
+
animation-delay: 200ms;
|
|
104
|
+
}
|
|
105
|
+
`,cv=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=mi(),d=S.useRef(null),m=S.useRef(null),g=S.useCallback(x=>{const{pulsate:P,rippleX:k,rippleY:I,rippleSize:R,cb:A}=x;c(O=>[...O,f.jsx(lv,{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:As,pulsate:P,rippleX:k,rippleY:I,rippleSize:R},u.current)]),u.current+=1,p.current=A},[s]),C=S.useCallback((x={},P={},k=()=>{})=>{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 y,E,D;if(R||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)y=Math.round($.width/2),E=Math.round($.height/2);else{const{clientX:M,clientY:T}=x.touches&&x.touches.length>0?x.touches[0]:x;y=Math.round(M-$.left),E=Math.round(T-$.top)}if(R)D=Math.sqrt((2*$.width**2+$.height**2)/3),D%2===0&&(D+=1);else{const M=Math.max(Math.abs((O?O.clientWidth:0)-y),y)*2+2,T=Math.max(Math.abs((O?O.clientHeight:0)-E),E)*2+2;D=Math.sqrt(M**2+T**2)}x?.touches?d.current===null&&(d.current=()=>{g({pulsate:I,rippleX:y,rippleY:E,rippleSize:D,cb:k})},v.start(rv,()=>{d.current&&(d.current(),d.current=null)})):g({pulsate:I,rippleX:y,rippleY:E,rippleSize:D,cb:k})},[o,g,v]),w=S.useCallback(()=>{C({},{pulsate:!0})},[C]),b=S.useCallback((x,P)=>{if(v.clear(),x?.type==="touchend"&&d.current){d.current(),d.current=null,v.start(0,()=>{b(x,P)});return}d.current=null,c(k=>k.length>0?k.slice(1):k),p.current=P},[v]);return S.useImperativeHandle(n,()=>({pulsate:w,start:C,stop:b}),[w,C,b]),f.jsx(av,{className:de(st.root,s.root,i),ref:m,...a,children:f.jsx(jr,{component:null,exit:!0,children:l})})});function uv(e){return ge("MuiButtonBase",e)}const dv=he("MuiButtonBase",["root","disabled","focusVisible"]),pv=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=me({root:["root",t&&"disabled",n&&"focusVisible"]},uv,o);return n&&r&&(i.root+=` ${r}`),i},fv=G("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${dv.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:b,onFocusVisible:x,onKeyDown:P,onKeyUp:k,onMouseDown:I,onMouseLeave:R,onMouseUp:A,onTouchEnd:O,onTouchMove:$,onTouchStart:y,tabIndex:E=0,TouchRippleProps:D,touchRippleRef:M,type:T,...F}=r,L=S.useRef(null),N=Hb(),H=ke(N.ref,M),[Q,K]=S.useState(!1);c&&Q&&K(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{K(!0),L.current.focus()}}),[]);const se=N.shouldMount&&!u&&!c;S.useEffect(()=>{Q&&h&&!u&&N.pulsate()},[u,h,Q,N]);const re=$t(N,"start",I,p),B=$t(N,"stop",C,p),J=$t(N,"stop",w,p),ee=$t(N,"stop",A,p),X=$t(N,"stop",pe=>{Q&&pe.preventDefault(),R&&R(pe)},p),_=$t(N,"start",y,p),U=$t(N,"stop",O,p),ne=$t(N,"stop",$,p),te=$t(N,"stop",pe=>{Ga(pe.target)||K(!1),m&&m(pe)},!1),V=ue(pe=>{L.current||(L.current=pe.currentTarget),Ga(pe.target)&&(K(!0),x&&x(pe)),b&&b(pe)}),Z=()=>{const pe=L.current;return l&&l!=="button"&&!(pe.tagName==="A"&&pe.href)},ie=ue(pe=>{h&&!pe.repeat&&Q&&pe.key===" "&&N.stop(pe,()=>{N.start(pe)}),pe.target===pe.currentTarget&&Z()&&pe.key===" "&&pe.preventDefault(),P&&P(pe),pe.target===pe.currentTarget&&Z()&&pe.key==="Enter"&&!c&&(pe.preventDefault(),g&&g(pe))}),oe=ue(pe=>{h&&pe.key===" "&&Q&&!pe.defaultPrevented&&N.stop(pe,()=>{N.pulsate(pe)}),k&&k(pe),g&&pe.target===pe.currentTarget&&Z()&&pe.key===" "&&!pe.defaultPrevented&&g(pe)});let ce=l;ce==="button"&&(F.href||F.to)&&(ce=d);const ae={};ce==="button"?(ae.type=T===void 0?"button":T,ae.disabled=c):(!F.href&&!F.to&&(ae.role="button"),c&&(ae["aria-disabled"]=c));const fe=ke(n,L),be={...r,centerRipple:s,component:l,disabled:c,disableRipple:u,disableTouchRipple:p,focusRipple:h,tabIndex:E,focusVisible:Q},we=pv(be);return f.jsxs(fv,{as:ce,className:de(we.root,a),ownerState:be,onBlur:te,onClick:g,onContextMenu:B,onFocus:V,onKeyDown:ie,onKeyUp:oe,onMouseDown:re,onMouseLeave:X,onMouseUp:ee,onDragLeave:J,onTouchEnd:U,onTouchMove:ne,onTouchStart:_,ref:fe,tabIndex:c?-1:E,type:T,...ae,...F,children:[i,se?f.jsx(cv,{ref:H,center:s,...D}):null]})});function $t(e,t,n,r=!1){return ue(o=>(n&&n(o),r||e[t](o),!0))}function hv(e){return ge("MuiCircularProgress",e)}he("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ut=44,Fs=He.keyframes`
|
|
106
|
+
0% {
|
|
107
|
+
transform: rotate(0deg);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
100% {
|
|
111
|
+
transform: rotate(360deg);
|
|
112
|
+
}
|
|
113
|
+
`,Ls=He.keyframes`
|
|
114
|
+
0% {
|
|
115
|
+
stroke-dasharray: 1px, 200px;
|
|
116
|
+
stroke-dashoffset: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
50% {
|
|
120
|
+
stroke-dasharray: 100px, 200px;
|
|
121
|
+
stroke-dashoffset: -15px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
100% {
|
|
125
|
+
stroke-dasharray: 1px, 200px;
|
|
126
|
+
stroke-dashoffset: -126px;
|
|
127
|
+
}
|
|
128
|
+
`,mv=typeof Fs!="string"?He.css`
|
|
129
|
+
animation: ${Fs} 1.4s linear infinite;
|
|
130
|
+
`:null,gv=typeof Ls!="string"?He.css`
|
|
131
|
+
animation: ${Ls} 1.4s ease-in-out infinite;
|
|
132
|
+
`:null,yv=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${le(r)}`],svg:["svg"],circle:["circle",`circle${le(n)}`,o&&"circleDisableShrink"]};return me(s,hv,t)},bv=G("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${le(n.color)}`]]}})(Ee(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:mv||{animation:`${Fs} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),vv=G("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),xv=G("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ee(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:gv||{animation:`${Ls} 1.4s ease-in-out infinite`}}]}))),Pi=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=yv(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(bv,{className:de(d.root,o),style:{width:a,height:a,...g,...l},ownerState:v,ref:n,role:"progressbar",...C,...h,children:f.jsx(vv,{className:d.svg,ownerState:v,viewBox:`${Ut/2} ${Ut/2} ${Ut} ${Ut}`,children:f.jsx(xv,{className:d.circle,style:m,ownerState:v,cx:Ut,cy:Ut,r:(Ut-c)/2,fill:"none",strokeWidth:c})})})});function Sv(e){return ge("MuiIconButton",e)}const al=he("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),wv=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s,loading:i}=e,a={root:["root",i&&"loading",n&&"disabled",r!=="default"&&`color${le(r)}`,o&&`edge${le(o)}`,`size${le(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return me(a,Sv,t)},Cv=G(Bn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${le(n.color)}`],n.edge&&t[`edge${le(n.edge)}`],t[`size${le(n.size)}`]]}})(Ee(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ee(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${al.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${al.loading}`]:{color:"transparent"}}))),Pv=G("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Br=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(Pi,{"aria-labelledby":m,color:"inherit",size:16}),C={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:g,size:u},w=wv(C);return f.jsxs(Cv,{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(Pv,{className:w.loadingIndicator,ownerState:C,children:h&&g})}),s]})}),Vu=e=>e.scrollTop;function Co(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Ns(e){return`scale(${e}, ${e**2})`}const kv={entering:{opacity:1,transform:Ns(1)},entered:{opacity:1,transform:"none"}},ms=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Pr=S.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:p,onExited:h,onExiting:v,style:d,timeout:m="auto",TransitionComponent:g=St,...C}=t,w=mi(),b=S.useRef(),x=gn(),P=S.useRef(null),k=ke(P,Gn(s),n),I=M=>T=>{if(M){const F=P.current;T===void 0?M(F):M(F,T)}},R=I(u),A=I((M,T)=>{Vu(M);const{duration:F,delay:L,easing:N}=Co({style:d,timeout:m,easing:i},{mode:"enter"});let H;m==="auto"?(H=x.transitions.getAutoHeightDuration(M.clientHeight),b.current=H):H=F,M.style.transition=[x.transitions.create("opacity",{duration:H,delay:L}),x.transitions.create("transform",{duration:ms?H:H*.666,delay:L,easing:N})].join(","),l&&l(M,T)}),O=I(c),$=I(v),y=I(M=>{const{duration:T,delay:F,easing:L}=Co({style:d,timeout:m,easing:i},{mode:"exit"});let N;m==="auto"?(N=x.transitions.getAutoHeightDuration(M.clientHeight),b.current=N):N=T,M.style.transition=[x.transitions.create("opacity",{duration:N,delay:F}),x.transitions.create("transform",{duration:ms?N:N*.666,delay:ms?F:F||N*.333,easing:L})].join(","),M.style.opacity=0,M.style.transform=Ns(.75),p&&p(M)}),E=I(h),D=M=>{m==="auto"&&w.start(b.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:y,onExited:E,onExiting:$,addEndListener:D,timeout:m==="auto"?null:m,...C,children:(M,{ownerState:T,...F})=>S.cloneElement(s,{style:{opacity:0,transform:Ns(.75),visibility:M==="exited"&&!a?"hidden":void 0,...kv[M],...d,...s.props.style},ref:k,...F})})});Pr&&(Pr.muiSupportAuto=!0);const Tv={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,...b}=t,x=S.useRef(null),P=ke(x,Gn(a),n),k=D=>M=>{if(D){const T=x.current;M===void 0?D(T):D(T,M)}},I=k(h),R=k((D,M)=>{Vu(D);const T=Co({style:g,timeout:C,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",T),D.style.transition=r.transitions.create("opacity",T),u&&u(D,M)}),A=k(p),O=k(m),$=k(D=>{const M=Co({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)}),y=k(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:y,onExiting:O,addEndListener:E,timeout:C,...b,children:(D,{ownerState:M,...T})=>S.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...Tv[D],...g,...a.props.style},ref:P,...T})})});function Mv(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 Dv=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return me(s,Mv,o)},Rv=G("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ee(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Vr=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=Dv(p);return f.jsx(Rv,{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(${mo("#fff",Ps(a))}, ${mo("#fff",Ps(a))})`}},...u.style}})});var Qe="top",ct="bottom",ut="right",Ze="left",ki="auto",_r=[Qe,ct,ut,Ze],Vn="start",kr="end",Iv="clippingParents",_u="viewport",er="popper",Ev="reference",ll=_r.reduce(function(e,t){return e.concat([t+"-"+Vn,t+"-"+kr])},[]),zu=[].concat(_r,[ki]).reduce(function(e,t){return e.concat([t,t+"-"+Vn,t+"-"+kr])},[]),$v="beforeRead",Ov="read",Av="afterRead",Fv="beforeMain",Lv="main",Nv="afterMain",jv="beforeWrite",Bv="write",Vv="afterWrite",_v=[$v,Ov,Av,Fv,Lv,Nv,jv,Bv,Vv];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 Ti(e){if(typeof ShadowRoot>"u")return!1;var t=et(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function zv(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 Wv(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 Hv={name:"applyStyles",enabled:!0,phase:"write",fn:zv,effect:Wv,requires:["computeStyles"]};function Mt(e){return e.split("-")[0]}var dn=Math.max,Po=Math.min,_n=Math.round;function js(){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(js())}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 Mi(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&&Ti(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 Uv(e){return["table","td","th"].indexOf(It(e))>=0}function Zt(e){return((hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function qo(e){return It(e)==="html"?e:e.assignedSlot||e.parentNode||(Ti(e)?e.host:null)||Zt(e)}function cl(e){return!at(e)||Nt(e).position==="fixed"?null:e.offsetParent}function Yv(e){var t=/firefox/i.test(js()),n=/Trident/i.test(js());if(n&&at(e)){var r=Nt(e);if(r.position==="fixed")return null}var o=qo(e);for(Ti(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 zr(e){for(var t=et(e),n=cl(e);n&&Uv(n)&&Nt(n).position==="static";)n=cl(n);return n&&(It(n)==="html"||It(n)==="body"&&Nt(n).position==="static")?t:n||Yv(e)||t}function Di(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mr(e,t,n){return dn(e,Po(t,n))}function Gv(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 qv=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Yu(typeof t!="number"?t:Gu(t,_r))};function Kv(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=Di(a),c=[Ze,ut].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var p=qv(o.padding,n),h=Mi(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=zr(s),w=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,b=m/2-g/2,x=p[v],P=w-h[u]-p[d],k=w/2-h[u]/2+b,I=mr(x,k,P),R=l;n.modifiersData[r]=(t={},t[R]=I,t.centerOffset=I-k,t)}}function Xv(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 Qv={name:"arrow",enabled:!0,phase:"main",fn:Kv,effect:Xv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wn(e){return e.split("-")[1]}var Zv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jv(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 ul(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"),b=Ze,x=Qe,P=window;if(c){var k=zr(n),I="clientHeight",R="clientWidth";if(k===et(n)&&(k=Zt(n),Nt(k).position!=="static"&&a==="absolute"&&(I="scrollHeight",R="scrollWidth")),k=k,o===Qe||(o===Ze||o===ut)&&s===kr){x=ct;var A=p&&k===P&&P.visualViewport?P.visualViewport.height:k[I];m-=A-r.height,m*=l?1:-1}if(o===Ze||(o===Qe||o===ct)&&s===kr){b=ut;var O=p&&k===P&&P.visualViewport?P.visualViewport.width:k[R];v-=O-r.width,v*=l?1:-1}}var $=Object.assign({position:a},c&&Zv),y=u===!0?Jv({x:v,y:m},et(n)):{x:v,y:m};if(v=y.x,m=y.y,l){var E;return Object.assign({},$,(E={},E[x]=w?"0":"",E[b]=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[b]=C?v+"px":"",t.transform="",t))}function ex(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,ul(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,ul(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 tx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ex,data:{}};var Yr={passive:!0};function nx(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,a=i===void 0?!0:i,l=et(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,Yr)}),a&&l.addEventListener("resize",n.update,Yr),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Yr)}),a&&l.removeEventListener("resize",n.update,Yr)}}const rx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:nx,data:{}};var ox={left:"right",right:"left",bottom:"top",top:"bottom"};function fo(e){return e.replace(/left|right|bottom|top/g,function(t){return ox[t]})}var sx={start:"end",end:"start"};function dl(e){return e.replace(/start|end/g,function(t){return sx[t]})}function Ri(e){var t=et(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ii(e){return zn(Zt(e)).left+Ri(e).scrollLeft}function ix(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+Ii(e),y:l}}function ax(e){var t,n=Zt(e),r=Ri(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+Ii(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 Ei(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)&&Ei(e)?e:qu(qo(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||[],Ei(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(gr(qo(i)))}function Bs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lx(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 pl(e,t,n){return t===_u?Bs(ix(e,n)):hn(t)?lx(t,n):Bs(ax(Zt(e)))}function cx(e){var t=gr(qo(e)),n=["absolute","fixed"].indexOf(Nt(e).position)>=0,r=n&&at(e)?zr(e):e;return hn(r)?t.filter(function(o){return hn(o)&&Hu(o,r)&&It(o)!=="body"}):[]}function ux(e,t,n,r){var o=t==="clippingParents"?cx(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=pl(e,c,r);return l.top=dn(u.top,l.top),l.right=Po(u.right,l.right),l.bottom=Po(u.bottom,l.bottom),l.left=dn(u.left,l.left),l},pl(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?Di(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Vn:l[c]=l[c]-(t[u]/2-n[u]/2);break;case kr:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Tr(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?Iv: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,_r)),w=h===er?Ev:er,b=e.rects.popper,x=e.elements[d?w:h],P=ux(hn(x)?x:x.contextElement||Zt(e.elements.popper),l,u,i),k=zn(e.elements.reference),I=Ku({reference:k,element:b,placement:o}),R=Bs(Object.assign({},b,I)),A=h===er?R:k,O={top:P.top-A.top+C.top,bottom:A.bottom-P.bottom+C.bottom,left:P.left-A.left+C.left,right:A.right-P.right+C.right},$=e.modifiersData.offset;if(h===er&&$){var y=$[o];Object.keys(O).forEach(function(E){var D=[ut,ct].indexOf(E)>=0?1:-1,M=[Qe,ct].indexOf(E)>=0?"y":"x";O[E]+=y[M]*D})}return O}function dx(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?ll:ll.filter(function(d){return Wn(d)===u}):_r,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]=Tr(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 px(e){if(Mt(e)===ki)return[];var t=fo(e);return[dl(e),t,dl(t)]}function fx(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,b=l||(w||!d?[fo(g)]:px(g)),x=[g].concat(b).reduce(function(re,B){return re.concat(Mt(B)===ki?dx(t,{placement:B,boundary:u,rootBoundary:p,padding:c,flipVariations:d,allowedAutoPlacements:m}):B)},[]),P=t.rects.reference,k=t.rects.popper,I=new Map,R=!0,A=x[0],O=0;O<x.length;O++){var $=x[O],y=Mt($),E=Wn($)===Vn,D=[Qe,ct].indexOf(y)>=0,M=D?"width":"height",T=Tr(t,{placement:$,boundary:u,rootBoundary:p,altBoundary:h,padding:c}),F=D?E?ut:Ze:E?ct:Qe;P[M]>k[M]&&(F=fo(F));var L=fo(F),N=[];if(s&&N.push(T[y]<=0),a&&N.push(T[F]<=0,T[L]<=0),N.every(function(re){return re})){A=$,R=!1;break}I.set($,N)}if(R)for(var H=d?3:1,Q=function(B){var J=x.find(function(ee){var X=I.get(ee);if(X)return X.slice(0,B).every(function(_){return _})});if(J)return A=J,"break"},K=H;K>0;K--){var se=Q(K);if(se==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const hx={name:"flip",enabled:!0,phase:"main",fn:fx,requiresIfExists:["offset"],data:{_skip:!1}};function fl(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 hl(e){return[Qe,ut,ct,Ze].some(function(t){return e[t]>=0})}function mx(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=Tr(t,{elementContext:"reference"}),a=Tr(t,{altBoundary:!0}),l=fl(i,r),c=fl(a,o,s),u=hl(l),p=hl(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 gx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mx};function yx(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 bx(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]=yx(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 vx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bx};function xx(e){var t=e.state,n=e.name;t.modifiersData[n]=Ku({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Sx={name:"popperOffsets",enabled:!0,phase:"read",fn:xx,data:{}};function wx(e){return e==="x"?"y":"x"}function Cx(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=Tr(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),C=Mt(t.placement),w=Wn(t.placement),b=!w,x=Di(C),P=wx(x),k=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,y={x:0,y:0};if(k){if(s){var E,D=x==="y"?Qe:Ze,M=x==="y"?ct:ut,T=x==="y"?"height":"width",F=k[x],L=F+g[D],N=F-g[M],H=v?-R[T]/2:0,Q=w===Vn?I[T]:R[T],K=w===Vn?-R[T]:-I[T],se=t.elements.arrow,re=v&&se?Mi(se):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Uu(),J=B[D],ee=B[M],X=mr(0,I[T],re[T]),_=b?I[T]/2-H-X-J-O.mainAxis:Q-X-J-O.mainAxis,U=b?-I[T]/2+H+X+ee+O.mainAxis:K+X+ee+O.mainAxis,ne=t.elements.arrow&&zr(t.elements.arrow),te=ne?x==="y"?ne.clientTop||0:ne.clientLeft||0:0,V=(E=$?.[x])!=null?E:0,Z=F+_-V-te,ie=F+U-V,oe=mr(v?Po(L,Z):L,F,v?dn(N,ie):N);k[x]=oe,y[x]=oe-F}if(a){var ce,ae=x==="x"?Qe:Ze,fe=x==="x"?ct:ut,be=k[P],we=P==="y"?"height":"width",pe=be+g[ae],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?Gv(mt,be,nt):mr(v?mt:pe,be,v?nt:qe);k[P]=rt,y[P]=rt-be}t.modifiersData[r]=y}}const Px={name:"preventOverflow",enabled:!0,phase:"main",fn:Cx,requiresIfExists:["offset"]};function kx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Tx(e){return e===et(e)||!at(e)?Ri(e):kx(e)}function Mx(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 Dx(e,t,n){n===void 0&&(n=!1);var r=at(t),o=at(t)&&Mx(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"||Ei(s))&&(a=Tx(t)),at(t)?(l=zn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Ii(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Rx(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 Ix(e){var t=Rx(e);return _v.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Ex(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $x(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 ml={placement:"bottom",modifiers:[],strategy:"absolute"};function gl(){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 Ox(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?ml:o;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ml,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 b=Ix($x([].concat(r,u.options.modifiers)));return u.orderedModifiers=b.filter(function(x){return x.enabled}),d(),v.update()},forceUpdate:function(){if(!h){var C=u.elements,w=C.reference,b=C.popper;if(gl(w,b)){u.rects={reference:Dx(w,zr(b),u.options.strategy==="fixed"),popper:Mi(b)},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],k=P.fn,I=P.options,R=I===void 0?{}:I,A=P.name;typeof k=="function"&&(u=k({state:u,options:R,name:A,instance:v})||u)}}}},update:Ex(function(){return new Promise(function(g){v.forceUpdate(),g(u)})}),destroy:function(){m(),h=!0}};if(!gl(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,b=w===void 0?{}:w,x=g.effect;if(typeof x=="function"){var P=x({state:u,name:C,instance:v,options:b}),k=function(){};p.push(P||k)}})}function m(){p.forEach(function(g){return g()}),p=[]}return v}}var Ax=[rx,Sx,tx,Hv,vx,hx,Px,Qv,gx],Fx=Ox({defaultModifiers:Ax});function Lx(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(Lx(o)||document.body)},[o,s]),Ue(()=>{if(i&&!s)return ks(n,i),()=>{ks(n,null)}},[n,i,s]),s){if(S.isValidElement(r)){const c={ref:l};return S.cloneElement(r,c)}return r}return i&&_p.createPortal(r,i)});function Nx(e){return ge("MuiPopper",e)}he("MuiPopper",["root"]);function jx(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 Vs(e){return typeof e=="function"?e():e}function Bx(e){return e.nodeType!==void 0}const Vx=e=>{const{classes:t}=e;return me({root:["root"]},Nx,t)},_x={},zx=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),b=S.useRef(null),x=ke(b,p),P=S.useRef(x);Ue(()=>{P.current=x},[x]),S.useImperativeHandle(p,()=>b.current,[]);const k=jx(c,s),[I,R]=S.useState(k),[A,O]=S.useState(Vs(r));S.useEffect(()=>{b.current&&b.current.forceUpdate()}),S.useEffect(()=>{r&&O(Vs(r))},[r]),Ue(()=>{if(!A||!l)return;const M=L=>{R(L.placement)};let T=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{M(L)}}];a!=null&&(T=T.concat(a)),u&&u.modifiers!=null&&(T=T.concat(u.modifiers));const F=Fx(A,C.current,{placement:k,...u,modifiers:T});return P.current(F),()=>{F.destroy(),P.current(null)}},[A,i,a,l,u,k]);const $={placement:I};d!==null&&($.TransitionProps=d);const y=Vx(t),E=v.root??"div",D=Pe({elementType:E,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:y.root});return f.jsx(E,{...D,children:typeof o=="function"?o($):o})}),Wx=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=_x,popperRef:v,style:d,transition:m=!1,slotProps:g={},slots:C={},...w}=t,[b,x]=S.useState(!0),P=()=>{x(!1)},k=()=>{x(!0)};if(!l&&!u&&(!m||b))return null;let I;if(s)I=s;else if(r){const O=Vs(r);I=O&&Bx(O)?Ye(O).body:Ye(null).body}const R=!u&&l&&(!m||b)?"none":void 0,A=m?{in:u,onEnter:P,onExited:k}:void 0;return f.jsx(Xu,{disablePortal:a,container:I,children:f.jsx(zx,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:n,open:m?!b: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})})}),Hx=G(Wx,{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:b,...x}=o,P=w?.root??a?.Root,k={anchorEl:s,container:c,disablePortal:u,keepMounted:p,modifiers:h,open:v,placement:d,popperOptions:m,popperRef:g,transition:C,...x};return f.jsx(Hx,{as:i,direction:r?"rtl":"ltr",slots:{root:P},slotProps:b??l,...k,ref:n})}),Ux=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Yx(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 Gx(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 qx(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Gx(e))}function Kx(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ux)).forEach((r,o)=>{const s=Yx(r);s===-1||!qx(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 Xx(){return!0}function Zu(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=Kx,isEnabled:i=Xx,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 b=Ye(d.current);return d.current.contains(b.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 b=Ye(d.current),x=I=>{g.current=I,!(r||!i()||I.key!=="Tab")&&b.activeElement===d.current&&I.shiftKey&&(l.current=!0,u.current&&u.current.focus())},P=()=>{const I=d.current;if(I===null)return;if(!b.hasFocus()||!i()||l.current){l.current=!1;return}if(I.contains(b.activeElement)||r&&b.activeElement!==c.current&&b.activeElement!==u.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!v.current)return;let R=[];if((b.activeElement===c.current||b.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()};b.addEventListener("focusin",P),b.addEventListener("keydown",x,!0);const k=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(k),b.removeEventListener("focusin",P),b.removeEventListener("keydown",x,!0)}},[n,r,o,i,a,s]);const C=b=>{p.current===null&&(p.current=b.relatedTarget),v.current=!0,h.current=b.target;const x=t.props.onFocus;x&&x(b)},w=b=>{p.current===null&&(p.current=b.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 Qx(e){return ge("MuiPickersPopper",e)}he("MuiPickersPopper",["root","paper"]);function Zx(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Jx=(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},e0="@media (pointer: fine)",t0="@media (prefers-reduced-motion: reduce)",En=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),yl=En&&En[1]?parseInt(En[1],10):null,bl=En&&En[2]?parseInt(En[2],10):null,n0=yl&&yl<10||bl&&bl<13||!1,Ju=()=>xu(t0,{defaultMatches:!1})||n0,r0=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],o0=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},Qx,t)},s0=G(Qu,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),i0=G(Vr,{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 a0(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function l0(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&&a0(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 c0=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,r0),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 u0(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(T){l&&T.key==="Escape"&&a()}return document.addEventListener("keydown",M),()=>{document.removeEventListener("keydown",M)}},[a,l]);const d=S.useRef(null);S.useEffect(()=>{c==="tooltip"||s&&!s()||(l?d.current=Ke(document):d.current&&d.current instanceof HTMLElement&&setTimeout(()=>{d.current instanceof HTMLElement&&d.current.focus()}))},[l,c,s]);const[m,g,C]=l0(l,i??a),w=S.useRef(null),b=ke(w,o),x=ke(b,m),P=t,k=o0(P),I=Ju(),R=v??I,A=M=>{M.key==="Escape"&&(M.stopPropagation(),a())},O=p?.desktopTransition??R?fn:Pr,$=p?.desktopTrapFocus??Zu,y=p?.desktopPaper??i0,E=p?.popper??s0,D=Pe({elementType:E,externalSlotProps:h?.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:A},className:k.root,ownerState:t});return f.jsx(E,j({},D,{children:({TransitionProps:M,placement:T})=>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(c0,{PaperComponent:y,ownerState:P,popperPlacement:T,ref:x,onPaperClick:g,onPaperTouchStart:C,paperClasses:k.paper,paperSlotProps:h?.desktopPaper,children:r})}))}))}))}const d0=({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}},$i=({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}},Oi=({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 $i({timezone:t,value:a,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:i})},p0=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},f0=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},h0=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},m0=({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:b}=d0(e),{timezone:x,value:P,handleValueChange:k}=$i({timezone:u,value:a,defaultValue:h,referenceDate:p,onChange:i,valueManager:t}),[I,R]=S.useState(()=>{let _;return P!==void 0?_=P:h!==void 0?_=h:_=t.emptyValue,{draft:_,lastPublishedValue:_,lastCommittedValue:_,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),A=t.getTimezone(g,I.draft);d!==u&&(m(u),u&&A&&u!==A&&R(_=>j({},_,{draft:t.setTimezone(g,u,_.draft)})));const{getValidationErrorForNewValue:O}=Nu({props:e,validator:o,timezone:x,value:I.draft,onError:e.onError}),$=ue(_=>{const U={action:_,dateState:I,hasChanged:oe=>!t.areValuesEqual(g,_.value,oe),isControlled:v,closeOnSelect:c},ne=p0(U),te=f0(U),V=h0(U);R(oe=>j({},oe,{draft:_.value,lastPublishedValue:ne?_.value:oe.lastPublishedValue,lastCommittedValue:te?_.value:oe.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let Z=null;const ie=()=>(Z||(Z={validationError:_.name==="setValueFromField"?_.context.validationError:O(_.value)},_.name==="setValueFromShortcut"&&(Z.shortcut=_.shortcut)),Z);ne&&k(_.value,ie()),te&&s&&s(_.value,ie()),V&&b(!1)});if(I.lastControlledValue!==a){const _=t.areValuesEqual(g,I.draft,P);R(U=>j({},U,{lastControlledValue:a},_?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,hasBeenModifiedSinceMount:!0}))}const y=ue(()=>{$({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),E=ue(()=>{$({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),D=ue(()=>{$({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),M=ue(()=>{$({value:I.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),T=ue(()=>{$({value:t.getTodayValue(g,x,n),name:"setValueFromAction",pickerAction:"today"})}),F=ue(_=>{_.preventDefault(),b(!0)}),L=ue(_=>{_?.preventDefault(),b(!1)}),N=ue((_,U="partial")=>$({name:"setValueFromView",value:_,selectionState:U})),H=ue((_,U,ne)=>$({name:"setValueFromShortcut",value:_,changeImportance:U,shortcut:ne})),Q=ue((_,U)=>$({name:"setValueFromField",value:_,context:U})),K={onClear:y,onAccept:E,onDismiss:D,onCancel:M,onSetToday:T,onOpen:F,onClose:L},se={value:I.draft,onChange:Q},re=S.useMemo(()=>t.cleanValue(g,I.draft),[g,t,I.draft]),B={value:re,onChange:N,onClose:L,open:w},ee=j({},K,{value:re,onChange:N,onSelectShortcut:H,isValid:_=>{const U=o({adapter:C,value:_,timezone:x,props:e});return!t.hasError(U)}}),X=S.useMemo(()=>({onOpen:F,onClose:L,open:w}),[w,L,F]);return{open:w,fieldProps:se,viewProps:B,layoutProps:ee,actions:K,contextValue:X}};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,b=ue((I,R)=>{m(R?I:A=>I===A?null:A),a?.(I,R)}),x=ue(I=>{b(I,!0),I!==p&&(h(I),t&&t(I))}),P=ue(()=>{w&&x(w)}),k=ue((I,R,A)=>{const O=R==="finish",$=A?o.indexOf(A)<o.length-1:!!w;if(e(I,O&&$?"partial":R,A),A&&A!==p){const E=o[o.indexOf(A)+1];E&&x(E)}else O&&P()});return{view:p,setView:x,focusedView:d,setFocusedView:b,nextView:w,previousView:C,defaultView:o.includes(n)?n:o[0],goToNextView:P,setValueAndGoToNextView:k}}const g0=["className","sx"],y0=({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,g0),{view:g,setView:C,defaultView:w,focusedView:b,setFocusedView:x,setValueAndGoToNextView:P}=ed({view:c,views:u,openTo:p,onChange:i,onViewChange:h,autoFocus:r}),{hasUIView:k,viewModeLookup:I}=S.useMemo(()=>u.reduce((D,M)=>{let T;return v[M]!=null?T="UI":T="field",D.viewModeLookup[M]=T,T==="UI"&&(D.hasUIView=!0),D},{hasUIView:!1,viewModeLookup:{}}),[v,u]),R=S.useMemo(()=>u.reduce((D,M)=>v[M]!=null&&qy(M)?D+1:D,0),[v,u]),A=I[g],O=ue(()=>A==="UI"),[$,y]=S.useState(A==="UI"?g:null);return $!==g&&I[g]==="UI"&&y(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:k,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:b,onFocusedViewChange:x,showViewSwitcher:R>1,timeViewsCount:R});return o?o(v,$,M):D(M)}}};function vl(){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 b0=(e,t)=>{const[n,r]=S.useState(vl);return Ue(()=>{const s=()=>{r(vl())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),Zx(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},v0=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=b0(n.views,o),i=vt();return{layoutProps:j({},n,t,{isLandscape:s,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function x0(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=m0({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=y0({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),p=v0({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),h=x0({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 S0(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"]),w0=S.createContext({}),C0=S.createContext(void 0),P0=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,loading:i,loadingPosition:a,classes:l}=e,c={root:["root",i&&"loading",s,`${s}${le(t)}`,`size${le(o)}`,`${s}Size${le(o)}`,`color${le(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${le(a)}`],startIcon:["icon","startIcon",`iconSize${le(o)}`],endIcon:["icon","endIcon",`iconSize${le(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=me(c,S0,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}}}],k0=G(Bn,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color)}`],t[`size${le(n.size)}`],t[`${n.variant}Size${le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ee(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${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"}}}]}})),T0=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${le(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...rd]})),M0=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${le(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...rd]})),D0=G("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),xl=G("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),pr=S.forwardRef(function(t,n){const r=S.useContext(w0),o=S.useContext(C0),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:b,loadingPosition:x="center",size:P="medium",startIcon:k,type:I,variant:R="text",...A}=i,O=xt(C),$=b??f.jsx(Pi,{"aria-labelledby":O,color:"inherit",size:16}),y={...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=P0(y),D=(k||w&&x==="start")&&f.jsx(T0,{className:E.startIcon,ownerState:y,children:k||f.jsx(xl,{className:E.loadingIconPlaceholder,ownerState:y})}),M=(d||w&&x==="end")&&f.jsx(M0,{className:E.endIcon,ownerState:y,children:d||f.jsx(xl,{className:E.loadingIconPlaceholder,ownerState:y})}),T=o||"",F=typeof w=="boolean"?f.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:w&&f.jsx(D0,{className:E.loadingIndicator,ownerState:y,children:$})}):null;return f.jsxs(k0,{ownerState:y,className:de(r.className,E.root,u,T),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 R0(e){return ge("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const I0=e=>{const{classes:t,disableSpacing:n}=e;return me({root:["root",!n&&"spacing"]},R0,t)},E0=G("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),$0=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...i}=r,a={...r,disableSpacing:s},l=I0(a);return f.jsx(E0,{className:de(l.root,o),ownerState:a,ref:n,...i})}),O0=["onAccept","onClear","onCancel","onSetToday","actions"];function A0(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=ve(e,O0),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($0,j({},i,{children:l}))}const $n=S.createContext({});function F0(e){return ge("MuiList",e)}he("MuiList",["root","padding","dense","subheader"]);const L0=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},F0,t)},N0=G("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),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=L0(h);return f.jsx($n.Provider,{value:p,children:f.jsxs(N0,{as:i,className:de(v.root,s),ref:n,ownerState:h,...u,children:[c,o]})})});function j0(e){return ge("MuiListItem",e)}he("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const B0=he("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function V0(e){return ge("MuiListItemSecondaryAction",e)}he("MuiListItemSecondaryAction",["root","disableGutters"]);const _0=e=>{const{disableGutters:t,classes:n}=e;return me({root:["root",t&&"disableGutters"]},V0,n)},z0=G("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),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=_0(a);return f.jsx(z0,{className:de(l.root,o),ownerState:a,ref:n,...s})});sd.muiName="ListItemSecondaryAction";const W0=(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]},H0=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"]},j0,n)},U0=G("div",{name:"MuiListItem",slot:"Root",overridesResolver:W0})(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:{[`& > .${B0.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}}]}))),Y0=G("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),G0=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:b={},...x}=r,P=S.useContext($n),k=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&&no(R[R.length-1],["ListItemSecondaryAction"]),O={...r,alignItems:o,dense:k.dense,disableGutters:d,disablePadding:m,divider:g,hasSecondaryAction:A},$=H0(O),y=ke(I,n),E=b.root||l.Root||U0,D=w.root||c.root||{},M={className:de($.root,D.className,i),...x};let T=a||"li";return A?(T=!M.component&&!a?"div":T,u==="li"&&(T==="li"?T="div":M.component==="li"&&(M.component="div")),f.jsx($n.Provider,{value:k,children:f.jsxs(Y0,{as:u,className:de($.container,p),ref:y,ownerState:O,...h,children:[f.jsx(E,{...D,...!jn(E)&&{as:T,ownerState:{...O,...D.ownerState}},...M,children:R}),R.pop()]})})):f.jsx($n.Provider,{value:k,children:f.jsxs(E,{...D,as:T,ref:y,...!jn(E)&&{ownerState:{...O,...D.ownerState}},...M,children:[R,C&&f.jsx(sd,{children:C})]})})}),q0=$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 K0(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=Ho(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),b=e==="root"?m||c:m,x=Pu(v,{...e==="root"&&!c&&!u[e]&&i,...e!=="root"&&!u[e]&&i,...g,...b&&!a&&{as:b},...b&&a&&{component:b},ref:w},o);return[v,x]}const X0=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:i,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${le(r)}`,`color${le(o)}`,a&&"clickable",a&&`clickableColor${le(o)}`,i&&"deletable",i&&`deletableColor${le(o)}`,`${l}${le(o)}`],label:["label",`label${le(r)}`],avatar:["avatar",`avatar${le(r)}`,`avatarColor${le(o)}`],icon:["icon",`icon${le(r)}`,`iconColor${le(s)}`],deleteIcon:["deleteIcon",`deleteIcon${le(r)}`,`deleteIconColor${le(o)}`,`deleteIcon${le(l)}Color${le(o)}`]};return me(c,K0,t)},Q0=G("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:i,size:a,variant:l}=n;return[{[`& .${xe.avatar}`]:t.avatar},{[`& .${xe.avatar}`]:t[`avatar${le(a)}`]},{[`& .${xe.avatar}`]:t[`avatarColor${le(r)}`]},{[`& .${xe.icon}`]:t.icon},{[`& .${xe.icon}`]:t[`icon${le(a)}`]},{[`& .${xe.icon}`]:t[`iconColor${le(o)}`]},{[`& .${xe.deleteIcon}`]:t.deleteIcon},{[`& .${xe.deleteIcon}`]:t[`deleteIcon${le(a)}`]},{[`& .${xe.deleteIcon}`]:t[`deleteIconColor${le(r)}`]},{[`& .${xe.deleteIcon}`]:t[`deleteIcon${le(l)}Color${le(r)}`]},t.root,t[`size${le(a)}`],t[`color${le(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${le(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${le(r)}`],t[l],t[`${l}${le(r)}`]]}})(Ee(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${xe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${xe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${xe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${xe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${xe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${xe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${xe.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${xe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${xe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Xe(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${xe.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${xe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${xe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${xe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Xe(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${xe.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${xe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Xe(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${xe.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${xe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${xe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${xe.avatar}`]:{marginLeft:4},[`& .${xe.avatarSmall}`]:{marginLeft:2},[`& .${xe.icon}`]:{marginLeft:4},[`& .${xe.iconSmall}`]:{marginLeft:2},[`& .${xe.deleteIcon}`]:{marginRight:5},[`& .${xe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Xe()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${xe.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${xe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${xe.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Z0=G("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${le(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Sl(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:b,skipFocusWhenDisabled:x=!1,slots:P={},slotProps:k={},...I}=r,R=S.useRef(null),A=ke(R,n),O=J=>{J.stopPropagation(),d&&d(J)},$=J=>{J.currentTarget===J.target&&Sl(J)&&J.preventDefault(),m&&m(J)},y=J=>{J.currentTarget===J.target&&d&&Sl(J)&&d(J),g&&g(J)},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},T=X0(M),F=D===Bn?{component:l||"div",focusVisibleClassName:T.focusVisible,...d&&{disableRipple:!0}}:{};let L=null;d&&(L=c&&S.isValidElement(c)?S.cloneElement(c,{className:de(c.props.className,T.deleteIcon),onClick:O}):f.jsx(q0,{className:T.deleteIcon,onClick:O}));let N=null;o&&S.isValidElement(o)&&(N=S.cloneElement(o,{className:de(T.avatar,o.props.className)}));let H=null;p&&S.isValidElement(p)&&(H=S.cloneElement(p,{className:de(T.icon,p.props.className)}));const Q={slots:P,slotProps:k},[K,se]=je("root",{elementType:Q0,externalForwardedProps:{...Q,...I},ownerState:M,shouldForwardComponentProp:!0,ref:A,className:de(T.root,s),additionalProps:{disabled:E&&u?!0:void 0,tabIndex:x&&u?-1:b,...F},getSlotProps:J=>({...J,onClick:ee=>{J.onClick?.(ee),v?.(ee)},onKeyDown:ee=>{J.onKeyDown?.(ee),$(ee)},onKeyUp:ee=>{J.onKeyUp?.(ee),y(ee)}})}),[re,B]=je("label",{elementType:Z0,externalForwardedProps:Q,ownerState:M,className:T.label});return f.jsxs(K,{as:D,...se,children:[N||H,f.jsx(re,{...B,children:h}),L]})}),Mr=36,Ko=2,Xo=320,J0=280,Ai=336,eS=["items","changeImportance","isLandscape","onChange","isValid"],tS=["getValue"];function nS(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,s=ve(e,eS);if(t==null||t.length===0)return null;const i=t.map(a=>{let{getValue:l}=a,c=ve(a,tS);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:Ai,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(a=>f.jsx(G0,{children:f.jsx(id,j({},a))},a.id??a.label))}))}function rS(e){return e.view!==null}const oS=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)},sS=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,b=oS(e),x=C?.actionBar??A0,P=Pe({elementType:x,externalSlotProps:w?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:b.actionBar,ownerState:j({},e,{wrapperVariant:t})}),k=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:b.toolbar,ownerState:j({},e,{wrapperVariant:t})}),A=rS(R)&&I?f.jsx(I,j({},R)):null,O=g,$=C?.tabs,y=i&&$?f.jsx($,j({view:i,onViewChange:l,className:b.tabs},w?.tabs)):null,E=C?.shortcuts??nS,D=Pe({elementType:E,externalSlotProps:w?.shortcuts,additionalProps:{isValid:h,isLandscape:v,onChange:p},className:b.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:y,actionBar:k,shortcuts:M}},iS=e=>{const{isLandscape:t,classes:n}=e;return me({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},nd,n)},aS=G("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${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}}}]}),lS=G("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}=sS(r),{sx:c,className:u,isLandscape:p,wrapperVariant:h}=r,v=iS(r);return f.jsxs(aS,{ref:n,sx:c,className:de(v.root,u),ownerState:r,children:[p?l:o,p?o:l,f.jsx(lS,{className:v.contentWrapper,children:h==="desktop"?f.jsxs(S.Fragment,{children:[s,i]}):f.jsxs(S.Fragment,{children:[i,s]})}),a]})}),cS=S.createContext(null);function ld(e){const{contextValue:t,localeText:n,children:r}=e;return f.jsx(cS.Provider,{value:t,children:f.jsx(Cr,{localeText:n,children:r})})}const uS=["props","getOpenDialogAriaText"],dS=["ownerState"],pS=["ownerState"],fS=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,uS);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:b,localeText:x,reduceAnimations:P}=t,k=S.useRef(null),I=S.useRef(null),R=xt(),A=s?.toolbar?.hidden??!1,{open:O,actions:$,hasUIView:y,layoutProps:E,renderCurrentView:D,shouldRestoreFocus:M,fieldProps:T,contextValue:F,ownerState:L}=td(j({},r,{props:t,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),N=o.inputAdornment??ju,H=Pe({elementType:N,externalSlotProps:s?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),Q=ve(H,dS),K=o.openPickerButton??Br,se=Pe({elementType:K,externalSlotProps:s?.openPickerButton,additionalProps:{disabled:w||C,onClick:O?$.onClose:$.onOpen,"aria-label":n(T.value),edge:Q.position},ownerState:t}),re=ve(se,pS),B=o.openPickerIcon,J=Pe({elementType:B,externalSlotProps:s?.openPickerIcon,ownerState:L}),ee=o.field,X=Pe({elementType:ee,externalSlotProps:s?.field,additionalProps:j({},T,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:b&&!t.open,focused:O?!0:void 0},g?{inputRef:g}:{}),ownerState:t});y&&(X.InputProps=j({},X.InputProps,{ref:k},!t.disableOpenPicker&&{[`${Q.position}Adornment`]:f.jsx(N,j({},Q,{children:f.jsx(K,j({},re,{children:f.jsx(B,j({},J))}))}))}));const _=j({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},X.slots),U=o.layout??ad;let ne=R;A&&(m?ne=`${R}-label`:ne=void 0);const te=j({},s,{toolbar:j({},s?.toolbar,{titleId:R}),popper:j({"aria-labelledby":ne},s?.popper)}),V=ke(I,X.unstableFieldRef);return{renderPicker:()=>f.jsxs(ld,{contextValue:F,localeText:x,children:[f.jsx(ee,j({},X,{slots:_,slotProps:te,unstableFieldRef:V})),f.jsx(u0,j({role:"dialog",placement:"bottom-start",anchorEl:k.current},$,{open:O,slots:o,slotProps:te,shouldRestoreFocus:M,reduceAnimations:P,children:f.jsx(U,j({},E,te?.layout,{slots:o,slotProps:te,children:D()}))}))]})}},hS=$e(f.jsx("path",{d:"M7 10l5 5 5-5z"})),mS=$e(f.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),gS=$e(f.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),yS=$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 bS=$e(f.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function Gr(e){return parseInt(e,10)||0}const vS={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function xS(e){for(const t in e)return!1;return!0}function wl(e){return xS(e)||e.outerHeightStyle===0&&!e.overflowing}const SS=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 b=u.current,x=v.current;if(!b||!x)return;const k=Lt(b).getComputedStyle(b);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=k.width,x.value=b.value||t.placeholder||"x",x.value.slice(-1)===`
|
|
133
|
+
`&&(x.value+=" ");const I=k.boxSizing,R=Gr(k.paddingBottom)+Gr(k.paddingTop),A=Gr(k.borderBottomWidth)+Gr(k.borderTopWidth),O=x.scrollHeight;x.value="x";const $=x.scrollHeight;let y=O;s&&(y=Math.max(Number(s)*$,y)),o&&(y=Math.min(Number(o)*$,y)),y=Math.max(y,$);const E=y+(I==="border-box"?R+A:0),D=Math.abs(y-O)<=1;return{outerHeightStyle:E,overflowing:D}},[o,s,t.placeholder]),m=ue(()=>{const b=u.current,x=d();if(!b||!x||wl(x))return!1;const P=x.outerHeightStyle;return h.current!=null&&h.current!==P}),g=S.useCallback(()=>{const b=u.current,x=d();if(!b||!x||wl(x))return;const P=x.outerHeightStyle;h.current!==P&&(h.current=P,b.style.height=`${P}px`),b.style.overflow=x.overflowing?"hidden":""},[d]),C=S.useRef(-1);Ue(()=>{const b=uc(g),x=u?.current;if(!x)return;const P=Lt(x);P.addEventListener("resize",b);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{m()&&(k.unobserve(x),cancelAnimationFrame(C.current),g(),C.current=requestAnimationFrame(()=>{k.observe(x)}))}),k.observe(x)),()=>{b.clear(),cancelAnimationFrame(C.current),P.removeEventListener("resize",b),k&&k.disconnect()}},[d,g,m]),Ue(()=>{g()});const w=b=>{c||g();const x=b.target,P=x.value.length,k=x.value.endsWith(`
|
|
134
|
+
`),I=x.selectionStart===P;k&&I&&x.setSelectionRange(P,P),r&&r(b)};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:{...vS.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 Cl(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ko(e,t=!1){return e&&(Cl(e.value)&&e.value!==""||t&&Cl(e.defaultValue)&&e.defaultValue!=="")}function wS(e){return e.startAdornment}function CS(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 Pl;const Qo=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${le(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Zo=(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]},PS=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${le(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",a&&"formControl",h&&h!=="medium"&&`size${le(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,CS,t)},Jo=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Qo})(Ee(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${mn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),es=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Zo})(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"}}]}})),kl=um({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Fi=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:b={},inputRef:x,margin:P,maxRows:k,minRows:I,multiline:R=!1,name:A,onBlur:O,onChange:$,onClick:y,onFocus:E,onKeyDown:D,onKeyUp:M,placeholder:T,readOnly:F,renderSuffix:L,rows:N,size:H,slotProps:Q={},slots:K={},startAdornment:se,type:re="text",value:B,...J}=r,ee=b.value!=null?b.value:B,{current:X}=S.useRef(ee!=null),_=S.useRef(),U=S.useCallback(Oe=>{},[]),ne=ke(_,x,b.ref,U),[te,V]=S.useState(!1),Z=ft(),ie=bn({props:r,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=Z?Z.focused:te,S.useEffect(()=>{!Z&&h&&te&&(V(!1),O&&O())},[Z,h,te,O]);const oe=Z&&Z.onFilled,ce=Z&&Z.onEmpty,ae=S.useCallback(Oe=>{ko(Oe)?oe&&oe():ce&&ce()},[oe,ce]);Ue(()=>{X&&ae({value:ee})},[ee,ae,X]);const fe=Oe=>{E&&E(Oe),b.onFocus&&b.onFocus(Oe),Z&&Z.onFocus?Z.onFocus(Oe):V(!0)},be=Oe=>{O&&O(Oe),b.onBlur&&b.onBlur(Oe),Z&&Z.onBlur?Z.onBlur(Oe):V(!1)},we=(Oe,..._t)=>{if(!X){const zt=Oe.target||_.current;if(zt==null)throw new Error(At(1));ae({value:zt.value})}b.onChange&&b.onChange(Oe,..._t),$&&$(Oe,..._t)};S.useEffect(()=>{ae(_.current)},[]);const pe=Oe=>{_.current&&Oe.currentTarget===Oe.target&&_.current.focus(),y&&y(Oe)};let qe=w,Be=b;R&&qe==="input"&&(N?Be={type:void 0,minRows:N,maxRows:N,...Be}:Be={type:void 0,maxRows:k,minRows:I,...Be},qe=SS);const ht=Oe=>{ae(Oe.animationName==="mui-auto-fill-cancel"?_.current:{value:"x"})};S.useEffect(()=>{Z&&Z.setAdornedStart(!!se)},[Z,se]);const mt={...r,color:ie.color||"primary",disabled:ie.disabled,endAdornment:d,error:ie.error,focused:ie.focused,formControl:Z,fullWidth:g,hiddenLabel:ie.hiddenLabel,multiline:R,size:ie.size,startAdornment:se,type:re},nt=PS(mt),rt=K.root||c.Root||Jo,Vt=Q.root||u.root||{},gt=K.input||c.Input||es;return Be={...Be,...Q.input??u.input},f.jsxs(S.Fragment,{children:[!v&&typeof kl=="function"&&(Pl||(Pl=f.jsx(kl,{}))),f.jsxs(rt,{...Vt,ref:n,onClick:pe,...J,...!jn(rt)&&{ownerState:{...mt,...Vt.ownerState}},className:de(nt.root,Vt.className,a,F&&"MuiInputBase-readOnly"),children:[se,f.jsx(Go.Provider,{value:null,children:f.jsx(gt,{"aria-invalid":ie.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:p,disabled:ie.disabled,id:C,onAnimationStart:ht,name:A,placeholder:T,readOnly:F,required:ie.required,rows:N,value:ee,onKeyDown:D,onKeyUp:M,type:re,...Be,...!jn(gt)&&{as:qe,ownerState:{...mt,...Be.ownerState}},ref:ne,className:de(nt.input,Be.className,F&&"MuiInputBase-readOnly"),onBlur:be,onChange:we,onFocus:fe})}),d,L?L({...ie,startAdornment:se}):null]})]})});function kS(e){return ge("MuiInput",e)}const Mn={...mn,...he("MuiInput",["root","underline","input"])},TS=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},kS,t);return{...t,...o}},MS=G(Jo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qo(e,t),!n.disableUnderline&&t.underline]}})(Ee(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${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}`}}}))]}})),DS=G(es,{name:"MuiInput",slot:"Input",overridesResolver:Zo})({}),Li=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=TS(r),g={root:{ownerState:{disableUnderline:o}}},C=u??i?Ge(u??i,g):g,w=p.root??s.Root??MS,b=p.input??s.Input??DS;return f.jsx(Fi,{slots:{root:w,input:b},slotProps:C,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:h,...v,classes:d})});Li.muiName="Input";function RS(e){return ge("MuiFilledInput",e)}const Yt={...mn,...he("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},IS=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:s,hiddenLabel:i,multiline:a}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${le(s)}`,i&&"hiddenLabel",a&&"multiline"],input:["input"]},c=me(l,RS,t);return{...t,...c}},ES=G(Jo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qo(e,t),!n.disableUnderline&&t.underline]}})(Ee(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${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=G(es,{name:"MuiFilledInput",slot:"Input",overridesResolver:Zo})(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}}]}))),Ni=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=IS(r),C={root:{ownerState:m},input:{ownerState:m}},w=p??i?Ge(C,p??i):C,b=h.root??s.Root??ES,x=h.input??s.Input??$S;return f.jsx(Fi,{slots:{root:b,input:x},slotProps:w,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:v,...d,classes:g})});Ni.muiName="Input";var Tl;const OS=G("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:pt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),AS=G("legend",{name:"MuiNotchedOutlined",shouldForwardProp:pt})(Ee(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function FS(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(OS,{"aria-hidden":!0,className:r,ownerState:l,...i,children:f.jsx(AS,{ownerState:l,children:a?f.jsx("span",{children:o}):Tl||(Tl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function LS(e){return ge("MuiOutlinedInput",e)}const bt={...mn,...he("MuiOutlinedInput",["root","notchedOutline","input"])},NS=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},LS,t);return{...t,...r}},jS=G(Jo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Qo})(Ee(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bt.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${bt.focused} .${bt.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Xe()).map(([n])=>({props:{color:n},style:{[`&.${bt.focused} .${bt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${bt.error} .${bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bt.disabled} .${bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),BS=G(FS,{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}})),VS=G(es,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Zo})(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}}]}))),ji=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=NS(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??jS,b=u.input??o.Input??VS,[x,P]=je("notchedOutline",{elementType:BS,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(Fi,{slots:{root:w,input:b},slotProps:p,renderSuffix:k=>f.jsx(x,{...P,notched:typeof c<"u"?c:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:s,inputComponent:i,multiline:l,ref:n,type:h,...v,classes:{...d,notchedOutline:null}})});ji.muiName="Input";function _S(e){return ge("MuiFormLabel",e)}const yr=he("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),zS=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:a}=e,l={root:["root",`color${le(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return me(l,_S,t)},WS=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ee(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{[`&.${yr.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${yr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yr.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),HS=G("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ee(({theme:e})=>({[`&.${yr.error}`]:{color:(e.vars||e).palette.error.main}}))),US=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=zS(g);return f.jsxs(WS,{as:a,ownerState:g,className:de(C.root,s),ref:n,...v,children:[o,m.required&&f.jsxs(HS,{ownerState:g,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function YS(e){return ge("MuiInputLabel",e)}he("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const GS=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:i,required:a}=e,l={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="medium"&&`size${le(r)}`,i],asterisk:[a&&"asterisk"]},c=me(l,YS,t);return{...t,...c}},qS=G(US,{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)"}}]}))),Bi=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=GS(v);return f.jsx(qS,{"data-shrink":p,ref:n,className:de(d.root,l),...c,ownerState:v,classes:d})});function KS(e){return ge("MuiFormControl",e)}he("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const XS=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${le(n)}`,r&&"fullWidth"]};return me(o,KS,t)},QS=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${le(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Vi=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},b=XS(w),[x,P]=S.useState(()=>{let M=!1;return o&&S.Children.forEach(o,T=>{if(!no(T,["Input","Select"]))return;const F=no(T,["Select"])?T.props.input:T;F&&wS(F.props)&&(M=!0)}),M}),[k,I]=S.useState(()=>{let M=!1;return o&&S.Children.forEach(o,T=>{no(T,["Input","Select"])&&(ko(T.props,!0)||ko(T.props.inputProps,!0))&&(M=!0)}),M}),[R,A]=S.useState(!1);l&&R&&A(!1);const O=u!==void 0&&!l?u:R;let $;S.useRef(!1);const y=S.useCallback(()=>{I(!0)},[]),E=S.useCallback(()=>{I(!1)},[]),D=S.useMemo(()=>({adornedStart:x,setAdornedStart:P,color:i,disabled:l,error:c,filled:k,focused:O,fullWidth:p,hiddenLabel:h,size:m,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:E,onFilled:y,registerEffect:$,required:d,variant:g}),[x,i,l,c,k,O,p,h,$,E,y,d,m,g]);return f.jsx(Go.Provider,{value:D,children:f.jsx(QS,{as:a,ownerState:w,className:de(b.root,s),ref:n,...C,children:o})})});function ZS(e){return ge("MuiFormHelperText",e)}const Ml=he("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Dl;const JS=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:i,focused:a,required:l}=e,c={root:["root",o&&"disabled",s&&"error",r&&`size${le(r)}`,n&&"contained",a&&"focused",i&&"filled",l&&"required"]};return me(c,ZS,t)},ew=G("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ee(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ml.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ml.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),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=JS(C);return f.jsx(ew,{as:i,className:de(w.root,s),ref:n,...d,ownerState:C,children:o===" "?Dl||(Dl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function gs(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Rl(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 tw=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:(b,{direction:x})=>{const P=!v.current.style.width;if(b.clientHeight<v.current.clientHeight&&P){const k=`${Cu(Lt(b))}px`;v.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=k,v.current.style.width=`calc(100% + ${k})`}return v.current}}),[]);const m=b=>{const x=v.current,P=b.key;if(b.ctrlKey||b.metaKey||b.altKey){u&&u(b);return}const I=Ye(x).activeElement;if(P==="ArrowDown")b.preventDefault(),tr(x,I,c,l,gs);else if(P==="ArrowUp")b.preventDefault(),tr(x,I,c,l,Rl);else if(P==="Home")b.preventDefault(),tr(x,null,c,l,gs);else if(P==="End")b.preventDefault(),tr(x,null,c,l,Rl);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,gs,R))?b.preventDefault():R.previousKeyMatched=!1}u&&u(b)},g=ke(v,n);let C=-1;S.Children.forEach(i,(b,x)=>{if(!S.isValidElement(b)){C===x&&(C+=1,C>=i.length&&(C=-1));return}b.props.disabled||(p==="selectedMenu"&&b.props.selected||C===-1)&&(C=x),C===x&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(C+=1,C>=i.length&&(C=-1))});const w=S.Children.map(i,(b,x)=>{if(x===C){const P={};return s&&(P.autoFocus=!0),b.props.tabIndex===void 0&&p==="selectedMenu"&&(P.tabIndex=0),S.cloneElement(b,P)}return b});return f.jsx(od,{role:"menu",ref:g,className:a,onKeyDown:m,tabIndex:o?0:-1,...h,children:w})});function nw(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 Il(e){return parseInt(Lt(e).getComputedStyle(e).paddingRight,10)||0}function rw(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 El(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const a=!s.includes(i),l=!rw(i);a&&l&&br(i,o)})}function ys(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function ow(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(nw(r)){const i=Cu(Lt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Il(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=`${Il(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 sw(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class iw{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=sw(n);El(n,t.mount,t.modalRef,o,!0);const s=ys(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=ys(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=ow(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ys(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),El(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 aw(e){return ge("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const lw=e=>{const{classes:t,invisible:n}=e;return me({root:["root",n&&"invisible"]},aw,t)},cw=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),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=lw(g),w={transition:v,root:c.Root,...h},b={...u,...p},x={component:i,slots:w,slotProps:b},[P,k]=je("root",{elementType:cw,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,...k,classes:C,ref:n,children:o})})});function uw(e){return typeof e=="function"?e():e}function dw(e){return e?e.props.hasOwnProperty("in"):!1}const $l=()=>{},qr=new iw;function pw(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=dw(a);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const b=()=>Ye(h.current),x=()=>(p.current.modalRef=v.current,p.current.mount=h.current,p.current),P=()=>{qr.mount(x(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},k=ue(()=>{const M=uw(t)||b().body;qr.add(x(),M),v.current&&P()}),I=()=>qr.isTopModal(x()),R=ue(M=>{h.current=M,M&&(c&&I()?P():v.current&&br(v.current,w))}),A=S.useCallback(()=>{qr.remove(x(),w)},[w]);S.useEffect(()=>()=>{A()},[A]),S.useEffect(()=>{c?k():(!C||!o)&&A()},[c,A,C,o,k]);const O=M=>T=>{M.onKeyDown?.(T),!(T.key!=="Escape"||T.which===229||!I())&&(n||(T.stopPropagation(),l&&l(T,"escapeKeyDown")))},$=M=>T=>{M.onClick?.(T),T.target===T.currentTarget&&l&&l(T,"backdropClick")};return{getRootProps:(M={})=>{const T=gi(e);delete T.onTransitionEnter,delete T.onTransitionExited;const F={...T,...M};return{role:"presentation",...F,onKeyDown:O(F),ref:d}},getBackdropProps:(M={})=>{const T=M;return{"aria-hidden":!0,...T,onClick:$(T),open:c}},getTransitionProps:()=>{const M=()=>{g(!1),s&&s()},T=()=>{g(!0),i&&i(),o&&A()};return{onEnter:aa(M,a?.props.onEnter??$l),onExited:aa(T,a?.props.onExited??$l)}},rootRef:d,portalRef:R,isTopModal:I,exited:m,hasTransition:C}}function fw(e){return ge("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const hw=e=>{const{open:t,exited:n,classes:r}=e;return me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},fw,r)},mw=G("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ee(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),gw=G(dd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),pd=S.forwardRef(function(t,n){const r=Ce({name:"MuiModal",props:t}),{BackdropComponent:o=gw,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:b=!1,hideBackdrop:x=!1,keepMounted:P=!1,onClose:k,onTransitionEnter:I,onTransitionExited:R,open:A,slotProps:O={},slots:$={},theme:y,...E}=r,D={...r,closeAfterTransition:l,disableAutoFocus:d,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:C,disableRestoreFocus:w,disableScrollLock:b,hideBackdrop:x,keepMounted:P},{getRootProps:M,getBackdropProps:T,getTransitionProps:F,portalRef:L,isTopModal:N,exited:H,hasTransition:Q}=pw({...D,rootRef:n}),K={...D,exited:H},se=hw(K),re={};if(c.props.tabIndex===void 0&&(re.tabIndex="-1"),Q){const{onEnter:U,onExited:ne}=F();re.onEnter=U,re.onExited=ne}const B={slots:{root:h.Root,backdrop:h.Backdrop,...$},slotProps:{...v,...O}},[J,ee]=je("root",{ref:n,elementType:mw,externalForwardedProps:{...B,...E,component:p},getSlotProps:M,ownerState:K,className:de(a,se?.root,!K.open&&K.exited&&se?.hidden)}),[X,_]=je("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:U=>T({...U,onClick:ne=>{U?.onClick&&U.onClick(ne)}}),className:de(s?.className,se?.backdrop),ownerState:K});return!P&&!A&&(!Q||H)?null:f.jsx(Xu,{ref:L,container:u,disablePortal:C,children:f.jsxs(J,{...ee,children:[!x&&o?f.jsx(X,{..._}):null,f.jsx(Zu,{disableEnforceFocus:m,disableAutoFocus:d,disableRestoreFocus:w,isEnabled:N,open:A,children:S.cloneElement(c,re)})]})})});function yw(e){return ge("MuiPopover",e)}he("MuiPopover",["root","paper"]);function Ol(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Al(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Fl(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Kr(e){return typeof e=="function"?e():e}const bw=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},yw,t)},vw=G(pd,{name:"MuiPopover",slot:"Root"})({}),fd=G(Vr,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),xw=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:b,transitionDuration:x="auto",TransitionProps:P={},disableScrollLock:k=!1,...I}=r,R=S.useRef(),A={...r,anchorOrigin:i,anchorReference:l,elevation:h,marginThreshold:v,transformOrigin:w,TransitionComponent:b,transitionDuration:x,TransitionProps:P},O=bw(A),$=S.useCallback(()=>{if(l==="anchorPosition")return a;const U=Kr(s),te=(U&&U.nodeType===1?U:Ye(R.current).body).getBoundingClientRect();return{top:te.top+Ol(te,i.vertical),left:te.left+Al(te,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),y=S.useCallback(U=>({vertical:Ol(U,w.vertical),horizontal:Al(U,w.horizontal)}),[w.horizontal,w.vertical]),E=S.useCallback(U=>{const ne={width:U.offsetWidth,height:U.offsetHeight},te=y(ne);if(l==="none")return{top:null,left:null,transformOrigin:Fl(te)};const V=$();let Z=V.top-te.vertical,ie=V.left-te.horizontal;const oe=Z+ne.height,ce=ie+ne.width,ae=Lt(Kr(s)),fe=ae.innerHeight-v,be=ae.innerWidth-v;if(v!==null&&Z<v){const we=Z-v;Z-=we,te.vertical+=we}else if(v!==null&&oe>fe){const we=oe-fe;Z-=we,te.vertical+=we}if(v!==null&&ie<v){const we=ie-v;ie-=we,te.horizontal+=we}else if(ce>be){const we=ce-be;ie-=we,te.horizontal+=we}return{top:`${Math.round(Z)}px`,left:`${Math.round(ie)}px`,transformOrigin:Fl(te)}},[s,l,$,y,v]),[D,M]=S.useState(d),T=S.useCallback(()=>{const U=R.current;if(!U)return;const ne=E(U);ne.top!==null&&U.style.setProperty("top",ne.top),ne.left!==null&&(U.style.left=ne.left),U.style.transformOrigin=ne.transformOrigin,M(!0)},[E]);S.useEffect(()=>(k&&window.addEventListener("scroll",T),()=>window.removeEventListener("scroll",T)),[s,k,T]);const F=()=>{T()},L=()=>{M(!1)};S.useEffect(()=>{d&&T()}),S.useImperativeHandle(o,()=>d?{updatePosition:()=>{T()}}:null,[d,T]),S.useEffect(()=>{if(!d)return;const U=uc(()=>{T()}),ne=Lt(Kr(s));return ne.addEventListener("resize",U),()=>{U.clear(),ne.removeEventListener("resize",U)}},[s,d,T]);let N=x;const H={slots:{transition:b,...g},slotProps:{transition:P,paper:m,...C}},[Q,K]=je("transition",{elementType:Pr,externalForwardedProps:H,ownerState:A,getSlotProps:U=>({...U,onEntering:(ne,te)=>{U.onEntering?.(ne,te),F()},onExited:ne=>{U.onExited?.(ne),L()}}),additionalProps:{appear:!0,in:d}});x==="auto"&&!Q.muiSupportAuto&&(N=void 0);const se=p||(s?Ye(Kr(s)).body:void 0),[re,{slots:B,slotProps:J,...ee}]=je("root",{ref:n,elementType:vw,externalForwardedProps:{...H,...I},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:dc(typeof C.backdrop=="function"?C.backdrop(A):C.backdrop,{invisible:!0})},container:se,open:d},ownerState:A,className:de(O.root,u)}),[X,_]=je("paper",{ref:R,className:O.paper,elementType:fd,externalForwardedProps:H,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:D?void 0:{opacity:0}},ownerState:A});return f.jsx(re,{...ee,...!jn(re)&&{slots:B,slotProps:J,disableScrollLock:k},children:f.jsx(Q,{...K,timeout:N,children:f.jsx(X,{..._,children:c})})})});function Sw(e){return ge("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const ww={vertical:"top",horizontal:"right"},Cw={vertical:"top",horizontal:"left"},Pw=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"],list:["list"]},Sw,t)},kw=G(xw,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Tw=G(fd,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Mw=G(tw,{name:"MuiMenu",slot:"List"})({outline:0}),Dw=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={},...b}=r,x=vt(),P={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:d,PaperProps:p,transitionDuration:v,TransitionProps:m,variant:g},k=Pw(P),I=o&&!a&&u,R=S.useRef(null),A=(N,H)=>{R.current&&R.current.adjustStyleForScrollbar(N,{direction:x?"rtl":"ltr"}),d&&d(N,H)},O=N=>{N.key==="Tab"&&(N.preventDefault(),c&&c(N,"tabKeyDown"))};let $=-1;S.Children.map(s,(N,H)=>{S.isValidElement(N)&&(N.props.disabled||(g==="selectedMenu"&&N.props.selected||$===-1)&&($=H))});const y={slots:C,slotProps:{list:l,transition:m,paper:p,...w}},E=Pe({elementType:C.root,externalSlotProps:w.root,ownerState:P,className:[k.root,i]}),[D,M]=je("paper",{className:k.paper,elementType:Tw,externalForwardedProps:y,shouldForwardComponentProp:!0,ownerState:P}),[T,F]=je("list",{className:de(k.list,l.className),elementType:Mw,shouldForwardComponentProp:!0,externalForwardedProps:y,getSlotProps:N=>({...N,onKeyDown:H=>{O(H),N.onKeyDown?.(H)}}),ownerState:P}),L=typeof y.slotProps.transition=="function"?y.slotProps.transition(P):y.slotProps.transition;return f.jsx(kw,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?ww:Cw,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,...b,classes:h,children:f.jsx(T,{actions:R,autoFocus:o&&($===-1||a),autoFocusItem:I,variant:g,...F,children:s})})});function Rw(e){return ge("MuiNativeSelect",e)}const _i=he("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Iw=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${le(n)}`,s&&"iconOpen",r&&"disabled"]};return me(a,Rw,t)},hd=G("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${_i.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}}}]})),Ew=G(hd,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${_i.multiple}`]:t.multiple}]}})({}),md=G("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${_i.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=G(md,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})({}),Ow=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=Iw(u);return f.jsxs(S.Fragment,{children:[f.jsx(Ew,{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 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 Ll;const Aw=G(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"}}),Fw=G(md,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})({}),Lw=G("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 Nl(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Nw(e){return e==null||typeof e=="string"&&!e.trim()}const jw=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${le(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return me(a,gd,t)},Bw=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:b,onBlur:x,onChange:P,onClose:k,onFocus:I,onOpen:R,open:A,readOnly:O,renderValue:$,required:y,SelectDisplayProps:E={},tabIndex:D,type:M,value:T,variant:F="standard",...L}=t,[N,H]=Dt({controlled:T,default:u,name:"Select"}),[Q,K]=Dt({controlled:A,default:c,name:"Select"}),se=S.useRef(null),re=S.useRef(null),[B,J]=S.useState(null),{current:ee}=S.useRef(A!=null),[X,_]=S.useState(),U=ke(n,m),ne=S.useCallback(ye=>{re.current=ye,ye&&J(ye)},[]),te=B?.parentNode;S.useImperativeHandle(U,()=>({focus:()=>{re.current.focus()},node:se.current,value:N}),[N]),S.useEffect(()=>{c&&Q&&B&&!ee&&(_(i?null:te.clientWidth),re.current.focus())},[B,i]),S.useEffect(()=>{s&&re.current.focus()},[s]),S.useEffect(()=>{if(!g)return;const ye=Ye(re.current).getElementById(g);if(ye){const Te=()=>{getSelection().isCollapsed&&re.current.focus()};return ye.addEventListener("click",Te),()=>{ye.removeEventListener("click",Te)}}},[g]);const V=(ye,Te)=>{ye?R&&R(Te):k&&k(Te),ee||(_(i?null:te.clientWidth),K(ye))},Z=ye=>{ye.button===0&&(ye.preventDefault(),re.current.focus(),V(!0,ye))},ie=ye=>{V(!1,ye)},oe=S.Children.toArray(a),ce=ye=>{const Te=oe.find(ze=>ze.props.value===ye.target.value);Te!==void 0&&(H(Te.props.value),P&&P(ye,Te))},ae=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&&(H(ze),P)){const Wt=Te.nativeEvent||Te,Ae=new Wt.constructor(Wt.type,Wt);Object.defineProperty(Ae,"target",{writable:!0,value:{value:ze,name:b}}),P(Ae,ye)}w||V(!1,Te)}},fe=ye=>{O||[" ","ArrowUp","ArrowDown","Enter"].includes(ye.key)&&(ye.preventDefault(),V(!0,ye))},be=B!==null&&Q,we=ye=>{!be&&x&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:N,name:b}}),x(ye))};delete L["aria-invalid"];let pe,qe;const Be=[];let ht=!1;(ko({value:N})||h)&&($?pe=$(N):ht=!0);const mt=oe.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=>Nl(ze,ye.props.value)),Te&&ht&&Be.push(ye.props.children)}else Te=Nl(N,ye.props.value),Te&&ht&&(qe=ye.props.children);return S.cloneElement(ye,{"aria-selected":Te?"true":"false",onClick:ae(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=X;!i&&ee&&B&&(nt=te.clientWidth);let rt;typeof D<"u"?rt=D:rt=p?null:0;const Vt=E.id||(b?`mui-component-select-${b}`:void 0),gt={...t,variant:F,value:N,open:be,error:v},Oe=jw(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(Aw,{as:"div",ref:ne,tabIndex:rt,role:"combobox","aria-controls":be?Kn:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":be?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,Vt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":y?"true":void 0,"aria-invalid":v?"true":void 0,onKeyDown:fe,onMouseDown:p||O?null:Z,onBlur:we,onFocus:I,...E,ownerState:gt,className:de(E.className,Oe.select,l),id:Vt,children:Nw(pe)?Ll||(Ll=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):pe}),f.jsx(Lw,{"aria-invalid":v,value:Array.isArray(N)?N.join(","):N,name:b,ref:se,"aria-hidden":!0,onChange:ce,tabIndex:-1,disabled:p,className:Oe.nativeInput,autoFocus:s,required:y,...L,ownerState:gt}),f.jsx(Fw,{as:d,className:Oe.icon,ownerState:gt}),f.jsx(Dw,{id:`menu-${b||""}`,anchorEl:te,open:be,onClose:ie,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"})),Vw=e=>{const{classes:t}=e,r=me({root:["root"]},gd,t);return{...t,...r}},zi={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>pt(e)&&e!=="variant"},_w=G(Li,zi)(""),zw=G(ji,zi)(""),Ww=G(Ni,zi)(""),Wi=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:b,onOpen:x,open:P,renderValue:k,SelectDisplayProps:I,variant:R="outlined",...A}=r,O=w?Ow:Bw,$=ft(),y=bn({props:r,muiFormControl:$,states:["variant","error"]}),E=y.variant||R,D={...r,variant:E,classes:i},M=Vw(D),{root:T,...F}=M,L=h||{standard:f.jsx(_w,{ownerState:D}),outlined:f.jsx(zw,{label:d,ownerState:D}),filled:f.jsx(Ww,{ownerState:D})}[E],N=ke(n,Gn(L));return f.jsx(S.Fragment,{children:S.cloneElement(L,{inputComponent:O,inputProps:{children:s,error:y.error,IconComponent:u,variant:E,type:void 0,multiple:C,...w?{id:p}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:g,onClose:b,onOpen:x,open:P,renderValue:k,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})})});Wi.muiName="Select";function Hw(e){return ge("MuiTextField",e)}he("MuiTextField",["root"]);const Uw={standard:Li,filled:Ni,outlined:ji},Yw=e=>{const{classes:t}=e;return me({root:["root"]},Hw,t)},Gw=G(Vi,{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:b,label:x,maxRows:P,minRows:k,multiline:I=!1,name:R,onBlur:A,onChange:O,onFocus:$,placeholder:y,required:E=!1,rows:D,select:M=!1,SelectProps:T,slots:F={},slotProps:L={},type:N,value:H,variant:Q="outlined",...K}=r,se={...r,autoFocus:s,color:l,disabled:u,error:p,fullWidth:v,multiline:I,required:E,select:M,variant:Q},re=Yw(se),B=xt(m),J=d&&B?`${B}-helper-text`:void 0,ee=x&&B?`${B}-label`:void 0,X=Uw[Q],_={slots:F,slotProps:{input:w,inputLabel:g,htmlInput:C,formHelperText:h,select:T,...L}},U={},ne=_.slotProps.inputLabel;Q==="outlined"&&(ne&&typeof ne.shrink<"u"&&(U.notched=ne.shrink),U.label=x),M&&((!T||!T.native)&&(U.id=void 0),U["aria-describedby"]=void 0);const[te,V]=je("root",{elementType:Gw,shouldForwardComponentProp:!0,externalForwardedProps:{..._,...K},ownerState:se,className:de(re.root,a),ref:n,additionalProps:{disabled:u,error:p,fullWidth:v,required:E,color:l,variant:Q}}),[Z,ie]=je("input",{elementType:X,externalForwardedProps:_,additionalProps:U,ownerState:se}),[oe,ce]=je("inputLabel",{elementType:Bi,externalForwardedProps:_,ownerState:se}),[ae,fe]=je("htmlInput",{elementType:"input",externalForwardedProps:_,ownerState:se}),[be,we]=je("formHelperText",{elementType:cd,externalForwardedProps:_,ownerState:se}),[pe,qe]=je("select",{elementType:Wi,externalForwardedProps:_,ownerState:se}),Be=f.jsx(Z,{"aria-describedby":J,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:v,multiline:I,name:R,rows:D,maxRows:P,minRows:k,type:N,value:H,id:B,inputRef:b,onBlur:A,onChange:O,onFocus:$,placeholder:y,inputProps:fe,slots:{input:F.htmlInput?ae:void 0},...ie});return f.jsxs(te,{...V,children:[x!=null&&x!==""&&f.jsx(oe,{htmlFor:B,id:ee,...ce,children:x}),M?f.jsx(pe,{"aria-describedby":J,id:B,labelId:ee,value:H,input:Be,...qe,children:i}):Be,d&&f.jsx(be,{id:J,...we,children:d})]})}),qw=({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},Kw=({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},Xw=(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}},Qw=({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=vi(Ru(pn(h,o),v),o))}return j({},l,{format:i,maxLength:v,value:h,placeholder:Xw(e,r,l,i),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},Zw=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(Qw(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},Jw=({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}),jl=e=>{let t=qw(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=Kw(j({},e,{expandedFormat:t})),r=Zw(j({},e,{expandedFormat:t,escapedParts:n}));return Jw(j({},e,{sections:r}))},eC=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:b,enableAccessibleFieldDOMStructure:x=!1}}=e,{timezone:P,value:k,handleValueChange:I}=$i({timezone:b,value:u,defaultValue:p,referenceDate:h,onChange:v,valueManager:s}),R=S.useMemo(()=>eb(t),[t]),A=S.useMemo(()=>ib(t,R,P),[t,R,P]),O=S.useCallback((B,J=null)=>i.getSectionsFromValue(t,B,J,ee=>jl({utils:t,localeText:n,localizedDigits:R,format:d,date:ee,formatDensity:m,shouldRespectLeadingZeros:w,enableAccessibleFieldDOMStructure:x,isRtl:o})),[i,d,n,R,o,w,t,m,x]),[$,y]=S.useState(()=>{const B=O(k),J={sections:B,value:k,referenceValue:s.emptyValue,tempValueStrAndroid:null},ee=Xy(B),X=s.getInitialReferenceValue({referenceDate:h,value:k,utils:t,props:c,granularity:ee,timezone:P});return j({},J,{referenceValue:X})}),[E,D]=Dt({controlled:g,default:null,name:"useField",state:"selectedSections"}),M=B=>{D(B),C?.(B)},T=S.useMemo(()=>Is(E,$.sections),[E,$.sections]),F=T==="all"?0:T,L=({value:B,referenceValue:J,sections:ee})=>{if(y(_=>j({},_,{sections:ee,value:B,referenceValue:J,tempValueStrAndroid:null})),s.areValuesEqual(t,$.value,B))return;const X={validationError:l({adapter:r,value:B,timezone:P,props:c})};I(B,X)},N=(B,J)=>{const ee=[...$.sections];return ee[B]=j({},ee[B],{value:J,modified:!0}),ee},H=()=>{L({value:s.emptyValue,referenceValue:$.referenceValue,sections:O(s.emptyValue)})},Q=()=>{if(F==null)return;const B=$.sections[F],J=i.getActiveDateManager(t,$,B),X=J.getSections($.sections).filter(te=>te.value!=="").length===(B.value===""?0:1),_=N(F,""),U=X?null:t.getInvalidDate(),ne=J.getNewValuesFromNewActiveDate(U);L(j({},ne,{sections:_}))},K=B=>{const J=(_,U)=>{const ne=t.parse(_,d);if(ne==null||!t.isValid(ne))return null;const te=jl({utils:t,localeText:n,localizedDigits:R,format:d,date:ne,formatDensity:m,shouldRespectLeadingZeros:w,enableAccessibleFieldDOMStructure:x,isRtl:o});return tl(t,ne,te,U,!1)},ee=i.parseValueStr(B,$.referenceValue,J),X=i.updateReferenceValue(t,ee,$.referenceValue);L({value:ee,referenceValue:X,sections:O(ee,$.sections)})},se=({activeSection:B,newSectionValue:J,shouldGoToNextSection:ee})=>{ee&&F<$.sections.length-1&&M(F+1);const X=i.getActiveDateManager(t,$,B),_=N(F,J),U=X.getSections(_),ne=rb(t,U,R);let te,V;if(ne!=null&&t.isValid(ne)){const Z=tl(t,ne,U,X.referenceDate,!0);te=X.getNewValuesFromNewActiveDate(Z),V=!0}else te=X.getNewValuesFromNewActiveDate(ne),V=(ne!=null&&!t.isValid(ne))!=(X.date!=null&&!t.isValid(X.date));return V?L(j({},te,{sections:_})):y(Z=>j({},Z,te,{sections:_,tempValueStrAndroid:null}))},re=B=>y(J=>j({},J,{tempValueStrAndroid:B}));return S.useEffect(()=>{const B=O($.value);y(J=>j({},J,{sections:B}))},[d,t.locale,o]),S.useEffect(()=>{let B;s.areValuesEqual(t,$.value,k)?B=s.getTimezone(t,$.value)!==s.getTimezone(t,k):B=!0,B&&y(J=>j({},J,{value:k,referenceValue:i.updateReferenceValue(t,k,J.referenceValue),sections:O(k)}))},[k]),{state:$,activeSectionIndex:F,parsedSelectedSections:T,setSelectedSections:M,clearValue:H,clearActiveSection:Q,updateSectionValue:se,updateValueFromValueStr:K,setTempAndroidValueStr:re,getSectionsFromValue:O,sectionsValueBoundaries:A,localizedDigits:R,timezone:P}},tC=5e3,kn=e=>e.saveQuery!=null,nC=({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(),tC);return()=>{clearTimeout(d)}}return()=>{}},[a,c]);const u=({keyPressed:d,sectionIndex:m},g,C)=>{const w=d.toLowerCase(),b=e[m];if(a!=null&&(!C||C(a.value))&&a.sectionIndex===m){const P=`${a.value}${w}`,k=g(P,b);if(!kn(k))return l({sectionIndex:m,value:P,sectionType:b.type}),k}const x=g(w,b);return kn(x)&&!x.saveQuery?(c(),null):(l({sectionIndex:m,value:w,sectionType:b.type}),kn(x)?null:x)},p=d=>{const m=(w,b,x)=>{const P=b.filter(k=>k.toLowerCase().startsWith(x));return P.length===0?{saveQuery:!1}:{sectionValue:P[0],shouldGoToNextSection:P.length===1}},g=(w,b,x,P)=>{const k=I=>Du(i,s,b.type,I);if(b.contentType==="letter")return m(b.format,k(b.format),w);if(x&&P!=null&&Mu(i,x).contentType==="letter"){const I=k(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,b)=>{switch(b.type){case"month":{const x=P=>Ja(i,P,i.formats.month,b.format);return g(w,b,i.formats.month,x)}case"weekDay":{const x=(P,k)=>k.indexOf(P).toString();return g(w,b,i.formats.weekday,x)}case"meridiem":return g(w,b);default:return{saveQuery:!1}}})},h=d=>{const m=(C,w)=>{const b=pn(C,r),x=Number(b),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 k=x*10>P.maximum||b.length===P.maximum.toString().length;return{sectionValue:Iu(i,x,P,r,w),shouldGoToNextSection:k}};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 b=m(C,{type:w.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(kn(b))return b;const x=Ja(i,b.sectionValue,"MM",w.format);return j({},b,{sectionValue:x})}if(w.type==="weekDay"){const b=m(C,w);if(kn(b))return b;const x=Uo(i,w.format)[Number(b.sectionValue)-1];return j({},b,{sectionValue:x})}return{saveQuery:!1}},C=>Za(C,r))};return{applyCharacterEditing:ue(d=>{const m=e[d.sectionIndex],C=Za(d.keyPressed,r)?h(j({},d,{keyPressed:vi(d.keyPressed,r)})):p(d);if(C==null){o(null);return}t({activeSection:m,newSectionValue:C.sectionValue,shouldGoToNextSection:C.shouldGoToNextSection})}),resetCharacterQuery:c}},rC=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:b,updateValueFromValueStr:x,sectionOrder:P,areAllSectionsEmpty:k,sectionsValueBoundaries:I}=e,R=S.useRef(null),A=ke(r,R),O=Bt(),$=Le(),y=xt(),[E,D]=S.useState(!1),M=S.useMemo(()=>({syncSelectionToDOM:()=>{if(!R.current)return;const V=document.getSelection();if(!V)return;if(m==null){V.rangeCount>0&&R.current.getRoot().contains(V.getRangeAt(0).startContainer)&&V.removeAllRanges(),E&&R.current.getRoot().blur();return}if(!R.current.getRoot().contains(Ke(document)))return;const Z=new window.Range;let ie;m==="all"?ie=R.current.getRoot():g.sections[m].type==="empty"?ie=R.current.getSectionContainer(m):ie=R.current.getSectionContent(m),Z.selectNodeContents(ie),ie.focus(),V.removeAllRanges(),V.addRange(Z)},getActiveSectionIndexFromDOM:()=>{const V=Ke(document);return!V||!R.current||!R.current.getRoot().contains(V)?null:R.current.getSectionIndexFromDOMElement(V)},focusField:(V=0)=>{if(!R.current||M.getActiveSectionIndexFromDOM()!=null)return;const Z=Is(V,g.sections);D(!0),R.current.getSectionContent(Z).focus()},setSelectedSections:V=>{if(!R.current)return;const Z=Is(V,g.sections);D((Z==="all"?0:Z)!==null),d(V)},isFieldFocused:()=>{const V=Ke(document);return!!R.current&&R.current.getRoot().contains(V)}}),[m,d,g.sections,E]),T=ue(V=>{if(!R.current)return;const Z=g.sections[V];R.current.getSectionContent(V).innerHTML=Z.value||Z.placeholder,M.syncSelectionToDOM()}),F=ue((V,...Z)=>{V.isDefaultPrevented()||!R.current||(D(!0),s?.(V,...Z),m==="all"?setTimeout(()=>{const ie=document.getSelection().getRangeAt(0).startOffset;if(ie===0){d(P.startIndex);return}let oe=0,ce=0;for(;ce<ie&&oe<g.sections.length;){const ae=g.sections[oe];oe+=1,ce+=`${ae.startSeparator}${ae.value||ae.placeholder}${ae.endSeparator}`.length}d(oe-1)}):E?R.current.getRoot().contains(V.target)||d(P.startIndex):(D(!0),d(P.startIndex)))}),L=ue(V=>{if(a?.(V),!R.current||m!=="all")return;const ie=V.target.textContent??"";R.current.getRoot().innerHTML=g.sections.map(oe=>`${oe.startSeparator}${oe.value||oe.placeholder}${oe.endSeparator}`).join(""),M.syncSelectionToDOM(),ie.length===0||ie.charCodeAt(0)===10?(v(),w(),d("all")):ie.length>1?x(ie):(m==="all"&&d(0),h({keyPressed:ie,sectionIndex:0}))}),N=ue(V=>{if(l?.(V),n||m!=="all"){V.preventDefault();return}const Z=V.clipboardData.getData("text");V.preventDefault(),v(),x(Z)}),H=ue((...V)=>{if(i?.(...V),E||!R.current)return;D(!0),R.current.getSectionIndexFromDOMElement(Ke(document))!=null||d(P.startIndex)}),Q=ue((...V)=>{o?.(...V),setTimeout(()=>{if(!R.current)return;const Z=Ke(document);!R.current.getRoot().contains(Z)&&(D(!1),d(null))})}),K=ue(V=>Z=>{Z.isDefaultPrevented()||d(V)}),se=ue(V=>{V.preventDefault()}),re=ue(V=>()=>{d(V)}),B=ue(V=>{if(V.preventDefault(),n||t||typeof m!="number")return;const Z=g.sections[m],ie=V.clipboardData.getData("text"),oe=/^[a-zA-Z]+$/.test(ie),ce=/^[0-9]+$/.test(ie),ae=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ie);Z.contentType==="letter"&&oe||Z.contentType==="digit"&&ce||Z.contentType==="digit-with-letter"&&ae?(v(),b({activeSection:Z,newSectionValue:ie,shouldGoToNextSection:!0})):!oe&&!ce&&(v(),x(ie))}),J=ue(V=>{V.preventDefault(),V.dataTransfer.dropEffect="none"}),ee=ue(V=>{if(!R.current)return;const Z=V.target,ie=Z.textContent??"",oe=R.current.getSectionIndexFromDOMElement(Z),ce=g.sections[oe];if(n||!R.current){T(oe);return}if(ie.length===0){if(ce.value===""){T(oe);return}const ae=V.nativeEvent.inputType;if(ae==="insertParagraph"||ae==="insertLineBreak"){T(oe);return}v(),C();return}h({keyPressed:ie,sectionIndex:oe}),T(oe)});Ue(()=>{if(!(!E||!R.current)){if(m==="all")R.current.getRoot().focus();else if(typeof m=="number"){const V=R.current.getSectionContent(m);V&&V.focus()}}},[m,E]);const X=S.useMemo(()=>g.sections.reduce((V,Z)=>(V[Z.type]=I[Z.type]({currentDate:null,contentType:Z.contentType,format:Z.format}),V),{}),[I,g.sections]),_=m==="all",U=S.useMemo(()=>g.sections.map((V,Z)=>{const ie=!_&&!t&&!n;return{container:{"data-sectionindex":Z,onClick:K(Z)},content:{tabIndex:_||Z>0?-1:0,contentEditable:!_&&!t&&!n,role:"spinbutton",id:`${y}-${V.type}`,"aria-labelledby":`${y}-${V.type}`,"aria-readonly":n,"aria-valuenow":db(V,$),"aria-valuemin":X[V.type].minimum,"aria-valuemax":X[V.type].maximum,"aria-valuetext":V.value?ub(V,$):O.empty,"aria-label":O[V.type],"aria-disabled":t,spellCheck:ie?!1:void 0,autoCapitalize:ie?"off":void 0,autoCorrect:ie?"off":void 0,[parseInt(S.version,10)>=17?"enterKeyHint":"enterkeyhint"]:ie?"next":void 0,children:V.value||V.placeholder,onInput:ee,onPaste:B,onFocus:re(Z),onDragOver:J,onMouseUp:se,inputMode:V.contentType==="letter"?"text":"numeric"},before:{children:V.startSeparator},after:{children:V.endSeparator}}}),[g.sections,re,B,J,ee,K,se,t,n,_,O,$,X,y]),ne=ue(V=>{x(V.target.value)}),te=S.useMemo(()=>k?"":p.getV7HiddenInputValueFromSections(g.sections),[k,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:Q,onClick:F,onFocus:H,onInput:L,onPaste:N,enableAccessibleFieldDOMStructure:!0,elements:U,tabIndex:m===0?-1:0,contentEditable:_,value:te,onChange:ne,areAllSectionsEmpty:k}}},Dn=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),oC=(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=xi(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},sC=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:b,updateValueFromValueStr:x,clearActiveSection:P,clearValue:k,setTempAndroidValueStr:I,setSelectedSections:R,getSectionsFromValue:A,areAllSectionsEmpty:O,localizedDigits:$}=e,y=S.useRef(null),E=ke(l,y),D=S.useMemo(()=>oC(d.sections,$,t),[d.sections,$,t]),M=S.useMemo(()=>({syncSelectionToDOM:()=>{if(!y.current)return;if(h==null){y.current.scrollLeft&&(y.current.scrollLeft=0);return}if(y.current!==Ke(document))return;const ee=y.current.scrollTop;if(h==="all")y.current.select();else{const X=D[h],_=X.type==="empty"?X.startInInput-X.startSeparator.length:X.startInInput,U=X.type==="empty"?X.endInInput+X.endSeparator.length:X.endInInput;(_!==y.current.selectionStart||U!==y.current.selectionEnd)&&y.current===Ke(document)&&y.current.setSelectionRange(_,U),clearTimeout(r.current),r.current=setTimeout(()=>{y.current&&y.current===Ke(document)&&y.current.selectionStart===y.current.selectionEnd&&(y.current.selectionStart!==_||y.current.selectionEnd!==U)&&M.syncSelectionToDOM()})}y.current.scrollTop=ee},getActiveSectionIndexFromDOM:()=>{const ee=y.current.selectionStart??0,X=y.current.selectionEnd??0;if(ee===0&&X===0)return null;const _=ee<=D[0].startInInput?1:D.findIndex(U=>U.startInInput-U.startSeparator.length>ee);return _===-1?D.length-1:_-1},focusField:(ee=0)=>{Ke(document)!==y.current&&(y.current?.focus(),R(ee))},setSelectedSections:ee=>R(ee),isFieldFocused:()=>y.current===Ke(document)}),[y,h,D,R]),T=()=>{const ee=y.current.selectionStart??0;let X;ee<=D[0].startInInput||ee>=D[D.length-1].endInInput?X=1:X=D.findIndex(U=>U.startInInput-U.startSeparator.length>ee);const _=X===-1?D.length-1:X-1;R(_)},F=ue((...ee)=>{o?.(...ee);const X=y.current;clearTimeout(n.current),n.current=setTimeout(()=>{!X||X!==y.current||v==null&&(X.value.length&&Number(X.selectionEnd)-Number(X.selectionStart)===X.value.length?R("all"):T())})}),L=ue((ee,...X)=>{ee.isDefaultPrevented()||(s?.(ee,...X),T())}),N=ue(ee=>{if(i?.(ee),ee.preventDefault(),u||p)return;const X=ee.clipboardData.getData("text");if(typeof h=="number"){const _=d.sections[h],U=/^[a-zA-Z]+$/.test(X),ne=/^[0-9]+$/.test(X),te=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(X);if(_.contentType==="letter"&&U||_.contentType==="digit"&&ne||_.contentType==="digit-with-letter"&&te){w(),b({activeSection:_,newSectionValue:X,shouldGoToNextSection:!0});return}if(U||ne)return}w(),x(X)}),H=ue((...ee)=>{a?.(...ee),R(null)}),Q=ue(ee=>{if(u)return;const X=ee.target.value;if(X===""){w(),k();return}const _=ee.nativeEvent.data,U=_&&_.length>1,ne=U?_:X,te=Dn(ne);if(h==="all"&&R(v),v==null||U){x(U?_:te);return}let V;if(h==="all"&&te.length===1)V=te;else{const Z=Dn(m.getV6InputValueFromSections(D,$,t));let ie=-1,oe=-1;for(let be=0;be<Z.length;be+=1)ie===-1&&Z[be]!==te[be]&&(ie=be),oe===-1&&Z[Z.length-be-1]!==te[te.length-be-1]&&(oe=be);const ce=D[v];if(ie<ce.start||Z.length-oe-1>ce.end)return;const fe=te.length-Z.length+ce.end-Dn(ce.endSeparator||"").length;V=te.slice(ce.start+Dn(ce.startSeparator||"").length,fe)}if(V.length===0){lb()&&I(ne),w(),P();return}C({keyPressed:V,sectionIndex:v})}),K=S.useMemo(()=>c!==void 0?c:m.getV6InputValueFromSections(A(g.emptyValue),$,t),[c,m,A,g.emptyValue,$,t]),se=S.useMemo(()=>d.tempValueStrAndroid??m.getV6InputValueFromSections(d.sections,$,t),[d.sections,m,d.tempValueStrAndroid,$,t]);S.useEffect(()=>(y.current&&y.current===Ke(document)&&R("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const re=S.useMemo(()=>v==null||d.sections[v].contentType==="letter"?"text":"numeric",[v,d.sections]),J=!(y.current&&y.current===Ke(document))&&O;return{interactions:M,returnedValue:{readOnly:u,onBlur:H,onClick:L,onFocus:F,onPaste:N,inputRef:E,enableAccessibleFieldDOMStructure:!1,placeholder:K,inputMode:re,autoComplete:"off",value:J?"":se,onChange:Q}}},iC=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=eC(e),{state:C,activeSectionIndex:w,parsedSelectedSections:b,setSelectedSections:x,clearValue:P,clearActiveSection:k,updateSectionValue:I,setTempAndroidValueStr:R,sectionsValueBoundaries:A,localizedDigits:O,timezone:$}=g,y=nC({sections:C.sections,updateSectionValue:I,sectionsValueBoundaries:A,localizedDigits:O,setTempAndroidValueStr:R,timezone:$}),{resetCharacterQuery:E}=y,D=v.areValuesEqual(t,C.value,v.emptyValue),M=s?rC:sC,T=S.useMemo(()=>cb(C.sections,m&&!s),[C.sections,m,s]),{returnedValue:F,interactions:L}=M(j({},e,g,y,{areAllSectionsEmpty:D,sectionOrder:T})),N=ue(B=>{if(l?.(B),!i)switch(!0){case((B.ctrlKey||B.metaKey)&&String.fromCharCode(B.keyCode)==="A"&&!B.shiftKey&&!B.altKey):{B.preventDefault(),x("all");break}case B.key==="ArrowRight":{if(B.preventDefault(),b==null)x(T.startIndex);else if(b==="all")x(T.endIndex);else{const J=T.neighbors[b].rightIndex;J!==null&&x(J)}break}case B.key==="ArrowLeft":{if(B.preventDefault(),b==null)x(T.endIndex);else if(b==="all")x(T.startIndex);else{const J=T.neighbors[b].leftIndex;J!==null&&x(J)}break}case B.key==="Delete":{if(B.preventDefault(),a)break;b==null||b==="all"?P():k(),E();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(B.key):{if(B.preventDefault(),a||w==null)break;b==="all"&&x(w);const J=C.sections[w],ee=h.getActiveDateManager(t,C,J),X=tb(t,$,J,B.key,A,O,ee.date,{minutesStep:o});I({activeSection:J,newSectionValue:X,shouldGoToNextSection:!1});break}}});Ue(()=>{L.syncSelectionToDOM()});const{hasValidationError:H}=Nu({props:n,validator:d,timezone:$,value:C.value,onError:n.onError}),Q=S.useMemo(()=>c!==void 0?c:H,[H,c]);S.useEffect(()=>{!Q&&w==null&&E()},[C.referenceValue,w,Q]),S.useEffect(()=>{C.tempValueStrAndroid!=null&&w!=null&&(E(),k())},[C.sections]),S.useImperativeHandle(r,()=>({getSections:()=>C.sections,getActiveSectionIndex:L.getActiveSectionIndexFromDOM,setSelectedSections:L.setSelectedSections,focusField:L.focusField,isFieldFocused:L.isFieldFocused}));const K=ue((B,...J)=>{B.preventDefault(),p?.(B,...J),P(),L.isFieldFocused()?x(T.startIndex):L.focusField(0)}),se={onKeyDown:N,onClear:K,error:Q,clearable:!!(u&&!D&&!a&&!i)},re={disabled:i,readOnly:a};return j({},e.forwardedProps,se,re,F)},aC=["clearable","onClear","InputProps","sx","slots","slotProps"],lC=["ownerState"],cC=e=>{const t=Bt(),{clearable:n,onClear:r,InputProps:o,sx:s,slots:i,slotProps:a}=e,l=ve(e,aC),c=i?.clearButton??Br,u=Pe({elementType:c,externalSlotProps:a?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=ve(u,lC),h=i?.clearIcon??bS,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]]})},uC=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],dC=(e,t)=>S.useMemo(()=>{const n=j({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return uC.forEach(o),Fu.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),pC=e=>{const t=Le(),n=Lr();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)})},fC=e=>{const t=pC(e),{forwardedProps:n,internalProps:r}=dC(t,"date");return iC({forwardedProps:n,internalProps:r,valueManager:Rt,fieldValueManager:fb,validator:Nr,valueType:"date"})};function hC(e){return ge("MuiPickersTextField",e)}he("MuiPickersTextField",["root","focused","disabled","error","required"]);function mC(e){return ge("MuiPickersInputBase",e)}const On=he("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function gC(e){return ge("MuiPickersSectionList",e)}const rr=he("MuiPickersSectionList",["root","section","sectionContent"]),yC=["slots","slotProps","elements","sectionListRef"],vd=G("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),xd=G("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Sd=G("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),wd=G("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),bC=e=>{const{classes:t}=e;return me({root:["root"],section:["section"],sectionContent:["sectionContent"]},gC,t)};function vC(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 xC=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:s,elements:i,sectionListRef:a}=r,l=ve(r,yC),c=bC(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(vC,{slots:o,slotProps:s,element:m,classes:c},g))})}))}),SC=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],wC=e=>Math.round(e*1e5)/1e5,ts=G("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:`${wC(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Hi=G(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}}]})),CC=G(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"})),PC=G(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"})),kC=G(Sd,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),TC=G("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(j({},_y)),MC=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:s,readOnly:i,color:a,size:l,endAdornment:c,startAdornment:u}=e,p={root:["root",t&&!n&&"focused",n&&"disabled",i&&"readOnly",r&&"error",s&&"fullWidth",`color${le(a)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return me(p,mC,o)},Ui=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:b,readOnly:x,inputProps:P,inputRef:k,sectionListRef:I}=r,R=ve(r,SC),A=S.useRef(null),O=ke(n,A),$=ke(P?.ref,k),y=vt(),E=ft();if(!E)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const D=H=>{if(E.disabled){H.stopPropagation();return}E.onFocus?.(H)};S.useEffect(()=>{E&&E.setAdornedStart(!!u)},[E,u]),S.useEffect(()=>{E&&(s?E.onEmpty():E.onFilled())},[E,s]);const M=j({},r,E,{isRtl:y}),T=MC(M),F=h?.root||ts,L=Pe({elementType:F,externalSlotProps:v?.root,externalForwardedProps:R,additionalProps:{"aria-invalid":E.error,ref:O},className:T.root,ownerState:M}),N=h?.input||Hi;return f.jsxs(F,j({},L,{children:[u,f.jsx(xC,{sectionListRef:I,elements:o,contentEditable:d,tabIndex:m,className:T.sectionsContainer,onFocus:D,onBlur:E.onBlur,onInput:g,onPaste:C,onKeyDown:w,slots:{root:N,section:CC,sectionContent:PC,sectionSeparator:kC},slotProps:{root:{ownerState:M},sectionContent:{className:On.sectionContent},sectionSeparator:({position:H})=>({className:H==="before"?On.sectionBefore:On.sectionAfter})}}),c,p?p(j({},E)):null,f.jsx(TC,j({name:b,className:T.input,value:i,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:x,required:E.required,disabled:E.disabled},P,{ref:$}))]}))});function DC(e){return ge("MuiPickersOutlinedInput",e)}const yt=j({},On,he("MuiPickersOutlinedInput",["root","notchedOutline","input"])),RC=["children","className","label","notched","shrink"],IC=G("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Bl=G("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),EC=G("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function $C(e){const{className:t,label:n}=e,r=ve(e,RC),o=n!=null&&n!=="",s=j({},e,{withLabel:o});return f.jsx(IC,j({"aria-hidden":!0,className:t},r,{ownerState:s,children:f.jsx(EC,{ownerState:s,children:o?f.jsx(Bl,{children:n}):f.jsx(Bl,{className:"notranslate",children:""})})}))}const OC=["label","autoFocus","ownerState","notched"],AC=G(ts,{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}}}))}}),FC=G(Hi,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),LC=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},DC,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,OC),l=ft(),c=j({},r,s,l,{color:l?.color||"primary"}),u=LC(c);return f.jsx(Ui,j({slots:{root:AC,input:FC},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}))});Cd.muiName="Input";function NC(e){return ge("MuiPickersFilledInput",e)}const nn=j({},On,he("MuiPickersFilledInput",["root","underline","input"])),jC=["label","autoFocus","disableUnderline","ownerState"],BC=G(ts,{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}}]}}),VC=G(Hi,{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}}]}),_C=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},NC,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,jC),l=ft(),c=j({},r,i,l,{color:l?.color||"primary"}),u=_C(c);return f.jsx(Ui,j({slots:{root:BC,input:VC},slotProps:{root:{disableUnderline:s}}},a,{label:o,classes:u,ref:n}))});Pd.muiName="Input";function zC(e){return ge("MuiPickersFilledInput",e)}const or=j({},On,he("MuiPickersInput",["root","input"])),WC=["label","autoFocus","disableUnderline","ownerState"],HC=G(ts,{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"}}}]}}),UC=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},zC,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,WC),l=ft(),c=j({},r,i,l,{disableUnderline:s,color:l?.color||"primary"}),u=UC(c);return f.jsx(Ui,j({slots:{root:HC}},a,{label:o,classes:u,ref:n}))});kd.muiName="Input";const YC=["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"],GC={standard:kd,filled:Pd,outlined:Cd},qC=G(Vi,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),KC=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return me({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},hC,r)},XC=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:b,onKeyUp:x,onPaste:P,onInput:k,endAdornment:I,startAdornment:R,tabIndex:A,contentEditable:O,focused:$,value:y,onChange:E,fullWidth:D,id:M,name:T,helperText:F,FormHelperTextProps:L,label:N,InputLabelProps:H}=r,Q=ve(r,YC),K=S.useRef(null),se=ke(n,K),re=xt(M),B=F&&re?`${re}-helper-text`:void 0,J=N&&re?`${re}-label`:void 0,ee=j({},r,{color:a,disabled:l,error:c,focused:$,required:p,variant:u}),X=KC(ee),_=GC[u];return f.jsxs(qC,j({className:de(X.root,i),ref:se,focused:$,onFocus:o,onBlur:s,disabled:l,variant:u,error:c,color:a,fullWidth:D,required:p,ownerState:ee},Q,{children:[f.jsx(Bi,j({htmlFor:re,id:J},H,{children:N})),f.jsx(_,j({elements:g,areAllSectionsEmpty:C,onClick:w,onKeyDown:b,onKeyUp:x,onInput:k,onPaste:P,endAdornment:I,startAdornment:R,tabIndex:A,contentEditable:O,value:y,onChange:E,id:re,fullWidth:D,inputProps:v,inputRef:d,sectionListRef:m,label:N,name:T,role:"group","aria-labelledby":J,"aria-describedby":B,"aria-live":B?"polite":void 0},h)),F&&f.jsx(cd,j({id:B},L,{children:F}))]}))}),QC=["enableAccessibleFieldDOMStructure"],ZC=["InputProps","readOnly"],JC=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],e1=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ve(e,QC);if(t){const{InputProps:p,readOnly:h}=n,v=ve(n,ZC);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,JC);return j({},u,{InputProps:j({},a??{},{readOnly:i}),inputProps:j({},l??{},{inputMode:s,onPaste:r,onKeyDown:o,ref:c})})},t1=["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,t1),c=r,u=o?.textField??(t.enableAccessibleFieldDOMStructure?XC: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=fC(p),v=e1(h),d=cC(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=>Nr({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])},n1=(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")}},r1=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(n1(!!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(k=>{g(j({type:"changeMonth"},k)),l&&l(k.newMonth)},[l]),w=S.useCallback(k=>{const I=k;h.isSameMonth(I,m.currentMonth)||C({newMonth:h.startOfMonth(I),direction:h.isAfterDay(I,m.currentMonth)?"left":"right"})},[m.currentMonth,C,h]),b=Md({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:p}),x=S.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),P=ue((k,I)=>{b(k)||g({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:d,calendarState:m,changeMonth:w,changeFocusedDay:P,isDateDisabled:b,onMonthSwitchingAnimationEnd:x,handleChangeMonth:C}},o1=e=>ge("MuiPickersFadeTransitionGroup",e);he("MuiPickersFadeTransitionGroup",["root"]);const s1=e=>{const{classes:t}=e;return me({root:["root"]},o1,t)},i1=G(jr,{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=s1(t),a=gn();return o?n:f.jsx(i1,{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 a1(e){return ge("MuiPickersDay",e)}const rn=he("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),l1=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],c1=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"]},a1,l)},Rd=({theme:e})=>j({},e.typography.caption,{width:Mr,height:Mr,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 ${Ko}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]},u1=G(Bn,{name:"MuiPickersDay",slot:"Root",overridesResolver:Id})(Rd),d1=G("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Id})(({theme:e})=>j({},Rd({theme:e}),{opacity:0,pointerEvents:"none"})),sr=()=>{},p1=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:b=!1,showDaysOutsideCurrentMonth:x=!1,children:P,today:k=!1}=r,I=ve(r,l1),R=j({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:b,showDaysOutsideCurrentMonth:x,today:k}),A=c1(R),O=Le(),$=S.useRef(null),y=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(d1,{className:de(A.root,A.hiddenDaySpacingFiller,s),ownerState:R,role:I.role}):f.jsx(u1,j({className:de(A.root,s),ref:y,centerRipple:!0,disabled:a,tabIndex:b?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")}))}),f1=S.memo(p1),h1=e=>ge("MuiPickersSlideTransition",e),ot=he("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),m1=["children","className","reduceAnimations","slideDirection","transKey","classes"],g1=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return me(r,h1,t)},y1=G(jr,{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 b1(e){const t=Fe({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ve(t,m1),a=g1(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(y1,{className:de(a.root,r),childFactory:u=>S.cloneElement(u,{classNames:c}),role:"presentation",children:f.jsx(wi,j({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const v1=e=>ge("MuiDayCalendar",e);he("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const x1=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],S1=["ownerState"],w1=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"]},v1,t)},Ed=(Mr+Ko*2)*6,C1=G("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),P1=G("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),k1=G(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})),T1=G(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})),M1=G(Qt,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>j({},e.typography.caption,{width:Mr,height:Mr,padding:0,margin:`0 ${Ko}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),D1=G("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Ed}),R1=G(b1,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Ed}),I1=G("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),E1=G("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Ko}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,x1);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:h,slots:v,slotProps:d,timezone:m}=t,g=Le(),C=Yo(m),w=r!==null&&g.isSameDay(n,r),b=o.some(y=>g.isSameDay(y,n)),x=g.isSameDay(n,C),P=v?.day??f1,k=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:b})}),I=ve(k,S1),R=S.useMemo(()=>c||s(n),[c,s,n]),A=S.useMemo(()=>g.getMonth(n)!==i,[g,n,i]),O=S.useMemo(()=>{const y=g.startOfMonth(g.setMonth(n,i));return h?g.isSameDay(n,g.startOfWeek(y)):g.isSameDay(n,y)},[i,n,h,g]),$=S.useMemo(()=>{const y=g.endOfMonth(g.setMonth(n,i));return h?g.isSameDay(n,g.endOfWeek(y)):g.isSameDay(n,y)},[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:b,tabIndex:w?0:-1,"aria-selected":b,"aria-current":x?"date":void 0}))}function O1(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:b,shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:k,dayOfWeekFormatter:I=oe=>n.format(oe,"weekdayShort").charAt(0).toUpperCase(),hasFocus:R,onFocusedViewChange:A,gridLabelId:O,displayWeekNumber:$,fixedWeekNumber:y,autoFocus:E,timezone:D}=t,M=Yo(D),T=w1(t),F=vt(),L=Md({shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:k,minDate:w,maxDate:b,disablePast:g,disableFuture:C,timezone:D}),N=Bt(),[H,Q]=Dt({name:"DayCalendar",state:"hasFocus",controlled:R,default:E??!1}),[K,se]=S.useState(()=>a||M),re=ue(oe=>{p||c(oe)}),B=oe=>{L(oe)||(r(oe),se(oe),A?.(!0),Q(!0))},J=ue((oe,ce)=>{switch(oe.key){case"ArrowUp":B(n.addDays(ce,-7)),oe.preventDefault();break;case"ArrowDown":B(n.addDays(ce,7)),oe.preventDefault();break;case"ArrowLeft":{const ae=n.addDays(ce,F?1:-1),fe=n.addMonths(ce,F?1:-1),be=hr({utils:n,date:ae,minDate:F?ae:n.startOfMonth(fe),maxDate:F?n.endOfMonth(fe):ae,isDateDisabled:L,timezone:D});B(be||ae),oe.preventDefault();break}case"ArrowRight":{const ae=n.addDays(ce,F?-1:1),fe=n.addMonths(ce,F?-1:1),be=hr({utils:n,date:ae,minDate:F?n.startOfMonth(fe):ae,maxDate:F?ae:n.endOfMonth(fe),isDateDisabled:L,timezone:D});B(be||ae),oe.preventDefault();break}case"Home":B(n.startOfWeek(ce)),oe.preventDefault();break;case"End":B(n.endOfWeek(ce)),oe.preventDefault();break;case"PageUp":B(n.addMonths(ce,1)),oe.preventDefault();break;case"PageDown":B(n.addMonths(ce,-1)),oe.preventDefault();break}}),ee=ue((oe,ce)=>B(ce)),X=ue((oe,ce)=>{H&&n.isSameDay(K,ce)&&A?.(!1)}),_=n.getMonth(s),U=n.getYear(s),ne=S.useMemo(()=>i.filter(oe=>!!oe).map(oe=>n.startOfDay(oe)),[n,i]),te=`${U}-${_}`,V=S.useMemo(()=>S.createRef(),[te]),Z=S.useMemo(()=>{const oe=n.startOfMonth(s),ce=n.endOfMonth(s);return L(K)||n.isAfterDay(K,ce)||n.isBeforeDay(K,oe)?hr({utils:n,date:K,minDate:oe,maxDate:ce,disablePast:g,disableFuture:C,isDateDisabled:L,timezone:D}):K},[s,C,g,K,L,n,D]),ie=S.useMemo(()=>{const oe=n.getWeekArray(s);let ce=n.addMonths(s,1);for(;y&&oe.length<y;){const ae=n.getWeekArray(ce),fe=n.isSameDay(oe[oe.length-1][0],ae[0][0]);ae.slice(fe?1:0).forEach(be=>{oe.length<y&&oe.push(be)}),ce=n.addMonths(ce,1)}return oe},[s,y,n]);return f.jsxs(C1,{role:"grid","aria-labelledby":O,className:T.root,children:[f.jsxs(P1,{role:"row",className:T.header,children:[$&&f.jsx(T1,{variant:"caption",role:"columnheader","aria-label":N.calendarWeekNumberHeaderLabel,className:T.weekNumberLabel,children:N.calendarWeekNumberHeaderText}),Yy(n,M).map((oe,ce)=>f.jsx(k1,{variant:"caption",role:"columnheader","aria-label":n.format(oe,"weekday"),className:T.weekDayLabel,children:I(oe)},ce.toString()))]}),l?f.jsx(D1,{className:T.loadingContainer,children:v()}):f.jsx(R1,j({transKey:te,onExited:u,reduceAnimations:h,slideDirection:d,className:de(o,T.slideTransition)},m,{nodeRef:V,children:f.jsx(I1,{ref:V,role:"rowgroup",className:T.monthContainer,children:ie.map((oe,ce)=>f.jsxs(E1,{role:"row",className:T.weekContainer,"aria-rowindex":ce+1,children:[$&&f.jsx(M1,{className:T.weekNumber,role:"rowheader","aria-label":N.calendarWeekNumberAriaLabelText(n.getWeekNumber(oe[0])),children:N.calendarWeekNumberText(n.getWeekNumber(oe[0]))}),oe.map((ae,fe)=>f.jsx($1,{parentProps:t,day:ae,selectedDays:ne,focusableDay:Z,onKeyDown:J,onFocus:ee,onBlur:X,onDaySelect:re,isDateDisabled:L,currentMonthNumber:_,isViewFocused:H,"aria-colindex":fe+1},ae.toString()))]},`week-${oe[0]}`))})}))]})}function A1(e){return ge("MuiPickersMonth",e)}const Xr=he("MuiPickersMonth",["root","monthButton","disabled","selected"]),F1=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],L1=e=>{const{disabled:t,selected:n,classes:r}=e;return me({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},A1,r)},N1=G("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),j1=G("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Xr.disabled}`]:t.disabled},{[`&.${Xr.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"},[`&.${Xr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Xr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),B1=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,F1),b=S.useRef(null),x=L1(n);Ue(()=>{r&&b.current?.focus()},[r]);const P=g?.monthButton??j1,k=Pe({elementType:P,externalSlotProps:C?.monthButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:b,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(N1,j({className:de(x.root,o),ownerState:n},w,{children:f.jsx(P,j({},k))}))});function V1(e){return ge("MuiMonthCalendar",e)}he("MuiMonthCalendar",["root"]);const _1=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],z1=e=>{const{classes:t}=e;return me({root:["root"]},V1,t)};function W1(e,t){const n=Le(),r=Lr(),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 H1=G("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Xo,boxSizing:"border-box"}),U1=S.forwardRef(function(t,n){const r=W1(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:b,monthsPerRow:x=3,timezone:P,gridLabelId:k,slots:I,slotProps:R}=r,A=ve(r,_1),{value:O,handleValueChange:$,timezone:y}=Oi({name:"MonthCalendar",timezone:P,value:s,defaultValue:i,referenceDate:a,onChange:v,valueManager:Rt}),E=Yo(y),D=vt(),M=Le(),T=S.useMemo(()=>Rt.getInitialReferenceValue({value:O,utils:M,props:r,timezone:y,referenceDate:a,granularity:Pt.month}),[]),F=r,L=z1(F),N=S.useMemo(()=>M.getMonth(E),[M,E]),H=S.useMemo(()=>O!=null?M.getMonth(O):null,[O,M]),[Q,K]=S.useState(()=>H||M.getMonth(T)),[se,re]=Dt({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),B=ue(te=>{re(te),b&&b(te)}),J=S.useCallback(te=>{const V=M.startOfMonth(u&&M.isAfter(E,h)?E:h),Z=M.startOfMonth(c&&M.isBefore(E,p)?E:p),ie=M.startOfMonth(te);return M.isBefore(ie,V)||M.isAfter(ie,Z)?!0:d?d(ie):!1},[c,u,p,h,E,d,M]),ee=ue((te,V)=>{if(m)return;const Z=M.setMonth(O??T,V);$(Z)}),X=ue(te=>{J(M.setMonth(O??T,te))||(K(te),B(!0),C&&C(te))});S.useEffect(()=>{K(te=>H!==null&&te!==H?H:te)},[H]);const _=ue((te,V)=>{switch(te.key){case"ArrowUp":X((12+V-3)%12),te.preventDefault();break;case"ArrowDown":X((12+V+3)%12),te.preventDefault();break;case"ArrowLeft":X((12+V+(D?1:-1))%12),te.preventDefault();break;case"ArrowRight":X((12+V+(D?-1:1))%12),te.preventDefault();break}}),U=ue((te,V)=>{X(V)}),ne=ue((te,V)=>{Q===V&&B(!1)});return f.jsx(H1,j({ref:n,className:de(L.root,o),ownerState:F,role:"radiogroup","aria-labelledby":k},A,{children:yi(M,O??T).map(te=>{const V=M.getMonth(te),Z=M.format(te,"monthShort"),ie=M.format(te,"month"),oe=V===H,ce=l||J(te);return f.jsx(B1,{selected:oe,value:V,onClick:ee,onKeyDown:_,autoFocus:se&&V===Q,disabled:ce,tabIndex:V===Q&&!ce?0:-1,onFocus:U,onBlur:ne,"aria-current":N===V?"date":void 0,"aria-label":ie,monthsPerRow:x,slots:I,slotProps:R,children:Z},Z)})}))});function Y1(e){return ge("MuiPickersYear",e)}const Qr=he("MuiPickersYear",["root","yearButton","selected","disabled"]),G1=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],q1=e=>{const{disabled:t,selected:n,classes:r}=e;return me({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Y1,r)},K1=G("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),X1=G("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Qr.disabled}`]:t.disabled},{[`&.${Qr.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"},[`&.${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:"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,G1),w=S.useRef(null),b=q1(n);Ue(()=>{r&&w.current?.focus()},[r]);const x=m?.yearButton??X1,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:k=>u(k,l),onKeyDown:k=>p(k,l),onFocus:k=>h(k,l),onBlur:k=>v(k,l)},ownerState:n,className:b.yearButton});return f.jsx(K1,j({className:de(b.root,o),ownerState:n},C,{children:f.jsx(x,j({},P))}))});function Z1(e){return ge("MuiYearCalendar",e)}he("MuiYearCalendar",["root"]);const J1=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],eP=e=>{const{classes:t}=e;return me({root:["root"]},Z1,t)};function tP(e,t){const n=Le(),r=Lr(),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 nP=G("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Xo,maxHeight:J0,boxSizing:"border-box",position:"relative"}),rP=S.forwardRef(function(t,n){const r=tP(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:b,yearsOrder:x="asc",yearsPerRow:P,timezone:k,gridLabelId:I,slots:R,slotProps:A}=r,O=ve(r,J1),{value:$,handleValueChange:y,timezone:E}=Oi({name:"YearCalendar",timezone:k,value:i,defaultValue:a,referenceDate:l,onChange:d,valueManager:Rt}),D=Yo(E),M=vt(),T=Le(),F=S.useMemo(()=>Rt.getInitialReferenceValue({value:$,utils:T,props:r,timezone:E,referenceDate:l,granularity:Pt.year}),[]),L=r,N=eP(L),H=S.useMemo(()=>T.getYear(D),[T,D]),Q=S.useMemo(()=>$!=null?T.getYear($):null,[$,T]),[K,se]=S.useState(()=>Q||T.getYear(F)),[re,B]=Dt({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),J=ue(ae=>{B(ae),b&&b(ae)}),ee=S.useCallback(ae=>{if(p&&T.isBeforeYear(ae,D)||u&&T.isAfterYear(ae,D)||v&&T.isBeforeYear(ae,v)||h&&T.isAfterYear(ae,h))return!0;if(!g)return!1;const fe=T.startOfYear(ae);return g(fe)},[u,p,h,v,D,g,T]),X=ue((ae,fe)=>{if(m)return;const be=T.setYear($??F,fe);y(be)}),_=ue(ae=>{ee(T.setYear($??F,ae))||(se(ae),J(!0),C?.(ae))});S.useEffect(()=>{se(ae=>Q!==null&&ae!==Q?Q:ae)},[Q]);const U=x!=="desc"?P*1:P*-1,ne=M&&x==="asc"||!M&&x==="desc"?-1:1,te=ue((ae,fe)=>{switch(ae.key){case"ArrowUp":_(fe-U),ae.preventDefault();break;case"ArrowDown":_(fe+U),ae.preventDefault();break;case"ArrowLeft":_(fe-ne),ae.preventDefault();break;case"ArrowRight":_(fe+ne),ae.preventDefault();break}}),V=ue((ae,fe)=>{_(fe)}),Z=ue((ae,fe)=>{K===fe&&J(!1)}),ie=S.useRef(null),oe=ke(n,ie);S.useEffect(()=>{if(o||ie.current===null)return;const ae=ie.current.querySelector('[tabindex="0"]');if(!ae)return;const fe=ae.offsetHeight,be=ae.offsetTop,we=ie.current.clientHeight,pe=ie.current.scrollTop,qe=be+fe;fe>we||be<pe||(ie.current.scrollTop=qe-we/2-fe/2)},[o]);const ce=T.getYearRange([v,h]);return x==="desc"&&ce.reverse(),f.jsx(nP,j({ref:oe,className:de(N.root,s),ownerState:L,role:"radiogroup","aria-labelledby":I},O,{children:ce.map(ae=>{const fe=T.getYear(ae),be=fe===Q,we=c||ee(ae);return f.jsx(Q1,{selected:be,value:fe,onClick:X,onKeyDown:te,autoFocus:re&&fe===K,disabled:we,tabIndex:fe===K&&!we?0:-1,onFocus:V,onBlur:Z,"aria-current":H===fe?"date":void 0,yearsPerRow:P,slots:R,slotProps:A,children:T.format(ae,"year")},T.format(ae,"year"))})}))}),oP=e=>ge("MuiPickersCalendarHeader",e),sP=he("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function iP(e){return ge("MuiPickersArrowSwitcher",e)}he("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const aP=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],lP=["ownerState"],cP=["ownerState"],uP=G("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),dP=G("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Vl=G(Br,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),pP=e=>{const{classes:t}=e;return me({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},iP,t)},fP=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,aP),b=o,x=pP(b),P={isDisabled:c,isHidden:u,goTo:p,label:h},k={isDisabled:v,isHidden:d,goTo:m,label:g},I=a?.previousIconButton??Vl,R=Pe({elementType:I,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"end",onClick:k.goTo},ownerState:j({},b,{hidden:k.isHidden}),className:de(x.button,x.previousIconButton)}),A=a?.nextIconButton??Vl,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({},b,{hidden:P.isHidden}),className:de(x.button,x.nextIconButton)}),$=a?.leftArrowIcon??mS,y=Pe({elementType:$,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:b,className:x.leftArrowIcon}),E=ve(y,lP),D=a?.rightArrowIcon??gS,M=Pe({elementType:D,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:b,className:x.rightArrowIcon}),T=ve(M,cP);return f.jsxs(uP,j({ref:n,className:de(x.root,i),ownerState:b},w,{children:[f.jsx(I,j({},R,{children:r?f.jsx(D,j({},T)):f.jsx($,j({},E))})),s?f.jsx(Qt,{variant:"subtitle1",component:"span",id:C,children:s}):f.jsx(dP,{className:x.spacer,ownerState:b}),f.jsx(A,j({},O,{children:r?f.jsx($,j({},E)):f.jsx(D,j({},T))}))]}))});function hP(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 mP(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 gP=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],yP=["ownerState"],bP=e=>{const{classes:t}=e;return me({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},oP,t)},vP=G("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),xP=G("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})),SP=G("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),wP=G(Br,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${sP.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),CP=G(hS,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),PP=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:b,className:x,timezone:P,format:k=`${o.formats.month} ${o.formats.year}`}=s,I=ve(s,gP),R=s,A=bP(s),O=i?.switchViewButton??wP,$=Pe({elementType:O,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(g)},ownerState:R,className:A.switchViewButton}),y=i?.switchViewIcon??CP,E=Pe({elementType:y,externalSlotProps:a?.switchViewIcon,ownerState:R,className:A.switchViewIcon}),D=ve(E,yP),M=()=>d(o.addMonths(l,1),"left"),T=()=>d(o.addMonths(l,-1),"right"),F=hP(l,{disableFuture:u,maxDate:h,timezone:P}),L=mP(l,{disablePast:p,minDate:v,timezone:P}),N=()=>{if(!(w.length===1||!m||c))if(w.length===2)m(w.find(Q=>Q!==g)||w[0]);else{const Q=w.indexOf(g)!==0?0:1;m(w[Q])}};if(w.length===1&&w[0]==="year")return null;const H=o.formatByString(l,k);return f.jsxs(vP,j({},I,{ownerState:R,className:de(A.root,x),ref:n,children:[f.jsxs(xP,{role:"presentation",onClick:N,ownerState:R,"aria-live":"polite",className:A.labelContainer,children:[f.jsx(Dd,{reduceAnimations:C,transKey:H,children:f.jsx(SP,{id:b,ownerState:R,className:A.label,children:H})}),w.length>1&&!c&&f.jsx(O,j({},$,{children:f.jsx(y,j({},D))}))]}),f.jsx(fn,{in:g==="day",appear:!C,enter:!C,children:f.jsx(fP,{slots:i,slotProps:a,onGoToPrevious:T,isPreviousDisabled:L,previousLabel:r.previousMonth,onGoToNext:M,isNextDisabled:F,nextLabel:r.nextMonth})})]}))}),kP=G("div")({overflow:"hidden",width:Xo,maxHeight:Ai,display:"flex",flexDirection:"column",margin:"0 auto"}),TP=e=>ge("MuiDateCalendar",e);he("MuiDateCalendar",["root","viewTransitionContainer"]);const MP=["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"],DP=e=>{const{classes:t}=e;return me({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},TP,t)};function RP(e,t){const n=Le(),r=Lr(),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 IP=G(kP,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Ai}),EP=G(Dd,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),$P=S.forwardRef(function(t,n){const r=Le(),o=xt(),s=RP(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:b,view:x,views:P,openTo:k,className:I,disabled:R,readOnly:A,minDate:O,maxDate:$,disableHighlightToday:y,focusedView:E,onFocusedViewChange:D,showDaysOutsideCurrentMonth:M,fixedWeekNumber:T,dayOfWeekFormatter:F,slots:L,slotProps:N,loading:H,renderLoading:Q,displayWeekNumber:K,yearsOrder:se,yearsPerRow:re,monthsPerRow:B,timezone:J}=s,ee=ve(s,MP),{value:X,handleValueChange:_,timezone:U}=Oi({name:"DateCalendar",timezone:J,value:l,defaultValue:c,referenceDate:u,onChange:v,valueManager:Rt}),{view:ne,setView:te,focusedView:V,setFocusedView:Z,goToNextView:ie,setValueAndGoToNextView:oe}=ed({view:x,views:P,openTo:k,onChange:_,onViewChange:a,autoFocus:i,focusedView:E,onFocusedViewChange:D}),{referenceDate:ce,calendarState:ae,changeFocusedDay:fe,changeMonth:be,handleChangeMonth:we,isDateDisabled:pe,onMonthSwitchingAnimationEnd:qe}=r1({value:X,referenceDate:u,reduceAnimations:g,onMonthChange:m,minDate:O,maxDate:$,shouldDisableDate:C,disablePast:h,disableFuture:p,timezone:U}),Be=R&&X||O,ht=R&&X||$,mt=`${o}-grid-label`,nt=V!==null,rt=L?.calendarHeader??PP,Vt=Pe({elementType:rt,externalSlotProps:N?.calendarHeader,additionalProps:{views:P,view:ne,currentMonth:ae.currentMonth,onViewChange:te,onMonthChange:(Ae,wt)=>we({newMonth:Ae,direction:wt}),minDate:Be,maxDate:ht,disabled:R,disablePast:h,disableFuture:p,reduceAnimations:g,timezone:U,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:U}):Ae;Ht?(oe(Ht,"finish"),m?.(wt)):(ie(),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:U}):Ae;Ht?(oe(Ht,"finish"),d?.(Ht)):(ie(),be(wt)),fe(Ht,!0)}),_t=ue(Ae=>_(Ae&&xo(r,Ae,X??ce),"finish",ne));S.useEffect(()=>{X!=null&&r.isValid(X)&&be(X)},[X]);const zt=s,Kn=DP(zt),ye={disablePast:h,disableFuture:p,maxDate:$,minDate:O},Te={disableHighlightToday:y,readOnly:A,disabled:R,timezone:U,gridLabelId:mt,slots:L,slotProps:N},ze=S.useRef(ne);S.useEffect(()=>{ze.current!==ne&&(V===ze.current&&Z(ne,!0),ze.current=ne)},[V,Z,ne]);const Wt=S.useMemo(()=>[X],[X]);return f.jsxs(IP,j({ref:n,className:de(Kn.root,I),ownerState:zt},ee,{children:[f.jsx(rt,j({},Vt,{slots:L,slotProps:N})),f.jsx(EP,{reduceAnimations:g,className:Kn.viewTransitionContainer,transKey:ne,ownerState:zt,children:f.jsxs("div",{children:[ne==="year"&&f.jsx(rP,j({},ye,Te,{value:X,onChange:Oe,shouldDisableYear:b,hasFocus:nt,onFocusedViewChange:Ae=>Z("year",Ae),yearsOrder:se,yearsPerRow:re,referenceDate:ce})),ne==="month"&&f.jsx(U1,j({},ye,Te,{hasFocus:nt,className:I,value:X,onChange:gt,shouldDisableMonth:w,onFocusedViewChange:Ae=>Z("month",Ae),monthsPerRow:B,referenceDate:ce})),ne==="day"&&f.jsx(O1,j({},ae,ye,Te,{onMonthSwitchingAnimationEnd:qe,onFocusedDayChange:fe,reduceAnimations:g,selectedDays:Wt,onSelectedDaysChange:_t,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:b,hasFocus:nt,onFocusedViewChange:Ae=>Z("day",Ae),showDaysOutsideCurrentMonth:M,fixedWeekNumber:T,dayOfWeekFormatter:F,displayWeekNumber:K,loading:H,renderLoading:Q}))]})})]}))}),An=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:p,disablePast:h,minDate:v,maxDate:d,shouldDisableDate:m,shouldDisableMonth:g,shouldDisableYear:C,reduceAnimations:w,onMonthChange:b,monthsPerRow:x,onYearChange:P,yearsOrder:k,yearsPerRow:I,slots:R,slotProps:A,loading:O,renderLoading:$,disableHighlightToday:y,readOnly:E,disabled:D,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:T,sx:F,autoFocus:L,fixedWeekNumber:N,displayWeekNumber:H,timezone:Q})=>f.jsx($P,{view:e,onViewChange:t,views:n.filter(Ka),focusedView:r&&Ka(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:b,monthsPerRow:x,onYearChange:P,yearsOrder:k,yearsPerRow:I,slots:R,slotProps:A,loading:O,renderLoading:$,disableHighlightToday:y,readOnly:E,disabled:D,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:T,sx:F,autoFocus:L,fixedWeekNumber:N,displayWeekNumber:H,timezone:Q}),$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:bi(o,s,!1),yearsPerRow:s.yearsPerRow??4,slots:j({openPickerIcon:yS,field:Td},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},Ho(s.slotProps?.field,c),Lu(s),{ref:n}),toolbar:j({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=fS({props:a,valueManager:Rt,valueType:"date",getOpenDialogAriaText:$u({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Nr});return l()});$d.propTypes={autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,dayOfWeekFormatter:W.func,defaultValue:W.object,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,enableAccessibleFieldDOMStructure:W.any,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:Su,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.object,minDate:W.object,monthsPerRow:W.oneOf([3,4]),name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","month","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.object,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number]),shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),timezone:W.string,value:W.object,view:W.oneOf(["day","month","year"]),viewRenderers:W.shape({day:W.func,month:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","month","year"]).isRequired),yearsOrder:W.oneOf(["asc","desc"]),yearsPerRow:W.oneOf([3,4])};function OP(e){return ge("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);const AP=he("MuiDialogTitle",["root"]),FP=e=>{const{classes:t,dividers:n}=e;return me({root:["root",n&&"dividers"]},OP,t)},LP=G("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ee(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${AP.root} + &`]:{paddingTop:0}}}]}))),NP=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...i}=r,a={...r,dividers:s},l=FP(a);return f.jsx(LP,{className:de(l.root,o),ownerState:a,ref:n,...i})});function jP(e){return ge("MuiDialog",e)}const vr=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),BP=S.createContext({}),VP=G(dd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),_P=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${le(n)}`],paper:["paper",`paperScroll${le(n)}`,`paperWidth${le(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return me(i,jP,t)},zP=G(pd,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),WP=G("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${le(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),HP=G(Vr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${le(n.scroll)}`],t[`paperWidth${le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ee(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${vr.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${vr.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${vr.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),UP=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:b,PaperComponent:x=Vr,PaperProps:P={},scroll:k="paper",slots:I={},slotProps:R={},TransitionComponent:A=fn,transitionDuration:O=s,TransitionProps:$,...y}=r,E={...r,disableEscapeKeyDown:v,fullScreen:d,fullWidth:m,maxWidth:g,scroll:k},D=_P(E),M=S.useRef(),T=V=>{M.current=V.target===V.currentTarget},F=V=>{C&&C(V),M.current&&(M.current=null,w&&w(V,"backdropClick"))},L=xt(a),N=S.useMemo(()=>({titleId:L}),[L]),H={transition:A,...I},Q={transition:$,paper:P,backdrop:u,...R},K={slots:H,slotProps:Q},[se,re]=je("root",{elementType:zP,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:E,className:de(D.root,h),ref:n}),[B,J]=je("backdrop",{elementType:VP,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:E}),[ee,X]=je("paper",{elementType:HP,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:E,className:de(D.paper,P.className)}),[_,U]=je("container",{elementType:WP,externalForwardedProps:K,ownerState:E,className:D.container}),[ne,te]=je("transition",{elementType:fn,externalForwardedProps:K,ownerState:E,additionalProps:{appear:!0,in:b,timeout:O,role:"presentation"}});return f.jsx(se,{closeAfterTransition:!0,slots:{backdrop:B},slotProps:{backdrop:{transitionDuration:O,as:c,...J}},disableEscapeKeyDown:v,onClose:w,open:b,onClick:F,...re,...y,children:f.jsx(ne,{...te,children:f.jsx(_,{onMouseDown:T,...U,children:f.jsx(ee,{as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":L,"aria-modal":l,...X,children:f.jsx(BP.Provider,{value:N,children:p})})})})})}),YP=G(UP)({[`& .${vr.container}`]:{outline:0},[`& .${vr.paper}`]:{outline:0,minWidth:Xo}}),GP=G(NP)({"&:first-of-type":{padding:0}});function qP(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:s}=e,i=o?.dialog??YP,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(GP,{children:t})}))}const KP=["props","getOpenDialogAriaText"],XP=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,KP);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:b}=t,x=S.useRef(null),P=xt(),k=s?.toolbar?.hidden??!1,{open:I,actions:R,layoutProps:A,renderCurrentView:O,fieldProps:$,contextValue:y}=td(j({},r,{props:t,fieldRef:x,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),E=o.field,D=Pe({elementType:E,externalSlotProps:s?.field,additionalProps:j({},$,k&&{id:P},!(w||C)&&{onClick:R.onOpen,onKeyDown:Jx(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),T=o.layout??ad;let F=P;k&&(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:y,localeText:b,children:[f.jsx(E,j({},D,{slots:M,slotProps:L,unstableFieldRef:N})),f.jsx(qP,j({},R,{open:I,slots:o,slotProps:L,children:f.jsx(T,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:bi(o,s,!1),slots:j({field:Td},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},Ho(s.slotProps?.field,c),Lu(s),{ref:n}),toolbar:j({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=XP({props:a,valueManager:Rt,valueType:"date",getOpenDialogAriaText:$u({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Nr});return l()});Od.propTypes={autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,dayOfWeekFormatter:W.func,defaultValue:W.object,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,enableAccessibleFieldDOMStructure:W.any,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:Su,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.object,minDate:W.object,monthsPerRow:W.oneOf([3,4]),name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","month","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.object,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number]),shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),timezone:W.string,value:W.object,view:W.oneOf(["day","month","year"]),viewRenderers:W.shape({day:W.func,month:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","month","year"]).isRequired),yearsOrder:W.oneOf(["asc","desc"]),yearsPerRow:W.oneOf([3,4])};const QP=["desktopModeMediaQuery"],Dr=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=e0}=r,s=ve(r,QP);return xu(o,{defaultMatches:!0})?f.jsx($d,j({ref:n},s)):f.jsx(Od,j({ref:n},s))}),ZP=250,JP=300*1e3;function ek(e,t){const n=q.useContext(Hn.QueryClientContext),r=t.trim(),[o,s]=q.useState("");q.useEffect(()=>{const p=setTimeout(()=>s(r),ZP);return()=>clearTimeout(p)},[r]);const[i,a]=q.useState(),l=e?JSON.stringify(e.key):void 0;q.useEffect(()=>{if(!e||!n||o==="")return;let p=!0;return n.fetchQuery({queryKey:[...e.key,o],queryFn:({signal:h})=>e.run(o,h),staleTime:JP}).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 Yi(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"?tk(n):n}function tk(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(ai);const _l=14,nk=42;function rk(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 Gi({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=rk(e),h=Yi(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=K=>f.jsx(z.TextField,{label:l,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:f.jsxs(f.Fragment,{children:[`Not a ${K}. Clear it to pick one.`,d?f.jsx("br",{}):null,d]}),slotProps:{input:{endAdornment:f.jsx(bs,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),w=Gt(u),b=e.control==="multiselect"&&w,x=Gt(u),P=e.control==="select"||e.control==="multiselect",k=P?x?typeof t=="string"?Xc(t):[]:typeof t=="string"&&t!==""?[t]:[]:[],[I,R]=q.useState(""),A=ek(P?a:void 0,I);if(P&&m&&g&&!(!b&&k.length>1)){const K=re=>{const B=x?li(re):void 0;if(re.length===0||B===""){n(null);return}n(x?B:re[0])},se=lk(A,i,a);return f.jsx(Ad.Provider,{value:se,children:f.jsx(z.Autocomplete,{multiple:b,disableCloseOnSelect:b,freeSolo:!0,forcePopupIcon:!0,autoSelect:!b,options:A.page?.values??r??[],...A.page?{filterOptions:re=>re}:{},onInputChange:(re,B,J)=>R(J==="input"?B:""),loading:o||A.searching,loadingText:A.searching?"Searching…":"Loading…",noOptionsText:s?"Options unavailable":"No matching values",slots:{paper:ak},value:b?k:k[0]??null,onChange:(re,B)=>K(B===null?[]:Array.isArray(B)?B:[B]),renderInput:re=>f.jsx(z.TextField,{...re,label:l,size:"small",placeholder:k.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:{...re.InputProps,endAdornment:f.jsxs(f.Fragment,{children:[o&&f.jsx(z.CircularProgress,{size:16}),re.InputProps.endAdornment]})},htmlInput:{...re.inputProps,onBlur:B=>{if(re.inputProps.onBlur?.(B),!b)return;const J=B.target.value.trim();J!==""&&!k.includes(J)&&K([...k,J])}}}}),fullWidth:!0})})}const O=Gt(u)&&Kt(u)==="number",{rangeMin:$,rangeMax:y}=e,E=O&&typeof t=="string"?Jc(t):void 0,D=O&&typeof t=="string"?eu(t):void 0;if((O||u==="number")&&$!==void 0&&y!==void 0&&(!O||t===void 0||t===null||t===""||E!==void 0||D!==void 0)){const K=D??(E!==void 0?[E,y]:void 0),se=O?K?.[0]:typeof t=="number"?t:void 0;if(se===void 0&&t!==void 0&&t!==null&&t!=="")return C("number");const re=se??$,B=K??[$,y],J=B[1]>=y?`≥ ${B[0]}`:`${B[0]} to ${B[1]}`,ee=O&&t==="",X=se!==void 0||ee;return f.jsxs(z.FormControl,{fullWidth:!0,children:[f.jsxs(z.Box,{component:"fieldset",sx:_=>({m:0,minWidth:0,border:c.cardBorder,borderRadius:2,px:`${_l}px`,pt:0,pb:.75,minHeight:nk,transition:"border-color 120ms ease-in","&:hover":{borderColor:_.palette.text.secondary},"&:focus-within":{borderColor:_.palette.text.primary}}),children:[f.jsx(z.Typography,{component:"legend",variant:"caption",color:"text.secondary",sx:{px:.5,lineHeight:1},children:l}),f.jsxs(z.Stack,{direction:"row",alignItems:"center",spacing:1,children:[f.jsx(z.Typography,{variant:"body2",sx:{fontWeight:"fontWeightMedium"},children:X?ee?"Any":O?J:String(re):O?"Any":h??"Unset"}),X&&f.jsx(Rr,{onClear:()=>n(null),sx:{p:0}})]}),f.jsx(z.Slider,{size:"small",min:$,max:y,value:O?B:re,disableSwap:O,valueLabelDisplay:"auto","aria-label":O?void 0:l,getAriaLabel:O?_=>_===0?`${l} from`:`${l} to`:void 0,sx:{py:0,mt:.5},onChange:(_,U)=>{if(O){const[ne,te]=Array.isArray(U)?[U[0],U[1]]:[U,U];if(ne<=$&&te>=y){n(null);return}n(te>=y?_g(ne):zg(ne,te));return}n(Array.isArray(U)?U[0]:U)}}),f.jsxs(z.Stack,{direction:"row",justifyContent:"space-between",children:[f.jsx(z.Typography,{variant:"caption",color:"text.secondary",children:$}),f.jsx(z.Typography,{variant:"caption",color:"text.secondary",children:y})]})]}),d&&f.jsx(z.FormHelperText,{sx:{mx:`${_l}px`},children:d})]})}const T=Gt(u)?Kt(u):void 0,F=T==="date"||T==="timestamp"||T==="timestamptz",L=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),N=t==null||L;if(F&&!L){const K=sk(t);if(K!==void 0)return f.jsx(ik,{label:l,state:K,onChange:n,helperNode:d,defaultDisplay:h})}if(F&&N){const K=L?Re.utc(t):null;return f.jsx(Cr,{dateAdapter:vo,children:f.jsx(Dr,{label:l,value:K?.isValid()?K:null,onChange:se=>n(se?se.format("YYYY-MM-DD"):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:d},field:{clearable:!0,onClear:()=>n(null)}}})})}if(Kt(u)==="boolean"){const K=typeof t=="string"?Vg(t):void 0;if(t==null||t===""||K!==void 0)return f.jsx(ok,{label:l,picked:K,emptyOverride:t==="",onChange:n,helperNode:d,defaultDisplay:h})}if(u==="boolean"){const K=typeof t=="boolean";if(!K&&t!==void 0&&t!==null)return C("true or false");const se=e.default?.trim()==="true",re=K?t:se;return f.jsxs(z.FormControl,{children:[f.jsxs(z.Stack,{direction:"row",alignItems:"center",children:[f.jsx(z.FormControlLabel,{control:f.jsx(z.Checkbox,{checked:re,onChange:B=>n(B.target.checked)}),label:l}),K&&f.jsx(Rr,{onClear:()=>n(null),edge:"end"})]}),d&&f.jsx(z.FormHelperText,{children:d})]})}if(u==="number"){const K=typeof t=="number"?t:"",se=t!=null;return se&&t!==""&&typeof t!="number"?C("number"):f.jsx(z.TextField,{label:l,type:"number",value:K,onChange:re=>{const B=re.target.value;n(B===""?null:Number(B))},placeholder:h,helperText:d,slotProps:{input:{endAdornment:se&&f.jsx(bs,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}if(u==="date"||u==="timestamp"||u==="timestamptz"){const K=t instanceof Date?t:typeof t=="string"?(B=>B instanceof Date?B:null)(pu(u,t)):null,se=K?Re.utc(K):null;return t!=null&&t!==""&&K===null?C("date"):f.jsx(Cr,{dateAdapter:vo,children:f.jsx(Dr,{label:l,value:se,onChange:B=>n(B?qg(B,K??void 0):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:d},field:{clearable:!0,onClear:()=>n(null)}}})})}const H=typeof t=="string"?t:"",Q=t!=null;return f.jsx(z.TextField,{label:l,value:H,onChange:K=>n(K.target.value),placeholder:Q?void 0:h??(u.startsWith("filter<")?u:void 0),helperText:d,slotProps:{input:{endAdornment:Q&&f.jsx(bs,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}function Rr({onClear:e,edge:t,sx:n}){return f.jsx(z.IconButton,{size:"small","aria-label":"Clear value",onClick:e,edge:t,sx:[{minWidth:24,minHeight:24},...Array.isArray(n)?n:[n]],children:f.jsx(dy,{fontSize:"small"})})}function bs({onClear:e}){return f.jsx(z.InputAdornment,{position:"end",children:f.jsx(Rr,{onClear:e,edge:"end"})})}const Zr="__any__";function ok({label:e,picked:t,emptyOverride:n,onChange:r,helperNode:o,defaultDisplay:s}){const i=t??(n?Zr:""),a=i!=="";return f.jsx(z.Box,{"data-testid":"boolean-filter",children:f.jsxs(z.TextField,{select:!0,label:e,value:i,size:"small",fullWidth:!0,helperText:o,slotProps:{select:{displayEmpty:!0,renderValue:l=>l==="true"||l==="false"?l:l===Zr?"Any":s||"Any"},input:{endAdornment:a?f.jsx(Rr,{onClear:()=>r(null),sx:{mr:2}}):void 0}},onChange:l=>{l.target.value!==Zr&&r(l.target.value)},children:[n&&f.jsx(z.MenuItem,{value:Zr,children:"Any"}),f.jsx(z.MenuItem,{value:"true",children:"true"}),f.jsx(z.MenuItem,{value:"false",children:"false"})]})})}function sk(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 Jr="__custom__",vs="__any__";function ik({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]=q.useState(t.kind==="days"),[l,c]=q.useState(t.kind==="days"?{from:t.firstDay,to:t.lastDay}:{});q.useEffect(()=>{t.kind==="days"?(a(!0),c({from:t.firstDay,to:t.lastDay})):t.kind!=="unset"&&a(!1)},[s]);const u=t.kind!=="unset",p=i?Jr:t.kind==="preset"?t.key:t.kind==="any"?vs:"",h=d=>{c(d),d.from&&d.to&&!Re.utc(d.to).isBefore(Re.utc(d.from))&&n(Ug(d.from,d.to))},v=d=>{const m=d?Re.utc(d):null;return m?.isValid()?m:null};return f.jsxs(z.Stack,{direction:"row",spacing:1,"data-testid":"time-range",children:[f.jsxs(z.TextField,{select:!0,label:e,value:p,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:d=>{if(d===Jr)return"Custom range";if(d===vs)return"Any time";const m=wr.find(g=>g.key===d);return m?m.label:o??"Any time"}},input:{endAdornment:u?f.jsx(Rr,{onClear:()=>{a(!1),c({}),n(null)},sx:{mr:2}}):void 0}},onChange:d=>{const m=d.target.value;if(m===Jr){a(!0);return}a(!1);const g=Wg(m);g!==void 0&&n(g)},children:[t.kind==="any"&&f.jsx(z.MenuItem,{value:vs,children:"Any time"}),wr.map(d=>f.jsx(z.MenuItem,{value:d.key,children:d.label},d.key)),f.jsx(z.MenuItem,{value:Jr,children:"Custom range"})]}),i&&f.jsxs(Cr,{dateAdapter:vo,children:[f.jsx(Dr,{label:"From",value:v(l.from),onChange:d=>h({...l,from:d?d.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}}),f.jsx(Dr,{label:"To",value:v(l.to),minDate:v(l.from)??void 0,onChange:d=>h({...l,to:d?d.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}})]})]})}const Ad=q.createContext(void 0);function ak({children:e,...t}){const n=q.useContext(Ad);return f.jsxs(z.Paper,{...t,children:[e,n&&f.jsx(z.Box,{role:"note",sx:{px:2,py:1,borderTop:1,borderColor:"divider",color:"text.secondary",typography:"caption"},children:n})]})}const eo=e=>e.toLocaleString("en-US");function lk(e,t,n){if(e.active)return e.searching?"Searching all values…":e.failed?`Could not search all values. Showing matches in the first ${eo(un)}.`:e.page?.truncated?`Showing the first ${eo(fi)} matches. Keep typing to narrow them.`:void 0;if(t)return n?`Showing the first ${eo(un)} values. Type to search them all.`:`Showing the first ${eo(un)} values. A value not listed can still be typed.`}const Fd=q.createContext(void 0),qn=()=>q.useContext(Fd),Rn="remove-badge",Ld={[`& .${Rn}`]:{opacity:0},[`&:hover .${Rn}, &:focus-within .${Rn}`]:{opacity:1},"@media (hover: none)":{[`& .${Rn}`]:{opacity:1}}};function Nd({label:e,onRemove:t,disabledReason:n,inset:r=0}){const{theme:o}=Se.usePublisherTheme(),s=n!==void 0,i=f.jsx(z.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 ${Ar}`,...Fr,"&:hover":{bgcolor:a.palette.background.paper,color:s?a.palette.text.secondary:a.palette.text.primary,borderColor:ri(o.cardBorder,o.tileTitle)}}),children:f.jsx(_o,{sx:{fontSize:12}})});return s?f.jsx(z.Tooltip,{title:n,children:i}):i}const qi=e=>e.required===!0,ck=(e,t)=>e==null||e===""&&!du(t);function uk(e,t,n){return e.filter(r=>r.name!==void 0&&qi(r)&&ck(t.get(r.name),r.type)&&(n?.[r.name]===void 0||n[r.name]===null))}function dk(e,t){if(!t||e.length===0)return[];const n=new Set(t);return e.filter(r=>r.name&&n.has(r.name))}const jd=e=>e.label??e.name??"";function Bd(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`}function pk(e){const t=e.map(jd);return`Pick a value for ${Bd(t)} to see this report.`}function fk(e){return`Waiting for ${Bd(e.map(jd))}.`}const _s=28,hk=/^\d{4}-\d{2}-\d{2}$/,Vd=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function xs(e){if(!hk.test(e))return e;const t=new Date(`${e}T00:00:00Z`);return Number.isNaN(t.getTime())?e:Vd.format(t)}function mk(e){if(e.length===0)return"";const t=e.join(", ");return t.length<=_s||e.length===1?To(t):`${To(e[0]??"")} +${e.length-1}`}function To(e){return e.length>_s?`${e.slice(0,_s-1)}…`:e}function gk(e){if(qi(e))return"Required";const t=e.type??"string",n=Yi(t,e.default);if(n!==void 0&&n!=="")return _d(t,n);const r=Kt(t)??t;return e.control==="select"||e.control==="multiselect"||r==="string"?"All":"Any"}function _d(e,t){if(!Gt(e))return To(xs(t));const n=Kt(e);if(n==="string"&&Qc(t))return mk(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`${xs(o.firstDay)} – ${xs(o.lastDay)}`}return To(t)}function yk(e,t){return t==null?gk(e):t instanceof Date?Number.isNaN(t.getTime())?"":Vd.format(t):typeof t=="boolean"?t?"Yes":"No":typeof t=="number"?String(t):t===""?"(empty)":_d(e.type??"string",t)}function bk(e){const{given:t,value:n,onChange:r}=e,{theme:o}=Se.usePublisherTheme(),s=o.ui,i=qn(),[a,l]=q.useState(null),c=t.name??"",u=t.label??c,p=n!=null,h=yk(t,n),v=a!==null,d=i?.stateOf(c),m=d?.problem,g=d?.fixed,C=f.jsxs(zd,{name:c,set:p,open:v,problem:m,fixed:g!==void 0,required:!p&&qi(t),children:[f.jsxs(z.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(z.Box,{component:"span",sx:w=>({color:p?o.accent:w.palette.text.secondary,whiteSpace:"nowrap"}),children:u}),f.jsx(z.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(z.IconButton,{"aria-label":`Clear ${u}`,onClick:()=>r(null),sx:{width:22,height:22,mr:"4px",borderRadius:"4px",color:o.accent},children:f.jsx(_o,{sx:{fontSize:14}})})]});return f.jsxs(f.Fragment,{children:[m?f.jsx(z.Tooltip,{title:m,children:C}):C,f.jsxs(z.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(Gi,{...e}),i&&f.jsxs(z.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(z.Typography,{sx:{...s.type.caption,color:"warning.main"},children:m}),g!==void 0&&f.jsx(z.Typography,{sx:w=>({...s.type.caption,color:w.palette.text.secondary}),children:g}),f.jsx(Sk,{name:c,type:t.type,text:vk(n,t.type)}),g===void 0?f.jsx(z.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(z.Button,{size:"small",onClick:()=>{l(null),d.openModel?.()},sx:{px:.75,minWidth:0,...s.type.control},children:"Open the model"})]})]})]})}function vk(e,t){if(e!=null)return cu(e,t)}function xk(e,t){return e===void 0||!t?.startsWith("filter<")?e:/^f(['"])([\s\S]*)\1$/.exec(e)?.[2]??e}function Sk({name:e,type:t,text:n}){const r=qn(),o=Se.usePublisherTheme().theme.ui;if(!r?.setStartingValue)return null;const s=r.setStartingValue,i=xk(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(z.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(z.Button,{size:"small",onClick:()=>s(e,n),sx:l,children:"Make this the report's default"}),i!==void 0&&f.jsx(z.Button,{size:"small",onClick:()=>s(e,void 0),sx:l,children:a?"Use the filter's default":"Use the model's default"})]})}function zd({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(z.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 ${Ar}`,...Fr,"&:hover":{borderColor:t||n||o?void 0:ri(l.cardBorder,l.tileTitle)},maxWidth:"100%",...Ld}),children:[a,u&&!s&&f.jsx(Nd,{label:`Remove filter ${e}`,onRemove:()=>u.onRemove(e)})]})}function Wd({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(zd,{name:e,unused:n,problem:s,children:f.jsxs(z.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(z.Box,{component:"span",sx:{fontStyle:"italic"},children:"Unused"})]})});return s?f.jsx(z.Tooltip,{title:s,children:i}):i}function Hd(){const{theme:e}=Se.usePublisherTheme(),t=e.ui,n=qn();if(!n)return null;const r=n.addDisabledReason!==void 0;return f.jsx(z.Tooltip,{title:n.addDisabledReason??"",children:f.jsx("span",{children:f.jsx(z.Button,{variant:"outlined",startIcon:f.jsx(ei,{}),"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 wk({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(b=>b!==null),m=o??d,g=b=>{if(b===void 0)return{};const x=u?.get(b);return{...c?.has(b)?{optionsTruncated:!0}:{},...x?{optionSearch:x}:{}}},C=e.map(b=>f.jsx(z.Box,{children:f.jsx(Gi,{given:b,value:b.name?t.get(b.name):void 0,onChange:x=>b.name&&n(b.name,x),options:b.name?i?.get(b.name):void 0,optionsLoading:a,optionsFailed:b.name?l?.has(b.name):void 0,...g(b.name)})},b.name)),w=f.jsxs(z.Stack,{direction:"row",alignItems:"center",spacing:1,children:[p&&f.jsx(z.Button,{variant:"contained",size:"small",disableElevation:!0,onClick:p.onApply,disabled:!p.pending,children:"Apply"}),m&&f.jsx(z.Button,{variant:"text",size:"small",onClick:r,children:"Reset"})]});return s==="bar"?f.jsxs(z.Stack,{direction:"row",role:"group","aria-label":h??"Filters",useFlexGap:!0,sx:{flexWrap:"wrap",alignItems:"center",gap:1},children:[e.map(b=>f.jsx(bk,{given:b,value:b.name?t.get(b.name):void 0,onChange:x=>b.name&&n(b.name,x),options:b.name?i?.get(b.name):void 0,optionsLoading:a,optionsFailed:b.name?l?.has(b.name):void 0,...g(b.name)},b.name)),v?.unrendered.map(b=>f.jsx(Wd,{name:b.name,label:b.label},b.name)),f.jsx(Hd,{}),f.jsx(z.Box,{sx:{ml:"auto"},children:w})]}):f.jsxs(z.Paper,{elevation:0,sx:{p:3,backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[f.jsxs(z.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[f.jsx(z.Typography,{variant:"subtitle2",sx:{fontWeight:"fontWeightMedium",color:"text.primary"},children:h??"Filters"}),w]}),f.jsx(z.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:C})]})}const Ck=/^(https?|mailto|tel):/i,Pk=/^[a-z][a-z0-9+.-]*:/i;function kk({href:e,title:t,children:n,context:r}){const o=!!e&&Pk.test(e),s=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!s||!r){const p=o&&!Ck.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 Tk=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 Mk({alt:e}){return f.jsx(f.Fragment,{children:e})}function Dk({children:e,variant:t="caption",links:n,sx:r}){const{theme:o}=Se.usePublisherTheme();return f.jsx(z.Box,{sx:[Tk(o.ui)[t],{fontFamily:o.font.family},...Array.isArray(r)?r:[r]],children:f.jsx(Np,{options:{forceBlock:t==="document",disableParsingRawHTML:!0,overrides:{a:{component:kk,props:{context:n}},img:{component:Mk}}},children:e})})}const Mo={opening:e=>e?`Opening the ${e}…`:"Opening…",running:"Running…",loading:"Loading…"};function Ki({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(z.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:s},children:[f.jsx(z.CircularProgress,{size:t,color:n,thickness:r}),e&&f.jsx(z.Typography,{variant:i,color:"text.secondary",children:e})]});return o?f.jsx(z.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:a}):a}let ir;function Ud(){return ir||(ir=import("@malloydata/render"),ir.catch(()=>{ir=void 0})),ir}function Yd(){typeof window>"u"||Ud().catch(()=>{})}const Gd=$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 qd({sx:e,...t}){const{theme:n}=Se.usePublisherTheme();return f.jsx(z.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 Rk=new Set(["warn","error"]);function Ik(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!Rk.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 Ek="publisher-result-scroller",$k=q.lazy(()=>Promise.resolve().then(()=>require("./RenderedResult-5hOs5XnV.cjs.js")).then(e=>e.RenderedResult$1));function Kd({result:e,maxHeight:t,tableMaxHeight:n,firstPaintHeight:r,maxResultSize:o=0,renderLogs:s,drill:i,fill:a=!1,compactToFit:l=!1}){const c=q.useRef(null);q.useEffect(()=>Yd(),[]);const[u,p]=q.useState(void 0),[h,v]=q.useState(void 0),[d,m]=q.useState(void 0),g=q.useCallback((F,L)=>{p(F),m(L)},[]),[C,w]=q.useState(!1),[b,x]=q.useState(void 0),P=Ik(s),k=!!e;q.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,k,C]);const[I,R]=q.useState(void 0),[A,O]=q.useState(void 0),$=a&&l&&u==="content";if(q.useEffect(()=>{R(void 0)},[e,A,$]),q.useEffect(()=>{$&&(b===void 0||h===void 0||(I===void 0&&h>b+1?R(h):I!==void 0&&b>=I&&R(void 0)))},[$,b,h,I]),!e)return null;if(o>0&&e.length>o&&!C)return f.jsxs(z.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(Bp.Warning,{sx:{fontSize:48,color:"#757575"}}),f.jsx(z.Typography,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),f.jsx(z.Button,{variant:"contained",color:"primary",onClick:()=>w(!0),children:"Proceed"})]});const E=f.jsx(Ki,{text:Mo.loading,centered:!0,size:32}),D=dg({renderAs:d,maxHeight:t,tableMaxHeight:n}),M=Rs({sizing:u,contentHeight:h,maxHeight:D,fillHeight:a?b:void 0,firstPaintHeight:r}),T=f.jsx(q.Suspense,{fallback:E,children:f.jsx($k,{result:e,height:M,onSizeChange:v,onSizing:g,drill:i,fill:a})});return f.jsxs(z.Box,{ref:c,sx:{position:"relative",height:"auto",border:"0px",borderRadius:0,overflowX:"hidden",overflowY:a?"hidden":"auto",...a&&{flex:`1 1 ${Rs({sizing:u,contentHeight:h,maxHeight:D,firstPaintHeight:r})}px`,minHeight:0}},children:[a?f.jsx(z.Box,{className:Ek,...$&&I!==void 0?{[Nc]:""}:{},sx:{position:"absolute",inset:0,overflowX:"hidden",overflowY:"auto"},children:T}):T,P&&f.jsx(z.Box,{sx:{position:"absolute",top:4,right:4,zIndex:1},children:f.jsx(z.Tooltip,{title:P.title,slotProps:{tooltip:{sx:{whiteSpace:"pre-line"}}},children:f.jsx(qd,{"aria-label":"Render tag warnings",children:f.jsx(Gd,{fontSize:"small",color:P.severity==="error"?"error":"warning"})})})})]})}function Xd({state:e,context:t,loadingText:n=Mo.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";q.useEffect(()=>{C&&Yd()},[C]);const w=p?.data.result,b=q.useMemo(()=>w!==void 0&&u?u(w):w,[w,u]),x=q.useMemo(()=>qm(b),[b]);if(v)return f.jsx(z.Box,{sx:{p:2},children:f.jsx(Hc,{context:t,error:d})});if(!h)return f.jsx(Ki,{text:m==="idle"?Mo.loading:n});if(x)return f.jsx(z.Box,{sx:{p:2},children:f.jsx(z.Typography,{variant:"body2",role:"status",color:"text.secondary",children:x})});const P=f.jsx(Kd,{result:b,maxHeight:r,tableMaxHeight:o,...s!==void 0?{firstPaintHeight:s}:{},maxResultSize:i,renderLogs:p.data.renderLogs,drill:a,fill:l,compactToFit:c});return f.jsxs(z.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(z.LinearProgress,{"aria-label":n,sx:{position:"absolute",top:0,left:0,right:0,height:2,zIndex:1,bgcolor:"transparent",borderRadius:1}}),f.jsx(z.Box,{className:"result-body",children:P})]})}const zs=()=>typeof performance<"u"?performance.now():Date.now(),Ok=$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"})),Ak=3;function Fk(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 Lk(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} or ${e[e.length-1]}`}function Qd({ignored:e}){const{theme:t}=Se.usePublisherTheme();if(e.length===0)return null;const n=e.length>Ak?`Doesn't respond to ${e.length} filters`:`Doesn't respond to ${e.join(", ")}`;return f.jsxs(z.Box,{"data-testid":"tile-filter-tag",title:`This tile's query never reads ${Lk(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(Ok,{sx:{fontSize:12}}),f.jsx(z.Box,{component:"span",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})]})}const Xi=20,Nk={radius:"8px",padding:`${Xi}px`};function jk(e,t=Nk){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 Zd={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(z.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:Zd[n],p:t==="none"?0:e?"12px 0":`${Xi}px`},...Array.isArray(r)?r:[r]],children:s})}const Jd=Ot.tileHeading;function ep({title:e,subtitle:t,tooltip:n,action:r,quiet:o=!1}){const{theme:s}=Se.usePublisherTheme(),i=s.ui;return f.jsxs(z.Box,{className:Jd,sx:{pb:o?.5:1.5,display:"flex",alignItems:"flex-start",gap:1},children:[f.jsxs(z.Box,{sx:{minWidth:0,flex:1},children:[f.jsx(z.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(z.Typography,{component:"div",sx:{...i.type.caption,display:"block",mt:"2px",color:s.tileTitle,fontFamily:s.font.family,opacity:.75},children:t})]}),r]})}const Bk=-1;function Vk(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 _k(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 zk(){const[e,t]=q.useState(!1),n=q.useRef(null);return{stickyRef:q.useCallback(o=>{if(n.current?.(),n.current=null,!o||typeof window>"u")return;const s=Vk(o),i=s??window;let a=0;const l=()=>{a=0,t(_k(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 tp=4,np="--publisher-sticky-top",Wk=2;function Hk({layout:e,notice:t,header:n,controls:r,children:o,sx:s}){return f.jsxs(z.Stack,{className:Ot.report,"data-layout":e,sx:[{gap:Wk},...Array.isArray(s)?s:[s]],children:[t,n,r,o]})}function Uk({title:e,description:t,actions:n}){const r=Se.usePublisherTheme().theme.ui;return f.jsxs(z.Stack,{className:Ot.header,sx:{gap:1.5},children:[f.jsxs(z.Stack,{direction:"row",sx:{alignItems:"center",gap:2},children:[f.jsx(z.Typography,{component:"h1",className:Ot.title,sx:{...r.type.pageTitle,m:0,flex:1,minWidth:0},children:e}),n&&f.jsx(z.Box,{sx:{my:"-4px"},children:n})]}),t]})}function Yk({sx:e,children:t}){return f.jsx(Qi,{chrome:"none",kind:"text",...e?{sx:e}:{},children:t})}function Gk({children:e}){const{theme:t}=Se.usePublisherTheme(),{stickyRef:n,stuck:r}=zk();return f.jsx(z.Box,{ref:n,className:Ot.filterRow,"data-stuck":r||void 0,sx:{position:"sticky",top:`calc(var(${np}, 0px) + ${Bk}px)`,zIndex:tp,bgcolor:r?"background.default":"transparent",pb:1,pt:1,mt:-1,boxShadow:r?`0 1px 0 ${Yn(t.cardBorder)}`:"none",transition:`box-shadow ${Ar}`,...Fr},children:e})}const rp=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},op=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 qk=e=>Zi(e,"MalloyTranslator"),Kk=e=>Zi(e,"parseAnnotation"),Xk=e=>Zi(e,"ASTQuery");async function Qk(){return qk(await import("@malloydata/malloy"))}async function Zk(){return Kk(await import("@malloydata/malloy-tag"))}async function Jk(){return Xk(await import("@malloydata/malloy-query-builder"))}async function eT(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 tT(e){return e.find(t=>t.authoritative)??e.find(t=>t.writeable)}function sp({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 nT(e,t){return e??(t===void 0?void 0:await eT(t))}function rT({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 oT(e){return e instanceof Error?e.message:String(e)}function sT(e){const t=e.response?.data;return t?.message?t.message:e instanceof Error?e.message:String(e)}async function iT({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(sT(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 aT(e,t){return t===void 0||!/\.(saved|save_undone)$/.test(e.type)||e.where==="package"?e:{...e,workspace:t}}function lT(e){if(!("resourceUri"in e))return{environmentName:e.environmentName,packageName:e.packageName,versionId:void 0,namesBoth:!0};let t;try{t=rp(e.resourceUri)}catch{t=void 0}return{environmentName:t?.environmentName??"",packageName:t?.packageName??"",versionId:t?.versionId,namesBoth:!!t?.environmentName&&!!t?.packageName}}class ip extends Error{constructor(t){super(t),this.name="DocumentNotFoundError"}}const ap=e=>e instanceof ip||e instanceof Error&&e.name==="DocumentNotFoundError",cT=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(cT,"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=>Ys.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 uT=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 "${_c(o,n)}"`,"",`source: ${c} is ${ar(s)} extend {`,` # label=${zl(uT(i))}`,` view: ${u} is ${ar(i)}`,"}",""].join(`
|
|
139
|
+
`)}function pT(e,t){return ta(e,"linear",t)}function lp(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,80)}function fT({title:e,modelPath:t,source:n,view:r}){for(const[o,s]of[["source",n],["view",r]])if(!Ys.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 hT(e,t){const n=fT(e);if(n)throw new Error(n);return ta(e,"grid",t)}const cp=e=>(e??"").trim().replace(/\\/g,"/").split("/").filter(t=>t!=="").join("/");function up(e,t){const n=cp(t);return`${n===""?"":`${n}/`}${e}.malloy`}function dp(e){return lp(e)||"untitled"}function pp(e,t=1,n){const r=dp(e);return up(t>1?`${r}-${t}`:r,n)}const fp=(e,t,n)=>`${e}/${t}/${n}`,hp=(e,t,n,r,o)=>({workspace:t,type:e,path:fp(n,r,o)}),na=20;function mT(e){const{savesTo:t,writer:n}=sp({...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 gT(e){const t=e.layout??"linear",n=zs();let r;try{r=await yT(e,t)}catch(o){throw bo({path:e.path??"",layout:t},e.onEvent).emit({type:"report.create_refused",reason:o instanceof Error?o.message:String(o)}),o}return bo({path:r.path,layout:t},e.onEvent).emit({type:"report.created",where:e.target.route==="package"?"package":"host",durationMs:zs()-n}),e.onCreated?.(r),r}async function yT(e,t){const{document:n,target:r}=e,o=ea(n);if(o)throw new Error(o);const s=cp(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(!bT(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=hp(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(b){if(!ap(b))throw b;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 bT=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 gp(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 Ws(e){for(const t of e??[]){const n=/^#\(doc\)\s*(.*)$/s.exec(t.trim());if(n)return n[1].trim()}}function yp(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 vT({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=q.useMemo(()=>{const d=new Map;return a.forEach((m,g)=>{const C=[],w=gp(m.data?.modelInfo);for(const b of m.data?.sources??[]){if(typeof b.name!="string"||!w.has(b.name))continue;const x=Ws(b.annotations);for(const P of b.views??[])if(typeof P.name=="string"){const k=Ws(P.annotations),I=yp(P.annotations);C.push({source:b.name,view:P.name,...k?{description:k}:{},...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&&Ys.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=q.createContext(void 0);function xT({children:e,documentStorage:t}){const n=q.useMemo(()=>({documentStorage:t}),[t]);return f.jsx(ra.Provider,{value:n,children:e})}function ST(){const e=q.useContext(ra);if(!e)throw new Error("useDocumentStorage must be used within a DocumentStorageProvider");return e}function wT(){return q.useContext(ra)}function CT(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 PT=1e4,kT=e=>e==="notebook"?"linear":"grid",TT=(e,t)=>`${e}s/${t}.malloy`,MT=/\.malloy(nb)?$/,DT=e=>e&&e.slice(e.lastIndexOf("/")+1).replace(MT,"")||void 0,bp=e=>e.replace(/\.malloy$/,"").split("/").map(encodeURIComponent).join("/"),vp=(e,t,n)=>`/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${bp(n)}`,xp="edit",RT=(e,t,n)=>`${vp(e,t,n)}?${xp}`,Sp=e=>e.layout==="linear"?"linear":"grid",wp=e=>({layout:Sp(e),path:e.path,editable:e.editable!==!1});function oa(e,t){const n=t.find(r=>r.path===e);return n?.path?wp({...n,path:n.path}):void 0}function Cp(e){return e===""||e.startsWith("/")?!1:e.split("/").every(t=>t!==""&&t!=="."&&t!=="..")}function IT(e,t){if(!Cp(e))return{kind:"unresolved"};for(const n of[`${e}.malloy`,e]){const r=oa(n,t);if(r)return{kind:"path",report:r}}return{kind:"unresolved"}}function ET(e,t,n){return[["dashboards"],["notebooks"],["dashboard"],...n===void 0?[]:[[op({environmentName:e,packageName:t,modelPath:n})]]]}function $T(e,t,n,r){for(const o of[["report"],["reports"],...ET(t,n,r)])e.invalidateQueries({queryKey:o})}const OT=(e,t,n)=>["reports",e,t,n];async function AT(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 Pp(e,t,n,r=!0){const{apiClients:o}=Se.useServer(),s=ns({queryKey:OT(e,t,n),queryFn:()=>AT(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 FT(e,t,n,r){const{reports:o,settled:s}=Pp(e,t,r);return{settled:s,reports:o,location:s?oa(n,o):void 0}}function ns(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 LT(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 kp(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function NT(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath]}function Tp(e,{enabled:t=!0}={}){const{apiClients:n}=Se.useServer(),r=kp(e);return ns({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&&BT(s.queryKey,r)?Hn.keepPreviousData(o):void 0,...Se.CHART_RESULT_QUERY_OPTIONS})}const jT=8;function BT(e,t){return e.every((n,r)=>r===jT||r>=t.length||n===t[r])}const VT=/<\/?[A-Za-z][^>]*>|<!--|<![A-Za-z]/;function Mp(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&&VT.test(s)){e.delete("label"),t=!0;continue}}const o=Array.isArray(r.eq)?r.eq:[];for(const s of[r,...o])Mp(s)&&(t=!0)}return t}function _T(e){const t=e.trim();if(!/^#(?:\||[ \t\r\n]|$)/.test(t))return e;if(t.includes("@env."))return"";let n;try{n=Vp.parseAnnotation(t)}catch{return""}return n.log.length>0?"":Mp(n.tag)?`${n.tag.toString()}
|
|
140
|
+
`:e}function Hs(e){if(Array.isArray(e)){for(const n of e)Hs(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=_T(s.value))}else Hs(r)}function Dp(e){let t;try{t=JSON.parse(e)}catch{return e}const n=JSON.stringify(t);Hs(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"]),WT={value:`# big_value
|
|
141
|
+
`};function HT(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(r=>Ds(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 UT(e){for(const t of e){const n=t.trim();if(!n.startsWith("#")||n.startsWith("#(")||n.startsWith('#"'))continue;const r=Vo(n.slice(1));for(const o of r.split(/[\s{}=.,[\]]+/))if(zT.has(o))return!0}return!1}function Rp(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!HT(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return UT(r)?e:JSON.stringify({...t,annotations:[WT,...n]})}const YT=e=>Dp(Rp(e));function Us(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?ou(t):e}function GT({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:b,onExplore:x,chrome:P="card",ignoredFilters:k,preamble:I,restricted:R,waitingFor:A,index:O}){const{theme:$}=Se.usePublisherTheme(),[y,E]=Sg(),D=Tp({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:s!==void 0?pi(I??"",`${i?`${i}
|
|
142
|
+
`:""}run: ${s}`):void 0,givens:di(ui(p,v,d),h,d)},{enabled:E&&R!==!0&&A===void 0}),{emit:M}=ii(),T=D.isError?D.error:void 0;q.useEffect(()=>{T!==void 0&&M({type:"report.query_failed",...O!==void 0?{tile:O}:{},category:Kc(T)})},[T,M,O]);const F=R===!0||I!==void 0&&D.isError&&ty(D.error);return f.jsxs(Qi,{cardRef:y,borderless:u,chrome:P,sx:{"& .malloy-render, & .malloy-table":{width:"100%"},"& .publisher-tile-explore":{opacity:0,transition:`opacity ${Ar}`,...Fr,...Tc},"&:hover .publisher-tile-explore, & .publisher-tile-explore:focus-visible":{opacity:1}},children:[s!==void 0&&f.jsx(ep,{title:c?.title??a??Us(s),subtitle:c?c.subtitle:l,quiet:P==="none",tooltip:s,action:x&&f.jsx(z.Tooltip,{title:"Explore from here",children:f.jsx(z.IconButton,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${a??Us(s)}`,onClick:x,sx:{mt:-.5,mr:-.5,color:$.tileTitle},children:f.jsx(bg,{fontSize:"small"})})})}),k&&f.jsx(Qd,{ignored:k}),A!==void 0?f.jsx(z.Box,{sx:{p:2},children:f.jsx(z.Typography,{variant:"body2",role:"status",color:"text.secondary",children:A})}):F?f.jsx(z.Box,{sx:{p:2},children:f.jsx(z.Typography,{variant:"body2",role:"status",color:"text.secondary",children:hu})}):f.jsx(Xd,{fill:!0,state:D,context:s??o??r,maxHeight:m,tableMaxHeight:g,compactToFit:C,firstPaintHeight:oi,maxResultSize:w,drill:b,transform:I!==void 0?s!==void 0?YT:Dp:s!==void 0?Rp:void 0})]})}function qT(e,{enabled:t=!0}={}){const{apiClients:n}=Se.useServer();return ns({queryKey:["compiled-document",e.environmentName,e.packageName,e.modelPath,e.source,e.givens??null],queryFn:async()=>{const r=(await n.models.compileModelSource(e.environmentName,e.packageName,e.modelPath,{source:e.source,scope:"append",...e.givens&&Object.keys(e.givens).length>0?{givens:e.givens}:{}})).data;return{document:r.document,result:r}},enabled:t})}exports.AdapterDayjs=vo;exports.AddButton=Bm;exports.AddFilterButton=Hd;exports.AddIcon=ei;exports.ApiErrorDisplay=Hc;exports.AppDialog=Cc;exports.ArrowDropDownIcon=yd;exports.BARE_RING_OFFSET_PX=bm;exports.BUILDER_HANDOFF_STALE_MS=PT;exports.Button=pr;exports.ButtonBase=Bn;exports.ChartGlyph=$c;exports.CheckIcon=Pc;exports.Chip=id;exports.CircularProgress=Pi;exports.ClassNameGenerator=Yl;exports.CloseIcon=_o;exports.DASHBOARD_CARD_PADDING_PX=Xi;exports.DEFAULT_COLUMNS=pc;exports.DRILL_SELF=Yg;exports.DashboardGrid=Tm;exports.DashboardTile=GT;exports.DatePicker=Dr;exports.DeleteOutlineIcon=yg;exports.DocumentNotFoundError=ip;exports.DocumentStorageProvider=xT;exports.ErrorDetailAlert=Wc;exports.ExpandMoreIcon=kc;exports.FilterEditingContext=Fd;exports.FilterSettingsButton=Wd;exports.FloatingIconButton=qd;exports.FormControl=Vi;exports.GRID_GAP_PX=Tt;exports.GivenInput=Gi;exports.GivensPanel=wk;exports.Grow=Pr;exports.INITIAL_RENDER_HEIGHT=Fc;exports.IconButton=Br;exports.InfoOutlinedIcon=Gd;exports.InputLabel=Bi;exports.LOADING_COPY=Mo;exports.ListContext=$n;exports.Loading=Ki;exports.LocalizationProvider=Cr;exports.MAX_SLUG_ATTEMPTS=na;exports.MAX_TILE_ROWS=hc;exports.MIN_TEXT_TILE_ROWS=Sm;exports.MIN_TILE_PX=gc;exports.MIN_TILE_ROWS=fc;exports.MIN_VALUE_TILE_ROWS=xm;exports.MODEL_CELL_MAX_HEIGHT=pg;exports.MOTION_FAST=Ar;exports.NOTEBOOK_CELL_MAX_HEIGHT=cg;exports.PLACED_DEFAULT_ROWSPAN=bc;exports.PROSE_MAX_WIDTH=Mc;exports.Paper=Vr;exports.Popper=Qu;exports.Prose=Dk;exports.REMOVE_BADGE_CLASS=Rn;exports.REPORT_EDIT_PARAM=xp;exports.RESTRICTED_NOTICE=hu;exports.RESULTS_DIALOG_MAX_HEIGHT=fg;exports.RemoveBadge=Nd;exports.ReportEventsContext=qc;exports.ReportHeader=Uk;exports.ReportPage=Hk;exports.ResultContainer=Kd;exports.ResultPanel=Xd;exports.STICKY_CONTROLS_Z=tp;exports.STICKY_TOP_VAR=np;exports.SearchIcon=Ec;exports.SecondaryButton=Vm;exports.Select=Wi;exports.StickyControls=Gk;exports.SvgIcon=yo;exports.THEME_ID=Un;exports.TIGHT_ATTR=Nc;exports.TILE_HEADING_CLASS=Jd;exports.TILE_MAX_HEIGHT=oi;exports.TILE_MIN_HEIGHT=Zd;exports.TILE_ROW_PX=Bo;exports.TextField=bd;exports.TextTileFrame=Yk;exports.TileCard=Qi;exports.TileFilterTag=Qd;exports.TileHeading=ep;exports.Typography=Qt;exports.UNCAPPED_CONTAINER_HEIGHT=Ac;exports.UnsavedChangesDialog=jm;exports.ViewPicker=ng;exports.annotationTextProblem=Ji;exports.buildTableCssVars=jk;exports.capitalize=le;exports.chartLineText=Dm;exports.chartLinesOf=Nm;exports.chartOf=yp;exports.chartResetLine=Mm;exports.chartShapeGap=Rc;exports.chartStateOfTagLines=Em;exports.chooseWorkspace=tT;exports.clearReportDraft=Mg;exports.clsx=de;exports.columnCounts=Ic;exports.composeClasses=me;exports.contentNode=Oc;exports.contentNodeDepth=ag;exports.createDocument=gT;exports.createRoute=mT;exports.createSimplePaletteValueFilter=Xe;exports.createSvgIcon=$e;exports.createTheme=ac;exports.dangerTextColor=zm;exports.dayjs=Re;exports.docOf=Ws;exports.documentPreamble=ey;exports.documentSlug=DT;exports.draftKey=fp;exports.draftStorageAvailable=Dg;exports.drillDestinations=ru;exports.drillGivenName=su;exports.drillValueLabel=iu;exports.drillValueToFilter=Wo;exports.edgeColor=Yn;exports.emphasize=Zl;exports.encodeDrillValue=au;exports.encodeResourceUri=op;exports.escapeMalloyString=Uc;exports.expectedHashFor=nT;exports.exportedSources=gp;exports.extractEventHandlers=gi;exports.failureCategory=Kc;exports.filledInputClasses=Yt;exports.formControlState=bn;exports.generateUtilityClass=ge;exports.generateUtilityClasses=he;exports.getAugmentedNamespace=Wp;exports.getDefaultExportFromCjs=jt;exports.getReactElementRef=Gn;exports.givensToParams=io;exports.givensToRequest=ui;exports.hoverEdgeColor=ri;exports.humanizeSlug=ou;exports.initialResultHeight=Lc;exports.inputBaseClasses=mn;exports.inputClasses=Mn;exports.invalidateReportQueries=$T;exports.isChartPick=Sc;exports.isDocumentNotFound=ap;exports.isDrillTargetPath=Cp;exports.isPlaced=vc;exports.isSeriesColor=wc;exports.layoutOfKind=kT;exports.layoutRules=mg;exports.legacyNamedPath=TT;exports.listedLayout=Sp;exports.loadMalloy=Qk;exports.loadMalloyRenderer=Ud;exports.loadMalloyTag=Zk;exports.loadQueryBuilder=Jk;exports.localGivenSpec=wg;exports.locateReport=oa;exports.locatedReport=wp;exports.locatorFor=hp;exports.malloyLiteral=Pg;exports.measureContentHeight=lg;exports.memoTheme=Ee;exports.mentionsChartTag=ni;exports.mergeSlotProps=dc;exports.missingRequiredGivens=uk;exports.modelResultsKey=NT;exports.newDashboardSource=hT;exports.newDocumentProblem=ea;exports.newNotebookSource=pT;exports.now=zs;exports.nudgedSpan=ym;exports.outlinedInputClasses=bt;exports.ownerDocument=Ye;exports.parseChartLine=Or;exports.parseResourceUri=rp;exports.queryResultKey=kp;exports.reaches=zc;exports.readableName=tg;exports.reducedMotionSx=Fr;exports.remeasuresAfterReady=ig;exports.removeBadgeRevealSx=Ld;exports.renderGivenDefault=Yi;exports.reportClasses=Ot;exports.reportDraftKey=Tg;exports.reportEditRoute=RT;exports.reportEmitter=bo;exports.reportPathFor=up;exports.reportPathForTitle=pp;exports.reportPathProblem=mp;exports.reportQueryOptions=CT;exports.reportRoute=vp;exports.reportRoutePath=bp;exports.requestsRowChart=Um;exports.requiredPrompt=pk;exports.resolveDrill=Gg;exports.resolveDrillTarget=IT;exports.resolveEditorTarget=lT;exports.resolveResultHeight=Rs;exports.resolvedOf=si;exports.resultSizing=sg;exports.rootShouldForwardProp=pt;exports.rowsForHeight=wm;exports.saveCaption=rT;exports.saveTarget=sp;exports.scrollBehavior=_m;exports.seriesColorFrom=Lm;exports.seriesColorLine=Am;exports.seriesColorOf=Om;exports.seriesColorResetLine=Fm;exports.setRef=ks;exports.slugFor=lp;exports.slugOrFallback=dp;exports.storageErrorMessage=oT;exports.styled=G;exports.tileHeightPx=mc;exports.tileIgnoredFilterLabels=Fk;exports.tileTitle=Us;exports.typographyClasses=xb;exports.useCompiledDocument=qT;exports.useControlled=Dt;exports.useDefaultProps=Ce;exports.useDefaultTileSpan=Cm;exports.useDocumentChoices=vT;exports.useDocumentControls=uy;exports.useDocumentLocation=FT;exports.useDocumentStorage=ST;exports.useDrillSelf=lu;exports.useEnhancedEffect=Ue;exports.useEventCallback=ue;exports.useForkRef=ke;exports.useFormControl=ft;exports.useGivensState=fu;exports.useId=xt;exports.useMutationWithApiError=LT;exports.useOptionalDocumentStorage=wT;exports.useQueryResult=Tp;exports.useQueryWithApiError=ns;exports.useReportDraft=$g;exports.useReportEmitter=Og;exports.useReportEvents=ii;exports.useReportListing=Pp;exports.useSlot=je;exports.useSuggestOptions=gu;exports.useTheme=gn;exports.useTimeout=mi;exports.utc=ai;exports.visibleWithoutHoverSx=Tc;exports.waitingOn=dk;exports.waitingText=fk;exports.withHostGivens=di;exports.withPreamble=pi;exports.withReportContext=Yc;exports.withSource=gg;exports.withSpan=hg;exports.withWorkspace=aT;exports.writePackageFile=iT;exports.writtenSpan=jc;
|