@malloy-publisher/sdk 0.12.1 → 0.12.3
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/README.md +79 -6
- package/dist/{RenderedResult-DrNhQ2_9.cjs.js → RenderedResult-C2arX5Zz.cjs.js} +1 -1
- package/dist/{RenderedResult-AyM-RQaA.es.js → RenderedResult-DqPvGZgL.es.js} +2 -2
- package/dist/ServerProvider-CqL6xzta.cjs.js +1 -0
- package/dist/{ServerProvider-a9Ki0QXO.es.js → ServerProvider-DRbZ6tLP.es.js} +1213 -1187
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +3 -3
- package/dist/client/api.d.ts +43 -13
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +28 -27
- package/dist/components/Model/ExplorerPage.d.ts +9 -0
- package/dist/components/Model/Model.d.ts +27 -11
- package/dist/components/ModelViewer/AccessChips.d.ts +34 -0
- package/dist/components/ModelViewer/EmptyRow.d.ts +23 -0
- package/dist/components/ModelViewer/Facts.d.ts +15 -0
- package/dist/components/ModelViewer/FieldGroup.d.ts +31 -0
- package/dist/components/ModelViewer/FieldRow.d.ts +69 -0
- package/dist/components/ModelViewer/GivenFacts.d.ts +21 -0
- package/dist/components/ModelViewer/HeaderBar.d.ts +75 -0
- package/dist/components/ModelViewer/InlineDoc.d.ts +13 -0
- package/dist/components/ModelViewer/ModelGivensSection.d.ts +32 -0
- package/dist/components/ModelViewer/ModelSection.d.ts +21 -0
- package/dist/components/ModelViewer/ModelViewer.d.ts +91 -0
- package/dist/components/ModelViewer/QueriesGroup.d.ts +15 -0
- package/dist/components/ModelViewer/RowGlyph.d.ts +27 -0
- package/dist/components/ModelViewer/RunResult.d.ts +46 -0
- package/dist/components/ModelViewer/SampleValues.d.ts +20 -0
- package/dist/components/ModelViewer/SchemaJoin.d.ts +51 -0
- package/dist/components/ModelViewer/SchemaView.d.ts +52 -0
- package/dist/components/ModelViewer/SegmentIcons.d.ts +70 -0
- package/dist/components/ModelViewer/SourcesDropdown.d.ts +53 -0
- package/dist/components/ModelViewer/SourcesNav.d.ts +25 -0
- package/dist/components/ModelViewer/StatusPill.d.ts +56 -0
- package/dist/components/ModelViewer/ValueChip.d.ts +17 -0
- package/dist/components/ModelViewer/ViewRow.d.ts +36 -0
- package/dist/components/ModelViewer/clickableBox.d.ts +29 -0
- package/dist/components/ModelViewer/codeDisplay.d.ts +44 -0
- package/dist/components/ModelViewer/docAnnotations.d.ts +90 -0
- package/dist/components/ModelViewer/explorerModel.d.ts +12 -0
- package/dist/components/ModelViewer/extensions.d.ts +94 -0
- package/dist/components/ModelViewer/fieldCode.d.ts +74 -0
- package/dist/components/ModelViewer/fieldEntities.d.ts +45 -0
- package/dist/components/ModelViewer/fieldExpansion.d.ts +41 -0
- package/dist/components/ModelViewer/givenUsage.d.ts +71 -0
- package/dist/components/ModelViewer/headerCard.d.ts +31 -0
- package/dist/components/ModelViewer/httpStatus.d.ts +4 -0
- package/dist/components/ModelViewer/icons.d.ts +31 -0
- package/dist/components/ModelViewer/index.d.ts +9 -0
- package/dist/components/ModelViewer/joinAccess.d.ts +52 -0
- package/dist/components/ModelViewer/malloyRunText.d.ts +22 -0
- package/dist/components/ModelViewer/malloyText.d.ts +21 -0
- package/dist/components/ModelViewer/modelGivens.d.ts +61 -0
- package/dist/components/ModelViewer/modelGivensContext.d.ts +9 -0
- package/dist/components/ModelViewer/modelHeaderPresentation.d.ts +28 -0
- package/dist/components/ModelViewer/modelTextDeclarations.d.ts +32 -0
- package/dist/components/ModelViewer/modelTextParse.d.ts +27 -0
- package/dist/components/ModelViewer/namedQueryCode.d.ts +12 -0
- package/dist/components/ModelViewer/offSurface.d.ts +54 -0
- package/dist/components/ModelViewer/rowLayers.d.ts +30 -0
- package/dist/components/ModelViewer/runGate.d.ts +49 -0
- package/dist/components/ModelViewer/schemaModel.d.ts +109 -0
- package/dist/components/ModelViewer/sectionOpenCommand.d.ts +45 -0
- package/dist/components/ModelViewer/sourceAccess.d.ts +67 -0
- package/dist/components/ModelViewer/sourceLineage.d.ts +14 -0
- package/dist/components/ModelViewer/sourcePicker.d.ts +66 -0
- package/dist/components/ModelViewer/surface.d.ts +47 -0
- package/dist/components/ModelViewer/text.d.ts +6 -0
- package/dist/components/ModelViewer/theme.d.ts +63 -0
- package/dist/components/ModelViewer/tokens.d.ts +52 -0
- package/dist/components/ModelViewer/ui.d.ts +48 -0
- package/dist/components/ModelViewer/useDimensionSamples.d.ts +76 -0
- package/dist/components/ModelViewer/useModelSources.d.ts +92 -0
- package/dist/components/ModelViewer/useRunQuery.d.ts +115 -0
- package/dist/components/ReportBuilder/loadMalloy.d.ts +4 -0
- package/dist/components/ServerProvider.d.ts +15 -1
- package/dist/components/filter/utils.d.ts +1 -1
- package/dist/components/given/GivenInput.d.ts +7 -1
- package/dist/components/given/GivensPanel.d.ts +3 -1
- package/dist/components/given/filterSummary.d.ts +6 -0
- package/dist/components/given/useGivenUrlParams.d.ts +11 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/components/modelPage.d.ts +36 -0
- package/dist/hooks/useDimensionalFilterRangeData.d.ts +9 -0
- package/dist/hooks/useSuggestOptions.d.ts +26 -2
- package/dist/index.cjs.js +47 -19
- package/dist/index.es.js +14281 -9879
- package/dist/useCompiledDocument--Z7vKZL5.cjs.js +143 -0
- package/dist/{useCompiledDocument-Utj2u8CG.es.js → useCompiledDocument-BnT2QpG0.es.js} +6975 -6893
- package/dist/utils/filterCondition.d.ts +14 -0
- package/dist/utils/malloyLiteral.d.ts +20 -1
- package/package.json +2 -2
- package/src/components/Model/ExplorerPage.tsx +269 -0
- package/src/components/Model/Model.tsx +66 -250
- package/src/components/Model/ModelExplorer.spec.tsx +64 -1
- package/src/components/ModelViewer/AccessChips.tsx +149 -0
- package/src/components/ModelViewer/EmptyRow.tsx +71 -0
- package/src/components/ModelViewer/Facts.tsx +46 -0
- package/src/components/ModelViewer/FieldGroup.tsx +137 -0
- package/src/components/ModelViewer/FieldRow.tsx +566 -0
- package/src/components/ModelViewer/GivenFacts.tsx +89 -0
- package/src/components/ModelViewer/HeaderBar.tsx +362 -0
- package/src/components/ModelViewer/InlineDoc.tsx +50 -0
- package/src/components/ModelViewer/ModelGivensSection.tsx +142 -0
- package/src/components/ModelViewer/ModelSection.tsx +98 -0
- package/src/components/ModelViewer/ModelViewer.spec.tsx +937 -0
- package/src/components/ModelViewer/ModelViewer.tsx +777 -0
- package/src/components/ModelViewer/QueriesGroup.tsx +107 -0
- package/src/components/ModelViewer/RowGlyph.tsx +138 -0
- package/src/components/ModelViewer/RunResult.tsx +298 -0
- package/src/components/ModelViewer/SampleValues.tsx +97 -0
- package/src/components/ModelViewer/SchemaJoin.tsx +258 -0
- package/src/components/ModelViewer/SchemaView.tsx +222 -0
- package/src/components/ModelViewer/SegmentIcons.tsx +129 -0
- package/src/components/ModelViewer/SourcesDropdown.tsx +265 -0
- package/src/components/ModelViewer/SourcesNav.tsx +75 -0
- package/src/components/ModelViewer/StatusPill.tsx +145 -0
- package/src/components/ModelViewer/ValueChip.tsx +39 -0
- package/src/components/ModelViewer/ViewRow.tsx +274 -0
- package/src/components/ModelViewer/clickableBox.ts +59 -0
- package/src/components/ModelViewer/codeDisplay.spec.ts +176 -0
- package/src/components/ModelViewer/codeDisplay.ts +118 -0
- package/src/components/ModelViewer/docAnnotations.spec.ts +181 -0
- package/src/components/ModelViewer/docAnnotations.ts +244 -0
- package/src/components/ModelViewer/docAnnotations.typeDetail.spec.ts +114 -0
- package/src/components/ModelViewer/explorerModel.spec.ts +43 -0
- package/src/components/ModelViewer/explorerModel.ts +31 -0
- package/src/components/ModelViewer/extensions.tsx +112 -0
- package/src/components/ModelViewer/fieldCode.spec.ts +168 -0
- package/src/components/ModelViewer/fieldCode.ts +118 -0
- package/src/components/ModelViewer/fieldEntities.ts +63 -0
- package/src/components/ModelViewer/fieldExpansion.spec.ts +116 -0
- package/src/components/ModelViewer/fieldExpansion.ts +95 -0
- package/src/components/ModelViewer/givenUsage.spec.ts +304 -0
- package/src/components/ModelViewer/givenUsage.ts +325 -0
- package/src/components/ModelViewer/headerCard.tsx +102 -0
- package/src/components/ModelViewer/httpStatus.ts +15 -0
- package/src/components/ModelViewer/icons.tsx +67 -0
- package/src/components/ModelViewer/index.ts +26 -0
- package/src/components/ModelViewer/joinAccess.spec.ts +95 -0
- package/src/components/ModelViewer/joinAccess.ts +54 -0
- package/src/components/ModelViewer/malloyRunText.spec.ts +48 -0
- package/src/components/ModelViewer/malloyRunText.ts +51 -0
- package/src/components/ModelViewer/malloyText.spec.ts +47 -0
- package/src/components/ModelViewer/malloyText.ts +77 -0
- package/src/components/ModelViewer/modelGivens.ts +228 -0
- package/src/components/ModelViewer/modelGivensContext.ts +13 -0
- package/src/components/ModelViewer/modelHeaderPresentation.spec.ts +31 -0
- package/src/components/ModelViewer/modelHeaderPresentation.ts +41 -0
- package/src/components/ModelViewer/modelTextDeclarations.spec.ts +336 -0
- package/src/components/ModelViewer/modelTextDeclarations.ts +228 -0
- package/src/components/ModelViewer/modelTextParse.ts +112 -0
- package/src/components/ModelViewer/namedQueryCode.spec.ts +58 -0
- package/src/components/ModelViewer/namedQueryCode.ts +26 -0
- package/src/components/ModelViewer/offSurface.tsx +124 -0
- package/src/components/ModelViewer/rowLayers.tsx +104 -0
- package/src/components/ModelViewer/runGate.spec.ts +219 -0
- package/src/components/ModelViewer/runGate.ts +145 -0
- package/src/components/ModelViewer/schemaModel.defaultSource.spec.ts +126 -0
- package/src/components/ModelViewer/schemaModel.queries.spec.ts +37 -0
- package/src/components/ModelViewer/schemaModel.ts +300 -0
- package/src/components/ModelViewer/sectionOpenCommand.tsx +125 -0
- package/src/components/ModelViewer/sourceAccess.spec.ts +130 -0
- package/src/components/ModelViewer/sourceAccess.ts +194 -0
- package/src/components/ModelViewer/sourceLineage.spec.ts +73 -0
- package/src/components/ModelViewer/sourceLineage.ts +38 -0
- package/src/components/ModelViewer/sourcePicker.spec.ts +294 -0
- package/src/components/ModelViewer/sourcePicker.ts +162 -0
- package/src/components/ModelViewer/surface.ts +51 -0
- package/src/components/ModelViewer/text.tsx +33 -0
- package/src/components/ModelViewer/theme.spec.ts +38 -0
- package/src/components/ModelViewer/theme.ts +58 -0
- package/src/components/ModelViewer/tokens.ts +87 -0
- package/src/components/ModelViewer/ui.tsx +201 -0
- package/src/components/ModelViewer/useDimensionSamples.spec.tsx +139 -0
- package/src/components/ModelViewer/useDimensionSamples.ts +220 -0
- package/src/components/ModelViewer/useModelSources.spec.ts +110 -0
- package/src/components/ModelViewer/useModelSources.ts +238 -0
- package/src/components/ModelViewer/useRunQuery.spec.ts +50 -0
- package/src/components/ModelViewer/useRunQuery.ts +223 -0
- package/src/components/ReportBuilder/emptyStart.spec.ts +8 -0
- package/src/components/ReportBuilder/loadMalloy.ts +8 -1
- package/src/components/ServerProvider.tsx +27 -3
- package/src/components/filter/utils.ts +4 -60
- package/src/components/given/FilterButton.tsx +4 -1
- package/src/components/given/GivenInput.tsx +8 -0
- package/src/components/given/GivensPanel.tsx +6 -1
- package/src/components/given/filterSummary.spec.ts +31 -1
- package/src/components/given/filterSummary.ts +41 -19
- package/src/components/given/useGivenUrlParams.spec.tsx +32 -0
- package/src/components/given/useGivenUrlParams.ts +49 -14
- package/src/components/index.ts +6 -1
- package/src/components/legacy/malloynb/Notebook.spec.tsx +38 -4
- package/src/components/legacy/malloynb/NotebookCell.tsx +8 -2
- package/src/components/modelPage.spec.ts +79 -0
- package/src/components/modelPage.ts +48 -0
- package/src/hooks/useDimensionFilters.ts +3 -58
- package/src/hooks/useDimensionFiltersQuery.ts +3 -58
- package/src/hooks/useDimensionalFilterRangeData.spec.ts +57 -0
- package/src/hooks/useDimensionalFilterRangeData.ts +8 -63
- package/src/hooks/useSuggestOptions.dom.spec.ts +54 -1
- package/src/hooks/useSuggestOptions.spec.ts +71 -0
- package/src/hooks/useSuggestOptions.ts +102 -12
- package/src/utils/filterCondition.spec.ts +87 -0
- package/src/utils/filterCondition.ts +66 -0
- package/src/utils/malloyLiteral.spec.ts +53 -1
- package/src/utils/malloyLiteral.ts +47 -12
- package/dist/ServerProvider-BvD7PYZ7.cjs.js +0 -1
- package/dist/useCompiledDocument-CRhFBKv_.cjs.js +0 -142
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";var _p=Object.create;var aa=Object.defineProperty;var zp=Object.getOwnPropertyDescriptor;var Wp=Object.getOwnPropertyNames;var Hp=Object.getPrototypeOf,Up=Object.prototype.hasOwnProperty;var Yp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Wp(t))!Up.call(e,o)&&o!==n&&aa(e,o,{get:()=>t[o],enumerable:!(r=zp(t,o))||r.enumerable});return e};var zr=(e,t,n)=>(n=e!=null?_p(Hp(e)):{},Yp(t||!e||!e.__esModule?aa(n,"default",{value:e,enumerable:!0}):n,e));const f=require("react/jsx-runtime"),H=require("@mui/material"),Se=require("./ServerProvider-CqL6xzta.cjs.js"),z=require("react"),Un=require("@tanstack/react-query"),Gp=require("@emotion/react"),He=require("@mui/system"),cr=require("react-dom"),qp=require("markdown-to-jsx"),Us=require("./text-entry-BJwltZiy.cjs.js"),Kp=require("@emotion/styled"),tt=require("@malloydata/malloy-filter"),Xp=require("@mui/icons-material"),Qp=require("@malloydata/malloy-tag");function ql(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=ql(z),Zp=ql(cr),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"},la=e=>e,Jp=()=>{let e=la;return{configure(t){e=t},generate(t){return e(t)},reset(){e=la}}},Kl=Jp();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 ie(e){if(typeof e!="string")throw new Error(At(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ca(...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 ef(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 ns={exports:{}},rs,ua;function tf(){if(ua)return rs;ua=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return rs=e,rs}var os,da;function nf(){if(da)return os;da=1;var e=tf();function t(){}function n(){}return n.resetWarningCache=t,os=function(){function r(i,a,l,c,u,d){if(d!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},os}var pa;function rf(){return pa||(pa=1,ns.exports=nf()()),ns.exports}var of=rf();const U=jt(of);function Xl(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=Xl(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=Xl(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 ss={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 fa;function sf(){if(fa)return Ie;fa=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"),d=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function p(h){if(typeof h=="object"&&h!==null){var g=h.$$typeof;switch(g){case e:switch(h=h.type,h){case n:case o:case r:case l:case c:case m:return h;default:switch(h=h&&h.$$typeof,h){case i:case a:case d:case u:return h;case s:return h;default:return g}}case t:return g}}}return Ie.ContextConsumer=s,Ie.ContextProvider=i,Ie.Element=e,Ie.ForwardRef=a,Ie.Fragment=n,Ie.Lazy=d,Ie.Memo=u,Ie.Portal=t,Ie.Profiler=o,Ie.StrictMode=r,Ie.Suspense=l,Ie.SuspenseList=c,Ie.isContextConsumer=function(h){return p(h)===s},Ie.isContextProvider=function(h){return p(h)===i},Ie.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},Ie.isForwardRef=function(h){return p(h)===a},Ie.isFragment=function(h){return p(h)===n},Ie.isLazy=function(h){return p(h)===d},Ie.isMemo=function(h){return p(h)===u},Ie.isPortal=function(h){return p(h)===t},Ie.isProfiler=function(h){return p(h)===o},Ie.isStrictMode=function(h){return p(h)===r},Ie.isSuspense=function(h){return p(h)===l},Ie.isSuspenseList=function(h){return p(h)===c},Ie.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===o||h===r||h===l||h===c||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===u||h.$$typeof===i||h.$$typeof===s||h.$$typeof===a||h.$$typeof===y||h.getModuleId!==void 0)},Ie.typeOf=p,Ie}var ha;function af(){return ha||(ha=1,ss.exports=sf()),ss.exports}var Ql=af();function kt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Zl(e){if(S.isValidElement(e)||Ql.isValidElementType(e)||!kt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Zl(e[n])}),t}function Ge(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return kt(e)&&kt(t)&&Object.keys(t).forEach(o=>{S.isValidElement(t[o])||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])?Zl(t[o]):t[o]:r[o]=t[o]}),r}function hr(e,t){return t?Ge(e,t,{clone:!1}):e}function ma(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 lf(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function cf(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 uf(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 Mo={xs:0,sm:600,md:900,lg:1200,xl:1536},ga={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Mo[e]}px)`},df={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Mo[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||ga;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||ga;return Object.keys(t).reduce((i,a)=>{if(lf(s.keys,a)){const l=cf(r.containerQueries?r:df,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||Mo).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 pf(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function ya(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Do(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 fo(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Do(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=Do(l,r)||{};return Ft(i,a,d=>{let m=fo(c,o,d);return d===m&&typeof d=="string"&&(m=fo(c,o,`${t}${d==="default"?"":ie(d)}`,d)),n===!1?m:{[n]:m}})};return s.propTypes={},s.filterProps=[t],s}function ff(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const hf={m:"margin",p:"padding"},mf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ba={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gf=ff(e=>{if(e.length>2)if(ba[e])e=ba[e];else return[e];const[t,n]=e.split(""),r=hf[t],o=mf[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),Ys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ys,...Gs];function Rr(e,t,n,r){const o=Do(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 qs(e){return Rr(e,"spacing",8)}function Ir(e,t){return typeof t=="string"||t==null?t:e(t)}function yf(e,t){return n=>e.reduce((r,o)=>(r[o]=Ir(t,n),r),{})}function bf(e,t,n,r){if(!t.includes(n))return null;const o=gf(n),s=yf(o,r),i=e[n];return Ft(e,i,s)}function Jl(e,t){const n=qs(e.theme);return Object.keys(e).map(r=>bf(e,t,r,n)).reduce(hr,{})}function Ve(e){return Jl(e,Ys)}Ve.propTypes={};Ve.filterProps=Ys;function _e(e){return Jl(e,Gs)}_e.propTypes={};_e.filterProps=Gs;function Ro(...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]?hr(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 vf=dt("border",it),xf=dt("borderTop",it),Sf=dt("borderRight",it),wf=dt("borderBottom",it),Cf=dt("borderLeft",it),Pf=dt("borderColor"),kf=dt("borderTopColor"),Tf=dt("borderRightColor"),Mf=dt("borderBottomColor"),Df=dt("borderLeftColor"),Rf=dt("outline",it),If=dt("outlineColor"),Io=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Rr(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ir(t,r)});return Ft(e,e.borderRadius,n)}return null};Io.propTypes={};Io.filterProps=["borderRadius"];Ro(vf,xf,Sf,wf,Cf,Pf,kf,Tf,Mf,Df,Io,Rf,If);const Eo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Rr(e.theme,"spacing",8),n=r=>({gap:Ir(t,r)});return Ft(e,e.gap,n)}return null};Eo.propTypes={};Eo.filterProps=["gap"];const $o=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Rr(e.theme,"spacing",8),n=r=>({columnGap:Ir(t,r)});return Ft(e,e.columnGap,n)}return null};$o.propTypes={};$o.filterProps=["columnGap"];const Oo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Rr(e.theme,"spacing",8),n=r=>({rowGap:Ir(t,r)});return Ft(e,e.rowGap,n)}return null};Oo.propTypes={};Oo.filterProps=["rowGap"];const Ef=We({prop:"gridColumn"}),$f=We({prop:"gridRow"}),Of=We({prop:"gridAutoFlow"}),Af=We({prop:"gridAutoColumns"}),Ff=We({prop:"gridAutoRows"}),Lf=We({prop:"gridTemplateColumns"}),Nf=We({prop:"gridTemplateRows"}),jf=We({prop:"gridTemplateAreas"}),Bf=We({prop:"gridArea"});Ro(Eo,$o,Oo,Ef,$f,Of,Af,Ff,Lf,Nf,jf,Bf);function En(e,t){return t==="grey"?t:e}const Vf=We({prop:"color",themeKey:"palette",transform:En}),_f=We({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:En}),zf=We({prop:"backgroundColor",themeKey:"palette",transform:En});Ro(Vf,_f,zf);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const Wf=We({prop:"width",transform:Je}),Ks=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Mo[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};Ks.filterProps=["maxWidth"];const Hf=We({prop:"minWidth",transform:Je}),Uf=We({prop:"height",transform:Je}),Yf=We({prop:"maxHeight",transform:Je}),Gf=We({prop:"minHeight",transform:Je});We({prop:"size",cssProperty:"width",transform:Je});We({prop:"size",cssProperty:"height",transform:Je});const qf=We({prop:"boxSizing"});Ro(Wf,Ks,Hf,Uf,Yf,Gf,qf);const Er={border:{themeKey:"borders",transform:it},borderTop:{themeKey:"borders",transform:it},borderRight:{themeKey:"borders",transform:it},borderBottom:{themeKey:"borders",transform:it},borderLeft:{themeKey:"borders",transform:it},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:it},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Io},color:{themeKey:"palette",transform:En},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:En},backgroundColor:{themeKey:"palette",transform:En},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:Eo},rowGap:{style:Oo},columnGap:{style:$o},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:Ks},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 Kf(...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 Xf(e,t){return typeof e=="function"?e(t):e}function Qf(){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:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const m=Do(o,c)||{};return d?d(i):Ft(i,r,p=>{let h=fo(m,u,p);return p===h&&typeof p=="string"&&(h=fo(m,u,`${n}${p==="default"?"":ie(p)}`,p)),l===!1?h:{[l]:h}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Er;function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const u=pf(o.breakpoints),d=Object.keys(u);let m=u;return Object.keys(c).forEach(y=>{const p=Xf(c[y],o);if(p!=null)if(typeof p=="object")if(i[y])m=hr(m,e(y,p,o,i));else{const h=Ft({theme:o},p,g=>({[y]:g}));Kf(h,p)?m[y]=t({sx:p,theme:o,nested:!0}):m=hr(m,h)}else m=hr(m,e(y,p,o,i))}),!s&&o.modularCssLayers?{"@layer sx":ma(o,ya(d,m))}:ma(o,ya(d,m))}return Array.isArray(r)?r.map(a):a(r)}return t}const Ln=Qf();Ln.filterProps=["sx"];const Zf=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Er;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Jf(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Zf(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 eh(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Xs(e,t=0,n=1){return eh(e,t,n)}function th(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(th(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 nh=e=>{const t=Xt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},ur=(e,t)=>{try{return nh(e)}catch{return e}};function Ao(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 ec(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])),Ao({type:a,values:l})}function vs(e){e=Xt(e);let t=e.type==="hsl"||e.type==="hsla"?Xt(ec(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 rh(e,t){const n=vs(e),r=vs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ho(e,t){return e=Xt(e),t=Xs(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ao(e)}function Jt(e,t,n){try{return ho(e,t)}catch{return e}}function Fo(e,t){if(e=Xt(e),t=Xs(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 Ao(e)}function Me(e,t,n){try{return Fo(e,t)}catch{return e}}function Lo(e,t){if(e=Xt(e),t=Xs(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 Ao(e)}function De(e,t,n){try{return Lo(e,t)}catch{return e}}function tc(e,t=.15){return vs(e)>.5?Fo(e,t):Lo(e,t)}function Wr(e,t,n){try{return tc(e,t)}catch{return e}}const Sr={black:"#000",white:"#fff"},oh={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"},xn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Sn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Zn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},wn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Cn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Pn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function nc(){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:Sr.white,default:Sr.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 rc=nc();function oc(){return{text:{primary:Sr.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:Sr.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 xs=oc();function va(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=Lo(e.main,o):t==="dark"&&(e.dark=Fo(e.main,s)))}function xa(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 sh(e="light"){return e==="dark"?{main:wn[200],light:wn[50],dark:wn[400]}:{main:wn[700],light:wn[400],dark:wn[800]}}function ih(e="light"){return e==="dark"?{main:xn[200],light:xn[50],dark:xn[400]}:{main:xn[500],light:xn[300],dark:xn[700]}}function ah(e="light"){return e==="dark"?{main:Sn[500],light:Sn[300],dark:Sn[700]}:{main:Sn[700],light:Sn[400],dark:Sn[800]}}function lh(e="light"){return e==="dark"?{main:Cn[400],light:Cn[300],dark:Cn[700]}:{main:Cn[700],light:Cn[500],dark:Cn[900]}}function ch(e="light"){return e==="dark"?{main:Pn[400],light:Pn[300],dark:Pn[700]}:{main:Pn[800],light:Pn[500],dark:Pn[900]}}function uh(e="light"){return e==="dark"?{main:Zn[400],light:Zn[300],dark:Zn[700]}:{main:"#ed6c02",light:Zn[500],dark:Zn[900]}}function dh(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Qs(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,i=e.primary||sh(t),a=e.secondary||ih(t),l=e.error||ah(t),c=e.info||lh(t),u=e.success||ch(t),d=e.warning||uh(t);function m(g){return o?dh(g):rh(g,xs.text.primary)>=n?xs.text.primary:rc.text.primary}const y=({color:g,name:w,mainShade:k=500,lightShade:x=300,darkShade:b=700})=>{if(g={...g},!g.main&&g[k]&&(g.main=g[k]),!g.hasOwnProperty("main"))throw new Error(At(11,w?` (${w})`:"",k));if(typeof g.main!="string")throw new Error(At(12,w?` (${w})`:"",JSON.stringify(g.main)));return o?(xa(o,g,"light",x,r),xa(o,g,"dark",b,r)):(va(g,"light",x,r),va(g,"dark",b,r)),g.contrastText||(g.contrastText=m(g.main)),g};let p;return t==="light"?p=nc():t==="dark"&&(p=oc()),Ge({common:{...Sr},mode:t,primary:y({color:i,name:"primary"}),secondary:y({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:l,name:"error"}),warning:y({color:d,name:"warning"}),info:y({color:c,name:"info"}),success:y({color:u,name:"success"}),grey:oh,contrastThreshold:n,getContrastText:m,augmentColor:y,tonalOffset:r,...p},s)}function ph(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 fh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function hh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var mh=/[A-Z]|^ms/g,gh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sc=function(t){return t.charCodeAt(1)===45},Sa=function(t){return t!=null&&typeof t!="boolean"},is=hh(function(e){return sc(e)?e:e.replace(mh,"-$&").toLowerCase()}),wa=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(gh,function(r,o,s){return qt={name:o,styles:s,next:qt},o})}return fh[t]!==1&&!sc(t)&&typeof n=="number"&&n!==0?n+"px":n};function mo(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 yh(e,t,n)}}var l=n;return l}function yh(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=mo(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;Sa(a)&&(r+=is(s)+":"+wa(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)Sa(i[l])&&(r+=is(s)+":"+wa(s,i[l])+";");else{var c=mo(e,t,i);switch(s){case"animation":case"animationName":{r+=is(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var Ca=/label:\s*([^\s;{]+)\s*(;|$)/g,qt;function bh(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+=mo(n,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=mo(n,t,e[a]),r){var l=s;o+=l[a]}Ca.lastIndex=0;for(var c="",u;(u=Ca.exec(o))!==null;)c+="-"+u[1];var d=ph(o)+c;return{name:d,styles:o,next:qt}}function vh(e,t){return Kp(e,t)}function xh(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Pa=[];function cn(e){return Pa[0]=e,bh(Pa)}const Ue=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Sh(e){return Object.keys(e).length===0}function ic(e=null){const t=S.useContext(Gp.ThemeContext);return!t||Sh(t)?e:t}const wh=S.createContext(),vt=()=>S.useContext(wh)??!1;function wr(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]=wr(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 Ch=S.createContext(void 0);function Ph(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?wr(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?wr(o,r,t.components.mergeClassNameAndStyle):r}function kh({props:e,name:t}){const n=S.useContext(Ch);return Ph({props:e,name:t,theme:{components:n}})}let ka=0;function Th(e){const[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t==null&&(ka+=1,n(`mui-${ka}`))},[t]),r}const Mh={...S},Ta=Mh.useId;function xt(e){if(Ta!==void 0){const t=Ta();return e??t}return Th(e)}const Dh=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 Rh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=Dh(t),i=Object.keys(s);function a(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function l(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function c(m,y){const p=i.indexOf(y);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(p!==-1&&typeof t[i[p]]=="number"?t[i[p]]:y)-r/100}${n})`}function u(m){return i.indexOf(m)+1<i.length?c(m,i[i.indexOf(m)+1]):a(m)}function d(m){const y=i.indexOf(m);return y===0?a(i[1]):y===i.length-1?l(i[y]):c(m,i[i.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:i,values:s,up:a,down:l,between:c,only:u,not:d,unit:n,...o}}const Ih={borderRadius:4};function Eh(e=8,t=qs({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 $h(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 Zs(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=Rh(n),l=Eh(o);let c=Ge({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Ih,...s}},i);return c=uf(c),c.applyStyles=$h,c=t.reduce((u,d)=>Ge(u,d),c),c.unstable_sxConfig={...Er,...i?.unstable_sxConfig},c.unstable_sx=function(d){return Ln({sx:d,theme:this})},c}const Oh=Zs();function Ah(e=Oh){return ic(e)}const Ma=(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])})},Fh=(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)},Lh=(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 as(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return Fh(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,d=Lh(a,l);Object.assign(o,{[u]:d}),Ma(s,a,`var(${u})`,c),Ma(i,a,`var(${u}, ${d})`,c)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function Nh(e,t={}){const{getSelector:n=w,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:m}=as(c,t);let y=m;const p={},{[l]:h,...g}=i;if(Object.entries(g||{}).forEach(([b,P])=>{const{vars:C,css:I,varsWithDefaults:R}=as(P,t);y=Ge(y,R),p[b]={css:I,vars:C}}),h){const{css:b,vars:P,varsWithDefaults:C}=as(h,t);y=Ge(y,C),p[l]={css:b,vars:P}}function w(b,P){let C=o;if(o==="class"&&(C=".%s"),o==="data"&&(C="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(C=`[${o}="%s"]`),b){if(C==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${i[b]?.palette?.mode||b})`]:{":root":P}};if(C)return e.defaultColorScheme===b?`:root, ${C.replace("%s",String(b))}`:C.replace("%s",String(b))}return":root"}return{vars:y,generateThemeVars:()=>{let b={...u};return Object.entries(p).forEach(([,{vars:P}])=>{b=Ge(b,P)}),b},generateStyleSheets:()=>{const b=[],P=e.defaultColorScheme||"light";function C(A,O){Object.keys(O).length&&b.push(typeof A=="string"?{[A]:{...O}}:A)}C(n(void 0,{...d}),d);const{[P]:I,...R}=p;if(I){const{css:A}=I,O=i[P]?.palette?.mode,E=!r&&O?{colorScheme:O,...A}:{...A};C(n(P,{...E}),E)}return Object.entries(R).forEach(([A,{css:O}])=>{const E=i[A]?.palette?.mode,v=!r&&E?{colorScheme:E,...O}:{...O};C(n(A,{...v}),v)}),s&&b.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)"}}),b}}}function jh(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 Bh(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 Vh={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=Vh[t];return r?`${n}-${r}`:`${Kl.generate(e)}-${t}`}function _h(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function zh(e){return Math.round(e*1e5)/1e5}const Da={textTransform:"uppercase"},Ra='"Roboto", "Helvetica", "Arial", sans-serif';function Wh(e,t){const{fontFamily:n=Ra,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,m=r/14,y=u||(g=>`${g/l*m}rem`),p=(g,w,k,x,b)=>({fontFamily:n,fontWeight:g,fontSize:y(w),lineHeight:k,...n===Ra?{letterSpacing:`${zh(x/w)}em`}:{},...b,...c}),h={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(s,48,1.167,0),h4:p(s,34,1.235,.25),h5:p(s,24,1.334,0),h6:p(i,20,1.6,.15),subtitle1:p(s,16,1.75,.15),subtitle2:p(i,14,1.57,.1),body1:p(s,16,1.5,.15),body2:p(s,14,1.43,.15),button:p(i,14,1.75,.4,Da),caption:p(s,12,1.66,.4),overline:p(s,12,2.66,1,Da),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ge({htmlFontSize:l,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...h},d,{clone:!1})}const Hh=.2,Uh=.14,Yh=.12;function Ne(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Hh})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Uh})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Yh})`].join(",")}const Gh=["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)],qh={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)"},Kh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ia(e){return`${Math.round(e)}ms`}function Xh(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Qh(e){const t={...qh,...e.easing},n={...Kh,...e.duration};return{getAutoHeightDuration:Xh,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:Ia(i)} ${a} ${typeof l=="string"?l:Ia(l)}`).join(",")},...e,easing:t,duration:n}}const Zh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Jh(e){return kt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ac(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];!Jh(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 Ea(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const em=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 tm(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})`:ho(t,em(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Ea(n)})`:Lo(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Ea(n)})`:Fo(t,n)}})}function Ss(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 d=Qs({...s,colorSpace:c}),m=Zs(e);let y=Ge(m,{mixins:_h(m.breakpoints,r),palette:d,shadows:Gh.slice(),typography:Wh(d,a),transitions:Qh(i),zIndex:{...Zh}});return y=Ge(y,u),y=t.reduce((p,h)=>Ge(p,h),y),y.unstable_sxConfig={...Er,...u?.unstable_sxConfig},y.unstable_sx=function(h){return Ln({sx:h,theme:this})},y.toRuntimeSource=ac,tm(y),y}function ws(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 nm=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=ws(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function lc(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function cc(e){return e==="dark"?nm:[]}function rm(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,i=Qs({...t,colorSpace:o});return{palette:i,opacity:{...lc(i.mode),...n},overlays:r||cc(i.mode),...s}}function om(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 sm=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],im=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 sm(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 am(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function X(e,t,n){!e[t]&&n&&(e[t]=n)}function dr(e){return typeof e!="string"||!e.startsWith("hsl")?e:ec(e)}function Et(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ur(dr(e[t])))}function lm(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{}},cm=(e="mui")=>He.unstable_createGetCssVar(e);function ls(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=rm({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:i,...a}=Ss({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...lc(s),...n?.opacity},overlays:n?.overlays||cc(s)},a}function um(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=om,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],m=r||(n.light&&d!=="light"?"light":d),y=cm(s),{[m]:p,light:h,dark:g,...w}=n,k={...w};let x=p;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(At(21,m));let b;i&&(b="oklch");const P=ls(b,k,x,u,m);h&&!k.light&&ls(b,k,h,void 0,"light"),g&&!k.dark&&ls(b,k,g,void 0,"dark");let C={defaultColorScheme:m,...P,cssVarPrefix:s,colorSchemeSelector:l,rootSelector:c,getCssVar:y,colorSchemes:k,font:{...jh(P.typography),...P.font},spacing:lm(u.spacing)};Object.keys(C.colorSchemes).forEach(E=>{const v=C.colorSchemes[E].palette,$=M=>{const T=M.split("-"),F=T[1],L=T[2];return y(M,v[F][L])};v.mode==="light"&&(X(v.common,"background","#fff"),X(v.common,"onBackground","#000")),v.mode==="dark"&&(X(v.common,"background","#000"),X(v.common,"onBackground","#fff"));function D(M,T,F){if(b){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 ${b}, ${T}, ${L})`}return M(T,F)}if(am(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){X(v.Alert,"errorColor",D(Me,v.error.light,.6)),X(v.Alert,"infoColor",D(Me,v.info.light,.6)),X(v.Alert,"successColor",D(Me,v.success.light,.6)),X(v.Alert,"warningColor",D(Me,v.warning.light,.6)),X(v.Alert,"errorFilledBg",$("palette-error-main")),X(v.Alert,"infoFilledBg",$("palette-info-main")),X(v.Alert,"successFilledBg",$("palette-success-main")),X(v.Alert,"warningFilledBg",$("palette-warning-main")),X(v.Alert,"errorFilledColor",Ct(()=>v.getContrastText(v.error.main))),X(v.Alert,"infoFilledColor",Ct(()=>v.getContrastText(v.info.main))),X(v.Alert,"successFilledColor",Ct(()=>v.getContrastText(v.success.main))),X(v.Alert,"warningFilledColor",Ct(()=>v.getContrastText(v.warning.main))),X(v.Alert,"errorStandardBg",D(De,v.error.light,.9)),X(v.Alert,"infoStandardBg",D(De,v.info.light,.9)),X(v.Alert,"successStandardBg",D(De,v.success.light,.9)),X(v.Alert,"warningStandardBg",D(De,v.warning.light,.9)),X(v.Alert,"errorIconColor",$("palette-error-main")),X(v.Alert,"infoIconColor",$("palette-info-main")),X(v.Alert,"successIconColor",$("palette-success-main")),X(v.Alert,"warningIconColor",$("palette-warning-main")),X(v.AppBar,"defaultBg",$("palette-grey-100")),X(v.Avatar,"defaultBg",$("palette-grey-400")),X(v.Button,"inheritContainedBg",$("palette-grey-300")),X(v.Button,"inheritContainedHoverBg",$("palette-grey-A100")),X(v.Chip,"defaultBorder",$("palette-grey-400")),X(v.Chip,"defaultAvatarColor",$("palette-grey-700")),X(v.Chip,"defaultIconColor",$("palette-grey-700")),X(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),X(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),X(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),X(v.LinearProgress,"primaryBg",D(De,v.primary.main,.62)),X(v.LinearProgress,"secondaryBg",D(De,v.secondary.main,.62)),X(v.LinearProgress,"errorBg",D(De,v.error.main,.62)),X(v.LinearProgress,"infoBg",D(De,v.info.main,.62)),X(v.LinearProgress,"successBg",D(De,v.success.main,.62)),X(v.LinearProgress,"warningBg",D(De,v.warning.main,.62)),X(v.Skeleton,"bg",b?D(Jt,v.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),X(v.Slider,"primaryTrack",D(De,v.primary.main,.62)),X(v.Slider,"secondaryTrack",D(De,v.secondary.main,.62)),X(v.Slider,"errorTrack",D(De,v.error.main,.62)),X(v.Slider,"infoTrack",D(De,v.info.main,.62)),X(v.Slider,"successTrack",D(De,v.success.main,.62)),X(v.Slider,"warningTrack",D(De,v.warning.main,.62));const M=b?D(Me,v.background.default,.6825):Wr(v.background.default,.8);X(v.SnackbarContent,"bg",M),X(v.SnackbarContent,"color",Ct(()=>b?xs.text.primary:v.getContrastText(M))),X(v.SpeedDialAction,"fabHoverBg",Wr(v.background.paper,.15)),X(v.StepConnector,"border",$("palette-grey-400")),X(v.StepContent,"border",$("palette-grey-400")),X(v.Switch,"defaultColor",$("palette-common-white")),X(v.Switch,"defaultDisabledColor",$("palette-grey-100")),X(v.Switch,"primaryDisabledColor",D(De,v.primary.main,.62)),X(v.Switch,"secondaryDisabledColor",D(De,v.secondary.main,.62)),X(v.Switch,"errorDisabledColor",D(De,v.error.main,.62)),X(v.Switch,"infoDisabledColor",D(De,v.info.main,.62)),X(v.Switch,"successDisabledColor",D(De,v.success.main,.62)),X(v.Switch,"warningDisabledColor",D(De,v.warning.main,.62)),X(v.TableCell,"border",D(De,D(Jt,v.divider,1),.88)),X(v.Tooltip,"bg",D(Jt,v.grey[700],.92))}if(v.mode==="dark"){X(v.Alert,"errorColor",D(De,v.error.light,.6)),X(v.Alert,"infoColor",D(De,v.info.light,.6)),X(v.Alert,"successColor",D(De,v.success.light,.6)),X(v.Alert,"warningColor",D(De,v.warning.light,.6)),X(v.Alert,"errorFilledBg",$("palette-error-dark")),X(v.Alert,"infoFilledBg",$("palette-info-dark")),X(v.Alert,"successFilledBg",$("palette-success-dark")),X(v.Alert,"warningFilledBg",$("palette-warning-dark")),X(v.Alert,"errorFilledColor",Ct(()=>v.getContrastText(v.error.dark))),X(v.Alert,"infoFilledColor",Ct(()=>v.getContrastText(v.info.dark))),X(v.Alert,"successFilledColor",Ct(()=>v.getContrastText(v.success.dark))),X(v.Alert,"warningFilledColor",Ct(()=>v.getContrastText(v.warning.dark))),X(v.Alert,"errorStandardBg",D(Me,v.error.light,.9)),X(v.Alert,"infoStandardBg",D(Me,v.info.light,.9)),X(v.Alert,"successStandardBg",D(Me,v.success.light,.9)),X(v.Alert,"warningStandardBg",D(Me,v.warning.light,.9)),X(v.Alert,"errorIconColor",$("palette-error-main")),X(v.Alert,"infoIconColor",$("palette-info-main")),X(v.Alert,"successIconColor",$("palette-success-main")),X(v.Alert,"warningIconColor",$("palette-warning-main")),X(v.AppBar,"defaultBg",$("palette-grey-900")),X(v.AppBar,"darkBg",$("palette-background-paper")),X(v.AppBar,"darkColor",$("palette-text-primary")),X(v.Avatar,"defaultBg",$("palette-grey-600")),X(v.Button,"inheritContainedBg",$("palette-grey-800")),X(v.Button,"inheritContainedHoverBg",$("palette-grey-700")),X(v.Chip,"defaultBorder",$("palette-grey-700")),X(v.Chip,"defaultAvatarColor",$("palette-grey-300")),X(v.Chip,"defaultIconColor",$("palette-grey-300")),X(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),X(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),X(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),X(v.LinearProgress,"primaryBg",D(Me,v.primary.main,.5)),X(v.LinearProgress,"secondaryBg",D(Me,v.secondary.main,.5)),X(v.LinearProgress,"errorBg",D(Me,v.error.main,.5)),X(v.LinearProgress,"infoBg",D(Me,v.info.main,.5)),X(v.LinearProgress,"successBg",D(Me,v.success.main,.5)),X(v.LinearProgress,"warningBg",D(Me,v.warning.main,.5)),X(v.Skeleton,"bg",b?D(Jt,v.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),X(v.Slider,"primaryTrack",D(Me,v.primary.main,.5)),X(v.Slider,"secondaryTrack",D(Me,v.secondary.main,.5)),X(v.Slider,"errorTrack",D(Me,v.error.main,.5)),X(v.Slider,"infoTrack",D(Me,v.info.main,.5)),X(v.Slider,"successTrack",D(Me,v.success.main,.5)),X(v.Slider,"warningTrack",D(Me,v.warning.main,.5));const M=b?D(De,v.background.default,.985):Wr(v.background.default,.98);X(v.SnackbarContent,"bg",M),X(v.SnackbarContent,"color",Ct(()=>b?rc.text.primary:v.getContrastText(M))),X(v.SpeedDialAction,"fabHoverBg",Wr(v.background.paper,.15)),X(v.StepConnector,"border",$("palette-grey-600")),X(v.StepContent,"border",$("palette-grey-600")),X(v.Switch,"defaultColor",$("palette-grey-300")),X(v.Switch,"defaultDisabledColor",$("palette-grey-600")),X(v.Switch,"primaryDisabledColor",D(Me,v.primary.main,.55)),X(v.Switch,"secondaryDisabledColor",D(Me,v.secondary.main,.55)),X(v.Switch,"errorDisabledColor",D(Me,v.error.main,.55)),X(v.Switch,"infoDisabledColor",D(Me,v.info.main,.55)),X(v.Switch,"successDisabledColor",D(Me,v.success.main,.55)),X(v.Switch,"warningDisabledColor",D(Me,v.warning.main,.55)),X(v.TableCell,"border",D(Me,D(Jt,v.divider,1),.68)),X(v.Tooltip,"bg",D(Jt,v.grey[700],.92))}Et(v.background,"default"),Et(v.background,"paper"),Et(v.common,"background"),Et(v.common,"onBackground"),Et(v,"divider"),Object.keys(v).forEach(M=>{const T=v[M];M!=="tonalOffset"&&T&&typeof T=="object"&&(T.main&&X(v[M],"mainChannel",ur(dr(T.main))),T.light&&X(v[M],"lightChannel",ur(dr(T.light))),T.dark&&X(v[M],"darkChannel",ur(dr(T.dark))),T.contrastText&&X(v[M],"contrastTextChannel",ur(dr(T.contrastText))),M==="text"&&(Et(v[M],"primary"),Et(v[M],"secondary")),M==="action"&&(T.active&&Et(v[M],"active"),T.selected&&Et(v[M],"selected")))})}),C=t.reduce((E,v)=>Ge(E,v),C);const I={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:im(C),enableContrastVars:i},{vars:R,generateThemeVars:A,generateStyleSheets:O}=Nh(C,I);return C.vars=R,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([E,v])=>{C[E]=v}),C.generateThemeVars=A,C.generateStyleSheets=O,C.generateSpacing=function(){return He.createSpacing(u.spacing,qs(this))},C.getColorSchemeSelector=Bh(l),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=a,C.unstable_sxConfig={...Er,...u?.unstable_sxConfig},C.unstable_sx=function(v){return Ln({sx:v,theme:this})},C.toRuntimeSource=ac,C}function $a(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Qs({...n===!0?{}:n.palette,mode:t})})}function uc(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 Ss(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const d=Ss({...e,palette:u},...t);return d.defaultColorScheme=a,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},$a(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},$a(d,"light",c.light)),d}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),um({...i,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const No=uc(),Yn="$$material";function yn(){const e=He.useTheme(No);return e[Yn]||e}function dm(e){return f.jsx(He.GlobalStyles,{...e,defaultTheme:No,themeId:Yn})}function pm(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 fm=Zs();function cs(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 hm(e){return e?(t,n)=>n[e]:null}function mm(e,t,n){e.theme=bm(e.theme)?n:e.theme[t]||e.theme}function eo(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>eo(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 dc(e,r.variants,[o],n)}return r?.isProcessed?n?an(cn(r.style),n):r.style:n?an(cn(r),n):r}function dc(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 gm(e={}){const{themeId:t,defaultTheme:n=fm,rootShouldForwardProp:r=cs,slotShouldForwardProp:o=cs}=e;function s(a){mm(a,t,n)}return(a,l={})=>{xh(a,C=>C.filter(I=>I!==Ln));const{name:c,slot:u,skipVariantsResolver:d,skipSx:m,overridesResolver:y=hm(xm(u)),...p}=l,h=c&&c.startsWith("Mui")||u?"components":"custom",g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,w=m||!1;let k=cs;u==="Root"||u==="root"?k=r:u?k=o:vm(a)&&(k=void 0);const x=vh(a,{shouldForwardProp:k,label:ym(),...p}),b=C=>{if(C.__emotion_real===C)return C;if(typeof C=="function")return function(R){return eo(R,C,R.theme.modularCssLayers?h:void 0)};if(kt(C)){const I=pm(C);return function(A){return I.variants?eo(A,I,A.theme.modularCssLayers?h:void 0):A.theme.modularCssLayers?an(I.style,h):I.style}}return C},P=(...C)=>{const I=[],R=C.map(b),A=[];if(I.push(s),c&&y&&A.push(function($){const M=$.theme.components?.[c]?.styleOverrides;if(!M)return null;const T={};for(const F in M)T[F]=eo($,M[F],$.theme.modularCssLayers?"theme":void 0);return y($,T)}),c&&!g&&A.push(function($){const M=$.theme?.components?.[c]?.variants;return M?dc($,M,[],$.theme.modularCssLayers?"theme":void 0):null}),w||A.push(Ln),Array.isArray(R[0])){const v=R.shift(),$=new Array(I.length).fill(""),D=new Array(A.length).fill("");let M;M=[...$,...v,...D],M.raw=[...$,...v.raw,...D],I.unshift(M)}const O=[...I,...R,...A],E=x(...O);return a.muiName&&(E.muiName=a.muiName),E};return x.withConfig&&(P.withConfig=x.withConfig),P}}function ym(e,t){return void 0}function bm(e){for(const t in e)return!1;return!0}function vm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function xm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function pc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pt=e=>pc(e)&&e!=="classes",Z=gm({themeId:Yn,defaultTheme:No,rootShouldForwardProp:pt});function Sm(e){return function(n){return f.jsx(dm,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function wm(){return Jf}const Ee=He.unstable_memoTheme;function Ce(e){return kh(e)}function he(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ge(e,o,n)}),r}function Cm(e){return ge("MuiSvgIcon",e)}he("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Pm=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ie(t)}`,`fontSize${ie(n)}`]};return me(o,Cm,r)},km=Z("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ie(n.color)}`],t[`fontSize${ie(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}}]}))),go=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:d,viewBox:m="0 0 24 24",...y}=r,p=S.isValidElement(o)&&o.type==="svg",h={...r,color:i,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:m,hasSvgAsChild:p},g={};u||(g.viewBox=m);const w=Pm(h);return f.jsxs(km,{as:a,className:de(w.root,s),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...g,...y,...p&&o.props,ownerState:h,children:[p?o.props.children:o,d?f.jsx("title",{children:d}):null]})});go.muiName="SvgIcon";function $e(e,t){function n(r,o){return f.jsx(go,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=go.muiName,S.memo(S.forwardRef(n))}function fc(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 to(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 Cs(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 Tm(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function hc(e,t){if(!e)return t;function n(i,a){const l={};return Object.keys(a).forEach(c=>{Tm(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 Js=$e(f.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),mc=2,Mm=24,Dm=(e,t,n)=>Math.min(Math.max(e+t,1),Math.min(n,Mm)),Tt=16,Rm=Tt/2;function Im(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}const jo=80,gc=3,Em=2,$m=1,yc=16,bc=e=>e*jo+(e-1)*Tt,Om=(e,t=gc)=>Math.min(Math.max(Math.round((e+Tt)/(jo+Tt)),t),yc),vc=240;function Am(e,t,n=vc){const[r,o]=z.useState(0);return z.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]),xc(t,r,n)}function xc(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 Sc={query:5,text:2},wc=e=>e.some(t=>t.row!==void 0);function Fm(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 Lm=e=>e.row===void 0?1e6:e.row*1e3+(e.col??0);function Nm({tiles:e,columns:t,keyOf:n,renderTile:r,minTilePx:o,rowGapPx:s=Tt,defaultRowspan:i=a=>Sc[a.kind==="text"?"text":"query"]}){const a=wc(e),l=z.useRef(null),[c,u]=z.useState(0);z.useEffect(()=>{const m=l.current;if(o===void 0||!m||typeof ResizeObserver>"u")return;const y=new ResizeObserver(([p])=>u(p?.contentRect.width??0));return y.observe(m),()=>y.disconnect()},[o]);const d=o===void 0?1:xc(t,c,o);return f.jsx(H.Box,{ref:l,sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},columnGap:`${Tt}px`,rowGap:`${s}px`,...a&&{gridAutoRows:`${jo}px`}},children:e.map((m,y)=>f.jsx(H.Box,{sx:{display:"grid",minWidth:0,...!a&&m.rowspan!==void 0&&{height:bc(m.rowspan),alignSelf:"start"},...(a||m.rowspan!==void 0)&&{gridTemplateRows:"minmax(0, 1fr)"},...a?(()=>{const p=m.rowspan??i(m),h=Fm(m.colspan===void 0&&d>1?{...m,colspan:d}:m,t,p);return{gridRow:{xs:`span ${p}`,md:h.gridRow},gridColumn:{md:h.gridColumn},order:{xs:Lm(m),md:0}}})():{gridColumn:{md:Im(m.colspan===void 0&&d>1?{...m,colspan:d}:m,t)}}},children:r(m,y)},n(m,y)))})}function Bo(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 Cc=["bar_chart","line_chart","scatter_chart","shape_map","segment_map","big_value","sparkline","combo_chart"],ei=["line_chart","bar_chart","big_value","scatter_chart","shape_map","segment_map","combo_chart"],Pc=e=>ei.includes(e),Ps=new Set([...Cc,"viz"]);function $r(e){const t=e.trim();if(!/^#[ \t]/.test(t)||/[{=]/.test(t))return;const n=t.slice(1).trim().split(/[ \t]+/),r=[];let o;for(const s of n)if(s.startsWith("-")){if(o!==void 0)return;const i=s.slice(1);if(!Ps.has(i))return;r.push(i)}else{if(o!==void 0||!Ps.has(s))return;o=s}return{negated:r,...o!==void 0&&{pick:o}}}function ti(e){const t=e.trim();return!/^#[ \t]/.test(t)||$r(t)?!1:(Bo(t).match(/[A-Za-z_]+/g)??[]).some(r=>Ps.has(r))}function jm(){return["#",...ei.filter(e=>e!=="big_value").map(e=>`-${e}`)].join(" ")}function Bm(e,t){return["#",...ei.filter(r=>r!==e&&(t===void 0||t.includes(r)||e==="none"&&r==="big_value")).map(r=>`-${r}`),"-viz",...e==="none"?[]:[e]].join(" ")}function Vm(e){return e.pick!==void 0?Pc(e.pick)?e.pick:"custom":e.negated.includes("viz")?"none":"custom"}function _m(e){if(e.length===0)return"default";if(e.length>1)return"custom";const t=$r(e[0]);return t?Vm(t):"custom"}function zm(e){const t=e.filter(n=>$r(n));return e.some(ti)?"custom":t.length===0?void 0:_m(t)}const Wm=/^#[ \t]*theme\.palette\.series[ \t]*=[ \t]*\[[ \t]*"(#[0-9A-Fa-f]{6})"[ \t]*\][ \t]*$/;function Hm(e){return Wm.exec(e.trim())?.[1]?.toLowerCase()}const Um=e=>`# theme.palette.series=["${e.toLowerCase()}"]`,Ym="# -theme.palette.series",kc=e=>/^#[0-9A-Fa-f]{6}$/.test(e);function Gm(e){const t=e.trim().toLowerCase();if(kc(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 qm=e=>e.filter(t=>$r(t)||ti(t)),Vo=$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 Tc({open:e,onClose:t,title:n,description:r,maxWidth:o="sm",showClose:s=!1,actions:i,initialFocus:a,className:l,children:c}){const u=z.useId(),d=Se.usePublisherTheme().theme.ui;return f.jsxs(H.Dialog,{open:e,onClose:t,maxWidth:o,fullWidth:!0,"aria-labelledby":u,...l?{className:l}:{},PaperProps:{sx:{borderRadius:d.radius.dialog}},...a?{TransitionProps:{onEntered:()=>a.current?.focus()}}:{},children:[f.jsxs(H.DialogTitle,{id:u,sx:{px:3,pt:3,pb:r?.5:1,display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,fontSize:"1.25rem",fontWeight:"fontWeightMedium",letterSpacing:"-0.025em",lineHeight:1.2},children:[n,s&&f.jsx(H.IconButton,{"aria-label":"Close",onClick:t,size:"small",sx:{color:"text.secondary",mr:-1},children:f.jsx(Vo,{fontSize:"small"})})]}),f.jsxs(H.DialogContent,{sx:{px:3,pb:1,pt:1},children:[r&&f.jsx(H.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:r}),f.jsx(H.Stack,{sx:{gap:2,pt:r?0:1},children:c})]}),i&&f.jsx(H.DialogActions,{sx:{px:3,pb:3,pt:2,gap:1},children:i})]})}function Km({open:e,canSave:t,onKeepEditing:n,onDiscard:r,onSaveAndExit:o}){return f.jsx(Tc,{open:e,onClose:n,title:"Leave with unsaved changes?",description:t&&o?"Your edits have not been saved. Save them, or leave without them.":"Leaving now discards your unsaved edits.",actions:f.jsxs(f.Fragment,{children:[f.jsx(H.Button,{onClick:n,children:"Keep editing"}),f.jsx(H.Button,{color:"error",onClick:r,children:"Discard changes"}),t&&o&&f.jsx(H.Button,{variant:"contained",onClick:o,children:"Save and exit"})]}),children:null})}const Mc=$e(f.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}));function Xm({label:e,onClick:t,disabled:n}){return f.jsx(H.Button,{variant:"contained",color:"primary",startIcon:f.jsx(Js,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function Qm({label:e,icon:t,onClick:n,disabled:r,disabledReason:o,ariaLabel:s,ariaHasPopup:i}){const a=f.jsx("span",{children:f.jsx(H.Button,{variant:"outlined",startIcon:t,onClick:n,disabled:r,"aria-label":s,"aria-haspopup":i,sx:{whiteSpace:"nowrap"},children:e})});return r&&o?f.jsx(H.Tooltip,{title:o,children:a}):a}const Dc=$e(f.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),Or="120ms",Ar={"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},Zm=()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches?"auto":"smooth",Rc={"@media (hover: none)":{opacity:1}},Jm=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 Ic="72ch",Gn=e=>e.replace(/^1px solid /,""),ni=(e,t)=>`color-mix(in srgb, ${Gn(e)}, ${t} 25%)`,_o={line_chart:"A line chart",bar_chart:"A bar chart",scatter_chart:"A scatter chart",combo_chart:"A bar and line chart"},eg={line:"line_chart",bar:"bar_chart",scatter:"scatter_chart",combo:"combo_chart"},tg=new Set(["x","y","y2","series"]);function ks(e){const t=e.trim();return!t.startsWith("#")||t.startsWith("#(")||t.startsWith('#"')?[]:Bo(t.slice(1)).split(/[\s{}[\],]+/).filter(Boolean)}function Ec(e){const t=[];let n;for(const r of e)for(const o of ks(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=eg[o.slice(4)]??o;else if(_o[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 ng(e){const t=Ec(e);return t!==void 0&&_o[t]!==void 0}function $c(e,{groupBys:t,totals:n}){if(_o[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 rg(e){const t=e.trim();if(!t.startsWith("#(malloy)"))return!1;const n=Bo(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 Ts=e=>e!==void 0&&(e.kind==="measure"||(e.annotations??[]).some(t=>rg(t?.value??""))),og=e=>e.kind==="join"||e.type?.kind==="array_type";function Oc(e){const t=e.filter(Ts).length;return{groupBys:e.filter(r=>!Ts(r)&&!og(r)).length,totals:t}}const Oa=e=>tg.has(e.split("=")[0]);function sg(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=Ec(r),s=o&&_o[o];if(!o||!s||r.some(c=>ks(c).some(Oa))||n.some(c=>(c.annotations??[]).some(u=>ks(u.value??"").some(Oa))))return;const{groupBys:a,totals:l}=Oc(n);switch($c(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 ig=$e(f.jsx("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})),ag=$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"})),lg=$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"})),cg=$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")]),Ac=$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"})),ug=$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"})),dg=$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 pg(e){const t=e.replace(/_+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function Fc({chart:e}){const t={fontSize:16};switch(e){case"bar_chart":case"combo_chart":return f.jsx(ig,{sx:t});case"line_chart":case"sparkline":return f.jsx(ug,{sx:t});case"scatter_chart":return f.jsx(cg,{sx:t});case"shape_map":case"segment_map":return f.jsx(ag,{sx:t});case"big_value":return f.jsx(lg,{sx:t});default:return f.jsx(dg,{sx:t})}}function fg({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(),d=u.ui,m=z.useId(),y=t.trim().toLowerCase(),p=z.useMemo(()=>e.map(P=>({...P,entries:P.entries.filter(C=>y===""||[C.name,C.title,P.label,P.detail??""].join(" ").toLowerCase().includes(y))})).filter(P=>P.entries.length>0),[e,y]),h=p.flatMap(P=>P.entries),g=z.useMemo(()=>new Map(e.flatMap(P=>P.entries).map((P,C)=>[P.key,`${m}-${C}`])),[e,m]),w=P=>g.get(P)??`${m}-none`,k=h.some(P=>P.key===r)?r:void 0,x=P=>{o(P),window.requestAnimationFrame(()=>window.document.getElementById(w(P))?.scrollIntoView({block:"nearest"}))},b=P=>{if(h.length===0)return;const C=h.findIndex(R=>R.key===k),I=C===-1?P===1?0:h.length-1:Math.min(h.length-1,Math.max(0,C+P));x(h[I].key)};return f.jsxs(H.Box,{sx:{display:"flex",flexDirection:"column",minHeight:0,flex:1},children:[f.jsx(H.Box,{sx:{p:1.5,pb:1},children:f.jsx(H.TextField,{size:"small",fullWidth:!0,inputRef:i,placeholder:"Search the model",value:t,disabled:c,onChange:P=>n(P.target.value),onKeyDown:P=>{if(P.key==="ArrowDown")P.preventDefault(),b(1);else if(P.key==="ArrowUp")P.preventDefault(),b(-1);else if(P.key==="Enter"){const C=k??h[0]?.key;if(C===void 0)return;P.preventDefault(),s(C)}},inputProps:{"aria-label":"Search the model",role:"combobox","aria-controls":m,"aria-expanded":!0,...k!==void 0?{"aria-activedescendant":w(k)}:{}},InputProps:{startAdornment:f.jsx(H.InputAdornment,{position:"start",children:f.jsx(Ac,{sx:{fontSize:18,color:"text.secondary"}})})}})}),f.jsxs(H.Box,{id:m,role:"listbox","aria-label":"From the model",sx:{overflowY:"auto",flex:1,minHeight:0,pb:1},children:[e.length===0&&a,e.length>0&&p.length===0&&f.jsxs(H.Typography,{variant:"body2",sx:{color:u.tileTitle,px:2,py:1},children:["No view matches “",t.trim(),"”."]}),p.map(P=>f.jsxs(H.Box,{role:"group","aria-label":P.ariaLabel??P.label,children:[f.jsxs(H.Box,{"aria-hidden":!0,sx:{px:2,pt:1.25,pb:.5,...d.type.caption,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[f.jsx(H.Box,{component:"span",sx:{...d.type.label,fontSize:"0.92em",letterSpacing:"0.04em",textTransform:"uppercase"},children:P.label.replace(/_+/g," ")}),P.detail&&` · ${P.detail}`]}),P.entries.map(C=>{const I=C.key===r;return f.jsxs(H.Box,{id:w(C.key),role:"option","aria-selected":I,"aria-label":`${C.title} (${C.name})`,onClick:()=>{c||x(C.key)},onDoubleClick:()=>{c||s(C.key)},sx:R=>({display:"flex",alignItems:"center",gap:1.25,mx:.75,px:1.25,py:.75,borderRadius:d.radius.control,cursor:c?"default":"pointer",bgcolor:I?`color-mix(in srgb, ${u.accent} 9%, ${R.palette.background.paper})`:"transparent","&:hover":I||c?{}:{bgcolor:R.palette.action.hover}}),children:[f.jsx(H.Box,{"aria-hidden":!0,sx:R=>({width:26,height:26,flex:"none",borderRadius:d.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(Fc,{chart:C.chart})}),f.jsxs(H.Box,{sx:{minWidth:0},children:[f.jsx(H.Box,{sx:{...d.type.control,fontWeight:I?d.type.label.fontWeight:400,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:C.title}),f.jsx(H.Box,{sx:{...d.type.code,color:"text.secondary"},children:C.name})]})]},C.key)})]},P.key)),y===""&&l]})]})}const hg=new Set(["bar","line","chart","scatter_chart","combo"]),mg=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function gg(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":hg.has(e)?"container":"content"}function yg(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&mg.has(e)}function bg(e){return e==="dashboard"?3:2}function Lc(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function vg(e,t){const n=Lc(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const ri=400,xg=700,Sg=700;function wg({renderAs:e,maxHeight:t,tableMaxHeight:n}){return e!=="table"||n===void 0?t:t===void 0?n:Math.min(t,n)}const Cg=600,Pg=800,Nc=400,jc=2e3;function Bc(e,t){const n=t??jc;return e===void 0?n:Math.min(e,n)}function Ms({sizing:e,contentHeight:t,maxHeight:n,fillHeight:r,firstPaintHeight:o}){if(e==="container"){const i=n??Nc;return r!==void 0&&r>0?Math.min(i,r):i}if(t===void 0||t<=0)return Bc(n,o);const s=n===void 0?t:Math.min(n,t);return r===void 0?s:Math.max(s,r)}const Vc="data-publisher-tight",_c="publisher-result-scroller";function zc(e,t,n=1){return e===1&&t<=2&&n===1?void 0:e}function kg(e,t,n,r=1){const o={...e},s=zc(t,n,r);return s===void 0?delete o.colspan:o.colspan=s,o}function Tg(e,t){if(e==="linear")return{layout:"linear",columns:1,widths:!1,insertBetween:!0,tileMaxHeight:void 0,tableMaxHeight:Sg};const n=t??mc;return{layout:"grid",columns:n,widths:n>1,insertBetween:!1,tileMaxHeight:ri,tableMaxHeight:void 0}}const Wc="document.malloy",Hc=e=>e.slice(0,e.lastIndexOf("/")+1),oi=(e,t)=>new URL(e,`https://malloy.invalid/${Hc(t)}`).pathname.slice(1);function Uc(e,t){const n=Hc(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 Yc(e,t,n,r=Wc,o=[n]){return e.sources.some(s=>s.base===t)?!0:e.imports.some(s=>s.kind==="names"?s.names.includes(t):o.includes(oi(s.from,r)))}function Mg(e,t,n,r=Wc,o=[n]){const{imports:s}=e;if(Yc(e,t,n,r,o))return s;const i=s.findIndex(a=>a.kind==="names"&&o.includes(oi(a.from,r)));return i<0?[...s,{kind:"names",names:[t],from:Uc(n,r)}]:s.map((a,l)=>l===i&&a.kind==="names"?{...a,names:[...a.names,t]}:a)}const Dg=$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"})),Rg=$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"})),Ig=600,Aa=()=>typeof IntersectionObserver>"u";function Eg(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 $g(e=Ig){const[t,n]=z.useState(Aa),r=z.useRef(t),o=z.useRef(null),s=z.useCallback(i=>{if(o.current?.disconnect(),o.current=null,!i||r.current||Aa())return;const a=i.getBoundingClientRect(),l=Eg(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(d=>{d.some(m=>m.isIntersecting)&&(r.current=!0,u.disconnect(),n(!0))},{root:l,rootMargin:`${e}px 0px`});u.observe(i),o.current=u},[e]);return z.useEffect(()=>()=>o.current?.disconnect(),[]),z.useEffect(()=>{if(t||typeof window>"u")return;const i=()=>{r.current=!0,o.current?.disconnect(),n(!0)};return window.addEventListener("beforeprint",i),()=>window.removeEventListener("beforeprint",i)},[t]),[s,t]}function Gc({summary:e,detail:t}){return f.jsxs(H.Alert,{severity:"error",sx:{"& .MuiAlert-message":{minWidth:0,flex:1}},children:[e!==void 0&&f.jsx(H.Box,{sx:{mb:.5},children:e}),f.jsx(H.Box,{component:"pre",sx:{m:0,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:Se.MONO_FONT_FAMILY,fontSize:"0.8125rem",color:"text.secondary"},children:t})]})}function qc({error:e,context:t}){const n=e.data?.message||"Unknown error";return f.jsx(Gc,{summary:t,detail:n})}function Og(e){const t=Ag(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 Ag(e){return e.type?.startsWith("filter<")?e.default?.match(/^f(['"])([\s\S]*)\1$/)?.[2]??e.default:e.default}function si(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/[\u0000-\u001f]/g,t=>Fg[t]??Lg(t))}const Fg={"\n":"\\n","\r":"\\r"," ":"\\t","\b":"\\b","\f":"\\f"},Lg=e=>`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`;function Ng(e,t){if(e==null||e==="")return;const n=o=>`'${si(o)}'`;switch(t===void 0?jg(e):t.startsWith("filter<")?"filter":t){case"filter":return Kc(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=Fa(e);return o&&`@${o}`}case"timestamp":{const o=Fa(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 jg(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 Kc(e){let t="";for(let n=0;n<e.length;n++){const r=e[n];r==="\\"?t+=n+1<e.length?r+e[++n]:"\\\\":t+=r==="'"?"\\'":r}return`f'${t}'`}function Fa(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 Bg=/^\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?$/;function Vg(e,t=!1){return e==null?"null":e instanceof Date?`@${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:t&&typeof e=="string"&&Bg.test(e)?`@${e}`:typeof e=="string"?`'${si(e)}'`:typeof e=="number"?String(e):e?"true":"false"}const Nn="malloy-publisher.report-draft:",jn={storage:()=>window.localStorage};function _g(e){const{server:t,environmentName:n,packageName:r,versionId:o,path:s}=e;return`${t}|${n}/${r}@${o??""}/${s}`}function zg(e){if(typeof e=="string"){no(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=jn.storage(),l=[];for(let c=0;c<a.length;c++){const u=a.key(c);if(!u?.startsWith(Nn))continue;const d=u.slice(Nn.length),m=d.indexOf("|");if(m===-1)continue;const[y,p]=[d.slice(0,m),d.slice(m+1)];if(t!==void 0&&y!==t||!p.startsWith(s))continue;const h=p.slice(s.length);(i!==void 0?h!==i:h.slice(h.indexOf("/")+1)!==o)||l.push(u)}for(const c of l)a.removeItem(c)}catch{}}function Wg(){try{const e=`${Nn}probe`;return jn.storage().setItem(e,"1"),jn.storage().removeItem(e),!0}catch{return!1}}function Hg(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 Ug(e){try{const t=jn.storage().getItem(Nn+e);if(!t)return;const n=JSON.parse(t);return n?.v===1&&n.document?n:void 0}catch{return}}function Yg(e,t){try{return jn.storage().setItem(Nn+e,JSON.stringify(t)),!0}catch{return!1}}function no(e){try{jn.storage().removeItem(Nn+e)}catch{}}function us(e,t){const n=e;for(const r of Object.keys(n))delete n[r];Object.assign(n,structuredClone(t))}function Gg(e,t,n){const[r,o]=z.useState(),[s,i]=z.useState(),[a,l]=z.useState(!1),c=z.useRef(void 0),u=z.useRef(void 0),d=z.useRef(!1),m=Hg(n),y=z.useRef(t);y.current=t;const p=z.useRef(!1);z.useEffect(()=>{if(e===void 0||p.current)return;p.current=!0;const b=Ug(e);if(!b)return;const P=y.current;if(JSON.stringify(b.document)===JSON.stringify(P.document)){no(e);return}if(b.base!==m){c.current=b,o({savedAt:b.savedAt,stale:!0,pending:!0});return}P.update(C=>us(C,b.document)),u.current=JSON.stringify(b.document),d.current=!0,o({savedAt:b.savedAt,stale:!1,pending:!1})},[e]);const{document:h,dirty:g}=t;z.useEffect(()=>{if(e===void 0||!p.current||c.current&&!g)return;if(c.current&&(c.current=void 0,o(void 0)),u.current!==void 0){const P=JSON.stringify(h);d.current?P===u.current&&(d.current=!1):P!==u.current&&(u.current=void 0,o(void 0))}if(!g){no(e),i(void 0),l(!1);return}const b=Date.now();Yg(e,{v:1,document:h,base:m,savedAt:b})?(i(b),l(!1)):(i(void 0),l(!0))},[e,h,g,m]);const w=z.useCallback(()=>{const b=c.current;b&&(c.current=void 0,y.current.update(P=>us(P,b.document)),u.current=JSON.stringify(b.document),d.current=!0,o(P=>P&&{...P,pending:!1}))},[]),k=z.useCallback(()=>{c.current||(u.current=void 0,o(void 0))},[]),x=z.useCallback(()=>{if(c.current&&e!==void 0){c.current=void 0,no(e),o(void 0);return}const b=y.current;b.update(P=>us(P,b.saved)),u.current=void 0,o(void 0)},[e]);return{keptAt:s,keeping:!a,restored:r,dismissRestored:k,discard:x,restoreOffered:w}}const Xc=(e,t)=>({...t,...e}),Qc={emit:()=>{},listening:!1};function yo(e,t){return t?{listening:!0,emit:n=>{try{t(Xc(n,e))}catch{}}}:Qc}function qg(e,t){const n=z.useRef(t);n.current=t;const r=t!==void 0,{path:o,layout:s}=e;return z.useMemo(()=>yo({path:o,...s?{layout:s}:{}},r?i=>n.current?.(i):void 0),[o,s,r])}const Zc=z.createContext(Qc),ii=()=>z.useContext(Zc);function Jc(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 ro={exports:{}},Kg=ro.exports,La;function Xg(){return La||(La=1,(function(e,t){(function(n,r){e.exports=r()})(Kg,(function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",u="week",d="month",m="quarter",y="year",p="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var M=["th","st","nd","rd"],T=D%100;return"["+D+(M[(T-20)%10]||M[T]||M[0])+"]"}},x=function(D,M,T){var F=String(D);return!F||F.length>=M?D:""+Array(M+1-F.length).join(T)+D},b={s:x,z:function(D){var M=-D.utcOffset(),T=Math.abs(M),F=Math.floor(T/60),L=T%60;return(M<=0?"+":"-")+x(F,2,"0")+":"+x(L,2,"0")},m:function D(M,T){if(M.date()<T.date())return-D(T,M);var F=12*(T.year()-M.year())+(T.month()-M.month()),L=M.clone().add(F,d),N=T-L<0,W=M.clone().add(F+(N?-1:1),d);return+(-(F+(T-L)/(N?L-W:W-L))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:d,y,w:u,d:c,D:p,h:l,m:a,s:i,ms:s,Q:m}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},P="en",C={};C[P]=k;var I="$isDayjsObject",R=function(D){return D instanceof v||!(!D||!D[I])},A=function D(M,T,F){var L;if(!M)return P;if(typeof M=="string"){var N=M.toLowerCase();C[N]&&(L=N),T&&(C[N]=T,L=N);var W=M.split("-");if(!L&&W.length>1)return D(W[0])}else{var J=M.name;C[J]=M,L=J}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 v(T)},E=b;E.l=A,E.i=R,E.w=function(D,M){return O(D,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var v=(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(E.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var W=L.match(g);if(W){var J=W[2]-1||0,re=(W[7]||"0").substring(0,3);return N?new Date(Date.UTC(W[1],J,W[3]||1,W[4]||0,W[5]||0,W[6]||0,re)):new Date(W[1],J,W[3]||1,W[4]||0,W[5]||0,W[6]||0,re)}}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 E},M.isValid=function(){return this.$d.toString()!==h},M.isSame=function(T,F){var L=O(T);return this.startOf(F)<=L&&L<=this.endOf(F)},M.isAfter=function(T,F){return O(T)<this.startOf(F)},M.isBefore=function(T,F){return this.endOf(F)<O(T)},M.$g=function(T,F,L){return E.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=!!E.u(F)||F,W=E.p(T),J=function(B,K){var ne=E.w(L.$u?Date.UTC(L.$y,K,B):new Date(L.$y,K,B),L);return N?ne:ne.endOf(c)},re=function(B,K){return E.w(L.toDate()[B].apply(L.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(K)),L)},ae=this.$W,le=this.$M,Y=this.$D,G="set"+(this.$u?"UTC":"");switch(W){case y:return N?J(1,0):J(31,11);case d:return N?J(1,le):J(0,le+1);case u:var Q=this.$locale().weekStart||0,_=(ae<Q?ae+7:ae)-Q;return J(N?Y-_:Y+(6-_),le);case c:case p:return re(G+"Hours",0);case l:return re(G+"Minutes",1);case a:return re(G+"Seconds",2);case i:return re(G+"Milliseconds",3);default:return this.clone()}},M.endOf=function(T){return this.startOf(T,!1)},M.$set=function(T,F){var L,N=E.p(T),W="set"+(this.$u?"UTC":""),J=(L={},L[c]=W+"Date",L[p]=W+"Date",L[d]=W+"Month",L[y]=W+"FullYear",L[l]=W+"Hours",L[a]=W+"Minutes",L[i]=W+"Seconds",L[s]=W+"Milliseconds",L)[N],re=N===c?this.$D+(F-this.$W):F;if(N===d||N===y){var ae=this.clone().set(p,1);ae.$d[J](re),ae.init(),this.$d=ae.set(p,Math.min(this.$D,ae.daysInMonth())).$d}else J&&this.$d[J](re);return this.init(),this},M.set=function(T,F){return this.clone().$set(T,F)},M.get=function(T){return this[E.p(T)]()},M.add=function(T,F){var L,N=this;T=Number(T);var W=E.p(F),J=function(le){var Y=O(N);return E.w(Y.date(Y.date()+Math.round(le*T)),N)};if(W===d)return this.set(d,this.$M+T);if(W===y)return this.set(y,this.$y+T);if(W===c)return J(1);if(W===u)return J(7);var re=(L={},L[a]=r,L[l]=o,L[i]=n,L)[W]||1,ae=this.$d.getTime()+T*re;return E.w(ae,this)},M.subtract=function(T,F){return this.add(-1*T,F)},M.format=function(T){var F=this,L=this.$locale();if(!this.isValid())return L.invalidDate||h;var N=T||"YYYY-MM-DDTHH:mm:ssZ",W=E.z(this),J=this.$H,re=this.$m,ae=this.$M,le=L.weekdays,Y=L.months,G=L.meridiem,Q=function(K,ne,ee,V){return K&&(K[ne]||K(F,N))||ee[ne].slice(0,V)},_=function(K){return E.s(J%12||12,K,"0")},B=G||function(K,ne,ee){var V=K<12?"AM":"PM";return ee?V.toLowerCase():V};return N.replace(w,(function(K,ne){return ne||(function(ee){switch(ee){case"YY":return String(F.$y).slice(-2);case"YYYY":return E.s(F.$y,4,"0");case"M":return ae+1;case"MM":return E.s(ae+1,2,"0");case"MMM":return Q(L.monthsShort,ae,Y,3);case"MMMM":return Q(Y,ae);case"D":return F.$D;case"DD":return E.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return Q(L.weekdaysMin,F.$W,le,2);case"ddd":return Q(L.weekdaysShort,F.$W,le,3);case"dddd":return le[F.$W];case"H":return String(J);case"HH":return E.s(J,2,"0");case"h":return _(1);case"hh":return _(2);case"a":return B(J,re,!0);case"A":return B(J,re,!1);case"m":return String(re);case"mm":return E.s(re,2,"0");case"s":return String(F.$s);case"ss":return E.s(F.$s,2,"0");case"SSS":return E.s(F.$ms,3,"0");case"Z":return W}return null})(K)||W.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(T,F,L){var N,W=this,J=E.p(F),re=O(T),ae=(re.utcOffset()-this.utcOffset())*r,le=this-re,Y=function(){return E.m(W,re)};switch(J){case y:N=Y()/12;break;case d:N=Y();break;case m:N=Y()/3;break;case u:N=(le-ae)/6048e5;break;case c:N=(le-ae)/864e5;break;case l:N=le/o;break;case a:N=le/r;break;case i:N=le/n;break;default:N=le}return L?N:E.a(N)},M.daysInMonth=function(){return this.endOf(d).$D},M.$locale=function(){return C[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 E.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},D})(),$=v.prototype;return O.prototype=$,[["$ms",s],["$s",i],["$m",a],["$H",l],["$W",c],["$M",d],["$y",y],["$D",p]].forEach((function(D){$[D[1]]=function(M){return this.$g(M,D[0],D[1])}})),O.extend=function(D,M){return D.$i||(D(M,v,O),D.$i=!0),O},O.locale=A,O.isDayjs=R,O.unix=function(D){return O(1e3*D)},O.en=C[P],O.Ls=C,O.p={},O}))})(ro)),ro.exports}var Qg=Xg();const Re=jt(Qg);var oo={exports:{}},Zg=oo.exports,Na;function Jg(){return Na||(Na=1,(function(e,t){(function(n,r){e.exports=r()})(Zg,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(s,i,a){var l=i.prototype;a.utc=function(h){var g={date:h,utc:!0,args:arguments};return new i(g)},l.utc=function(h){var g=a(this.toDate(),{locale:this.$L,utc:!0});return h?g.add(this.utcOffset(),n):g},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),c.call(this,h)};var u=l.init;l.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else u.call(this)};var d=l.utcOffset;l.utcOffset=function(h,g){var w=this.$utils().u;if(w(h))return this.$u?0:w(this.$offset)?d.call(this):this.$offset;if(typeof h=="string"&&(h=(function(P){P===void 0&&(P="");var C=P.match(r);if(!C)return null;var I=(""+C[0]).match(o)||["-",0,0],R=I[0],A=60*+I[1]+ +I[2];return A===0?0:R==="+"?A:-A})(h),h===null))return this;var k=Math.abs(h)<=16?60*h:h;if(k===0)return this.utc(g);var x=this.clone();if(g)return x.$offset=k,x.$u=!1,x;var b=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(x=this.local().add(k+b,n)).$offset=k,x.$x.$localOffset=b,x};var m=l.format;l.format=function(h){var g=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,g)},l.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var y=l.toDate;l.toDate=function(h){return h==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var p=l.diff;l.diff=function(h,g,w){if(h&&this.$u===h.$u)return p.call(this,h,g,w);var k=this.local(),x=a(h).local();return p.call(k,x,g,w)}}}))})(oo)),oo.exports}var ey=Jg();const ai=jt(ey);Re.extend(ai);function Gt(e){return(e??"").startsWith("filter<")}function ty(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 eu(e){if(e.trim()==="")return[];const{parsed:t}=tt.StringFilterExpression.parse(e);return nu(t)?t.values:[e]}function tu(e){return e===void 0||e.trim()===""?!0:nu(tt.StringFilterExpression.parse(e).parsed)}function nu(e){return e!==null&&tt.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function ny(e){return tt.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function ru(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 ry(e,t){return tt.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function ou(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 Cr=[{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 oy(e){const t=Cr.find(n=>n.key===e);return t?tt.TemporalFilterExpression.unparse(t.clause):void 0}function su(e){const t=e.trim();if(t==="")return;const{parsed:n}=tt.TemporalFilterExpression.parse(t);if(n!==null)for(const r of Cr){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 sy=/^\d{4}-\d{2}-\d{2}$/;function iy(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 iu(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=ja(n.fromMoment),o=ja(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 ja(e){return e.moment==="literal"&&sy.test(e.literal)?e.literal:void 0}const ay="self";function au(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(Ba)).filter(Ba):[]}function lu(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function cu(e){return e.tag?.tag("drill")?.text("given")??e.name}function zo(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 uu(e){return e instanceof Date?zo(e)??"":String(e)}function ly(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=au(t);if(n.length===0)return;const r=zo(e.value);if(r!==void 0)return{to:n,given:cu(t),value:r,rawValue:e.value,label:uu(e.value)}}function Ba(e){return typeof e=="string"&&e!==""}function du(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:zo(e)}function pu({declaredTypes:e,setGiven:t,documentName:n}){const r=ii(),o=z.useMemo(()=>{const l=new Map;for(const c of e.keys())l.has(c.toLowerCase())||l.set(c.toLowerCase(),c);return l},[e]),s=z.useCallback(l=>e.has(l)?l:o.get(l.toLowerCase()),[e,o]),i=z.useCallback(l=>s(l)!==void 0,[s]),a=z.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 d=e.get(u),m=du(c,d);if(m===void 0){r.emit({type:"report.drill",to:"self",outcome:"malformed"}),r.listening||console.warn(`Drill declined: ${JSON.stringify(c)} cannot be a value for given "${u}"`+(d?` of type ${d}`:""));return}t(u,m),r.emit({type:"report.drill",to:"self",outcome:"resolved"})},[e,n,s,t,r]);return{resolveGiven:s,canSelf:i,onSelf:a}}function fu(e,t){if(e!=null){if(e instanceof Date)return ci(e,t);if(!Array.isArray(e))return String(e)}}function cy(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 uy=/^(\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 hu(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 dy(e,t=!1){const n=hu(e);if(n==="")return;const r=uy.exec(n);if(!r)return;const[,o,s,i,a,l,c,u,d]=r,m={year:Number(o),month:Number(s),day:Number(i),hour:Number(a??0),minute:Number(l??0),second:Number(c??0),milli:Number((u??"").slice(0,3).padEnd(3,"0")||0)},y=Date.UTC(m.year,m.month-1,m.day,m.hour,m.minute,m.second,m.milli),p=new Date(y);if(!(p.getUTCFullYear()===m.year&&p.getUTCMonth()===m.month-1&&p.getUTCDate()===m.day&&p.getUTCHours()===m.hour&&p.getUTCMinutes()===m.minute&&p.getUTCSeconds()===m.second)||d!==void 0&&a===void 0)return;const g=py(d);if(g===void 0)return;const w=new Date(y-g*6e4);if(!(t&&d!==void 0&&w.getUTCDate()!==m.day))return w}function py(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 mu(e){return!fy.has(e??"")}const fy=new Set(["boolean","number","date","timestamp","timestamptz"]);function gu(e,t){if(t===""&&!mu(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=hu(t);return dy(n,e==="date")??n}default:return t}}function so(e,t){const n={};for(const[r,o]of e){const s=fu(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 Va(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,gu(t.get(r),o));return n}function ds(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 _a(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function hy(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}const my=1500;function Hr(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function yu({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:s}){const i=z.useMemo(()=>Va(t??{},e),[e,JSON.stringify(t)]),a=z.useRef(null),l=z.useRef([]),c=z.useRef(0),u=z.useRef({documentKey:o,params:n}),d=T=>T!==null&&hy(n??{},T,e),m=Date.now();l.current=l.current.filter(T=>m-T.at<my);const p=(a.current===null?l.current.map(T=>T.params):[...l.current.map(T=>T.params),a.current]).findIndex(d);u.current.documentKey!==o&&(l.current=[]),(u.current.documentKey!==o||!Hr(n??{},u.current.params??{})&&p<0)&&(u.current={documentKey:o,params:n}),p>0&&(l.current=l.current.slice(p));const h=u.current.params,g=JSON.stringify(t),w=JSON.stringify(h),k=z.useMemo(()=>Va({...t??{},...h??{}},e),[e,g,w]),x=z.useMemo(()=>JSON.stringify([o??null,_a(t),_a(h)]),[o,g,w]),[b,P]=z.useState(null),C=b?.key===x?b:null;z.useEffect(()=>{b!==null&&b.key!==x&&P(null)},[b,x]);const I=z.useMemo(()=>ds(C?.draft??k,e),[C,k,e]),R=z.useMemo(()=>ds(C?.applied??k,e),[C,k,e]),A=z.useCallback(T=>T?.key===x?T:{key:x,draft:k,applied:k},[x,k]),O=z.useMemo(()=>so(R,e),[R,e]);a.current===null&&(a.current=O,c.current=Date.now()),z.useEffect(()=>{r&&(Hr(a.current??{},O)||(a.current!==null&&(l.current=[...l.current.slice(-31),{params:a.current,at:c.current}]),a.current=O,c.current=Date.now(),r(O)))},[O,r]);const E=z.useCallback((T,F)=>{P(L=>{const N=A(L),W=new Map(N.draft);return F===null?W.delete(T):W.set(T,F),{key:N.key,draft:W,applied:s?W:N.applied}})},[s,A]),v=z.useCallback(()=>{P(T=>({key:A(T).key,draft:i,applied:i}))},[A,i]),$=z.useCallback(()=>{P(T=>{const F=A(T);return{key:F.key,draft:F.draft,applied:F.draft}})},[A]),D=z.useMemo(()=>{if(s)return!1;if(I.size!==R.size)return!0;for(const[T,F]of I){const L=R.get(T);if(F instanceof Date&&L instanceof Date){if(F.getTime()!==L.getTime())return!0}else if(Array.isArray(F)&&Array.isArray(L)){if(String(F)!==String(L))return!0}else if(F!==L)return!0}return!1},[s,I,R]),M=z.useMemo(()=>{const T=so(ds(i,e),e);return Hr(so(I,e),T)&&Hr(O,T)},[i,I,O,e]);return{draft:I,applied:R,setGiven:E,reset:v,apply:$,pending:D,atStart:M}}const bu="You don't have access to this data";function gy(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 yy(e){return e?.status===403}function pn(e){return`\`${e.replace(/\\/g,"\\\\").replace(/`/g,"\\`")}\``}function by(e,t){return`run: ${pn(e)} -> ${pn(t)}`}function vy(e){return`run: ${pn(e)}`}function xy(e,t,n){const r=pn(t);return[`run: ${pn(e)} -> {`,` where: ${r} is not null`,` group_by: ${r}`," aggregate: `__sample_rows` is count()"," order_by: `__sample_rows` desc",` limit: ${n}`,"}"].join(`
|
|
21
|
+
`)}const un=1e3,fi=200;function vu(e){const t=xu(e).at(-1)??e;return/^`.*`$/.test(t)?t.slice(1,-1).replace(/\\(.)/g,"$1"):t}function xu(e){const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const s=e[o];if(r&&s==="\\"&&o+1<e.length){n+=s+e[++o];continue}if(s==="`"&&(r=!r),s==="."&&!r){t.push(n),n="";continue}n+=s}return t.push(n),t}function Ds(e){return/^`.*`$/.test(e)?e:pn(e)}function Sy(e){return xu(e).map(Ds).join(".")}function wy(e,t,n,r={}){const o=(n===void 0?un:fi)+1,s=r.quoteNames===!0,i=s?Ds:c=>c,a=s?Sy(t):t,l=s?Ds(vu(t)):t.split(".").at(-1)??t;return`run: ${i(e)} -> {
|
|
22
|
+
group_by: ${a}
|
|
23
|
+
`+(n===void 0?"":` where: ${Cy(a,n)}
|
|
24
|
+
`)+` order_by: ${l} asc
|
|
25
|
+
limit: ${o}
|
|
26
|
+
}`}function Cy(e,t){return`strpos(lower(${e}::string), ${Py(t.toLowerCase())}) > 0`}function Py(e){return`'${e.replace(/[\u0000-\u001f\u007f]/g,"").replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}function ky(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=di(ui(t.values,t.declaredTypes,n),Ty(t),n);return Object.keys(r).length>0?r:void 0}function Ty(e){if(e.host)return Object.fromEntries(Object.entries(e.host).filter(([t])=>!e.declaredTypes.has(t)))}function Su(e,t,n,r,o,s,i,a,l){const{apiClients:c,modelPage:u}=Se.useServer(),d=l??u==="viewer",m=z.useMemo(()=>r.filter(C=>C.name!==void 0&&(C.control==="select"||C.control==="multiselect")&&(C.suggest?.query!==void 0||C.suggest?.source!==void 0&&C.suggest?.dimension!==void 0)),[r]),y=m.map(C=>{const I=ky(C,s),R=C.suggest??{},A=[e,t,o,n,C.name,R.query,R.source,R.dimension,I===void 0?null:JSON.stringify(I),...i===void 0?[]:[i],...d?["quoteNames"]:[]];return{spec:C,identity:A,run:async(E,v)=>{const $=R.query!==void 0,D=await c.models.executeQueryModel(e,t,n,$&&i===void 0?{queryName:R.query,compactJson:!0,versionId:o,givens:I}:{query:pi(i??"",$?`run: ${R.query}`:wy(R.source,R.dimension,E,{quoteNames:d})),compactJson:!0,versionId:o,givens:I},void 0,{signal:v});return My(D.data.result,R.dimension===void 0?void 0:vu(R.dimension),$?{limit:un,cutOffAt:un}:{limit:E===void 0?un:fi})},searchable:R.query===void 0}}),p=Un.useQueries({queries:y.map(({spec:C,identity:I,run:R})=>({queryKey:["givenSuggest",...I],enabled:n!==void 0&&(a===void 0||a.has(C.name)),staleTime:300*1e3,refetchOnWindowFocus:!1,queryFn:({signal:A})=>R(void 0,A)}))}),h=z.useMemo(()=>{const C=new Map;return m.forEach((I,R)=>{const A=p[R]?.data;I.name&&A&&C.set(I.name,A.values)}),C},[m,JSON.stringify(p.map(C=>C.data))]),g=z.useMemo(()=>{const C=new Set;return m.forEach((I,R)=>{I.name&&p[R]?.isError&&C.add(I.name)}),C},[m,p.map(C=>C.isError).join("|")]),w=p.map(C=>!!C.data?.truncated).join("|"),k=z.useMemo(()=>{const C=new Set;return m.forEach((I,R)=>{I.name&&p[R]?.data?.truncated&&C.add(I.name)}),C},[m,w]),x=JSON.stringify(y.map(C=>C.identity)),b=z.useRef(y);b.current=y;const P=z.useMemo(()=>{const C=new Map;return y.forEach(({spec:I,identity:R,searchable:A},O)=>{!I.name||!A||!k.has(I.name)||C.set(I.name,{key:["givenSuggestSearch",...R],run:(E,v)=>b.current[O].run(E,v)})}),C},[x,k]);return{options:h,isLoading:p.some(C=>C.isLoading),failed:g,truncated:k,search:P}}function My(e,t,{limit:n,cutOffAt:r}){const o=Dy(e);return{values:Ry(o.slice(0,n),t),truncated:r===void 0?o.length>n:o.length>=r}}function Dy(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 Ry(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 Iy({specs:e,loaded:t,startingValues:n,params:r,onGivensChange:o,documentKey:s,autorun:i,environmentName:a,packageName:l,modelPath:c,versionId:u,documentName:d,preamble:m,hostGivens:y}){const p=z.useMemo(()=>new Map(e.filter(R=>R.name!==void 0).map(R=>[R.name,R.type])),[e]),h=z.useCallback(R=>{t&&o?.(R,Array.from(p.keys()))},[t,o,p]),g=yu({declaredTypes:p,startingValues:n,params:r,onParamsChange:t?h:void 0,documentKey:s,autorun:i}),{options:w,isLoading:k,failed:x,truncated:b,search:P}=Su(a,l,c,e,u,{values:g.applied,declaredTypes:p,...y?{host:y}:{}},m),{canSelf:C,onSelf:I}=pu({declaredTypes:p,setGiven:g.setGiven,documentName:d});return{...g,declaredTypes:p,options:w,optionsLoading:k,optionsFailed:x,optionsTruncated:b,optionSearch:P,canSelf:C,onSelf:I,panel:{givens:e,values:g.draft,onChange:g.setGiven,onReset:g.reset,canReset:!g.atStart,options:w,optionsLoading:k,optionsFailed:x,optionsTruncated:b,optionSearch:P,apply:i?void 0:{onApply:g.apply,pending:g.pending}}}}const Ey=$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 io={exports:{}},$y=io.exports,za;function Oy(){return za||(za=1,(function(e,t){(function(n,r){e.exports=r()})($y,(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),d=i(this).endOf(n);if(u.isBefore(d))return 1}var m=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),y=this.diff(m,n,!0);return y<0?i(this).startOf("week").week():Math.ceil(y)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(io)),io.exports}var Ay=Oy();const Fy=jt(Ay);var ao={exports:{}},Ly=ao.exports,Wa;function Ny(){return Wa||(Wa=1,(function(e,t){(function(n,r){e.exports=r()})(Ly,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},c=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(w){this[g]=+w}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(w){if(!w||w==="Z")return 0;var k=w.match(/([+-]|\d\d)/g),x=60*k[1]+(+k[2]||0);return x===0?0:k[0]==="+"?-x:x})(g)}],m=function(g){var w=l[g];return w&&(w.indexOf?w:w.s.concat(w.f))},y=function(g,w){var k,x=l.meridiem;if(x){for(var b=1;b<=24;b+=1)if(g.indexOf(x(b,0,w))>-1){k=b>12;break}}else k=g===(w?"pm":"PM");return k},p={A:[a,function(g){this.afternoon=y(g,!1)}],a:[a,function(g){this.afternoon=y(g,!0)}],Q:[o,function(g){this.month=3*(g-1)+1}],S:[o,function(g){this.milliseconds=100*+g}],SS:[s,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[s,u("day")],Do:[a,function(g){var w=l.ordinal,k=g.match(/\d+/);if(this.day=k[0],w)for(var x=1;x<=31;x+=1)w(x).replace(/\[|\]/g,"")===g&&(this.day=x)}],w:[i,u("week")],ww:[s,u("week")],M:[i,u("month")],MM:[s,u("month")],MMM:[a,function(g){var w=m("months"),k=(m("monthsShort")||w.map((function(x){return x.slice(0,3)}))).indexOf(g)+1;if(k<1)throw new Error;this.month=k%12||k}],MMMM:[a,function(g){var w=m("months").indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(g){this.year=c(g)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function h(g){var w,k;w=g,k=l&&l.formats;for(var x=(g=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(O,E,v){var $=v&&v.toUpperCase();return E||k[v]||n[v]||k[$].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,M,T){return M||T.slice(1)}))}))).match(r),b=x.length,P=0;P<b;P+=1){var C=x[P],I=p[C],R=I&&I[0],A=I&&I[1];x[P]=A?{regex:R,parser:A}:C.replace(/^\[|\]$/g,"")}return function(O){for(var E={},v=0,$=0;v<b;v+=1){var D=x[v];if(typeof D=="string")$+=D.length;else{var M=D.regex,T=D.parser,F=O.slice($),L=M.exec(F)[0];T.call(E,L),O=O.replace(L,"")}}return(function(N){var W=N.afternoon;if(W!==void 0){var J=N.hours;W?J<12&&(N.hours+=12):J===12&&(N.hours=0),delete N.afternoon}})(E),E}}return function(g,w,k){k.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var x=w.prototype,b=x.parse;x.parse=function(P){var C=P.date,I=P.utc,R=P.args;this.$u=I;var A=R[1];if(typeof A=="string"){var O=R[2]===!0,E=R[3]===!0,v=O||E,$=R[2];E&&($=R[2]),l=this.$locale(),!O&&$&&(l=k.Ls[$]),this.$d=(function(F,L,N,W){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*F);var J=h(L)(F),re=J.year,ae=J.month,le=J.day,Y=J.hours,G=J.minutes,Q=J.seconds,_=J.milliseconds,B=J.zone,K=J.week,ne=new Date,ee=le||(re||ae?1:ne.getDate()),V=re||ne.getFullYear(),q=0;re&&!ae||(q=ae>0?ae-1:ne.getMonth());var oe,te=Y||0,ce=G||0,se=Q||0,fe=_||0;return B?new Date(Date.UTC(V,q,ee,te,ce,se,fe+60*B.offset*1e3)):N?new Date(Date.UTC(V,q,ee,te,ce,se,fe)):(oe=new Date(V,q,ee,te,ce,se,fe),K&&(oe=W(oe).week(K).toDate()),oe)}catch{return new Date("")}})(C,A,I,k),this.init(),$&&$!==!0&&(this.$L=this.locale($).$L),v&&C!=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=k.apply(this,R);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}M===D&&(this.$d=new Date(""))}else b.call(this,P)}}}))})(ao)),ao.exports}var jy=Ny();const By=jt(jy);var lo={exports:{}},Vy=lo.exports,Ha;function _y(){return Ha||(Ha=1,(function(e,t){(function(n,r){e.exports=r()})(Vy,(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(d,m){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(y,p,h){var g=h&&h.toUpperCase();return p||m[h]||n[h]||m[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,k,x){return k||x.slice(1)}))}))})(l,c===void 0?{}:c);return a.call(this,u)}}}))})(lo)),lo.exports}var zy=_y();const Wy=jt(zy);var co={exports:{}},Hy=co.exports,Ua;function Uy(){return Ua||(Ua=1,(function(e,t){(function(n,r){e.exports=r()})(Hy,(function(){return function(n,r,o){r.prototype.isBetween=function(s,i,a,l){var c=o(s),u=o(i),d=(l=l||"()")[0]==="(",m=l[1]===")";return(d?this.isAfter(c,a):!this.isBefore(c,a))&&(m?this.isBefore(u,a):!this.isAfter(u,a))||(d?this.isBefore(c,a):!this.isAfter(c,a))&&(m?this.isAfter(u,a):!this.isBefore(u,a))}}}))})(co)),co.exports}var Yy=Uy();const Gy=jt(Yy);var uo={exports:{}},qy=uo.exports,Ya;function Ky(){return Ya||(Ya=1,(function(e,t){(function(n,r){e.exports=r()})(qy,(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(d){switch(d){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(),d==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),d==="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 d}}));return s.bind(this)(u)}}}))})(uo)),uo.exports}var Xy=Ky();const Qy=jt(Xy);Re.extend(Wy);Re.extend(Fy);Re.extend(Gy);Re.extend(Qy);const Zy={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"},Jy={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"},ps=["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(`
|
|
27
|
+
`),Ga=["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(`
|
|
28
|
+
`),eb=(e,t)=>t?(...n)=>e(...n).locale(t):e;class wu{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=Zy,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(ps);return Re.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(ps);if(!this.hasTimezonePlugin())throw new Error(Ga);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(ps);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(Ga)}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=eb(Re,t),this.locale=t,this.formats=j({},Jy,n),Re.extend(By)}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 Cu(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:wr(t.components[n].defaultProps,r)}function tb({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ah(n);return o=o[r]||o,Cu({theme:o,name:t,props:e})}function nb(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 rb={...S},Pu=rb.useSyncExternalStore;function ob(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,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[s,n,e]);return Pu(l,a,i)}function ku(e={}){const{themeId:t}=e;return function(r,o={}){let s=ic();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}=Cu({name:"MuiUseMediaQuery",props:o,theme:s});let d=typeof r=="function"?r(s):r;return d=d.replace(/^@media( ?)/m,""),d.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(`
|
|
29
|
+
`)),(Pu!==void 0?ob:nb)(d,a,l,c,u)}}ku();const Tu=ku({themeId:Yn});function Fe({props:e,name:t}){return tb({props:e,name:t,defaultTheme:No,themeId:Yn})}const Mu=U.oneOfType([U.func,U.object]),qa={};function Du(e,t){const n=S.useRef(qa);return n.current===qa&&(n.current=e(t)),n}const sb=[];function ib(e){S.useEffect(e,sb)}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=Du(hi.create).current;return ib(e.disposeEffect),e}function Ka(e){try{return e.matches(":focus-visible")}catch{}return!1}function Ru(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const ab={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Bn(e){return typeof e=="string"}function Iu(e,t,n){return e===void 0||Bn(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 Xa(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 Eu(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const y=de(n?.className,s,o?.className,r?.className),p={...n?.style,...o?.style,...r?.style},h={...n,...o,...r};return y.length>0&&(h.className=y),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:void 0}}const i=gi({...o,...r}),a=Xa(r),l=Xa(o),c=t(i),u=de(c?.className,n?.className,s,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},m={...c,...n,...l,...a};return u.length>0&&(m.className=u),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:c.ref}}function Wo(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?{}:Wo(n,r),{props:a,internalRef:l}=Eu({...s,externalSlotProps:i}),c=ke(l,i?.ref,e.additionalProps?.ref);return Iu(t,{...a,ref:c},r)}function qn(e){return parseInt(S.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Jn=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),lb=({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}},bo=(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},mr=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:a})=>{const l=bo(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},cb=(e,t)=>t==null||!e.isValid(t)?null:t,lt=(e,t,n)=>t==null||!e.isValid(t)?n:t,ub=(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},$u=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),db=["year","month","day"],Qa=e=>db.includes(e),bi=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Jn(n,["year"])?o.year:Jn(n,["month"])?o.month:Jn(n,["day"])?o.dayOfMonth:Jn(n,["month","year"])?`${o.month} ${o.year}`:Jn(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},pb=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},fb=["hours","minutes","seconds"],hb=e=>fb.includes(e),Za=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),mb=(e,t)=>(n,r)=>e?t.isAfter(n,r):Za(n,t)>Za(r,t),Pt={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},gb=e=>Math.max(...e.map(t=>Pt[t.type]??1)),er=(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},yb=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let s=o?o():er(t,n,$u(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=er(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=er(t,n,e.maxDate));const i=mb(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=er(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:bo(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=er(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:bo(t,s,e.maxTime))),s},Ou=(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(`
|
|
30
|
+
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},bb=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Ho=(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))},Au=(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 Ho(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[]}},Ja="s",vb=["0","1","2","3","4","5","6","7","8","9"],xb=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Ja)==="0"?vb:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),Ja))},fn=(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(""),el=(e,t)=>{const n=fn(e,t);return n!==" "&&!Number.isNaN(Number(n))},Fu=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},Lu=(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=Fu(s,o.maxLength)),vi(s,r)},Sb=(e,t,n,r,o,s,i,a)=>{const l=bb(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,m=()=>{const p=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),h=k=>Lu(e,k,p,s,n),g=n.type==="minutes"&&a?.minutesStep?a.minutesStep:1;let w;if(d){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?w=p.minimum:w=p.maximum}else w=parseInt(fn(n.value,s),10)+l*g;return w%g!==0&&((l<0||c)&&(w+=g-(g+w)%g),(l>0||u)&&(w-=w%g)),w>p.maximum?h(p.minimum+(w-p.maximum-1)%(p.maximum-p.minimum+1)):w<p.minimum?h(p.maximum-(p.minimum-w-1)%(p.maximum-p.minimum+1)):h(w)},y=()=>{const p=Au(e,t,n.type,n.format);if(p.length===0)return n.value;if(d)return l>0||c?p[0]:p[p.length-1];const w=((p.indexOf(n.value)+l)%p.length+p.length)%p.length;return p[w]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?m():y()},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(fn(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}`),t==="input-rtl"&&(r=`${r}`),r},tl=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),wb=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Nu=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(o,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},Cb=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],s=[];for(let l=0;l<t.length;l+=1){const c=t[l];r&&c.type==="weekDay"||(o.push(c.format),s.push(xi(c,"non-input",n)))}const i=o.join(" "),a=s.join(" ");return e.parse(a,i)},Pb=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),kb=(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},Tb=(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:wb(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=Ho(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 fn(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(fn(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})}},Mb=(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=Ho(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}},nl={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},rl=(e,t,n,r,o)=>[...n].sort((s,i)=>nl[s.type]-nl[i.type]).reduce((s,i)=>!o||i.modified?Mb(e,i,t,s):s,r),Db=()=>navigator.userAgent.toLowerCase().includes("android"),Rb=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{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],d=u===0?null:r[u-1],m=u===e.length-1?null:r[u+1];n[c]={leftIndex:d,rightIndex:m}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Rs=(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},Ib=(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}},Eb=(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}},$b=["value","referenceDate"],Rt={emptyValue:null,getTodayValue:$u,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ve(e,$b);return t!=null&&r.utils.isValid(t)?t:n??yb(r)},cleanValue:cb,areValuesEqual:ub,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)},Ob={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:Pb,getV6InputValueFromSections:kb,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)},Ab=["localeText"],Is=S.createContext(null),Si=function(t){const{localeText:n}=t,r=ve(t,Ab),{utils:o,localeText:s}=S.useContext(Is)??{utils:void 0,localeText:void 0},i=Fe({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:m}=i,y=S.useMemo(()=>j({},m,s,n),[m,s,n]),p=S.useMemo(()=>{if(!l)return o||null;const w=new l({locale:d,formats:c,instance:u});if(!w.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
31
|
+
`));return w},[l,d,c,u,o]),h=S.useMemo(()=>p?{minDate:p.date("1900-01-01T00:00:00.000"),maxDate:p.date("2099-12-31T00:00:00.000")}:null,[p]),g=S.useMemo(()=>({utils:p,defaultDates:h,localeText:y}),[h,p,y]);return f.jsx(Is.Provider,{value:g,children:a})},Fb=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:j({},e)}}}}),ju=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)}},Bu={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"},Lb=Bu;Fb(Bu);const bn=()=>{const e=S.useContext(Is);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(`
|
|
32
|
+
`));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(`
|
|
33
|
+
`));const t=S.useMemo(()=>j({},Lb,e.localeText),[e.localeText]);return S.useMemo(()=>j({},e,{localeText:t}),[e,t])},Le=()=>bn().utils,Fr=()=>bn().defaultDates,Uo=e=>{const t=Le(),n=S.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Nb(e){return typeof e.main=="string"}function jb(e,t=[]){if(!Nb(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&&jb(t,e)}function Bb(e){return ge("MuiTypography",e)}const Vb=he("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),_b={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},zb=wm(),Wb=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${ie(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return me(a,Bb,i)},Hb=Z("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${ie(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${ie(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}}]}))),ol={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=!_b[r],i=zb({...o,...s&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:m=!1,variant:y="body1",variantMapping:p=ol,...h}=i,g={...i,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:m,variant:y,variantMapping:p},w=c||(m?"p":p[y]||ol[y])||"span",k=Wb(g);return f.jsx(Hb,{as:w,ref:n,className:de(k.root,l),...h,ownerState:g,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...h.style}})});function Ub(e){return ge("MuiPickersToolbar",e)}he("MuiPickersToolbar",["root","content"]);const Yb=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Gb=e=>{const{classes:t}=e;return me({root:["root"],content:["content"]},Ub,t)},qb=Z("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"}}]})),Kb=Z("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"}}]}),Xb=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,Yb),u=r,d=Gb(u);return a?null:f.jsxs(qb,j({ref:n,className:de(d.root,s),ownerState:u},c,{children:[f.jsx(Qt,{color:"text.secondary",variant:"overline",id:l,children:i}),f.jsx(Kb,{className:d.content,ownerState:u,children:o})]}))}),Bt=()=>bn().localeText;function Qb(e){return ge("MuiDatePickerToolbar",e)}he("MuiDatePickerToolbar",["root","title"]);const Zb=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Jb=e=>{const{classes:t}=e;return me({root:["root"],title:["title"]},Qb,t)},ev=Z(Xb,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tv=Z(Qt,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),nv=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,Zb),d=Le(),m=Bt(),y=Jb(r),p=S.useMemo(()=>{if(!o)return a;const g=bi(d,{format:i,views:l},!0);return d.formatByString(o,g)},[o,i,a,d,l]),h=r;return f.jsx(ev,j({ref:n,toolbarTitle:m.datePickerToolbarTitle,isLandscape:s,className:de(y.root,c)},u,{children:f.jsx(tv,{variant:"h4",align:s?"left":"center",ownerState:h,className:y.title,children:p})}))});function Vu(e,t){const n=Le(),r=Fr(),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},lb({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:nv},o.slots)})}const Lr=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:s,shouldDisableYear:i,disablePast:a,disableFuture:l}=e,c=r.utils.date(void 0,n),u=lt(r.utils,e.minDate,r.defaultDates.minDate),d=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!!(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};Lr.valueManager=Rt;const _u=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],rv=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],ov=["minDateTime","maxDateTime"],sv=[..._u,...rv,...ov],zu=e=>sv.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function Wu(e){const{props:t,validator:n,value:r,timezone:o,onError:s}=e,i=bn(),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(d=>n({adapter:i,value:d,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const Yo=S.createContext(void 0);function ft(){return S.useContext(Yo)}function iv(e){return ge("MuiInputAdornment",e)}const sl=he("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var il;const av=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ie(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},lv=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ie(o)}`,i,r&&"hiddenLabel",s&&`size${ie(s)}`]};return me(a,iv,t)},cv=Z("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:av})(Ee(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${sl.positionStart}&:not(.${sl.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Hu=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,...d}=r,m=ft()||{};let y=u;u&&m.variant,m&&!y&&(y=m.variant);const p={...r,hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:c,variant:y},h=lv(p);return f.jsx(Yo.Provider,{value:null,children:f.jsx(cv,{as:i,ownerState:p,className:de(h.root,s),ref:n,...d,children:typeof o=="string"&&!l?f.jsx(Qt,{color:"textSecondary",children:o}):f.jsxs(S.Fragment,{children:[c==="start"?il||(il=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]})})})});class vo{static create(){return new vo}static use(){const t=Du(vo.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=dv(),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 uv(){return vo.use()}function dv(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Es(e,t){return Es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Es(e,t)}function wi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Es(e,t)}function pv(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function fv(e,t){e.classList?e.classList.add(t):pv(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function al(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function hv(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=al(e.className,t):e.setAttribute("class",al(e.className&&e.className.baseVal||"",t))}const ll={disabled:!1},xo=z.createContext(null);var Uu=function(t){return t.scrollTop},pr="unmounted",on="exited",sn="entering",Mn="entered",$s="exiting",St=(function(e){wi(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=Mn:r.unmountOnExit||r.mountOnEnter?l=pr:l=on,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===pr?{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!==Mn&&(s=sn):(i===sn||i===Mn)&&(s=$s)}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:cr.findDOMNode(this);i&&Uu(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===on&&this.setState({status:pr})},n.performEnter=function(o){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[cr.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),m=a?d.appear:d.enter;if(!o&&!i||ll.disabled){this.safeSetState({status:Mn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:sn},function(){s.props.onEntering(c,u),s.onTransitionEnd(m,function(){s.safeSetState({status:Mn},function(){s.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:cr.findDOMNode(this);if(!s||ll.disabled){this.safeSetState({status:on},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:$s},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:cr.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===pr)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 z.createElement(xo.Provider,{value:null},typeof i=="function"?i(o,a):z.cloneElement(z.Children.only(i),a))},t})(z.Component);St.contextType=xo;St.propTypes={};function kn(){}St.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:kn,onEntering:kn,onEntered:kn,onExit:kn,onExiting:kn,onExited:kn};St.UNMOUNTED=pr;St.EXITED=on;St.ENTERING=sn;St.ENTERED=Mn;St.EXITING=$s;var mv=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return fv(t,r)})},fs=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return hv(t,r)})},Ci=(function(e){wi(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],d=c[1];r.removeClasses(u,"exit"),r.addClass(u,d?"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],d=c[1],m=d?"appear":"enter";r.addClass(u,m,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1],m=d?"appear":"enter";r.removeClasses(u,m),r.addClass(u,m,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var l=r.resolveArguments(a),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+a:l[a],m=c?d+"-active":l[a+"Active"],y=c?d+"-done":l[a+"Done"];return{baseClassName:d,activeClassName:m,doneClassName:y}},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&&Uu(o),a&&(this.appliedClasses[s][i]=a,mv(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&&fs(o,a),l&&fs(o,l),c&&fs(o,c)},n.render=function(){var o=this.props;o.classNames;var s=ve(o,["classNames"]);return z.createElement(St,j({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(z.Component);Ci.defaultProps={classNames:""};Ci.propTypes={};function gv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pi(e,t){var n=function(s){return t&&z.isValidElement(s)?t(s):s},r=Object.create(null);return e&&z.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function yv(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 bv(e,t){return Pi(e.children,function(n){return z.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 vv(e,t,n){var r=Pi(e.children),o=yv(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(z.isValidElement(i)){var a=s in t,l=s in r,c=t[s],u=z.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[s]=z.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:ln(i,"exit",e),enter:ln(i,"enter",e)}):!l&&a&&!u?o[s]=z.cloneElement(i,{in:!1}):l&&a&&z.isValidElement(c)&&(o[s]=z.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:ln(i,"exit",e),enter:ln(i,"enter",e)}))}}),o}var xv=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Sv={component:"div",childFactory:function(t){return t}},Nr=(function(e){wi(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(gv(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?bv(o,a):vv(o,i,a),firstRender:!1}},n.handleExited=function(o,s){var i=Pi(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=xv(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?z.createElement(xo.Provider,{value:l},c):z.createElement(xo.Provider,{value:l},z.createElement(s,a,c))},t})(z.Component);Nr.propTypes={};Nr.defaultProps=Sv;function wv(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:i,in:a,onExited:l,timeout:c}=e,[u,d]=S.useState(!1),m=de(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:i,height:i,top:-(i/2)+s,left:-(i/2)+o},p=de(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&d(!0),S.useEffect(()=>{if(!a&&l!=null){const h=setTimeout(l,c);return()=>{clearTimeout(h)}}},[l,a,c]),f.jsx("span",{className:m,style:y,children:f.jsx("span",{className:p})})}const st=he("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Os=550,Cv=80,Pv=He.keyframes`
|
|
34
|
+
0% {
|
|
35
|
+
transform: scale(0);
|
|
36
|
+
opacity: 0.1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
100% {
|
|
40
|
+
transform: scale(1);
|
|
41
|
+
opacity: 0.3;
|
|
42
|
+
}
|
|
43
|
+
`,kv=He.keyframes`
|
|
44
|
+
0% {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
100% {
|
|
49
|
+
opacity: 0;
|
|
50
|
+
}
|
|
51
|
+
`,Tv=He.keyframes`
|
|
52
|
+
0% {
|
|
53
|
+
transform: scale(1);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
50% {
|
|
57
|
+
transform: scale(0.92);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
100% {
|
|
61
|
+
transform: scale(1);
|
|
62
|
+
}
|
|
63
|
+
`,Mv=Z("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Dv=Z(wv,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
64
|
+
opacity: 0;
|
|
65
|
+
position: absolute;
|
|
66
|
+
|
|
67
|
+
&.${st.rippleVisible} {
|
|
68
|
+
opacity: 0.3;
|
|
69
|
+
transform: scale(1);
|
|
70
|
+
animation-name: ${Pv};
|
|
71
|
+
animation-duration: ${Os}ms;
|
|
72
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.${st.ripplePulsate} {
|
|
76
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
& .${st.child} {
|
|
80
|
+
opacity: 1;
|
|
81
|
+
display: block;
|
|
82
|
+
width: 100%;
|
|
83
|
+
height: 100%;
|
|
84
|
+
border-radius: 50%;
|
|
85
|
+
background-color: currentColor;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
& .${st.childLeaving} {
|
|
89
|
+
opacity: 0;
|
|
90
|
+
animation-name: ${kv};
|
|
91
|
+
animation-duration: ${Os}ms;
|
|
92
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
& .${st.childPulsate} {
|
|
96
|
+
position: absolute;
|
|
97
|
+
/* @noflip */
|
|
98
|
+
left: 0px;
|
|
99
|
+
top: 0;
|
|
100
|
+
animation-name: ${Tv};
|
|
101
|
+
animation-duration: 2500ms;
|
|
102
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
103
|
+
animation-iteration-count: infinite;
|
|
104
|
+
animation-delay: 200ms;
|
|
105
|
+
}
|
|
106
|
+
`,Rv=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),d=S.useRef(null);S.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const m=S.useRef(!1),y=mi(),p=S.useRef(null),h=S.useRef(null),g=S.useCallback(b=>{const{pulsate:P,rippleX:C,rippleY:I,rippleSize:R,cb:A}=b;c(O=>[...O,f.jsx(Dv,{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:Os,pulsate:P,rippleX:C,rippleY:I,rippleSize:R},u.current)]),u.current+=1,d.current=A},[s]),w=S.useCallback((b={},P={},C=()=>{})=>{const{pulsate:I=!1,center:R=o||P.pulsate,fakeElement:A=!1}=P;if(b?.type==="mousedown"&&m.current){m.current=!1;return}b?.type==="touchstart"&&(m.current=!0);const O=A?null:h.current,E=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,$,D;if(R||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)v=Math.round(E.width/2),$=Math.round(E.height/2);else{const{clientX:M,clientY:T}=b.touches&&b.touches.length>0?b.touches[0]:b;v=Math.round(M-E.left),$=Math.round(T-E.top)}if(R)D=Math.sqrt((2*E.width**2+E.height**2)/3),D%2===0&&(D+=1);else{const M=Math.max(Math.abs((O?O.clientWidth:0)-v),v)*2+2,T=Math.max(Math.abs((O?O.clientHeight:0)-$),$)*2+2;D=Math.sqrt(M**2+T**2)}b?.touches?p.current===null&&(p.current=()=>{g({pulsate:I,rippleX:v,rippleY:$,rippleSize:D,cb:C})},y.start(Cv,()=>{p.current&&(p.current(),p.current=null)})):g({pulsate:I,rippleX:v,rippleY:$,rippleSize:D,cb:C})},[o,g,y]),k=S.useCallback(()=>{w({},{pulsate:!0})},[w]),x=S.useCallback((b,P)=>{if(y.clear(),b?.type==="touchend"&&p.current){p.current(),p.current=null,y.start(0,()=>{x(b,P)});return}p.current=null,c(C=>C.length>0?C.slice(1):C),d.current=P},[y]);return S.useImperativeHandle(n,()=>({pulsate:k,start:w,stop:x}),[k,w,x]),f.jsx(Mv,{className:de(st.root,s.root,i),ref:h,...a,children:f.jsx(Nr,{component:null,exit:!0,children:l})})});function Iv(e){return ge("MuiButtonBase",e)}const Ev=he("MuiButtonBase",["root","disabled","focusVisible"]),$v=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=me({root:["root",t&&"disabled",n&&"focusVisible"]},Iv,o);return n&&r&&(i.root+=` ${r}`),i},Ov=Z("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"},[`&.${Ev.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Vn=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:d=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:p="a",onBlur:h,onClick:g,onContextMenu:w,onDragLeave:k,onFocus:x,onFocusVisible:b,onKeyDown:P,onKeyUp:C,onMouseDown:I,onMouseLeave:R,onMouseUp:A,onTouchEnd:O,onTouchMove:E,onTouchStart:v,tabIndex:$=0,TouchRippleProps:D,touchRippleRef:M,type:T,...F}=r,L=S.useRef(null),N=uv(),W=ke(N.ref,M),[J,re]=S.useState(!1);c&&J&&re(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{re(!0),L.current.focus()}}),[]);const ae=N.shouldMount&&!u&&!c;S.useEffect(()=>{J&&m&&!u&&N.pulsate()},[u,m,J,N]);const le=$t(N,"start",I,d),Y=$t(N,"stop",w,d),G=$t(N,"stop",k,d),Q=$t(N,"stop",A,d),_=$t(N,"stop",pe=>{J&&pe.preventDefault(),R&&R(pe)},d),B=$t(N,"start",v,d),K=$t(N,"stop",O,d),ne=$t(N,"stop",E,d),ee=$t(N,"stop",pe=>{Ka(pe.target)||re(!1),h&&h(pe)},!1),V=ue(pe=>{L.current||(L.current=pe.currentTarget),Ka(pe.target)&&(re(!0),b&&b(pe)),x&&x(pe)}),q=()=>{const pe=L.current;return l&&l!=="button"&&!(pe.tagName==="A"&&pe.href)},oe=ue(pe=>{m&&!pe.repeat&&J&&pe.key===" "&&N.stop(pe,()=>{N.start(pe)}),pe.target===pe.currentTarget&&q()&&pe.key===" "&&pe.preventDefault(),P&&P(pe),pe.target===pe.currentTarget&&q()&&pe.key==="Enter"&&!c&&(pe.preventDefault(),g&&g(pe))}),te=ue(pe=>{m&&pe.key===" "&&J&&!pe.defaultPrevented&&N.stop(pe,()=>{N.pulsate(pe)}),C&&C(pe),g&&pe.target===pe.currentTarget&&q()&&pe.key===" "&&!pe.defaultPrevented&&g(pe)});let ce=l;ce==="button"&&(F.href||F.to)&&(ce=p);const se={};ce==="button"?(se.type=T===void 0?"button":T,se.disabled=c):(!F.href&&!F.to&&(se.role="button"),c&&(se["aria-disabled"]=c));const fe=ke(n,L),be={...r,centerRipple:s,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:m,tabIndex:$,focusVisible:J},we=$v(be);return f.jsxs(Ov,{as:ce,className:de(we.root,a),ownerState:be,onBlur:ee,onClick:g,onContextMenu:Y,onFocus:V,onKeyDown:oe,onKeyUp:te,onMouseDown:le,onMouseLeave:_,onMouseUp:Q,onDragLeave:G,onTouchEnd:K,onTouchMove:ne,onTouchStart:B,ref:fe,tabIndex:c?-1:$,type:T,...se,...F,children:[i,ae?f.jsx(Rv,{ref:W,center:s,...D}):null]})});function $t(e,t,n,r=!1){return ue(o=>(n&&n(o),r||e[t](o),!0))}function Av(e){return ge("MuiCircularProgress",e)}he("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ut=44,As=He.keyframes`
|
|
107
|
+
0% {
|
|
108
|
+
transform: rotate(0deg);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
100% {
|
|
112
|
+
transform: rotate(360deg);
|
|
113
|
+
}
|
|
114
|
+
`,Fs=He.keyframes`
|
|
115
|
+
0% {
|
|
116
|
+
stroke-dasharray: 1px, 200px;
|
|
117
|
+
stroke-dashoffset: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
50% {
|
|
121
|
+
stroke-dasharray: 100px, 200px;
|
|
122
|
+
stroke-dashoffset: -15px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
100% {
|
|
126
|
+
stroke-dasharray: 1px, 200px;
|
|
127
|
+
stroke-dashoffset: -126px;
|
|
128
|
+
}
|
|
129
|
+
`,Fv=typeof As!="string"?He.css`
|
|
130
|
+
animation: ${As} 1.4s linear infinite;
|
|
131
|
+
`:null,Lv=typeof Fs!="string"?He.css`
|
|
132
|
+
animation: ${Fs} 1.4s ease-in-out infinite;
|
|
133
|
+
`:null,Nv=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${ie(r)}`],svg:["svg"],circle:["circle",`circle${ie(n)}`,o&&"circleDisableShrink"]};return me(s,Av,t)},jv=Z("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ie(n.color)}`]]}})(Ee(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Fv||{animation:`${As} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Bv=Z("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Vv=Z("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ie(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:Lv||{animation:`${Fs} 1.4s ease-in-out infinite`}}]}))),ki=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:d="indeterminate",...m}=r,y={...r,color:s,disableShrink:i,size:a,thickness:c,value:u,variant:d},p=Nv(y),h={},g={},w={};if(d==="determinate"){const k=2*Math.PI*((Ut-c)/2);h.strokeDasharray=k.toFixed(3),w["aria-valuenow"]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*k).toFixed(3)}px`,g.transform="rotate(-90deg)"}return f.jsx(jv,{className:de(p.root,o),style:{width:a,height:a,...g,...l},ownerState:y,ref:n,role:"progressbar",...w,...m,children:f.jsx(Bv,{className:p.svg,ownerState:y,viewBox:`${Ut/2} ${Ut/2} ${Ut} ${Ut}`,children:f.jsx(Vv,{className:p.circle,style:h,ownerState:y,cx:Ut,cy:Ut,r:(Ut-c)/2,fill:"none",strokeWidth:c})})})});function _v(e){return ge("MuiIconButton",e)}const cl=he("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),zv=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${ie(r)}`,o&&`edge${ie(o)}`,`size${ie(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return me(a,_v,t)},Wv=Z(Vn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ie(n.color)}`],n.edge&&t[`edge${ie(n.edge)}`],t[`size${ie(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)}}],[`&.${cl.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${cl.loading}`]:{color:"transparent"}}))),Hv=Z("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),jr=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:i,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:d,loading:m=null,loadingIndicator:y,...p}=r,h=xt(d),g=y??f.jsx(ki,{"aria-labelledby":h,color:"inherit",size:16}),w={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:m,loadingIndicator:g,size:u},k=zv(w);return f.jsxs(Wv,{id:m?h:d,className:de(k.root,i),centerRipple:!0,focusRipple:!c,disabled:l||m,ref:n,...p,ownerState:w,children:[typeof m=="boolean"&&f.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:f.jsx(Hv,{className:k.loadingIndicator,ownerState:w,children:m&&g})}),s]})}),Yu=e=>e.scrollTop;function So(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 Ls(e){return`scale(${e}, ${e**2})`}const Uv={entering:{opacity:1,transform:Ls(1)},entered:{opacity:1,transform:"none"}},hs=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:d,onExited:m,onExiting:y,style:p,timeout:h="auto",TransitionComponent:g=St,...w}=t,k=mi(),x=S.useRef(),b=yn(),P=S.useRef(null),C=ke(P,qn(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)=>{Yu(M);const{duration:F,delay:L,easing:N}=So({style:p,timeout:h,easing:i},{mode:"enter"});let W;h==="auto"?(W=b.transitions.getAutoHeightDuration(M.clientHeight),x.current=W):W=F,M.style.transition=[b.transitions.create("opacity",{duration:W,delay:L}),b.transitions.create("transform",{duration:hs?W:W*.666,delay:L,easing:N})].join(","),l&&l(M,T)}),O=I(c),E=I(y),v=I(M=>{const{duration:T,delay:F,easing:L}=So({style:p,timeout:h,easing:i},{mode:"exit"});let N;h==="auto"?(N=b.transitions.getAutoHeightDuration(M.clientHeight),x.current=N):N=T,M.style.transition=[b.transitions.create("opacity",{duration:N,delay:F}),b.transitions.create("transform",{duration:hs?N:N*.666,delay:hs?F:F||N*.333,easing:L})].join(","),M.style.opacity=0,M.style.transform=Ls(.75),d&&d(M)}),$=I(m),D=M=>{h==="auto"&&k.start(x.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:v,onExited:$,onExiting:E,addEndListener:D,timeout:h==="auto"?null:h,...w,children:(M,{ownerState:T,...F})=>S.cloneElement(s,{style:{opacity:0,transform:Ls(.75),visibility:M==="exited"&&!a?"hidden":void 0,...Uv[M],...p,...s.props.style},ref:C,...F})})});Pr&&(Pr.muiSupportAuto=!0);const Yv={entering:{opacity:1},entered:{opacity:1}},hn=S.forwardRef(function(t,n){const r=yn(),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:d,onEntering:m,onExit:y,onExited:p,onExiting:h,style:g,timeout:w=o,TransitionComponent:k=St,...x}=t,b=S.useRef(null),P=ke(b,qn(a),n),C=D=>M=>{if(D){const T=b.current;M===void 0?D(T):D(T,M)}},I=C(m),R=C((D,M)=>{Yu(D);const T=So({style:g,timeout:w,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",T),D.style.transition=r.transitions.create("opacity",T),u&&u(D,M)}),A=C(d),O=C(h),E=C(D=>{const M=So({style:g,timeout:w,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",M),D.style.transition=r.transitions.create("opacity",M),y&&y(D)}),v=C(p),$=D=>{s&&s(b.current,D)};return f.jsx(k,{appear:i,in:c,nodeRef:b,onEnter:R,onEntered:A,onEntering:I,onExit:E,onExited:v,onExiting:O,addEndListener:$,timeout:w,...x,children:(D,{ownerState:M,...T})=>S.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...Yv[D],...g,...a.props.style},ref:P,...T})})});function Gv(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 qv=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return me(s,Gv,o)},Kv=Z("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ee(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Br=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiPaper"}),o=yn(),{className:s,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:i,elevation:a,square:l,variant:c},m=qv(d);return f.jsx(Kv,{as:i,ownerState:d,className:de(m.root,s),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ho("#fff",ws(a))}, ${ho("#fff",ws(a))})`}},...u.style}})});var Qe="top",ct="bottom",ut="right",Ze="left",Ti="auto",Vr=[Qe,ct,ut,Ze],_n="start",kr="end",Xv="clippingParents",Gu="viewport",tr="popper",Qv="reference",ul=Vr.reduce(function(e,t){return e.concat([t+"-"+_n,t+"-"+kr])},[]),qu=[].concat(Vr,[Ti]).reduce(function(e,t){return e.concat([t,t+"-"+_n,t+"-"+kr])},[]),Zv="beforeRead",Jv="read",e0="afterRead",t0="beforeMain",n0="main",r0="afterMain",o0="beforeWrite",s0="write",i0="afterWrite",a0=[Zv,Jv,e0,t0,n0,r0,o0,s0,i0];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 mn(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 Mi(e){if(typeof ShadowRoot>"u")return!1;var t=et(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function l0(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 c0(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 u0={name:"applyStyles",enabled:!0,phase:"write",fn:l0,effect:c0,requires:["computeStyles"]};function Mt(e){return e.split("-")[0]}var dn=Math.max,wo=Math.min,zn=Math.round;function Ns(){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 Ku(){return!/^((?!chrome|android).)*safari/i.test(Ns())}function Wn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&at(e)&&(o=e.offsetWidth>0&&zn(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&zn(r.height)/e.offsetHeight||1);var i=mn(e)?et(e):window,a=i.visualViewport,l=!Ku()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,d=r.width/o,m=r.height/s;return{width:d,height:m,top:u,right:c+d,bottom:u+m,left:c,x:c,y:u}}function Di(e){var t=Wn(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 Xu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Mi(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 d0(e){return["table","td","th"].indexOf(It(e))>=0}function Zt(e){return((mn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Go(e){return It(e)==="html"?e:e.assignedSlot||e.parentNode||(Mi(e)?e.host:null)||Zt(e)}function dl(e){return!at(e)||Nt(e).position==="fixed"?null:e.offsetParent}function p0(e){var t=/firefox/i.test(Ns()),n=/Trident/i.test(Ns());if(n&&at(e)){var r=Nt(e);if(r.position==="fixed")return null}var o=Go(e);for(Mi(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 _r(e){for(var t=et(e),n=dl(e);n&&d0(n)&&Nt(n).position==="static";)n=dl(n);return n&&(It(n)==="html"||It(n)==="body"&&Nt(n).position==="static")?t:n||p0(e)||t}function Ri(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gr(e,t,n){return dn(e,wo(t,n))}function f0(e,t,n){var r=gr(e,t,n);return r>n?n:r}function Qu(){return{top:0,right:0,bottom:0,left:0}}function Zu(e){return Object.assign({},Qu(),e)}function Ju(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var h0=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Zu(typeof t!="number"?t:Ju(t,Vr))};function m0(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=Ri(a),c=[Ze,ut].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var d=h0(o.padding,n),m=Di(s),y=l==="y"?Qe:Ze,p=l==="y"?ct:ut,h=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],g=i[l]-n.rects.reference[l],w=_r(s),k=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,x=h/2-g/2,b=d[y],P=k-m[u]-d[p],C=k/2-m[u]/2+x,I=gr(b,C,P),R=l;n.modifiersData[r]=(t={},t[R]=I,t.centerOffset=I-C,t)}}function g0(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)||Xu(t.elements.popper,o)&&(t.elements.arrow=o))}const y0={name:"arrow",enabled:!0,phase:"main",fn:m0,effect:g0,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hn(e){return e.split("-")[1]}var b0={top:"auto",right:"auto",bottom:"auto",left:"auto"};function v0(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zn(n*o)/o||0,y:zn(r*o)/o||0}}function pl(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,d=e.isFixed,m=i.x,y=m===void 0?0:m,p=i.y,h=p===void 0?0:p,g=typeof u=="function"?u({x:y,y:h}):{x:y,y:h};y=g.x,h=g.y;var w=i.hasOwnProperty("x"),k=i.hasOwnProperty("y"),x=Ze,b=Qe,P=window;if(c){var C=_r(n),I="clientHeight",R="clientWidth";if(C===et(n)&&(C=Zt(n),Nt(C).position!=="static"&&a==="absolute"&&(I="scrollHeight",R="scrollWidth")),C=C,o===Qe||(o===Ze||o===ut)&&s===kr){b=ct;var A=d&&C===P&&P.visualViewport?P.visualViewport.height:C[I];h-=A-r.height,h*=l?1:-1}if(o===Ze||(o===Qe||o===ct)&&s===kr){x=ut;var O=d&&C===P&&P.visualViewport?P.visualViewport.width:C[R];y-=O-r.width,y*=l?1:-1}}var E=Object.assign({position:a},c&&b0),v=u===!0?v0({x:y,y:h},et(n)):{x:y,y:h};if(y=v.x,h=v.y,l){var $;return Object.assign({},E,($={},$[b]=k?"0":"",$[x]=w?"0":"",$.transform=(P.devicePixelRatio||1)<=1?"translate("+y+"px, "+h+"px)":"translate3d("+y+"px, "+h+"px, 0)",$))}return Object.assign({},E,(t={},t[b]=k?h+"px":"",t[x]=w?y+"px":"",t.transform="",t))}function x0(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:Hn(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,pl(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,pl(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 S0={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:x0,data:{}};var Ur={passive:!0};function w0(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,Ur)}),a&&l.addEventListener("resize",n.update,Ur),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Ur)}),a&&l.removeEventListener("resize",n.update,Ur)}}const C0={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:w0,data:{}};var P0={left:"right",right:"left",bottom:"top",top:"bottom"};function po(e){return e.replace(/left|right|bottom|top/g,function(t){return P0[t]})}var k0={start:"end",end:"start"};function fl(e){return e.replace(/start|end/g,function(t){return k0[t]})}function Ii(e){var t=et(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ei(e){return Wn(Zt(e)).left+Ii(e).scrollLeft}function T0(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=Ku();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+Ei(e),y:l}}function M0(e){var t,n=Zt(e),r=Ii(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+Ei(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 $i(e){var t=Nt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ed(e){return["html","body","#document"].indexOf(It(e))>=0?e.ownerDocument.body:at(e)&&$i(e)?e:ed(Go(e))}function yr(e,t){var n;t===void 0&&(t=[]);var r=ed(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=et(r),i=o?[s].concat(s.visualViewport||[],$i(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(yr(Go(i)))}function js(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function D0(e,t){var n=Wn(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 hl(e,t,n){return t===Gu?js(T0(e,n)):mn(t)?D0(t,n):js(M0(Zt(e)))}function R0(e){var t=yr(Go(e)),n=["absolute","fixed"].indexOf(Nt(e).position)>=0,r=n&&at(e)?_r(e):e;return mn(r)?t.filter(function(o){return mn(o)&&Xu(o,r)&&It(o)!=="body"}):[]}function I0(e,t,n,r){var o=t==="clippingParents"?R0(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=hl(e,c,r);return l.top=dn(u.top,l.top),l.right=wo(u.right,l.right),l.bottom=wo(u.bottom,l.bottom),l.left=dn(u.left,l.left),l},hl(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 td(e){var t=e.reference,n=e.element,r=e.placement,o=r?Mt(r):null,s=r?Hn(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?Ri(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case _n: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?Xv:a,c=n.rootBoundary,u=c===void 0?Gu:c,d=n.elementContext,m=d===void 0?tr:d,y=n.altBoundary,p=y===void 0?!1:y,h=n.padding,g=h===void 0?0:h,w=Zu(typeof g!="number"?g:Ju(g,Vr)),k=m===tr?Qv:tr,x=e.rects.popper,b=e.elements[p?k:m],P=I0(mn(b)?b:b.contextElement||Zt(e.elements.popper),l,u,i),C=Wn(e.elements.reference),I=td({reference:C,element:x,placement:o}),R=js(Object.assign({},x,I)),A=m===tr?R:C,O={top:P.top-A.top+w.top,bottom:A.bottom-P.bottom+w.bottom,left:P.left-A.left+w.left,right:A.right-P.right+w.right},E=e.modifiersData.offset;if(m===tr&&E){var v=E[o];Object.keys(O).forEach(function($){var D=[ut,ct].indexOf($)>=0?1:-1,M=[Qe,ct].indexOf($)>=0?"y":"x";O[$]+=v[M]*D})}return O}function E0(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?qu:l,u=Hn(r),d=u?a?ul:ul.filter(function(p){return Hn(p)===u}):Vr,m=d.filter(function(p){return c.indexOf(p)>=0});m.length===0&&(m=d);var y=m.reduce(function(p,h){return p[h]=Tr(e,{placement:h,boundary:o,rootBoundary:s,padding:i})[Mt(h)],p},{});return Object.keys(y).sort(function(p,h){return y[p]-y[h]})}function $0(e){if(Mt(e)===Ti)return[];var t=po(e);return[fl(e),t,fl(t)]}function O0(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,d=n.rootBoundary,m=n.altBoundary,y=n.flipVariations,p=y===void 0?!0:y,h=n.allowedAutoPlacements,g=t.options.placement,w=Mt(g),k=w===g,x=l||(k||!p?[po(g)]:$0(g)),b=[g].concat(x).reduce(function(le,Y){return le.concat(Mt(Y)===Ti?E0(t,{placement:Y,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:h}):Y)},[]),P=t.rects.reference,C=t.rects.popper,I=new Map,R=!0,A=b[0],O=0;O<b.length;O++){var E=b[O],v=Mt(E),$=Hn(E)===_n,D=[Qe,ct].indexOf(v)>=0,M=D?"width":"height",T=Tr(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:m,padding:c}),F=D?$?ut:Ze:$?ct:Qe;P[M]>C[M]&&(F=po(F));var L=po(F),N=[];if(s&&N.push(T[v]<=0),a&&N.push(T[F]<=0,T[L]<=0),N.every(function(le){return le})){A=E,R=!1;break}I.set(E,N)}if(R)for(var W=p?3:1,J=function(Y){var G=b.find(function(Q){var _=I.get(Q);if(_)return _.slice(0,Y).every(function(B){return B})});if(G)return A=G,"break"},re=W;re>0;re--){var ae=J(re);if(ae==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const A0={name:"flip",enabled:!0,phase:"main",fn:O0,requiresIfExists:["offset"],data:{_skip:!1}};function ml(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 gl(e){return[Qe,ut,ct,Ze].some(function(t){return e[t]>=0})}function F0(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=ml(i,r),c=ml(a,o,s),u=gl(l),d=gl(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const L0={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:F0};function N0(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 j0(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=qu.reduce(function(u,d){return u[d]=N0(d,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 B0={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:j0};function V0(e){var t=e.state,n=e.name;t.modifiersData[n]=td({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const _0={name:"popperOffsets",enabled:!0,phase:"read",fn:V0,data:{}};function z0(e){return e==="x"?"y":"x"}function W0(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,d=n.padding,m=n.tether,y=m===void 0?!0:m,p=n.tetherOffset,h=p===void 0?0:p,g=Tr(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),w=Mt(t.placement),k=Hn(t.placement),x=!k,b=Ri(w),P=z0(b),C=t.modifiersData.popperOffsets,I=t.rects.reference,R=t.rects.popper,A=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,O=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,v={x:0,y:0};if(C){if(s){var $,D=b==="y"?Qe:Ze,M=b==="y"?ct:ut,T=b==="y"?"height":"width",F=C[b],L=F+g[D],N=F-g[M],W=y?-R[T]/2:0,J=k===_n?I[T]:R[T],re=k===_n?-R[T]:-I[T],ae=t.elements.arrow,le=y&&ae?Di(ae):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Qu(),G=Y[D],Q=Y[M],_=gr(0,I[T],le[T]),B=x?I[T]/2-W-_-G-O.mainAxis:J-_-G-O.mainAxis,K=x?-I[T]/2+W+_+Q+O.mainAxis:re+_+Q+O.mainAxis,ne=t.elements.arrow&&_r(t.elements.arrow),ee=ne?b==="y"?ne.clientTop||0:ne.clientLeft||0:0,V=($=E?.[b])!=null?$:0,q=F+B-V-ee,oe=F+K-V,te=gr(y?wo(L,q):L,F,y?dn(N,oe):N);C[b]=te,v[b]=te-F}if(a){var ce,se=b==="x"?Qe:Ze,fe=b==="x"?ct:ut,be=C[P],we=P==="y"?"height":"width",pe=be+g[se],qe=be-g[fe],Be=[Qe,Ze].indexOf(w)!==-1,ht=(ce=E?.[P])!=null?ce:0,mt=Be?pe:be-I[we]-R[we]-ht+O.altAxis,nt=Be?be+I[we]+R[we]-ht-O.altAxis:qe,rt=y&&Be?f0(mt,be,nt):gr(y?mt:pe,be,y?nt:qe);C[P]=rt,v[P]=rt-be}t.modifiersData[r]=v}}const H0={name:"preventOverflow",enabled:!0,phase:"main",fn:W0,requiresIfExists:["offset"]};function U0(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Y0(e){return e===et(e)||!at(e)?Ii(e):U0(e)}function G0(e){var t=e.getBoundingClientRect(),n=zn(t.width)/e.offsetWidth||1,r=zn(t.height)/e.offsetHeight||1;return n!==1||r!==1}function q0(e,t,n){n===void 0&&(n=!1);var r=at(t),o=at(t)&&G0(t),s=Zt(t),i=Wn(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((It(t)!=="body"||$i(s))&&(a=Y0(t)),at(t)?(l=Wn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Ei(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function K0(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 X0(e){var t=K0(e);return a0.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Q0(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Z0(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 yl={placement:"bottom",modifiers:[],strategy:"absolute"};function bl(){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 J0(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?yl:o;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},yl,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],m=!1,y={state:u,setOptions:function(w){var k=typeof w=="function"?w(u.options):w;h(),u.options=Object.assign({},s,u.options,k),u.scrollParents={reference:mn(a)?yr(a):a.contextElement?yr(a.contextElement):[],popper:yr(l)};var x=X0(Z0([].concat(r,u.options.modifiers)));return u.orderedModifiers=x.filter(function(b){return b.enabled}),p(),y.update()},forceUpdate:function(){if(!m){var w=u.elements,k=w.reference,x=w.popper;if(bl(k,x)){u.rects={reference:q0(k,_r(x),u.options.strategy==="fixed"),popper:Di(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var P=u.orderedModifiers[b],C=P.fn,I=P.options,R=I===void 0?{}:I,A=P.name;typeof C=="function"&&(u=C({state:u,options:R,name:A,instance:y})||u)}}}},update:Q0(function(){return new Promise(function(g){y.forceUpdate(),g(u)})}),destroy:function(){h(),m=!0}};if(!bl(a,l))return y;y.setOptions(c).then(function(g){!m&&c.onFirstUpdate&&c.onFirstUpdate(g)});function p(){u.orderedModifiers.forEach(function(g){var w=g.name,k=g.options,x=k===void 0?{}:k,b=g.effect;if(typeof b=="function"){var P=b({state:u,name:w,instance:y,options:x}),C=function(){};d.push(P||C)}})}function h(){d.forEach(function(g){return g()}),d=[]}return y}}var ex=[C0,_0,S0,u0,B0,A0,H0,y0,L0],tx=J0({defaultModifiers:ex});function nx(e){return typeof e=="function"?e():e}const nd=S.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,a]=S.useState(null),l=ke(S.isValidElement(r)?qn(r):null,n);if(Ue(()=>{s||a(nx(o)||document.body)},[o,s]),Ue(()=>{if(i&&!s)return Cs(n,i),()=>{Cs(n,null)}},[n,i,s]),s){if(S.isValidElement(r)){const c={ref:l};return S.cloneElement(r,c)}return r}return i&&Zp.createPortal(r,i)});function rx(e){return ge("MuiPopper",e)}he("MuiPopper",["root"]);function ox(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 Bs(e){return typeof e=="function"?e():e}function sx(e){return e.nodeType!==void 0}const ix=e=>{const{classes:t}=e;return me({root:["root"]},rx,t)},ax={},lx=S.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:m={},slots:y={},TransitionProps:p,ownerState:h,...g}=t,w=S.useRef(null),k=ke(w,n),x=S.useRef(null),b=ke(x,d),P=S.useRef(b);Ue(()=>{P.current=b},[b]),S.useImperativeHandle(d,()=>x.current,[]);const C=ox(c,s),[I,R]=S.useState(C),[A,O]=S.useState(Bs(r));S.useEffect(()=>{x.current&&x.current.forceUpdate()}),S.useEffect(()=>{r&&O(Bs(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=tx(A,w.current,{placement:C,...u,modifiers:T});return P.current(F),()=>{F.destroy(),P.current(null)}},[A,i,a,l,u,C]);const E={placement:I};p!==null&&(E.TransitionProps=p);const v=ix(t),$=y.root??"div",D=Pe({elementType:$,externalSlotProps:m.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:k},ownerState:t,className:v.root});return f.jsx($,{...D,children:typeof o=="function"?o(E):o})}),cx=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:d="bottom",popperOptions:m=ax,popperRef:y,style:p,transition:h=!1,slotProps:g={},slots:w={},...k}=t,[x,b]=S.useState(!0),P=()=>{b(!1)},C=()=>{b(!0)};if(!l&&!u&&(!h||x))return null;let I;if(s)I=s;else if(r){const O=Bs(r);I=O&&sx(O)?Ye(O).body:Ye(null).body}const R=!u&&l&&(!h||x)?"none":void 0,A=h?{in:u,onEnter:P,onExited:C}:void 0;return f.jsx(nd,{disablePortal:a,container:I,children:f.jsx(lx,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:n,open:h?!x:u,placement:d,popperOptions:m,popperRef:y,slotProps:g,slots:w,...k,style:{position:"fixed",top:0,left:0,display:R,...p},TransitionProps:A,children:o})})}),ux=Z(cx,{name:"MuiPopper",slot:"Root"})({}),rd=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:d,modifiers:m,open:y,placement:p,popperOptions:h,popperRef:g,transition:w,slots:k,slotProps:x,...b}=o,P=k?.root??a?.Root,C={anchorEl:s,container:c,disablePortal:u,keepMounted:d,modifiers:m,open:y,placement:p,popperOptions:h,popperRef:g,transition:w,...b};return f.jsx(ux,{as:i,direction:r?"rtl":"ltr",slots:{root:P},slotProps:x??l,...C,ref:n})}),dx=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function px(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 fx(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 hx(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||fx(e))}function mx(e){const t=[],n=[];return Array.from(e.querySelectorAll(dx)).forEach((r,o)=>{const s=px(r);s===-1||!hx(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 gx(){return!0}function od(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=mx,isEnabled:i=gx,open:a}=e,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(null),d=S.useRef(null),m=S.useRef(null),y=S.useRef(!1),p=S.useRef(null),h=ke(qn(t),p),g=S.useRef(null);S.useEffect(()=>{!a||!p.current||(y.current=!n)},[n,a]),S.useEffect(()=>{if(!a||!p.current)return;const x=Ye(p.current);return p.current.contains(x.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),y.current&&p.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),S.useEffect(()=>{if(!a||!p.current)return;const x=Ye(p.current),b=I=>{g.current=I,!(r||!i()||I.key!=="Tab")&&x.activeElement===p.current&&I.shiftKey&&(l.current=!0,u.current&&u.current.focus())},P=()=>{const I=p.current;if(I===null)return;if(!x.hasFocus()||!i()||l.current){l.current=!1;return}if(I.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==u.current)return;if(x.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!y.current)return;let R=[];if((x.activeElement===c.current||x.activeElement===u.current)&&(R=s(p.current)),R.length>0){const A=!!(g.current?.shiftKey&&g.current?.key==="Tab"),O=R[0],E=R[R.length-1];typeof O!="string"&&typeof E!="string"&&(A?E.focus():O.focus())}else I.focus()};x.addEventListener("focusin",P),x.addEventListener("keydown",b,!0);const C=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(C),x.removeEventListener("focusin",P),x.removeEventListener("keydown",b,!0)}},[n,r,o,i,a,s]);const w=x=>{d.current===null&&(d.current=x.relatedTarget),y.current=!0,m.current=x.target;const b=t.props.onFocus;b&&b(x)},k=x=>{d.current===null&&(d.current=x.relatedTarget),y.current=!0};return f.jsxs(S.Fragment,{children:[f.jsx("div",{tabIndex:a?0:-1,onFocus:k,ref:c,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:h,onFocus:w}),f.jsx("div",{tabIndex:a?0:-1,onFocus:k,ref:u,"data-testid":"sentinelEnd"})]})}function yx(e){return ge("MuiPickersPopper",e)}he("MuiPickersPopper",["root","paper"]);function bx(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const vx=(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},xx="@media (pointer: fine)",Sx="@media (prefers-reduced-motion: reduce)",$n=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),vl=$n&&$n[1]?parseInt($n[1],10):null,xl=$n&&$n[2]?parseInt($n[2],10):null,wx=vl&&vl<10||xl&&xl<13||!1,sd=()=>Tu(Sx,{defaultMatches:!1})||wx,Cx=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Px=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},yx,t)},kx=Z(rd,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Tx=Z(Br,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function Mx(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Dx(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&&Mx(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!u.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!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 Rx=S.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=ve(e,Cx),d=j({},o,{placement:r}),m=Pe({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:d});return f.jsx(n,j({},u,m,{onClick:y=>{l(y),m.onClick?.(y)},onTouchStart:y=>{c(y),m.onTouchStart?.(y)},ownerState:d,children:s}))});function Ix(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:d,slotProps:m,reduceAnimations:y}=t;S.useEffect(()=>{function M(T){l&&T.key==="Escape"&&a()}return document.addEventListener("keydown",M),()=>{document.removeEventListener("keydown",M)}},[a,l]);const p=S.useRef(null);S.useEffect(()=>{c==="tooltip"||s&&!s()||(l?p.current=Ke(document):p.current&&p.current instanceof HTMLElement&&setTimeout(()=>{p.current instanceof HTMLElement&&p.current.focus()}))},[l,c,s]);const[h,g,w]=Dx(l,i??a),k=S.useRef(null),x=ke(k,o),b=ke(x,h),P=t,C=Px(P),I=sd(),R=y??I,A=M=>{M.key==="Escape"&&(M.stopPropagation(),a())},O=d?.desktopTransition??R?hn:Pr,E=d?.desktopTrapFocus??od,v=d?.desktopPaper??Tx,$=d?.popper??kx,D=Pe({elementType:$,externalSlotProps:m?.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:A},className:C.root,ownerState:t});return f.jsx($,j({},D,{children:({TransitionProps:M,placement:T})=>f.jsx(E,j({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},m?.desktopTrapFocus,{children:f.jsx(O,j({},M,m?.desktopTransition,{children:f.jsx(Rx,{PaperComponent:v,ownerState:P,popperPlacement:T,ref:b,onPaperClick:g,onPaperTouchStart:w,paperClasses:C.paper,paperSlotProps:m?.desktopPaper,children:r})}))}))}))}const Ex=({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}},Oi=({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(p=>c==null?p:s.setTimezone(i,c,p));let d;e?d=e:c?d=c:r?d=i.getTimezone(r):d="default";const m=S.useMemo(()=>s.setTimezone(i,d,l),[s,i,d,l]),y=ue((p,...h)=>{const g=u(p);o?.(g,...h)});return{value:m,handleValueChange:y,timezone:d}},Ai=({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,...d)=>{l(u),s?.(u,...d)});return Oi({timezone:t,value:a,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:i})},$x=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},Ox=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:s}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&s?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},Ax=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},Fx=({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:d}=e,{current:m}=S.useRef(l),{current:y}=S.useRef(a!==void 0),[p,h]=S.useState(u),g=Le(),w=bn(),{isOpen:k,setIsOpen:x}=Ex(e),{timezone:b,value:P,handleValueChange:C}=Oi({timezone:u,value:a,defaultValue:m,referenceDate:d,onChange:i,valueManager:t}),[I,R]=S.useState(()=>{let B;return P!==void 0?B=P:m!==void 0?B=m:B=t.emptyValue,{draft:B,lastPublishedValue:B,lastCommittedValue:B,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),A=t.getTimezone(g,I.draft);p!==u&&(h(u),u&&A&&u!==A&&R(B=>j({},B,{draft:t.setTimezone(g,u,B.draft)})));const{getValidationErrorForNewValue:O}=Wu({props:e,validator:o,timezone:b,value:I.draft,onError:e.onError}),E=ue(B=>{const K={action:B,dateState:I,hasChanged:te=>!t.areValuesEqual(g,B.value,te),isControlled:y,closeOnSelect:c},ne=$x(K),ee=Ox(K),V=Ax(K);R(te=>j({},te,{draft:B.value,lastPublishedValue:ne?B.value:te.lastPublishedValue,lastCommittedValue:ee?B.value:te.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let q=null;const oe=()=>(q||(q={validationError:B.name==="setValueFromField"?B.context.validationError:O(B.value)},B.name==="setValueFromShortcut"&&(q.shortcut=B.shortcut)),q);ne&&C(B.value,oe()),ee&&s&&s(B.value,oe()),V&&x(!1)});if(I.lastControlledValue!==a){const B=t.areValuesEqual(g,I.draft,P);R(K=>j({},K,{lastControlledValue:a},B?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,hasBeenModifiedSinceMount:!0}))}const v=ue(()=>{E({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),$=ue(()=>{E({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),D=ue(()=>{E({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),M=ue(()=>{E({value:I.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),T=ue(()=>{E({value:t.getTodayValue(g,b,n),name:"setValueFromAction",pickerAction:"today"})}),F=ue(B=>{B.preventDefault(),x(!0)}),L=ue(B=>{B?.preventDefault(),x(!1)}),N=ue((B,K="partial")=>E({name:"setValueFromView",value:B,selectionState:K})),W=ue((B,K,ne)=>E({name:"setValueFromShortcut",value:B,changeImportance:K,shortcut:ne})),J=ue((B,K)=>E({name:"setValueFromField",value:B,context:K})),re={onClear:v,onAccept:$,onDismiss:D,onCancel:M,onSetToday:T,onOpen:F,onClose:L},ae={value:I.draft,onChange:J},le=S.useMemo(()=>t.cleanValue(g,I.draft),[g,t,I.draft]),Y={value:le,onChange:N,onClose:L,open:k},Q=j({},re,{value:le,onChange:N,onSelectShortcut:W,isValid:B=>{const K=o({adapter:w,value:B,timezone:b,props:e});return!t.hasError(K)}}),_=S.useMemo(()=>({onOpen:F,onClose:L,open:k}),[k,L,F]);return{open:k,fieldProps:ae,viewProps:Y,layoutProps:Q,actions:re,contextValue:_}};function id({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]),[d,m]=Dt({name:"useViews",state:"view",controlled:r,default:u.current}),y=S.useRef(s?d:null),[p,h]=Dt({name:"useViews",state:"focusedView",controlled:i,default:y.current});S.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(I=>!o.includes(I)))&&(m(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,m,d,o]);const g=o.indexOf(d),w=o[g-1]??null,k=o[g+1]??null,x=ue((I,R)=>{h(R?I:A=>I===A?null:A),a?.(I,R)}),b=ue(I=>{x(I,!0),I!==d&&(m(I),t&&t(I))}),P=ue(()=>{k&&b(k)}),C=ue((I,R,A)=>{const O=R==="finish",E=A?o.indexOf(A)<o.length-1:!!k;if(e(I,O&&E?"partial":R,A),A&&A!==d){const $=o[o.indexOf(A)+1];$&&b($)}else O&&P()});return{view:d,setView:b,focusedView:p,setFocusedView:x,nextView:k,previousView:w,defaultView:o.includes(n)?n:o[0],goToNextView:P,setValueAndGoToNextView:C}}const Lx=["className","sx"],Nx=({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:d,onViewChange:m,viewRenderers:y,timezone:p}=e,h=ve(e,Lx),{view:g,setView:w,defaultView:k,focusedView:x,setFocusedView:b,setValueAndGoToNextView:P}=id({view:c,views:u,openTo:d,onChange:i,onViewChange:m,autoFocus:r}),{hasUIView:C,viewModeLookup:I}=S.useMemo(()=>u.reduce((D,M)=>{let T;return y[M]!=null?T="UI":T="field",D.viewModeLookup[M]=T,T==="UI"&&(D.hasUIView=!0),D},{hasUIView:!1,viewModeLookup:{}}),[y,u]),R=S.useMemo(()=>u.reduce((D,M)=>y[M]!=null&&hb(M)?D+1:D,0),[y,u]),A=I[g],O=ue(()=>A==="UI"),[E,v]=S.useState(A==="UI"?g:null);return E!==g&&I[g]==="UI"&&v(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"&&E!=null&&(D=E),D!==k&&I[D]==="UI"&&I[k]==="UI"&&(D=k),D!==g&&w(D),b(D,!0)},[a]),{hasUIView:C,shouldRestoreFocus:O,layoutProps:{views:u,view:E,onViewChange:w},renderCurrentView:()=>{if(E==null)return null;const D=y[E];if(D==null)return null;const M=j({},h,n,t,{views:u,timezone:p,onChange:P,view:E,onViewChange:w,focusedView:x,onFocusedViewChange:b,showViewSwitcher:R>1,timeViewsCount:R});return o?o(y,E,M):D(M)}}};function Sl(){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 jx=(e,t)=>{const[n,r]=S.useState(Sl);return Ue(()=>{const s=()=>{r(Sl())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),bx(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Bx=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=jx(n.views,o),i=vt();return{layoutProps:j({},n,t,{isLandscape:s,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function Vx(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 ad=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:s,autoFocusView:i,rendererInterceptor:a,fieldRef:l})=>{const c=Fx({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=Nx({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),d=Bx({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),m=Vx({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:c.contextValue,ownerState:m}};function ld(e){return ge("MuiPickersLayout",e)}const en=he("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function _x(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"]),zx=S.createContext({}),Wx=S.createContext(void 0),Hx=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}${ie(t)}`,`size${ie(o)}`,`${s}Size${ie(o)}`,`color${ie(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${ie(a)}`],startIcon:["icon","startIcon",`iconSize${ie(o)}`],endIcon:["icon","endIcon",`iconSize${ie(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=me(c,_x,l);return{...l,...u}},cd=[{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}}}],Ux=Z(Vn,{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}${ie(n.color)}`],t[`size${ie(n.size)}`],t[`${n.variant}Size${ie(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"}}}]}})),Yx=Z("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ie(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}},...cd]})),Gx=Z("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ie(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}},...cd]})),qx=Z("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}}]})),wl=Z("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),fr=S.forwardRef(function(t,n){const r=S.useContext(zx),o=S.useContext(Wx),s=wr(r,t),i=Ce({props:s,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:m=!1,disableFocusRipple:y=!1,endIcon:p,focusVisibleClassName:h,fullWidth:g=!1,id:w,loading:k=null,loadingIndicator:x,loadingPosition:b="center",size:P="medium",startIcon:C,type:I,variant:R="text",...A}=i,O=xt(w),E=x??f.jsx(ki,{"aria-labelledby":O,color:"inherit",size:16}),v={...i,color:l,component:c,disabled:d,disableElevation:m,disableFocusRipple:y,fullWidth:g,loading:k,loadingIndicator:E,loadingPosition:b,size:P,type:I,variant:R},$=Hx(v),D=(C||k&&b==="start")&&f.jsx(Yx,{className:$.startIcon,ownerState:v,children:C||f.jsx(wl,{className:$.loadingIconPlaceholder,ownerState:v})}),M=(p||k&&b==="end")&&f.jsx(Gx,{className:$.endIcon,ownerState:v,children:p||f.jsx(wl,{className:$.loadingIconPlaceholder,ownerState:v})}),T=o||"",F=typeof k=="boolean"?f.jsx("span",{className:$.loadingWrapper,style:{display:"contents"},children:k&&f.jsx(qx,{className:$.loadingIndicator,ownerState:v,children:E})}):null;return f.jsxs(Ux,{ownerState:v,className:de(r.className,$.root,u,T),component:c,disabled:d||k,focusRipple:!y,focusVisibleClassName:de($.focusVisible,h),ref:n,type:I,id:k?O:w,...A,classes:$,children:[D,b!=="end"&&F,a,b==="end"&&F,M]})});function Kx(e){return ge("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const Xx=e=>{const{classes:t,disableSpacing:n}=e;return me({root:["root",!n&&"spacing"]},Kx,t)},Qx=Z("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}}}]}),Zx=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...i}=r,a={...r,disableSpacing:s},l=Xx(a);return f.jsx(Qx,{className:de(l.root,o),ownerState:a,ref:n,...i})}),Jx=["onAccept","onClear","onCancel","onSetToday","actions"];function eS(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=ve(e,Jx),a=Bt();if(s==null||s.length===0)return null;const l=s?.map(c=>{switch(c){case"clear":return f.jsx(fr,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return f.jsx(fr,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return f.jsx(fr,{onClick:t,children:a.okButtonLabel},c);case"today":return f.jsx(fr,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return f.jsx(Zx,j({},i,{children:l}))}const On=S.createContext({});function tS(e){return ge("MuiList",e)}he("MuiList",["root","padding","dense","subheader"]);const nS=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},tS,t)},rS=Z("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}}]}),ud=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,d=S.useMemo(()=>({dense:a}),[a]),m={...r,component:i,dense:a,disablePadding:l},y=nS(m);return f.jsx(On.Provider,{value:d,children:f.jsxs(rS,{as:i,className:de(y.root,s),ref:n,ownerState:m,...u,children:[c,o]})})});function oS(e){return ge("MuiListItem",e)}he("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const sS=he("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function iS(e){return ge("MuiListItemSecondaryAction",e)}he("MuiListItemSecondaryAction",["root","disableGutters"]);const aS=e=>{const{disableGutters:t,classes:n}=e;return me({root:["root",t&&"disableGutters"]},iS,n)},lS=Z("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}}]}),dd=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...s}=r,i=S.useContext(On),a={...r,disableGutters:i.disableGutters},l=aS(a);return f.jsx(lS,{className:de(l.root,o),ownerState:a,ref:n,...s})});dd.muiName="ListItemSecondaryAction";const cS=(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]},uS=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"]},oS,n)},dS=Z("div",{name:"MuiListItem",slot:"Root",overridesResolver:cS})(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:{[`& > .${sS.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}}]}))),pS=Z("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),fS=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:d,...m}={},dense:y=!1,disableGutters:p=!1,disablePadding:h=!1,divider:g=!1,secondaryAction:w,slotProps:k={},slots:x={},...b}=r,P=S.useContext(On),C=S.useMemo(()=>({dense:y||P.dense||!1,alignItems:o,disableGutters:p}),[o,P.dense,y,p]),I=S.useRef(null),R=S.Children.toArray(s),A=R.length&&to(R[R.length-1],["ListItemSecondaryAction"]),O={...r,alignItems:o,dense:C.dense,disableGutters:p,disablePadding:h,divider:g,hasSecondaryAction:A},E=uS(O),v=ke(I,n),$=x.root||l.Root||dS,D=k.root||c.root||{},M={className:de(E.root,D.className,i),...b};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(On.Provider,{value:C,children:f.jsxs(pS,{as:u,className:de(E.container,d),ref:v,ownerState:O,...m,children:[f.jsx($,{...D,...!Bn($)&&{as:T,ownerState:{...O,...D.ownerState}},...M,children:R}),R.pop()]})})):f.jsx(On.Provider,{value:C,children:f.jsxs($,{...D,as:T,ref:v,...!Bn($)&&{ownerState:{...O,...D.ownerState}},...M,children:[R,w&&f.jsx(dd,{children:w})]})})}),hS=$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 mS(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:d={[e]:void 0},...m}=s,y=u[e]||r,p=Wo(d[e],o),{props:{component:h,...g},internalRef:w}=Eu({className:n,...l,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:p}),k=ke(w,p?.ref,t.ref),x=e==="root"?h||c:h,b=Iu(y,{...e==="root"&&!c&&!u[e]&&i,...e!=="root"&&!u[e]&&i,...g,...x&&!a&&{as:x},...x&&a&&{component:x},ref:k},o);return[y,b]}const gS=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${ie(r)}`,`color${ie(o)}`,a&&"clickable",a&&`clickableColor${ie(o)}`,i&&"deletable",i&&`deletableColor${ie(o)}`,`${l}${ie(o)}`],label:["label",`label${ie(r)}`],avatar:["avatar",`avatar${ie(r)}`,`avatarColor${ie(o)}`],icon:["icon",`icon${ie(r)}`,`iconColor${ie(s)}`],deleteIcon:["deleteIcon",`deleteIcon${ie(r)}`,`deleteIconColor${ie(o)}`,`deleteIcon${ie(l)}Color${ie(o)}`]};return me(c,mS,t)},yS=Z("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${ie(a)}`]},{[`& .${xe.avatar}`]:t[`avatarColor${ie(r)}`]},{[`& .${xe.icon}`]:t.icon},{[`& .${xe.icon}`]:t[`icon${ie(a)}`]},{[`& .${xe.icon}`]:t[`iconColor${ie(o)}`]},{[`& .${xe.deleteIcon}`]:t.deleteIcon},{[`& .${xe.deleteIcon}`]:t[`deleteIcon${ie(a)}`]},{[`& .${xe.deleteIcon}`]:t[`deleteIconColor${ie(r)}`]},{[`& .${xe.deleteIcon}`]:t[`deleteIcon${ie(l)}Color${ie(r)}`]},t.root,t[`size${ie(a)}`],t[`color${ie(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${ie(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${ie(r)}`],t[l],t[`${l}${ie(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}}}}))]}})),bS=Z("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ie(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Cl(e){return e.key==="Backspace"||e.key==="Delete"}const pd=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:d,label:m,onClick:y,onDelete:p,onKeyDown:h,onKeyUp:g,size:w="medium",variant:k="filled",tabIndex:x,skipFocusWhenDisabled:b=!1,slots:P={},slotProps:C={},...I}=r,R=S.useRef(null),A=ke(R,n),O=G=>{G.stopPropagation(),p&&p(G)},E=G=>{G.currentTarget===G.target&&Cl(G)&&G.preventDefault(),h&&h(G)},v=G=>{G.currentTarget===G.target&&p&&Cl(G)&&p(G),g&&g(G)},$=i!==!1&&y?!0:i,D=$||p?Vn:l||"div",M={...r,component:D,disabled:u,size:w,color:a,iconColor:S.isValidElement(d)&&d.props.color||a,onDelete:!!p,clickable:$,variant:k},T=gS(M),F=D===Vn?{component:l||"div",focusVisibleClassName:T.focusVisible,...p&&{disableRipple:!0}}:{};let L=null;p&&(L=c&&S.isValidElement(c)?S.cloneElement(c,{className:de(c.props.className,T.deleteIcon),onClick:O}):f.jsx(hS,{className:T.deleteIcon,onClick:O}));let N=null;o&&S.isValidElement(o)&&(N=S.cloneElement(o,{className:de(T.avatar,o.props.className)}));let W=null;d&&S.isValidElement(d)&&(W=S.cloneElement(d,{className:de(T.icon,d.props.className)}));const J={slots:P,slotProps:C},[re,ae]=je("root",{elementType:yS,externalForwardedProps:{...J,...I},ownerState:M,shouldForwardComponentProp:!0,ref:A,className:de(T.root,s),additionalProps:{disabled:$&&u?!0:void 0,tabIndex:b&&u?-1:x,...F},getSlotProps:G=>({...G,onClick:Q=>{G.onClick?.(Q),y?.(Q)},onKeyDown:Q=>{G.onKeyDown?.(Q),E(Q)},onKeyUp:Q=>{G.onKeyUp?.(Q),v(Q)}})}),[le,Y]=je("label",{elementType:bS,externalForwardedProps:J,ownerState:M,className:T.label});return f.jsxs(re,{as:D,...ae,children:[N||W,f.jsx(le,{...Y,children:m}),L]})}),Mr=36,qo=2,Ko=320,vS=280,Fi=336,xS=["items","changeImportance","isLandscape","onChange","isValid"],SS=["getValue"];function wS(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,s=ve(e,xS);if(t==null||t.length===0)return null;const i=t.map(a=>{let{getValue:l}=a,c=ve(a,SS);const u=l({isValid:o});return j({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return f.jsx(ud,j({dense:!0,sx:[{maxHeight:Fi,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(a=>f.jsx(fS,{children:f.jsx(pd,j({},a))},a.id??a.label))}))}function CS(e){return e.view!==null}const PS=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"]},ld,t)},kS=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:s,view:i,views:a,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:m,isLandscape:y,disabled:p,readOnly:h,children:g,slots:w,slotProps:k}=e,x=PS(e),b=w?.actionBar??eS,P=Pe({elementType:b,externalSlotProps:k?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:x.actionBar,ownerState:j({},e,{wrapperVariant:t})}),C=f.jsx(b,j({},P)),I=w?.toolbar,R=Pe({elementType:I,externalSlotProps:k?.toolbar,additionalProps:{isLandscape:y,onChange:u,value:c,view:i,onViewChange:l,views:a,disabled:p,readOnly:h},className:x.toolbar,ownerState:j({},e,{wrapperVariant:t})}),A=CS(R)&&I?f.jsx(I,j({},R)):null,O=g,E=w?.tabs,v=i&&E?f.jsx(E,j({view:i,onViewChange:l,className:x.tabs},k?.tabs)):null,$=w?.shortcuts??wS,D=Pe({elementType:$,externalSlotProps:k?.shortcuts,additionalProps:{isValid:m,isLandscape:y,onChange:d},className:x.shortcuts,ownerState:{isValid:m,isLandscape:y,onChange:d,wrapperVariant:t}}),M=i&&$?f.jsx($,j({},D)):null;return{toolbar:A,content:O,tabs:v,actionBar:C,shortcuts:M}},TS=e=>{const{isLandscape:t,classes:n}=e;return me({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},ld,n)},MS=Z("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}}}]}),DS=Z("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),fd=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:s,tabs:i,actionBar:a,shortcuts:l}=kS(r),{sx:c,className:u,isLandscape:d,wrapperVariant:m}=r,y=TS(r);return f.jsxs(MS,{ref:n,sx:c,className:de(y.root,u),ownerState:r,children:[d?l:o,d?o:l,f.jsx(DS,{className:y.contentWrapper,children:m==="desktop"?f.jsxs(S.Fragment,{children:[s,i]}):f.jsxs(S.Fragment,{children:[i,s]})}),a]})}),RS=S.createContext(null);function hd(e){const{contextValue:t,localeText:n,children:r}=e;return f.jsx(RS.Provider,{value:t,children:f.jsx(Si,{localeText:n,children:r})})}const IS=["props","getOpenDialogAriaText"],ES=["ownerState"],$S=["ownerState"],OS=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,IS);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:m,timezone:y,name:p,label:h,inputRef:g,readOnly:w,disabled:k,autoFocus:x,localeText:b,reduceAnimations:P}=t,C=S.useRef(null),I=S.useRef(null),R=xt(),A=s?.toolbar?.hidden??!1,{open:O,actions:E,hasUIView:v,layoutProps:$,renderCurrentView:D,shouldRestoreFocus:M,fieldProps:T,contextValue:F,ownerState:L}=ad(j({},r,{props:t,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),N=o.inputAdornment??Hu,W=Pe({elementType:N,externalSlotProps:s?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),J=ve(W,ES),re=o.openPickerButton??jr,ae=Pe({elementType:re,externalSlotProps:s?.openPickerButton,additionalProps:{disabled:k||w,onClick:O?E.onClose:E.onOpen,"aria-label":n(T.value),edge:J.position},ownerState:t}),le=ve(ae,$S),Y=o.openPickerIcon,G=Pe({elementType:Y,externalSlotProps:s?.openPickerIcon,ownerState:L}),Q=o.field,_=Pe({elementType:Q,externalSlotProps:s?.field,additionalProps:j({},T,A&&{id:R},{readOnly:w,disabled:k,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:m,timezone:y,label:h,name:p,autoFocus:x&&!t.open,focused:O?!0:void 0},g?{inputRef:g}:{}),ownerState:t});v&&(_.InputProps=j({},_.InputProps,{ref:C},!t.disableOpenPicker&&{[`${J.position}Adornment`]:f.jsx(N,j({},J,{children:f.jsx(re,j({},le,{children:f.jsx(Y,j({},G))}))}))}));const B=j({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},_.slots),K=o.layout??fd;let ne=R;A&&(h?ne=`${R}-label`:ne=void 0);const ee=j({},s,{toolbar:j({},s?.toolbar,{titleId:R}),popper:j({"aria-labelledby":ne},s?.popper)}),V=ke(I,_.unstableFieldRef);return{renderPicker:()=>f.jsxs(hd,{contextValue:F,localeText:b,children:[f.jsx(Q,j({},_,{slots:B,slotProps:ee,unstableFieldRef:V})),f.jsx(Ix,j({role:"dialog",placement:"bottom-start",anchorEl:C.current},E,{open:O,slots:o,slotProps:ee,shouldRestoreFocus:M,reduceAnimations:P,children:f.jsx(K,j({},$,ee?.layout,{slots:o,slotProps:ee,children:D()}))}))]})}},AS=$e(f.jsx("path",{d:"M7 10l5 5 5-5z"})),FS=$e(f.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),LS=$e(f.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),NS=$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 jS=$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 Yr(e){return parseInt(e,10)||0}const BS={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function VS(e){for(const t in e)return!1;return!0}function Pl(e){return VS(e)||e.outerHeightStyle===0&&!e.overflowing}const _S=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),d=ke(n,u),m=S.useRef(null),y=S.useRef(null),p=S.useCallback(()=>{const x=u.current,b=y.current;if(!x||!b)return;const C=Lt(x).getComputedStyle(x);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};b.style.width=C.width,b.value=x.value||t.placeholder||"x",b.value.slice(-1)===`
|
|
134
|
+
`&&(b.value+=" ");const I=C.boxSizing,R=Yr(C.paddingBottom)+Yr(C.paddingTop),A=Yr(C.borderBottomWidth)+Yr(C.borderTopWidth),O=b.scrollHeight;b.value="x";const E=b.scrollHeight;let v=O;s&&(v=Math.max(Number(s)*E,v)),o&&(v=Math.min(Number(o)*E,v)),v=Math.max(v,E);const $=v+(I==="border-box"?R+A:0),D=Math.abs(v-O)<=1;return{outerHeightStyle:$,overflowing:D}},[o,s,t.placeholder]),h=ue(()=>{const x=u.current,b=p();if(!x||!b||Pl(b))return!1;const P=b.outerHeightStyle;return m.current!=null&&m.current!==P}),g=S.useCallback(()=>{const x=u.current,b=p();if(!x||!b||Pl(b))return;const P=b.outerHeightStyle;m.current!==P&&(m.current=P,x.style.height=`${P}px`),x.style.overflow=b.overflowing?"hidden":""},[p]),w=S.useRef(-1);Ue(()=>{const x=fc(g),b=u?.current;if(!b)return;const P=Lt(b);P.addEventListener("resize",x);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(()=>{h()&&(C.unobserve(b),cancelAnimationFrame(w.current),g(),w.current=requestAnimationFrame(()=>{C.observe(b)}))}),C.observe(b)),()=>{x.clear(),cancelAnimationFrame(w.current),P.removeEventListener("resize",x),C&&C.disconnect()}},[p,g,h]),Ue(()=>{g()});const k=x=>{c||g();const b=x.target,P=b.value.length,C=b.value.endsWith(`
|
|
135
|
+
`),I=b.selectionStart===P;C&&I&&b.setSelectionRange(P,P),r&&r(x)};return f.jsxs(S.Fragment,{children:[f.jsx("textarea",{value:a,onChange:k,ref:d,rows:s,style:i,...l}),f.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...BS.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function vn({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 kl(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Co(e,t=!1){return e&&(kl(e.value)&&e.value!==""||t&&kl(e.defaultValue)&&e.defaultValue!=="")}function zS(e){return e.startAdornment}function WS(e){return ge("MuiInputBase",e)}const gn=he("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Tl;const Xo=(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${ie(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Qo=(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]},HS=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:i,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:m,startAdornment:y,type:p}=e,h={root:["root",`color${ie(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",a&&"formControl",m&&m!=="medium"&&`size${ie(m)}`,u&&"multiline",y&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",p==="search"&&"inputTypeSearch",u&&"inputMultiline",m==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",d&&"readOnly"]};return me(h,WS,t)},Zo=Z("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Xo})(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",[`&.${gn.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%"}}]}))),Jo=Z("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Qo})(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] + .${gn.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},[`&.${gn.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"}}]}})),Ml=Sm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Li=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:d,disabled:m,disableInjectingGlobalStyles:y,endAdornment:p,error:h,fullWidth:g=!1,id:w,inputComponent:k="input",inputProps:x={},inputRef:b,margin:P,maxRows:C,minRows:I,multiline:R=!1,name:A,onBlur:O,onChange:E,onClick:v,onFocus:$,onKeyDown:D,onKeyUp:M,placeholder:T,readOnly:F,renderSuffix:L,rows:N,size:W,slotProps:J={},slots:re={},startAdornment:ae,type:le="text",value:Y,...G}=r,Q=x.value!=null?x.value:Y,{current:_}=S.useRef(Q!=null),B=S.useRef(),K=S.useCallback(Oe=>{},[]),ne=ke(B,b,x.ref,K),[ee,V]=S.useState(!1),q=ft(),oe=vn({props:r,muiFormControl:q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=q?q.focused:ee,S.useEffect(()=>{!q&&m&&ee&&(V(!1),O&&O())},[q,m,ee,O]);const te=q&&q.onFilled,ce=q&&q.onEmpty,se=S.useCallback(Oe=>{Co(Oe)?te&&te():ce&&ce()},[te,ce]);Ue(()=>{_&&se({value:Q})},[Q,se,_]);const fe=Oe=>{$&&$(Oe),x.onFocus&&x.onFocus(Oe),q&&q.onFocus?q.onFocus(Oe):V(!0)},be=Oe=>{O&&O(Oe),x.onBlur&&x.onBlur(Oe),q&&q.onBlur?q.onBlur(Oe):V(!1)},we=(Oe,..._t)=>{if(!_){const zt=Oe.target||B.current;if(zt==null)throw new Error(At(1));se({value:zt.value})}x.onChange&&x.onChange(Oe,..._t),E&&E(Oe,..._t)};S.useEffect(()=>{se(B.current)},[]);const pe=Oe=>{B.current&&Oe.currentTarget===Oe.target&&B.current.focus(),v&&v(Oe)};let qe=k,Be=x;R&&qe==="input"&&(N?Be={type:void 0,minRows:N,maxRows:N,...Be}:Be={type:void 0,maxRows:C,minRows:I,...Be},qe=_S);const ht=Oe=>{se(Oe.animationName==="mui-auto-fill-cancel"?B.current:{value:"x"})};S.useEffect(()=>{q&&q.setAdornedStart(!!ae)},[q,ae]);const mt={...r,color:oe.color||"primary",disabled:oe.disabled,endAdornment:p,error:oe.error,focused:oe.focused,formControl:q,fullWidth:g,hiddenLabel:oe.hiddenLabel,multiline:R,size:oe.size,startAdornment:ae,type:le},nt=HS(mt),rt=re.root||c.Root||Zo,Vt=J.root||u.root||{},gt=re.input||c.Input||Jo;return Be={...Be,...J.input??u.input},f.jsxs(S.Fragment,{children:[!y&&typeof Ml=="function"&&(Tl||(Tl=f.jsx(Ml,{}))),f.jsxs(rt,{...Vt,ref:n,onClick:pe,...G,...!Bn(rt)&&{ownerState:{...mt,...Vt.ownerState}},className:de(nt.root,Vt.className,a,F&&"MuiInputBase-readOnly"),children:[ae,f.jsx(Yo.Provider,{value:null,children:f.jsx(gt,{"aria-invalid":oe.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:d,disabled:oe.disabled,id:w,onAnimationStart:ht,name:A,placeholder:T,readOnly:F,required:oe.required,rows:N,value:Q,onKeyDown:D,onKeyUp:M,type:le,...Be,...!Bn(gt)&&{as:qe,ownerState:{...mt,...Be.ownerState}},ref:ne,className:de(nt.input,Be.className,F&&"MuiInputBase-readOnly"),onBlur:be,onChange:we,onFocus:fe})}),p,L?L({...oe,startAdornment:ae}):null]})]})});function US(e){return ge("MuiInput",e)}const Dn={...gn,...he("MuiInput",["root","underline","input"])},YS=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},US,t);return{...t,...o}},GS=Z(Zo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Xo(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"},[`&.${Dn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Dn.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(.${Dn.disabled}, .${Dn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Dn.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}`}}}))]}})),qS=Z(Jo,{name:"MuiInput",slot:"Input",overridesResolver:Qo})({}),Ni=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:d={},type:m="text",...y}=r,p=YS(r),g={root:{ownerState:{disableUnderline:o}}},w=u??i?Ge(u??i,g):g,k=d.root??s.Root??GS,x=d.input??s.Input??qS;return f.jsx(Li,{slots:{root:k,input:x},slotProps:w,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:m,...y,classes:p})});Ni.muiName="Input";function KS(e){return ge("MuiFilledInput",e)}const Yt={...gn,...he("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},XS=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${ie(s)}`,i&&"hiddenLabel",a&&"multiline"],input:["input"]},c=me(l,KS,t);return{...t,...c}},QS=Z(Zo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Xo(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}}]}})),ZS=Z(Jo,{name:"MuiFilledInput",slot:"Input",overridesResolver:Qo})(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}}]}))),ji=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:d,slots:m={},type:y="text",...p}=r,h={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:y},g=XS(r),w={root:{ownerState:h},input:{ownerState:h}},k=d??i?Ge(w,d??i):w,x=m.root??s.Root??QS,b=m.input??s.Input??ZS;return f.jsx(Li,{slots:{root:x,input:b},slotProps:k,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:y,...p,classes:g})});ji.muiName="Input";var Dl;const JS=Z("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%"}),ew=Z("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 tw(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(JS,{"aria-hidden":!0,className:r,ownerState:l,...i,children:f.jsx(ew,{ownerState:l,children:a?f.jsx("span",{children:o}):Dl||(Dl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function nw(e){return ge("MuiOutlinedInput",e)}const bt={...gn,...he("MuiOutlinedInput",["root","notchedOutline","input"])},rw=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nw,t);return{...t,...r}},ow=Z(Zo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Xo})(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"}}]}})),sw=Z(tw,{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}})),iw=Z(Jo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Qo})(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}}]}))),Bi=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:d={},type:m="text",...y}=r,p=rw(r),h=ft(),g=vn({props:r,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w={...r,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:h,fullWidth:s,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:m},k=u.root??o.Root??ow,x=u.input??o.Input??iw,[b,P]=je("notchedOutline",{elementType:sw,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:w,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:a!=null&&a!==""&&g.required?f.jsxs(S.Fragment,{children:[a," ","*"]}):a}});return f.jsx(Li,{slots:{root:k,input:x},slotProps:d,renderSuffix:C=>f.jsx(b,{...P,notched:typeof c<"u"?c:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:s,inputComponent:i,multiline:l,ref:n,type:m,...y,classes:{...p,notchedOutline:null}})});Bi.muiName="Input";function aw(e){return ge("MuiFormLabel",e)}const br=he("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),lw=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:a}=e,l={root:["root",`color${ie(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return me(l,aw,t)},cw=Z("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:{[`&.${br.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${br.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${br.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),uw=Z("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ee(({theme:e})=>({[`&.${br.error}`]:{color:(e.vars||e).palette.error.main}}))),dw=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:d,required:m,...y}=r,p=ft(),h=vn({props:r,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),g={...r,color:h.color||"primary",component:a,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},w=lw(g);return f.jsxs(cw,{as:a,ownerState:g,className:de(w.root,s),ref:n,...y,children:[o,h.required&&f.jsxs(uw,{ownerState:g,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})});function pw(e){return ge("MuiInputLabel",e)}he("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const fw=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${ie(r)}`,i],asterisk:[a&&"asterisk"]},c=me(l,pw,t);return{...t,...c}},hw=Z(dw,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${br.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)"}}]}))),Vi=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 d=i;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const m=vn({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),y={...r,disableAnimation:o,formControl:u,shrink:d,size:m.size,variant:m.variant,required:m.required,focused:m.focused},p=fw(y);return f.jsx(hw,{"data-shrink":d,ref:n,className:de(p.root,l),...c,ownerState:y,classes:p})});function mw(e){return ge("MuiFormControl",e)}he("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const gw=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ie(n)}`,r&&"fullWidth"]};return me(o,mw,t)},yw=Z("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ie(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),_i=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiFormControl"}),{children:o,className:s,color:i="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:m=!1,margin:y="none",required:p=!1,size:h="medium",variant:g="outlined",...w}=r,k={...r,color:i,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:m,margin:y,required:p,size:h,variant:g},x=gw(k),[b,P]=S.useState(()=>{let M=!1;return o&&S.Children.forEach(o,T=>{if(!to(T,["Input","Select"]))return;const F=to(T,["Select"])?T.props.input:T;F&&zS(F.props)&&(M=!0)}),M}),[C,I]=S.useState(()=>{let M=!1;return o&&S.Children.forEach(o,T=>{to(T,["Input","Select"])&&(Co(T.props,!0)||Co(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 E;S.useRef(!1);const v=S.useCallback(()=>{I(!0)},[]),$=S.useCallback(()=>{I(!1)},[]),D=S.useMemo(()=>({adornedStart:b,setAdornedStart:P,color:i,disabled:l,error:c,filled:C,focused:O,fullWidth:d,hiddenLabel:m,size:h,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:$,onFilled:v,registerEffect:E,required:p,variant:g}),[b,i,l,c,C,O,d,m,E,$,v,p,h,g]);return f.jsx(Yo.Provider,{value:D,children:f.jsx(yw,{as:a,ownerState:k,className:de(x.root,s),ref:n,...w,children:o})})});function bw(e){return ge("MuiFormHelperText",e)}const Rl=he("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Il;const vw=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${ie(r)}`,n&&"contained",a&&"focused",i&&"filled",l&&"required"]};return me(c,bw,t)},xw=Z("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ie(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,[`&.${Rl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Rl.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}}]}))),md=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:d,required:m,variant:y,...p}=r,h=ft(),g=vn({props:r,muiFormControl:h,states:["variant","size","disabled","error","filled","focused","required"]}),w={...r,component:i,contained:g.variant==="filled"||g.variant==="outlined",variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};delete w.ownerState;const k=vw(w);return f.jsx(xw,{as:i,className:de(k.root,s),ref:n,...p,ownerState:w,children:o===" "?Il||(Il=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function ms(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function El(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function gd(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 nr(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")||!gd(a,s)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const Sw=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:d="selectedMenu",...m}=t,y=S.useRef(null),p=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ue(()=>{o&&y.current.focus()},[o]),S.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:b})=>{const P=!y.current.style.width;if(x.clientHeight<y.current.clientHeight&&P){const C=`${Ru(Lt(x))}px`;y.current.style[b==="rtl"?"paddingLeft":"paddingRight"]=C,y.current.style.width=`calc(100% + ${C})`}return y.current}}),[]);const h=x=>{const b=y.current,P=x.key;if(x.ctrlKey||x.metaKey||x.altKey){u&&u(x);return}const I=Ye(b).activeElement;if(P==="ArrowDown")x.preventDefault(),nr(b,I,c,l,ms);else if(P==="ArrowUp")x.preventDefault(),nr(b,I,c,l,El);else if(P==="Home")x.preventDefault(),nr(b,null,c,l,ms);else if(P==="End")x.preventDefault(),nr(b,null,c,l,El);else if(P.length===1){const R=p.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 E=I&&!R.repeating&&gd(I,R);R.previousKeyMatched&&(E||nr(b,I,!1,l,ms,R))?x.preventDefault():R.previousKeyMatched=!1}u&&u(x)},g=ke(y,n);let w=-1;S.Children.forEach(i,(x,b)=>{if(!S.isValidElement(x)){w===b&&(w+=1,w>=i.length&&(w=-1));return}x.props.disabled||(d==="selectedMenu"&&x.props.selected||w===-1)&&(w=b),w===b&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(w+=1,w>=i.length&&(w=-1))});const k=S.Children.map(i,(x,b)=>{if(b===w){const P={};return s&&(P.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),S.cloneElement(x,P)}return x});return f.jsx(ud,{role:"menu",ref:g,className:a,onKeyDown:h,tabIndex:o?0:-1,...m,children:k})});function ww(e){const t=Ye(e);return t.body===e?Lt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function vr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $l(e){return parseInt(Lt(e).getComputedStyle(e).paddingRight,10)||0}function Cw(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Ol(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const a=!s.includes(i),l=!Cw(i);a&&l&&vr(i,o)})}function gs(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Pw(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(ww(r)){const i=Ru(Lt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${$l(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=`${$l(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 kw(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Tw{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&&vr(t.modalRef,!1);const o=kw(n);Ol(n,t.mount,t.modalRef,o,!0);const s=gs(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=gs(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=Pw(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=gs(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&&vr(t.modalRef,n),Ol(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&&vr(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Mw(e){return ge("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const Dw=e=>{const{classes:t,invisible:n}=e;return me({root:["root",n&&"invisible"]},Mw,t)},Rw=Z("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"}}]}),yd=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:d={},slots:m={},TransitionComponent:y,transitionDuration:p,...h}=r,g={...r,component:i,invisible:a},w=Dw(g),k={transition:y,root:c.Root,...m},x={...u,...d},b={component:i,slots:k,slotProps:x},[P,C]=je("root",{elementType:Rw,externalForwardedProps:b,className:de(w.root,s),ownerState:g}),[I,R]=je("transition",{elementType:hn,externalForwardedProps:b,ownerState:g});return f.jsx(I,{in:l,timeout:p,...h,...R,children:f.jsx(P,{"aria-hidden":!0,...C,classes:w,ref:n,children:o})})});function Iw(e){return typeof e=="function"?e():e}function Ew(e){return e?e.props.hasOwnProperty("in"):!1}const Al=()=>{},Gr=new Tw;function $w(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,d=S.useRef({}),m=S.useRef(null),y=S.useRef(null),p=ke(y,u),[h,g]=S.useState(!c),w=Ew(a);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const x=()=>Ye(m.current),b=()=>(d.current.modalRef=y.current,d.current.mount=m.current,d.current),P=()=>{Gr.mount(b(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},C=ue(()=>{const M=Iw(t)||x().body;Gr.add(b(),M),y.current&&P()}),I=()=>Gr.isTopModal(b()),R=ue(M=>{m.current=M,M&&(c&&I()?P():y.current&&vr(y.current,k))}),A=S.useCallback(()=>{Gr.remove(b(),k)},[k]);S.useEffect(()=>()=>{A()},[A]),S.useEffect(()=>{c?C():(!w||!o)&&A()},[c,A,w,o,C]);const O=M=>T=>{M.onKeyDown?.(T),!(T.key!=="Escape"||T.which===229||!I())&&(n||(T.stopPropagation(),l&&l(T,"escapeKeyDown")))},E=M=>T=>{M.onClick?.(T),T.target===T.currentTarget&&l&&l(T,"backdropClick")};return{getRootProps:(M={})=>{const T=gi(e);delete T.onTransitionEnter,delete T.onTransitionExited;const F={...T,...M};return{role:"presentation",...F,onKeyDown:O(F),ref:p}},getBackdropProps:(M={})=>{const T=M;return{"aria-hidden":!0,...T,onClick:E(T),open:c}},getTransitionProps:()=>{const M=()=>{g(!1),s&&s()},T=()=>{g(!0),i&&i(),o&&A()};return{onEnter:ca(M,a?.props.onEnter??Al),onExited:ca(T,a?.props.onExited??Al)}},rootRef:p,portalRef:R,isTopModal:I,exited:h,hasTransition:w}}function Ow(e){return ge("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const Aw=e=>{const{open:t,exited:n,classes:r}=e;return me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ow,r)},Fw=Z("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"}}]}))),Lw=Z(yd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),bd=S.forwardRef(function(t,n){const r=Ce({name:"MuiModal",props:t}),{BackdropComponent:o=Lw,BackdropProps:s,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:u,component:d,components:m={},componentsProps:y={},disableAutoFocus:p=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:g=!1,disablePortal:w=!1,disableRestoreFocus:k=!1,disableScrollLock:x=!1,hideBackdrop:b=!1,keepMounted:P=!1,onClose:C,onTransitionEnter:I,onTransitionExited:R,open:A,slotProps:O={},slots:E={},theme:v,...$}=r,D={...r,closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:h,disableEscapeKeyDown:g,disablePortal:w,disableRestoreFocus:k,disableScrollLock:x,hideBackdrop:b,keepMounted:P},{getRootProps:M,getBackdropProps:T,getTransitionProps:F,portalRef:L,isTopModal:N,exited:W,hasTransition:J}=$w({...D,rootRef:n}),re={...D,exited:W},ae=Aw(re),le={};if(c.props.tabIndex===void 0&&(le.tabIndex="-1"),J){const{onEnter:K,onExited:ne}=F();le.onEnter=K,le.onExited=ne}const Y={slots:{root:m.Root,backdrop:m.Backdrop,...E},slotProps:{...y,...O}},[G,Q]=je("root",{ref:n,elementType:Fw,externalForwardedProps:{...Y,...$,component:d},getSlotProps:M,ownerState:re,className:de(a,ae?.root,!re.open&&re.exited&&ae?.hidden)}),[_,B]=je("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:K=>T({...K,onClick:ne=>{K?.onClick&&K.onClick(ne)}}),className:de(s?.className,ae?.backdrop),ownerState:re});return!P&&!A&&(!J||W)?null:f.jsx(nd,{ref:L,container:u,disablePortal:w,children:f.jsxs(G,{...Q,children:[!b&&o?f.jsx(_,{...B}):null,f.jsx(od,{disableEnforceFocus:h,disableAutoFocus:p,disableRestoreFocus:k,isEnabled:N,open:A,children:S.cloneElement(c,le)})]})})});function Nw(e){return ge("MuiPopover",e)}he("MuiPopover",["root","paper"]);function Fl(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ll(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Nl(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function qr(e){return typeof e=="function"?e():e}const jw=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},Nw,t)},Bw=Z(bd,{name:"MuiPopover",slot:"Root"})({}),vd=Z(Br,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Vw=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:d,elevation:m=8,marginThreshold:y=16,open:p,PaperProps:h={},slots:g={},slotProps:w={},transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:b="auto",TransitionProps:P={},disableScrollLock:C=!1,...I}=r,R=S.useRef(),A={...r,anchorOrigin:i,anchorReference:l,elevation:m,marginThreshold:y,transformOrigin:k,TransitionComponent:x,transitionDuration:b,TransitionProps:P},O=jw(A),E=S.useCallback(()=>{if(l==="anchorPosition")return a;const K=qr(s),ee=(K&&K.nodeType===1?K:Ye(R.current).body).getBoundingClientRect();return{top:ee.top+Fl(ee,i.vertical),left:ee.left+Ll(ee,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),v=S.useCallback(K=>({vertical:Fl(K,k.vertical),horizontal:Ll(K,k.horizontal)}),[k.horizontal,k.vertical]),$=S.useCallback(K=>{const ne={width:K.offsetWidth,height:K.offsetHeight},ee=v(ne);if(l==="none")return{top:null,left:null,transformOrigin:Nl(ee)};const V=E();let q=V.top-ee.vertical,oe=V.left-ee.horizontal;const te=q+ne.height,ce=oe+ne.width,se=Lt(qr(s)),fe=se.innerHeight-y,be=se.innerWidth-y;if(y!==null&&q<y){const we=q-y;q-=we,ee.vertical+=we}else if(y!==null&&te>fe){const we=te-fe;q-=we,ee.vertical+=we}if(y!==null&&oe<y){const we=oe-y;oe-=we,ee.horizontal+=we}else if(ce>be){const we=ce-be;oe-=we,ee.horizontal+=we}return{top:`${Math.round(q)}px`,left:`${Math.round(oe)}px`,transformOrigin:Nl(ee)}},[s,l,E,v,y]),[D,M]=S.useState(p),T=S.useCallback(()=>{const K=R.current;if(!K)return;const ne=$(K);ne.top!==null&&K.style.setProperty("top",ne.top),ne.left!==null&&(K.style.left=ne.left),K.style.transformOrigin=ne.transformOrigin,M(!0)},[$]);S.useEffect(()=>(C&&window.addEventListener("scroll",T),()=>window.removeEventListener("scroll",T)),[s,C,T]);const F=()=>{T()},L=()=>{M(!1)};S.useEffect(()=>{p&&T()}),S.useImperativeHandle(o,()=>p?{updatePosition:()=>{T()}}:null,[p,T]),S.useEffect(()=>{if(!p)return;const K=fc(()=>{T()}),ne=Lt(qr(s));return ne.addEventListener("resize",K),()=>{K.clear(),ne.removeEventListener("resize",K)}},[s,p,T]);let N=b;const W={slots:{transition:x,...g},slotProps:{transition:P,paper:h,...w}},[J,re]=je("transition",{elementType:Pr,externalForwardedProps:W,ownerState:A,getSlotProps:K=>({...K,onEntering:(ne,ee)=>{K.onEntering?.(ne,ee),F()},onExited:ne=>{K.onExited?.(ne),L()}}),additionalProps:{appear:!0,in:p}});b==="auto"&&!J.muiSupportAuto&&(N=void 0);const ae=d||(s?Ye(qr(s)).body:void 0),[le,{slots:Y,slotProps:G,...Q}]=je("root",{ref:n,elementType:Bw,externalForwardedProps:{...W,...I},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:hc(typeof w.backdrop=="function"?w.backdrop(A):w.backdrop,{invisible:!0})},container:ae,open:p},ownerState:A,className:de(O.root,u)}),[_,B]=je("paper",{ref:R,className:O.paper,elementType:vd,externalForwardedProps:W,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:D?void 0:{opacity:0}},ownerState:A});return f.jsx(le,{...Q,...!Bn(le)&&{slots:Y,slotProps:G,disableScrollLock:C},children:f.jsx(J,{...re,timeout:N,children:f.jsx(_,{...B,children:c})})})});function _w(e){return ge("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const zw={vertical:"top",horizontal:"right"},Ww={vertical:"top",horizontal:"left"},Hw=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"],list:["list"]},_w,t)},Uw=Z(Vw,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Yw=Z(vd,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Gw=Z(Sw,{name:"MuiMenu",slot:"List"})({outline:0}),qw=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:d={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:p,...h}={},variant:g="selectedMenu",slots:w={},slotProps:k={},...x}=r,b=vt(),P={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:p,PaperProps:d,transitionDuration:y,TransitionProps:h,variant:g},C=Hw(P),I=o&&!a&&u,R=S.useRef(null),A=(N,W)=>{R.current&&R.current.adjustStyleForScrollbar(N,{direction:b?"rtl":"ltr"}),p&&p(N,W)},O=N=>{N.key==="Tab"&&(N.preventDefault(),c&&c(N,"tabKeyDown"))};let E=-1;S.Children.map(s,(N,W)=>{S.isValidElement(N)&&(N.props.disabled||(g==="selectedMenu"&&N.props.selected||E===-1)&&(E=W))});const v={slots:w,slotProps:{list:l,transition:h,paper:d,...k}},$=Pe({elementType:w.root,externalSlotProps:k.root,ownerState:P,className:[C.root,i]}),[D,M]=je("paper",{className:C.paper,elementType:Yw,externalForwardedProps:v,shouldForwardComponentProp:!0,ownerState:P}),[T,F]=je("list",{className:de(C.list,l.className),elementType:Gw,shouldForwardComponentProp:!0,externalForwardedProps:v,getSlotProps:N=>({...N,onKeyDown:W=>{O(W),N.onKeyDown?.(W)}}),ownerState:P}),L=typeof v.slotProps.transition=="function"?v.slotProps.transition(P):v.slotProps.transition;return f.jsx(Uw,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:b?"right":"left"},transformOrigin:b?zw:Ww,slots:{root:w.root,paper:D,backdrop:w.backdrop,...w.transition&&{transition:w.transition}},slotProps:{root:$,paper:M,backdrop:typeof k.backdrop=="function"?k.backdrop(P):k.backdrop,transition:{...L,onEntering:(...N)=>{A(...N),L?.onEntering?.(...N)}}},open:u,ref:n,transitionDuration:y,ownerState:P,...x,classes:m,children:f.jsx(T,{actions:R,autoFocus:o&&(E===-1||a),autoFocusItem:I,variant:g,...F,children:s})})});function Kw(e){return ge("MuiNativeSelect",e)}const zi=he("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Xw=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${ie(n)}`,s&&"iconOpen",r&&"disabled"]};return me(a,Kw,t)},xd=Z("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${zi.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}}}]})),Qw=Z(xd,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${zi.multiple}`]:t.multiple}]}})({}),Sd=Z("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${zi.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}}]})),Zw=Z(Sd,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ie(n.variant)}`],n.open&&t.iconOpen]}})({}),Jw=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},d=Xw(u);return f.jsxs(S.Fragment,{children:[f.jsx(Qw,{ownerState:u,className:de(d.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:f.jsx(Zw,{as:i,ownerState:u,className:d.icon})]})});function wd(e){return ge("MuiSelect",e)}const rr=he("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var jl;const eC=Z(xd,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${rr.select}`]:t.select},{[`&.${rr.select}`]:t[n.variant]},{[`&.${rr.error}`]:t.error},{[`&.${rr.multiple}`]:t.multiple}]}})({[`&.${rr.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),tC=Z(Sd,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ie(n.variant)}`],n.open&&t.iconOpen]}})({}),nC=Z("input",{shouldForwardProp:e=>pc(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Bl(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function rC(e){return e==null||typeof e=="string"&&!e.trim()}const oC=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${ie(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return me(a,wd,t)},sC=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:d,displayEmpty:m,error:y=!1,IconComponent:p,inputRef:h,labelId:g,MenuProps:w={},multiple:k,name:x,onBlur:b,onChange:P,onClose:C,onFocus:I,onOpen:R,open:A,readOnly:O,renderValue:E,required:v,SelectDisplayProps:$={},tabIndex:D,type:M,value:T,variant:F="standard",...L}=t,[N,W]=Dt({controlled:T,default:u,name:"Select"}),[J,re]=Dt({controlled:A,default:c,name:"Select"}),ae=S.useRef(null),le=S.useRef(null),[Y,G]=S.useState(null),{current:Q}=S.useRef(A!=null),[_,B]=S.useState(),K=ke(n,h),ne=S.useCallback(ye=>{le.current=ye,ye&&G(ye)},[]),ee=Y?.parentNode;S.useImperativeHandle(K,()=>({focus:()=>{le.current.focus()},node:ae.current,value:N}),[N]),S.useEffect(()=>{c&&J&&Y&&!Q&&(B(i?null:ee.clientWidth),le.current.focus())},[Y,i]),S.useEffect(()=>{s&&le.current.focus()},[s]),S.useEffect(()=>{if(!g)return;const ye=Ye(le.current).getElementById(g);if(ye){const Te=()=>{getSelection().isCollapsed&&le.current.focus()};return ye.addEventListener("click",Te),()=>{ye.removeEventListener("click",Te)}}},[g]);const V=(ye,Te)=>{ye?R&&R(Te):C&&C(Te),Q||(B(i?null:ee.clientWidth),re(ye))},q=ye=>{ye.button===0&&(ye.preventDefault(),le.current.focus(),V(!0,ye))},oe=ye=>{V(!1,ye)},te=S.Children.toArray(a),ce=ye=>{const Te=te.find(ze=>ze.props.value===ye.target.value);Te!==void 0&&(W(Te.props.value),P&&P(ye,Te))},se=ye=>Te=>{let ze;if(Te.currentTarget.hasAttribute("tabindex")){if(k){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&&(W(ze),P)){const Wt=Te.nativeEvent||Te,Ae=new Wt.constructor(Wt.type,Wt);Object.defineProperty(Ae,"target",{writable:!0,value:{value:ze,name:x}}),P(Ae,ye)}k||V(!1,Te)}},fe=ye=>{O||[" ","ArrowUp","ArrowDown","Enter"].includes(ye.key)&&(ye.preventDefault(),V(!0,ye))},be=Y!==null&&J,we=ye=>{!be&&b&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:N,name:x}}),b(ye))};delete L["aria-invalid"];let pe,qe;const Be=[];let ht=!1;(Co({value:N})||m)&&(E?pe=E(N):ht=!0);const mt=te.map(ye=>{if(!S.isValidElement(ye))return null;let Te;if(k){if(!Array.isArray(N))throw new Error(At(2));Te=N.some(ze=>Bl(ze,ye.props.value)),Te&&ht&&Be.push(ye.props.children)}else Te=Bl(N,ye.props.value),Te&&ht&&(qe=ye.props.children);return S.cloneElement(ye,{"aria-selected":Te?"true":"false",onClick:se(ye),onKeyUp:ze=>{ze.key===" "&&ze.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(ze)},role:"option",selected:Te,value:void 0,"data-value":ye.props.value})});ht&&(k?Be.length===0?pe=null:pe=Be.reduce((ye,Te,ze)=>(ye.push(Te),ze<Be.length-1&&ye.push(", "),ye),[]):pe=qe);let nt=_;!i&&Q&&Y&&(nt=ee.clientWidth);let rt;typeof D<"u"?rt=D:rt=d?null:0;const Vt=$.id||(x?`mui-component-select-${x}`:void 0),gt={...t,variant:F,value:N,open:be,error:y},Oe=oC(gt),_t={...w.PaperProps,...typeof w.slotProps?.paper=="function"?w.slotProps.paper(gt):w.slotProps?.paper},zt={...w.MenuListProps,...typeof w.slotProps?.list=="function"?w.slotProps.list(gt):w.slotProps?.list},Xn=xt();return f.jsxs(S.Fragment,{children:[f.jsx(eC,{as:"div",ref:ne,tabIndex:rt,role:"combobox","aria-controls":be?Xn:void 0,"aria-disabled":d?"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":v?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:fe,onMouseDown:d||O?null:q,onBlur:we,onFocus:I,...$,ownerState:gt,className:de($.className,Oe.select,l),id:Vt,children:rC(pe)?jl||(jl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):pe}),f.jsx(nC,{"aria-invalid":y,value:Array.isArray(N)?N.join(","):N,name:x,ref:ae,"aria-hidden":!0,onChange:ce,tabIndex:-1,disabled:d,className:Oe.nativeInput,autoFocus:s,required:v,...L,ownerState:gt}),f.jsx(tC,{as:p,className:Oe.icon,ownerState:gt}),f.jsx(qw,{id:`menu-${x||""}`,anchorEl:ee,open:be,onClose:oe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...w,slotProps:{...w.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:Xn,...zt},paper:{..._t,style:{minWidth:nt,..._t!=null?_t.style:null}}},children:mt})]})}),Cd=$e(f.jsx("path",{d:"M7 10l5 5 5-5z"})),iC=e=>{const{classes:t}=e,r=me({root:["root"]},wd,t);return{...t,...r}},Wi={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>pt(e)&&e!=="variant"},aC=Z(Ni,Wi)(""),lC=Z(Bi,Wi)(""),cC=Z(ji,Wi)(""),Hi=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=Cd,id:d,input:m,inputProps:y,label:p,labelId:h,MenuProps:g,multiple:w=!1,native:k=!1,onClose:x,onOpen:b,open:P,renderValue:C,SelectDisplayProps:I,variant:R="outlined",...A}=r,O=k?Jw:sC,E=ft(),v=vn({props:r,muiFormControl:E,states:["variant","error"]}),$=v.variant||R,D={...r,variant:$,classes:i},M=iC(D),{root:T,...F}=M,L=m||{standard:f.jsx(aC,{ownerState:D}),outlined:f.jsx(lC,{label:p,ownerState:D}),filled:f.jsx(cC,{ownerState:D})}[$],N=ke(n,qn(L));return f.jsx(S.Fragment,{children:S.cloneElement(L,{inputComponent:O,inputProps:{children:s,error:v.error,IconComponent:u,variant:$,type:void 0,multiple:w,...k?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:h,MenuProps:g,onClose:x,onOpen:b,open:P,renderValue:C,SelectDisplayProps:{id:d,...I}},...y,classes:y?Ge(F,y.classes):F,...m?m.props.inputProps:{}},...(w&&k||c)&&$==="outlined"?{notched:!0}:{},ref:N,className:de(L.props.className,a,M.root),...!m&&{variant:$},...A})})});Hi.muiName="Select";function uC(e){return ge("MuiTextField",e)}he("MuiTextField",["root"]);const dC={standard:Ni,filled:ji,outlined:Bi},pC=e=>{const{classes:t}=e;return me({root:["root"]},uC,t)},fC=Z(_i,{name:"MuiTextField",slot:"Root"})({}),Pd=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:d=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:p,id:h,InputLabelProps:g,inputProps:w,InputProps:k,inputRef:x,label:b,maxRows:P,minRows:C,multiline:I=!1,name:R,onBlur:A,onChange:O,onFocus:E,placeholder:v,required:$=!1,rows:D,select:M=!1,SelectProps:T,slots:F={},slotProps:L={},type:N,value:W,variant:J="outlined",...re}=r,ae={...r,autoFocus:s,color:l,disabled:u,error:d,fullWidth:y,multiline:I,required:$,select:M,variant:J},le=pC(ae),Y=xt(h),G=p&&Y?`${Y}-helper-text`:void 0,Q=b&&Y?`${Y}-label`:void 0,_=dC[J],B={slots:F,slotProps:{input:k,inputLabel:g,htmlInput:w,formHelperText:m,select:T,...L}},K={},ne=B.slotProps.inputLabel;J==="outlined"&&(ne&&typeof ne.shrink<"u"&&(K.notched=ne.shrink),K.label=b),M&&((!T||!T.native)&&(K.id=void 0),K["aria-describedby"]=void 0);const[ee,V]=je("root",{elementType:fC,shouldForwardComponentProp:!0,externalForwardedProps:{...B,...re},ownerState:ae,className:de(le.root,a),ref:n,additionalProps:{disabled:u,error:d,fullWidth:y,required:$,color:l,variant:J}}),[q,oe]=je("input",{elementType:_,externalForwardedProps:B,additionalProps:K,ownerState:ae}),[te,ce]=je("inputLabel",{elementType:Vi,externalForwardedProps:B,ownerState:ae}),[se,fe]=je("htmlInput",{elementType:"input",externalForwardedProps:B,ownerState:ae}),[be,we]=je("formHelperText",{elementType:md,externalForwardedProps:B,ownerState:ae}),[pe,qe]=je("select",{elementType:Hi,externalForwardedProps:B,ownerState:ae}),Be=f.jsx(q,{"aria-describedby":G,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:y,multiline:I,name:R,rows:D,maxRows:P,minRows:C,type:N,value:W,id:Y,inputRef:x,onBlur:A,onChange:O,onFocus:E,placeholder:v,inputProps:fe,slots:{input:F.htmlInput?se:void 0},...oe});return f.jsxs(ee,{...V,children:[b!=null&&b!==""&&f.jsx(te,{htmlFor:Y,id:Q,...ce,children:b}),M?f.jsx(pe,{"aria-describedby":G,id:Y,labelId:Q,value:W,input:Be,...qe,children:i}):Be,p&&f.jsx(be,{id:G,...we,children:p})]})}),hC=({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},mC=({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},gC=(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}},yC=({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=Ou(e,i),c=Nu(e,l.contentType,l.type,i),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let m=d?e.formatByString(t,i):"",y=null;if(u)if(c)y=m===""?e.formatByString(s,i).length:m.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${i} should have a 'maxDigitNumber' property on it's adapter`);y=l.maxLength,d&&(m=vi(Fu(fn(m,o),y),o))}return j({},l,{format:i,maxLength:y,value:m,placeholder:gC(e,r,l,i),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},bC=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),s=[];let i="";const a=Object.keys(t.formatTokenMap).sort((y,p)=>p.length-y.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${a.join("|")})*$`),u=new RegExp(`^(${a.join("|")})`),d=y=>r.find(p=>p.start<=y&&p.end>=y);let m=0;for(;m<n.length;){const y=d(m),p=y!=null,h=l.exec(n.slice(m))?.[1];if(!p&&h!=null&&c.test(h)){let g=h;for(;g.length>0;){const w=u.exec(g)[1];g=g.slice(w.length),s.push(yC(j({},e,{now:o,token:w,startSeparator:i}))),i=""}m+=h.length}else{const g=n[m];p&&y?.start===m||y?.end===m||(s.length===0?i+=g:s[s.length-1].endSeparator+=g),m+=1}}return s.length===0&&i.length>0&&s.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:i,endSeparator:"",modified:!1}),s},vC=({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}),Vl=e=>{let t=hC(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=mC(j({},e,{expandedFormat:t})),r=bC(j({},e,{expandedFormat:t,escapedParts:n}));return vC(j({},e,{sections:r}))},xC=e=>{const t=Le(),n=Bt(),r=bn(),o=vt(),{valueManager:s,fieldValueManager:i,valueType:a,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:m,onChange:y,format:p,formatDensity:h="dense",selectedSections:g,onSelectedSectionsChange:w,shouldRespectLeadingZeros:k=!1,timezone:x,enableAccessibleFieldDOMStructure:b=!1}}=e,{timezone:P,value:C,handleValueChange:I}=Oi({timezone:x,value:u,defaultValue:d,referenceDate:m,onChange:y,valueManager:s}),R=S.useMemo(()=>xb(t),[t]),A=S.useMemo(()=>Tb(t,R,P),[t,R,P]),O=S.useCallback((Y,G=null)=>i.getSectionsFromValue(t,Y,G,Q=>Vl({utils:t,localeText:n,localizedDigits:R,format:p,date:Q,formatDensity:h,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:b,isRtl:o})),[i,p,n,R,o,k,t,h,b]),[E,v]=S.useState(()=>{const Y=O(C),G={sections:Y,value:C,referenceValue:s.emptyValue,tempValueStrAndroid:null},Q=gb(Y),_=s.getInitialReferenceValue({referenceDate:m,value:C,utils:t,props:c,granularity:Q,timezone:P});return j({},G,{referenceValue:_})}),[$,D]=Dt({controlled:g,default:null,name:"useField",state:"selectedSections"}),M=Y=>{D(Y),w?.(Y)},T=S.useMemo(()=>Rs($,E.sections),[$,E.sections]),F=T==="all"?0:T,L=({value:Y,referenceValue:G,sections:Q})=>{if(v(B=>j({},B,{sections:Q,value:Y,referenceValue:G,tempValueStrAndroid:null})),s.areValuesEqual(t,E.value,Y))return;const _={validationError:l({adapter:r,value:Y,timezone:P,props:c})};I(Y,_)},N=(Y,G)=>{const Q=[...E.sections];return Q[Y]=j({},Q[Y],{value:G,modified:!0}),Q},W=()=>{L({value:s.emptyValue,referenceValue:E.referenceValue,sections:O(s.emptyValue)})},J=()=>{if(F==null)return;const Y=E.sections[F],G=i.getActiveDateManager(t,E,Y),_=G.getSections(E.sections).filter(ee=>ee.value!=="").length===(Y.value===""?0:1),B=N(F,""),K=_?null:t.getInvalidDate(),ne=G.getNewValuesFromNewActiveDate(K);L(j({},ne,{sections:B}))},re=Y=>{const G=(B,K)=>{const ne=t.parse(B,p);if(ne==null||!t.isValid(ne))return null;const ee=Vl({utils:t,localeText:n,localizedDigits:R,format:p,date:ne,formatDensity:h,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:b,isRtl:o});return rl(t,ne,ee,K,!1)},Q=i.parseValueStr(Y,E.referenceValue,G),_=i.updateReferenceValue(t,Q,E.referenceValue);L({value:Q,referenceValue:_,sections:O(Q,E.sections)})},ae=({activeSection:Y,newSectionValue:G,shouldGoToNextSection:Q})=>{Q&&F<E.sections.length-1&&M(F+1);const _=i.getActiveDateManager(t,E,Y),B=N(F,G),K=_.getSections(B),ne=Cb(t,K,R);let ee,V;if(ne!=null&&t.isValid(ne)){const q=rl(t,ne,K,_.referenceDate,!0);ee=_.getNewValuesFromNewActiveDate(q),V=!0}else ee=_.getNewValuesFromNewActiveDate(ne),V=(ne!=null&&!t.isValid(ne))!=(_.date!=null&&!t.isValid(_.date));return V?L(j({},ee,{sections:B})):v(q=>j({},q,ee,{sections:B,tempValueStrAndroid:null}))},le=Y=>v(G=>j({},G,{tempValueStrAndroid:Y}));return S.useEffect(()=>{const Y=O(E.value);v(G=>j({},G,{sections:Y}))},[p,t.locale,o]),S.useEffect(()=>{let Y;s.areValuesEqual(t,E.value,C)?Y=s.getTimezone(t,E.value)!==s.getTimezone(t,C):Y=!0,Y&&v(G=>j({},G,{value:C,referenceValue:i.updateReferenceValue(t,C,G.referenceValue),sections:O(C)}))},[C]),{state:E,activeSectionIndex:F,parsedSelectedSections:T,setSelectedSections:M,clearValue:W,clearActiveSection:J,updateSectionValue:ae,updateValueFromValueStr:re,setTempAndroidValueStr:le,getSectionsFromValue:O,sectionsValueBoundaries:A,localizedDigits:R,timezone:P}},SC=5e3,Tn=e=>e.saveQuery!=null,wC=({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 p=setTimeout(()=>c(),SC);return()=>{clearTimeout(p)}}return()=>{}},[a,c]);const u=({keyPressed:p,sectionIndex:h},g,w)=>{const k=p.toLowerCase(),x=e[h];if(a!=null&&(!w||w(a.value))&&a.sectionIndex===h){const P=`${a.value}${k}`,C=g(P,x);if(!Tn(C))return l({sectionIndex:h,value:P,sectionType:x.type}),C}const b=g(k,x);return Tn(b)&&!b.saveQuery?(c(),null):(l({sectionIndex:h,value:k,sectionType:x.type}),Tn(b)?null:b)},d=p=>{const h=(k,x,b)=>{const P=x.filter(C=>C.toLowerCase().startsWith(b));return P.length===0?{saveQuery:!1}:{sectionValue:P[0],shouldGoToNextSection:P.length===1}},g=(k,x,b,P)=>{const C=I=>Au(i,s,x.type,I);if(x.contentType==="letter")return h(x.format,C(x.format),k);if(b&&P!=null&&Ou(i,b).contentType==="letter"){const I=C(b),R=h(b,I,k);return Tn(R)?{saveQuery:!1}:j({},R,{sectionValue:P(R.sectionValue,I)})}return{saveQuery:!1}};return u(p,(k,x)=>{switch(x.type){case"month":{const b=P=>tl(i,P,i.formats.month,x.format);return g(k,x,i.formats.month,b)}case"weekDay":{const b=(P,C)=>C.indexOf(P).toString();return g(k,x,i.formats.weekday,b)}case"meridiem":return g(k,x);default:return{saveQuery:!1}}})},m=p=>{const h=(w,k)=>{const x=fn(w,r),b=Number(x),P=n[k.type]({currentDate:null,format:k.format,contentType:k.contentType});if(b>P.maximum)return{saveQuery:!1};if(b<P.minimum)return{saveQuery:!0};const C=b*10>P.maximum||x.length===P.maximum.toString().length;return{sectionValue:Lu(i,b,P,r,k),shouldGoToNextSection:C}};return u(p,(w,k)=>{if(k.contentType==="digit"||k.contentType==="digit-with-letter")return h(w,k);if(k.type==="month"){Nu(i,"digit","month","MM");const x=h(w,{type:k.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Tn(x))return x;const b=tl(i,x.sectionValue,"MM",k.format);return j({},x,{sectionValue:b})}if(k.type==="weekDay"){const x=h(w,k);if(Tn(x))return x;const b=Ho(i,k.format)[Number(x.sectionValue)-1];return j({},x,{sectionValue:b})}return{saveQuery:!1}},w=>el(w,r))};return{applyCharacterEditing:ue(p=>{const h=e[p.sectionIndex],w=el(p.keyPressed,r)?m(j({},p,{keyPressed:vi(p.keyPressed,r)})):d(p);if(w==null){o(null);return}t({activeSection:h,newSectionValue:w.sectionValue,shouldGoToNextSection:w.shouldGoToNextSection})}),resetCharacterQuery:c}},CC=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:s,onFocus:i,onInput:a,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:m,resetCharacterQuery:y,setSelectedSections:p,parsedSelectedSections:h,state:g,clearActiveSection:w,clearValue:k,updateSectionValue:x,updateValueFromValueStr:b,sectionOrder:P,areAllSectionsEmpty:C,sectionsValueBoundaries:I}=e,R=S.useRef(null),A=ke(r,R),O=Bt(),E=Le(),v=xt(),[$,D]=S.useState(!1),M=S.useMemo(()=>({syncSelectionToDOM:()=>{if(!R.current)return;const V=document.getSelection();if(!V)return;if(h==null){V.rangeCount>0&&R.current.getRoot().contains(V.getRangeAt(0).startContainer)&&V.removeAllRanges(),$&&R.current.getRoot().blur();return}if(!R.current.getRoot().contains(Ke(document)))return;const q=new window.Range;let oe;h==="all"?oe=R.current.getRoot():g.sections[h].type==="empty"?oe=R.current.getSectionContainer(h):oe=R.current.getSectionContent(h),q.selectNodeContents(oe),oe.focus(),V.removeAllRanges(),V.addRange(q)},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 q=Rs(V,g.sections);D(!0),R.current.getSectionContent(q).focus()},setSelectedSections:V=>{if(!R.current)return;const q=Rs(V,g.sections);D((q==="all"?0:q)!==null),p(V)},isFieldFocused:()=>{const V=Ke(document);return!!R.current&&R.current.getRoot().contains(V)}}),[h,p,g.sections,$]),T=ue(V=>{if(!R.current)return;const q=g.sections[V];R.current.getSectionContent(V).innerHTML=q.value||q.placeholder,M.syncSelectionToDOM()}),F=ue((V,...q)=>{V.isDefaultPrevented()||!R.current||(D(!0),s?.(V,...q),h==="all"?setTimeout(()=>{const oe=document.getSelection().getRangeAt(0).startOffset;if(oe===0){p(P.startIndex);return}let te=0,ce=0;for(;ce<oe&&te<g.sections.length;){const se=g.sections[te];te+=1,ce+=`${se.startSeparator}${se.value||se.placeholder}${se.endSeparator}`.length}p(te-1)}):$?R.current.getRoot().contains(V.target)||p(P.startIndex):(D(!0),p(P.startIndex)))}),L=ue(V=>{if(a?.(V),!R.current||h!=="all")return;const oe=V.target.textContent??"";R.current.getRoot().innerHTML=g.sections.map(te=>`${te.startSeparator}${te.value||te.placeholder}${te.endSeparator}`).join(""),M.syncSelectionToDOM(),oe.length===0||oe.charCodeAt(0)===10?(y(),k(),p("all")):oe.length>1?b(oe):(h==="all"&&p(0),m({keyPressed:oe,sectionIndex:0}))}),N=ue(V=>{if(l?.(V),n||h!=="all"){V.preventDefault();return}const q=V.clipboardData.getData("text");V.preventDefault(),y(),b(q)}),W=ue((...V)=>{if(i?.(...V),$||!R.current)return;D(!0),R.current.getSectionIndexFromDOMElement(Ke(document))!=null||p(P.startIndex)}),J=ue((...V)=>{o?.(...V),setTimeout(()=>{if(!R.current)return;const q=Ke(document);!R.current.getRoot().contains(q)&&(D(!1),p(null))})}),re=ue(V=>q=>{q.isDefaultPrevented()||p(V)}),ae=ue(V=>{V.preventDefault()}),le=ue(V=>()=>{p(V)}),Y=ue(V=>{if(V.preventDefault(),n||t||typeof h!="number")return;const q=g.sections[h],oe=V.clipboardData.getData("text"),te=/^[a-zA-Z]+$/.test(oe),ce=/^[0-9]+$/.test(oe),se=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(oe);q.contentType==="letter"&&te||q.contentType==="digit"&&ce||q.contentType==="digit-with-letter"&&se?(y(),x({activeSection:q,newSectionValue:oe,shouldGoToNextSection:!0})):!te&&!ce&&(y(),b(oe))}),G=ue(V=>{V.preventDefault(),V.dataTransfer.dropEffect="none"}),Q=ue(V=>{if(!R.current)return;const q=V.target,oe=q.textContent??"",te=R.current.getSectionIndexFromDOMElement(q),ce=g.sections[te];if(n||!R.current){T(te);return}if(oe.length===0){if(ce.value===""){T(te);return}const se=V.nativeEvent.inputType;if(se==="insertParagraph"||se==="insertLineBreak"){T(te);return}y(),w();return}m({keyPressed:oe,sectionIndex:te}),T(te)});Ue(()=>{if(!(!$||!R.current)){if(h==="all")R.current.getRoot().focus();else if(typeof h=="number"){const V=R.current.getSectionContent(h);V&&V.focus()}}},[h,$]);const _=S.useMemo(()=>g.sections.reduce((V,q)=>(V[q.type]=I[q.type]({currentDate:null,contentType:q.contentType,format:q.format}),V),{}),[I,g.sections]),B=h==="all",K=S.useMemo(()=>g.sections.map((V,q)=>{const oe=!B&&!t&&!n;return{container:{"data-sectionindex":q,onClick:re(q)},content:{tabIndex:B||q>0?-1:0,contentEditable:!B&&!t&&!n,role:"spinbutton",id:`${v}-${V.type}`,"aria-labelledby":`${v}-${V.type}`,"aria-readonly":n,"aria-valuenow":Eb(V,E),"aria-valuemin":_[V.type].minimum,"aria-valuemax":_[V.type].maximum,"aria-valuetext":V.value?Ib(V,E):O.empty,"aria-label":O[V.type],"aria-disabled":t,spellCheck:oe?!1:void 0,autoCapitalize:oe?"off":void 0,autoCorrect:oe?"off":void 0,[parseInt(S.version,10)>=17?"enterKeyHint":"enterkeyhint"]:oe?"next":void 0,children:V.value||V.placeholder,onInput:Q,onPaste:Y,onFocus:le(q),onDragOver:G,onMouseUp:ae,inputMode:V.contentType==="letter"?"text":"numeric"},before:{children:V.startSeparator},after:{children:V.endSeparator}}}),[g.sections,le,Y,G,Q,re,ae,t,n,B,O,E,_,v]),ne=ue(V=>{b(V.target.value)}),ee=S.useMemo(()=>C?"":d.getV7HiddenInputValueFromSections(g.sections),[C,g.sections,d]);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(`
|
|
136
|
+
`));u&&R.current&&R.current.getSectionContent(P.startIndex).focus()},[]),{interactions:M,returnedValue:{autoFocus:u,readOnly:n,focused:c??$,sectionListRef:A,onBlur:J,onClick:F,onFocus:W,onInput:L,onPaste:N,enableAccessibleFieldDOMStructure:!0,elements:K,tabIndex:h===0?-1:0,contentEditable:B,value:ee,onChange:ne,areAllSectionsEmpty:C}}},Rn=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),PC=(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=Rn(c).length,d=c.length,m=Rn(l),y=o+(m===""?0:l.indexOf(m[0]))+a.startSeparator.length,p=y+m.length;s.push(j({},a,{start:r,end:r+u,startInInput:y,endInInput:p})),r+=u,o+=d}return s},kC=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:d=!1},parsedSelectedSections:m,activeSectionIndex:y,state:p,fieldValueManager:h,valueManager:g,applyCharacterEditing:w,resetCharacterQuery:k,updateSectionValue:x,updateValueFromValueStr:b,clearActiveSection:P,clearValue:C,setTempAndroidValueStr:I,setSelectedSections:R,getSectionsFromValue:A,areAllSectionsEmpty:O,localizedDigits:E}=e,v=S.useRef(null),$=ke(l,v),D=S.useMemo(()=>PC(p.sections,E,t),[p.sections,E,t]),M=S.useMemo(()=>({syncSelectionToDOM:()=>{if(!v.current)return;if(m==null){v.current.scrollLeft&&(v.current.scrollLeft=0);return}if(v.current!==Ke(document))return;const Q=v.current.scrollTop;if(m==="all")v.current.select();else{const _=D[m],B=_.type==="empty"?_.startInInput-_.startSeparator.length:_.startInInput,K=_.type==="empty"?_.endInInput+_.endSeparator.length:_.endInInput;(B!==v.current.selectionStart||K!==v.current.selectionEnd)&&v.current===Ke(document)&&v.current.setSelectionRange(B,K),clearTimeout(r.current),r.current=setTimeout(()=>{v.current&&v.current===Ke(document)&&v.current.selectionStart===v.current.selectionEnd&&(v.current.selectionStart!==B||v.current.selectionEnd!==K)&&M.syncSelectionToDOM()})}v.current.scrollTop=Q},getActiveSectionIndexFromDOM:()=>{const Q=v.current.selectionStart??0,_=v.current.selectionEnd??0;if(Q===0&&_===0)return null;const B=Q<=D[0].startInInput?1:D.findIndex(K=>K.startInInput-K.startSeparator.length>Q);return B===-1?D.length-1:B-1},focusField:(Q=0)=>{Ke(document)!==v.current&&(v.current?.focus(),R(Q))},setSelectedSections:Q=>R(Q),isFieldFocused:()=>v.current===Ke(document)}),[v,m,D,R]),T=()=>{const Q=v.current.selectionStart??0;let _;Q<=D[0].startInInput||Q>=D[D.length-1].endInInput?_=1:_=D.findIndex(K=>K.startInInput-K.startSeparator.length>Q);const B=_===-1?D.length-1:_-1;R(B)},F=ue((...Q)=>{o?.(...Q);const _=v.current;clearTimeout(n.current),n.current=setTimeout(()=>{!_||_!==v.current||y==null&&(_.value.length&&Number(_.selectionEnd)-Number(_.selectionStart)===_.value.length?R("all"):T())})}),L=ue((Q,..._)=>{Q.isDefaultPrevented()||(s?.(Q,..._),T())}),N=ue(Q=>{if(i?.(Q),Q.preventDefault(),u||d)return;const _=Q.clipboardData.getData("text");if(typeof m=="number"){const B=p.sections[m],K=/^[a-zA-Z]+$/.test(_),ne=/^[0-9]+$/.test(_),ee=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(_);if(B.contentType==="letter"&&K||B.contentType==="digit"&&ne||B.contentType==="digit-with-letter"&&ee){k(),x({activeSection:B,newSectionValue:_,shouldGoToNextSection:!0});return}if(K||ne)return}k(),b(_)}),W=ue((...Q)=>{a?.(...Q),R(null)}),J=ue(Q=>{if(u)return;const _=Q.target.value;if(_===""){k(),C();return}const B=Q.nativeEvent.data,K=B&&B.length>1,ne=K?B:_,ee=Rn(ne);if(m==="all"&&R(y),y==null||K){b(K?B:ee);return}let V;if(m==="all"&&ee.length===1)V=ee;else{const q=Rn(h.getV6InputValueFromSections(D,E,t));let oe=-1,te=-1;for(let be=0;be<q.length;be+=1)oe===-1&&q[be]!==ee[be]&&(oe=be),te===-1&&q[q.length-be-1]!==ee[ee.length-be-1]&&(te=be);const ce=D[y];if(oe<ce.start||q.length-te-1>ce.end)return;const fe=ee.length-q.length+ce.end-Rn(ce.endSeparator||"").length;V=ee.slice(ce.start+Rn(ce.startSeparator||"").length,fe)}if(V.length===0){Db()&&I(ne),k(),P();return}w({keyPressed:V,sectionIndex:y})}),re=S.useMemo(()=>c!==void 0?c:h.getV6InputValueFromSections(A(g.emptyValue),E,t),[c,h,A,g.emptyValue,E,t]),ae=S.useMemo(()=>p.tempValueStrAndroid??h.getV6InputValueFromSections(p.sections,E,t),[p.sections,h,p.tempValueStrAndroid,E,t]);S.useEffect(()=>(v.current&&v.current===Ke(document)&&R("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const le=S.useMemo(()=>y==null||p.sections[y].contentType==="letter"?"text":"numeric",[y,p.sections]),G=!(v.current&&v.current===Ke(document))&&O;return{interactions:M,returnedValue:{readOnly:u,onBlur:W,onClick:L,onFocus:F,onPaste:N,inputRef:$,enableAccessibleFieldDOMStructure:!1,placeholder:re,inputMode:le,autoComplete:"off",value:G?"":ae,onChange:J}}},TC=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:d},fieldValueManager:m,valueManager:y,validator:p}=e,h=vt(),g=xC(e),{state:w,activeSectionIndex:k,parsedSelectedSections:x,setSelectedSections:b,clearValue:P,clearActiveSection:C,updateSectionValue:I,setTempAndroidValueStr:R,sectionsValueBoundaries:A,localizedDigits:O,timezone:E}=g,v=wC({sections:w.sections,updateSectionValue:I,sectionsValueBoundaries:A,localizedDigits:O,setTempAndroidValueStr:R,timezone:E}),{resetCharacterQuery:$}=v,D=y.areValuesEqual(t,w.value,y.emptyValue),M=s?CC:kC,T=S.useMemo(()=>Rb(w.sections,h&&!s),[w.sections,h,s]),{returnedValue:F,interactions:L}=M(j({},e,g,v,{areAllSectionsEmpty:D,sectionOrder:T})),N=ue(Y=>{if(l?.(Y),!i)switch(!0){case((Y.ctrlKey||Y.metaKey)&&String.fromCharCode(Y.keyCode)==="A"&&!Y.shiftKey&&!Y.altKey):{Y.preventDefault(),b("all");break}case Y.key==="ArrowRight":{if(Y.preventDefault(),x==null)b(T.startIndex);else if(x==="all")b(T.endIndex);else{const G=T.neighbors[x].rightIndex;G!==null&&b(G)}break}case Y.key==="ArrowLeft":{if(Y.preventDefault(),x==null)b(T.endIndex);else if(x==="all")b(T.startIndex);else{const G=T.neighbors[x].leftIndex;G!==null&&b(G)}break}case Y.key==="Delete":{if(Y.preventDefault(),a)break;x==null||x==="all"?P():C(),$();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(Y.key):{if(Y.preventDefault(),a||k==null)break;x==="all"&&b(k);const G=w.sections[k],Q=m.getActiveDateManager(t,w,G),_=Sb(t,E,G,Y.key,A,O,Q.date,{minutesStep:o});I({activeSection:G,newSectionValue:_,shouldGoToNextSection:!1});break}}});Ue(()=>{L.syncSelectionToDOM()});const{hasValidationError:W}=Wu({props:n,validator:p,timezone:E,value:w.value,onError:n.onError}),J=S.useMemo(()=>c!==void 0?c:W,[W,c]);S.useEffect(()=>{!J&&k==null&&$()},[w.referenceValue,k,J]),S.useEffect(()=>{w.tempValueStrAndroid!=null&&k!=null&&($(),C())},[w.sections]),S.useImperativeHandle(r,()=>({getSections:()=>w.sections,getActiveSectionIndex:L.getActiveSectionIndexFromDOM,setSelectedSections:L.setSelectedSections,focusField:L.focusField,isFieldFocused:L.isFieldFocused}));const re=ue((Y,...G)=>{Y.preventDefault(),d?.(Y,...G),P(),L.isFieldFocused()?b(T.startIndex):L.focusField(0)}),ae={onKeyDown:N,onClear:re,error:J,clearable:!!(u&&!D&&!a&&!i)},le={disabled:i,readOnly:a};return j({},e.forwardedProps,ae,le,F)},MC=["clearable","onClear","InputProps","sx","slots","slotProps"],DC=["ownerState"],RC=e=>{const t=Bt(),{clearable:n,onClear:r,InputProps:o,sx:s,slots:i,slotProps:a}=e,l=ve(e,MC),c=i?.clearButton??jr,u=Pe({elementType:c,externalSlotProps:a?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=ve(u,DC),m=i?.clearIcon??jS,y=Pe({elementType:m,externalSlotProps:a?.clearIcon,ownerState:{}});return j({},l,{InputProps:j({},o,{endAdornment:f.jsxs(S.Fragment,{children:[n&&f.jsx(Hu,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:f.jsx(c,j({},d,{onClick:r,children:f.jsx(m,j({fontSize:"small"},y))}))}),o?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(s)?s:[s]]})},IC=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],EC=(e,t)=>S.useMemo(()=>{const n=j({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return IC.forEach(o),_u.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),$C=e=>{const t=Le(),n=Fr();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)})},OC=e=>{const t=$C(e),{forwardedProps:n,internalProps:r}=EC(t,"date");return TC({forwardedProps:n,internalProps:r,valueManager:Rt,fieldValueManager:Ob,validator:Lr,valueType:"date"})};function AC(e){return ge("MuiPickersTextField",e)}he("MuiPickersTextField",["root","focused","disabled","error","required"]);function FC(e){return ge("MuiPickersInputBase",e)}const An=he("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function LC(e){return ge("MuiPickersSectionList",e)}const or=he("MuiPickersSectionList",["root","section","sectionContent"]),NC=["slots","slotProps","elements","sectionListRef"],kd=Z("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Td=Z("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Md=Z("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Dd=Z("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),jC=e=>{const{classes:t}=e;return me({root:["root"],section:["section"],sectionContent:["sectionContent"]},LC,t)};function BC(e){const{slots:t,slotProps:n,element:r,classes:o}=e,s=t?.section??Td,i=Pe({elementType:s,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=t?.sectionContent??Dd,l=Pe({elementType:a,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=t?.sectionSeparator??Md,u=Pe({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=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({},d))]}))}const VC=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:s,elements:i,sectionListRef:a}=r,l=ve(r,NC),c=jC(r),u=S.useRef(null),d=ke(n,u),m=h=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${h} before the mount of the component.`);return u.current};S.useImperativeHandle(a,()=>({getRoot(){return m("getRoot")},getSectionContainer(h){return m("getSectionContainer").querySelector(`.${or.section}[data-sectionindex="${h}"]`)},getSectionContent(h){return m("getSectionContent").querySelector(`.${or.section}[data-sectionindex="${h}"] .${or.sectionContent}`)},getSectionIndexFromDOMElement(h){const g=m("getSectionIndexFromDOMElement");if(h==null||!g.contains(h))return null;let w=null;return h.classList.contains(or.section)?w=h:h.classList.contains(or.sectionContent)&&(w=h.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const y=o?.root??kd,p=Pe({elementType:y,externalSlotProps:s?.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return f.jsx(y,j({},p,{children:p.contentEditable?i.map(({content:h,before:g,after:w})=>`${g.children}${h.children}${w.children}`).join(""):f.jsx(S.Fragment,{children:i.map((h,g)=>f.jsx(BC,{slots:o,slotProps:s,element:h,classes:c},g))})}))}),_C=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],zC=e=>Math.round(e*1e5)/1e5,es=Z("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:`${zC(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Ui=Z(kd,{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}}]})),WC=Z(Td,{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"})),HC=Z(Dd,{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"})),UC=Z(Md,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),YC=Z("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(j({},ab)),GC=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:s,readOnly:i,color:a,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",i&&"readOnly",r&&"error",s&&"fullWidth",`color${ie(a)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return me(d,FC,o)},Yi=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:d,slots:m,slotProps:y,contentEditable:p,tabIndex:h,onInput:g,onPaste:w,onKeyDown:k,name:x,readOnly:b,inputProps:P,inputRef:C,sectionListRef:I}=r,R=ve(r,_C),A=S.useRef(null),O=ke(n,A),E=ke(P?.ref,C),v=vt(),$=ft();if(!$)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const D=W=>{if($.disabled){W.stopPropagation();return}$.onFocus?.(W)};S.useEffect(()=>{$&&$.setAdornedStart(!!u)},[$,u]),S.useEffect(()=>{$&&(s?$.onEmpty():$.onFilled())},[$,s]);const M=j({},r,$,{isRtl:v}),T=GC(M),F=m?.root||es,L=Pe({elementType:F,externalSlotProps:y?.root,externalForwardedProps:R,additionalProps:{"aria-invalid":$.error,ref:O},className:T.root,ownerState:M}),N=m?.input||Ui;return f.jsxs(F,j({},L,{children:[u,f.jsx(VC,{sectionListRef:I,elements:o,contentEditable:p,tabIndex:h,className:T.sectionsContainer,onFocus:D,onBlur:$.onBlur,onInput:g,onPaste:w,onKeyDown:k,slots:{root:N,section:WC,sectionContent:HC,sectionSeparator:UC},slotProps:{root:{ownerState:M},sectionContent:{className:An.sectionContent},sectionSeparator:({position:W})=>({className:W==="before"?An.sectionBefore:An.sectionAfter})}}),c,d?d(j({},$)):null,f.jsx(YC,j({name:x,className:T.input,value:i,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:b,required:$.required,disabled:$.disabled},P,{ref:E}))]}))});function qC(e){return ge("MuiPickersOutlinedInput",e)}const yt=j({},An,he("MuiPickersOutlinedInput",["root","notchedOutline","input"])),KC=["children","className","label","notched","shrink"],XC=Z("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}}),_l=Z("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),QC=Z("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 ZC(e){const{className:t,label:n}=e,r=ve(e,KC),o=n!=null&&n!=="",s=j({},e,{withLabel:o});return f.jsx(XC,j({"aria-hidden":!0,className:t},r,{ownerState:s,children:f.jsx(QC,{ownerState:s,children:o?f.jsx(_l,{children:n}):f.jsx(_l,{className:"notranslate",children:""})})}))}const JC=["label","autoFocus","ownerState","notched"],e1=Z(es,{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}}}))}}),t1=Z(Ui,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),n1=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qC,t);return j({},t,r)},Rd=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:s,notched:i}=r,a=ve(r,JC),l=ft(),c=j({},r,s,l,{color:l?.color||"primary"}),u=n1(c);return f.jsx(Yi,j({slots:{root:e1,input:t1},renderSuffix:d=>f.jsx(ZC,{shrink:!!(i||d.adornedStart||d.focused||d.filled),notched:!!(i||d.adornedStart||d.focused||d.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}))});Rd.muiName="Input";function r1(e){return ge("MuiPickersFilledInput",e)}const nn=j({},An,he("MuiPickersFilledInput",["root","underline","input"])),o1=["label","autoFocus","disableUnderline","ownerState"],s1=Z(es,{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}}]}}),i1=Z(Ui,{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}}]}),a1=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},r1,t);return j({},t,o)},Id=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ve(r,o1),l=ft(),c=j({},r,i,l,{color:l?.color||"primary"}),u=a1(c);return f.jsx(Yi,j({slots:{root:s1,input:i1},slotProps:{root:{disableUnderline:s}}},a,{label:o,classes:u,ref:n}))});Id.muiName="Input";function l1(e){return ge("MuiPickersFilledInput",e)}const sr=j({},An,he("MuiPickersInput",["root","input"])),c1=["label","autoFocus","disableUnderline","ownerState"],u1=Z(es,{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"},[`&.${sr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${sr.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(.${sr.disabled}, .${sr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${sr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),d1=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},l1,t);return j({},t,o)},Ed=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ve(r,c1),l=ft(),c=j({},r,i,l,{disableUnderline:s,color:l?.color||"primary"}),u=d1(c);return f.jsx(Yi,j({slots:{root:u1}},a,{label:o,classes:u,ref:n}))});Ed.muiName="Input";const p1=["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"],f1={standard:Ed,filled:Id,outlined:Rd},h1=Z(_i,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),m1=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return me({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},AC,r)},g1=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:d=!1,InputProps:m,inputProps:y,inputRef:p,sectionListRef:h,elements:g,areAllSectionsEmpty:w,onClick:k,onKeyDown:x,onKeyUp:b,onPaste:P,onInput:C,endAdornment:I,startAdornment:R,tabIndex:A,contentEditable:O,focused:E,value:v,onChange:$,fullWidth:D,id:M,name:T,helperText:F,FormHelperTextProps:L,label:N,InputLabelProps:W}=r,J=ve(r,p1),re=S.useRef(null),ae=ke(n,re),le=xt(M),Y=F&&le?`${le}-helper-text`:void 0,G=N&&le?`${le}-label`:void 0,Q=j({},r,{color:a,disabled:l,error:c,focused:E,required:d,variant:u}),_=m1(Q),B=f1[u];return f.jsxs(h1,j({className:de(_.root,i),ref:ae,focused:E,onFocus:o,onBlur:s,disabled:l,variant:u,error:c,color:a,fullWidth:D,required:d,ownerState:Q},J,{children:[f.jsx(Vi,j({htmlFor:le,id:G},W,{children:N})),f.jsx(B,j({elements:g,areAllSectionsEmpty:w,onClick:k,onKeyDown:x,onKeyUp:b,onInput:C,onPaste:P,endAdornment:I,startAdornment:R,tabIndex:A,contentEditable:O,value:v,onChange:$,id:le,fullWidth:D,inputProps:y,inputRef:p,sectionListRef:h,label:N,name:T,role:"group","aria-labelledby":G,"aria-describedby":Y,"aria-live":Y?"polite":void 0},m)),F&&f.jsx(md,j({id:Y},L,{children:F}))]}))}),y1=["enableAccessibleFieldDOMStructure"],b1=["InputProps","readOnly"],v1=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],x1=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ve(e,y1);if(t){const{InputProps:d,readOnly:m}=n,y=ve(n,b1);return j({},y,{InputProps:j({},d??{},{readOnly:m})})}const{onPaste:r,onKeyDown:o,inputMode:s,readOnly:i,InputProps:a,inputProps:l,inputRef:c}=n,u=ve(n,v1);return j({},u,{InputProps:j({},a??{},{readOnly:i}),inputProps:j({},l??{},{inputMode:s,onPaste:r,onKeyDown:o,ref:c})})},S1=["slots","slotProps","InputProps","inputProps"],$d=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDateField"}),{slots:o,slotProps:s,InputProps:i,inputProps:a}=r,l=ve(r,S1),c=r,u=o?.textField??(t.enableAccessibleFieldDOMStructure?g1:Pd),d=Pe({elementType:u,externalSlotProps:s?.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=j({},a,d.inputProps),d.InputProps=j({},i,d.InputProps);const m=OC(d),y=x1(m),p=RC(j({},y,{slots:o,slotProps:s}));return f.jsx(u,j({},p))}),Od=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:a})=>{const l=bn();return S.useCallback(c=>Lr({adapter:l,value:c,timezone:a,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i}})!==null,[l,e,t,n,r,o,s,i,a])},w1=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return j({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const s=o.newTimezone;if(n.getTimezone(r.currentMonth)===s)return r;let i=n.setTimezone(r.currentMonth,s);return n.getMonth(i)!==n.getMonth(r.currentMonth)&&(i=n.setMonth(i,n.getMonth(r.currentMonth))),j({},r,{currentMonth:i})}case"finishMonthSwitchingAnimation":return j({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const s=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return j({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:s&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},C1=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:s=!1,maxDate:i,minDate:a,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,m=Le(),y=S.useRef(w1(!!c,s,m)).current,p=S.useMemo(()=>Rt.getInitialReferenceValue({value:t,utils:m,timezone:d,props:e,referenceDate:n,granularity:Pt.day}),[n,d]),[h,g]=S.useReducer(y,{isMonthSwitchingAnimating:!1,focusedDay:p,currentMonth:m.startOfMonth(p),slideDirection:"left"});S.useEffect(()=>{g({type:"changeMonthTimezone",newTimezone:m.getTimezone(p)})},[p,m]);const w=S.useCallback(C=>{g(j({type:"changeMonth"},C)),l&&l(C.newMonth)},[l]),k=S.useCallback(C=>{const I=C;m.isSameMonth(I,h.currentMonth)||w({newMonth:m.startOfMonth(I),direction:m.isAfterDay(I,h.currentMonth)?"left":"right"})},[h.currentMonth,w,m]),x=Od({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:d}),b=S.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),P=ue((C,I)=>{x(C)||g({type:"changeFocusedDay",focusedDay:C,withoutMonthSwitchingAnimation:I})});return{referenceDate:p,calendarState:h,changeMonth:k,changeFocusedDay:P,isDateDisabled:x,onMonthSwitchingAnimationEnd:b,handleChangeMonth:w}},P1=e=>ge("MuiPickersFadeTransitionGroup",e);he("MuiPickersFadeTransitionGroup",["root"]);const k1=e=>{const{classes:t}=e;return me({root:["root"]},P1,t)},T1=Z(Nr,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Ad(e){const t=Fe({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=k1(t),a=yn();return o?n:f.jsx(T1,{className:de(i.root,r),children:f.jsx(hn,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},s)})}function M1(e){return ge("MuiPickersDay",e)}const rn=he("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),D1=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],R1=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"]},M1,l)},Fd=({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 ${qo}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}`}}}]}),Ld=(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]},I1=Z(Vn,{name:"MuiPickersDay",slot:"Root",overridesResolver:Ld})(Fd),E1=Z("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Ld})(({theme:e})=>j({},Fd({theme:e}),{opacity:0,pointerEvents:"none"})),ir=()=>{},$1=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:d,onDaySelect:m,onFocus:y=ir,onBlur:p=ir,onKeyDown:h=ir,onMouseDown:g=ir,onMouseEnter:w=ir,outsideCurrentMonth:k,selected:x=!1,showDaysOutsideCurrentMonth:b=!1,children:P,today:C=!1}=r,I=ve(r,D1),R=j({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:x,showDaysOutsideCurrentMonth:b,today:C}),A=R1(R),O=Le(),E=S.useRef(null),v=ke(E,n);Ue(()=>{o&&!a&&!u&&!k&&E.current.focus()},[o,a,u,k]);const $=M=>{g(M),k&&M.preventDefault()},D=M=>{a||m(i),k&&M.currentTarget.focus(),d&&d(M)};return k&&!b?f.jsx(E1,{className:de(A.root,A.hiddenDaySpacingFiller,s),ownerState:R,role:I.role}):f.jsx(I1,j({className:de(A.root,s),ref:v,centerRipple:!0,disabled:a,tabIndex:x?0:-1,onKeyDown:M=>h(M,i),onFocus:M=>y(M,i),onBlur:M=>p(M,i),onMouseEnter:M=>w(M,i),onClick:D,onMouseDown:$},I,{ownerState:R,children:P||O.format(i,"dayOfMonth")}))}),O1=S.memo($1),A1=e=>ge("MuiPickersSlideTransition",e),ot=he("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),F1=["children","className","reduceAnimations","slideDirection","transKey","classes"],L1=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return me(r,A1,t)},N1=Z(Nr,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ot["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ot["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ot.slideEnterActive}`]:t.slideEnterActive},{[`.${ot.slideExit}`]:t.slideExit},{[`.${ot["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ot["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ot["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ot["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ot.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ot.slideExit}`]:{transform:"translate(0%)"},[`& .${ot["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ot["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function j1(e){const t=Fe({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ve(t,F1),a=L1(t),l=yn();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(N1,{className:de(a.root,r),childFactory:u=>S.cloneElement(u,{classNames:c}),role:"presentation",children:f.jsx(Ci,j({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const B1=e=>ge("MuiDayCalendar",e);he("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const V1=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],_1=["ownerState"],z1=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"]},B1,t)},Nd=(Mr+qo*2)*6,W1=Z("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),H1=Z("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),U1=Z(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})),Y1=Z(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})),G1=Z(Qt,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>j({},e.typography.caption,{width:Mr,height:Mr,padding:0,margin:`0 ${qo}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),q1=Z("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Nd}),K1=Z(j1,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Nd}),X1=Z("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Q1=Z("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${qo}px 0`,display:"flex",justifyContent:"center"});function Z1(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:s,currentMonthNumber:i,isViewFocused:a}=e,l=ve(e,V1);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:m,slots:y,slotProps:p,timezone:h}=t,g=Le(),w=Uo(h),k=r!==null&&g.isSameDay(n,r),x=o.some(v=>g.isSameDay(v,n)),b=g.isSameDay(n,w),P=y?.day??O1,C=Pe({elementType:P,externalSlotProps:p?.day,additionalProps:j({disableHighlightToday:u,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:d,"data-timestamp":g.toJsDate(n).valueOf()},l),ownerState:j({},t,{day:n,selected:x})}),I=ve(C,_1),R=S.useMemo(()=>c||s(n),[c,s,n]),A=S.useMemo(()=>g.getMonth(n)!==i,[g,n,i]),O=S.useMemo(()=>{const v=g.startOfMonth(g.setMonth(n,i));return m?g.isSameDay(n,g.startOfWeek(v)):g.isSameDay(n,v)},[i,n,m,g]),E=S.useMemo(()=>{const v=g.endOfMonth(g.setMonth(n,i));return m?g.isSameDay(n,g.endOfWeek(v)):g.isSameDay(n,v)},[i,n,m,g]);return f.jsx(P,j({},I,{day:n,disabled:R,autoFocus:a&&k,today:b,outsideCurrentMonth:A,isFirstVisibleCell:O,isLastVisibleCell:E,selected:x,tabIndex:k?0:-1,"aria-selected":x,"aria-current":b?"date":void 0}))}function J1(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:d,reduceAnimations:m,renderLoading:y=()=>f.jsx("span",{children:"..."}),slideDirection:p,TransitionProps:h,disablePast:g,disableFuture:w,minDate:k,maxDate:x,shouldDisableDate:b,shouldDisableMonth:P,shouldDisableYear:C,dayOfWeekFormatter:I=te=>n.format(te,"weekdayShort").charAt(0).toUpperCase(),hasFocus:R,onFocusedViewChange:A,gridLabelId:O,displayWeekNumber:E,fixedWeekNumber:v,autoFocus:$,timezone:D}=t,M=Uo(D),T=z1(t),F=vt(),L=Od({shouldDisableDate:b,shouldDisableMonth:P,shouldDisableYear:C,minDate:k,maxDate:x,disablePast:g,disableFuture:w,timezone:D}),N=Bt(),[W,J]=Dt({name:"DayCalendar",state:"hasFocus",controlled:R,default:$??!1}),[re,ae]=S.useState(()=>a||M),le=ue(te=>{d||c(te)}),Y=te=>{L(te)||(r(te),ae(te),A?.(!0),J(!0))},G=ue((te,ce)=>{switch(te.key){case"ArrowUp":Y(n.addDays(ce,-7)),te.preventDefault();break;case"ArrowDown":Y(n.addDays(ce,7)),te.preventDefault();break;case"ArrowLeft":{const se=n.addDays(ce,F?1:-1),fe=n.addMonths(ce,F?1:-1),be=mr({utils:n,date:se,minDate:F?se:n.startOfMonth(fe),maxDate:F?n.endOfMonth(fe):se,isDateDisabled:L,timezone:D});Y(be||se),te.preventDefault();break}case"ArrowRight":{const se=n.addDays(ce,F?-1:1),fe=n.addMonths(ce,F?-1:1),be=mr({utils:n,date:se,minDate:F?n.startOfMonth(fe):se,maxDate:F?se:n.endOfMonth(fe),isDateDisabled:L,timezone:D});Y(be||se),te.preventDefault();break}case"Home":Y(n.startOfWeek(ce)),te.preventDefault();break;case"End":Y(n.endOfWeek(ce)),te.preventDefault();break;case"PageUp":Y(n.addMonths(ce,1)),te.preventDefault();break;case"PageDown":Y(n.addMonths(ce,-1)),te.preventDefault();break}}),Q=ue((te,ce)=>Y(ce)),_=ue((te,ce)=>{W&&n.isSameDay(re,ce)&&A?.(!1)}),B=n.getMonth(s),K=n.getYear(s),ne=S.useMemo(()=>i.filter(te=>!!te).map(te=>n.startOfDay(te)),[n,i]),ee=`${K}-${B}`,V=S.useMemo(()=>S.createRef(),[ee]),q=S.useMemo(()=>{const te=n.startOfMonth(s),ce=n.endOfMonth(s);return L(re)||n.isAfterDay(re,ce)||n.isBeforeDay(re,te)?mr({utils:n,date:re,minDate:te,maxDate:ce,disablePast:g,disableFuture:w,isDateDisabled:L,timezone:D}):re},[s,w,g,re,L,n,D]),oe=S.useMemo(()=>{const te=n.getWeekArray(s);let ce=n.addMonths(s,1);for(;v&&te.length<v;){const se=n.getWeekArray(ce),fe=n.isSameDay(te[te.length-1][0],se[0][0]);se.slice(fe?1:0).forEach(be=>{te.length<v&&te.push(be)}),ce=n.addMonths(ce,1)}return te},[s,v,n]);return f.jsxs(W1,{role:"grid","aria-labelledby":O,className:T.root,children:[f.jsxs(H1,{role:"row",className:T.header,children:[E&&f.jsx(Y1,{variant:"caption",role:"columnheader","aria-label":N.calendarWeekNumberHeaderLabel,className:T.weekNumberLabel,children:N.calendarWeekNumberHeaderText}),pb(n,M).map((te,ce)=>f.jsx(U1,{variant:"caption",role:"columnheader","aria-label":n.format(te,"weekday"),className:T.weekDayLabel,children:I(te)},ce.toString()))]}),l?f.jsx(q1,{className:T.loadingContainer,children:y()}):f.jsx(K1,j({transKey:ee,onExited:u,reduceAnimations:m,slideDirection:p,className:de(o,T.slideTransition)},h,{nodeRef:V,children:f.jsx(X1,{ref:V,role:"rowgroup",className:T.monthContainer,children:oe.map((te,ce)=>f.jsxs(Q1,{role:"row",className:T.weekContainer,"aria-rowindex":ce+1,children:[E&&f.jsx(G1,{className:T.weekNumber,role:"rowheader","aria-label":N.calendarWeekNumberAriaLabelText(n.getWeekNumber(te[0])),children:N.calendarWeekNumberText(n.getWeekNumber(te[0]))}),te.map((se,fe)=>f.jsx(Z1,{parentProps:t,day:se,selectedDays:ne,focusableDay:q,onKeyDown:G,onFocus:Q,onBlur:_,onDaySelect:le,isDateDisabled:L,currentMonthNumber:B,isViewFocused:W,"aria-colindex":fe+1},se.toString()))]},`week-${te[0]}`))})}))]})}function eP(e){return ge("MuiPickersMonth",e)}const Kr=he("MuiPickersMonth",["root","monthButton","disabled","selected"]),tP=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],nP=e=>{const{disabled:t,selected:n,classes:r}=e;return me({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},eP,r)},rP=Z("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%"}}]}),oP=Z("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Kr.disabled}`]:t.disabled},{[`&.${Kr.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"},[`&.${Kr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Kr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),sP=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:d,onFocus:m,onBlur:y,"aria-current":p,"aria-label":h,slots:g,slotProps:w}=n,k=ve(n,tP),x=S.useRef(null),b=nP(n);Ue(()=>{r&&x.current?.focus()},[r]);const P=g?.monthButton??oP,C=Pe({elementType:P,externalSlotProps:w?.monthButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:x,type:"button",role:"radio","aria-current":p,"aria-checked":a,"aria-label":h,onClick:I=>u(I,l),onKeyDown:I=>d(I,l),onFocus:I=>m(I,l),onBlur:I=>y(I,l)},ownerState:n,className:b.monthButton});return f.jsx(rP,j({className:de(b.root,o),ownerState:n},k,{children:f.jsx(P,j({},C))}))});function iP(e){return ge("MuiMonthCalendar",e)}he("MuiMonthCalendar",["root"]);const aP=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],lP=e=>{const{classes:t}=e;return me({root:["root"]},iP,t)};function cP(e,t){const n=Le(),r=Fr(),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 uP=Z("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Ko,boxSizing:"border-box"}),dP=S.forwardRef(function(t,n){const r=cP(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:m,onChange:y,shouldDisableMonth:p,readOnly:h,autoFocus:g=!1,onMonthFocus:w,hasFocus:k,onFocusedViewChange:x,monthsPerRow:b=3,timezone:P,gridLabelId:C,slots:I,slotProps:R}=r,A=ve(r,aP),{value:O,handleValueChange:E,timezone:v}=Ai({name:"MonthCalendar",timezone:P,value:s,defaultValue:i,referenceDate:a,onChange:y,valueManager:Rt}),$=Uo(v),D=vt(),M=Le(),T=S.useMemo(()=>Rt.getInitialReferenceValue({value:O,utils:M,props:r,timezone:v,referenceDate:a,granularity:Pt.month}),[]),F=r,L=lP(F),N=S.useMemo(()=>M.getMonth($),[M,$]),W=S.useMemo(()=>O!=null?M.getMonth(O):null,[O,M]),[J,re]=S.useState(()=>W||M.getMonth(T)),[ae,le]=Dt({name:"MonthCalendar",state:"hasFocus",controlled:k,default:g??!1}),Y=ue(ee=>{le(ee),x&&x(ee)}),G=S.useCallback(ee=>{const V=M.startOfMonth(u&&M.isAfter($,m)?$:m),q=M.startOfMonth(c&&M.isBefore($,d)?$:d),oe=M.startOfMonth(ee);return M.isBefore(oe,V)||M.isAfter(oe,q)?!0:p?p(oe):!1},[c,u,d,m,$,p,M]),Q=ue((ee,V)=>{if(h)return;const q=M.setMonth(O??T,V);E(q)}),_=ue(ee=>{G(M.setMonth(O??T,ee))||(re(ee),Y(!0),w&&w(ee))});S.useEffect(()=>{re(ee=>W!==null&&ee!==W?W:ee)},[W]);const B=ue((ee,V)=>{switch(ee.key){case"ArrowUp":_((12+V-3)%12),ee.preventDefault();break;case"ArrowDown":_((12+V+3)%12),ee.preventDefault();break;case"ArrowLeft":_((12+V+(D?1:-1))%12),ee.preventDefault();break;case"ArrowRight":_((12+V+(D?-1:1))%12),ee.preventDefault();break}}),K=ue((ee,V)=>{_(V)}),ne=ue((ee,V)=>{J===V&&Y(!1)});return f.jsx(uP,j({ref:n,className:de(L.root,o),ownerState:F,role:"radiogroup","aria-labelledby":C},A,{children:yi(M,O??T).map(ee=>{const V=M.getMonth(ee),q=M.format(ee,"monthShort"),oe=M.format(ee,"month"),te=V===W,ce=l||G(ee);return f.jsx(sP,{selected:te,value:V,onClick:Q,onKeyDown:B,autoFocus:ae&&V===J,disabled:ce,tabIndex:V===J&&!ce?0:-1,onFocus:K,onBlur:ne,"aria-current":N===V?"date":void 0,"aria-label":oe,monthsPerRow:b,slots:I,slotProps:R,children:q},q)})}))});function pP(e){return ge("MuiPickersYear",e)}const Xr=he("MuiPickersYear",["root","yearButton","selected","disabled"]),fP=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],hP=e=>{const{disabled:t,selected:n,classes:r}=e;return me({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},pP,r)},mP=Z("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%"}}]}),gP=Z("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Xr.disabled}`]:t.disabled},{[`&.${Xr.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"},[`&.${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}}})),yP=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:d,onFocus:m,onBlur:y,"aria-current":p,slots:h,slotProps:g}=n,w=ve(n,fP),k=S.useRef(null),x=hP(n);Ue(()=>{r&&k.current?.focus()},[r]);const b=h?.yearButton??gP,P=Pe({elementType:b,externalSlotProps:g?.yearButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:k,type:"button",role:"radio","aria-current":p,"aria-checked":a,onClick:C=>u(C,l),onKeyDown:C=>d(C,l),onFocus:C=>m(C,l),onBlur:C=>y(C,l)},ownerState:n,className:x.yearButton});return f.jsx(mP,j({className:de(x.root,o),ownerState:n},w,{children:f.jsx(b,j({},P))}))});function bP(e){return ge("MuiYearCalendar",e)}he("MuiYearCalendar",["root"]);const vP=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],xP=e=>{const{classes:t}=e;return me({root:["root"]},bP,t)};function SP(e,t){const n=Le(),r=Fr(),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 wP=Z("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Ko,maxHeight:vS,boxSizing:"border-box",position:"relative"}),CP=S.forwardRef(function(t,n){const r=SP(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:m,minDate:y,onChange:p,readOnly:h,shouldDisableYear:g,onYearFocus:w,hasFocus:k,onFocusedViewChange:x,yearsOrder:b="asc",yearsPerRow:P,timezone:C,gridLabelId:I,slots:R,slotProps:A}=r,O=ve(r,vP),{value:E,handleValueChange:v,timezone:$}=Ai({name:"YearCalendar",timezone:C,value:i,defaultValue:a,referenceDate:l,onChange:p,valueManager:Rt}),D=Uo($),M=vt(),T=Le(),F=S.useMemo(()=>Rt.getInitialReferenceValue({value:E,utils:T,props:r,timezone:$,referenceDate:l,granularity:Pt.year}),[]),L=r,N=xP(L),W=S.useMemo(()=>T.getYear(D),[T,D]),J=S.useMemo(()=>E!=null?T.getYear(E):null,[E,T]),[re,ae]=S.useState(()=>J||T.getYear(F)),[le,Y]=Dt({name:"YearCalendar",state:"hasFocus",controlled:k,default:o??!1}),G=ue(se=>{Y(se),x&&x(se)}),Q=S.useCallback(se=>{if(d&&T.isBeforeYear(se,D)||u&&T.isAfterYear(se,D)||y&&T.isBeforeYear(se,y)||m&&T.isAfterYear(se,m))return!0;if(!g)return!1;const fe=T.startOfYear(se);return g(fe)},[u,d,m,y,D,g,T]),_=ue((se,fe)=>{if(h)return;const be=T.setYear(E??F,fe);v(be)}),B=ue(se=>{Q(T.setYear(E??F,se))||(ae(se),G(!0),w?.(se))});S.useEffect(()=>{ae(se=>J!==null&&se!==J?J:se)},[J]);const K=b!=="desc"?P*1:P*-1,ne=M&&b==="asc"||!M&&b==="desc"?-1:1,ee=ue((se,fe)=>{switch(se.key){case"ArrowUp":B(fe-K),se.preventDefault();break;case"ArrowDown":B(fe+K),se.preventDefault();break;case"ArrowLeft":B(fe-ne),se.preventDefault();break;case"ArrowRight":B(fe+ne),se.preventDefault();break}}),V=ue((se,fe)=>{B(fe)}),q=ue((se,fe)=>{re===fe&&G(!1)}),oe=S.useRef(null),te=ke(n,oe);S.useEffect(()=>{if(o||oe.current===null)return;const se=oe.current.querySelector('[tabindex="0"]');if(!se)return;const fe=se.offsetHeight,be=se.offsetTop,we=oe.current.clientHeight,pe=oe.current.scrollTop,qe=be+fe;fe>we||be<pe||(oe.current.scrollTop=qe-we/2-fe/2)},[o]);const ce=T.getYearRange([y,m]);return b==="desc"&&ce.reverse(),f.jsx(wP,j({ref:te,className:de(N.root,s),ownerState:L,role:"radiogroup","aria-labelledby":I},O,{children:ce.map(se=>{const fe=T.getYear(se),be=fe===J,we=c||Q(se);return f.jsx(yP,{selected:be,value:fe,onClick:_,onKeyDown:ee,autoFocus:le&&fe===re,disabled:we,tabIndex:fe===re&&!we?0:-1,onFocus:V,onBlur:q,"aria-current":W===fe?"date":void 0,yearsPerRow:P,slots:R,slotProps:A,children:T.format(se,"year")},T.format(se,"year"))})}))}),PP=e=>ge("MuiPickersCalendarHeader",e),kP=he("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function TP(e){return ge("MuiPickersArrowSwitcher",e)}he("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const MP=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],DP=["ownerState"],RP=["ownerState"],IP=Z("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),EP=Z("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),zl=Z(jr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),$P=e=>{const{classes:t}=e;return me({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},TP,t)},OP=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:d,nextLabel:m,isPreviousDisabled:y,isPreviousHidden:p,onGoToPrevious:h,previousLabel:g,labelId:w}=o,k=ve(o,MP),x=o,b=$P(x),P={isDisabled:c,isHidden:u,goTo:d,label:m},C={isDisabled:y,isHidden:p,goTo:h,label:g},I=a?.previousIconButton??zl,R=Pe({elementType:I,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"end",onClick:C.goTo},ownerState:j({},x,{hidden:C.isHidden}),className:de(b.button,b.previousIconButton)}),A=a?.nextIconButton??zl,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({},x,{hidden:P.isHidden}),className:de(b.button,b.nextIconButton)}),E=a?.leftArrowIcon??FS,v=Pe({elementType:E,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:b.leftArrowIcon}),$=ve(v,DP),D=a?.rightArrowIcon??LS,M=Pe({elementType:D,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:b.rightArrowIcon}),T=ve(M,RP);return f.jsxs(IP,j({ref:n,className:de(b.root,i),ownerState:x},k,{children:[f.jsx(I,j({},R,{children:r?f.jsx(D,j({},T)):f.jsx(E,j({},$))})),s?f.jsx(Qt,{variant:"subtitle1",component:"span",id:w,children:s}):f.jsx(EP,{className:b.spacer,ownerState:x}),f.jsx(A,j({},O,{children:r?f.jsx(E,j({},$)):f.jsx(D,j({},T))}))]}))});function AP(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 FP(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 LP=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],NP=["ownerState"],jP=e=>{const{classes:t}=e;return me({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},PP,t)},BP=Z("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}),VP=Z("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})),_P=Z("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),zP=Z(jr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${kP.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),WP=Z(AS,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),HP=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:d,maxDate:m,minDate:y,onMonthChange:p,onViewChange:h,view:g,reduceAnimations:w,views:k,labelId:x,className:b,timezone:P,format:C=`${o.formats.month} ${o.formats.year}`}=s,I=ve(s,LP),R=s,A=jP(s),O=i?.switchViewButton??zP,E=Pe({elementType:O,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(g)},ownerState:R,className:A.switchViewButton}),v=i?.switchViewIcon??WP,$=Pe({elementType:v,externalSlotProps:a?.switchViewIcon,ownerState:R,className:A.switchViewIcon}),D=ve($,NP),M=()=>p(o.addMonths(l,1),"left"),T=()=>p(o.addMonths(l,-1),"right"),F=AP(l,{disableFuture:u,maxDate:m,timezone:P}),L=FP(l,{disablePast:d,minDate:y,timezone:P}),N=()=>{if(!(k.length===1||!h||c))if(k.length===2)h(k.find(J=>J!==g)||k[0]);else{const J=k.indexOf(g)!==0?0:1;h(k[J])}};if(k.length===1&&k[0]==="year")return null;const W=o.formatByString(l,C);return f.jsxs(BP,j({},I,{ownerState:R,className:de(A.root,b),ref:n,children:[f.jsxs(VP,{role:"presentation",onClick:N,ownerState:R,"aria-live":"polite",className:A.labelContainer,children:[f.jsx(Ad,{reduceAnimations:w,transKey:W,children:f.jsx(_P,{id:x,ownerState:R,className:A.label,children:W})}),k.length>1&&!c&&f.jsx(O,j({},E,{children:f.jsx(v,j({},D))}))]}),f.jsx(hn,{in:g==="day",appear:!w,enter:!w,children:f.jsx(OP,{slots:i,slotProps:a,onGoToPrevious:T,isPreviousDisabled:L,previousLabel:r.previousMonth,onGoToNext:M,isNextDisabled:F,nextLabel:r.nextMonth})})]}))}),UP=Z("div")({overflow:"hidden",width:Ko,maxHeight:Fi,display:"flex",flexDirection:"column",margin:"0 auto"}),YP=e=>ge("MuiDateCalendar",e);he("MuiDateCalendar",["root","viewTransitionContainer"]);const GP=["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"],qP=e=>{const{classes:t}=e;return me({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},YP,t)};function KP(e,t){const n=Le(),r=Fr(),o=sd(),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 XP=Z(UP,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Fi}),QP=Z(Ad,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),ZP=S.forwardRef(function(t,n){const r=Le(),o=xt(),s=KP(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:m,onChange:y,onYearChange:p,onMonthChange:h,reduceAnimations:g,shouldDisableDate:w,shouldDisableMonth:k,shouldDisableYear:x,view:b,views:P,openTo:C,className:I,disabled:R,readOnly:A,minDate:O,maxDate:E,disableHighlightToday:v,focusedView:$,onFocusedViewChange:D,showDaysOutsideCurrentMonth:M,fixedWeekNumber:T,dayOfWeekFormatter:F,slots:L,slotProps:N,loading:W,renderLoading:J,displayWeekNumber:re,yearsOrder:ae,yearsPerRow:le,monthsPerRow:Y,timezone:G}=s,Q=ve(s,GP),{value:_,handleValueChange:B,timezone:K}=Ai({name:"DateCalendar",timezone:G,value:l,defaultValue:c,referenceDate:u,onChange:y,valueManager:Rt}),{view:ne,setView:ee,focusedView:V,setFocusedView:q,goToNextView:oe,setValueAndGoToNextView:te}=id({view:b,views:P,openTo:C,onChange:B,onViewChange:a,autoFocus:i,focusedView:$,onFocusedViewChange:D}),{referenceDate:ce,calendarState:se,changeFocusedDay:fe,changeMonth:be,handleChangeMonth:we,isDateDisabled:pe,onMonthSwitchingAnimationEnd:qe}=C1({value:_,referenceDate:u,reduceAnimations:g,onMonthChange:h,minDate:O,maxDate:E,shouldDisableDate:w,disablePast:m,disableFuture:d,timezone:K}),Be=R&&_||O,ht=R&&_||E,mt=`${o}-grid-label`,nt=V!==null,rt=L?.calendarHeader??HP,Vt=Pe({elementType:rt,externalSlotProps:N?.calendarHeader,additionalProps:{views:P,view:ne,currentMonth:se.currentMonth,onViewChange:ee,onMonthChange:(Ae,wt)=>we({newMonth:Ae,direction:wt}),minDate:Be,maxDate:ht,disabled:R,disablePast:m,disableFuture:d,reduceAnimations:g,timezone:K,labelId:mt},ownerState:s}),gt=ue(Ae=>{const wt=r.startOfMonth(Ae),Qn=r.endOfMonth(Ae),Ht=pe(Ae)?mr({utils:r,date:Ae,minDate:r.isBefore(O,wt)?wt:O,maxDate:r.isAfter(E,Qn)?Qn:E,disablePast:m,disableFuture:d,isDateDisabled:pe,timezone:K}):Ae;Ht?(te(Ht,"finish"),h?.(wt)):(oe(),be(wt)),fe(Ht,!0)}),Oe=ue(Ae=>{const wt=r.startOfYear(Ae),Qn=r.endOfYear(Ae),Ht=pe(Ae)?mr({utils:r,date:Ae,minDate:r.isBefore(O,wt)?wt:O,maxDate:r.isAfter(E,Qn)?Qn:E,disablePast:m,disableFuture:d,isDateDisabled:pe,timezone:K}):Ae;Ht?(te(Ht,"finish"),p?.(Ht)):(oe(),be(wt)),fe(Ht,!0)}),_t=ue(Ae=>B(Ae&&bo(r,Ae,_??ce),"finish",ne));S.useEffect(()=>{_!=null&&r.isValid(_)&&be(_)},[_]);const zt=s,Xn=qP(zt),ye={disablePast:m,disableFuture:d,maxDate:E,minDate:O},Te={disableHighlightToday:v,readOnly:A,disabled:R,timezone:K,gridLabelId:mt,slots:L,slotProps:N},ze=S.useRef(ne);S.useEffect(()=>{ze.current!==ne&&(V===ze.current&&q(ne,!0),ze.current=ne)},[V,q,ne]);const Wt=S.useMemo(()=>[_],[_]);return f.jsxs(XP,j({ref:n,className:de(Xn.root,I),ownerState:zt},Q,{children:[f.jsx(rt,j({},Vt,{slots:L,slotProps:N})),f.jsx(QP,{reduceAnimations:g,className:Xn.viewTransitionContainer,transKey:ne,ownerState:zt,children:f.jsxs("div",{children:[ne==="year"&&f.jsx(CP,j({},ye,Te,{value:_,onChange:Oe,shouldDisableYear:x,hasFocus:nt,onFocusedViewChange:Ae=>q("year",Ae),yearsOrder:ae,yearsPerRow:le,referenceDate:ce})),ne==="month"&&f.jsx(dP,j({},ye,Te,{hasFocus:nt,className:I,value:_,onChange:gt,shouldDisableMonth:k,onFocusedViewChange:Ae=>q("month",Ae),monthsPerRow:Y,referenceDate:ce})),ne==="day"&&f.jsx(J1,j({},se,ye,Te,{onMonthSwitchingAnimationEnd:qe,onFocusedDayChange:fe,reduceAnimations:g,selectedDays:Wt,onSelectedDaysChange:_t,shouldDisableDate:w,shouldDisableMonth:k,shouldDisableYear:x,hasFocus:nt,onFocusedViewChange:Ae=>q("day",Ae),showDaysOutsideCurrentMonth:M,fixedWeekNumber:T,dayOfWeekFormatter:F,displayWeekNumber:re,loading:W,renderLoading:J}))]})})]}))}),Fn=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:m,minDate:y,maxDate:p,shouldDisableDate:h,shouldDisableMonth:g,shouldDisableYear:w,reduceAnimations:k,onMonthChange:x,monthsPerRow:b,onYearChange:P,yearsOrder:C,yearsPerRow:I,slots:R,slotProps:A,loading:O,renderLoading:E,disableHighlightToday:v,readOnly:$,disabled:D,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:T,sx:F,autoFocus:L,fixedWeekNumber:N,displayWeekNumber:W,timezone:J})=>f.jsx(ZP,{view:e,onViewChange:t,views:n.filter(Qa),focusedView:r&&Qa(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:m,minDate:y,maxDate:p,shouldDisableDate:h,shouldDisableMonth:g,shouldDisableYear:w,reduceAnimations:k,onMonthChange:x,monthsPerRow:b,onYearChange:P,yearsOrder:C,yearsPerRow:I,slots:R,slotProps:A,loading:O,renderLoading:E,disableHighlightToday:v,readOnly:$,disabled:D,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:T,sx:F,autoFocus:L,fixedWeekNumber:N,displayWeekNumber:W,timezone:J}),jd=S.forwardRef(function(t,n){const r=Bt(),o=Le(),s=Vu(t,"MuiDesktopDatePicker"),i=j({day:Fn,month:Fn,year:Fn},s.viewRenderers),a=j({},s,{viewRenderers:i,format:bi(o,s,!1),yearsPerRow:s.yearsPerRow??4,slots:j({openPickerIcon:NS,field:$d},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},Wo(s.slotProps?.field,c),zu(s),{ref:n}),toolbar:j({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=OS({props:a,valueManager:Rt,valueType:"date",getOpenDialogAriaText:ju({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Lr});return l()});jd.propTypes={autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:Mu,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,minDate:U.object,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","month","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),timezone:U.string,value:U.object,view:U.oneOf(["day","month","year"]),viewRenderers:U.shape({day:U.func,month:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","month","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};function JP(e){return ge("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);const ek=he("MuiDialogTitle",["root"]),tk=e=>{const{classes:t,dividers:n}=e;return me({root:["root",n&&"dividers"]},JP,t)},nk=Z("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:{[`.${ek.root} + &`]:{paddingTop:0}}}]}))),rk=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...i}=r,a={...r,dividers:s},l=tk(a);return f.jsx(nk,{className:de(l.root,o),ownerState:a,ref:n,...i})});function ok(e){return ge("MuiDialog",e)}const xr=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),sk=S.createContext({}),ik=Z(yd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ak=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${ie(n)}`],paper:["paper",`paperScroll${ie(n)}`,`paperWidth${ie(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return me(i,ok,t)},lk=Z(bd,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),ck=Z("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ie(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"}}}]}),uk=Z(Br,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ie(n.scroll)}`],t[`paperWidth${ie(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)`,[`&.${xr.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}`,[`&.${xr.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,[`&.${xr.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),dk=S.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialog"}),o=yn(),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:d,className:m,disableEscapeKeyDown:y=!1,fullScreen:p=!1,fullWidth:h=!1,maxWidth:g="sm",onClick:w,onClose:k,open:x,PaperComponent:b=Br,PaperProps:P={},scroll:C="paper",slots:I={},slotProps:R={},TransitionComponent:A=hn,transitionDuration:O=s,TransitionProps:E,...v}=r,$={...r,disableEscapeKeyDown:y,fullScreen:p,fullWidth:h,maxWidth:g,scroll:C},D=ak($),M=S.useRef(),T=V=>{M.current=V.target===V.currentTarget},F=V=>{w&&w(V),M.current&&(M.current=null,k&&k(V,"backdropClick"))},L=xt(a),N=S.useMemo(()=>({titleId:L}),[L]),W={transition:A,...I},J={transition:E,paper:P,backdrop:u,...R},re={slots:W,slotProps:J},[ae,le]=je("root",{elementType:lk,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:$,className:de(D.root,m),ref:n}),[Y,G]=je("backdrop",{elementType:ik,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:$}),[Q,_]=je("paper",{elementType:uk,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:$,className:de(D.paper,P.className)}),[B,K]=je("container",{elementType:ck,externalForwardedProps:re,ownerState:$,className:D.container}),[ne,ee]=je("transition",{elementType:hn,externalForwardedProps:re,ownerState:$,additionalProps:{appear:!0,in:x,timeout:O,role:"presentation"}});return f.jsx(ae,{closeAfterTransition:!0,slots:{backdrop:Y},slotProps:{backdrop:{transitionDuration:O,as:c,...G}},disableEscapeKeyDown:y,onClose:k,open:x,onClick:F,...le,...v,children:f.jsx(ne,{...ee,children:f.jsx(B,{onMouseDown:T,...K,children:f.jsx(Q,{as:b,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":L,"aria-modal":l,..._,children:f.jsx(sk.Provider,{value:N,children:d})})})})})}),pk=Z(dk)({[`& .${xr.container}`]:{outline:0},[`& .${xr.paper}`]:{outline:0,minWidth:Ko}}),fk=Z(rk)({"&:first-of-type":{padding:0}});function hk(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:s}=e,i=o?.dialog??pk,a=o?.mobileTransition??hn;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(fk,{children:t})}))}const mk=["props","getOpenDialogAriaText"],gk=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,mk);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:m,timezone:y,name:p,label:h,inputRef:g,readOnly:w,disabled:k,localeText:x}=t,b=S.useRef(null),P=xt(),C=s?.toolbar?.hidden??!1,{open:I,actions:R,layoutProps:A,renderCurrentView:O,fieldProps:E,contextValue:v}=ad(j({},r,{props:t,fieldRef:b,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),$=o.field,D=Pe({elementType:$,externalSlotProps:s?.field,additionalProps:j({},E,C&&{id:P},!(k||w)&&{onClick:R.onOpen,onKeyDown:vx(R.onOpen)},{readOnly:w??!0,disabled:k,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:m,timezone:y,label:h,name:p},g?{inputRef:g}:{}),ownerState:t});D.inputProps=j({},D.inputProps,{"aria-label":n(E.value)});const M=j({textField:o.textField},D.slots),T=o.layout??fd;let F=P;C&&(h?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(b,D.unstableFieldRef);return{renderPicker:()=>f.jsxs(hd,{contextValue:v,localeText:x,children:[f.jsx($,j({},D,{slots:M,slotProps:L,unstableFieldRef:N})),f.jsx(hk,j({},R,{open:I,slots:o,slotProps:L,children:f.jsx(T,j({},A,L?.layout,{slots:o,slotProps:L,children:O()}))}))]})}},Bd=S.forwardRef(function(t,n){const r=Bt(),o=Le(),s=Vu(t,"MuiMobileDatePicker"),i=j({day:Fn,month:Fn,year:Fn},s.viewRenderers),a=j({},s,{viewRenderers:i,format:bi(o,s,!1),slots:j({field:$d},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},Wo(s.slotProps?.field,c),zu(s),{ref:n}),toolbar:j({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=gk({props:a,valueManager:Rt,valueType:"date",getOpenDialogAriaText:ju({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Lr});return l()});Bd.propTypes={autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:Mu,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,minDate:U.object,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","month","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),timezone:U.string,value:U.object,view:U.oneOf(["day","month","year"]),viewRenderers:U.shape({day:U.func,month:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","month","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};const yk=["desktopModeMediaQuery"],Vd=S.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=xx}=r,s=ve(r,yk);return Tu(o,{defaultMatches:!0})?f.jsx(jd,j({ref:n},s)):f.jsx(Bd,j({ref:n},s))}),_d=400;function zd(e,t){const[n,r]=z.useState(e);return z.useEffect(()=>{const o=setTimeout(()=>r(e),t);return()=>clearTimeout(o)},[e,t]),n}function Wd(e,t,{same:n=Object.is,unset:r=!1}={}){const[o,s]=z.useState(e),[i,a]=z.useState(!1),l=z.useRef(!1),c=z.useRef(null),u=z.useRef(!1),d=z.useRef({draft:o,committed:e,focused:i,unset:r,commit:t,same:n});z.useEffect(()=>{d.current={draft:o,committed:e,focused:i,unset:r,commit:t,same:n}});const m=()=>{const x=d.current,b=c.current?c.current.value:x.committed;return l.current&&(x.unset||!x.same(x.draft,b))},y=()=>{const x=d.current;c.current={value:x.draft},x.commit(x.draft),x.unset&&x.same(x.draft,x.committed)&&(l.current=!1)},p=()=>{m()&&y()},[h,g]=z.useState(0),w=z.useMemo(()=>({draft:o,gen:h}),[o,h]),k=zd(w,_d);return z.useEffect(()=>{const x=d.current;x.same(k.draft,x.draft)&&m()&&!u.current&&y()},[k]),z.useEffect(()=>()=>p(),[]),z.useEffect(()=>{if(c.current&&n(c.current.value,e)&&(c.current=null),n(o,e)){!r&&!c.current&&(l.current=!1);return}(!i||!l.current)&&s(e)},[e,i,o,r,n]),{draft:o,change:x=>{l.current=!0,s(x),!d.current.focused&&!n(x,e)&&t(x)},reset:x=>{l.current=!1,c.current=null,s(x)},bind:{onFocus:()=>a(!0),onBlur:()=>{a(!1),p(),c.current=null},onKeyDown:x=>{x.key==="Enter"&&!x.nativeEvent.isComposing&&p()},onCompositionStart:()=>{u.current=!0},onCompositionEnd:()=>{u.current=!1,g(x=>x+1)}}}}const bk=250,vk=300*1e3;function xk(e,t){const n=z.useContext(Un.QueryClientContext),r=t.trim(),[o,s]=z.useState("");z.useEffect(()=>{const d=setTimeout(()=>s(r),bk);return()=>clearTimeout(d)},[r]);const[i,a]=z.useState(),l=e?JSON.stringify(e.key):void 0;z.useEffect(()=>{if(!e||!n||o==="")return;let d=!0;return n.fetchQuery({queryKey:[...e.key,o],queryFn:({signal:m})=>e.run(o,m),staleTime:vk}).then(m=>{d&&a({key:l,text:o,page:m})}).catch(()=>{d&&a({key:l,text:o,failed:!0})}),()=>{d=!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 Gi(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"?Sk(n):n}function Sk(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"?`
|
|
137
|
+
`:r==="t"?" ":r==="r"?"\r":r):e}Re.extend(ai);const Wl=14,wk=42;function Ck(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(`
|
|
138
|
+
`):void 0}function qi({given:e,value:t,onChange:n,options:r,optionsLoading:o,optionsFailed:s,optionsTruncated:i,optionSearch:a,onOpen:l}){const c=e.label??e.name??"",{theme:u}=Se.usePublisherTheme(),d=e.type??"string",m=Ck(e),y=Gi(d,e.default),p=y!==void 0?`Default: ${y===""?"(empty)":y}`:void 0,h=m||p?f.jsxs(f.Fragment,{children:[m,m&&p?f.jsx("br",{}):null,p]}):void 0,g=d==="string"||Kt(d)==="string",w=!Gt(d)||typeof t!="string"||tu(t),k=G=>f.jsx(H.TextField,{label:c,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:f.jsxs(f.Fragment,{children:[`Not a ${G}. Clear it to pick one.`,h?f.jsx("br",{}):null,h]}),slotProps:{input:{endAdornment:f.jsx(Hd,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),x=Gt(d),b=e.control==="multiselect"&&x,P=Gt(d),C=e.control==="select"||e.control==="multiselect",I=C?P?typeof t=="string"?eu(t):[]:typeof t=="string"&&t!==""?[t]:[]:[],[R,A]=z.useState(""),[O,E]=z.useState(null),v=z.useRef(null),$=xk(C?a:void 0,R);if(C&&g&&w&&!(!b&&I.length>1)){const G=_=>{const B=P?li(_):void 0;if(_.length===0||B===""){n(null);return}n(P?B:_[0])},Q=Rk($,i,a);return f.jsx(Ud.Provider,{value:Q,children:f.jsx(H.Autocomplete,{multiple:b,disableCloseOnSelect:b,onOpen:l,freeSolo:!0,forcePopupIcon:!0,autoSelect:!b,options:$.page?.values??r??[],...$.page?{filterOptions:_=>_}:{},onInputChange:(_,B,K)=>A(K==="input"?B:""),loading:o||$.searching,loadingText:$.searching?"Searching…":"Loading…",noOptionsText:s?"Options unavailable":"No matching values",slots:{paper:Dk},value:b?I:I[0]??null,onChange:(_,B)=>G(B===null?[]:Array.isArray(B)?B:[B]),renderInput:_=>f.jsx(H.TextField,{..._,label:c,size:"small",placeholder:I.length!==0?void 0:t===""?"All":y??"All",error:s,helperText:s?f.jsxs(f.Fragment,{children:["Could not load the options for this control. Type a value to filter anyway.",h?f.jsx("br",{}):null,h]}):h,slotProps:{input:{..._.InputProps,endAdornment:f.jsxs(f.Fragment,{children:[o&&f.jsx(H.CircularProgress,{size:16}),_.InputProps.endAdornment]})},htmlInput:{..._.inputProps,onBlur:B=>{if(_.inputProps.onBlur?.(B),!b)return;const K=B.target.value.trim();K!==""&&!I.includes(K)&&G([...I,K])}}}}),fullWidth:!0})})}const D=Gt(d)&&Kt(d)==="number",{rangeMin:M,rangeMax:T}=e,F=D&&typeof t=="string"?ru(t):void 0,L=D&&typeof t=="string"?ou(t):void 0;if((D||d==="number")&&M!==void 0&&T!==void 0&&(!D||t===void 0||t===null||t===""||F!==void 0||L!==void 0)){const G=L??(F!==void 0?[F,T]:void 0),Q=D?G?.[0]:typeof t=="number"?t:void 0;if(Q===void 0&&t!==void 0&&t!==null&&t!=="")return k("number");const _=O!==null,B=_?Array.isArray(O)?O[0]:O:Q??M,K=Array.isArray(O)?[O[0],O[1]]:G??[M,T],ne=K[1]>=T?`≥ ${K[0]}`:`${K[0]} to ${K[1]}`,ee=D&&t===""&&!_,V=Q!==void 0||ee||_;return f.jsxs(H.FormControl,{fullWidth:!0,children:[f.jsxs(H.Box,{component:"fieldset",sx:q=>({m:0,minWidth:0,border:u.cardBorder,borderRadius:2,px:`${Wl}px`,pt:0,pb:.75,minHeight:wk,transition:"border-color 120ms ease-in","&:hover":{borderColor:q.palette.text.secondary},"&:focus-within":{borderColor:q.palette.text.primary}}),children:[f.jsx(H.Typography,{component:"legend",variant:"caption",color:"text.secondary",sx:{px:.5,lineHeight:1},children:c}),f.jsxs(H.Stack,{direction:"row",alignItems:"center",spacing:1,children:[f.jsx(H.Typography,{variant:"body2",sx:{fontWeight:"fontWeightMedium"},children:V?ee?"Any":D?ne:String(B):D?"Any":y??"Unset"}),V&&f.jsx(Dr,{onClear:()=>n(null),sx:{p:0}})]}),f.jsx(H.Slider,{size:"small",min:M,max:T,value:D?K:B,disableSwap:D,valueLabelDisplay:"auto","aria-label":D?void 0:c,getAriaLabel:D?q=>q===0?`${c} from`:`${c} to`:void 0,sx:{py:0,mt:.5},onChange:(q,oe)=>{v.current=oe,E(oe)},onChangeCommitted:()=>{const q=v.current;if(v.current=null,E(null),q!==null){if(D){const[oe,te]=Array.isArray(q)?[q[0],q[1]]:[q,q];if(oe<=M&&te>=T){n(null);return}n(te>=T?ny(oe):ry(oe,te));return}n(Array.isArray(q)?q[0]:q)}}}),f.jsxs(H.Stack,{direction:"row",justifyContent:"space-between",children:[f.jsx(H.Typography,{variant:"caption",color:"text.secondary",children:M}),f.jsx(H.Typography,{variant:"caption",color:"text.secondary",children:T})]})]}),h&&f.jsx(H.FormHelperText,{sx:{mx:`${Wl}px`},children:h})]})}const W=Gt(d)?Kt(d):void 0,J=W==="date"||W==="timestamp"||W==="timestamptz",re=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),ae=t==null||re;if(J&&!re){const G=Tk(t);if(G!==void 0)return f.jsx(Mk,{label:c,state:G,onChange:n,helperNode:h,defaultDisplay:y})}if(J&&ae){const G=re?Re.utc(t):null;return f.jsx(Po,{label:c,committed:G?.isValid()?G:null,toValue:Q=>Q.format("YYYY-MM-DD"),onChange:n,helperText:h})}if(Kt(d)==="boolean"){const G=typeof t=="string"?ty(t):void 0;if(t==null||t===""||G!==void 0)return f.jsx(kk,{label:c,picked:G,emptyOverride:t==="",onChange:n,helperNode:h,defaultDisplay:y})}if(d==="boolean"){const G=typeof t=="boolean";if(!G&&t!==void 0&&t!==null)return k("true or false");const Q=e.default?.trim()==="true",_=G?t:Q;return f.jsxs(H.FormControl,{children:[f.jsxs(H.Stack,{direction:"row",alignItems:"center",children:[f.jsx(H.FormControlLabel,{control:f.jsx(H.Checkbox,{checked:_,onChange:B=>n(B.target.checked)}),label:c}),G&&f.jsx(Dr,{onClear:()=>n(null),edge:"end"})]}),h&&f.jsx(H.FormHelperText,{children:h})]})}if(d==="number"){const G=t!=null;return G&&t!==""&&typeof t!="number"?k("number"):f.jsx(Hl,{label:c,type:"number",committed:typeof t=="number"?String(t):"",onCommit:Q=>n(Q===""?null:Number(Q)),placeholder:y,helperText:h,isOverridden:G,onClear:()=>n(null)})}if(d==="date"||d==="timestamp"||d==="timestamptz"){const G=t instanceof Date?t:typeof t=="string"?(B=>B instanceof Date?B:null)(gu(d,t)):null,Q=G?Re.utc(G):null;return t!=null&&t!==""&&G===null?k("date"):f.jsx(Po,{label:c,committed:Q,toValue:B=>cy(B,G??void 0),onChange:n,helperText:h})}const le=typeof t=="string"?t:"",Y=t!=null;return f.jsx(Hl,{label:c,committed:le,onCommit:n,placeholder:Y?void 0:y??(d.startsWith("filter<")?d:void 0),helperText:h,isOverridden:Y,emptyOverrides:!0,onClear:()=>n(null)})}function Hl({label:e,type:t,committed:n,onCommit:r,placeholder:o,helperText:s,isOverridden:i,emptyOverrides:a=!1,onClear:l}){const{draft:c,change:u,reset:d,bind:m}=Wd(n,r,{unset:a&&!i});return f.jsx(H.TextField,{label:e,type:t,value:c,onChange:y=>u(y.target.value),placeholder:o,helperText:s,slotProps:{input:{endAdornment:i&&f.jsx(Hd,{onClear:()=>{d(""),l()}})}},...m,fullWidth:!0,size:"small"})}const Pk=(e,t)=>e===null||t===null?e===t:e.year()===t.year()&&e.month()===t.month()&&e.date()===t.date();function Po({label:e,committed:t,toValue:n,onChange:r,helperText:o,minDate:s}){const{draft:i,change:a,reset:l,bind:c}=Wd(t,u=>{u===null?r(null):u.isValid()&&r(n(u))},{same:Pk});return f.jsx(Si,{dateAdapter:wu,children:f.jsx(Vd,{label:e,value:i,minDate:s,onChange:a,slotProps:{textField:{fullWidth:!0,size:"small",helperText:o,...c},field:{clearable:!0,onClear:()=>{l(null),r(null)}},clearButton:{onMouseDown:u=>u.preventDefault()}}})})}function Dr({onClear:e,edge:t,sx:n}){return f.jsx(H.IconButton,{size:"small","aria-label":"Clear value",onClick:e,edge:t,sx:[{minWidth:24,minHeight:24},...Array.isArray(n)?n:[n]],children:f.jsx(Ey,{fontSize:"small"})})}function Hd({onClear:e}){return f.jsx(H.InputAdornment,{position:"end",onMouseDown:t=>t.preventDefault(),children:f.jsx(Dr,{onClear:e,edge:"end"})})}const Qr="__any__";function kk({label:e,picked:t,emptyOverride:n,onChange:r,helperNode:o,defaultDisplay:s}){const i=t??(n?Qr:""),a=i!=="";return f.jsx(H.Box,{"data-testid":"boolean-filter",children:f.jsxs(H.TextField,{select:!0,label:e,value:i,size:"small",fullWidth:!0,helperText:o,slotProps:{select:{displayEmpty:!0,renderValue:l=>l==="true"||l==="false"?l:l===Qr?"Any":s||"Any"},input:{endAdornment:a?f.jsx(Dr,{onClear:()=>r(null),sx:{mr:2}}):void 0}},onChange:l=>{l.target.value!==Qr&&r(l.target.value)},children:[n&&f.jsx(H.MenuItem,{value:Qr,children:"Any"}),f.jsx(H.MenuItem,{value:"true",children:"true"}),f.jsx(H.MenuItem,{value:"false",children:"false"})]})})}function Tk(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=su(e);if(t!==void 0)return{kind:"preset",key:t};const n=iu(e);if(n!==void 0)return{kind:"days",...n}}const Zr="__custom__",ys="__any__";function Mk({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]=z.useState(t.kind==="days"),[l,c]=z.useState(t.kind==="days"?{from:t.firstDay,to:t.lastDay}:{});z.useEffect(()=>{t.kind==="days"?(a(!0),c({from:t.firstDay,to:t.lastDay})):t.kind!=="unset"&&a(!1)},[s]);const u=t.kind!=="unset",d=i?Zr:t.kind==="preset"?t.key:t.kind==="any"?ys:"",m=p=>{c(p),p.from&&p.to&&!Re.utc(p.to).isBefore(Re.utc(p.from))&&n(iy(p.from,p.to))},y=p=>{const h=p?Re.utc(p):null;return h?.isValid()?h:null};return f.jsxs(H.Stack,{direction:"row",spacing:1,"data-testid":"time-range",children:[f.jsxs(H.TextField,{select:!0,label:e,value:d,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:p=>{if(p===Zr)return"Custom range";if(p===ys)return"Any time";const h=Cr.find(g=>g.key===p);return h?h.label:o??"Any time"}},input:{endAdornment:u?f.jsx(Dr,{onClear:()=>{a(!1),c({}),n(null)},sx:{mr:2}}):void 0}},onChange:p=>{const h=p.target.value;if(h===Zr){a(!0);return}a(!1);const g=oy(h);g!==void 0&&n(g)},children:[t.kind==="any"&&f.jsx(H.MenuItem,{value:ys,children:"Any time"}),Cr.map(p=>f.jsx(H.MenuItem,{value:p.key,children:p.label},p.key)),f.jsx(H.MenuItem,{value:Zr,children:"Custom range"})]}),i&&f.jsxs(f.Fragment,{children:[f.jsx(Po,{label:"From",committed:y(l.from),toValue:p=>p.format("YYYY-MM-DD"),onChange:p=>m({...l,from:p===null?void 0:String(p)})}),f.jsx(Po,{label:"To",committed:y(l.to),minDate:y(l.from)??void 0,toValue:p=>p.format("YYYY-MM-DD"),onChange:p=>m({...l,to:p===null?void 0:String(p)})})]})]})}const Ud=z.createContext(void 0);function Dk({children:e,...t}){const n=z.useContext(Ud);return f.jsxs(H.Paper,{...t,children:[e,n&&f.jsx(H.Box,{role:"note",sx:{px:2,py:1,borderTop:1,borderColor:"divider",color:"text.secondary",typography:"caption"},children:n})]})}const Jr=e=>e.toLocaleString("en-US");function Rk(e,t,n){if(e.active)return e.searching?"Searching all values…":e.failed?`Could not search all values. Showing matches in the first ${Jr(un)}.`:e.page?.truncated?`Showing the first ${Jr(fi)} matches. Keep typing to narrow them.`:void 0;if(t)return n?`Showing the first ${Jr(un)} values. Type to search them all.`:`Showing the first ${Jr(un)} values. A value not listed can still be typed.`}const Yd=z.createContext(void 0),Kn=()=>z.useContext(Yd),In="remove-badge",Gd={[`& .${In}`]:{opacity:0},[`&:hover .${In}, &:focus-within .${In}`]:{opacity:1},"@media (hover: none)":{[`& .${In}`]:{opacity:1}}};function qd({label:e,onRemove:t,disabledReason:n,inset:r=0}){const{theme:o}=Se.usePublisherTheme(),s=n!==void 0,i=f.jsx(H.IconButton,{className:In,"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 ${Gn(o.cardBorder)}`,bgcolor:a.palette.background.paper,color:a.palette.text.secondary,cursor:s?"default":"pointer",transition:`opacity ${Or}`,...Ar,"&:hover":{bgcolor:a.palette.background.paper,color:s?a.palette.text.secondary:a.palette.text.primary,borderColor:ni(o.cardBorder,o.tileTitle)}}),children:f.jsx(Vo,{sx:{fontSize:12}})});return s?f.jsx(H.Tooltip,{title:n,children:i}):i}const Ki=e=>e.required===!0,Ik=(e,t)=>e==null||e===""&&!mu(t);function Ek(e,t,n){return e.filter(r=>r.name!==void 0&&Ki(r)&&Ik(t.get(r.name),r.type)&&(n?.[r.name]===void 0||n[r.name]===null))}function $k(e,t){if(!t||e.length===0)return[];const n=new Set(t);return e.filter(r=>r.name&&n.has(r.name))}const Kd=e=>e.label??e.name??"";function Xd(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`}function Ok(e){const t=e.map(Kd);return`Pick a value for ${Xd(t)} to see this report.`}function Ak(e){return`Waiting for ${Xd(e.map(Kd))}.`}const Vs=28,Fk=/^\d{4}-\d{2}-\d{2}$/,Qd=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function bs(e){if(!Fk.test(e))return e;const t=new Date(`${e}T00:00:00Z`);return Number.isNaN(t.getTime())?e:Qd.format(t)}function Lk(e,t){if(e.length===0)return"";const n=e.join(", ");return t?n:n.length<=Vs||e.length===1?ko(n,t):`${ko(e[0]??"",t)} +${e.length-1}`}function ko(e,t){return!t&&e.length>Vs?`${e.slice(0,Vs-1)}…`:e}function Nk(e,t){if(Ki(e))return"Required";const n=e.type??"string",r=Gi(n,e.default);if(r!==void 0&&r!=="")return Zd(n,r,t);const o=Kt(n)??n;return e.control==="select"||e.control==="multiselect"||o==="string"?"All":"Any"}function Zd(e,t,n){if(!Gt(e))return ko(bs(t),n);const r=Kt(e);if(r==="string"&&tu(t))return Lk(eu(t),n);if(r==="number"){const o=ou(t);if(o)return`${o[0]}–${o[1]}`;const s=ru(t);if(s!==void 0)return`≥ ${s}`}if(r==="date"||r==="timestamp"||r==="timestamptz"){const o=su(t);if(o)return Cr.find(i=>i.key===o)?.label??t;const s=iu(t);if(s)return`${bs(s.firstDay)} – ${bs(s.lastDay)}`}return ko(t,n)}function Jd(e,t,n){return t==null?Nk(e,n):t instanceof Date?Number.isNaN(t.getTime())?"":Qd.format(t):typeof t=="boolean"?t?"Yes":"No":typeof t=="number"?String(t):t===""?"(empty)":Zd(e.type??"string",t,n)}function jk(e,t){return Jd(e,t,!1)}function Bk(e,t){return Jd(e,t,!0)}function Vk(e){const{given:t,value:n,onChange:r}=e,{theme:o}=Se.usePublisherTheme(),s=o.ui,i=Kn(),[a,l]=z.useState(null),c=t.name??"",u=t.label??c,d=n!=null,m=jk(t,n),y=a!==null,p=i?.stateOf(c),h=p?.problem,g=p?.fixed,w=f.jsxs(ep,{name:c,set:d,open:y,problem:h,fixed:g!==void 0,required:!d&&Ki(t),children:[f.jsxs(H.ButtonBase,{"aria-haspopup":"dialog","aria-expanded":y,"aria-label":`${u}: ${m}`,onClick:k=>{l(k.currentTarget),e.onOpen?.()},sx:k=>({height:"100%",borderRadius:s.radius.control,pl:"10px",pr:d?"4px":"8px",gap:"6px",fontFamily:"inherit",fontSize:s.type.control.fontSize,lineHeight:1,minWidth:0,color:k.palette.text.primary}),children:[f.jsx(H.Box,{component:"span",sx:k=>({color:d?o.accent:k.palette.text.secondary,whiteSpace:"nowrap"}),children:u}),f.jsx(H.Box,{component:"span",sx:{fontWeight:s.type.control.fontWeight,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:m}),!d&&f.jsx(Dc,{"aria-hidden":!0,sx:k=>({fontSize:16,color:k.palette.text.secondary,transform:y?"rotate(180deg)":"none"})})]}),d&&f.jsx(H.IconButton,{"aria-label":`Clear ${u}`,onClick:()=>r(null),sx:{width:22,height:22,mr:"4px",borderRadius:"4px",color:o.accent},children:f.jsx(Vo,{sx:{fontSize:14}})})]});return f.jsxs(f.Fragment,{children:[h?f.jsx(H.Tooltip,{title:h,children:w}):w,f.jsxs(H.Popover,{className:Ot.filterPopover,open:y,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(qi,{...e}),i&&f.jsxs(H.Box,{sx:k=>({mt:1.5,pt:1,borderTop:`1px solid ${k.palette.divider}`,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:.5}),children:[h&&f.jsx(H.Typography,{sx:{...s.type.caption,color:"warning.main"},children:h}),g!==void 0&&f.jsx(H.Typography,{sx:k=>({...s.type.caption,color:k.palette.text.secondary}),children:g}),f.jsx(Wk,{name:c,type:t.type,text:_k(n,t.type)}),g===void 0?f.jsx(H.Button,{size:"small","aria-label":`Edit filter ${c}`,"aria-haspopup":"dialog",onClick:()=>{l(null),i.onEdit(c)},sx:{px:.75,minWidth:0,...s.type.control},children:"Filter settings…"}):p?.openModel&&f.jsx(H.Button,{size:"small",onClick:()=>{l(null),p.openModel?.()},sx:{px:.75,minWidth:0,...s.type.control},children:"Open the model"})]})]})]})}function _k(e,t){if(e!=null)return fu(e,t)}function zk(e,t){return e===void 0||!t?.startsWith("filter<")?e:/^f(['"])([\s\S]*)\1$/.exec(e)?.[2]??e}function Wk({name:e,type:t,text:n}){const r=Kn(),o=Se.usePublisherTheme().theme.ui;if(!r?.setStartingValue)return null;const s=r.setStartingValue,i=zk(r.startingValueOf?.(e),t),a=r.stateOf(e)?.origin==="dashboard",l={px:.75,minWidth:0,...o.type.control};return f.jsxs(f.Fragment,{children:[i!==void 0&&i===n&&f.jsxs(H.Typography,{sx:c=>({...o.type.caption,color:c.palette.text.secondary,px:.75,display:"flex",alignItems:"center",gap:.5}),children:[f.jsx(Mc,{"aria-hidden":!0,sx:{fontSize:14}}),"Report default"]}),n!==void 0&&n!==i&&f.jsx(H.Button,{size:"small",onClick:()=>s(e,n),sx:l,children:"Make this the report's default"}),i!==void 0&&f.jsx(H.Button,{size:"small",onClick:()=>s(e,void 0),sx:l,children:a?"Use the filter's default":"Use the model's default"})]})}function ep({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=Kn();return f.jsxs(H.Box,{className:Ot.filter,"data-filter":e,"data-set":t||void 0,"data-problem":o?!0:void 0,"data-required":i||void 0,sx:d=>({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?d.palette.warning.main:t?`color-mix(in srgb, ${l.accent} 45%, transparent)`:n?l.accent:Gn(l.cardBorder),bgcolor:t?`color-mix(in srgb, ${l.accent} 8%, ${d.palette.background.paper})`:d.palette.background.paper,opacity:r?.75:1,transition:`border-color ${Or}`,...Ar,"&:hover":{borderColor:t||n||o?void 0:ni(l.cardBorder,l.tileTitle)},maxWidth:"100%",...Gd}),children:[a,u&&!s&&f.jsx(qd,{label:`Remove filter ${e}`,onRemove:()=>u.onRemove(e)})]})}function tp({name:e,label:t,unused:n=!0}){const r=Kn(),o=Se.usePublisherTheme().theme.ui;if(!r)return null;const s=r.stateOf(e)?.problem,i=f.jsx(ep,{name:e,unused:n,problem:s,children:f.jsxs(H.ButtonBase,{"aria-label":`Edit filter ${e}`,"aria-haspopup":"dialog",onClick:()=>r.onEdit(e),sx:a=>({height:"100%",borderRadius:o.radius.control,px:"10px",gap:"6px",fontFamily:"inherit",fontSize:o.type.control.fontSize,lineHeight:1,color:a.palette.text.secondary,whiteSpace:"nowrap"}),children:[f.jsx("span",{children:t}),n&&f.jsx(H.Box,{component:"span",sx:{fontStyle:"italic"},children:"Unused"})]})});return s?f.jsx(H.Tooltip,{title:s,children:i}):i}function np(){const{theme:e}=Se.usePublisherTheme(),t=e.ui,n=Kn();if(!n)return null;const r=n.addDisabledReason!==void 0;return f.jsx(H.Tooltip,{title:n.addDisabledReason??"",children:f.jsx("span",{children:f.jsx(H.Button,{variant:"outlined",startIcon:f.jsx(Js,{}),"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:Gn(e.cardBorder),color:o.palette.text.secondary,boxShadow:"none",...t.type.control,"& .MuiButton-startIcon":{mr:.5},"& .MuiButton-startIcon svg":{fontSize:16}}),children:"Filter"})})})}function Hk({givens:e,values:t,onChange:n,onReset:r,canReset:o,layout:s="panel",options:i,optionsLoading:a,optionsFailed:l,optionsTruncated:c,optionSearch:u,apply:d,title:m,onControlOpen:y}){const p=Kn();if(e.length===0&&!(p&&s==="bar"))return null;const h=Array.from(t.values()).some(b=>b!==null),g=o??h,w=b=>{if(b===void 0)return{};const P=u?.get(b);return{...c?.has(b)?{optionsTruncated:!0}:{},...P?{optionSearch:P}:{},...y?{onOpen:()=>y(b)}:{}}},k=e.map(b=>f.jsx(H.Box,{children:f.jsx(qi,{given:b,value:b.name?t.get(b.name):void 0,onChange:P=>b.name&&n(b.name,P),options:b.name?i?.get(b.name):void 0,optionsLoading:a,optionsFailed:b.name?l?.has(b.name):void 0,...w(b.name)})},b.name)),x=f.jsxs(H.Stack,{direction:"row",alignItems:"center",spacing:1,children:[d&&f.jsx(H.Button,{variant:"contained",size:"small",disableElevation:!0,onClick:()=>d.pending&&d.onApply(),"aria-disabled":!d.pending,sx:{"&[aria-disabled='true']":{cursor:"default",color:"action.disabled",backgroundColor:"action.disabledBackground","&:hover":{backgroundColor:"action.disabledBackground"}}},children:"Apply"}),g&&f.jsx(H.Button,{variant:"text",size:"small",onClick:r,children:"Reset"})]});return s==="bar"?f.jsxs(H.Stack,{direction:"row",role:"group","aria-label":m??"Filters",useFlexGap:!0,sx:{flexWrap:"wrap",alignItems:"center",gap:1},children:[e.map(b=>f.jsx(Vk,{given:b,value:b.name?t.get(b.name):void 0,onChange:P=>b.name&&n(b.name,P),options:b.name?i?.get(b.name):void 0,optionsLoading:a,optionsFailed:b.name?l?.has(b.name):void 0,...w(b.name)},b.name)),p?.unrendered.map(b=>f.jsx(tp,{name:b.name,label:b.label},b.name)),f.jsx(np,{}),f.jsx(H.Box,{sx:{ml:"auto"},children:x})]}):f.jsxs(H.Paper,{elevation:0,sx:{p:3,backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[f.jsxs(H.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[f.jsx(H.Typography,{variant:"subtitle2",sx:{fontWeight:"fontWeightMedium",color:"text.primary"},children:m??"Filters"}),x]}),f.jsx(H.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:k})]})}const Uk=/^(https?|mailto|tel):/i,Yk=/^[a-z][a-z0-9+.-]*:/i;function Gk({href:e,title:t,children:n,context:r}){const o=!!e&&Yk.test(e),s=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!s||!r){const d=o&&!Uk.test(e??"");return f.jsx("a",{href:d?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?d=>{d.preventDefault(),u(c,d)}:void 0,children:n})}const qk=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:Ic},"& 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 Kk({alt:e}){return f.jsx(f.Fragment,{children:e})}function Xk({children:e,variant:t="caption",links:n,sx:r}){const{theme:o}=Se.usePublisherTheme();return f.jsx(H.Box,{sx:[qk(o.ui)[t],{fontFamily:o.font.family},...Array.isArray(r)?r:[r]],children:f.jsx(qp,{options:{forceBlock:t==="document",disableParsingRawHTML:!0,overrides:{a:{component:Gk,props:{context:n}},img:{component:Kk}}},children:e})})}const To={opening:e=>e?`Opening the ${e}…`:"Opening…",running:"Running…",loading:"Loading…"};function Xi({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:s=2,textVariant:i="body2"}){const a=f.jsxs(H.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:s},children:[f.jsx(H.CircularProgress,{size:t,color:n,thickness:r}),e&&f.jsx(H.Typography,{variant:i,color:"text.secondary",children:e})]});return o?f.jsx(H.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:a}):a}let ar;function rp(){return ar||(ar=import("@malloydata/render"),ar.catch(()=>{ar=void 0})),ar}function Qi(){typeof window>"u"||rp().catch(()=>{})}const op=$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 sp({sx:e,...t}){const{theme:n}=Se.usePublisherTheme();return f.jsx(H.IconButton,{size:"small",...t,sx:[{width:32,height:32,bgcolor:n.tile,border:n.border,color:n.tileTitle,"&:hover":{bgcolor:n.tile,color:n.drillLink},"& .MuiSvgIcon-root":{fontSize:18}},...Array.isArray(e)?e:[e]]})}const Qk=new Set(["warn","error"]);function Zk(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!Qk.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(`
|
|
139
|
+
`)}}const Jk=z.lazy(()=>Promise.resolve().then(()=>require("./RenderedResult-C2arX5Zz.cjs.js")).then(e=>e.RenderedResult$1));function ip({result:e,maxHeight:t,tableMaxHeight:n,firstPaintHeight:r,maxResultSize:o=0,renderLogs:s,drill:i,fill:a=!1,compactToFit:l=!1}){const c=z.useRef(null);z.useEffect(()=>Qi(),[]);const[u,d]=z.useState(void 0),[m,y]=z.useState(void 0),[p,h]=z.useState(void 0),g=z.useCallback((F,L)=>{d(F),h(L)},[]),[w,k]=z.useState(!1),[x,b]=z.useState(void 0),P=Zk(s),C=!!e;z.useEffect(()=>{const F=c.current;if(!a||!F)return;const L=new ResizeObserver(([N])=>{b(Math.round(N.contentRect.height)),O(Math.round(N.contentRect.width))});return L.observe(F),()=>L.disconnect()},[a,C,w]);const[I,R]=z.useState(void 0),[A,O]=z.useState(void 0),E=a&&l&&u==="content";if(z.useEffect(()=>{R(void 0)},[e,A,E]),z.useEffect(()=>{E&&(x===void 0||m===void 0||(I===void 0&&m>x+1?R(m):I!==void 0&&x>=I&&R(void 0)))},[E,x,m,I]),!e)return null;if(o>0&&e.length>o&&!w)return f.jsxs(H.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,p:4,backgroundColor:"#fafafa",border:"1px solid",borderColor:"#e0e0e0",borderRadius:1},children:[f.jsx(Xp.Warning,{sx:{fontSize:48,color:"#757575"}}),f.jsx(H.Typography,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),f.jsx(H.Button,{variant:"contained",color:"primary",onClick:()=>k(!0),children:"Proceed"})]});const $=f.jsx(Xi,{text:To.loading,centered:!0,size:32}),D=wg({renderAs:p,maxHeight:t,tableMaxHeight:n}),M=Ms({sizing:u,contentHeight:m,maxHeight:D,fillHeight:a?x:void 0,firstPaintHeight:r}),T=f.jsx(z.Suspense,{fallback:$,children:f.jsx(Jk,{result:e,height:M,onSizeChange:y,onSizing:g,drill:i,fill:a})});return f.jsxs(H.Box,{ref:c,sx:{position:"relative",height:"auto",border:"0px",borderRadius:0,overflowX:"hidden",overflowY:a?"hidden":"auto",...a&&{flex:`1 1 ${Ms({sizing:u,contentHeight:m,maxHeight:D,firstPaintHeight:r})}px`,minHeight:0}},children:[a?f.jsx(H.Box,{className:_c,...E&&I!==void 0?{[Vc]:""}:{},sx:{position:"absolute",inset:0,overflowX:"hidden",overflowY:"auto"},children:T}):T,P&&f.jsx(H.Box,{sx:{position:"absolute",top:4,right:4,zIndex:1},children:f.jsx(H.Tooltip,{title:P.title,slotProps:{tooltip:{sx:{whiteSpace:"pre-line"}}},children:f.jsx(sp,{"aria-label":"Render tag warnings",children:f.jsx(op,{fontSize:"small",color:P.severity==="error"?"error":"warning"})})})})]})}function ap({state:e,context:t,loadingText:n=To.running,maxHeight:r,tableMaxHeight:o,firstPaintHeight:s,maxResultSize:i,drill:a,fill:l,compactToFit:c,transform:u}){const{data:d,isSuccess:m,isError:y,error:p,fetchStatus:h,isPlaceholderData:g}=e,w=m||h==="fetching";z.useEffect(()=>{w&&Qi()},[w]);const k=d?.data.result,x=z.useMemo(()=>k!==void 0&&u?u(k):k,[k,u]),b=z.useMemo(()=>sg(x),[x]);if(y)return f.jsx(H.Box,{sx:{p:2},children:f.jsx(qc,{context:t,error:p})});if(!m)return f.jsx(Xi,{text:h==="idle"?To.loading:n});if(b)return f.jsx(H.Box,{sx:{p:2},children:f.jsx(H.Typography,{variant:"body2",role:"status",color:"text.secondary",children:b})});const P=f.jsx(ip,{result:x,maxHeight:r,tableMaxHeight:o,...s!==void 0?{firstPaintHeight:s}:{},maxResultSize:i,renderLogs:d.data.renderLogs,drill:a,fill:l,compactToFit:c});return f.jsxs(H.Box,{"aria-busy":g||void 0,sx:{position:"relative",display:"flex",flexDirection:"column",flex:"1 1 auto",minHeight:0,minWidth:0,...l?{height:"100%"}:{},"& > .result-body":{display:"flex",flexDirection:"column",flex:"1 1 auto",minHeight:0,minWidth:0,...l?{height:"100%"}:{},opacity:g?.55:1,transition:g?"opacity 160ms ease 200ms":"opacity 120ms ease","@media (prefers-reduced-motion: reduce)":{transition:"none"}}},children:[g&&f.jsx(H.LinearProgress,{"aria-label":n,sx:{position:"absolute",top:0,left:0,right:0,height:2,zIndex:1,bgcolor:"transparent",borderRadius:1}}),f.jsx(H.Box,{className:"result-body",children:P})]})}const _s=()=>typeof performance<"u"?performance.now():Date.now(),eT=$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"})),tT=3;function nT(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 rT(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} or ${e[e.length-1]}`}function lp({ignored:e}){const{theme:t}=Se.usePublisherTheme();if(e.length===0)return null;const n=e.length>tT?`Doesn't respond to ${e.length} filters`:`Doesn't respond to ${e.join(", ")}`;return f.jsxs(H.Box,{"data-testid":"tile-filter-tag",title:`This tile's query never reads ${rT(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(eT,{sx:{fontSize:12}}),f.jsx(H.Box,{component:"span",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})]})}const oT=/\.malloy(nb)?$/,sT=e=>e&&e.slice(e.lastIndexOf("/")+1).replace(oT,"")||void 0,cp=e=>e.replace(/\.malloy$/,"").split("/").map(encodeURIComponent).join("/"),up=(e,t,n)=>`/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${cp(n)}`,dp="edit",iT=(e,t,n)=>`${up(e,t,n)}?${dp}`,pp=e=>e.layout==="linear"?"linear":"grid",fp=e=>({layout:pp(e),path:e.path,editable:e.editable!==!1});function Zi(e,t){const n=t.find(r=>r.path===e);return n?.path?fp({...n,path:n.path}):void 0}function hp(e){return e===""||e.startsWith("/")?!1:e.split("/").every(t=>t!==""&&t!=="."&&t!=="..")}function aT(e,t){if(!hp(e))return{kind:"unresolved"};for(const n of[`${e}.malloy`,e]){const r=Zi(n,t);if(r)return{kind:"path",report:r}}return{kind:"unresolved"}}const lT=(e,t,n)=>["reports",e,t,n];async function cT(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 mp(e,t,n,r=!0){const{apiClients:o}=Se.useServer(),s=ts({queryKey:lT(e,t,n),queryFn:()=>cT(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 uT(e,t,n,r){const{reports:o,settled:s}=mp(e,t,r);return{settled:s,reports:o,location:s?Zi(n,o):void 0}}const Ji=20,dT={radius:"8px",padding:`${Ji}px`};function pT(e,t=dT){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 gp={query:120,text:72};function ea({borderless:e=!1,chrome:t="card",kind:n="query",sx:r,cardRef:o,children:s}){const{theme:i}=Se.usePublisherTheme(),a=i.ui,l=e||t==="none";return f.jsx(H.Paper,{ref:o,className:Ot.tile,elevation:0,"data-chrome":t,"data-tile-kind":n,sx:[{border:l?"none":i.cardBorder,borderRadius:l?0:a.radius.tile,background:l?"none":i.tile,overflow:"hidden",isolation:"isolate",display:"flex",flexDirection:"column",minWidth:0,minHeight:t==="none"?0:gp[n],p:t==="none"?0:e?"12px 0":`${Ji}px`},...Array.isArray(r)?r:[r]],children:s})}const yp=Ot.tileHeading;function bp({title:e,subtitle:t,tooltip:n,action:r,quiet:o=!1}){const{theme:s}=Se.usePublisherTheme(),i=s.ui;return f.jsxs(H.Box,{className:yp,sx:{pb:o?.5:1.5,display:"flex",alignItems:"flex-start",gap:1},children:[f.jsxs(H.Box,{sx:{minWidth:0,flex:1},children:[f.jsx(H.Typography,{component:"div",sx:{...i.type.tileTitle,display:"block",color:s.tileTitle,fontFamily:s.font.family},title:n,children:e}),t!==void 0&&f.jsx(H.Typography,{component:"div",sx:{...i.type.caption,display:"block",mt:"2px",color:s.tileTitle,fontFamily:s.font.family,opacity:.75},children:t})]}),r]})}const fT=-1;function hT(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 mT(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 gT(){const[e,t]=z.useState(!1),n=z.useRef(null);return{stickyRef:z.useCallback(o=>{if(n.current?.(),n.current=null,!o||typeof window>"u")return;const s=hT(o),i=s??window;let a=0;const l=()=>{a=0,t(mT(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 vp=4,xp="--publisher-sticky-top",yT=2;function bT({layout:e,notice:t,header:n,controls:r,children:o,sx:s}){return f.jsxs(H.Stack,{className:Ot.report,"data-layout":e,sx:[{gap:yT},...Array.isArray(s)?s:[s]],children:[t,n,r,o]})}function vT({title:e,description:t,actions:n}){const r=Se.usePublisherTheme().theme.ui;return f.jsxs(H.Stack,{className:Ot.header,sx:{gap:1.5},children:[f.jsxs(H.Stack,{direction:"row",sx:{alignItems:"center",gap:2},children:[f.jsx(H.Typography,{component:"h1",className:Ot.title,sx:{...r.type.pageTitle,m:0,flex:1,minWidth:0},children:e}),n&&f.jsx(H.Box,{sx:{my:"-4px"},children:n})]}),t]})}function xT({sx:e,children:t}){return f.jsx(ea,{chrome:"none",kind:"text",...e?{sx:e}:{},children:t})}function ST({children:e}){const{theme:t}=Se.usePublisherTheme(),{stickyRef:n,stuck:r}=gT();return f.jsx(H.Box,{ref:n,className:Ot.filterRow,"data-stuck":r||void 0,sx:{position:"sticky",top:`calc(var(${xp}, 0px) + ${fT}px)`,zIndex:vp,bgcolor:r?"background.default":"transparent",pb:1,pt:1,mt:-1,boxShadow:r?`0 1px 0 ${Gn(t.cardBorder)}`:"none",transition:`box-shadow ${Or}`,...Ar},children:e})}const Sp=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},wp=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=${encodeURIComponent(e.versionId)}`),t};function ta(e,t){if(e[t])return e;const n=e.default;return n?.[t]?n:e}const wT=e=>ta(e,"MalloyTranslator"),CT=e=>ta(e,"parseAnnotation"),PT=e=>ta(e,"ASTQuery");async function kT(){return wT(await import("@malloydata/malloy"))}async function TT(){return CT(await import("@malloydata/malloy-tag"))}async function MT(){return PT(await import("@malloydata/malloy-query-builder"))}async function DT(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 RT(e){return e.find(t=>t.authoritative)??e.find(t=>t.writeable)}function Cp({authoritative:e,mutable:t,versionId:n,canStore:r,readFailed:o}){const s=e?"host":t?"package":"browser",i=n!==void 0&&s==="package";return{savesTo:s,pinnedPackageSave:i,writer:o?void 0:e?r?"storage":void 0:i?void 0:t?"package":r?"storage":void 0}}async function IT(e,t){return e??(t===void 0?void 0:await DT(t))}function ET({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 $T(e){return e instanceof Error?e.message:String(e)}function OT(e){const t=e.response?.data;return t?.message?t.message:e instanceof Error?e.message:String(e)}async function AT({apiClients:e,queryClient:t,environmentName:n,packageName:r,modelPath:o,source:s,expectedHash:i,invalidateOnError:a,invalidate:l,afterWrite:c}){let u;try{u=await e.models.updateModelSource(n,r,o,{source:s,expectedHash:i})}catch(m){for(const y of a)t.invalidateQueries({queryKey:y});throw new Error(OT(m))}const d=u.data.contentHash;await c?.(d);for(const{queryKey:m,refetchType:y,wait:p}of l){const h=t.invalidateQueries({queryKey:m,...y?{refetchType:y}:{}});p&&await h}return d}function FT(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=Sp(e.resourceUri)}catch{t=void 0}return{environmentName:t?.environmentName??"",packageName:t?.packageName??"",versionId:t?.versionId,namesBoth:!!t?.environmentName&&!!t?.packageName}}class Pp extends Error{constructor(t){super(t),this.name="DocumentNotFoundError"}}const kp=e=>e instanceof Pp||e instanceof Error&&e.name==="DocumentNotFoundError",NT=String.raw`##?\|?[ \t]*(?:[([{<][ \t]*)?(?:(?:(?:row|source)[-_]?)?authorize|access[-_]?filter)(?=[)\]}>]|[ \t]|$)`;function na(e,t){if(/[\r\n]/.test(t))return`A ${e} is one line; it cannot hold a line break.`;if(new RegExp(NT,"iu").test(t))return`A ${e} cannot contain what reads as an access-control tag (authorize, row_authorize, source_authorize or access_filter).`}const lr=e=>Us.isBareName(e)?e:`\`${e}\``;function ra(e){const{title:t,modelPath:n,source:r,view:o}=e;if(t.trim()==="")return"A title cannot be empty.";const s=na("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 jT=e=>{const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)},Ul=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,BT="report.malloy";function oa(e,t,n=BT){const r=ra(e);if(r)throw new Error(r);const{modelPath:o,source:s,view:i}=e,a=e.title.trim(),l=Ul(a),c=lr(`${s}_tiles`),u=lr(`${i}_tile`),d=`"${c} -> ${u}"`;return["##! experimental.givens",`##| artifact { layout=${t} title=${l}`," tiles=[",` ${d}`," ]",t==="grid"?"} dashboard { columns=12 }":"}","|##",`import { ${lr(s)} } from "${Uc(o,n)}"`,"",`source: ${c} is ${lr(s)} extend {`,` # label=${Ul(jT(i))}`,` view: ${u} is ${lr(i)}`,"}",""].join(`
|
|
140
|
+
`)}function VT(e,t){return oa(e,"linear",t)}function Tp(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,80)}function _T({title:e,modelPath:t,source:n,view:r}){for(const[o,s]of[["source",n],["view",r]])if(!Us.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.`:na("title",e)}function zT(e,t){const n=_T(e);if(n)throw new Error(n);return oa(e,"grid",t)}const Mp=e=>(e??"").trim().replace(/\\/g,"/").split("/").filter(t=>t!=="").join("/");function Dp(e,t){const n=Mp(t);return`${n===""?"":`${n}/`}${e}.malloy`}function Rp(e){return Tp(e)||"untitled"}function Ip(e,t=1,n){const r=Rp(e);return Dp(t>1?`${r}-${t}`:r,n)}const Ep=(e,t,n)=>`${e}/${t}/${n}`,$p=(e,t,n,r,o)=>({workspace:t,type:e,path:Ep(n,r,o)}),sa=20;function WT(e){const{savesTo:t,writer:n}=Cp({...e,readFailed:!1});return t==="browser"?void 0:n}const Yl=e=>e.slice(e.lastIndexOf("/")+1).replace(/\.malloy$/,"");function Op(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 HT(e){const t=e.layout??"linear",n=_s();let r;try{r=await UT(e,t)}catch(o){throw yo({path:e.path??"",layout:t},e.onEvent).emit({type:"report.create_refused",reason:o instanceof Error?o.message:String(o)}),o}return yo({path:r.path,layout:t},e.onEvent).emit({type:"report.created",where:e.target.route==="package"?"package":"host",durationMs:_s()-n}),e.onCreated?.(r),r}async function UT(e,t){const{document:n,target:r}=e,o=ra(n);if(o)throw new Error(o);const s=Mp(e.directory),i=e.path!==void 0?[e.path]:Array.from({length:sa},(h,g)=>Ip(n.title,g+1,s));for(const h of i){const g=Op(h);if(g)throw new Error(g)}const a=h=>oa(n,t,h);if(r.route==="package"){const h=new Set(r.existing);let g;for(const w of i)if(!h.has(w))try{await r.write(w,a(w)),g=w;break}catch(k){if(!YT(k))throw k}if(g===void 0)throw Gl(n.title,e.path);return{layout:t,path:g,slug:Yl(g)}}const{storage:l,workspace:c,environmentName:u,packageName:d}=r,m=new Set(r.existing),y=new Set((await l.listDocuments(c)).map(h=>h.path));let p;for(const h of i){const g=$p(t,c.name,u,d,h),w=await l.resolveDocumentPath?.(g)??h;if(y.has(g.path)||m.has(h)||m.has(w))continue;let k=!0;try{await l.getDocument(g)}catch(x){if(!kp(x))throw x;k=!1}if(!k){p={layout:t,path:w,slug:Yl(w),locator:g};break}}if(p===void 0)throw Gl(n.title,e.path);return await l.saveDocument(p.locator,a(p.path)),p}const YT=e=>e?.response?.status===409,Gl=(e,t)=>new Error(t!==void 0?`${t} already exists. Fix: choose a different location.`:`No free file name for "${e}" after ${sa} tries. Fix: choose a different title.`);function Ap(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 zs(e){for(const t of e??[]){const n=/^#\(doc\)\s*(.*)$/s.exec(t.trim());if(n)return n[1].trim()}}function Fp(e){for(const t of e??[]){const n=/^#\s*(?:-[A-Za-z_]+\s+)*([a-z_]+)/.exec(t.trim())?.[1];if(n&&Cc.includes(n))return n}}function GT({environmentName:e,packageName:t,versionId:n,models:r,enabled:o}){const{apiClients:s,server:i}=Se.useServer(),a=Un.useQueries({queries:r.map(p=>({queryKey:["new-document-model",e,t,n,p,i],queryFn:async()=>(await s.models.getModel(e,t,p,n)).data,enabled:o,retry:!1,staleTime:300*1e3,refetchOnWindowFocus:!1}))}),l=a.map(p=>p.dataUpdatedAt).join(),c=z.useMemo(()=>{const p=new Map;return a.forEach((h,g)=>{const w=[],k=Ap(h.data?.modelInfo);for(const x of h.data?.sources??[]){if(typeof x.name!="string"||!k.has(x.name))continue;const b=zs(x.annotations);for(const P of x.views??[])if(typeof P.name=="string"){const C=zs(P.annotations),I=Fp(P.annotations);w.push({source:x.name,view:P.name,...C?{description:C}:{},...I?{chart:I}:{},...b?{sourceDescription:b}:{}})}}w.length>0&&p.set(r[g],w)}),p},[l,r]),u=a.some(p=>p.isLoading),d=u?[]:r.filter((p,h)=>a[h]?.isError),m=!u&&a.some(p=>p.isError&&Us.canRetryRequest(p.error)),y=()=>{a.forEach(p=>{p.isError&&p.refetch()})};return{choices:c,isLoading:u,isSuccess:a.length>0&&a.every(p=>!p.isPending),failed:d,retry:y,canRetry:m}}const ia=z.createContext(void 0);function qT({children:e,documentStorage:t}){const n=z.useMemo(()=>({documentStorage:t}),[t]);return f.jsx(ia.Provider,{value:n,children:e})}function KT(){const e=z.useContext(ia);if(!e)throw new Error("useDocumentStorage must be used within a DocumentStorageProvider");return e}function XT(){return z.useContext(ia)}function QT(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 ZT=1e4,JT=e=>e==="notebook"?"linear":"grid",eM=(e,t)=>`${e}s/${t}.malloy`;function tM(e,t,n){return[["dashboards"],["notebooks"],["dashboard"],...n===void 0?[]:[[wp({environmentName:e,packageName:t,modelPath:n})]]]}function nM(e,t,n,r){for(const o of[["report"],["reports"],...tM(t,n,r)])e.invalidateQueries({queryKey:o})}function ts(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 Un.useQuery(n,Se.globalQueryClient)}function rM(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 Un.useMutation(t,Se.globalQueryClient)}function Lp(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function oM(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath]}function Np(e,{enabled:t=!0}={}){const{apiClients:n}=Se.useServer(),r=Lp(e);return ts({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&&iM(s.queryKey,r)?Un.keepPreviousData(o):void 0,...Se.CHART_RESULT_QUERY_OPTIONS})}const sM=8;function iM(e,t){return e.every((n,r)=>r===sM||r>=t.length||n===t[r])}const aM=/<\/?[A-Za-z][^>]*>|<!--|<![A-Za-z]/;function jp(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&&aM.test(s)){e.delete("label"),t=!0;continue}}const o=Array.isArray(r.eq)?r.eq:[];for(const s of[r,...o])jp(s)&&(t=!0)}return t}function lM(e){const t=e.trim();if(!/^#(?:\||[ \t\r\n]|$)/.test(t))return e;if(t.includes("@env."))return"";let n;try{n=Qp.parseAnnotation(t)}catch{return""}return n.log.length>0?"":jp(n.tag)?`${n.tag.toString()}
|
|
141
|
+
`:e}function Ws(e){if(Array.isArray(e)){for(const n of e)Ws(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=lM(s.value))}else Ws(r)}function Bp(e){let t;try{t=JSON.parse(e)}catch{return e}const n=JSON.stringify(t);Ws(t);const r=JSON.stringify(t);return r===n?e:r}const cM=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"]),uM={value:`# big_value
|
|
142
|
+
`};function dM(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(r=>Ts(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 pM(e){for(const t of e){const n=t.trim();if(!n.startsWith("#")||n.startsWith("#(")||n.startsWith('#"'))continue;const r=Bo(n.slice(1));for(const o of r.split(/[\s{}=.,[\]]+/))if(cM.has(o))return!0}return!1}function Vp(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!dM(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return pM(r)?e:JSON.stringify({...t,annotations:[uM,...n]})}const fM=e=>Bp(Vp(e));function Hs(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?lu(t):e}function hM({environmentName:e,packageName:t,versionId:n,modelPath:r,queryName:o,tile:s,annotation:i,label:a,subtitle:l,heading:c,borderless:u,givens:d,hostGivens:m,declaredTypes:y,givenNames:p,height:h,tableMaxHeight:g,fixedHeight:w,maxResultSize:k,drill:x,onExplore:b,chrome:P="card",ignoredFilters:C,preamble:I,restricted:R,waitingFor:A,index:O}){const{theme:E}=Se.usePublisherTheme(),[v,$]=$g(),D=Np({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:s!==void 0?pi(I??"",`${i?`${i}
|
|
143
|
+
`:""}run: ${s}`):void 0,givens:di(ui(d,y,p),m,p)},{enabled:$&&R!==!0&&A===void 0}),{emit:M}=ii(),T=D.isError?D.error:void 0;z.useEffect(()=>{T!==void 0&&M({type:"report.query_failed",...O!==void 0?{tile:O}:{},category:Jc(T)})},[T,M,O]);const F=R===!0||I!==void 0&&D.isError&&yy(D.error);return f.jsxs(ea,{cardRef:v,borderless:u,chrome:P,sx:{"& .malloy-render, & .malloy-table":{width:"100%"},"& .publisher-tile-explore":{opacity:0,transition:`opacity ${Or}`,...Ar,...Rc},"&:hover .publisher-tile-explore, & .publisher-tile-explore:focus-visible":{opacity:1}},children:[s!==void 0&&f.jsx(bp,{title:c?.title??a??Hs(s),subtitle:c?c.subtitle:l,quiet:P==="none",tooltip:s,action:b&&f.jsx(H.Tooltip,{title:"Explore from here",children:f.jsx(H.IconButton,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${a??Hs(s)}`,onClick:b,sx:{mt:-.5,mr:-.5,color:E.tileTitle},children:f.jsx(Rg,{fontSize:"small"})})})}),C&&f.jsx(lp,{ignored:C}),A!==void 0?f.jsx(H.Box,{sx:{p:2},children:f.jsx(H.Typography,{variant:"body2",role:"status",color:"text.secondary",children:A})}):F?f.jsx(H.Box,{sx:{p:2},children:f.jsx(H.Typography,{variant:"body2",role:"status",color:"text.secondary",children:bu})}):f.jsx(ap,{fill:!0,state:D,context:s??o??r,maxHeight:h,tableMaxHeight:g,compactToFit:w,firstPaintHeight:ri,maxResultSize:k,drill:x,transform:I!==void 0?s!==void 0?fM:Bp:s!==void 0?Vp:void 0})]})}function mM(e,{enabled:t=!0}={}){const{apiClients:n}=Se.useServer();return ts({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=wu;exports.AddButton=Xm;exports.AddFilterButton=np;exports.AddIcon=Js;exports.ApiErrorDisplay=qc;exports.AppDialog=Tc;exports.ArrowDropDownIcon=Cd;exports.BARE_RING_OFFSET_PX=Rm;exports.BUILDER_HANDOFF_STALE_MS=ZT;exports.Button=fr;exports.ButtonBase=Vn;exports.ChartGlyph=Fc;exports.CheckIcon=Mc;exports.Chip=pd;exports.CircularProgress=ki;exports.ClassNameGenerator=Kl;exports.CloseIcon=Vo;exports.DASHBOARD_CARD_PADDING_PX=Ji;exports.DEFAULT_COLUMNS=mc;exports.DRILL_SELF=ay;exports.DashboardGrid=Nm;exports.DashboardTile=hM;exports.DatePicker=Vd;exports.DeleteOutlineIcon=Dg;exports.DocumentNotFoundError=Pp;exports.DocumentStorageProvider=qT;exports.ErrorDetailAlert=Gc;exports.ExpandMoreIcon=Dc;exports.FilterEditingContext=Yd;exports.FilterSettingsButton=tp;exports.FloatingIconButton=sp;exports.FormControl=_i;exports.GIVEN_SETTLE_MS=_d;exports.GRID_GAP_PX=Tt;exports.GivenInput=qi;exports.GivensPanel=Hk;exports.Grow=Pr;exports.INITIAL_RENDER_HEIGHT=jc;exports.IconButton=jr;exports.InfoOutlinedIcon=op;exports.InputLabel=Vi;exports.LOADING_COPY=To;exports.ListContext=On;exports.Loading=Xi;exports.LocalizationProvider=Si;exports.MAX_SLUG_ATTEMPTS=sa;exports.MAX_TILE_ROWS=yc;exports.MIN_TEXT_TILE_ROWS=$m;exports.MIN_TILE_PX=vc;exports.MIN_TILE_ROWS=gc;exports.MIN_VALUE_TILE_ROWS=Em;exports.MODEL_CELL_MAX_HEIGHT=Cg;exports.MOTION_FAST=Or;exports.NOTEBOOK_CELL_MAX_HEIGHT=xg;exports.PLACED_DEFAULT_ROWSPAN=Sc;exports.PROSE_MAX_WIDTH=Ic;exports.Paper=Br;exports.Popper=rd;exports.Prose=Xk;exports.REMOVE_BADGE_CLASS=In;exports.REPORT_EDIT_PARAM=dp;exports.RESTRICTED_NOTICE=bu;exports.RESULTS_DIALOG_MAX_HEIGHT=Pg;exports.RESULT_SCROLLER_CLASS=_c;exports.RemoveBadge=qd;exports.ReportEventsContext=Zc;exports.ReportHeader=vT;exports.ReportPage=bT;exports.ResultContainer=ip;exports.ResultPanel=ap;exports.STICKY_CONTROLS_Z=vp;exports.STICKY_TOP_VAR=xp;exports.SearchIcon=Ac;exports.SecondaryButton=Qm;exports.Select=Hi;exports.StickyControls=ST;exports.SvgIcon=go;exports.THEME_ID=Yn;exports.TIGHT_ATTR=Vc;exports.TILE_HEADING_CLASS=yp;exports.TILE_MAX_HEIGHT=ri;exports.TILE_MIN_HEIGHT=gp;exports.TILE_ROW_PX=jo;exports.TextField=Pd;exports.TextTileFrame=xT;exports.TileCard=ea;exports.TileFilterTag=lp;exports.TileHeading=bp;exports.Typography=Qt;exports.UNCAPPED_CONTAINER_HEIGHT=Nc;exports.UnsavedChangesDialog=Km;exports.ViewPicker=fg;exports.annotationTextProblem=na;exports.buildTableCssVars=pT;exports.capitalize=ie;exports.chartLineText=Bm;exports.chartLinesOf=qm;exports.chartOf=Fp;exports.chartResetLine=jm;exports.chartShapeGap=$c;exports.chartStateOfTagLines=zm;exports.chooseWorkspace=RT;exports.clearReportDraft=zg;exports.clsx=de;exports.columnCounts=Oc;exports.composeClasses=me;exports.contentNode=Lc;exports.contentNodeDepth=bg;exports.createDocument=HT;exports.createRoute=WT;exports.createSimplePaletteValueFilter=Xe;exports.createSvgIcon=$e;exports.createTheme=uc;exports.dangerTextColor=Jm;exports.dayjs=Re;exports.describeGivenValue=Bk;exports.docOf=zs;exports.documentPreamble=gy;exports.documentSlug=sT;exports.draftKey=Ep;exports.draftStorageAvailable=Wg;exports.drillDestinations=au;exports.drillGivenName=cu;exports.drillValueLabel=uu;exports.drillValueToFilter=zo;exports.edgeColor=Gn;exports.emphasize=tc;exports.encodeDrillValue=du;exports.encodeResourceUri=wp;exports.escapeMalloyString=si;exports.expectedHashFor=IT;exports.exportedSources=Ap;exports.extractEventHandlers=gi;exports.failureCategory=Jc;exports.filledInputClasses=Yt;exports.formControlState=vn;exports.formatMalloyValue=Vg;exports.generateUtilityClass=ge;exports.generateUtilityClasses=he;exports.getAugmentedNamespace=ef;exports.getDefaultExportFromCjs=jt;exports.getReactElementRef=qn;exports.givensToParams=so;exports.givensToRequest=ui;exports.hoverEdgeColor=ni;exports.humanizeSlug=lu;exports.initialResultHeight=Bc;exports.inputBaseClasses=gn;exports.inputClasses=Dn;exports.invalidateReportQueries=nM;exports.isChartPick=Pc;exports.isDocumentNotFound=kp;exports.isDrillTargetPath=hp;exports.isPlaced=wc;exports.isSeriesColor=kc;exports.layoutOfKind=JT;exports.layoutRules=Tg;exports.legacyNamedPath=eM;exports.listedLayout=pp;exports.loadMalloy=kT;exports.loadMalloyRenderer=rp;exports.loadMalloyTag=TT;exports.loadQueryBuilder=MT;exports.localGivenSpec=Og;exports.locateReport=Zi;exports.locatedReport=fp;exports.locatorFor=$p;exports.malloyFilterLiteral=Kc;exports.malloyIdentifier=pn;exports.malloyLiteral=Ng;exports.measureContentHeight=vg;exports.memoTheme=Ee;exports.mentionsChartTag=ti;exports.mergeSlotProps=hc;exports.missingRequiredGivens=Ek;exports.modelResultsKey=oM;exports.namedQueryRunQuery=vy;exports.newDashboardSource=zT;exports.newDocumentProblem=ra;exports.newNotebookSource=VT;exports.now=_s;exports.nudgedSpan=Dm;exports.outlinedInputClasses=bt;exports.ownerDocument=Ye;exports.parseChartLine=$r;exports.parseResourceUri=Sp;exports.queryResultKey=Lp;exports.reaches=Yc;exports.readableName=pg;exports.reducedMotionSx=Ar;exports.remeasuresAfterReady=yg;exports.removeBadgeRevealSx=Gd;exports.renderGivenDefault=Gi;exports.reportClasses=Ot;exports.reportDraftKey=_g;exports.reportEditRoute=iT;exports.reportEmitter=yo;exports.reportPathFor=Dp;exports.reportPathForTitle=Ip;exports.reportPathProblem=Op;exports.reportQueryOptions=QT;exports.reportRoute=up;exports.reportRoutePath=cp;exports.requestsRowChart=ng;exports.requiredPrompt=Ok;exports.resolveDrill=ly;exports.resolveDrillTarget=aT;exports.resolveEditorTarget=LT;exports.resolveResultHeight=Ms;exports.resolvedOf=oi;exports.resultSizing=gg;exports.rootShouldForwardProp=pt;exports.rowsForHeight=Om;exports.sampleValuesQuery=xy;exports.saveCaption=ET;exports.saveTarget=Cp;exports.scrollBehavior=Zm;exports.seriesColorFrom=Gm;exports.seriesColorLine=Um;exports.seriesColorOf=Hm;exports.seriesColorResetLine=Ym;exports.setRef=Cs;exports.slugFor=Tp;exports.slugOrFallback=Rp;exports.storageErrorMessage=$T;exports.styled=Z;exports.tileHeightPx=bc;exports.tileIgnoredFilterLabels=nT;exports.tileTitle=Hs;exports.typographyClasses=Vb;exports.useCompiledDocument=mM;exports.useControlled=Dt;exports.useDefaultProps=Ce;exports.useDefaultTileSpan=Am;exports.useDocumentChoices=GT;exports.useDocumentControls=Iy;exports.useDocumentLocation=uT;exports.useDocumentStorage=KT;exports.useDrillSelf=pu;exports.useEnhancedEffect=Ue;exports.useEventCallback=ue;exports.useForkRef=ke;exports.useFormControl=ft;exports.useGivensState=yu;exports.useId=xt;exports.useMutationWithApiError=rM;exports.useOptionalDocumentStorage=XT;exports.useQueryResult=Np;exports.useQueryWithApiError=ts;exports.useReportDraft=Gg;exports.useReportEmitter=qg;exports.useReportEvents=ii;exports.useReportListing=mp;exports.useSettled=zd;exports.useSlot=je;exports.useSuggestOptions=Su;exports.useTheme=yn;exports.useTimeout=mi;exports.utc=ai;exports.viewRunQuery=by;exports.visibleWithoutHoverSx=Rc;exports.waitingOn=$k;exports.waitingText=Ak;exports.warmMalloyRenderer=Qi;exports.withHostGivens=di;exports.withPreamble=pi;exports.withReportContext=Xc;exports.withSource=Mg;exports.withSpan=kg;exports.withWorkspace=FT;exports.writePackageFile=AT;exports.writtenSpan=zc;
|