From afdbaa679df4379b920c7acbe5e0ce2827c59571 Mon Sep 17 00:00:00 2001 From: Dmitry Khorkin <32310771+DimaAmega@users.noreply.github.com> Date: Wed, 26 Jun 2024 19:29:48 +0400 Subject: [PATCH] UI~Bakend typing (#1145) --- .../ui-types-from-backend/action.yml | 29 + .github/workflows/main.yml | 10 +- .github/workflows/ui.yml | 47 +- .gitignore | 2 + src/evidently/model/widget.py | 17 +- src/evidently/nbextension/static/index.js | 152 +- src/evidently/options/color_scheme.py | 20 +- src/evidently/ui/api/models.py | 31 +- src/evidently/ui/api/projects.py | 40 +- src/evidently/ui/api/service.py | 19 +- src/evidently/ui/app.py | 19 +- src/evidently/ui/assets/index.html | 4 +- ...py-BwagEdvM.js => ContentCopy-Cu793Viy.js} | 2 +- ...NKCdbH.js => DashboardContent-TZHSTgd_.js} | 2 +- .../static/js/DashboardViewParams-B9orGR5W.js | 1 - .../static/js/DashboardViewParams-C3ZVhGVT.js | 1 + ...2wfP2u.js => DashboardWidgets-BZwV75ei.js} | 2 +- .../js/{Edit-BcjZfdDu.js => Edit-DoUCfieB.js} | 2 +- ...-C96PFZfH.js => createSvgIcon-BHt_C7WZ.js} | 2 +- .../ui/assets/static/js/index-4yzo42d5.js | 1 - .../ui/assets/static/js/index-BWrpN-V1.js | 1 - .../{index-v1sDJlOH.js => index-Bqm6dU8U.js} | 2 +- .../ui/assets/static/js/index-C31Sqnps.js | 1 - .../ui/assets/static/js/index-CV6CtGXT.js | 3 + .../ui/assets/static/js/index-CcxL9Qb3.js | 1 - .../ui/assets/static/js/index-Cwfq0AAl.js | 1 + .../ui/assets/static/js/index-D6ByaOqT.js | 3 - .../{index-BY6V2Y10.js => index-DATujkfj.js} | 2 +- .../{index-aMPYZdgb.js => index-DC3NAYIv.js} | 2 +- .../ui/assets/static/js/index-DH7dNy5S.js | 1 + .../ui/assets/static/js/index-Db0FOPuV.js | 1 + .../ui/assets/static/js/index-vToD_Ha9.js | 1 + .../ui/assets/static/js/vendor-CFh6IQM6.js | 319 ++ .../ui/assets/static/js/vendor-CmCdJidw.js | 319 -- ui/packages/evidently-ui-lib/.gitignore | 1 + ui/packages/evidently-ui-lib/package.json | 7 +- .../evidently-ui-lib/src/api/JsonParser.ts | 2 + .../evidently-ui-lib/src/api/LocalApi.ts | 114 - .../evidently-ui-lib/src/api/RemoteApi.tsx | 141 - .../evidently-ui-lib/src/api/index.tsx | 179 +- .../src/api/providers/dashboard.ts | 68 + .../src/api/providers/projects.ts | 100 + .../src/api/providers/version.ts | 25 + .../evidently-ui-lib/src/api/types/index.ts | 86 + .../src/api/types/providers/dashboard.ts | 21 + .../src/api/types/providers/projects.ts | 8 + .../src/api/types/providers/version.ts | 5 + .../evidently-ui-lib/src/api/types/utils.ts | 36 + ui/packages/evidently-ui-lib/src/api/utils.ts | 27 + .../evidently-ui-lib/src/components/Error.tsx | 80 +- .../src/components/ProjectCard.tsx | 35 +- .../src/components/SummaryView.tsx | 4 +- .../src/contexts/ApiContext.tsx | 74 - .../src/contexts/ProjectsContext.tsx | 16 - .../src/routes-components/dashboard/data.tsx | 29 +- .../src/routes-components/dashboard/index.tsx | 6 +- .../src/routes-components/home/data.tsx | 9 +- .../src/routes-components/home/index.tsx | 6 +- .../src/routes-components/projectId/data.tsx | 12 +- .../src/routes-components/projectId/index.tsx | 10 +- .../routes-components/projectsList/data.tsx | 21 +- .../routes-components/projectsList/index.tsx | 4 +- .../src/routes-components/snapshotId/data.tsx | 11 +- .../routes-components/snapshotId/index.tsx | 23 +- .../src/routes-components/snapshots/data.tsx | 25 +- .../src/routes-components/snapshots/index.tsx | 15 +- .../src/shared-dependencies/openapi-fetch.tsx | 2 + .../evidently-ui-lib/src/standalone/app.tsx | 76 +- .../evidently-ui-lib/src/utils/index.tsx | 16 - .../src/widgets/BigGraphWidgetContent.tsx | 4 +- .../BigTableWidget/BigTableDetails.tsx | 10 +- .../evidently-ui-lib/src/widgets/Widget2.tsx | 126 - .../src/widgets/WidgetRenderer.tsx | 4 +- ui/pnpm-lock.yaml | 3864 +++++++++++++---- ui/service/src/Routes/home/index.tsx | 17 +- .../projects/projectId/_snapshotId/index.tsx | 8 +- .../projects/projectId/dashboard/index.tsx | 6 +- .../src/Routes/projects/projectId/index.tsx | 6 +- .../projects/projectId/reports/index.tsx | 13 +- .../projects/projectId/test-suites/index.tsx | 13 +- ui/service/src/Routes/projectsList/index.tsx | 19 +- ui/service/src/api/RemoteApi.ts | 3 - ui/service/src/api/index.ts | 7 + ui/service/src/main.tsx | 2 +- ui/service/tsconfig.json | 5 +- ui/standalone/src/main.tsx | 13 +- 86 files changed, 4247 insertions(+), 2227 deletions(-) create mode 100644 .github/share-actions/ui-types-from-backend/action.yml rename src/evidently/ui/assets/static/js/{ContentCopy-BwagEdvM.js => ContentCopy-Cu793Viy.js} (68%) rename src/evidently/ui/assets/static/js/{DashboardContent-ClNKCdbH.js => DashboardContent-TZHSTgd_.js} (85%) delete mode 100644 src/evidently/ui/assets/static/js/DashboardViewParams-B9orGR5W.js create mode 100644 src/evidently/ui/assets/static/js/DashboardViewParams-C3ZVhGVT.js rename src/evidently/ui/assets/static/js/{DashboardWidgets-Ba2wfP2u.js => DashboardWidgets-BZwV75ei.js} (54%) rename src/evidently/ui/assets/static/js/{Edit-BcjZfdDu.js => Edit-DoUCfieB.js} (69%) rename src/evidently/ui/assets/static/js/{createSvgIcon-C96PFZfH.js => createSvgIcon-BHt_C7WZ.js} (86%) delete mode 100644 src/evidently/ui/assets/static/js/index-4yzo42d5.js delete mode 100644 src/evidently/ui/assets/static/js/index-BWrpN-V1.js rename src/evidently/ui/assets/static/js/{index-v1sDJlOH.js => index-Bqm6dU8U.js} (61%) delete mode 100644 src/evidently/ui/assets/static/js/index-C31Sqnps.js create mode 100644 src/evidently/ui/assets/static/js/index-CV6CtGXT.js delete mode 100644 src/evidently/ui/assets/static/js/index-CcxL9Qb3.js create mode 100644 src/evidently/ui/assets/static/js/index-Cwfq0AAl.js delete mode 100644 src/evidently/ui/assets/static/js/index-D6ByaOqT.js rename src/evidently/ui/assets/static/js/{index-BY6V2Y10.js => index-DATujkfj.js} (92%) rename src/evidently/ui/assets/static/js/{index-aMPYZdgb.js => index-DC3NAYIv.js} (92%) create mode 100644 src/evidently/ui/assets/static/js/index-DH7dNy5S.js create mode 100644 src/evidently/ui/assets/static/js/index-Db0FOPuV.js create mode 100644 src/evidently/ui/assets/static/js/index-vToD_Ha9.js create mode 100644 src/evidently/ui/assets/static/js/vendor-CFh6IQM6.js delete mode 100644 src/evidently/ui/assets/static/js/vendor-CmCdJidw.js create mode 100644 ui/packages/evidently-ui-lib/.gitignore delete mode 100644 ui/packages/evidently-ui-lib/src/api/LocalApi.ts delete mode 100644 ui/packages/evidently-ui-lib/src/api/RemoteApi.tsx create mode 100644 ui/packages/evidently-ui-lib/src/api/providers/dashboard.ts create mode 100644 ui/packages/evidently-ui-lib/src/api/providers/projects.ts create mode 100644 ui/packages/evidently-ui-lib/src/api/providers/version.ts create mode 100644 ui/packages/evidently-ui-lib/src/api/types/index.ts create mode 100644 ui/packages/evidently-ui-lib/src/api/types/providers/dashboard.ts create mode 100644 ui/packages/evidently-ui-lib/src/api/types/providers/projects.ts create mode 100644 ui/packages/evidently-ui-lib/src/api/types/providers/version.ts create mode 100644 ui/packages/evidently-ui-lib/src/api/types/utils.ts create mode 100644 ui/packages/evidently-ui-lib/src/api/utils.ts delete mode 100644 ui/packages/evidently-ui-lib/src/contexts/ApiContext.tsx delete mode 100644 ui/packages/evidently-ui-lib/src/contexts/ProjectsContext.tsx create mode 100644 ui/packages/evidently-ui-lib/src/shared-dependencies/openapi-fetch.tsx delete mode 100644 ui/packages/evidently-ui-lib/src/widgets/Widget2.tsx delete mode 100644 ui/service/src/api/RemoteApi.ts create mode 100644 ui/service/src/api/index.ts diff --git a/.github/share-actions/ui-types-from-backend/action.yml b/.github/share-actions/ui-types-from-backend/action.yml new file mode 100644 index 0000000000..86252c462a --- /dev/null +++ b/.github/share-actions/ui-types-from-backend/action.yml @@ -0,0 +1,29 @@ +name: UI types +runs: + using: "composite" + steps: + - name: Cache UI types + id: cache-ui-types + uses: actions/cache@v4 + with: + path: ui/packages/evidently-ui-lib/src/api/types/endpoints.d.ts + key: ui-types-${{ runner.os }}-${{ hashFiles('./.github/**', './src/evidently/**', '!src/evidently/ui/assets/**', '!src/evidently/nbextension/**') }} + + - uses: actions/setup-python@v5 + if: steps.cache-ui-types.outputs.cache-hit != 'true' + with: + python-version: "3.11" + architecture: "x64" + cache: "pip" + + - name: Install Evidently + if: steps.cache-ui-types.outputs.cache-hit != 'true' + run: pip install -e . + shell: bash + + - name: Caclulate types + if: steps.cache-ui-types.outputs.cache-hit != 'true' + run: | + litestar --app evidently.ui.app:litestar_app schema openapi --output evidently-openapi-schema.yml + npx openapi-typescript@6 ./evidently-openapi-schema.yml -o ui/packages/evidently-ui-lib/src/api/types/endpoints.d.ts + shell: bash diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 49775d4979..8d3c1f16f7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,6 +38,7 @@ jobs: with: files_yaml: | evidently_python: + - .github/** - src/evidently/** - '!src/evidently/ui/assets/**' - '!src/evidently/nbextension/**' @@ -95,8 +96,7 @@ jobs: key: cache-bikes-dataset - name: Download test data if: ${{ steps.cache-bikes-dataset.outputs.cache-hit != 'true' }} - run: - curl -k https://archive.ics.uci.edu/static/public/275/bike+sharing+dataset.zip -o Bike-Sharing-Dataset.zip + run: curl -k https://archive.ics.uci.edu/static/public/275/bike+sharing+dataset.zip -o Bike-Sharing-Dataset.zip test-minimal: name: Test on minimal requirements @@ -123,8 +123,7 @@ jobs: enableCrossOsArchive: true - name: Download test data if: ${{ steps.cache-bikes-dataset.outputs.cache-hit != 'true' }} - run: - curl -k https://archive.ics.uci.edu/static/public/275/bike+sharing+dataset.zip -o Bike-Sharing-Dataset.zip + run: curl -k https://archive.ics.uci.edu/static/public/275/bike+sharing+dataset.zip -o Bike-Sharing-Dataset.zip - name: Update pip run: python -m pip install --upgrade pip - name: Install minimal dependencies @@ -175,8 +174,7 @@ jobs: enableCrossOsArchive: true - name: Download test data if: ${{ steps.cache-bikes-dataset.outputs.cache-hit != 'true' }} - run: - curl -k https://archive.ics.uci.edu/static/public/275/bike+sharing+dataset.zip -o Bike-Sharing-Dataset.zip + run: curl -k https://archive.ics.uci.edu/static/public/275/bike+sharing+dataset.zip -o Bike-Sharing-Dataset.zip - name: Install package run: pip install -e .[dev,spark,fsspec] - name: Run Tests diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 53b7813823..89b248c14c 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -34,8 +34,10 @@ jobs: with: files_yaml: | ui: + - .github/** - ui/** evidently_python: + - .github/** - workspace-for-visual-testing.dvc - src/evidently/** - requirements.dev.txt @@ -56,11 +58,11 @@ jobs: echo "One or more evidently_python file(s) has changed." echo "List all the files that have changed: ${{ steps.changed-files.outputs.evidently_python_all_changed_and_modified_files }}" - ui-build: - name: UI type-check and build + ui-type-check: + name: UI type-check runs-on: ubuntu-22.04 needs: changed_files - if: ${{ github.event.pull_request.draft == false && needs.changed_files.outputs.ui_any_modified == 'true' }} + if: ${{ github.event.pull_request.draft == false && needs.changed_files.outputs.ui_any_modified == 'true' && needs.changed_files.outputs.evidently_python_any_modified == 'true' }} steps: - name: ⬇️ Checkout repo @@ -69,13 +71,25 @@ jobs: - name: 📥 Install ui dependencies uses: ./.github/share-actions/ui-node-pnpm-install + - name: 👌 Get types for UI + uses: ./.github/share-actions/ui-types-from-backend + - name: 🔬 Type check working-directory: ui run: pnpm type-check - - name: 🔧 Build - working-directory: ui - run: pnpm build + ui-deps-analyze: + name: UI deps analyze + runs-on: ubuntu-22.04 + needs: changed_files + if: ${{ github.event.pull_request.draft == false && needs.changed_files.outputs.ui_any_modified == 'true' }} + + steps: + - name: ⬇️ Checkout repo + uses: actions/checkout@v4 + + - name: 📥 Install ui dependencies + uses: ./.github/share-actions/ui-node-pnpm-install - name: 🔬 Analyze deps working-directory: ui/service @@ -88,8 +102,25 @@ jobs: path: ui/service/vite-bundle-report retention-days: 30 + ui-build: + name: UI build + runs-on: ubuntu-22.04 + needs: changed_files + if: ${{ github.event.pull_request.draft == false && needs.changed_files.outputs.ui_any_modified == 'true' }} + + steps: + - name: ⬇️ Checkout repo + uses: actions/checkout@v4 + + - name: 📥 Install ui dependencies + uses: ./.github/share-actions/ui-node-pnpm-install + + - name: 🔧 Build + working-directory: ui + run: pnpm build + ui-test: - name: Playwright tests for Service + name: UI playwright tests runs-on: ubuntu-22.04 needs: changed_files if: ${{ github.event.pull_request.draft == false && needs.changed_files.outputs.evidently_python_any_modified == 'true' }} @@ -100,7 +131,7 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: "3.9" + python-version: "3.11" architecture: "x64" cache: "pip" diff --git a/.gitignore b/.gitignore index febafe5173..97c5330eca 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,8 @@ profile.json __pycache__ +evidently-openapi-schema.yml + # see .devcontainer/devcontainer.json test-workspace workspace-for-visual-testing diff --git a/src/evidently/model/widget.py b/src/evidently/model/widget.py index 5bb96a449c..989efcd284 100644 --- a/src/evidently/model/widget.py +++ b/src/evidently/model/widget.py @@ -4,6 +4,7 @@ import dataclasses import uuid from dataclasses import dataclass +from dataclasses import field from enum import Enum from typing import Any from typing import Iterable @@ -85,14 +86,18 @@ class BaseWidgetInfo: alertsPosition: Optional[str] = None alertStats: Optional[AlertStats] = None params: Any = None - insights: Iterable[Insight] = () - additionalGraphs: Iterable[Union[AdditionalGraphInfo, "BaseWidgetInfo", PlotlyGraphInfo]] = () - alerts: Iterable[Alert] = () - tabs: Iterable["TabInfo"] = () - widgets: Iterable["BaseWidgetInfo"] = () + insights: Iterable[Insight] = field(default_factory=list) + additionalGraphs: Iterable[Union[AdditionalGraphInfo, "BaseWidgetInfo", PlotlyGraphInfo]] = field( + default_factory=list + ) + alerts: Iterable[Alert] = field(default_factory=list) + tabs: Iterable["TabInfo"] = field(default_factory=list) + widgets: Iterable["BaseWidgetInfo"] = field(default_factory=list) pageSize: int = 5 - def get_additional_graphs(self) -> List[Union[AdditionalGraphInfo, PlotlyGraphInfo, "BaseWidgetInfo"]]: + def get_additional_graphs( + self, + ) -> List[Union[AdditionalGraphInfo, PlotlyGraphInfo, "BaseWidgetInfo"]]: return list(self.additionalGraphs) + [ graph for widget in self.widgets for graph in widget.get_additional_graphs() ] diff --git a/src/evidently/nbextension/static/index.js b/src/evidently/nbextension/static/index.js index e9fde0bd45..1880ff97f0 100644 --- a/src/evidently/nbextension/static/index.js +++ b/src/evidently/nbextension/static/index.js @@ -1,4 +1,4 @@ -var DK=Object.defineProperty;var EK=(e,t,n)=>t in e?DK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var du=(e,t,n)=>(EK(e,typeof t!="symbol"?t+"":t,n),n);function RK(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var Oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qn(e){if(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 l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var h$={exports:{}},e1={},m$={exports:{}},ar={};/** +var AK=Object.defineProperty;var DK=(e,t,n)=>t in e?AK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $g=(e,t,n)=>(DK(e,typeof t!="symbol"?t+"":t,n),n);function EK(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var Oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qn(e){if(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 l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var h$={exports:{}},Jy={},m$={exports:{}},ar={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var DK=Object.defineProperty;var EK=(e,t,n)=>t in e?DK(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var zm=Symbol.for("react.element"),LK=Symbol.for("react.portal"),IK=Symbol.for("react.fragment"),$K=Symbol.for("react.strict_mode"),NK=Symbol.for("react.profiler"),FK=Symbol.for("react.provider"),jK=Symbol.for("react.context"),zK=Symbol.for("react.forward_ref"),BK=Symbol.for("react.suspense"),WK=Symbol.for("react.memo"),qK=Symbol.for("react.lazy"),t6=Symbol.iterator;function UK(e){return e===null||typeof e!="object"?null:(e=t6&&e[t6]||e["@@iterator"],typeof e=="function"?e:null)}var g$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v$=Object.assign,y$={};function rf(e,t,n){this.props=e,this.context=t,this.refs=y$,this.updater=n||g$}rf.prototype.isReactComponent={};rf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};rf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function b$(){}b$.prototype=rf.prototype;function WS(e,t,n){this.props=e,this.context=t,this.refs=y$,this.updater=n||g$}var qS=WS.prototype=new b$;qS.constructor=WS;v$(qS,rf.prototype);qS.isPureReactComponent=!0;var n6=Array.isArray,x$=Object.prototype.hasOwnProperty,US={current:null},w$={key:!0,ref:!0,__self:!0,__source:!0};function _$(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)x$.call(t,r)&&!w$.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1t in e?DK(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var XK=ge,KK=Symbol.for("react.element"),ZK=Symbol.for("react.fragment"),QK=Object.prototype.hasOwnProperty,JK=XK.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,eZ={key:!0,ref:!0,__self:!0,__source:!0};function T$(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)QK.call(t,r)&&!eZ.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:KK,type:e,key:i,ref:o,props:l,_owner:JK.current}}e1.Fragment=ZK;e1.jsx=T$;e1.jsxs=T$;h$.exports=e1;var ke=h$.exports,HT={},k$={exports:{}},ni={},S$={exports:{}},C$={};/** + */var YK=ge,XK=Symbol.for("react.element"),KK=Symbol.for("react.fragment"),ZK=Object.prototype.hasOwnProperty,QK=YK.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,JK={key:!0,ref:!0,__self:!0,__source:!0};function T$(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)ZK.call(t,r)&&!JK.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:XK,type:e,key:i,ref:o,props:l,_owner:QK.current}}Jy.Fragment=KK;Jy.jsx=T$;Jy.jsxs=T$;h$.exports=Jy;var ke=h$.exports,UT={},k$={exports:{}},ni={},S$={exports:{}},C$={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var DK=Object.defineProperty;var EK=(e,t,n)=>t in e?DK(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(F,j){var z=F.length;F.push(j);e:for(;0>>1,N=F[B];if(0>>1;Bl(Y,z))Ll(W,Y)?(F[B]=W,F[L]=z,B=L):(F[B]=Y,F[q]=z,B=q);else if(Ll(W,z))F[B]=W,F[L]=z,B=L;else break e}}return j}function l(F,j){var z=F.sortIndex-j.sortIndex;return z!==0?z:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var s=[],u=[],c=1,d=null,f=3,p=!1,m=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(F){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,t(s,j);else break;j=n(u)}}function w(F){if(g=!1,y(F),!m)if(n(s)!==null)m=!0,I(_);else{var j=n(u);j!==null&&A(w,j.startTime-F)}}function _(F,j){m=!1,g&&(g=!1,v(k),k=-1),p=!0;var z=f;try{for(y(j),d=n(s);d!==null&&(!(d.expirationTime>j)||F&&!M());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var N=B(d.expirationTime<=j);j=e.unstable_now(),typeof N=="function"?d.callback=N:d===n(s)&&r(s),y(j)}else r(s);d=n(s)}if(d!==null)var R=!0;else{var q=n(u);q!==null&&A(w,q.startTime-j),R=!1}return R}finally{d=null,f=z,p=!1}}var x=!1,T=null,k=-1,S=5,C=-1;function M(){return!(e.unstable_now()-CF||125B?(F.sortIndex=z,t(u,F),n(s)===null&&F===n(u)&&(g?(v(k),k=-1):g=!0,A(w,z-B))):(F.sortIndex=N,t(s,F),m||p||(m=!0,I(_))),F},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(F){var j=f;return function(){var z=f;f=j;try{return F.apply(this,arguments)}finally{f=z}}}})(C$);S$.exports=C$;var tZ=S$.exports;/** + */(function(e){function t(F,j){var z=F.length;F.push(j);e:for(;0>>1,N=F[B];if(0>>1;Bl(Y,z))Ll(W,Y)?(F[B]=W,F[L]=z,B=L):(F[B]=Y,F[q]=z,B=q);else if(Ll(W,z))F[B]=W,F[L]=z,B=L;else break e}}return j}function l(F,j){var z=F.sortIndex-j.sortIndex;return z!==0?z:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var s=[],u=[],c=1,d=null,f=3,p=!1,m=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(F){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,t(s,j);else break;j=n(u)}}function w(F){if(g=!1,y(F),!m)if(n(s)!==null)m=!0,I(_);else{var j=n(u);j!==null&&A(w,j.startTime-F)}}function _(F,j){m=!1,g&&(g=!1,v(k),k=-1),p=!0;var z=f;try{for(y(j),d=n(s);d!==null&&(!(d.expirationTime>j)||F&&!M());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var N=B(d.expirationTime<=j);j=e.unstable_now(),typeof N=="function"?d.callback=N:d===n(s)&&r(s),y(j)}else r(s);d=n(s)}if(d!==null)var R=!0;else{var q=n(u);q!==null&&A(w,q.startTime-j),R=!1}return R}finally{d=null,f=z,p=!1}}var x=!1,T=null,k=-1,S=5,C=-1;function M(){return!(e.unstable_now()-CF||125B?(F.sortIndex=z,t(u,F),n(s)===null&&F===n(u)&&(g?(v(k),k=-1):g=!0,A(w,z-B))):(F.sortIndex=N,t(s,F),m||p||(m=!0,I(_))),F},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(F){var j=f;return function(){var z=f;f=j;try{return F.apply(this,arguments)}finally{f=z}}}})(C$);S$.exports=C$;var eZ=S$.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var DK=Object.defineProperty;var EK=(e,t,n)=>t in e?DK(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var M$=ge,ei=tZ;function ln(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),VT=Object.prototype.hasOwnProperty,nZ=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,a6={},o6={};function rZ(e){return VT.call(o6,e)?!0:VT.call(a6,e)?!1:nZ.test(e)?o6[e]=!0:(a6[e]=!0,!1)}function aZ(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function oZ(e,t,n,r){if(t===null||typeof t>"u"||aZ(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function wo(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var to={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){to[e]=new wo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];to[t]=new wo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){to[e]=new wo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){to[e]=new wo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){to[e]=new wo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){to[e]=new wo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){to[e]=new wo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){to[e]=new wo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){to[e]=new wo(e,5,!1,e.toLowerCase(),null,!1,!1)});var VS=/[\-:]([a-z])/g;function GS(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(VS,GS);to[t]=new wo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(VS,GS);to[t]=new wo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(VS,GS);to[t]=new wo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){to[e]=new wo(e,1,!1,e.toLowerCase(),null,!1,!1)});to.xlinkHref=new wo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){to[e]=new wo(e,1,!1,e.toLowerCase(),null,!0,!0)});function YS(e,t,n,r){var l=to.hasOwnProperty(t)?to[t]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),HT=Object.prototype.hasOwnProperty,tZ=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,a6={},o6={};function nZ(e){return HT.call(o6,e)?!0:HT.call(a6,e)?!1:tZ.test(e)?o6[e]=!0:(a6[e]=!0,!1)}function rZ(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function aZ(e,t,n,r){if(t===null||typeof t>"u"||rZ(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function wo(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var to={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){to[e]=new wo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];to[t]=new wo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){to[e]=new wo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){to[e]=new wo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){to[e]=new wo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){to[e]=new wo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){to[e]=new wo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){to[e]=new wo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){to[e]=new wo(e,5,!1,e.toLowerCase(),null,!1,!1)});var VS=/[\-:]([a-z])/g;function GS(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(VS,GS);to[t]=new wo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(VS,GS);to[t]=new wo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(VS,GS);to[t]=new wo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){to[e]=new wo(e,1,!1,e.toLowerCase(),null,!1,!1)});to.xlinkHref=new wo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){to[e]=new wo(e,1,!1,e.toLowerCase(),null,!0,!0)});function YS(e,t,n,r){var l=to.hasOwnProperty(t)?to[t]:null;(l!==null?l.type!==0:r||!(2a||l[o]!==i[a]){var s=` -`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=a);break}}}finally{U2=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?oh(e):""}function iZ(e){switch(e.tag){case 5:return oh(e.type);case 16:return oh("Lazy");case 13:return oh("Suspense");case 19:return oh("SuspenseList");case 0:case 2:case 15:return e=H2(e.type,!1),e;case 11:return e=H2(e.type.render,!1),e;case 1:return e=H2(e.type,!0),e;default:return""}}function KT(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Jc:return"Fragment";case Qc:return"Portal";case GT:return"Profiler";case XS:return"StrictMode";case YT:return"Suspense";case XT:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case A$:return(e.displayName||"Context")+".Consumer";case O$:return(e._context.displayName||"Context")+".Provider";case KS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ZS:return t=e.displayName||null,t!==null?t:KT(e.type)||"Memo";case Ms:t=e._payload,e=e._init;try{return KT(e(t))}catch{}}return null}function lZ(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return KT(t);case 8:return t===XS?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Gs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function E$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sZ(e){var t=E$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jg(e){e._valueTracker||(e._valueTracker=sZ(e))}function R$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=E$(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _v(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ZT(e,t){var n=t.checked;return oa({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function l6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gs(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function L$(e,t){t=t.checked,t!=null&&YS(e,"checked",t,!1)}function QT(e,t){L$(e,t);var n=Gs(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?JT(e,t.type,n):t.hasOwnProperty("defaultValue")&&JT(e,t.type,Gs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function s6(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function JT(e,t,n){(t!=="number"||_v(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ih=Array.isArray;function pd(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=zg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wh(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},uZ=["Webkit","ms","Moz","O"];Object.keys(bh).forEach(function(e){uZ.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bh[t]=bh[e]})});function F$(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bh.hasOwnProperty(e)&&bh[e]?(""+t).trim():t+"px"}function j$(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=F$(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var cZ=oa({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function n3(e,t){if(t){if(cZ[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ln(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ln(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ln(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ln(62))}}function r3(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var a3=null;function QS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var o3=null,hd=null,md=null;function d6(e){if(e=qm(e)){if(typeof o3!="function")throw Error(ln(280));var t=e.stateNode;t&&(t=o1(t),o3(e.stateNode,e.type,t))}}function z$(e){hd?md?md.push(e):md=[e]:hd=e}function B$(){if(hd){var e=hd,t=md;if(md=hd=null,d6(e),t)for(e=0;e>>=0,e===0?32:31-(wZ(e)/_Z|0)|0}var Bg=64,Wg=4194304;function lh(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Cv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=lh(a):(i&=o,i!==0&&(r=lh(i)))}else o=n&~l,o!==0?r=lh(o):i!==0&&(r=lh(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Bm(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bi(t),e[t]=n}function CZ(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=wh),x6=" ",w6=!1;function lN(e,t){switch(e){case"keyup":return eQ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sN(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ed=!1;function nQ(e,t){switch(e){case"compositionend":return sN(t);case"keypress":return t.which!==32?null:(w6=!0,x6);case"textInput":return e=t.data,e===x6&&w6?null:e;default:return null}}function rQ(e,t){if(ed)return e==="compositionend"||!iC&&lN(e,t)?(e=oN(),F0=rC=Ds=null,ed=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=S6(n)}}function fN(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fN(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pN(){for(var e=window,t=_v();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_v(e.document)}return t}function lC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fQ(e){var t=pN(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fN(n.ownerDocument.documentElement,n)){if(r!==null&&lC(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=C6(n,i);var o=C6(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,td=null,d3=null,Th=null,f3=!1;function M6(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;f3||td==null||td!==_v(r)||(r=td,"selectionStart"in r&&lC(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Th&&Yh(Th,r)||(Th=r,r=Ov(d3,"onSelect"),0ad||(e.current=y3[ad],y3[ad]=null,ad--)}function jr(e,t){ad++,y3[ad]=e.current,e.current=t}var Ys={},fo=eu(Ys),Do=eu(!1),qu=Ys;function Od(e,t){var n=e.type.contextTypes;if(!n)return Ys;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Eo(e){return e=e.childContextTypes,e!=null}function Dv(){Hr(Do),Hr(fo)}function L6(e,t,n){if(fo.current!==Ys)throw Error(ln(168));jr(fo,t),jr(Do,n)}function _N(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(ln(108,lZ(e)||"Unknown",l));return oa({},n,r)}function Ev(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ys,qu=fo.current,jr(fo,e),jr(Do,Do.current),!0}function I6(e,t,n){var r=e.stateNode;if(!r)throw Error(ln(169));n?(e=_N(e,t,qu),r.__reactInternalMemoizedMergedChildContext=e,Hr(Do),Hr(fo),jr(fo,e)):Hr(Do),jr(Do,n)}var Nl=null,i1=!1,ow=!1;function TN(e){Nl===null?Nl=[e]:Nl.push(e)}function kQ(e){i1=!0,TN(e)}function tu(){if(!ow&&Nl!==null){ow=!0;var e=0,t=Pr;try{var n=Nl;for(Pr=1;e>=o,l-=o,jl=1<<32-Bi(t)+l|n<k?(S=T,T=null):S=T.sibling;var C=f(v,T,y[k],w);if(C===null){T===null&&(T=S);break}e&&T&&C.alternate===null&&t(v,T),h=i(C,h,k),x===null?_=C:x.sibling=C,x=C,T=S}if(k===y.length)return n(v,T),Zr&&yu(v,k),_;if(T===null){for(;kk?(S=T,T=null):S=T.sibling;var M=f(v,T,C.value,w);if(M===null){T===null&&(T=S);break}e&&T&&M.alternate===null&&t(v,T),h=i(M,h,k),x===null?_=M:x.sibling=M,x=M,T=S}if(C.done)return n(v,T),Zr&&yu(v,k),_;if(T===null){for(;!C.done;k++,C=y.next())C=d(v,C.value,w),C!==null&&(h=i(C,h,k),x===null?_=C:x.sibling=C,x=C);return Zr&&yu(v,k),_}for(T=r(v,T);!C.done;k++,C=y.next())C=p(T,v,k,C.value,w),C!==null&&(e&&C.alternate!==null&&T.delete(C.key===null?k:C.key),h=i(C,h,k),x===null?_=C:x.sibling=C,x=C);return e&&T.forEach(function(O){return t(v,O)}),Zr&&yu(v,k),_}function b(v,h,y,w){if(typeof y=="object"&&y!==null&&y.type===Jc&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Fg:e:{for(var _=y.key,x=h;x!==null;){if(x.key===_){if(_=y.type,_===Jc){if(x.tag===7){n(v,x.sibling),h=l(x,y.props.children),h.return=v,v=h;break e}}else if(x.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ms&&W6(_)===x.type){n(v,x.sibling),h=l(x,y.props),h.ref=Vf(v,x,y),h.return=v,v=h;break e}n(v,x);break}else t(v,x);x=x.sibling}y.type===Jc?(h=zu(y.props.children,v.mode,w,y.key),h.return=v,v=h):(w=V0(y.type,y.key,y.props,null,v.mode,w),w.ref=Vf(v,h,y),w.return=v,v=w)}return o(v);case Qc:e:{for(x=y.key;h!==null;){if(h.key===x)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(v,h.sibling),h=l(h,y.children||[]),h.return=v,v=h;break e}else{n(v,h);break}else t(v,h);h=h.sibling}h=pw(y,v.mode,w),h.return=v,v=h}return o(v);case Ms:return x=y._init,b(v,h,x(y._payload),w)}if(ih(y))return m(v,h,y,w);if(Bf(y))return g(v,h,y,w);Xg(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(v,h.sibling),h=l(h,y),h.return=v,v=h):(n(v,h),h=fw(y,v.mode,w),h.return=v,v=h),o(v)):n(v,h)}return b}var Dd=DN(!0),EN=DN(!1),Um={},ml=eu(Um),Qh=eu(Um),Jh=eu(Um);function Du(e){if(e===Um)throw Error(ln(174));return e}function gC(e,t){switch(jr(Jh,t),jr(Qh,e),jr(ml,Um),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:t3(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=t3(t,e)}Hr(ml),jr(ml,t)}function Ed(){Hr(ml),Hr(Qh),Hr(Jh)}function RN(e){Du(Jh.current);var t=Du(ml.current),n=t3(t,e.type);t!==n&&(jr(Qh,e),jr(ml,n))}function vC(e){Qh.current===e&&(Hr(ml),Hr(Qh))}var na=eu(0);function Fv(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var iw=[];function yC(){for(var e=0;en?n:4,e(!0);var r=lw.transition;lw.transition={};try{e(!1),t()}finally{Pr=n,lw.transition=r}}function XN(){return Ti().memoizedState}function PQ(e,t,n){var r=zs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},KN(e))ZN(t,n);else if(n=MN(e,t,n,r),n!==null){var l=bo();Wi(n,e,r,l),QN(n,t,r)}}function OQ(e,t,n){var r=zs(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(KN(e))ZN(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(l.hasEagerState=!0,l.eagerState=a,qi(a,o)){var s=t.interleaved;s===null?(l.next=l,hC(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=MN(e,t,l,r),n!==null&&(l=bo(),Wi(n,e,r,l),QN(n,t,r))}}function KN(e){var t=e.alternate;return e===aa||t!==null&&t===aa}function ZN(e,t){kh=jv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function QN(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eC(e,n)}}var zv={readContext:_i,useCallback:oo,useContext:oo,useEffect:oo,useImperativeHandle:oo,useInsertionEffect:oo,useLayoutEffect:oo,useMemo:oo,useReducer:oo,useRef:oo,useState:oo,useDebugValue:oo,useDeferredValue:oo,useTransition:oo,useMutableSource:oo,useSyncExternalStore:oo,useId:oo,unstable_isNewReconciler:!1},AQ={readContext:_i,useCallback:function(e,t){return rl().memoizedState=[e,t===void 0?null:t],e},useContext:_i,useEffect:U6,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,W0(4194308,4,UN.bind(null,t,e),n)},useLayoutEffect:function(e,t){return W0(4194308,4,e,t)},useInsertionEffect:function(e,t){return W0(4,2,e,t)},useMemo:function(e,t){var n=rl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rl();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=PQ.bind(null,aa,e),[r.memoizedState,e]},useRef:function(e){var t=rl();return e={current:e},t.memoizedState=e},useState:q6,useDebugValue:TC,useDeferredValue:function(e){return rl().memoizedState=e},useTransition:function(){var e=q6(!1),t=e[0];return e=MQ.bind(null,e[1]),rl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=aa,l=rl();if(Zr){if(n===void 0)throw Error(ln(407));n=n()}else{if(n=t(),Fa===null)throw Error(ln(349));Hu&30||$N(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,U6(FN.bind(null,r,i,e),[e]),r.flags|=2048,nm(9,NN.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=rl(),t=Fa.identifierPrefix;if(Zr){var n=zl,r=jl;n=(r&~(1<<32-Bi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=em++,0")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=a);break}}}finally{q2=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ah(e):""}function oZ(e){switch(e.tag){case 5:return ah(e.type);case 16:return ah("Lazy");case 13:return ah("Suspense");case 19:return ah("SuspenseList");case 0:case 2:case 15:return e=U2(e.type,!1),e;case 11:return e=U2(e.type.render,!1),e;case 1:return e=U2(e.type,!0),e;default:return""}}function XT(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Qc:return"Fragment";case Zc:return"Portal";case VT:return"Profiler";case XS:return"StrictMode";case GT:return"Suspense";case YT:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case A$:return(e.displayName||"Context")+".Consumer";case O$:return(e._context.displayName||"Context")+".Provider";case KS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ZS:return t=e.displayName||null,t!==null?t:XT(e.type)||"Memo";case Ms:t=e._payload,e=e._init;try{return XT(e(t))}catch{}}return null}function iZ(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return XT(t);case 8:return t===XS?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Gs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function E$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lZ(e){var t=E$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jg(e){e._valueTracker||(e._valueTracker=lZ(e))}function R$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=E$(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _v(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function KT(e,t){var n=t.checked;return oa({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function l6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gs(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function L$(e,t){t=t.checked,t!=null&&YS(e,"checked",t,!1)}function ZT(e,t){L$(e,t);var n=Gs(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?QT(e,t.type,n):t.hasOwnProperty("defaultValue")&&QT(e,t.type,Gs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function s6(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function QT(e,t,n){(t!=="number"||_v(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var oh=Array.isArray;function fd(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=zg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bh(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sZ=["Webkit","ms","Moz","O"];Object.keys(yh).forEach(function(e){sZ.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yh[t]=yh[e]})});function F$(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yh.hasOwnProperty(e)&&yh[e]?(""+t).trim():t+"px"}function j$(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=F$(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var uZ=oa({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function t3(e,t){if(t){if(uZ[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ln(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ln(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ln(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ln(62))}}function n3(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var r3=null;function QS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var a3=null,pd=null,hd=null;function d6(e){if(e=Wm(e)){if(typeof a3!="function")throw Error(ln(280));var t=e.stateNode;t&&(t=a1(t),a3(e.stateNode,e.type,t))}}function z$(e){pd?hd?hd.push(e):hd=[e]:pd=e}function B$(){if(pd){var e=pd,t=hd;if(hd=pd=null,d6(e),t)for(e=0;e>>=0,e===0?32:31-(xZ(e)/wZ|0)|0}var Bg=64,Wg=4194304;function ih(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Cv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=ih(a):(i&=o,i!==0&&(r=ih(i)))}else o=n&~l,o!==0?r=ih(o):i!==0&&(r=ih(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function zm(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bi(t),e[t]=n}function SZ(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=xh),x6=" ",w6=!1;function lN(e,t){switch(e){case"keyup":return JZ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sN(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jc=!1;function tQ(e,t){switch(e){case"compositionend":return sN(t);case"keypress":return t.which!==32?null:(w6=!0,x6);case"textInput":return e=t.data,e===x6&&w6?null:e;default:return null}}function nQ(e,t){if(Jc)return e==="compositionend"||!iC&&lN(e,t)?(e=oN(),F0=rC=Ds=null,Jc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=S6(n)}}function fN(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fN(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pN(){for(var e=window,t=_v();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_v(e.document)}return t}function lC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function dQ(e){var t=pN(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fN(n.ownerDocument.documentElement,n)){if(r!==null&&lC(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=C6(n,i);var o=C6(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ed=null,c3=null,_h=null,d3=!1;function M6(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;d3||ed==null||ed!==_v(r)||(r=ed,"selectionStart"in r&&lC(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),_h&&Gh(_h,r)||(_h=r,r=Ov(c3,"onSelect"),0rd||(e.current=v3[rd],v3[rd]=null,rd--)}function jr(e,t){rd++,v3[rd]=e.current,e.current=t}var Ys={},fo=eu(Ys),Do=eu(!1),Wu=Ys;function Pd(e,t){var n=e.type.contextTypes;if(!n)return Ys;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Eo(e){return e=e.childContextTypes,e!=null}function Dv(){Hr(Do),Hr(fo)}function L6(e,t,n){if(fo.current!==Ys)throw Error(ln(168));jr(fo,t),jr(Do,n)}function _N(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(ln(108,iZ(e)||"Unknown",l));return oa({},n,r)}function Ev(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ys,Wu=fo.current,jr(fo,e),jr(Do,Do.current),!0}function I6(e,t,n){var r=e.stateNode;if(!r)throw Error(ln(169));n?(e=_N(e,t,Wu),r.__reactInternalMemoizedMergedChildContext=e,Hr(Do),Hr(fo),jr(fo,e)):Hr(Do),jr(Do,n)}var Nl=null,o1=!1,aw=!1;function TN(e){Nl===null?Nl=[e]:Nl.push(e)}function TQ(e){o1=!0,TN(e)}function tu(){if(!aw&&Nl!==null){aw=!0;var e=0,t=Pr;try{var n=Nl;for(Pr=1;e>=o,l-=o,jl=1<<32-Bi(t)+l|n<k?(S=T,T=null):S=T.sibling;var C=f(v,T,y[k],w);if(C===null){T===null&&(T=S);break}e&&T&&C.alternate===null&&t(v,T),h=i(C,h,k),x===null?_=C:x.sibling=C,x=C,T=S}if(k===y.length)return n(v,T),Zr&&vu(v,k),_;if(T===null){for(;kk?(S=T,T=null):S=T.sibling;var M=f(v,T,C.value,w);if(M===null){T===null&&(T=S);break}e&&T&&M.alternate===null&&t(v,T),h=i(M,h,k),x===null?_=M:x.sibling=M,x=M,T=S}if(C.done)return n(v,T),Zr&&vu(v,k),_;if(T===null){for(;!C.done;k++,C=y.next())C=d(v,C.value,w),C!==null&&(h=i(C,h,k),x===null?_=C:x.sibling=C,x=C);return Zr&&vu(v,k),_}for(T=r(v,T);!C.done;k++,C=y.next())C=p(T,v,k,C.value,w),C!==null&&(e&&C.alternate!==null&&T.delete(C.key===null?k:C.key),h=i(C,h,k),x===null?_=C:x.sibling=C,x=C);return e&&T.forEach(function(O){return t(v,O)}),Zr&&vu(v,k),_}function b(v,h,y,w){if(typeof y=="object"&&y!==null&&y.type===Qc&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Fg:e:{for(var _=y.key,x=h;x!==null;){if(x.key===_){if(_=y.type,_===Qc){if(x.tag===7){n(v,x.sibling),h=l(x,y.props.children),h.return=v,v=h;break e}}else if(x.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ms&&W6(_)===x.type){n(v,x.sibling),h=l(x,y.props),h.ref=Hf(v,x,y),h.return=v,v=h;break e}n(v,x);break}else t(v,x);x=x.sibling}y.type===Qc?(h=ju(y.props.children,v.mode,w,y.key),h.return=v,v=h):(w=V0(y.type,y.key,y.props,null,v.mode,w),w.ref=Hf(v,h,y),w.return=v,v=w)}return o(v);case Zc:e:{for(x=y.key;h!==null;){if(h.key===x)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(v,h.sibling),h=l(h,y.children||[]),h.return=v,v=h;break e}else{n(v,h);break}else t(v,h);h=h.sibling}h=fw(y,v.mode,w),h.return=v,v=h}return o(v);case Ms:return x=y._init,b(v,h,x(y._payload),w)}if(oh(y))return m(v,h,y,w);if(zf(y))return g(v,h,y,w);Xg(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(v,h.sibling),h=l(h,y),h.return=v,v=h):(n(v,h),h=dw(y,v.mode,w),h.return=v,v=h),o(v)):n(v,h)}return b}var Ad=DN(!0),EN=DN(!1),qm={},ml=eu(qm),Zh=eu(qm),Qh=eu(qm);function Au(e){if(e===qm)throw Error(ln(174));return e}function gC(e,t){switch(jr(Qh,t),jr(Zh,e),jr(ml,qm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:e3(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=e3(t,e)}Hr(ml),jr(ml,t)}function Dd(){Hr(ml),Hr(Zh),Hr(Qh)}function RN(e){Au(Qh.current);var t=Au(ml.current),n=e3(t,e.type);t!==n&&(jr(Zh,e),jr(ml,n))}function vC(e){Zh.current===e&&(Hr(ml),Hr(Zh))}var na=eu(0);function Fv(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ow=[];function yC(){for(var e=0;en?n:4,e(!0);var r=iw.transition;iw.transition={};try{e(!1),t()}finally{Pr=n,iw.transition=r}}function XN(){return Ti().memoizedState}function MQ(e,t,n){var r=zs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},KN(e))ZN(t,n);else if(n=MN(e,t,n,r),n!==null){var l=bo();Wi(n,e,r,l),QN(n,t,r)}}function PQ(e,t,n){var r=zs(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(KN(e))ZN(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(l.hasEagerState=!0,l.eagerState=a,qi(a,o)){var s=t.interleaved;s===null?(l.next=l,hC(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=MN(e,t,l,r),n!==null&&(l=bo(),Wi(n,e,r,l),QN(n,t,r))}}function KN(e){var t=e.alternate;return e===aa||t!==null&&t===aa}function ZN(e,t){Th=jv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function QN(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eC(e,n)}}var zv={readContext:_i,useCallback:oo,useContext:oo,useEffect:oo,useImperativeHandle:oo,useInsertionEffect:oo,useLayoutEffect:oo,useMemo:oo,useReducer:oo,useRef:oo,useState:oo,useDebugValue:oo,useDeferredValue:oo,useTransition:oo,useMutableSource:oo,useSyncExternalStore:oo,useId:oo,unstable_isNewReconciler:!1},OQ={readContext:_i,useCallback:function(e,t){return rl().memoizedState=[e,t===void 0?null:t],e},useContext:_i,useEffect:U6,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,W0(4194308,4,UN.bind(null,t,e),n)},useLayoutEffect:function(e,t){return W0(4194308,4,e,t)},useInsertionEffect:function(e,t){return W0(4,2,e,t)},useMemo:function(e,t){var n=rl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rl();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=MQ.bind(null,aa,e),[r.memoizedState,e]},useRef:function(e){var t=rl();return e={current:e},t.memoizedState=e},useState:q6,useDebugValue:TC,useDeferredValue:function(e){return rl().memoizedState=e},useTransition:function(){var e=q6(!1),t=e[0];return e=CQ.bind(null,e[1]),rl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=aa,l=rl();if(Zr){if(n===void 0)throw Error(ln(407));n=n()}else{if(n=t(),Fa===null)throw Error(ln(349));Uu&30||$N(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,U6(FN.bind(null,r,i,e),[e]),r.flags|=2048,tm(9,NN.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=rl(),t=Fa.identifierPrefix;if(Zr){var n=zl,r=jl;n=(r&~(1<<32-Bi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jh++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ll]=t,e[Zh]=r,lF(e,t,!1,!1),t.stateNode=e;e:{switch(o=r3(n,r),n){case"dialog":qr("cancel",e),qr("close",e),l=r;break;case"iframe":case"object":case"embed":qr("load",e),l=r;break;case"video":case"audio":for(l=0;lLd&&(t.flags|=128,r=!0,Gf(i,!1),t.lanes=4194304)}else{if(!r)if(e=Fv(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Gf(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Zr)return io(t),null}else 2*ba()-i.renderingStartTime>Ld&&n!==1073741824&&(t.flags|=128,r=!0,Gf(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ba(),t.sibling=null,n=na.current,jr(na,r?n&1|2:n&1),t):(io(t),null);case 22:case 23:return OC(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Uo&1073741824&&(io(t),t.subtreeFlags&6&&(t.flags|=8192)):io(t),null;case 24:return null;case 25:return null}throw Error(ln(156,t.tag))}function FQ(e,t){switch(uC(t),t.tag){case 1:return Eo(t.type)&&Dv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ed(),Hr(Do),Hr(fo),yC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vC(t),null;case 13:if(Hr(na),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ln(340));Ad()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Hr(na),null;case 4:return Ed(),null;case 10:return pC(t.type._context),null;case 22:case 23:return OC(),null;case 24:return null;default:return null}}var Zg=!1,uo=!1,jQ=typeof WeakSet=="function"?WeakSet:Set,Dn=null;function sd(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pa(e,t,r)}else n.current=null}function A3(e,t,n){try{n()}catch(r){pa(e,t,r)}}var J6=!1;function zQ(e,t){if(p3=Mv,e=pN(),lC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||l!==0&&d.nodeType!==3||(a=o+l),d!==i||r!==0&&d.nodeType!==3||(s=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===l&&(a=o),f===i&&++c===r&&(s=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(h3={focusedElem:e,selectionRange:n},Mv=!1,Dn=t;Dn!==null;)if(t=Dn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Dn=e;else for(;Dn!==null;){t=Dn;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,b=m.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:$i(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ln(163))}}catch(w){pa(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Dn=e;break}Dn=t.return}return m=J6,J6=!1,m}function Sh(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&A3(t,n,i)}l=l.next}while(l!==r)}}function u1(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function D3(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function cF(e){var t=e.alternate;t!==null&&(e.alternate=null,cF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ll],delete t[Zh],delete t[v3],delete t[_Q],delete t[TQ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function dF(e){return e.tag===5||e.tag===3||e.tag===4}function eA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function E3(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Av));else if(r!==4&&(e=e.child,e!==null))for(E3(e,t,n),e=e.sibling;e!==null;)E3(e,t,n),e=e.sibling}function R3(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(R3(e,t,n),e=e.sibling;e!==null;)R3(e,t,n),e=e.sibling}var Xa=null,Ni=!1;function ys(e,t,n){for(n=n.child;n!==null;)fF(e,t,n),n=n.sibling}function fF(e,t,n){if(hl&&typeof hl.onCommitFiberUnmount=="function")try{hl.onCommitFiberUnmount(t1,n)}catch{}switch(n.tag){case 5:uo||sd(n,t);case 6:var r=Xa,l=Ni;Xa=null,ys(e,t,n),Xa=r,Ni=l,Xa!==null&&(Ni?(e=Xa,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xa.removeChild(n.stateNode));break;case 18:Xa!==null&&(Ni?(e=Xa,n=n.stateNode,e.nodeType===8?aw(e.parentNode,n):e.nodeType===1&&aw(e,n),Vh(e)):aw(Xa,n.stateNode));break;case 4:r=Xa,l=Ni,Xa=n.stateNode.containerInfo,Ni=!0,ys(e,t,n),Xa=r,Ni=l;break;case 0:case 11:case 14:case 15:if(!uo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&A3(n,t,o),l=l.next}while(l!==r)}ys(e,t,n);break;case 1:if(!uo&&(sd(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){pa(n,t,a)}ys(e,t,n);break;case 21:ys(e,t,n);break;case 22:n.mode&1?(uo=(r=uo)||n.memoizedState!==null,ys(e,t,n),uo=r):ys(e,t,n);break;default:ys(e,t,n)}}function tA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jQ),t.forEach(function(r){var l=XQ.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Li(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=ba()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*WQ(r/1960))-r,10e?16:e,Es===null)var r=!1;else{if(e=Es,Es=null,qv=0,fr&6)throw Error(ln(331));var l=fr;for(fr|=4,Dn=e.current;Dn!==null;){var i=Dn,o=i.child;if(Dn.flags&16){var a=i.deletions;if(a!==null){for(var s=0;sba()-MC?ju(e,0):CC|=n),Ro(e,t)}function xF(e,t){t===0&&(e.mode&1?(t=Wg,Wg<<=1,!(Wg&130023424)&&(Wg=4194304)):t=1);var n=bo();e=Yl(e,t),e!==null&&(Bm(e,t,n),Ro(e,n))}function YQ(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xF(e,n)}function XQ(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ln(314))}r!==null&&r.delete(t),xF(e,n)}var wF;wF=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Do.current)Ao=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ao=!1,$Q(e,t,n);Ao=!!(e.flags&131072)}else Ao=!1,Zr&&t.flags&1048576&&kN(t,Lv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;q0(e,t),e=t.pendingProps;var l=Od(t,fo.current);vd(t,n),l=xC(null,t,r,e,l,n);var i=wC();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Eo(r)?(i=!0,Ev(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,mC(t),l.updater=l1,t.stateNode=l,l._reactInternals=t,T3(t,r,e,n),t=C3(null,t,r,!0,i,n)):(t.tag=0,Zr&&i&&sC(t),vo(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(q0(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ZQ(r),e=$i(r,e),l){case 0:t=S3(null,t,r,e,n);break e;case 1:t=K6(null,t,r,e,n);break e;case 11:t=Y6(null,t,r,e,n);break e;case 14:t=X6(null,t,r,$i(r.type,e),n);break e}throw Error(ln(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$i(r,l),S3(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$i(r,l),K6(e,t,r,l,n);case 3:e:{if(aF(t),e===null)throw Error(ln(387));r=t.pendingProps,i=t.memoizedState,l=i.element,PN(e,t),Nv(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Rd(Error(ln(423)),t),t=Z6(e,t,r,n,l);break e}else if(r!==l){l=Rd(Error(ln(424)),t),t=Z6(e,t,r,n,l);break e}else for(Vo=Ns(t.stateNode.containerInfo.firstChild),Ko=t,Zr=!0,Fi=null,n=EN(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ad(),r===l){t=Xl(e,t,n);break e}vo(e,t,r,n)}t=t.child}return t;case 5:return RN(t),e===null&&x3(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,m3(r,l)?o=null:i!==null&&m3(r,i)&&(t.flags|=32),rF(e,t),vo(e,t,o,n),t.child;case 6:return e===null&&x3(t),null;case 13:return oF(e,t,n);case 4:return gC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Dd(t,null,r,n):vo(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$i(r,l),Y6(e,t,r,l,n);case 7:return vo(e,t,t.pendingProps,n),t.child;case 8:return vo(e,t,t.pendingProps.children,n),t.child;case 12:return vo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,jr(Iv,r._currentValue),r._currentValue=o,i!==null)if(qi(i.value,o)){if(i.children===l.children&&!Do.current){t=Xl(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ul(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),w3(i.return,n,t),a.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ln(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),w3(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}vo(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,vd(t,n),l=_i(l),r=r(l),t.flags|=1,vo(e,t,r,n),t.child;case 14:return r=t.type,l=$i(r,t.pendingProps),l=$i(r.type,l),X6(e,t,r,l,n);case 15:return tF(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$i(r,l),q0(e,t),t.tag=1,Eo(r)?(e=!0,Ev(t)):e=!1,vd(t,n),AN(t,r,l),T3(t,r,l,n),C3(null,t,r,!0,e,n);case 19:return iF(e,t,n);case 22:return nF(e,t,n)}throw Error(ln(156,t.tag))};function _F(e,t){return Y$(e,t)}function KQ(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hi(e,t,n,r){return new KQ(e,t,n,r)}function DC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ZQ(e){if(typeof e=="function")return DC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===KS)return 11;if(e===ZS)return 14}return 2}function Bs(e,t){var n=e.alternate;return n===null?(n=hi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function V0(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")DC(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Jc:return zu(n.children,l,i,t);case XS:o=8,l|=8;break;case GT:return e=hi(12,n,t,l|2),e.elementType=GT,e.lanes=i,e;case YT:return e=hi(13,n,t,l),e.elementType=YT,e.lanes=i,e;case XT:return e=hi(19,n,t,l),e.elementType=XT,e.lanes=i,e;case D$:return d1(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O$:o=10;break e;case A$:o=9;break e;case KS:o=11;break e;case ZS:o=14;break e;case Ms:o=16,r=null;break e}throw Error(ln(130,e==null?e:typeof e,""))}return t=hi(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function zu(e,t,n,r){return e=hi(7,e,r,t),e.lanes=n,e}function d1(e,t,n,r){return e=hi(22,e,r,t),e.elementType=D$,e.lanes=n,e.stateNode={isHidden:!1},e}function fw(e,t,n){return e=hi(6,e,null,t),e.lanes=n,e}function pw(e,t,n){return t=hi(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QQ(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=G2(0),this.expirationTimes=G2(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=G2(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function EC(e,t,n,r,l,i,o,a,s){return e=new QQ(e,t,n,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=hi(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mC(i),e}function JQ(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(CF)}catch(e){console.error(e)}}CF(),k$.exports=ni;var dc=k$.exports;const uh=lr(dc);var uA=dc;HT.createRoot=uA.createRoot,HT.hydrateRoot=uA.hydrateRoot;class aJ{getAdditionalGraphData(){return Promise.reject("not implemented")}getAdditionalWidgetData(){return Promise.reject("not implemented")}getDashboard(){return Promise.reject("not implemented")}getProjects(){return Promise.reject("not implemented")}getProjectDashboard(){return Promise.reject("not implemented")}getReports(){return Promise.reject("not implemented")}getProjectInfo(){return Promise.reject("not implemented")}getTestSuites(){return Promise.reject("not implemented")}getVersion(){return Promise.reject("not implemented")}createProject(t){return Promise.reject("not implemented")}editProjectInfo(t){return Promise.reject("not implemented")}reloadProject(t){return Promise.reject("not implemented")}deleteProject(t){return Promise.reject("not implemented")}}const MF=Qe.createContext({Api:new aJ});class oJ{constructor(t,n,r){du(this,"dashboard");du(this,"projects");du(this,"additionalGraphs");this.dashboard=t,this.additionalGraphs=n,this.projects=r??[]}async getProjectDashboard(t,n,r){return{name:"Project Dasboard",widgets:[],min_timestamp:new Date(Date.now()).toString(),max_timestamp:new Date(Date.now()).toString()}}async getReports(t){return[{id:"report_1",timestamp:new Date(Date.now()).toString(),tags:[],metadata:{}}]}getAdditionalGraphData(t,n,r){var l=this.additionalGraphs.get(r);return l?Promise.resolve(l):Promise.reject("No graph found")}getAdditionalWidgetData(t,n,r){var l=this.additionalGraphs.get(r);return l?Promise.resolve(l):Promise.reject("No graph found")}getDashboard(t,n){return Promise.resolve(this.dashboard)}getProjects(){return Promise.resolve(this.projects)}getReport(t,n){return Promise.resolve(this.dashboard)}getTestSuite(t,n){return Promise.resolve(this.dashboard)}getTestSuites(t){return Promise.resolve([{id:"test_suite1",timestamp:new Date(Date.now()).toString(),tags:[],metadata:{}}])}getProjectInfo(t){return Promise.resolve({id:"project1",name:"Project #1",dashboard:{tabs:[],tab_id_to_panel_ids:{},panels:[],name:""}})}getVersion(){return Promise.resolve({version:"x.x.x"})}editProjectInfo(t){return Promise.resolve(new Response("ok",{status:200}))}reloadProject(t){return Promise.resolve(new Response(null,{status:200}))}createProject(t){return Promise.resolve({id:"new-project-id",name:"name",dashboard:{tab_id_to_panel_ids:{},tabs:[],panels:[],name:""}})}deleteProject(t){return Promise.resolve(new Response("ok",{status:200}))}}const am={black:"#000",white:"#fff"},Ec={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Rc={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Lc={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ic={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},$c={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Xf={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Rl={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"};function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=PF(e[n])}),t}function ha(e,t,n={clone:!0}){const r=n.clone?Ie({},e):e;return Fl(e)&&Fl(t)&&Object.keys(t).forEach(l=>{l!=="__proto__"&&(Fl(t[l])&&l in e&&Fl(e[l])?r[l]=ha(e[l],t[l],n):n.clone?r[l]=Fl(t[l])?PF(t[l]):t[l]:r[l]=t[l])}),r}var OF={exports:{}},iJ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",lJ=iJ,sJ=lJ;function AF(){}function DF(){}DF.resetWarningCache=AF;var uJ=function(){function e(r,l,i,o,a,s){if(s!==sJ){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:DF,resetWarningCache:AF};return n.PropTypes=n,n};OF.exports=uJ();var Vr=OF.exports;const le=lr(Vr);function No(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ll]=t,e[Kh]=r,lF(e,t,!1,!1),t.stateNode=e;e:{switch(o=n3(n,r),n){case"dialog":qr("cancel",e),qr("close",e),l=r;break;case"iframe":case"object":case"embed":qr("load",e),l=r;break;case"video":case"audio":for(l=0;lRd&&(t.flags|=128,r=!0,Vf(i,!1),t.lanes=4194304)}else{if(!r)if(e=Fv(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vf(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Zr)return io(t),null}else 2*ba()-i.renderingStartTime>Rd&&n!==1073741824&&(t.flags|=128,r=!0,Vf(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ba(),t.sibling=null,n=na.current,jr(na,r?n&1|2:n&1),t):(io(t),null);case 22:case 23:return OC(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Uo&1073741824&&(io(t),t.subtreeFlags&6&&(t.flags|=8192)):io(t),null;case 24:return null;case 25:return null}throw Error(ln(156,t.tag))}function NQ(e,t){switch(uC(t),t.tag){case 1:return Eo(t.type)&&Dv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dd(),Hr(Do),Hr(fo),yC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vC(t),null;case 13:if(Hr(na),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ln(340));Od()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Hr(na),null;case 4:return Dd(),null;case 10:return pC(t.type._context),null;case 22:case 23:return OC(),null;case 24:return null;default:return null}}var Zg=!1,uo=!1,FQ=typeof WeakSet=="function"?WeakSet:Set,Dn=null;function ld(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pa(e,t,r)}else n.current=null}function O3(e,t,n){try{n()}catch(r){pa(e,t,r)}}var J6=!1;function jQ(e,t){if(f3=Mv,e=pN(),lC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||l!==0&&d.nodeType!==3||(a=o+l),d!==i||r!==0&&d.nodeType!==3||(s=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===l&&(a=o),f===i&&++c===r&&(s=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(p3={focusedElem:e,selectionRange:n},Mv=!1,Dn=t;Dn!==null;)if(t=Dn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Dn=e;else for(;Dn!==null;){t=Dn;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,b=m.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:$i(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ln(163))}}catch(w){pa(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Dn=e;break}Dn=t.return}return m=J6,J6=!1,m}function kh(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&O3(t,n,i)}l=l.next}while(l!==r)}}function s1(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function A3(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function cF(e){var t=e.alternate;t!==null&&(e.alternate=null,cF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ll],delete t[Kh],delete t[g3],delete t[wQ],delete t[_Q])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function dF(e){return e.tag===5||e.tag===3||e.tag===4}function eA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function D3(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Av));else if(r!==4&&(e=e.child,e!==null))for(D3(e,t,n),e=e.sibling;e!==null;)D3(e,t,n),e=e.sibling}function E3(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(E3(e,t,n),e=e.sibling;e!==null;)E3(e,t,n),e=e.sibling}var Xa=null,Ni=!1;function ys(e,t,n){for(n=n.child;n!==null;)fF(e,t,n),n=n.sibling}function fF(e,t,n){if(hl&&typeof hl.onCommitFiberUnmount=="function")try{hl.onCommitFiberUnmount(e1,n)}catch{}switch(n.tag){case 5:uo||ld(n,t);case 6:var r=Xa,l=Ni;Xa=null,ys(e,t,n),Xa=r,Ni=l,Xa!==null&&(Ni?(e=Xa,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xa.removeChild(n.stateNode));break;case 18:Xa!==null&&(Ni?(e=Xa,n=n.stateNode,e.nodeType===8?rw(e.parentNode,n):e.nodeType===1&&rw(e,n),Hh(e)):rw(Xa,n.stateNode));break;case 4:r=Xa,l=Ni,Xa=n.stateNode.containerInfo,Ni=!0,ys(e,t,n),Xa=r,Ni=l;break;case 0:case 11:case 14:case 15:if(!uo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&O3(n,t,o),l=l.next}while(l!==r)}ys(e,t,n);break;case 1:if(!uo&&(ld(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){pa(n,t,a)}ys(e,t,n);break;case 21:ys(e,t,n);break;case 22:n.mode&1?(uo=(r=uo)||n.memoizedState!==null,ys(e,t,n),uo=r):ys(e,t,n);break;default:ys(e,t,n)}}function tA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new FQ),t.forEach(function(r){var l=YQ.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Li(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=ba()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*BQ(r/1960))-r,10e?16:e,Es===null)var r=!1;else{if(e=Es,Es=null,qv=0,fr&6)throw Error(ln(331));var l=fr;for(fr|=4,Dn=e.current;Dn!==null;){var i=Dn,o=i.child;if(Dn.flags&16){var a=i.deletions;if(a!==null){for(var s=0;sba()-MC?Fu(e,0):CC|=n),Ro(e,t)}function xF(e,t){t===0&&(e.mode&1?(t=Wg,Wg<<=1,!(Wg&130023424)&&(Wg=4194304)):t=1);var n=bo();e=Yl(e,t),e!==null&&(zm(e,t,n),Ro(e,n))}function GQ(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xF(e,n)}function YQ(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ln(314))}r!==null&&r.delete(t),xF(e,n)}var wF;wF=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Do.current)Ao=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ao=!1,IQ(e,t,n);Ao=!!(e.flags&131072)}else Ao=!1,Zr&&t.flags&1048576&&kN(t,Lv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;q0(e,t),e=t.pendingProps;var l=Pd(t,fo.current);gd(t,n),l=xC(null,t,r,e,l,n);var i=wC();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Eo(r)?(i=!0,Ev(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,mC(t),l.updater=i1,t.stateNode=l,l._reactInternals=t,_3(t,r,e,n),t=S3(null,t,r,!0,i,n)):(t.tag=0,Zr&&i&&sC(t),vo(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(q0(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=KQ(r),e=$i(r,e),l){case 0:t=k3(null,t,r,e,n);break e;case 1:t=K6(null,t,r,e,n);break e;case 11:t=Y6(null,t,r,e,n);break e;case 14:t=X6(null,t,r,$i(r.type,e),n);break e}throw Error(ln(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$i(r,l),k3(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$i(r,l),K6(e,t,r,l,n);case 3:e:{if(aF(t),e===null)throw Error(ln(387));r=t.pendingProps,i=t.memoizedState,l=i.element,PN(e,t),Nv(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Ed(Error(ln(423)),t),t=Z6(e,t,r,n,l);break e}else if(r!==l){l=Ed(Error(ln(424)),t),t=Z6(e,t,r,n,l);break e}else for(Vo=Ns(t.stateNode.containerInfo.firstChild),Ko=t,Zr=!0,Fi=null,n=EN(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Od(),r===l){t=Xl(e,t,n);break e}vo(e,t,r,n)}t=t.child}return t;case 5:return RN(t),e===null&&b3(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,h3(r,l)?o=null:i!==null&&h3(r,i)&&(t.flags|=32),rF(e,t),vo(e,t,o,n),t.child;case 6:return e===null&&b3(t),null;case 13:return oF(e,t,n);case 4:return gC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ad(t,null,r,n):vo(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$i(r,l),Y6(e,t,r,l,n);case 7:return vo(e,t,t.pendingProps,n),t.child;case 8:return vo(e,t,t.pendingProps.children,n),t.child;case 12:return vo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,jr(Iv,r._currentValue),r._currentValue=o,i!==null)if(qi(i.value,o)){if(i.children===l.children&&!Do.current){t=Xl(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ul(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),x3(i.return,n,t),a.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ln(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),x3(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}vo(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,gd(t,n),l=_i(l),r=r(l),t.flags|=1,vo(e,t,r,n),t.child;case 14:return r=t.type,l=$i(r,t.pendingProps),l=$i(r.type,l),X6(e,t,r,l,n);case 15:return tF(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$i(r,l),q0(e,t),t.tag=1,Eo(r)?(e=!0,Ev(t)):e=!1,gd(t,n),AN(t,r,l),_3(t,r,l,n),S3(null,t,r,!0,e,n);case 19:return iF(e,t,n);case 22:return nF(e,t,n)}throw Error(ln(156,t.tag))};function _F(e,t){return Y$(e,t)}function XQ(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hi(e,t,n,r){return new XQ(e,t,n,r)}function DC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KQ(e){if(typeof e=="function")return DC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===KS)return 11;if(e===ZS)return 14}return 2}function Bs(e,t){var n=e.alternate;return n===null?(n=hi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function V0(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")DC(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Qc:return ju(n.children,l,i,t);case XS:o=8,l|=8;break;case VT:return e=hi(12,n,t,l|2),e.elementType=VT,e.lanes=i,e;case GT:return e=hi(13,n,t,l),e.elementType=GT,e.lanes=i,e;case YT:return e=hi(19,n,t,l),e.elementType=YT,e.lanes=i,e;case D$:return c1(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O$:o=10;break e;case A$:o=9;break e;case KS:o=11;break e;case ZS:o=14;break e;case Ms:o=16,r=null;break e}throw Error(ln(130,e==null?e:typeof e,""))}return t=hi(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function ju(e,t,n,r){return e=hi(7,e,r,t),e.lanes=n,e}function c1(e,t,n,r){return e=hi(22,e,r,t),e.elementType=D$,e.lanes=n,e.stateNode={isHidden:!1},e}function dw(e,t,n){return e=hi(6,e,null,t),e.lanes=n,e}function fw(e,t,n){return t=hi(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ZQ(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=V2(0),this.expirationTimes=V2(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=V2(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function EC(e,t,n,r,l,i,o,a,s){return e=new ZQ(e,t,n,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=hi(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mC(i),e}function QQ(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(CF)}catch(e){console.error(e)}}CF(),k$.exports=ni;var cc=k$.exports;const sh=lr(cc);var uA=cc;UT.createRoot=uA.createRoot,UT.hydrateRoot=uA.hydrateRoot;const rm={black:"#000",white:"#fff"},Dc={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ec={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Rc={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Lc={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ic={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Yf={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Rl={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"};function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=MF(e[n])}),t}function ha(e,t,n={clone:!0}){const r=n.clone?Ie({},e):e;return Fl(e)&&Fl(t)&&Object.keys(t).forEach(l=>{l!=="__proto__"&&(Fl(t[l])&&l in e&&Fl(e[l])?r[l]=ha(e[l],t[l],n):n.clone?r[l]=Fl(t[l])?MF(t[l]):t[l]:r[l]=t[l])}),r}var PF={exports:{}},rJ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",aJ=rJ,oJ=aJ;function OF(){}function AF(){}AF.resetWarningCache=OF;var iJ=function(){function e(r,l,i,o,a,s){if(s!==oJ){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:AF,resetWarningCache:OF};return n.PropTypes=n,n};PF.exports=iJ();var Vr=PF.exports;const le=lr(Vr);function No(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...l){t.apply(this,l),n.apply(this,l)},()=>{})}function Hm(e,t=166){let n;function r(...l){const i=()=>{e.apply(this,l)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function pJ(e,t){return()=>null}function G0(e,t){var n,r;return ge.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Aa(e){return e&&e.ownerDocument||document}function bl(e){return Aa(e).defaultView||window}function hJ(e,t){return()=>null}function Vv(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const no=typeof window<"u"?ge.useLayoutEffect:ge.useEffect;let cA=0;function mJ(e){const[t,n]=ge.useState(e),r=e||t;return ge.useEffect(()=>{t==null&&(cA+=1,n(`mui-${cA}`))},[t]),r}const dA=UT.useId;function Kl(e){if(dA!==void 0){const t=dA();return e??t}return mJ(e)}function gJ(e,t,n,r,l){return null}function Zl({controlled:e,default:t,name:n,state:r="value"}){const{current:l}=ge.useRef(e!==void 0),[i,o]=ge.useState(t),a=l?e:i,s=ge.useCallback(u=>{l||o(u)},[]);return[a,s]}function yo(e){const t=ge.useRef(e);return no(()=>{t.current=e}),ge.useCallback((...n)=>(0,t.current)(...n),[])}function Lr(...e){return ge.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Vv(n,t)})},e)}let C1=!0,j3=!1,fA;const vJ={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function yJ(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&vJ[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function bJ(e){e.metaKey||e.altKey||e.ctrlKey||(C1=!0)}function hw(){C1=!1}function xJ(){this.visibilityState==="hidden"&&j3&&(C1=!0)}function wJ(e){e.addEventListener("keydown",bJ,!0),e.addEventListener("mousedown",hw,!0),e.addEventListener("pointerdown",hw,!0),e.addEventListener("touchstart",hw,!0),e.addEventListener("visibilitychange",xJ,!0)}function _J(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return C1||yJ(t)}function FC(){const e=ge.useCallback(l=>{l!=null&&wJ(l.ownerDocument)},[]),t=ge.useRef(!1);function n(){return t.current?(j3=!0,window.clearTimeout(fA),fA=window.setTimeout(()=>{j3=!1},100),t.current=!1,!0):!1}function r(l){return _J(l)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function LF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Nc;function IF(){if(Nc)return Nc;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Nc="reverse",e.scrollLeft>0?Nc="default":(e.scrollLeft=1,e.scrollLeft===0&&(Nc="negative")),document.body.removeChild(e),Nc}function TJ(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(IF()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function jC(e,t){const n=Ie({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ie({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const l=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=l:!l||!Object.keys(l)?n[r]=i:(n[r]=Ie({},i),Object.keys(l).forEach(o=>{n[r][o]=jC(l[o],i[o])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function vn(e,t,n=void 0){const r={};return Object.keys(e).forEach(l=>{r[l]=e[l].reduce((i,o)=>{if(o){const a=t(o);a!==""&&i.push(a),n&&n[o]&&i.push(n[o])}return i},[]).join(" ")}),r}const pA=e=>e,kJ=()=>{let e=pA;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pA}}},zC=kJ(),SJ={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 yn(e,t,n="Mui"){const r=SJ[t];return r?`${n}-${r}`:`${zC.generate(e)}-${t}`}function hn(e,t,n="Mui"){const r={};return t.forEach(l=>{r[l]=yn(e,l,n)}),r}const Ql="$$material";function Kt(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function $F(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var CJ=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,MJ=$F(function(e){return CJ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function PJ(e){if(e.sheet)return e.sheet;for(var t=0;t0?Qa(lf,--Fo):0,Id--,Pa===10&&(Id=1,P1--),Pa}function Zo(){return Pa=Fo2||im(Pa)>3?"":" "}function BJ(e,t){for(;--t&&Zo()&&!(Pa<48||Pa>102||Pa>57&&Pa<65||Pa>70&&Pa<97););return Vm(e,Y0()+(t<6&&gl()==32&&Zo()==32))}function B3(e){for(;Zo();)switch(Pa){case e:return Fo;case 34:case 39:e!==34&&e!==39&&B3(Pa);break;case 40:e===41&&B3(e);break;case 92:Zo();break}return Fo}function WJ(e,t){for(;Zo()&&e+Pa!==57;)if(e+Pa===84&&gl()===47)break;return"/*"+Vm(t,Fo-1)+"*"+M1(e===47?e:Zo())}function qJ(e){for(;!im(gl());)Zo();return Vm(e,Fo)}function UJ(e){return WF(K0("",null,null,null,[""],e=BF(e),0,[0],e))}function K0(e,t,n,r,l,i,o,a,s){for(var u=0,c=0,d=o,f=0,p=0,m=0,g=1,b=1,v=1,h=0,y="",w=l,_=i,x=r,T=y;b;)switch(m=h,h=Zo()){case 40:if(m!=108&&Qa(T,d-1)==58){z3(T+=xr(X0(h),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=X0(h);break;case 9:case 10:case 13:case 32:T+=zJ(m);break;case 92:T+=BJ(Y0()-1,7);continue;case 47:switch(gl()){case 42:case 47:e0(HJ(WJ(Zo(),Y0()),t,n),s);break;default:T+="/"}break;case 123*g:a[u++]=ol(T)*v;case 125*g:case 59:case 0:switch(h){case 0:case 125:b=0;case 59+c:v==-1&&(T=xr(T,/\f/g,"")),p>0&&ol(T)-d&&e0(p>32?mA(T+";",r,n,d-1):mA(xr(T," ","")+";",r,n,d-2),s);break;case 59:T+=";";default:if(e0(x=hA(T,t,n,u,c,l,a,y,w=[],_=[],d),i),h===123)if(c===0)K0(T,t,x,x,w,i,d,a,_);else switch(f===99&&Qa(T,3)===110?100:f){case 100:case 108:case 109:case 115:K0(e,x,x,r&&e0(hA(e,x,x,0,0,l,a,y,l,w=[],d),_),l,_,d,a,r?w:_);break;default:K0(T,x,x,x,[""],_,0,a,_)}}u=c=p=0,g=v=1,y=T="",d=o;break;case 58:d=1+ol(T),p=m;default:if(g<1){if(h==123)--g;else if(h==125&&g++==0&&jJ()==125)continue}switch(T+=M1(h),h*g){case 38:v=c>0?1:(T+="\f",-1);break;case 44:a[u++]=(ol(T)-1)*v,v=1;break;case 64:gl()===45&&(T+=X0(Zo())),f=gl(),c=d=ol(y=T+=qJ(Y0())),h++;break;case 45:m===45&&ol(T)==2&&(g=0)}}return i}function hA(e,t,n,r,l,i,o,a,s,u,c){for(var d=l-1,f=l===0?i:[""],p=qC(f),m=0,g=0,b=0;m0?f[v]+" "+h:xr(h,/&\f/g,f[v])))&&(s[b++]=y);return O1(e,t,n,l===0?BC:a,s,u,c)}function HJ(e,t,n){return O1(e,t,n,NF,M1(FJ()),om(e,2,-2),0)}function mA(e,t,n,r){return O1(e,t,n,WC,om(e,0,r),om(e,r+1,-1),r)}function bd(e,t){for(var n="",r=qC(e),l=0;l6)switch(Qa(e,t+1)){case 109:if(Qa(e,t+4)!==45)break;case 102:return xr(e,/(.+:)(.+)-([^]+)/,"$1"+br+"$2-$3$1"+Gv+(Qa(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~z3(e,"stretch")?qF(xr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Qa(e,t+1)!==115)break;case 6444:switch(Qa(e,ol(e)-3-(~z3(e,"!important")&&10))){case 107:return xr(e,":",":"+br)+e;case 101:return xr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+br+(Qa(e,14)===45?"inline-":"")+"box$3$1"+br+"$2$3$1"+lo+"$2box$3")+e}break;case 5936:switch(Qa(e,t+11)){case 114:return br+e+lo+xr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return br+e+lo+xr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return br+e+lo+xr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return br+e+lo+e+e}return e}var eee=function(t,n,r,l){if(t.length>-1&&!t.return)switch(t.type){case WC:t.return=qF(t.value,t.length);break;case FF:return bd([Kf(t,{value:xr(t.value,"@","@"+br)})],l);case BC:if(t.length)return NJ(t.props,function(i){switch($J(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bd([Kf(t,{props:[xr(i,/:(read-\w+)/,":"+Gv+"$1")]})],l);case"::placeholder":return bd([Kf(t,{props:[xr(i,/:(plac\w+)/,":"+br+"input-$1")]}),Kf(t,{props:[xr(i,/:(plac\w+)/,":"+Gv+"$1")]}),Kf(t,{props:[xr(i,/:(plac\w+)/,lo+"input-$1")]})],l)}return""})}},tee=[eee],UF=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var l=t.stylisPlugins||tee,i={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),v=1;vn==null?t:function(...l){t.apply(this,l),n.apply(this,l)},()=>{})}function Um(e,t=166){let n;function r(...l){const i=()=>{e.apply(this,l)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function cJ(e,t){return()=>null}function G0(e,t){var n,r;return ge.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Aa(e){return e&&e.ownerDocument||document}function bl(e){return Aa(e).defaultView||window}function dJ(e,t){return()=>null}function Vv(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const no=typeof window<"u"?ge.useLayoutEffect:ge.useEffect;let cA=0;function fJ(e){const[t,n]=ge.useState(e),r=e||t;return ge.useEffect(()=>{t==null&&(cA+=1,n(`mui-${cA}`))},[t]),r}const dA=qT.useId;function Kl(e){if(dA!==void 0){const t=dA();return e??t}return fJ(e)}function pJ(e,t,n,r,l){return null}function Zl({controlled:e,default:t,name:n,state:r="value"}){const{current:l}=ge.useRef(e!==void 0),[i,o]=ge.useState(t),a=l?e:i,s=ge.useCallback(u=>{l||o(u)},[]);return[a,s]}function yo(e){const t=ge.useRef(e);return no(()=>{t.current=e}),ge.useCallback((...n)=>(0,t.current)(...n),[])}function Lr(...e){return ge.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Vv(n,t)})},e)}let S1=!0,F3=!1,fA;const hJ={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function mJ(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&hJ[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function gJ(e){e.metaKey||e.altKey||e.ctrlKey||(S1=!0)}function pw(){S1=!1}function vJ(){this.visibilityState==="hidden"&&F3&&(S1=!0)}function yJ(e){e.addEventListener("keydown",gJ,!0),e.addEventListener("mousedown",pw,!0),e.addEventListener("pointerdown",pw,!0),e.addEventListener("touchstart",pw,!0),e.addEventListener("visibilitychange",vJ,!0)}function bJ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return S1||mJ(t)}function FC(){const e=ge.useCallback(l=>{l!=null&&yJ(l.ownerDocument)},[]),t=ge.useRef(!1);function n(){return t.current?(F3=!0,window.clearTimeout(fA),fA=window.setTimeout(()=>{F3=!1},100),t.current=!1,!0):!1}function r(l){return bJ(l)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function RF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let $c;function LF(){if($c)return $c;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),$c="reverse",e.scrollLeft>0?$c="default":(e.scrollLeft=1,e.scrollLeft===0&&($c="negative")),document.body.removeChild(e),$c}function xJ(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(LF()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function jC(e,t){const n=Ie({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ie({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const l=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=l:!l||!Object.keys(l)?n[r]=i:(n[r]=Ie({},i),Object.keys(l).forEach(o=>{n[r][o]=jC(l[o],i[o])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function vn(e,t,n=void 0){const r={};return Object.keys(e).forEach(l=>{r[l]=e[l].reduce((i,o)=>{if(o){const a=t(o);a!==""&&i.push(a),n&&n[o]&&i.push(n[o])}return i},[]).join(" ")}),r}const pA=e=>e,wJ=()=>{let e=pA;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pA}}},zC=wJ(),_J={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 yn(e,t,n="Mui"){const r=_J[t];return r?`${n}-${r}`:`${zC.generate(e)}-${t}`}function hn(e,t,n="Mui"){const r={};return t.forEach(l=>{r[l]=yn(e,l,n)}),r}const Ql="$$material";function Kt(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function IF(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var TJ=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kJ=IF(function(e){return TJ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function SJ(e){if(e.sheet)return e.sheet;for(var t=0;t0?Qa(of,--Fo):0,Ld--,Pa===10&&(Ld=1,M1--),Pa}function Zo(){return Pa=Fo2||om(Pa)>3?"":" "}function FJ(e,t){for(;--t&&Zo()&&!(Pa<48||Pa>102||Pa>57&&Pa<65||Pa>70&&Pa<97););return Hm(e,Y0()+(t<6&&gl()==32&&Zo()==32))}function z3(e){for(;Zo();)switch(Pa){case e:return Fo;case 34:case 39:e!==34&&e!==39&&z3(Pa);break;case 40:e===41&&z3(e);break;case 92:Zo();break}return Fo}function jJ(e,t){for(;Zo()&&e+Pa!==57;)if(e+Pa===84&&gl()===47)break;return"/*"+Hm(t,Fo-1)+"*"+C1(e===47?e:Zo())}function zJ(e){for(;!om(gl());)Zo();return Hm(e,Fo)}function BJ(e){return BF(K0("",null,null,null,[""],e=zF(e),0,[0],e))}function K0(e,t,n,r,l,i,o,a,s){for(var u=0,c=0,d=o,f=0,p=0,m=0,g=1,b=1,v=1,h=0,y="",w=l,_=i,x=r,T=y;b;)switch(m=h,h=Zo()){case 40:if(m!=108&&Qa(T,d-1)==58){j3(T+=xr(X0(h),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=X0(h);break;case 9:case 10:case 13:case 32:T+=NJ(m);break;case 92:T+=FJ(Y0()-1,7);continue;case 47:switch(gl()){case 42:case 47:e0(WJ(jJ(Zo(),Y0()),t,n),s);break;default:T+="/"}break;case 123*g:a[u++]=ol(T)*v;case 125*g:case 59:case 0:switch(h){case 0:case 125:b=0;case 59+c:v==-1&&(T=xr(T,/\f/g,"")),p>0&&ol(T)-d&&e0(p>32?mA(T+";",r,n,d-1):mA(xr(T," ","")+";",r,n,d-2),s);break;case 59:T+=";";default:if(e0(x=hA(T,t,n,u,c,l,a,y,w=[],_=[],d),i),h===123)if(c===0)K0(T,t,x,x,w,i,d,a,_);else switch(f===99&&Qa(T,3)===110?100:f){case 100:case 108:case 109:case 115:K0(e,x,x,r&&e0(hA(e,x,x,0,0,l,a,y,l,w=[],d),_),l,_,d,a,r?w:_);break;default:K0(T,x,x,x,[""],_,0,a,_)}}u=c=p=0,g=v=1,y=T="",d=o;break;case 58:d=1+ol(T),p=m;default:if(g<1){if(h==123)--g;else if(h==125&&g++==0&&$J()==125)continue}switch(T+=C1(h),h*g){case 38:v=c>0?1:(T+="\f",-1);break;case 44:a[u++]=(ol(T)-1)*v,v=1;break;case 64:gl()===45&&(T+=X0(Zo())),f=gl(),c=d=ol(y=T+=zJ(Y0())),h++;break;case 45:m===45&&ol(T)==2&&(g=0)}}return i}function hA(e,t,n,r,l,i,o,a,s,u,c){for(var d=l-1,f=l===0?i:[""],p=qC(f),m=0,g=0,b=0;m0?f[v]+" "+h:xr(h,/&\f/g,f[v])))&&(s[b++]=y);return P1(e,t,n,l===0?BC:a,s,u,c)}function WJ(e,t,n){return P1(e,t,n,$F,C1(IJ()),am(e,2,-2),0)}function mA(e,t,n,r){return P1(e,t,n,WC,am(e,0,r),am(e,r+1,-1),r)}function yd(e,t){for(var n="",r=qC(e),l=0;l6)switch(Qa(e,t+1)){case 109:if(Qa(e,t+4)!==45)break;case 102:return xr(e,/(.+:)(.+)-([^]+)/,"$1"+br+"$2-$3$1"+Gv+(Qa(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~j3(e,"stretch")?WF(xr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Qa(e,t+1)!==115)break;case 6444:switch(Qa(e,ol(e)-3-(~j3(e,"!important")&&10))){case 107:return xr(e,":",":"+br)+e;case 101:return xr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+br+(Qa(e,14)===45?"inline-":"")+"box$3$1"+br+"$2$3$1"+lo+"$2box$3")+e}break;case 5936:switch(Qa(e,t+11)){case 114:return br+e+lo+xr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return br+e+lo+xr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return br+e+lo+xr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return br+e+lo+e+e}return e}var ZJ=function(t,n,r,l){if(t.length>-1&&!t.return)switch(t.type){case WC:t.return=WF(t.value,t.length);break;case NF:return yd([Xf(t,{value:xr(t.value,"@","@"+br)})],l);case BC:if(t.length)return LJ(t.props,function(i){switch(RJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yd([Xf(t,{props:[xr(i,/:(read-\w+)/,":"+Gv+"$1")]})],l);case"::placeholder":return yd([Xf(t,{props:[xr(i,/:(plac\w+)/,":"+br+"input-$1")]}),Xf(t,{props:[xr(i,/:(plac\w+)/,":"+Gv+"$1")]}),Xf(t,{props:[xr(i,/:(plac\w+)/,lo+"input-$1")]})],l)}return""})}},QJ=[ZJ],qF=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var l=t.stylisPlugins||QJ,i={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),v=1;v=4;++r,l-=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(l){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 bee={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,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},xee=/[A-Z]|^ms/g,wee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ZF=function(t){return t.charCodeAt(1)===45},wA=function(t){return t!=null&&typeof t!="boolean"},mw=$F(function(e){return ZF(e)?e:e.replace(xee,"-$&").toLowerCase()}),_A=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(wee,function(r,l,i){return il={name:l,styles:i,next:il},l})}return bee[t]!==1&&!ZF(t)&&typeof n=="number"&&n!==0?n+"px":n};function lm(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return il={name:n.name,styles:n.styles,next:il},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)il={name:r.name,styles:r.styles,next:il},r=r.next;var l=n.styles+";";return l}return _ee(e,t,n)}case"function":{if(e!==void 0){var i=il,o=n(e);return il=i,lm(e,t,o)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function _ee(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l96?Mee:Pee},CA=function(t,n,r){var l;if(n){var i=n.shouldForwardProp;l=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof l!="function"&&r&&(l=t.__emotion_forwardProp),l},Oee=function(t){var n=t.cache,r=t.serialized,l=t.isStringTag;return XF(n,r,l),kee(function(){return KF(n,r,l)}),null},Aee=function e(t,n){var r=t.__emotion_real===t,l=r&&t.__emotion_base||t,i,o;n!==void 0&&(i=n.label,o=n.target);var a=CA(t,n,r),s=a||SA(l),u=!s("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt(Ree(l)?n:l):t;return ke.jsx(Cee,{styles:r})}function tj(e,t){return W3(e,t)}const Lee=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Iee=["values","unit","step"],$ee=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)=>Ie({},n,{[r.key]:r.val}),{})};function nj(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,l=Kt(e,Iee),i=$ee(t),o=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function s(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,p){const m=o.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[o[m]]=="number"?t[o[m]]:p)-r/100}${n})`}function c(f){return o.indexOf(f)+1`@media (min-width:${KC[e]}px)`};function jo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||MA;return t.reduce((o,a,s)=>(o[i.up(i.keys[s])]=n(t[s]),o),{})}if(typeof t=="object"){const i=r.breakpoints||MA;return Object.keys(t).reduce((o,a)=>{if(Object.keys(i.values||KC).indexOf(a)!==-1){const s=i.up(a);o[s]=n(t[a],a)}else{const s=a;o[s]=t[s]}return o},{})}return n(t)}function rj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,l)=>{const i=e.up(l);return r[i]={},r},{}))||{}}function aj(e,t){return e.reduce((n,r)=>{const l=n[r];return(!l||Object.keys(l).length===0)&&delete n[r],n},t)}function Fee(e,...t){const n=rj(e),r=[n,...t].reduce((l,i)=>ha(l,i),{});return aj(Object.keys(n),r)}function jee(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((l,i)=>{i{e[l]!=null&&(n[l]=!0)}),n}function Bu({values:e,breakpoints:t,base:n}){const r=n||jee(e,t),l=Object.keys(r);if(l.length===0)return e;let i;return l.reduce((o,a,s)=>(Array.isArray(e)?(o[a]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(o[a]=e[a]!=null?e[a]:e[i],i=a):o[a]=e,o),{})}function B1(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((l,i)=>l&&l[i]?l[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,l)=>r&&r[l]!=null?r[l]:null,e)}function Yv(e,t,n,r=n){let l;return typeof e=="function"?l=e(n):Array.isArray(e)?l=e[n]||r:l=B1(e,n)||r,t&&(l=t(l,r,e)),l}function Sr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:l}=e,i=o=>{if(o[t]==null)return null;const a=o[t],s=o.theme,u=B1(s,r)||{};return jo(o,a,d=>{let f=Yv(u,l,d);return d===f&&typeof d=="string"&&(f=Yv(u,l,`${t}${d==="default"?"":Jt(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function zee(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Bee={m:"margin",p:"padding"},Wee={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},PA={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qee=zee(e=>{if(e.length>2)if(PA[e])e=PA[e];else return[e];const[t,n]=e.split(""),r=Bee[t],l=Wee[n]||"";return Array.isArray(l)?l.map(i=>r+i):[r+l]}),ZC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],QC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ZC,...QC];function Gm(e,t,n,r){var l;const i=(l=B1(e,t,!1))!=null?l:n;return typeof i=="number"?o=>typeof o=="string"?o:i*o:Array.isArray(i)?o=>typeof o=="string"?o:i[o]:typeof i=="function"?i:()=>{}}function JC(e){return Gm(e,"spacing",8)}function Yu(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Uee(e,t){return n=>e.reduce((r,l)=>(r[l]=Yu(t,n),r),{})}function Hee(e,t,n,r){if(t.indexOf(n)===-1)return null;const l=qee(n),i=Uee(l,r),o=e[n];return jo(e,o,i)}function oj(e,t){const n=JC(e.theme);return Object.keys(e).map(r=>Hee(e,t,r,n)).reduce(Ph,{})}function da(e){return oj(e,ZC)}da.propTypes={};da.filterProps=ZC;function fa(e){return oj(e,QC)}fa.propTypes={};fa.filterProps=QC;function ij(e=8){if(e.mui)return e;const t=JC({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const o=t(i);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function W1(...e){const t=e.reduce((r,l)=>(l.filterProps.forEach(i=>{r[i]=l}),r),{}),n=r=>Object.keys(r).reduce((l,i)=>t[i]?Ph(l,t[i](r)):l,{});return n.propTypes={},n.filterProps=e.reduce((r,l)=>r.concat(l.filterProps),[]),n}function sl(e){return typeof e!="number"?e:`${e}px solid`}const Vee=Sr({prop:"border",themeKey:"borders",transform:sl}),Gee=Sr({prop:"borderTop",themeKey:"borders",transform:sl}),Yee=Sr({prop:"borderRight",themeKey:"borders",transform:sl}),Xee=Sr({prop:"borderBottom",themeKey:"borders",transform:sl}),Kee=Sr({prop:"borderLeft",themeKey:"borders",transform:sl}),Zee=Sr({prop:"borderColor",themeKey:"palette"}),Qee=Sr({prop:"borderTopColor",themeKey:"palette"}),Jee=Sr({prop:"borderRightColor",themeKey:"palette"}),ete=Sr({prop:"borderBottomColor",themeKey:"palette"}),tte=Sr({prop:"borderLeftColor",themeKey:"palette"}),q1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Gm(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Yu(t,r)});return jo(e,e.borderRadius,n)}return null};q1.propTypes={};q1.filterProps=["borderRadius"];W1(Vee,Gee,Yee,Xee,Kee,Zee,Qee,Jee,ete,tte,q1);const U1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Gm(e.theme,"spacing",8),n=r=>({gap:Yu(t,r)});return jo(e,e.gap,n)}return null};U1.propTypes={};U1.filterProps=["gap"];const H1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Gm(e.theme,"spacing",8),n=r=>({columnGap:Yu(t,r)});return jo(e,e.columnGap,n)}return null};H1.propTypes={};H1.filterProps=["columnGap"];const V1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Gm(e.theme,"spacing",8),n=r=>({rowGap:Yu(t,r)});return jo(e,e.rowGap,n)}return null};V1.propTypes={};V1.filterProps=["rowGap"];const nte=Sr({prop:"gridColumn"}),rte=Sr({prop:"gridRow"}),ate=Sr({prop:"gridAutoFlow"}),ote=Sr({prop:"gridAutoColumns"}),ite=Sr({prop:"gridAutoRows"}),lte=Sr({prop:"gridTemplateColumns"}),ste=Sr({prop:"gridTemplateRows"}),ute=Sr({prop:"gridTemplateAreas"}),cte=Sr({prop:"gridArea"});W1(U1,H1,V1,nte,rte,ate,ote,ite,lte,ste,ute,cte);function xd(e,t){return t==="grey"?t:e}const dte=Sr({prop:"color",themeKey:"palette",transform:xd}),fte=Sr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xd}),pte=Sr({prop:"backgroundColor",themeKey:"palette",transform:xd});W1(dte,fte,pte);function Ho(e){return e<=1&&e!==0?`${e*100}%`:e}const hte=Sr({prop:"width",transform:Ho}),eM=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,l;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||KC[n];return i?((l=e.theme)==null||(l=l.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ho(n)}};return jo(e,e.maxWidth,t)}return null};eM.filterProps=["maxWidth"];const mte=Sr({prop:"minWidth",transform:Ho}),gte=Sr({prop:"height",transform:Ho}),vte=Sr({prop:"maxHeight",transform:Ho}),yte=Sr({prop:"minHeight",transform:Ho});Sr({prop:"size",cssProperty:"width",transform:Ho});Sr({prop:"size",cssProperty:"height",transform:Ho});const bte=Sr({prop:"boxSizing"});W1(hte,eM,mte,gte,vte,yte,bte);const Ym={border:{themeKey:"borders",transform:sl},borderTop:{themeKey:"borders",transform:sl},borderRight:{themeKey:"borders",transform:sl},borderBottom:{themeKey:"borders",transform:sl},borderLeft:{themeKey:"borders",transform:sl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:q1},color:{themeKey:"palette",transform:xd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xd},backgroundColor:{themeKey:"palette",transform:xd},p:{style:fa},pt:{style:fa},pr:{style:fa},pb:{style:fa},pl:{style:fa},px:{style:fa},py:{style:fa},padding:{style:fa},paddingTop:{style:fa},paddingRight:{style:fa},paddingBottom:{style:fa},paddingLeft:{style:fa},paddingX:{style:fa},paddingY:{style:fa},paddingInline:{style:fa},paddingInlineStart:{style:fa},paddingInlineEnd:{style:fa},paddingBlock:{style:fa},paddingBlockStart:{style:fa},paddingBlockEnd:{style:fa},m:{style:da},mt:{style:da},mr:{style:da},mb:{style:da},ml:{style:da},mx:{style:da},my:{style:da},margin:{style:da},marginTop:{style:da},marginRight:{style:da},marginBottom:{style:da},marginLeft:{style:da},marginX:{style:da},marginY:{style:da},marginInline:{style:da},marginInlineStart:{style:da},marginInlineEnd:{style:da},marginBlock:{style:da},marginBlockStart:{style:da},marginBlockEnd:{style:da},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:U1},rowGap:{style:V1},columnGap:{style:H1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ho},maxWidth:{style:eM},minWidth:{transform:Ho},height:{transform:Ho},maxHeight:{transform:Ho},minHeight:{transform:Ho},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function xte(...e){const t=e.reduce((r,l)=>r.concat(Object.keys(l)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function wte(e,t){return typeof e=="function"?e(t):e}function _te(){function e(n,r,l,i){const o={[n]:r,theme:l},a=i[n];if(!a)return{[n]:r};const{cssProperty:s=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=B1(l,u)||{};return d?d(o):jo(o,r,m=>{let g=Yv(f,c,m);return m===g&&typeof m=="string"&&(g=Yv(f,c,`${n}${m==="default"?"":Jt(m)}`,m)),s===!1?g:{[s]:g}})}function t(n){var r;const{sx:l,theme:i={}}=n||{};if(!l)return null;const o=(r=i.unstable_sxConfig)!=null?r:Ym;function a(s){let u=s;if(typeof s=="function")u=s(i);else if(typeof s!="object")return s;if(!u)return null;const c=rj(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(p=>{const m=wte(u[p],i);if(m!=null)if(typeof m=="object")if(o[p])f=Ph(f,e(p,m,i,o));else{const g=jo({theme:i},m,b=>({[p]:b}));xte(g,m)?f[p]=t({sx:m,theme:i}):f=Ph(f,g)}else f=Ph(f,e(p,m,i,o))}),aj(d,f)}return Array.isArray(l)?l.map(a):a(l)}return t}const fc=_te();fc.filterProps=["sx"];const Tte=["breakpoints","palette","spacing","shape"];function G1(e={},...t){const{breakpoints:n={},palette:r={},spacing:l,shape:i={}}=e,o=Kt(e,Tte),a=nj(n),s=ij(l);let u=ha({breakpoints:a,direction:"ltr",components:{},palette:Ie({mode:"light"},r),spacing:s,shape:Ie({},Nee,i)},o);return u=t.reduce((c,d)=>ha(c,d),u),u.unstable_sxConfig=Ie({},Ym,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return fc({sx:d,theme:this})},u}function kte(e){return Object.keys(e).length===0}function Y1(e=null){const t=ge.useContext(z1);return!t||kte(t)?e:t}const Ste=G1();function Xm(e=Ste){return Y1(e)}function Cte({styles:e,themeId:t,defaultTheme:n={}}){const r=Xm(n),l=typeof e=="function"?e(t&&r[t]||r):e;return ke.jsx(Z0,{styles:l})}const Mte=["sx"],Pte=e=>{var t,n;const r={systemProps:{},otherProps:{}},l=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ym;return Object.keys(e).forEach(i=>{l[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function X1(e){const{sx:t}=e,n=Kt(e,Mte),{systemProps:r,otherProps:l}=Pte(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...o)=>{const a=t(...o);return Fl(a)?Ie({},r,a):r}:i=Ie({},r,t),Ie({},l,{sx:i})}function lj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(fc);return ge.forwardRef(function(s,u){const c=Xm(n),d=X1(s),{className:f,component:p="div"}=d,m=Kt(d,Ote);return ke.jsx(i,Ie({as:p,ref:u,className:on(f,l?l(r):r),theme:t&&c[t]||c},m))})}const Dte=["variant"];function OA(e){return e.length===0}function sj(e){const{variant:t}=e,n=Kt(e,Dte);let r=t||"";return Object.keys(n).sort().forEach(l=>{l==="color"?r+=OA(r)?e[l]:Jt(e[l]):r+=`${OA(r)?l:Jt(l)}${Jt(e[l].toString())}`}),r}const Ete=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Rte(e){return Object.keys(e).length===0}function Lte(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Ite=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Xv=e=>{const t={};return e&&e.forEach(n=>{const r=sj(n.props);t[r]=n.style}),t},$te=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Xv(n)},Kv=(e,t,n)=>{const{ownerState:r={}}=e,l=[];return n&&n.forEach(i=>{let o=!0;Object.keys(i.props).forEach(a=>{r[a]!==i.props[a]&&e[a]!==i.props[a]&&(o=!1)}),o&&l.push(t[sj(i.props)])}),l},Nte=(e,t,n,r)=>{var l;const i=n==null||(l=n.components)==null||(l=l[r])==null?void 0:l.variants;return Kv(e,t,i)};function Oh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fte=G1(),jte=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Q0({defaultTheme:e,theme:t,themeId:n}){return Rte(t)?e:t[n]||t}function zte(e){return e?(t,n)=>n[e]:null}const AA=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const l=e(Ie({},t,{theme:Q0(Ie({},t,{defaultTheme:n,themeId:r}))}));let i;if(l&&l.variants&&(i=l.variants,delete l.variants),i){const o=Kv(t,Xv(i),i);return[l,...o]}return l};function uj(e={}){const{themeId:t,defaultTheme:n=Fte,rootShouldForwardProp:r=Oh,slotShouldForwardProp:l=Oh}=e,i=o=>fc(Ie({},o,{theme:Q0(Ie({},o,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(o,a={})=>{Lee(o,w=>w.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=zte(jte(u))}=a,p=Kt(a,Ete),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=d||!1;let b,v=Oh;u==="Root"||u==="root"?v=r:u?v=l:Lte(o)&&(v=void 0);const h=tj(o,Ie({shouldForwardProp:v,label:b},p)),y=(w,..._)=>{const x=_?_.map(C=>{if(typeof C=="function"&&C.__emotion_real!==C)return M=>AA({styledArg:C,props:M,defaultTheme:n,themeId:t});if(Fl(C)){let M=C,O;return C&&C.variants&&(O=C.variants,delete M.variants,M=D=>{let P=C;return Kv(D,Xv(O),O).forEach(I=>{P=ha(P,I)}),P}),M}return C}):[];let T=w;if(Fl(w)){let C;w&&w.variants&&(C=w.variants,delete T.variants,T=M=>{let O=w;return Kv(M,Xv(C),C).forEach(P=>{O=ha(O,P)}),O})}else typeof w=="function"&&w.__emotion_real!==w&&(T=C=>AA({styledArg:w,props:C,defaultTheme:n,themeId:t}));s&&f&&x.push(C=>{const M=Q0(Ie({},C,{defaultTheme:n,themeId:t})),O=Ite(s,M);if(O){const D={};return Object.entries(O).forEach(([P,E])=>{D[P]=typeof E=="function"?E(Ie({},C,{theme:M})):E}),f(C,D)}return null}),s&&!m&&x.push(C=>{const M=Q0(Ie({},C,{defaultTheme:n,themeId:t}));return Nte(C,$te(s,M),M,s)}),g||x.push(i);const k=x.length-_.length;if(Array.isArray(w)&&k>0){const C=new Array(k).fill("");T=[...w,...C],T.raw=[...w.raw,...C]}const S=h(T,...x);return o.muiName&&(S.muiName=o.muiName),S};return h.withConfig&&(y.withConfig=h.withConfig),y}}const Bte=uj();function cj(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:jC(t.components[n].defaultProps,r)}function dj({props:e,name:t,defaultTheme:n,themeId:r}){let l=Xm(n);return r&&(l=l[r]||l),cj({theme:l,name:t,props:e})}function tM(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function fj(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,l)=>l<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Wte(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function xl(e){if(e.type)return e;if(e.charAt(0)==="#")return xl(fj(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(No(9,e));let r=e.substring(t+1,e.length-1),l;if(n==="color"){if(r=r.split(" "),l=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(l)===-1)throw new Error(No(10,l))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:l}}const qte=e=>{const t=xl(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")},ch=(e,t)=>{try{return qte(e)}catch{return e}};function Km(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((l,i)=>i<3?parseInt(l,10):l):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Ute(e){if(e.indexOf("#")===0)return e;const{values:t}=xl(e);return`#${t.map((n,r)=>Wte(r===3?Math.round(255*n):n)).join("")}`}function pj(e){e=xl(e);const{values:t}=e,n=t[0],r=t[1]/100,l=t[2]/100,i=r*Math.min(l,1-l),o=(u,c=(u+n/30)%12)=>l-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const s=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(a+="a",s.push(t[3])),Km({type:a,values:s})}function Zv(e){e=xl(e);let t=e.type==="hsl"||e.type==="hsla"?xl(pj(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 hj(e,t){const n=Zv(e),r=Zv(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function rr(e,t){return e=xl(e),t=tM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Km(e)}function t0(e,t,n){try{return rr(e,t)}catch{return e}}function wl(e,t){if(e=xl(e),t=tM(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Km(e)}function Er(e,t,n){try{return wl(e,t)}catch{return e}}function _l(e,t){if(e=xl(e),t=tM(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Km(e)}function Rr(e,t,n){try{return _l(e,t)}catch{return e}}function Hte(e,t=.15){return Zv(e)>.5?wl(e,t):_l(e,t)}function dh(e,t,n){try{return dh(e,t)}catch{return e}}const mj=ge.createContext(null);function nM(){return ge.useContext(mj)}const Vte=typeof Symbol=="function"&&Symbol.for,Gte=Vte?Symbol.for("mui.nested"):"__THEME_NESTED__";function Yte(e,t){return typeof t=="function"?t(e):Ie({},e,t)}function Xte(e){const{children:t,theme:n}=e,r=nM(),l=ge.useMemo(()=>{const i=r===null?n:Yte(r,n);return i!=null&&(i[Gte]=r!==null),i},[n,r]);return ke.jsx(mj.Provider,{value:l,children:t})}const DA={};function EA(e,t,n,r=!1){return ge.useMemo(()=>{const l=e&&t[e]||t;if(typeof n=="function"){const i=n(l),o=e?Ie({},t,{[e]:i}):i;return r?()=>o:o}return e?Ie({},t,{[e]:n}):Ie({},t,n)},[e,t,n,r])}function gj(e){const{children:t,theme:n,themeId:r}=e,l=Y1(DA),i=nM()||DA,o=EA(r,l,n),a=EA(r,i,n,!0);return ke.jsx(Xte,{theme:a,children:ke.jsx(z1.Provider,{value:o,children:t})})}const rM="mode",aM="color-scheme",vj="data-color-scheme";function Kte(e){const{defaultMode:t="light",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:l=rM,colorSchemeStorageKey:i=aM,attribute:o=vj,colorSchemeNode:a="document.documentElement"}=e||{};return ke.jsx("script",{dangerouslySetInnerHTML:{__html:`(function() { + */var Ba=typeof Symbol=="function"&&Symbol.for,UC=Ba?Symbol.for("react.element"):60103,HC=Ba?Symbol.for("react.portal"):60106,O1=Ba?Symbol.for("react.fragment"):60107,A1=Ba?Symbol.for("react.strict_mode"):60108,D1=Ba?Symbol.for("react.profiler"):60114,E1=Ba?Symbol.for("react.provider"):60109,R1=Ba?Symbol.for("react.context"):60110,VC=Ba?Symbol.for("react.async_mode"):60111,L1=Ba?Symbol.for("react.concurrent_mode"):60111,I1=Ba?Symbol.for("react.forward_ref"):60112,$1=Ba?Symbol.for("react.suspense"):60113,JJ=Ba?Symbol.for("react.suspense_list"):60120,N1=Ba?Symbol.for("react.memo"):60115,F1=Ba?Symbol.for("react.lazy"):60116,eee=Ba?Symbol.for("react.block"):60121,tee=Ba?Symbol.for("react.fundamental"):60117,nee=Ba?Symbol.for("react.responder"):60118,ree=Ba?Symbol.for("react.scope"):60119;function ai(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case UC:switch(e=e.type,e){case VC:case L1:case O1:case D1:case A1:case $1:return e;default:switch(e=e&&e.$$typeof,e){case R1:case I1:case F1:case N1:case E1:return e;default:return t}}case HC:return t}}}function HF(e){return ai(e)===L1}Ar.AsyncMode=VC;Ar.ConcurrentMode=L1;Ar.ContextConsumer=R1;Ar.ContextProvider=E1;Ar.Element=UC;Ar.ForwardRef=I1;Ar.Fragment=O1;Ar.Lazy=F1;Ar.Memo=N1;Ar.Portal=HC;Ar.Profiler=D1;Ar.StrictMode=A1;Ar.Suspense=$1;Ar.isAsyncMode=function(e){return HF(e)||ai(e)===VC};Ar.isConcurrentMode=HF;Ar.isContextConsumer=function(e){return ai(e)===R1};Ar.isContextProvider=function(e){return ai(e)===E1};Ar.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===UC};Ar.isForwardRef=function(e){return ai(e)===I1};Ar.isFragment=function(e){return ai(e)===O1};Ar.isLazy=function(e){return ai(e)===F1};Ar.isMemo=function(e){return ai(e)===N1};Ar.isPortal=function(e){return ai(e)===HC};Ar.isProfiler=function(e){return ai(e)===D1};Ar.isStrictMode=function(e){return ai(e)===A1};Ar.isSuspense=function(e){return ai(e)===$1};Ar.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===O1||e===L1||e===D1||e===A1||e===$1||e===JJ||typeof e=="object"&&e!==null&&(e.$$typeof===F1||e.$$typeof===N1||e.$$typeof===E1||e.$$typeof===R1||e.$$typeof===I1||e.$$typeof===tee||e.$$typeof===nee||e.$$typeof===ree||e.$$typeof===eee)};Ar.typeOf=ai;UF.exports=Ar;var aee=UF.exports,GC=aee,oee={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},iee={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},lee={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},VF={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},YC={};YC[GC.ForwardRef]=lee;YC[GC.Memo]=VF;function vA(e){return GC.isMemo(e)?VF:YC[e.$$typeof]||oee}var see=Object.defineProperty,uee=Object.getOwnPropertyNames,yA=Object.getOwnPropertySymbols,cee=Object.getOwnPropertyDescriptor,dee=Object.getPrototypeOf,bA=Object.prototype;function GF(e,t,n){if(typeof t!="string"){if(bA){var r=dee(t);r&&r!==bA&&GF(e,r,n)}var l=uee(t);yA&&(l=l.concat(yA(t)));for(var i=vA(e),o=vA(t),a=0;a=4;++r,l-=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(l){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 gee={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,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},vee=/[A-Z]|^ms/g,yee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,KF=function(t){return t.charCodeAt(1)===45},wA=function(t){return t!=null&&typeof t!="boolean"},hw=IF(function(e){return KF(e)?e:e.replace(vee,"-$&").toLowerCase()}),_A=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(yee,function(r,l,i){return il={name:l,styles:i,next:il},l})}return gee[t]!==1&&!KF(t)&&typeof n=="number"&&n!==0?n+"px":n};function im(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return il={name:n.name,styles:n.styles,next:il},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)il={name:r.name,styles:r.styles,next:il},r=r.next;var l=n.styles+";";return l}return bee(e,t,n)}case"function":{if(e!==void 0){var i=il,o=n(e);return il=i,im(e,t,o)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function bee(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l96?kee:See},CA=function(t,n,r){var l;if(n){var i=n.shouldForwardProp;l=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof l!="function"&&r&&(l=t.__emotion_forwardProp),l},Cee=function(t){var n=t.cache,r=t.serialized,l=t.isStringTag;return YF(n,r,l),wee(function(){return XF(n,r,l)}),null},Mee=function e(t,n){var r=t.__emotion_real===t,l=r&&t.__emotion_base||t,i,o;n!==void 0&&(i=n.label,o=n.target);var a=CA(t,n,r),s=a||SA(l),u=!s("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt(Aee(l)?n:l):t;return ke.jsx(Tee,{styles:r})}function ej(e,t){return B3(e,t)}const Dee=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Eee=["values","unit","step"],Ree=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)=>Ie({},n,{[r.key]:r.val}),{})};function tj(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,l=Kt(e,Eee),i=Ree(t),o=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function s(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,p){const m=o.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[o[m]]=="number"?t[o[m]]:p)-r/100}${n})`}function c(f){return o.indexOf(f)+1`@media (min-width:${KC[e]}px)`};function jo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||MA;return t.reduce((o,a,s)=>(o[i.up(i.keys[s])]=n(t[s]),o),{})}if(typeof t=="object"){const i=r.breakpoints||MA;return Object.keys(t).reduce((o,a)=>{if(Object.keys(i.values||KC).indexOf(a)!==-1){const s=i.up(a);o[s]=n(t[a],a)}else{const s=a;o[s]=t[s]}return o},{})}return n(t)}function nj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,l)=>{const i=e.up(l);return r[i]={},r},{}))||{}}function rj(e,t){return e.reduce((n,r)=>{const l=n[r];return(!l||Object.keys(l).length===0)&&delete n[r],n},t)}function Iee(e,...t){const n=nj(e),r=[n,...t].reduce((l,i)=>ha(l,i),{});return rj(Object.keys(n),r)}function $ee(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((l,i)=>{i{e[l]!=null&&(n[l]=!0)}),n}function zu({values:e,breakpoints:t,base:n}){const r=n||$ee(e,t),l=Object.keys(r);if(l.length===0)return e;let i;return l.reduce((o,a,s)=>(Array.isArray(e)?(o[a]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(o[a]=e[a]!=null?e[a]:e[i],i=a):o[a]=e,o),{})}function z1(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((l,i)=>l&&l[i]?l[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,l)=>r&&r[l]!=null?r[l]:null,e)}function Yv(e,t,n,r=n){let l;return typeof e=="function"?l=e(n):Array.isArray(e)?l=e[n]||r:l=z1(e,n)||r,t&&(l=t(l,r,e)),l}function Sr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:l}=e,i=o=>{if(o[t]==null)return null;const a=o[t],s=o.theme,u=z1(s,r)||{};return jo(o,a,d=>{let f=Yv(u,l,d);return d===f&&typeof d=="string"&&(f=Yv(u,l,`${t}${d==="default"?"":Jt(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function Nee(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Fee={m:"margin",p:"padding"},jee={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},PA={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zee=Nee(e=>{if(e.length>2)if(PA[e])e=PA[e];else return[e];const[t,n]=e.split(""),r=Fee[t],l=jee[n]||"";return Array.isArray(l)?l.map(i=>r+i):[r+l]}),ZC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],QC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ZC,...QC];function Vm(e,t,n,r){var l;const i=(l=z1(e,t,!1))!=null?l:n;return typeof i=="number"?o=>typeof o=="string"?o:i*o:Array.isArray(i)?o=>typeof o=="string"?o:i[o]:typeof i=="function"?i:()=>{}}function JC(e){return Vm(e,"spacing",8)}function Gu(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Bee(e,t){return n=>e.reduce((r,l)=>(r[l]=Gu(t,n),r),{})}function Wee(e,t,n,r){if(t.indexOf(n)===-1)return null;const l=zee(n),i=Bee(l,r),o=e[n];return jo(e,o,i)}function aj(e,t){const n=JC(e.theme);return Object.keys(e).map(r=>Wee(e,t,r,n)).reduce(Mh,{})}function da(e){return aj(e,ZC)}da.propTypes={};da.filterProps=ZC;function fa(e){return aj(e,QC)}fa.propTypes={};fa.filterProps=QC;function oj(e=8){if(e.mui)return e;const t=JC({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const o=t(i);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function B1(...e){const t=e.reduce((r,l)=>(l.filterProps.forEach(i=>{r[i]=l}),r),{}),n=r=>Object.keys(r).reduce((l,i)=>t[i]?Mh(l,t[i](r)):l,{});return n.propTypes={},n.filterProps=e.reduce((r,l)=>r.concat(l.filterProps),[]),n}function sl(e){return typeof e!="number"?e:`${e}px solid`}const qee=Sr({prop:"border",themeKey:"borders",transform:sl}),Uee=Sr({prop:"borderTop",themeKey:"borders",transform:sl}),Hee=Sr({prop:"borderRight",themeKey:"borders",transform:sl}),Vee=Sr({prop:"borderBottom",themeKey:"borders",transform:sl}),Gee=Sr({prop:"borderLeft",themeKey:"borders",transform:sl}),Yee=Sr({prop:"borderColor",themeKey:"palette"}),Xee=Sr({prop:"borderTopColor",themeKey:"palette"}),Kee=Sr({prop:"borderRightColor",themeKey:"palette"}),Zee=Sr({prop:"borderBottomColor",themeKey:"palette"}),Qee=Sr({prop:"borderLeftColor",themeKey:"palette"}),W1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vm(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Gu(t,r)});return jo(e,e.borderRadius,n)}return null};W1.propTypes={};W1.filterProps=["borderRadius"];B1(qee,Uee,Hee,Vee,Gee,Yee,Xee,Kee,Zee,Qee,W1);const q1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vm(e.theme,"spacing",8),n=r=>({gap:Gu(t,r)});return jo(e,e.gap,n)}return null};q1.propTypes={};q1.filterProps=["gap"];const U1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vm(e.theme,"spacing",8),n=r=>({columnGap:Gu(t,r)});return jo(e,e.columnGap,n)}return null};U1.propTypes={};U1.filterProps=["columnGap"];const H1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vm(e.theme,"spacing",8),n=r=>({rowGap:Gu(t,r)});return jo(e,e.rowGap,n)}return null};H1.propTypes={};H1.filterProps=["rowGap"];const Jee=Sr({prop:"gridColumn"}),ete=Sr({prop:"gridRow"}),tte=Sr({prop:"gridAutoFlow"}),nte=Sr({prop:"gridAutoColumns"}),rte=Sr({prop:"gridAutoRows"}),ate=Sr({prop:"gridTemplateColumns"}),ote=Sr({prop:"gridTemplateRows"}),ite=Sr({prop:"gridTemplateAreas"}),lte=Sr({prop:"gridArea"});B1(q1,U1,H1,Jee,ete,tte,nte,rte,ate,ote,ite,lte);function bd(e,t){return t==="grey"?t:e}const ste=Sr({prop:"color",themeKey:"palette",transform:bd}),ute=Sr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bd}),cte=Sr({prop:"backgroundColor",themeKey:"palette",transform:bd});B1(ste,ute,cte);function Ho(e){return e<=1&&e!==0?`${e*100}%`:e}const dte=Sr({prop:"width",transform:Ho}),eM=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,l;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||KC[n];return i?((l=e.theme)==null||(l=l.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ho(n)}};return jo(e,e.maxWidth,t)}return null};eM.filterProps=["maxWidth"];const fte=Sr({prop:"minWidth",transform:Ho}),pte=Sr({prop:"height",transform:Ho}),hte=Sr({prop:"maxHeight",transform:Ho}),mte=Sr({prop:"minHeight",transform:Ho});Sr({prop:"size",cssProperty:"width",transform:Ho});Sr({prop:"size",cssProperty:"height",transform:Ho});const gte=Sr({prop:"boxSizing"});B1(dte,eM,fte,pte,hte,mte,gte);const Gm={border:{themeKey:"borders",transform:sl},borderTop:{themeKey:"borders",transform:sl},borderRight:{themeKey:"borders",transform:sl},borderBottom:{themeKey:"borders",transform:sl},borderLeft:{themeKey:"borders",transform:sl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:W1},color:{themeKey:"palette",transform:bd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bd},backgroundColor:{themeKey:"palette",transform:bd},p:{style:fa},pt:{style:fa},pr:{style:fa},pb:{style:fa},pl:{style:fa},px:{style:fa},py:{style:fa},padding:{style:fa},paddingTop:{style:fa},paddingRight:{style:fa},paddingBottom:{style:fa},paddingLeft:{style:fa},paddingX:{style:fa},paddingY:{style:fa},paddingInline:{style:fa},paddingInlineStart:{style:fa},paddingInlineEnd:{style:fa},paddingBlock:{style:fa},paddingBlockStart:{style:fa},paddingBlockEnd:{style:fa},m:{style:da},mt:{style:da},mr:{style:da},mb:{style:da},ml:{style:da},mx:{style:da},my:{style:da},margin:{style:da},marginTop:{style:da},marginRight:{style:da},marginBottom:{style:da},marginLeft:{style:da},marginX:{style:da},marginY:{style:da},marginInline:{style:da},marginInlineStart:{style:da},marginInlineEnd:{style:da},marginBlock:{style:da},marginBlockStart:{style:da},marginBlockEnd:{style:da},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:q1},rowGap:{style:H1},columnGap:{style:U1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ho},maxWidth:{style:eM},minWidth:{transform:Ho},height:{transform:Ho},maxHeight:{transform:Ho},minHeight:{transform:Ho},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vte(...e){const t=e.reduce((r,l)=>r.concat(Object.keys(l)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function yte(e,t){return typeof e=="function"?e(t):e}function bte(){function e(n,r,l,i){const o={[n]:r,theme:l},a=i[n];if(!a)return{[n]:r};const{cssProperty:s=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=z1(l,u)||{};return d?d(o):jo(o,r,m=>{let g=Yv(f,c,m);return m===g&&typeof m=="string"&&(g=Yv(f,c,`${n}${m==="default"?"":Jt(m)}`,m)),s===!1?g:{[s]:g}})}function t(n){var r;const{sx:l,theme:i={}}=n||{};if(!l)return null;const o=(r=i.unstable_sxConfig)!=null?r:Gm;function a(s){let u=s;if(typeof s=="function")u=s(i);else if(typeof s!="object")return s;if(!u)return null;const c=nj(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(p=>{const m=yte(u[p],i);if(m!=null)if(typeof m=="object")if(o[p])f=Mh(f,e(p,m,i,o));else{const g=jo({theme:i},m,b=>({[p]:b}));vte(g,m)?f[p]=t({sx:m,theme:i}):f=Mh(f,g)}else f=Mh(f,e(p,m,i,o))}),rj(d,f)}return Array.isArray(l)?l.map(a):a(l)}return t}const dc=bte();dc.filterProps=["sx"];const xte=["breakpoints","palette","spacing","shape"];function V1(e={},...t){const{breakpoints:n={},palette:r={},spacing:l,shape:i={}}=e,o=Kt(e,xte),a=tj(n),s=oj(l);let u=ha({breakpoints:a,direction:"ltr",components:{},palette:Ie({mode:"light"},r),spacing:s,shape:Ie({},Lee,i)},o);return u=t.reduce((c,d)=>ha(c,d),u),u.unstable_sxConfig=Ie({},Gm,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return dc({sx:d,theme:this})},u}function wte(e){return Object.keys(e).length===0}function G1(e=null){const t=ge.useContext(j1);return!t||wte(t)?e:t}const _te=V1();function Ym(e=_te){return G1(e)}function Tte({styles:e,themeId:t,defaultTheme:n={}}){const r=Ym(n),l=typeof e=="function"?e(t&&r[t]||r):e;return ke.jsx(Z0,{styles:l})}const kte=["sx"],Ste=e=>{var t,n;const r={systemProps:{},otherProps:{}},l=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Gm;return Object.keys(e).forEach(i=>{l[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Y1(e){const{sx:t}=e,n=Kt(e,kte),{systemProps:r,otherProps:l}=Ste(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...o)=>{const a=t(...o);return Fl(a)?Ie({},r,a):r}:i=Ie({},r,t),Ie({},l,{sx:i})}function ij(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(dc);return ge.forwardRef(function(s,u){const c=Ym(n),d=Y1(s),{className:f,component:p="div"}=d,m=Kt(d,Cte);return ke.jsx(i,Ie({as:p,ref:u,className:on(f,l?l(r):r),theme:t&&c[t]||c},m))})}const Pte=["variant"];function OA(e){return e.length===0}function lj(e){const{variant:t}=e,n=Kt(e,Pte);let r=t||"";return Object.keys(n).sort().forEach(l=>{l==="color"?r+=OA(r)?e[l]:Jt(e[l]):r+=`${OA(r)?l:Jt(l)}${Jt(e[l].toString())}`}),r}const Ote=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ate(e){return Object.keys(e).length===0}function Dte(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Ete=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Xv=e=>{const t={};return e&&e.forEach(n=>{const r=lj(n.props);t[r]=n.style}),t},Rte=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Xv(n)},Kv=(e,t,n)=>{const{ownerState:r={}}=e,l=[];return n&&n.forEach(i=>{let o=!0;Object.keys(i.props).forEach(a=>{r[a]!==i.props[a]&&e[a]!==i.props[a]&&(o=!1)}),o&&l.push(t[lj(i.props)])}),l},Lte=(e,t,n,r)=>{var l;const i=n==null||(l=n.components)==null||(l=l[r])==null?void 0:l.variants;return Kv(e,t,i)};function Ph(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ite=V1(),$te=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Q0({defaultTheme:e,theme:t,themeId:n}){return Ate(t)?e:t[n]||t}function Nte(e){return e?(t,n)=>n[e]:null}const AA=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const l=e(Ie({},t,{theme:Q0(Ie({},t,{defaultTheme:n,themeId:r}))}));let i;if(l&&l.variants&&(i=l.variants,delete l.variants),i){const o=Kv(t,Xv(i),i);return[l,...o]}return l};function sj(e={}){const{themeId:t,defaultTheme:n=Ite,rootShouldForwardProp:r=Ph,slotShouldForwardProp:l=Ph}=e,i=o=>dc(Ie({},o,{theme:Q0(Ie({},o,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(o,a={})=>{Dee(o,w=>w.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=Nte($te(u))}=a,p=Kt(a,Ote),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=d||!1;let b,v=Ph;u==="Root"||u==="root"?v=r:u?v=l:Dte(o)&&(v=void 0);const h=ej(o,Ie({shouldForwardProp:v,label:b},p)),y=(w,..._)=>{const x=_?_.map(C=>{if(typeof C=="function"&&C.__emotion_real!==C)return M=>AA({styledArg:C,props:M,defaultTheme:n,themeId:t});if(Fl(C)){let M=C,O;return C&&C.variants&&(O=C.variants,delete M.variants,M=D=>{let P=C;return Kv(D,Xv(O),O).forEach(I=>{P=ha(P,I)}),P}),M}return C}):[];let T=w;if(Fl(w)){let C;w&&w.variants&&(C=w.variants,delete T.variants,T=M=>{let O=w;return Kv(M,Xv(C),C).forEach(P=>{O=ha(O,P)}),O})}else typeof w=="function"&&w.__emotion_real!==w&&(T=C=>AA({styledArg:w,props:C,defaultTheme:n,themeId:t}));s&&f&&x.push(C=>{const M=Q0(Ie({},C,{defaultTheme:n,themeId:t})),O=Ete(s,M);if(O){const D={};return Object.entries(O).forEach(([P,E])=>{D[P]=typeof E=="function"?E(Ie({},C,{theme:M})):E}),f(C,D)}return null}),s&&!m&&x.push(C=>{const M=Q0(Ie({},C,{defaultTheme:n,themeId:t}));return Lte(C,Rte(s,M),M,s)}),g||x.push(i);const k=x.length-_.length;if(Array.isArray(w)&&k>0){const C=new Array(k).fill("");T=[...w,...C],T.raw=[...w.raw,...C]}const S=h(T,...x);return o.muiName&&(S.muiName=o.muiName),S};return h.withConfig&&(y.withConfig=h.withConfig),y}}const Fte=sj();function uj(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:jC(t.components[n].defaultProps,r)}function cj({props:e,name:t,defaultTheme:n,themeId:r}){let l=Ym(n);return r&&(l=l[r]||l),uj({theme:l,name:t,props:e})}function tM(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function dj(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,l)=>l<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function jte(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function xl(e){if(e.type)return e;if(e.charAt(0)==="#")return xl(dj(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(No(9,e));let r=e.substring(t+1,e.length-1),l;if(n==="color"){if(r=r.split(" "),l=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(l)===-1)throw new Error(No(10,l))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:l}}const zte=e=>{const t=xl(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")},uh=(e,t)=>{try{return zte(e)}catch{return e}};function Xm(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((l,i)=>i<3?parseInt(l,10):l):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Bte(e){if(e.indexOf("#")===0)return e;const{values:t}=xl(e);return`#${t.map((n,r)=>jte(r===3?Math.round(255*n):n)).join("")}`}function fj(e){e=xl(e);const{values:t}=e,n=t[0],r=t[1]/100,l=t[2]/100,i=r*Math.min(l,1-l),o=(u,c=(u+n/30)%12)=>l-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const s=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(a+="a",s.push(t[3])),Xm({type:a,values:s})}function Zv(e){e=xl(e);let t=e.type==="hsl"||e.type==="hsla"?xl(fj(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 pj(e,t){const n=Zv(e),r=Zv(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function rr(e,t){return e=xl(e),t=tM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Xm(e)}function t0(e,t,n){try{return rr(e,t)}catch{return e}}function wl(e,t){if(e=xl(e),t=tM(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Xm(e)}function Er(e,t,n){try{return wl(e,t)}catch{return e}}function _l(e,t){if(e=xl(e),t=tM(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Xm(e)}function Rr(e,t,n){try{return _l(e,t)}catch{return e}}function Wte(e,t=.15){return Zv(e)>.5?wl(e,t):_l(e,t)}function ch(e,t,n){try{return ch(e,t)}catch{return e}}const hj=ge.createContext(null);function nM(){return ge.useContext(hj)}const qte=typeof Symbol=="function"&&Symbol.for,Ute=qte?Symbol.for("mui.nested"):"__THEME_NESTED__";function Hte(e,t){return typeof t=="function"?t(e):Ie({},e,t)}function Vte(e){const{children:t,theme:n}=e,r=nM(),l=ge.useMemo(()=>{const i=r===null?n:Hte(r,n);return i!=null&&(i[Ute]=r!==null),i},[n,r]);return ke.jsx(hj.Provider,{value:l,children:t})}const DA={};function EA(e,t,n,r=!1){return ge.useMemo(()=>{const l=e&&t[e]||t;if(typeof n=="function"){const i=n(l),o=e?Ie({},t,{[e]:i}):i;return r?()=>o:o}return e?Ie({},t,{[e]:n}):Ie({},t,n)},[e,t,n,r])}function mj(e){const{children:t,theme:n,themeId:r}=e,l=G1(DA),i=nM()||DA,o=EA(r,l,n),a=EA(r,i,n,!0);return ke.jsx(Vte,{theme:a,children:ke.jsx(j1.Provider,{value:o,children:t})})}const rM="mode",aM="color-scheme",gj="data-color-scheme";function Gte(e){const{defaultMode:t="light",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:l=rM,colorSchemeStorageKey:i=aM,attribute:o=gj,colorSchemeNode:a="document.documentElement"}=e||{};return ke.jsx("script",{dangerouslySetInnerHTML:{__html:`(function() { try { var mode = localStorage.getItem('${l}') || '${t}'; var colorScheme = ''; @@ -74,9 +74,9 @@ try { if (colorScheme) { ${a}.setAttribute('${o}', colorScheme); } -} catch(e){}})();`}},"mui-color-scheme-init")}function RA(e){if(typeof window<"u"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function yj(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function Zte(e){return yj(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function gw(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function Qte(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:l=[],modeStorageKey:i=rM,colorSchemeStorageKey:o=aM,storageWindow:a=typeof window>"u"?void 0:window}=e,s=l.join(","),[u,c]=ge.useState(()=>{const b=gw(i,t),v=gw(`${o}-light`,n),h=gw(`${o}-dark`,r);return{mode:b,systemMode:RA(b),lightColorScheme:v,darkColorScheme:h}}),d=Zte(u),f=ge.useCallback(b=>{c(v=>{if(b===v.mode)return v;const h=b||t;try{localStorage.setItem(i,h)}catch{}return Ie({},v,{mode:h,systemMode:RA(h)})})},[i,t]),p=ge.useCallback(b=>{b?typeof b=="string"?b&&!s.includes(b)?console.error(`\`${b}\` does not exist in \`theme.colorSchemes\`.`):c(v=>{const h=Ie({},v);return yj(v,y=>{try{localStorage.setItem(`${o}-${y}`,b)}catch{}y==="light"&&(h.lightColorScheme=b),y==="dark"&&(h.darkColorScheme=b)}),h}):c(v=>{const h=Ie({},v),y=b.light===null?n:b.light,w=b.dark===null?r:b.dark;if(y)if(!s.includes(y))console.error(`\`${y}\` does not exist in \`theme.colorSchemes\`.`);else{h.lightColorScheme=y;try{localStorage.setItem(`${o}-light`,y)}catch{}}if(w)if(!s.includes(w))console.error(`\`${w}\` does not exist in \`theme.colorSchemes\`.`);else{h.darkColorScheme=w;try{localStorage.setItem(`${o}-dark`,w)}catch{}}return h}):c(v=>{try{localStorage.setItem(`${o}-light`,n),localStorage.setItem(`${o}-dark`,r)}catch{}return Ie({},v,{lightColorScheme:n,darkColorScheme:r})})},[s,o,n,r]),m=ge.useCallback(b=>{u.mode==="system"&&c(v=>Ie({},v,{systemMode:b!=null&&b.matches?"dark":"light"}))},[u.mode]),g=ge.useRef(m);return g.current=m,ge.useEffect(()=>{const b=(...h)=>g.current(...h),v=window.matchMedia("(prefers-color-scheme: dark)");return v.addListener(b),b(v),()=>v.removeListener(b)},[]),ge.useEffect(()=>{const b=v=>{const h=v.newValue;typeof v.key=="string"&&v.key.startsWith(o)&&(!h||s.match(h))&&(v.key.endsWith("light")&&p({light:h}),v.key.endsWith("dark")&&p({dark:h})),v.key===i&&(!h||["light","dark","system"].includes(h))&&f(h||t)};if(a)return a.addEventListener("storage",b),()=>a.removeEventListener("storage",b)},[p,f,i,o,s,t,a]),Ie({},u,{colorScheme:d,setMode:f,setColorScheme:p})}const Jte=["colorSchemes","components","generateCssVars","cssVarPrefix"],ene="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function tne(e){const{themeId:t,theme:n={},attribute:r=vj,modeStorageKey:l=rM,colorSchemeStorageKey:i=aM,defaultMode:o="light",defaultColorScheme:a,disableTransitionOnChange:s=!1,resolveTheme:u,excludeVariablesFromRoot:c}=e;(!n.colorSchemes||typeof a=="string"&&!n.colorSchemes[a]||typeof a=="object"&&!n.colorSchemes[a==null?void 0:a.light]||typeof a=="object"&&!n.colorSchemes[a==null?void 0:a.dark])&&console.error(`MUI: \`${a}\` does not exist in \`theme.colorSchemes\`.`);const d=ge.createContext(void 0),f=()=>{const v=ge.useContext(d);if(!v)throw new Error(No(19));return v};function p({children:v,theme:h=n,modeStorageKey:y=l,colorSchemeStorageKey:w=i,attribute:_=r,defaultMode:x=o,defaultColorScheme:T=a,disableTransitionOnChange:k=s,storageWindow:S=typeof window>"u"?void 0:window,documentNode:C=typeof document>"u"?void 0:document,colorSchemeNode:M=typeof document>"u"?void 0:document.documentElement,colorSchemeSelector:O=":root",disableNestedContext:D=!1,disableStyleSheetGeneration:P=!1}){const E=ge.useRef(!1),I=nM(),A=ge.useContext(d),F=!!A&&!D,j=h[t],z=j||h,{colorSchemes:B={},components:N={},generateCssVars:R=()=>({vars:{},css:{}}),cssVarPrefix:q}=z,Y=Kt(z,Jte),L=Object.keys(B),W=typeof T=="string"?T:T.light,U=typeof T=="string"?T:T.dark,{mode:V,setMode:te,systemMode:ee,lightColorScheme:H,darkColorScheme:Z,colorScheme:G,setColorScheme:X}=Qte({supportedColorSchemes:L,defaultLightColorScheme:W,defaultDarkColorScheme:U,modeStorageKey:y,colorSchemeStorageKey:w,defaultMode:x,storageWindow:S});let Q=V,re=G;F&&(Q=A.mode,re=A.colorScheme);const ae=Q||(x==="system"?o:x),ie=re||(ae==="dark"?U:W),{css:se,vars:he}=R(),Se=Ie({},Y,{components:N,colorSchemes:B,cssVarPrefix:q,vars:he,getColorSchemeSelector:K=>`[${_}="${K}"] &`}),Oe={},Pe={};Object.entries(B).forEach(([K,ne])=>{const{css:de,vars:_e}=R(K);Se.vars=ha(Se.vars,_e),K===ie&&(Object.keys(ne).forEach(pe=>{ne[pe]&&typeof ne[pe]=="object"?Se[pe]=Ie({},Se[pe],ne[pe]):Se[pe]=ne[pe]}),Se.palette&&(Se.palette.colorScheme=K));const ue=typeof T=="string"?T:x==="dark"?T.dark:T.light;if(K===ue){if(c){const pe={};c(q).forEach(xe=>{pe[xe]=de[xe],delete de[xe]}),Oe[`[${_}="${K}"]`]=pe}Oe[`${O}, [${_}="${K}"]`]=de}else Pe[`${O===":root"?"":O}[${_}="${K}"]`]=de}),Se.vars=ha(Se.vars,he),ge.useEffect(()=>{re&&M&&M.setAttribute(_,re)},[re,_,M]),ge.useEffect(()=>{let K;if(k&&E.current&&C){const ne=C.createElement("style");ne.appendChild(C.createTextNode(ene)),C.head.appendChild(ne),window.getComputedStyle(C.body),K=setTimeout(()=>{C.head.removeChild(ne)},1)}return()=>{clearTimeout(K)}},[re,k,C]),ge.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);const Me=ge.useMemo(()=>({mode:Q,systemMode:ee,setMode:te,lightColorScheme:H,darkColorScheme:Z,colorScheme:re,setColorScheme:X,allColorSchemes:L}),[L,re,Z,H,Q,X,te,ee]);let ce=!0;(P||F&&(I==null?void 0:I.cssVarPrefix)===q)&&(ce=!1);const we=ke.jsxs(ge.Fragment,{children:[ce&&ke.jsxs(ge.Fragment,{children:[ke.jsx(Z0,{styles:{[O]:se}}),ke.jsx(Z0,{styles:Oe}),ke.jsx(Z0,{styles:Pe})]}),ke.jsx(gj,{themeId:j?t:void 0,theme:u?u(Se):Se,children:v})]});return F?we:ke.jsx(d.Provider,{value:Me,children:we})}const m=typeof a=="string"?a:a.light,g=typeof a=="string"?a:a.dark;return{CssVarsProvider:p,useColorScheme:f,getInitColorSchemeScript:v=>Kte(Ie({attribute:r,colorSchemeStorageKey:i,defaultMode:o,defaultLightColorScheme:m,defaultDarkColorScheme:g,modeStorageKey:l},v))}}function nne(e=""){function t(...r){if(!r.length)return"";const l=r[0];return typeof l=="string"&&!l.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${l}${t(...r.slice(1))})`:`, ${l}`}return(r,...l)=>`var(--${e?`${e}-`:""}${r}${t(...l)})`}const LA=(e,t,n,r=[])=>{let l=e;t.forEach((i,o)=>{o===t.length-1?Array.isArray(l)?l[Number(i)]=n:l&&typeof l=="object"&&(l[i]=n):l&&typeof l=="object"&&(l[i]||(l[i]=r.includes(i)?[]:{}),l=l[i])})},rne=(e,t,n)=>{function r(l,i=[],o=[]){Object.entries(l).forEach(([a,s])=>{(!n||n&&!n([...i,a]))&&s!=null&&(typeof s=="object"&&Object.keys(s).length>0?r(s,[...i,a],Array.isArray(s)?[...o,a]:o):t([...i,a],s,o))})}r(e)},ane=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function vw(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},l={},i={},o={};return rne(e,(a,s,u)=>{if((typeof s=="string"||typeof s=="number")&&(!r||!r(a,s))){const c=`--${n?`${n}-`:""}${a.join("-")}`;Object.assign(l,{[c]:ane(a,s)}),LA(i,a,`var(${c})`,u),LA(o,a,`var(${c}, ${s})`,u)}},a=>a[0]==="vars"),{css:l,vars:i,varsWithDefaults:o}}const one=["colorSchemes","components"],ine=["light"];function lne(e,t){const{colorSchemes:n={}}=e,r=Kt(e,one),{vars:l,css:i,varsWithDefaults:o}=vw(r,t);let a=o;const s={},{light:u}=n,c=Kt(n,ine);if(Object.entries(c||{}).forEach(([f,p])=>{const{vars:m,css:g,varsWithDefaults:b}=vw(p,t);a=ha(a,b),s[f]={css:g,vars:m}}),u){const{css:f,vars:p,varsWithDefaults:m}=vw(u,t);a=ha(a,m),s.light={css:f,vars:p}}return{vars:a,generateCssVars:f=>f?{css:Ie({},s[f].css),vars:s[f].vars}:{css:Ie({},i),vars:l}}}const sne=["component","direction","spacing","divider","children","className","useFlexGap"],une=G1(),cne=Bte("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function dne(e){return dj({props:e,name:"MuiStack",defaultTheme:une})}function fne(e,t){const n=ge.Children.toArray(e).filter(Boolean);return n.reduce((r,l,i)=>(r.push(l),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],hne=({ownerState:e,theme:t})=>{let n=Ie({display:"flex",flexDirection:"column"},jo({theme:t},Bu({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=JC(t),l=Object.keys(t.breakpoints.values).reduce((s,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(s[u]=!0),s),{}),i=Bu({values:e.direction,base:l}),o=Bu({values:e.spacing,base:l});typeof i=="object"&&Object.keys(i).forEach((s,u,c)=>{if(!i[s]){const f=u>0?i[c[u-1]]:"column";i[s]=f}}),n=ha(n,jo({theme:t},o,(s,u)=>e.useFlexGap?{gap:Yu(r,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${pne(u?i[u]:e.direction)}`]:Yu(r,s)}}))}return n=Fee(t.breakpoints,n),n};function mne(e={}){const{createStyledComponent:t=cne,useThemeProps:n=dne,componentName:r="MuiStack"}=e,l=()=>vn({root:["root"]},s=>yn(r,s),{}),i=t(hne);return ge.forwardRef(function(s,u){const c=n(s),d=X1(c),{component:f="div",direction:p="column",spacing:m=0,divider:g,children:b,className:v,useFlexGap:h=!1}=d,y=Kt(d,sne),w={direction:p,spacing:m,useFlexGap:h},_=l();return ke.jsx(i,Ie({as:f,ownerState:w,ref:u,className:on(_.root,v)},y,{children:g?fne(b,g):b}))})}const gne=["defaultProps","mixins","overrides","palette","props","styleOverrides"],vne=["type","mode"];function yne(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:l={},props:i={},styleOverrides:o={}}=e,a=Kt(e,gne),s=Ie({},a,{components:{}});Object.keys(t).forEach(g=>{const b=s.components[g]||{};b.defaultProps=t[g],s.components[g]=b}),Object.keys(i).forEach(g=>{const b=s.components[g]||{};b.defaultProps=i[g],s.components[g]=b}),Object.keys(o).forEach(g=>{const b=s.components[g]||{};b.styleOverrides=o[g],s.components[g]=b}),Object.keys(r).forEach(g=>{const b=s.components[g]||{};b.styleOverrides=r[g],s.components[g]=b}),s.spacing=ij(e.spacing);const u=nj(e.breakpoints||{}),c=s.spacing;s.mixins=Ie({gutters:(g={})=>Ie({paddingLeft:c(2),paddingRight:c(2)},g,{[u.up("sm")]:Ie({paddingLeft:c(3),paddingRight:c(3)},g[u.up("sm")])})},n);const{type:d,mode:f}=l,p=Kt(l,vne),m=f||d||"light";return s.palette=Ie({text:{hint:m==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:m,type:m},p),s}function bne(e,t){return Ie({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const xne=["mode","contrastThreshold","tonalOffset"],IA={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:am.white,default:am.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}},yw={text:{primary:am.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:am.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}};function $A(e,t,n,r){const l=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=_l(e.main,l):t==="dark"&&(e.dark=wl(e.main,i)))}function wne(e="light"){return e==="dark"?{main:Lc[200],light:Lc[50],dark:Lc[400]}:{main:Lc[700],light:Lc[400],dark:Lc[800]}}function _ne(e="light"){return e==="dark"?{main:Rc[200],light:Rc[50],dark:Rc[400]}:{main:Rc[500],light:Rc[300],dark:Rc[700]}}function Tne(e="light"){return e==="dark"?{main:Ec[500],light:Ec[300],dark:Ec[700]}:{main:Ec[700],light:Ec[400],dark:Ec[800]}}function kne(e="light"){return e==="dark"?{main:Ic[400],light:Ic[300],dark:Ic[700]}:{main:Ic[700],light:Ic[500],dark:Ic[900]}}function Sne(e="light"){return e==="dark"?{main:$c[400],light:$c[300],dark:$c[700]}:{main:$c[800],light:$c[500],dark:$c[900]}}function Cne(e="light"){return e==="dark"?{main:Xf[400],light:Xf[300],dark:Xf[700]}:{main:"#ed6c02",light:Xf[500],dark:Xf[900]}}function Mne(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,l=Kt(e,xne),i=e.primary||wne(t),o=e.secondary||_ne(t),a=e.error||Tne(t),s=e.info||kne(t),u=e.success||Sne(t),c=e.warning||Cne(t);function d(g){return hj(g,yw.text.primary)>=n?yw.text.primary:IA.text.primary}const f=({color:g,name:b,mainShade:v=500,lightShade:h=300,darkShade:y=700})=>{if(g=Ie({},g),!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(No(11,b?` (${b})`:"",v));if(typeof g.main!="string")throw new Error(No(12,b?` (${b})`:"",JSON.stringify(g.main)));return $A(g,"light",h,r),$A(g,"dark",y,r),g.contrastText||(g.contrastText=d(g.main)),g},p={dark:yw,light:IA};return ha(Ie({common:Ie({},am),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:Rl,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),l)}const Pne=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function One(e){return Math.round(e*1e5)/1e5}const NA={textTransform:"uppercase"},FA='"Roboto", "Helvetica", "Arial", sans-serif';function oM(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=FA,fontSize:l=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=Kt(n,Pne),p=l/14,m=d||(v=>`${v/u*p}rem`),g=(v,h,y,w,_)=>Ie({fontFamily:r,fontWeight:v,fontSize:m(h),lineHeight:y},r===FA?{letterSpacing:`${One(w/h)}em`}:{},_,c),b={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(o,48,1.167,0),h4:g(o,34,1.235,.25),h5:g(o,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(o,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(o,16,1.5,.15),body2:g(o,14,1.43,.15),button:g(a,14,1.75,.4,NA),caption:g(o,12,1.66,.4),overline:g(o,12,2.66,1,NA),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ha(Ie({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:l,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s},b),f,{clone:!1})}const Ane=.2,Dne=.14,Ene=.12;function Kr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ane})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Dne})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ene})`].join(",")}const Rne=["none",Kr(0,2,1,-1,0,1,1,0,0,1,3,0),Kr(0,3,1,-2,0,2,2,0,0,1,5,0),Kr(0,3,3,-2,0,3,4,0,0,1,8,0),Kr(0,2,4,-1,0,4,5,0,0,1,10,0),Kr(0,3,5,-1,0,5,8,0,0,1,14,0),Kr(0,3,5,-1,0,6,10,0,0,1,18,0),Kr(0,4,5,-2,0,7,10,1,0,2,16,1),Kr(0,5,5,-3,0,8,10,1,0,3,14,2),Kr(0,5,6,-3,0,9,12,1,0,3,16,2),Kr(0,6,6,-3,0,10,14,1,0,4,18,3),Kr(0,6,7,-4,0,11,15,1,0,4,20,3),Kr(0,7,8,-4,0,12,17,2,0,5,22,4),Kr(0,7,8,-4,0,13,19,2,0,5,24,4),Kr(0,7,9,-4,0,14,21,2,0,5,26,4),Kr(0,8,9,-5,0,15,22,2,0,6,28,5),Kr(0,8,10,-5,0,16,24,2,0,6,30,5),Kr(0,8,11,-5,0,17,26,2,0,6,32,5),Kr(0,9,11,-5,0,18,28,2,0,7,34,6),Kr(0,9,12,-6,0,19,29,2,0,7,36,6),Kr(0,10,13,-6,0,20,31,3,0,8,38,7),Kr(0,10,13,-6,0,21,33,3,0,8,40,7),Kr(0,10,14,-6,0,22,35,3,0,8,42,7),Kr(0,11,14,-7,0,23,36,3,0,9,44,8),Kr(0,11,15,-7,0,24,38,3,0,9,46,8)],Lne=["duration","easing","delay"],bj={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)"},iM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function jA(e){return`${Math.round(e)}ms`}function Ine(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function $ne(e){const t=Ie({},bj,e.easing),n=Ie({},iM,e.duration);return Ie({getAutoHeightDuration:Ine,create:(l=["all"],i={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:s=0}=i;return Kt(i,Lne),(Array.isArray(l)?l:[l]).map(u=>`${u} ${typeof o=="string"?o:jA(o)} ${a} ${typeof s=="string"?s:jA(s)}`).join(",")}},e,{easing:t,duration:n})}const Nne={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Fne=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function es(e={},...t){const{mixins:n={},palette:r={},transitions:l={},typography:i={}}=e,o=Kt(e,Fne);if(e.vars)throw new Error(No(18));const a=Mne(r),s=G1(e);let u=ha(s,{mixins:bne(s.breakpoints,n),palette:a,shadows:Rne.slice(),typography:oM(a,i),transitions:$ne(l),zIndex:Ie({},Nne)});return u=ha(u,o),u=t.reduce((c,d)=>ha(c,d),u),u.unstable_sxConfig=Ie({},Ym,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return fc({sx:d,theme:this})},u}function jne(...e){return es(...e)}function zne(e,...t){return es(ha({unstable_strictMode:!0},e),...t)}let zA=!1;function Bne(e){return zA||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(` -`)),zA=!0),e}function BA(e){return String(parseFloat(e)).length===String(e).length}function lM(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function $l(e){return parseFloat(e)}function Wne(e){return(t,n)=>{const r=lM(t);if(r===n)return t;let l=$l(t);r!=="px"&&(r==="em"||r==="rem")&&(l=$l(t)*$l(e));let i=l;if(n!=="px")if(n==="em")i=l/$l(e);else if(n==="rem")i=l/$l(e);else return t;return parseFloat(i.toFixed(5))+n}}function qne({size:e,grid:t}){const n=e-e%t,r=n+t;return e-n{let u=t+a*s;i!==null&&(u=i(u)),o[`@media (min-width:${s}px)`]={[e]:`${Math.round(u*1e4)/1e4}${r}`}}),o}function Vne(e,t={}){const{breakpoints:n=["sm","md","lg"],disableAlign:r=!1,factor:l=2,variants:i=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,o=Ie({},e);o.typography=Ie({},o.typography);const a=o.typography,s=Wne(a.htmlFontSize),u=n.map(c=>o.breakpoints.values[c]);return i.forEach(c=>{const d=a[c],f=parseFloat(s(d.fontSize,"rem"));if(f<=1)return;const p=f,m=1+(p-1)/l;let{lineHeight:g}=d;if(!BA(g)&&!r)throw new Error(No(6));BA(g)||(g=parseFloat(s(g,"rem"))/parseFloat(f));let b=null;r||(b=v=>qne({size:v,grid:Une({pixels:4,lineHeight:g,htmlFontSize:a.htmlFontSize})})),a[c]=Ie({},d,Hne({cssProperty:"fontSize",min:m,max:p,unit:"rem",breakpoints:u,transform:b}))}),o}const K1=es();function po(){const e=Xm(K1);return e[Ql]||e}function pn({props:e,name:t}){return dj({props:e,name:t,defaultTheme:K1,themeId:Ql})}const Vi=e=>Oh(e)&&e!=="classes",Gne=Oh,Et=uj({themeId:Ql,defaultTheme:K1,rootShouldForwardProp:Vi}),Yne=["theme"];function xj(e){let{theme:t}=e,n=Kt(e,Yne);const r=t[Ql];return ke.jsx(gj,Ie({},n,{themeId:r?Ql:void 0,theme:r||t}))}function Xne(){throw new Error(No(14))}function Kne(){throw new Error(No(15))}function Zne(){throw new Error(No(16))}function wj(e){var t;return!!e[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Qne=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Qv=Qne,Jne=["colorSchemes","cssVarPrefix","shouldSkipGeneratingVar"],ere=["palette"],tre=[...Array(25)].map((e,t)=>{if(t===0)return;const n=Qv(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function nre(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Qt(e,t,n){!e[t]&&n&&(e[t]=n)}function bs(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ch(e[t],`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, e.g. "12 12 12") or undefined if you want to remove the channel token.`))}const nl=e=>{try{return e()}catch{}},rre=(e="mui")=>nne(e);function _j(e={},...t){var n,r,l,i,o,a;const{colorSchemes:s={},cssVarPrefix:u="mui",shouldSkipGeneratingVar:c=wj}=e,d=Kt(e,Jne),f=rre(u),p=es(Ie({},d,s.light&&{palette:(n=s.light)==null?void 0:n.palette})),{palette:m}=p,g=Kt(p,ere),{palette:b}=es({palette:Ie({mode:"dark"},(r=s.dark)==null?void 0:r.palette)});let v=Ie({},g,{cssVarPrefix:u,getCssVar:f,colorSchemes:Ie({},s,{light:Ie({},s.light,{palette:m,opacity:Ie({inputPlaceholder:.42,inputUnderline:.42,switchTrackDisabled:.12,switchTrack:.38},(l=s.light)==null?void 0:l.opacity),overlays:((i=s.light)==null?void 0:i.overlays)||[]}),dark:Ie({},s.dark,{palette:b,opacity:Ie({inputPlaceholder:.5,inputUnderline:.7,switchTrackDisabled:.2,switchTrack:.3},(o=s.dark)==null?void 0:o.opacity),overlays:((a=s.dark)==null?void 0:a.overlays)||tre})})});Object.keys(v.colorSchemes).forEach(_=>{const x=v.colorSchemes[_].palette,T=k=>{const S=k.split("-"),C=S[1],M=S[2];return f(k,x[C][M])};if(_==="light"?(Qt(x.common,"background","#fff"),Qt(x.common,"onBackground","#000")):(Qt(x.common,"background","#000"),Qt(x.common,"onBackground","#fff")),nre(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_==="light"){Qt(x.Alert,"errorColor",Er(x.error.light,.6)),Qt(x.Alert,"infoColor",Er(x.info.light,.6)),Qt(x.Alert,"successColor",Er(x.success.light,.6)),Qt(x.Alert,"warningColor",Er(x.warning.light,.6)),Qt(x.Alert,"errorFilledBg",T("palette-error-main")),Qt(x.Alert,"infoFilledBg",T("palette-info-main")),Qt(x.Alert,"successFilledBg",T("palette-success-main")),Qt(x.Alert,"warningFilledBg",T("palette-warning-main")),Qt(x.Alert,"errorFilledColor",nl(()=>m.getContrastText(x.error.main))),Qt(x.Alert,"infoFilledColor",nl(()=>m.getContrastText(x.info.main))),Qt(x.Alert,"successFilledColor",nl(()=>m.getContrastText(x.success.main))),Qt(x.Alert,"warningFilledColor",nl(()=>m.getContrastText(x.warning.main))),Qt(x.Alert,"errorStandardBg",Rr(x.error.light,.9)),Qt(x.Alert,"infoStandardBg",Rr(x.info.light,.9)),Qt(x.Alert,"successStandardBg",Rr(x.success.light,.9)),Qt(x.Alert,"warningStandardBg",Rr(x.warning.light,.9)),Qt(x.Alert,"errorIconColor",T("palette-error-main")),Qt(x.Alert,"infoIconColor",T("palette-info-main")),Qt(x.Alert,"successIconColor",T("palette-success-main")),Qt(x.Alert,"warningIconColor",T("palette-warning-main")),Qt(x.AppBar,"defaultBg",T("palette-grey-100")),Qt(x.Avatar,"defaultBg",T("palette-grey-400")),Qt(x.Button,"inheritContainedBg",T("palette-grey-300")),Qt(x.Button,"inheritContainedHoverBg",T("palette-grey-A100")),Qt(x.Chip,"defaultBorder",T("palette-grey-400")),Qt(x.Chip,"defaultAvatarColor",T("palette-grey-700")),Qt(x.Chip,"defaultIconColor",T("palette-grey-700")),Qt(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Qt(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Qt(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Qt(x.LinearProgress,"primaryBg",Rr(x.primary.main,.62)),Qt(x.LinearProgress,"secondaryBg",Rr(x.secondary.main,.62)),Qt(x.LinearProgress,"errorBg",Rr(x.error.main,.62)),Qt(x.LinearProgress,"infoBg",Rr(x.info.main,.62)),Qt(x.LinearProgress,"successBg",Rr(x.success.main,.62)),Qt(x.LinearProgress,"warningBg",Rr(x.warning.main,.62)),Qt(x.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.11)`),Qt(x.Slider,"primaryTrack",Rr(x.primary.main,.62)),Qt(x.Slider,"secondaryTrack",Rr(x.secondary.main,.62)),Qt(x.Slider,"errorTrack",Rr(x.error.main,.62)),Qt(x.Slider,"infoTrack",Rr(x.info.main,.62)),Qt(x.Slider,"successTrack",Rr(x.success.main,.62)),Qt(x.Slider,"warningTrack",Rr(x.warning.main,.62));const k=dh(x.background.default,.8);Qt(x.SnackbarContent,"bg",k),Qt(x.SnackbarContent,"color",nl(()=>m.getContrastText(k))),Qt(x.SpeedDialAction,"fabHoverBg",dh(x.background.paper,.15)),Qt(x.StepConnector,"border",T("palette-grey-400")),Qt(x.StepContent,"border",T("palette-grey-400")),Qt(x.Switch,"defaultColor",T("palette-common-white")),Qt(x.Switch,"defaultDisabledColor",T("palette-grey-100")),Qt(x.Switch,"primaryDisabledColor",Rr(x.primary.main,.62)),Qt(x.Switch,"secondaryDisabledColor",Rr(x.secondary.main,.62)),Qt(x.Switch,"errorDisabledColor",Rr(x.error.main,.62)),Qt(x.Switch,"infoDisabledColor",Rr(x.info.main,.62)),Qt(x.Switch,"successDisabledColor",Rr(x.success.main,.62)),Qt(x.Switch,"warningDisabledColor",Rr(x.warning.main,.62)),Qt(x.TableCell,"border",Rr(t0(x.divider,1),.88)),Qt(x.Tooltip,"bg",t0(x.grey[700],.92))}else{Qt(x.Alert,"errorColor",Rr(x.error.light,.6)),Qt(x.Alert,"infoColor",Rr(x.info.light,.6)),Qt(x.Alert,"successColor",Rr(x.success.light,.6)),Qt(x.Alert,"warningColor",Rr(x.warning.light,.6)),Qt(x.Alert,"errorFilledBg",T("palette-error-dark")),Qt(x.Alert,"infoFilledBg",T("palette-info-dark")),Qt(x.Alert,"successFilledBg",T("palette-success-dark")),Qt(x.Alert,"warningFilledBg",T("palette-warning-dark")),Qt(x.Alert,"errorFilledColor",nl(()=>b.getContrastText(x.error.dark))),Qt(x.Alert,"infoFilledColor",nl(()=>b.getContrastText(x.info.dark))),Qt(x.Alert,"successFilledColor",nl(()=>b.getContrastText(x.success.dark))),Qt(x.Alert,"warningFilledColor",nl(()=>b.getContrastText(x.warning.dark))),Qt(x.Alert,"errorStandardBg",Er(x.error.light,.9)),Qt(x.Alert,"infoStandardBg",Er(x.info.light,.9)),Qt(x.Alert,"successStandardBg",Er(x.success.light,.9)),Qt(x.Alert,"warningStandardBg",Er(x.warning.light,.9)),Qt(x.Alert,"errorIconColor",T("palette-error-main")),Qt(x.Alert,"infoIconColor",T("palette-info-main")),Qt(x.Alert,"successIconColor",T("palette-success-main")),Qt(x.Alert,"warningIconColor",T("palette-warning-main")),Qt(x.AppBar,"defaultBg",T("palette-grey-900")),Qt(x.AppBar,"darkBg",T("palette-background-paper")),Qt(x.AppBar,"darkColor",T("palette-text-primary")),Qt(x.Avatar,"defaultBg",T("palette-grey-600")),Qt(x.Button,"inheritContainedBg",T("palette-grey-800")),Qt(x.Button,"inheritContainedHoverBg",T("palette-grey-700")),Qt(x.Chip,"defaultBorder",T("palette-grey-700")),Qt(x.Chip,"defaultAvatarColor",T("palette-grey-300")),Qt(x.Chip,"defaultIconColor",T("palette-grey-300")),Qt(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Qt(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Qt(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Qt(x.LinearProgress,"primaryBg",Er(x.primary.main,.5)),Qt(x.LinearProgress,"secondaryBg",Er(x.secondary.main,.5)),Qt(x.LinearProgress,"errorBg",Er(x.error.main,.5)),Qt(x.LinearProgress,"infoBg",Er(x.info.main,.5)),Qt(x.LinearProgress,"successBg",Er(x.success.main,.5)),Qt(x.LinearProgress,"warningBg",Er(x.warning.main,.5)),Qt(x.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.13)`),Qt(x.Slider,"primaryTrack",Er(x.primary.main,.5)),Qt(x.Slider,"secondaryTrack",Er(x.secondary.main,.5)),Qt(x.Slider,"errorTrack",Er(x.error.main,.5)),Qt(x.Slider,"infoTrack",Er(x.info.main,.5)),Qt(x.Slider,"successTrack",Er(x.success.main,.5)),Qt(x.Slider,"warningTrack",Er(x.warning.main,.5));const k=dh(x.background.default,.98);Qt(x.SnackbarContent,"bg",k),Qt(x.SnackbarContent,"color",nl(()=>b.getContrastText(k))),Qt(x.SpeedDialAction,"fabHoverBg",dh(x.background.paper,.15)),Qt(x.StepConnector,"border",T("palette-grey-600")),Qt(x.StepContent,"border",T("palette-grey-600")),Qt(x.Switch,"defaultColor",T("palette-grey-300")),Qt(x.Switch,"defaultDisabledColor",T("palette-grey-600")),Qt(x.Switch,"primaryDisabledColor",Er(x.primary.main,.55)),Qt(x.Switch,"secondaryDisabledColor",Er(x.secondary.main,.55)),Qt(x.Switch,"errorDisabledColor",Er(x.error.main,.55)),Qt(x.Switch,"infoDisabledColor",Er(x.info.main,.55)),Qt(x.Switch,"successDisabledColor",Er(x.success.main,.55)),Qt(x.Switch,"warningDisabledColor",Er(x.warning.main,.55)),Qt(x.TableCell,"border",Er(t0(x.divider,1),.68)),Qt(x.Tooltip,"bg",t0(x.grey[700],.92))}bs(x.background,"default"),bs(x.common,"background"),bs(x.common,"onBackground"),bs(x,"divider"),Object.keys(x).forEach(k=>{const S=x[k];S&&typeof S=="object"&&(S.main&&Qt(x[k],"mainChannel",ch(S.main)),S.light&&Qt(x[k],"lightChannel",ch(S.light)),S.dark&&Qt(x[k],"darkChannel",ch(S.dark)),S.contrastText&&Qt(x[k],"contrastTextChannel",ch(S.contrastText)),k==="text"&&(bs(x[k],"primary"),bs(x[k],"secondary")),k==="action"&&(S.active&&bs(x[k],"active"),S.selected&&bs(x[k],"selected")))})}),v=t.reduce((_,x)=>ha(_,x),v);const h={prefix:u,shouldSkipGeneratingVar:c},{vars:y,generateCssVars:w}=lne(v,h);return v.vars=y,v.generateCssVars=w,v.shouldSkipGeneratingVar=c,v.unstable_sxConfig=Ie({},Ym,d==null?void 0:d.unstable_sxConfig),v.unstable_sx=function(x){return fc({sx:x,theme:this})},v}const are=e=>[...[...Array(24)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n+1}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Tj=are,ore=_j(),{CssVarsProvider:ire,useColorScheme:lre,getInitColorSchemeScript:sre}=tne({themeId:Ql,theme:ore,attribute:"data-mui-color-scheme",modeStorageKey:"mui-mode",colorSchemeStorageKey:"mui-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{const t=Ie({},e,{typography:oM(e.palette,e.typography)});return t.unstable_sx=function(r){return fc({sx:r,theme:this})},t},excludeVariablesFromRoot:Tj});function ure(){throw new Error(No(20))}const cre=Object.freeze(Object.defineProperty({__proto__:null,Experimental_CssVarsProvider:ire,StyledEngineProvider:Eee,THEME_ID:Ql,ThemeProvider:xj,adaptV4Theme:yne,alpha:rr,createMuiTheme:jne,createStyles:Bne,createTheme:es,css:Jl,darken:wl,decomposeColor:xl,duration:iM,easing:bj,emphasize:Hte,experimentalStyled:Et,experimental_extendTheme:_j,experimental_sx:ure,getContrastRatio:hj,getInitColorSchemeScript:sre,getLuminance:Zv,getOverlayAlpha:Qv,hexToRgb:fj,hslToRgb:pj,keyframes:Hi,lighten:_l,makeStyles:Xne,private_createTypography:oM,private_excludeVariablesFromRoot:Tj,recomposeColor:Km,responsiveFontSizes:Vne,rgbToHex:Ute,shouldSkipGeneratingVar:wj,styled:Et,unstable_createMuiStrictModeTheme:zne,unstable_getUnit:lM,unstable_toUnitless:$l,useColorScheme:lre,useTheme:po,useThemeProps:pn,withStyles:Kne,withTheme:Zne},Symbol.toStringTag,{value:"Module"}));function dre(e){return yn("MuiSvgIcon",e)}hn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const fre=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],pre=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${Jt(t)}`,`fontSize${Jt(n)}`]};return vn(l,dre,r)},hre=Et("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Jt(n.color)}`],t[`fontSize${Jt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,l,i,o,a,s,u,c,d,f,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(l=e.transitions)==null||(l=l.duration)==null?void 0:l.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(o=i.pxToRem)==null?void 0:o.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),U3=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiSvgIcon"}),{children:l,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,p=Kt(r,fre),m=ge.isValidElement(l)&&l.type==="svg",g=Ie({},r,{color:o,component:a,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:m}),b={};c||(b.viewBox=f);const v=pre(g);return ke.jsxs(hre,Ie({as:a,className:on(v.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},b,p,m&&l.props,{ownerState:g,children:[m?l.props.children:l,d?ke.jsx("title",{children:d}):null]}))});U3.muiName="SvgIcon";function Qr(e,t){function n(r,l){return ke.jsx(U3,Ie({"data-testid":`${t}Icon`,ref:l},r,{children:e}))}return n.muiName=U3.muiName,ge.memo(ge.forwardRef(n))}const mre={configure:e=>{zC.configure(e)}},gre=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Jt,createChainedFunction:F3,createSvgIcon:Qr,debounce:Hm,deprecatedPropType:pJ,isMuiElement:G0,ownerDocument:Aa,ownerWindow:bl,requirePropFactory:hJ,setRef:Vv,unstable_ClassNameGenerator:mre,unstable_useEnhancedEffect:no,unstable_useId:Kl,unsupportedProp:gJ,useControlled:Zl,useEventCallback:yo,useForkRef:Lr,useIsFocusVisible:FC},Symbol.toStringTag,{value:"Module"}));function Jv(e,t){return Jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,l){return r.__proto__=l,r},Jv(e,t)}function Z1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jv(e,t)}function vre(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function yre(e,t){e.classList?e.classList.add(t):vre(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function WA(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function bre(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=WA(e.className,t):e.setAttribute("class",WA(e.className&&e.className.baseVal||"",t))}const qA={disabled:!1},ey=Qe.createContext(null);var kj=function(t){return t.scrollTop},fh="unmounted",xu="exited",wu="entering",Yc="entered",H3="exiting",Pi=function(e){Z1(t,e);function t(r,l){var i;i=e.call(this,r,l)||this;var o=l,a=o&&!o.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?a?(s=xu,i.appearStatus=wu):s=Yc:r.unmountOnExit||r.mountOnEnter?s=fh:s=xu,i.state={status:s},i.nextCallback=null,i}t.getDerivedStateFromProps=function(l,i){var o=l.in;return o&&i.status===fh?{status:xu}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(l){var i=null;if(l!==this.props){var o=this.state.status;this.props.in?o!==wu&&o!==Yc&&(i=wu):(o===wu||o===Yc)&&(i=H3)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var l=this.props.timeout,i,o,a;return i=o=a=l,l!=null&&typeof l!="number"&&(i=l.exit,o=l.enter,a=l.appear!==void 0?l.appear:o),{exit:i,enter:o,appear:a}},n.updateStatus=function(l,i){if(l===void 0&&(l=!1),i!==null)if(this.cancelNextCallback(),i===wu){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:uh.findDOMNode(this);o&&kj(o)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xu&&this.setState({status:fh})},n.performEnter=function(l){var i=this,o=this.props.enter,a=this.context?this.context.isMounting:l,s=this.props.nodeRef?[a]:[uh.findDOMNode(this),a],u=s[0],c=s[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!l&&!o||qA.disabled){this.safeSetState({status:Yc},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:wu},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:Yc},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var l=this,i=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:uh.findDOMNode(this);if(!i||qA.disabled){this.safeSetState({status:xu},function(){l.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:H3},function(){l.props.onExiting(a),l.onTransitionEnd(o.exit,function(){l.safeSetState({status:xu},function(){l.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(l,i){i=this.setNextCallback(i),this.setState(l,i)},n.setNextCallback=function(l){var i=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,i.nextCallback=null,l(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(l,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:uh.findDOMNode(this),a=l==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}l!=null&&setTimeout(this.nextCallback,l)},n.render=function(){var l=this.state.status;if(l===fh)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=Kt(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Qe.createElement(ey.Provider,{value:null},typeof o=="function"?o(l,a):Qe.cloneElement(Qe.Children.only(o),a))},t}(Qe.Component);Pi.contextType=ey;Pi.propTypes={};function Fc(){}Pi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fc,onEntering:Fc,onEntered:Fc,onExit:Fc,onExiting:Fc,onExited:Fc};Pi.UNMOUNTED=fh;Pi.EXITED=xu;Pi.ENTERING=wu;Pi.ENTERED=Yc;Pi.EXITING=H3;var xre=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return yre(t,r)})},bw=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return bre(t,r)})},sM=function(e){Z1(t,e);function t(){for(var r,l=arguments.length,i=new Array(l),o=0;oe.scrollTop;function $d(e,t){var n,r;const{timeout:l,easing:i,style:o={}}=e;return{duration:(n=o.transitionDuration)!=null?n:typeof l=="number"?l:l[t.mode]||0,easing:(r=o.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:o.transitionDelay}}function Cj(e){return yn("MuiCollapse",e)}const Cre=hn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]),Mre=Cre,Pre=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Ore=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return vn(r,Cj,n)},Are=Et("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>Ie({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&Ie({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Dre=Et("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>Ie({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Ere=Et("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>Ie({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Mj=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiCollapse"}),{addEndListener:l,children:i,className:o,collapsedSize:a="0px",component:s,easing:u,in:c,onEnter:d,onEntered:f,onEntering:p,onExit:m,onExited:g,onExiting:b,orientation:v="vertical",style:h,timeout:y=iM.standard,TransitionComponent:w=Pi}=r,_=Kt(r,Pre),x=Ie({},r,{orientation:v,collapsedSize:a}),T=Ore(x),k=po(),S=ge.useRef(),C=ge.useRef(null),M=ge.useRef(),O=typeof a=="number"?`${a}px`:a,D=v==="horizontal",P=D?"width":"height";ge.useEffect(()=>()=>{clearTimeout(S.current)},[]);const E=ge.useRef(null),I=Lr(n,E),A=L=>W=>{if(L){const U=E.current;W===void 0?L(U):L(U,W)}},F=()=>C.current?C.current[D?"clientWidth":"clientHeight"]:0,j=A((L,W)=>{C.current&&D&&(C.current.style.position="absolute"),L.style[P]=O,d&&d(L,W)}),z=A((L,W)=>{const U=F();C.current&&D&&(C.current.style.position="");const{duration:V,easing:te}=$d({style:h,timeout:y,easing:u},{mode:"enter"});if(y==="auto"){const ee=k.transitions.getAutoHeightDuration(U);L.style.transitionDuration=`${ee}ms`,M.current=ee}else L.style.transitionDuration=typeof V=="string"?V:`${V}ms`;L.style[P]=`${U}px`,L.style.transitionTimingFunction=te,p&&p(L,W)}),B=A((L,W)=>{L.style[P]="auto",f&&f(L,W)}),N=A(L=>{L.style[P]=`${F()}px`,m&&m(L)}),R=A(g),q=A(L=>{const W=F(),{duration:U,easing:V}=$d({style:h,timeout:y,easing:u},{mode:"exit"});if(y==="auto"){const te=k.transitions.getAutoHeightDuration(W);L.style.transitionDuration=`${te}ms`,M.current=te}else L.style.transitionDuration=typeof U=="string"?U:`${U}ms`;L.style[P]=O,L.style.transitionTimingFunction=V,b&&b(L)}),Y=L=>{y==="auto"&&(S.current=setTimeout(L,M.current||0)),l&&l(E.current,L)};return ke.jsx(w,Ie({in:c,onEnter:j,onEntered:B,onEntering:z,onExit:N,onExited:R,onExiting:q,addEndListener:Y,nodeRef:E,timeout:y==="auto"?null:y},_,{children:(L,W)=>ke.jsx(Are,Ie({as:s,className:on(T.root,o,{entered:T.entered,exited:!c&&O==="0px"&&T.hidden}[L]),style:Ie({[D?"minWidth":"minHeight"]:O},h),ownerState:Ie({},x,{state:L}),ref:I},W,{children:ke.jsx(Dre,{ownerState:Ie({},x,{state:L}),className:T.wrapper,ref:C,children:ke.jsx(Ere,{ownerState:Ie({},x,{state:L}),className:T.wrapperInner,children:i})})}))}))});Mj.muiSupportAuto=!0;const Q1=Mj,Rre=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:Mre,default:Q1,getCollapseUtilityClass:Cj},Symbol.toStringTag,{value:"Module"}));function Pj(e){return yn("MuiPaper",e)}const Lre=hn("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"]),Ire=Lre,$re=["className","component","elevation","square","variant"],Nre=e=>{const{square:t,elevation:n,variant:r,classes:l}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return vn(i,Pj,l)},Fre=Et("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}`]]}})(({theme:e,ownerState:t})=>{var n;return Ie({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&Ie({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${rr("#fff",Qv(t.elevation))}, ${rr("#fff",Qv(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),jre=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPaper"}),{className:l,component:i="div",elevation:o=1,square:a=!1,variant:s="elevation"}=r,u=Kt(r,$re),c=Ie({},r,{component:i,elevation:o,square:a,variant:s}),d=Nre(c);return ke.jsx(Fre,Ie({as:i,ownerState:c,className:on(d.root,l),ref:n},u))}),nu=jre,zre=Object.freeze(Object.defineProperty({__proto__:null,default:nu,getPaperUtilityClass:Pj,paperClasses:Ire},Symbol.toStringTag,{value:"Module"}));function Bre(e){const{className:t,classes:n,pulsate:r=!1,rippleX:l,rippleY:i,rippleSize:o,in:a,onExited:s,timeout:u}=e,[c,d]=ge.useState(!1),f=on(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+i,left:-(o/2)+l},m=on(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),ge.useEffect(()=>{if(!a&&s!=null){const g=setTimeout(s,u);return()=>{clearTimeout(g)}}},[s,a,u]),ke.jsx("span",{className:f,style:p,children:ke.jsx("span",{className:m})})}const ci=hn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Wre=["center","classes","className"];let J1=e=>e,UA,HA,VA,GA;const V3=550,qre=80,Ure=Hi(UA||(UA=J1` +} catch(e){}})();`}},"mui-color-scheme-init")}function RA(e){if(typeof window<"u"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function vj(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function Yte(e){return vj(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function mw(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function Xte(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:l=[],modeStorageKey:i=rM,colorSchemeStorageKey:o=aM,storageWindow:a=typeof window>"u"?void 0:window}=e,s=l.join(","),[u,c]=ge.useState(()=>{const b=mw(i,t),v=mw(`${o}-light`,n),h=mw(`${o}-dark`,r);return{mode:b,systemMode:RA(b),lightColorScheme:v,darkColorScheme:h}}),d=Yte(u),f=ge.useCallback(b=>{c(v=>{if(b===v.mode)return v;const h=b||t;try{localStorage.setItem(i,h)}catch{}return Ie({},v,{mode:h,systemMode:RA(h)})})},[i,t]),p=ge.useCallback(b=>{b?typeof b=="string"?b&&!s.includes(b)?console.error(`\`${b}\` does not exist in \`theme.colorSchemes\`.`):c(v=>{const h=Ie({},v);return vj(v,y=>{try{localStorage.setItem(`${o}-${y}`,b)}catch{}y==="light"&&(h.lightColorScheme=b),y==="dark"&&(h.darkColorScheme=b)}),h}):c(v=>{const h=Ie({},v),y=b.light===null?n:b.light,w=b.dark===null?r:b.dark;if(y)if(!s.includes(y))console.error(`\`${y}\` does not exist in \`theme.colorSchemes\`.`);else{h.lightColorScheme=y;try{localStorage.setItem(`${o}-light`,y)}catch{}}if(w)if(!s.includes(w))console.error(`\`${w}\` does not exist in \`theme.colorSchemes\`.`);else{h.darkColorScheme=w;try{localStorage.setItem(`${o}-dark`,w)}catch{}}return h}):c(v=>{try{localStorage.setItem(`${o}-light`,n),localStorage.setItem(`${o}-dark`,r)}catch{}return Ie({},v,{lightColorScheme:n,darkColorScheme:r})})},[s,o,n,r]),m=ge.useCallback(b=>{u.mode==="system"&&c(v=>Ie({},v,{systemMode:b!=null&&b.matches?"dark":"light"}))},[u.mode]),g=ge.useRef(m);return g.current=m,ge.useEffect(()=>{const b=(...h)=>g.current(...h),v=window.matchMedia("(prefers-color-scheme: dark)");return v.addListener(b),b(v),()=>v.removeListener(b)},[]),ge.useEffect(()=>{const b=v=>{const h=v.newValue;typeof v.key=="string"&&v.key.startsWith(o)&&(!h||s.match(h))&&(v.key.endsWith("light")&&p({light:h}),v.key.endsWith("dark")&&p({dark:h})),v.key===i&&(!h||["light","dark","system"].includes(h))&&f(h||t)};if(a)return a.addEventListener("storage",b),()=>a.removeEventListener("storage",b)},[p,f,i,o,s,t,a]),Ie({},u,{colorScheme:d,setMode:f,setColorScheme:p})}const Kte=["colorSchemes","components","generateCssVars","cssVarPrefix"],Zte="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Qte(e){const{themeId:t,theme:n={},attribute:r=gj,modeStorageKey:l=rM,colorSchemeStorageKey:i=aM,defaultMode:o="light",defaultColorScheme:a,disableTransitionOnChange:s=!1,resolveTheme:u,excludeVariablesFromRoot:c}=e;(!n.colorSchemes||typeof a=="string"&&!n.colorSchemes[a]||typeof a=="object"&&!n.colorSchemes[a==null?void 0:a.light]||typeof a=="object"&&!n.colorSchemes[a==null?void 0:a.dark])&&console.error(`MUI: \`${a}\` does not exist in \`theme.colorSchemes\`.`);const d=ge.createContext(void 0),f=()=>{const v=ge.useContext(d);if(!v)throw new Error(No(19));return v};function p({children:v,theme:h=n,modeStorageKey:y=l,colorSchemeStorageKey:w=i,attribute:_=r,defaultMode:x=o,defaultColorScheme:T=a,disableTransitionOnChange:k=s,storageWindow:S=typeof window>"u"?void 0:window,documentNode:C=typeof document>"u"?void 0:document,colorSchemeNode:M=typeof document>"u"?void 0:document.documentElement,colorSchemeSelector:O=":root",disableNestedContext:D=!1,disableStyleSheetGeneration:P=!1}){const E=ge.useRef(!1),I=nM(),A=ge.useContext(d),F=!!A&&!D,j=h[t],z=j||h,{colorSchemes:B={},components:N={},generateCssVars:R=()=>({vars:{},css:{}}),cssVarPrefix:q}=z,Y=Kt(z,Kte),L=Object.keys(B),W=typeof T=="string"?T:T.light,U=typeof T=="string"?T:T.dark,{mode:V,setMode:te,systemMode:ee,lightColorScheme:H,darkColorScheme:Z,colorScheme:G,setColorScheme:X}=Xte({supportedColorSchemes:L,defaultLightColorScheme:W,defaultDarkColorScheme:U,modeStorageKey:y,colorSchemeStorageKey:w,defaultMode:x,storageWindow:S});let Q=V,re=G;F&&(Q=A.mode,re=A.colorScheme);const ae=Q||(x==="system"?o:x),ie=re||(ae==="dark"?U:W),{css:se,vars:he}=R(),Se=Ie({},Y,{components:N,colorSchemes:B,cssVarPrefix:q,vars:he,getColorSchemeSelector:K=>`[${_}="${K}"] &`}),Oe={},Pe={};Object.entries(B).forEach(([K,ne])=>{const{css:de,vars:_e}=R(K);Se.vars=ha(Se.vars,_e),K===ie&&(Object.keys(ne).forEach(pe=>{ne[pe]&&typeof ne[pe]=="object"?Se[pe]=Ie({},Se[pe],ne[pe]):Se[pe]=ne[pe]}),Se.palette&&(Se.palette.colorScheme=K));const ue=typeof T=="string"?T:x==="dark"?T.dark:T.light;if(K===ue){if(c){const pe={};c(q).forEach(xe=>{pe[xe]=de[xe],delete de[xe]}),Oe[`[${_}="${K}"]`]=pe}Oe[`${O}, [${_}="${K}"]`]=de}else Pe[`${O===":root"?"":O}[${_}="${K}"]`]=de}),Se.vars=ha(Se.vars,he),ge.useEffect(()=>{re&&M&&M.setAttribute(_,re)},[re,_,M]),ge.useEffect(()=>{let K;if(k&&E.current&&C){const ne=C.createElement("style");ne.appendChild(C.createTextNode(Zte)),C.head.appendChild(ne),window.getComputedStyle(C.body),K=setTimeout(()=>{C.head.removeChild(ne)},1)}return()=>{clearTimeout(K)}},[re,k,C]),ge.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);const Me=ge.useMemo(()=>({mode:Q,systemMode:ee,setMode:te,lightColorScheme:H,darkColorScheme:Z,colorScheme:re,setColorScheme:X,allColorSchemes:L}),[L,re,Z,H,Q,X,te,ee]);let ce=!0;(P||F&&(I==null?void 0:I.cssVarPrefix)===q)&&(ce=!1);const we=ke.jsxs(ge.Fragment,{children:[ce&&ke.jsxs(ge.Fragment,{children:[ke.jsx(Z0,{styles:{[O]:se}}),ke.jsx(Z0,{styles:Oe}),ke.jsx(Z0,{styles:Pe})]}),ke.jsx(mj,{themeId:j?t:void 0,theme:u?u(Se):Se,children:v})]});return F?we:ke.jsx(d.Provider,{value:Me,children:we})}const m=typeof a=="string"?a:a.light,g=typeof a=="string"?a:a.dark;return{CssVarsProvider:p,useColorScheme:f,getInitColorSchemeScript:v=>Gte(Ie({attribute:r,colorSchemeStorageKey:i,defaultMode:o,defaultLightColorScheme:m,defaultDarkColorScheme:g,modeStorageKey:l},v))}}function Jte(e=""){function t(...r){if(!r.length)return"";const l=r[0];return typeof l=="string"&&!l.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${l}${t(...r.slice(1))})`:`, ${l}`}return(r,...l)=>`var(--${e?`${e}-`:""}${r}${t(...l)})`}const LA=(e,t,n,r=[])=>{let l=e;t.forEach((i,o)=>{o===t.length-1?Array.isArray(l)?l[Number(i)]=n:l&&typeof l=="object"&&(l[i]=n):l&&typeof l=="object"&&(l[i]||(l[i]=r.includes(i)?[]:{}),l=l[i])})},ene=(e,t,n)=>{function r(l,i=[],o=[]){Object.entries(l).forEach(([a,s])=>{(!n||n&&!n([...i,a]))&&s!=null&&(typeof s=="object"&&Object.keys(s).length>0?r(s,[...i,a],Array.isArray(s)?[...o,a]:o):t([...i,a],s,o))})}r(e)},tne=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function gw(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},l={},i={},o={};return ene(e,(a,s,u)=>{if((typeof s=="string"||typeof s=="number")&&(!r||!r(a,s))){const c=`--${n?`${n}-`:""}${a.join("-")}`;Object.assign(l,{[c]:tne(a,s)}),LA(i,a,`var(${c})`,u),LA(o,a,`var(${c}, ${s})`,u)}},a=>a[0]==="vars"),{css:l,vars:i,varsWithDefaults:o}}const nne=["colorSchemes","components"],rne=["light"];function ane(e,t){const{colorSchemes:n={}}=e,r=Kt(e,nne),{vars:l,css:i,varsWithDefaults:o}=gw(r,t);let a=o;const s={},{light:u}=n,c=Kt(n,rne);if(Object.entries(c||{}).forEach(([f,p])=>{const{vars:m,css:g,varsWithDefaults:b}=gw(p,t);a=ha(a,b),s[f]={css:g,vars:m}}),u){const{css:f,vars:p,varsWithDefaults:m}=gw(u,t);a=ha(a,m),s.light={css:f,vars:p}}return{vars:a,generateCssVars:f=>f?{css:Ie({},s[f].css),vars:s[f].vars}:{css:Ie({},i),vars:l}}}const one=["component","direction","spacing","divider","children","className","useFlexGap"],ine=V1(),lne=Fte("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function sne(e){return cj({props:e,name:"MuiStack",defaultTheme:ine})}function une(e,t){const n=ge.Children.toArray(e).filter(Boolean);return n.reduce((r,l,i)=>(r.push(l),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],dne=({ownerState:e,theme:t})=>{let n=Ie({display:"flex",flexDirection:"column"},jo({theme:t},zu({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=JC(t),l=Object.keys(t.breakpoints.values).reduce((s,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(s[u]=!0),s),{}),i=zu({values:e.direction,base:l}),o=zu({values:e.spacing,base:l});typeof i=="object"&&Object.keys(i).forEach((s,u,c)=>{if(!i[s]){const f=u>0?i[c[u-1]]:"column";i[s]=f}}),n=ha(n,jo({theme:t},o,(s,u)=>e.useFlexGap?{gap:Gu(r,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${cne(u?i[u]:e.direction)}`]:Gu(r,s)}}))}return n=Iee(t.breakpoints,n),n};function fne(e={}){const{createStyledComponent:t=lne,useThemeProps:n=sne,componentName:r="MuiStack"}=e,l=()=>vn({root:["root"]},s=>yn(r,s),{}),i=t(dne);return ge.forwardRef(function(s,u){const c=n(s),d=Y1(c),{component:f="div",direction:p="column",spacing:m=0,divider:g,children:b,className:v,useFlexGap:h=!1}=d,y=Kt(d,one),w={direction:p,spacing:m,useFlexGap:h},_=l();return ke.jsx(i,Ie({as:f,ownerState:w,ref:u,className:on(_.root,v)},y,{children:g?une(b,g):b}))})}const pne=["defaultProps","mixins","overrides","palette","props","styleOverrides"],hne=["type","mode"];function mne(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:l={},props:i={},styleOverrides:o={}}=e,a=Kt(e,pne),s=Ie({},a,{components:{}});Object.keys(t).forEach(g=>{const b=s.components[g]||{};b.defaultProps=t[g],s.components[g]=b}),Object.keys(i).forEach(g=>{const b=s.components[g]||{};b.defaultProps=i[g],s.components[g]=b}),Object.keys(o).forEach(g=>{const b=s.components[g]||{};b.styleOverrides=o[g],s.components[g]=b}),Object.keys(r).forEach(g=>{const b=s.components[g]||{};b.styleOverrides=r[g],s.components[g]=b}),s.spacing=oj(e.spacing);const u=tj(e.breakpoints||{}),c=s.spacing;s.mixins=Ie({gutters:(g={})=>Ie({paddingLeft:c(2),paddingRight:c(2)},g,{[u.up("sm")]:Ie({paddingLeft:c(3),paddingRight:c(3)},g[u.up("sm")])})},n);const{type:d,mode:f}=l,p=Kt(l,hne),m=f||d||"light";return s.palette=Ie({text:{hint:m==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:m,type:m},p),s}function gne(e,t){return Ie({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const vne=["mode","contrastThreshold","tonalOffset"],IA={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:rm.white,default:rm.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}},vw={text:{primary:rm.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:rm.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}};function $A(e,t,n,r){const l=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=_l(e.main,l):t==="dark"&&(e.dark=wl(e.main,i)))}function yne(e="light"){return e==="dark"?{main:Rc[200],light:Rc[50],dark:Rc[400]}:{main:Rc[700],light:Rc[400],dark:Rc[800]}}function bne(e="light"){return e==="dark"?{main:Ec[200],light:Ec[50],dark:Ec[400]}:{main:Ec[500],light:Ec[300],dark:Ec[700]}}function xne(e="light"){return e==="dark"?{main:Dc[500],light:Dc[300],dark:Dc[700]}:{main:Dc[700],light:Dc[400],dark:Dc[800]}}function wne(e="light"){return e==="dark"?{main:Lc[400],light:Lc[300],dark:Lc[700]}:{main:Lc[700],light:Lc[500],dark:Lc[900]}}function _ne(e="light"){return e==="dark"?{main:Ic[400],light:Ic[300],dark:Ic[700]}:{main:Ic[800],light:Ic[500],dark:Ic[900]}}function Tne(e="light"){return e==="dark"?{main:Yf[400],light:Yf[300],dark:Yf[700]}:{main:"#ed6c02",light:Yf[500],dark:Yf[900]}}function kne(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,l=Kt(e,vne),i=e.primary||yne(t),o=e.secondary||bne(t),a=e.error||xne(t),s=e.info||wne(t),u=e.success||_ne(t),c=e.warning||Tne(t);function d(g){return pj(g,vw.text.primary)>=n?vw.text.primary:IA.text.primary}const f=({color:g,name:b,mainShade:v=500,lightShade:h=300,darkShade:y=700})=>{if(g=Ie({},g),!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(No(11,b?` (${b})`:"",v));if(typeof g.main!="string")throw new Error(No(12,b?` (${b})`:"",JSON.stringify(g.main)));return $A(g,"light",h,r),$A(g,"dark",y,r),g.contrastText||(g.contrastText=d(g.main)),g},p={dark:vw,light:IA};return ha(Ie({common:Ie({},rm),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:Rl,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),l)}const Sne=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Cne(e){return Math.round(e*1e5)/1e5}const NA={textTransform:"uppercase"},FA='"Roboto", "Helvetica", "Arial", sans-serif';function oM(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=FA,fontSize:l=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=Kt(n,Sne),p=l/14,m=d||(v=>`${v/u*p}rem`),g=(v,h,y,w,_)=>Ie({fontFamily:r,fontWeight:v,fontSize:m(h),lineHeight:y},r===FA?{letterSpacing:`${Cne(w/h)}em`}:{},_,c),b={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(o,48,1.167,0),h4:g(o,34,1.235,.25),h5:g(o,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(o,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(o,16,1.5,.15),body2:g(o,14,1.43,.15),button:g(a,14,1.75,.4,NA),caption:g(o,12,1.66,.4),overline:g(o,12,2.66,1,NA),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ha(Ie({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:l,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s},b),f,{clone:!1})}const Mne=.2,Pne=.14,One=.12;function Kr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Mne})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Pne})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${One})`].join(",")}const Ane=["none",Kr(0,2,1,-1,0,1,1,0,0,1,3,0),Kr(0,3,1,-2,0,2,2,0,0,1,5,0),Kr(0,3,3,-2,0,3,4,0,0,1,8,0),Kr(0,2,4,-1,0,4,5,0,0,1,10,0),Kr(0,3,5,-1,0,5,8,0,0,1,14,0),Kr(0,3,5,-1,0,6,10,0,0,1,18,0),Kr(0,4,5,-2,0,7,10,1,0,2,16,1),Kr(0,5,5,-3,0,8,10,1,0,3,14,2),Kr(0,5,6,-3,0,9,12,1,0,3,16,2),Kr(0,6,6,-3,0,10,14,1,0,4,18,3),Kr(0,6,7,-4,0,11,15,1,0,4,20,3),Kr(0,7,8,-4,0,12,17,2,0,5,22,4),Kr(0,7,8,-4,0,13,19,2,0,5,24,4),Kr(0,7,9,-4,0,14,21,2,0,5,26,4),Kr(0,8,9,-5,0,15,22,2,0,6,28,5),Kr(0,8,10,-5,0,16,24,2,0,6,30,5),Kr(0,8,11,-5,0,17,26,2,0,6,32,5),Kr(0,9,11,-5,0,18,28,2,0,7,34,6),Kr(0,9,12,-6,0,19,29,2,0,7,36,6),Kr(0,10,13,-6,0,20,31,3,0,8,38,7),Kr(0,10,13,-6,0,21,33,3,0,8,40,7),Kr(0,10,14,-6,0,22,35,3,0,8,42,7),Kr(0,11,14,-7,0,23,36,3,0,9,44,8),Kr(0,11,15,-7,0,24,38,3,0,9,46,8)],Dne=["duration","easing","delay"],yj={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)"},iM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function jA(e){return`${Math.round(e)}ms`}function Ene(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Rne(e){const t=Ie({},yj,e.easing),n=Ie({},iM,e.duration);return Ie({getAutoHeightDuration:Ene,create:(l=["all"],i={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:s=0}=i;return Kt(i,Dne),(Array.isArray(l)?l:[l]).map(u=>`${u} ${typeof o=="string"?o:jA(o)} ${a} ${typeof s=="string"?s:jA(s)}`).join(",")}},e,{easing:t,duration:n})}const Lne={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ine=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function es(e={},...t){const{mixins:n={},palette:r={},transitions:l={},typography:i={}}=e,o=Kt(e,Ine);if(e.vars)throw new Error(No(18));const a=kne(r),s=V1(e);let u=ha(s,{mixins:gne(s.breakpoints,n),palette:a,shadows:Ane.slice(),typography:oM(a,i),transitions:Rne(l),zIndex:Ie({},Lne)});return u=ha(u,o),u=t.reduce((c,d)=>ha(c,d),u),u.unstable_sxConfig=Ie({},Gm,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return dc({sx:d,theme:this})},u}function $ne(...e){return es(...e)}function Nne(e,...t){return es(ha({unstable_strictMode:!0},e),...t)}let zA=!1;function Fne(e){return zA||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(` +`)),zA=!0),e}function BA(e){return String(parseFloat(e)).length===String(e).length}function lM(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function $l(e){return parseFloat(e)}function jne(e){return(t,n)=>{const r=lM(t);if(r===n)return t;let l=$l(t);r!=="px"&&(r==="em"||r==="rem")&&(l=$l(t)*$l(e));let i=l;if(n!=="px")if(n==="em")i=l/$l(e);else if(n==="rem")i=l/$l(e);else return t;return parseFloat(i.toFixed(5))+n}}function zne({size:e,grid:t}){const n=e-e%t,r=n+t;return e-n{let u=t+a*s;i!==null&&(u=i(u)),o[`@media (min-width:${s}px)`]={[e]:`${Math.round(u*1e4)/1e4}${r}`}}),o}function qne(e,t={}){const{breakpoints:n=["sm","md","lg"],disableAlign:r=!1,factor:l=2,variants:i=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,o=Ie({},e);o.typography=Ie({},o.typography);const a=o.typography,s=jne(a.htmlFontSize),u=n.map(c=>o.breakpoints.values[c]);return i.forEach(c=>{const d=a[c],f=parseFloat(s(d.fontSize,"rem"));if(f<=1)return;const p=f,m=1+(p-1)/l;let{lineHeight:g}=d;if(!BA(g)&&!r)throw new Error(No(6));BA(g)||(g=parseFloat(s(g,"rem"))/parseFloat(f));let b=null;r||(b=v=>zne({size:v,grid:Bne({pixels:4,lineHeight:g,htmlFontSize:a.htmlFontSize})})),a[c]=Ie({},d,Wne({cssProperty:"fontSize",min:m,max:p,unit:"rem",breakpoints:u,transform:b}))}),o}const X1=es();function po(){const e=Ym(X1);return e[Ql]||e}function pn({props:e,name:t}){return cj({props:e,name:t,defaultTheme:X1,themeId:Ql})}const Vi=e=>Ph(e)&&e!=="classes",Une=Ph,Et=sj({themeId:Ql,defaultTheme:X1,rootShouldForwardProp:Vi}),Hne=["theme"];function bj(e){let{theme:t}=e,n=Kt(e,Hne);const r=t[Ql];return ke.jsx(mj,Ie({},n,{themeId:r?Ql:void 0,theme:r||t}))}function Vne(){throw new Error(No(14))}function Gne(){throw new Error(No(15))}function Yne(){throw new Error(No(16))}function xj(e){var t;return!!e[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Xne=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Qv=Xne,Kne=["colorSchemes","cssVarPrefix","shouldSkipGeneratingVar"],Zne=["palette"],Qne=[...Array(25)].map((e,t)=>{if(t===0)return;const n=Qv(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Jne(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Qt(e,t,n){!e[t]&&n&&(e[t]=n)}function bs(e,t){`${t}Channel`in e||(e[`${t}Channel`]=uh(e[t],`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, e.g. "12 12 12") or undefined if you want to remove the channel token.`))}const nl=e=>{try{return e()}catch{}},ere=(e="mui")=>Jte(e);function wj(e={},...t){var n,r,l,i,o,a;const{colorSchemes:s={},cssVarPrefix:u="mui",shouldSkipGeneratingVar:c=xj}=e,d=Kt(e,Kne),f=ere(u),p=es(Ie({},d,s.light&&{palette:(n=s.light)==null?void 0:n.palette})),{palette:m}=p,g=Kt(p,Zne),{palette:b}=es({palette:Ie({mode:"dark"},(r=s.dark)==null?void 0:r.palette)});let v=Ie({},g,{cssVarPrefix:u,getCssVar:f,colorSchemes:Ie({},s,{light:Ie({},s.light,{palette:m,opacity:Ie({inputPlaceholder:.42,inputUnderline:.42,switchTrackDisabled:.12,switchTrack:.38},(l=s.light)==null?void 0:l.opacity),overlays:((i=s.light)==null?void 0:i.overlays)||[]}),dark:Ie({},s.dark,{palette:b,opacity:Ie({inputPlaceholder:.5,inputUnderline:.7,switchTrackDisabled:.2,switchTrack:.3},(o=s.dark)==null?void 0:o.opacity),overlays:((a=s.dark)==null?void 0:a.overlays)||Qne})})});Object.keys(v.colorSchemes).forEach(_=>{const x=v.colorSchemes[_].palette,T=k=>{const S=k.split("-"),C=S[1],M=S[2];return f(k,x[C][M])};if(_==="light"?(Qt(x.common,"background","#fff"),Qt(x.common,"onBackground","#000")):(Qt(x.common,"background","#000"),Qt(x.common,"onBackground","#fff")),Jne(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_==="light"){Qt(x.Alert,"errorColor",Er(x.error.light,.6)),Qt(x.Alert,"infoColor",Er(x.info.light,.6)),Qt(x.Alert,"successColor",Er(x.success.light,.6)),Qt(x.Alert,"warningColor",Er(x.warning.light,.6)),Qt(x.Alert,"errorFilledBg",T("palette-error-main")),Qt(x.Alert,"infoFilledBg",T("palette-info-main")),Qt(x.Alert,"successFilledBg",T("palette-success-main")),Qt(x.Alert,"warningFilledBg",T("palette-warning-main")),Qt(x.Alert,"errorFilledColor",nl(()=>m.getContrastText(x.error.main))),Qt(x.Alert,"infoFilledColor",nl(()=>m.getContrastText(x.info.main))),Qt(x.Alert,"successFilledColor",nl(()=>m.getContrastText(x.success.main))),Qt(x.Alert,"warningFilledColor",nl(()=>m.getContrastText(x.warning.main))),Qt(x.Alert,"errorStandardBg",Rr(x.error.light,.9)),Qt(x.Alert,"infoStandardBg",Rr(x.info.light,.9)),Qt(x.Alert,"successStandardBg",Rr(x.success.light,.9)),Qt(x.Alert,"warningStandardBg",Rr(x.warning.light,.9)),Qt(x.Alert,"errorIconColor",T("palette-error-main")),Qt(x.Alert,"infoIconColor",T("palette-info-main")),Qt(x.Alert,"successIconColor",T("palette-success-main")),Qt(x.Alert,"warningIconColor",T("palette-warning-main")),Qt(x.AppBar,"defaultBg",T("palette-grey-100")),Qt(x.Avatar,"defaultBg",T("palette-grey-400")),Qt(x.Button,"inheritContainedBg",T("palette-grey-300")),Qt(x.Button,"inheritContainedHoverBg",T("palette-grey-A100")),Qt(x.Chip,"defaultBorder",T("palette-grey-400")),Qt(x.Chip,"defaultAvatarColor",T("palette-grey-700")),Qt(x.Chip,"defaultIconColor",T("palette-grey-700")),Qt(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Qt(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Qt(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Qt(x.LinearProgress,"primaryBg",Rr(x.primary.main,.62)),Qt(x.LinearProgress,"secondaryBg",Rr(x.secondary.main,.62)),Qt(x.LinearProgress,"errorBg",Rr(x.error.main,.62)),Qt(x.LinearProgress,"infoBg",Rr(x.info.main,.62)),Qt(x.LinearProgress,"successBg",Rr(x.success.main,.62)),Qt(x.LinearProgress,"warningBg",Rr(x.warning.main,.62)),Qt(x.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.11)`),Qt(x.Slider,"primaryTrack",Rr(x.primary.main,.62)),Qt(x.Slider,"secondaryTrack",Rr(x.secondary.main,.62)),Qt(x.Slider,"errorTrack",Rr(x.error.main,.62)),Qt(x.Slider,"infoTrack",Rr(x.info.main,.62)),Qt(x.Slider,"successTrack",Rr(x.success.main,.62)),Qt(x.Slider,"warningTrack",Rr(x.warning.main,.62));const k=ch(x.background.default,.8);Qt(x.SnackbarContent,"bg",k),Qt(x.SnackbarContent,"color",nl(()=>m.getContrastText(k))),Qt(x.SpeedDialAction,"fabHoverBg",ch(x.background.paper,.15)),Qt(x.StepConnector,"border",T("palette-grey-400")),Qt(x.StepContent,"border",T("palette-grey-400")),Qt(x.Switch,"defaultColor",T("palette-common-white")),Qt(x.Switch,"defaultDisabledColor",T("palette-grey-100")),Qt(x.Switch,"primaryDisabledColor",Rr(x.primary.main,.62)),Qt(x.Switch,"secondaryDisabledColor",Rr(x.secondary.main,.62)),Qt(x.Switch,"errorDisabledColor",Rr(x.error.main,.62)),Qt(x.Switch,"infoDisabledColor",Rr(x.info.main,.62)),Qt(x.Switch,"successDisabledColor",Rr(x.success.main,.62)),Qt(x.Switch,"warningDisabledColor",Rr(x.warning.main,.62)),Qt(x.TableCell,"border",Rr(t0(x.divider,1),.88)),Qt(x.Tooltip,"bg",t0(x.grey[700],.92))}else{Qt(x.Alert,"errorColor",Rr(x.error.light,.6)),Qt(x.Alert,"infoColor",Rr(x.info.light,.6)),Qt(x.Alert,"successColor",Rr(x.success.light,.6)),Qt(x.Alert,"warningColor",Rr(x.warning.light,.6)),Qt(x.Alert,"errorFilledBg",T("palette-error-dark")),Qt(x.Alert,"infoFilledBg",T("palette-info-dark")),Qt(x.Alert,"successFilledBg",T("palette-success-dark")),Qt(x.Alert,"warningFilledBg",T("palette-warning-dark")),Qt(x.Alert,"errorFilledColor",nl(()=>b.getContrastText(x.error.dark))),Qt(x.Alert,"infoFilledColor",nl(()=>b.getContrastText(x.info.dark))),Qt(x.Alert,"successFilledColor",nl(()=>b.getContrastText(x.success.dark))),Qt(x.Alert,"warningFilledColor",nl(()=>b.getContrastText(x.warning.dark))),Qt(x.Alert,"errorStandardBg",Er(x.error.light,.9)),Qt(x.Alert,"infoStandardBg",Er(x.info.light,.9)),Qt(x.Alert,"successStandardBg",Er(x.success.light,.9)),Qt(x.Alert,"warningStandardBg",Er(x.warning.light,.9)),Qt(x.Alert,"errorIconColor",T("palette-error-main")),Qt(x.Alert,"infoIconColor",T("palette-info-main")),Qt(x.Alert,"successIconColor",T("palette-success-main")),Qt(x.Alert,"warningIconColor",T("palette-warning-main")),Qt(x.AppBar,"defaultBg",T("palette-grey-900")),Qt(x.AppBar,"darkBg",T("palette-background-paper")),Qt(x.AppBar,"darkColor",T("palette-text-primary")),Qt(x.Avatar,"defaultBg",T("palette-grey-600")),Qt(x.Button,"inheritContainedBg",T("palette-grey-800")),Qt(x.Button,"inheritContainedHoverBg",T("palette-grey-700")),Qt(x.Chip,"defaultBorder",T("palette-grey-700")),Qt(x.Chip,"defaultAvatarColor",T("palette-grey-300")),Qt(x.Chip,"defaultIconColor",T("palette-grey-300")),Qt(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Qt(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Qt(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Qt(x.LinearProgress,"primaryBg",Er(x.primary.main,.5)),Qt(x.LinearProgress,"secondaryBg",Er(x.secondary.main,.5)),Qt(x.LinearProgress,"errorBg",Er(x.error.main,.5)),Qt(x.LinearProgress,"infoBg",Er(x.info.main,.5)),Qt(x.LinearProgress,"successBg",Er(x.success.main,.5)),Qt(x.LinearProgress,"warningBg",Er(x.warning.main,.5)),Qt(x.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.13)`),Qt(x.Slider,"primaryTrack",Er(x.primary.main,.5)),Qt(x.Slider,"secondaryTrack",Er(x.secondary.main,.5)),Qt(x.Slider,"errorTrack",Er(x.error.main,.5)),Qt(x.Slider,"infoTrack",Er(x.info.main,.5)),Qt(x.Slider,"successTrack",Er(x.success.main,.5)),Qt(x.Slider,"warningTrack",Er(x.warning.main,.5));const k=ch(x.background.default,.98);Qt(x.SnackbarContent,"bg",k),Qt(x.SnackbarContent,"color",nl(()=>b.getContrastText(k))),Qt(x.SpeedDialAction,"fabHoverBg",ch(x.background.paper,.15)),Qt(x.StepConnector,"border",T("palette-grey-600")),Qt(x.StepContent,"border",T("palette-grey-600")),Qt(x.Switch,"defaultColor",T("palette-grey-300")),Qt(x.Switch,"defaultDisabledColor",T("palette-grey-600")),Qt(x.Switch,"primaryDisabledColor",Er(x.primary.main,.55)),Qt(x.Switch,"secondaryDisabledColor",Er(x.secondary.main,.55)),Qt(x.Switch,"errorDisabledColor",Er(x.error.main,.55)),Qt(x.Switch,"infoDisabledColor",Er(x.info.main,.55)),Qt(x.Switch,"successDisabledColor",Er(x.success.main,.55)),Qt(x.Switch,"warningDisabledColor",Er(x.warning.main,.55)),Qt(x.TableCell,"border",Er(t0(x.divider,1),.68)),Qt(x.Tooltip,"bg",t0(x.grey[700],.92))}bs(x.background,"default"),bs(x.common,"background"),bs(x.common,"onBackground"),bs(x,"divider"),Object.keys(x).forEach(k=>{const S=x[k];S&&typeof S=="object"&&(S.main&&Qt(x[k],"mainChannel",uh(S.main)),S.light&&Qt(x[k],"lightChannel",uh(S.light)),S.dark&&Qt(x[k],"darkChannel",uh(S.dark)),S.contrastText&&Qt(x[k],"contrastTextChannel",uh(S.contrastText)),k==="text"&&(bs(x[k],"primary"),bs(x[k],"secondary")),k==="action"&&(S.active&&bs(x[k],"active"),S.selected&&bs(x[k],"selected")))})}),v=t.reduce((_,x)=>ha(_,x),v);const h={prefix:u,shouldSkipGeneratingVar:c},{vars:y,generateCssVars:w}=ane(v,h);return v.vars=y,v.generateCssVars=w,v.shouldSkipGeneratingVar=c,v.unstable_sxConfig=Ie({},Gm,d==null?void 0:d.unstable_sxConfig),v.unstable_sx=function(x){return dc({sx:x,theme:this})},v}const tre=e=>[...[...Array(24)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n+1}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],_j=tre,nre=wj(),{CssVarsProvider:rre,useColorScheme:are,getInitColorSchemeScript:ore}=Qte({themeId:Ql,theme:nre,attribute:"data-mui-color-scheme",modeStorageKey:"mui-mode",colorSchemeStorageKey:"mui-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{const t=Ie({},e,{typography:oM(e.palette,e.typography)});return t.unstable_sx=function(r){return dc({sx:r,theme:this})},t},excludeVariablesFromRoot:_j});function ire(){throw new Error(No(20))}const lre=Object.freeze(Object.defineProperty({__proto__:null,Experimental_CssVarsProvider:rre,StyledEngineProvider:Oee,THEME_ID:Ql,ThemeProvider:bj,adaptV4Theme:mne,alpha:rr,createMuiTheme:$ne,createStyles:Fne,createTheme:es,css:Jl,darken:wl,decomposeColor:xl,duration:iM,easing:yj,emphasize:Wte,experimentalStyled:Et,experimental_extendTheme:wj,experimental_sx:ire,getContrastRatio:pj,getInitColorSchemeScript:ore,getLuminance:Zv,getOverlayAlpha:Qv,hexToRgb:dj,hslToRgb:fj,keyframes:Hi,lighten:_l,makeStyles:Vne,private_createTypography:oM,private_excludeVariablesFromRoot:_j,recomposeColor:Xm,responsiveFontSizes:qne,rgbToHex:Bte,shouldSkipGeneratingVar:xj,styled:Et,unstable_createMuiStrictModeTheme:Nne,unstable_getUnit:lM,unstable_toUnitless:$l,useColorScheme:are,useTheme:po,useThemeProps:pn,withStyles:Gne,withTheme:Yne},Symbol.toStringTag,{value:"Module"}));function sre(e){return yn("MuiSvgIcon",e)}hn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ure=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],cre=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${Jt(t)}`,`fontSize${Jt(n)}`]};return vn(l,sre,r)},dre=Et("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Jt(n.color)}`],t[`fontSize${Jt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,l,i,o,a,s,u,c,d,f,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(l=e.transitions)==null||(l=l.duration)==null?void 0:l.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(o=i.pxToRem)==null?void 0:o.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),q3=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiSvgIcon"}),{children:l,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,p=Kt(r,ure),m=ge.isValidElement(l)&&l.type==="svg",g=Ie({},r,{color:o,component:a,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:m}),b={};c||(b.viewBox=f);const v=cre(g);return ke.jsxs(dre,Ie({as:a,className:on(v.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},b,p,m&&l.props,{ownerState:g,children:[m?l.props.children:l,d?ke.jsx("title",{children:d}):null]}))});q3.muiName="SvgIcon";function Qr(e,t){function n(r,l){return ke.jsx(q3,Ie({"data-testid":`${t}Icon`,ref:l},r,{children:e}))}return n.muiName=q3.muiName,ge.memo(ge.forwardRef(n))}const fre={configure:e=>{zC.configure(e)}},pre=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Jt,createChainedFunction:N3,createSvgIcon:Qr,debounce:Um,deprecatedPropType:cJ,isMuiElement:G0,ownerDocument:Aa,ownerWindow:bl,requirePropFactory:dJ,setRef:Vv,unstable_ClassNameGenerator:fre,unstable_useEnhancedEffect:no,unstable_useId:Kl,unsupportedProp:pJ,useControlled:Zl,useEventCallback:yo,useForkRef:Lr,useIsFocusVisible:FC},Symbol.toStringTag,{value:"Module"}));function Jv(e,t){return Jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,l){return r.__proto__=l,r},Jv(e,t)}function K1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jv(e,t)}function hre(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function mre(e,t){e.classList?e.classList.add(t):hre(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function WA(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function gre(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=WA(e.className,t):e.setAttribute("class",WA(e.className&&e.className.baseVal||"",t))}const qA={disabled:!1},ey=Qe.createContext(null);var Tj=function(t){return t.scrollTop},dh="unmounted",bu="exited",xu="entering",Gc="entered",U3="exiting",Pi=function(e){K1(t,e);function t(r,l){var i;i=e.call(this,r,l)||this;var o=l,a=o&&!o.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?a?(s=bu,i.appearStatus=xu):s=Gc:r.unmountOnExit||r.mountOnEnter?s=dh:s=bu,i.state={status:s},i.nextCallback=null,i}t.getDerivedStateFromProps=function(l,i){var o=l.in;return o&&i.status===dh?{status:bu}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(l){var i=null;if(l!==this.props){var o=this.state.status;this.props.in?o!==xu&&o!==Gc&&(i=xu):(o===xu||o===Gc)&&(i=U3)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var l=this.props.timeout,i,o,a;return i=o=a=l,l!=null&&typeof l!="number"&&(i=l.exit,o=l.enter,a=l.appear!==void 0?l.appear:o),{exit:i,enter:o,appear:a}},n.updateStatus=function(l,i){if(l===void 0&&(l=!1),i!==null)if(this.cancelNextCallback(),i===xu){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:sh.findDOMNode(this);o&&Tj(o)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bu&&this.setState({status:dh})},n.performEnter=function(l){var i=this,o=this.props.enter,a=this.context?this.context.isMounting:l,s=this.props.nodeRef?[a]:[sh.findDOMNode(this),a],u=s[0],c=s[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!l&&!o||qA.disabled){this.safeSetState({status:Gc},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:xu},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:Gc},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var l=this,i=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:sh.findDOMNode(this);if(!i||qA.disabled){this.safeSetState({status:bu},function(){l.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:U3},function(){l.props.onExiting(a),l.onTransitionEnd(o.exit,function(){l.safeSetState({status:bu},function(){l.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(l,i){i=this.setNextCallback(i),this.setState(l,i)},n.setNextCallback=function(l){var i=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,i.nextCallback=null,l(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(l,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:sh.findDOMNode(this),a=l==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}l!=null&&setTimeout(this.nextCallback,l)},n.render=function(){var l=this.state.status;if(l===dh)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=Kt(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Qe.createElement(ey.Provider,{value:null},typeof o=="function"?o(l,a):Qe.cloneElement(Qe.Children.only(o),a))},t}(Qe.Component);Pi.contextType=ey;Pi.propTypes={};function Nc(){}Pi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nc,onEntering:Nc,onEntered:Nc,onExit:Nc,onExiting:Nc,onExited:Nc};Pi.UNMOUNTED=dh;Pi.EXITED=bu;Pi.ENTERING=xu;Pi.ENTERED=Gc;Pi.EXITING=U3;var vre=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return mre(t,r)})},yw=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return gre(t,r)})},sM=function(e){K1(t,e);function t(){for(var r,l=arguments.length,i=new Array(l),o=0;oe.scrollTop;function Id(e,t){var n,r;const{timeout:l,easing:i,style:o={}}=e;return{duration:(n=o.transitionDuration)!=null?n:typeof l=="number"?l:l[t.mode]||0,easing:(r=o.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:o.transitionDelay}}function Sj(e){return yn("MuiCollapse",e)}const Tre=hn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]),kre=Tre,Sre=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Cre=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return vn(r,Sj,n)},Mre=Et("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>Ie({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&Ie({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Pre=Et("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>Ie({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Ore=Et("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>Ie({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Cj=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiCollapse"}),{addEndListener:l,children:i,className:o,collapsedSize:a="0px",component:s,easing:u,in:c,onEnter:d,onEntered:f,onEntering:p,onExit:m,onExited:g,onExiting:b,orientation:v="vertical",style:h,timeout:y=iM.standard,TransitionComponent:w=Pi}=r,_=Kt(r,Sre),x=Ie({},r,{orientation:v,collapsedSize:a}),T=Cre(x),k=po(),S=ge.useRef(),C=ge.useRef(null),M=ge.useRef(),O=typeof a=="number"?`${a}px`:a,D=v==="horizontal",P=D?"width":"height";ge.useEffect(()=>()=>{clearTimeout(S.current)},[]);const E=ge.useRef(null),I=Lr(n,E),A=L=>W=>{if(L){const U=E.current;W===void 0?L(U):L(U,W)}},F=()=>C.current?C.current[D?"clientWidth":"clientHeight"]:0,j=A((L,W)=>{C.current&&D&&(C.current.style.position="absolute"),L.style[P]=O,d&&d(L,W)}),z=A((L,W)=>{const U=F();C.current&&D&&(C.current.style.position="");const{duration:V,easing:te}=Id({style:h,timeout:y,easing:u},{mode:"enter"});if(y==="auto"){const ee=k.transitions.getAutoHeightDuration(U);L.style.transitionDuration=`${ee}ms`,M.current=ee}else L.style.transitionDuration=typeof V=="string"?V:`${V}ms`;L.style[P]=`${U}px`,L.style.transitionTimingFunction=te,p&&p(L,W)}),B=A((L,W)=>{L.style[P]="auto",f&&f(L,W)}),N=A(L=>{L.style[P]=`${F()}px`,m&&m(L)}),R=A(g),q=A(L=>{const W=F(),{duration:U,easing:V}=Id({style:h,timeout:y,easing:u},{mode:"exit"});if(y==="auto"){const te=k.transitions.getAutoHeightDuration(W);L.style.transitionDuration=`${te}ms`,M.current=te}else L.style.transitionDuration=typeof U=="string"?U:`${U}ms`;L.style[P]=O,L.style.transitionTimingFunction=V,b&&b(L)}),Y=L=>{y==="auto"&&(S.current=setTimeout(L,M.current||0)),l&&l(E.current,L)};return ke.jsx(w,Ie({in:c,onEnter:j,onEntered:B,onEntering:z,onExit:N,onExited:R,onExiting:q,addEndListener:Y,nodeRef:E,timeout:y==="auto"?null:y},_,{children:(L,W)=>ke.jsx(Mre,Ie({as:s,className:on(T.root,o,{entered:T.entered,exited:!c&&O==="0px"&&T.hidden}[L]),style:Ie({[D?"minWidth":"minHeight"]:O},h),ownerState:Ie({},x,{state:L}),ref:I},W,{children:ke.jsx(Pre,{ownerState:Ie({},x,{state:L}),className:T.wrapper,ref:C,children:ke.jsx(Ore,{ownerState:Ie({},x,{state:L}),className:T.wrapperInner,children:i})})}))}))});Cj.muiSupportAuto=!0;const Z1=Cj,Are=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:kre,default:Z1,getCollapseUtilityClass:Sj},Symbol.toStringTag,{value:"Module"}));function Mj(e){return yn("MuiPaper",e)}const Dre=hn("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"]),Ere=Dre,Rre=["className","component","elevation","square","variant"],Lre=e=>{const{square:t,elevation:n,variant:r,classes:l}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return vn(i,Mj,l)},Ire=Et("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}`]]}})(({theme:e,ownerState:t})=>{var n;return Ie({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&Ie({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${rr("#fff",Qv(t.elevation))}, ${rr("#fff",Qv(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),$re=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPaper"}),{className:l,component:i="div",elevation:o=1,square:a=!1,variant:s="elevation"}=r,u=Kt(r,Rre),c=Ie({},r,{component:i,elevation:o,square:a,variant:s}),d=Lre(c);return ke.jsx(Ire,Ie({as:i,ownerState:c,className:on(d.root,l),ref:n},u))}),nu=$re,Nre=Object.freeze(Object.defineProperty({__proto__:null,default:nu,getPaperUtilityClass:Mj,paperClasses:Ere},Symbol.toStringTag,{value:"Module"}));function Fre(e){const{className:t,classes:n,pulsate:r=!1,rippleX:l,rippleY:i,rippleSize:o,in:a,onExited:s,timeout:u}=e,[c,d]=ge.useState(!1),f=on(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+i,left:-(o/2)+l},m=on(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),ge.useEffect(()=>{if(!a&&s!=null){const g=setTimeout(s,u);return()=>{clearTimeout(g)}}},[s,a,u]),ke.jsx("span",{className:f,style:p,children:ke.jsx("span",{className:m})})}const ci=hn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),jre=["center","classes","className"];let Q1=e=>e,UA,HA,VA,GA;const H3=550,zre=80,Bre=Hi(UA||(UA=Q1` 0% { transform: scale(0); opacity: 0.1; @@ -86,7 +86,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann transform: scale(1); opacity: 0.3; } -`)),Hre=Hi(HA||(HA=J1` +`)),Wre=Hi(HA||(HA=Q1` 0% { opacity: 1; } @@ -94,7 +94,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { opacity: 0; } -`)),Vre=Hi(VA||(VA=J1` +`)),qre=Hi(VA||(VA=Q1` 0% { transform: scale(1); } @@ -106,7 +106,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { transform: scale(1); } -`)),Gre=Et("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Yre=Et(Bre,{name:"MuiTouchRipple",slot:"Ripple"})(GA||(GA=J1` +`)),Ure=Et("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Hre=Et(Fre,{name:"MuiTouchRipple",slot:"Ripple"})(GA||(GA=Q1` opacity: 0; position: absolute; @@ -149,8 +149,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann animation-iteration-count: infinite; animation-delay: 200ms; } -`),ci.rippleVisible,Ure,V3,({theme:e})=>e.transitions.easing.easeInOut,ci.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ci.child,ci.childLeaving,Hre,V3,({theme:e})=>e.transitions.easing.easeInOut,ci.childPulsate,Vre,({theme:e})=>e.transitions.easing.easeInOut),Xre=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTouchRipple"}),{center:l=!1,classes:i={},className:o}=r,a=Kt(r,Wre),[s,u]=ge.useState([]),c=ge.useRef(0),d=ge.useRef(null);ge.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const f=ge.useRef(!1),p=ge.useRef(0),m=ge.useRef(null),g=ge.useRef(null);ge.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const b=ge.useCallback(w=>{const{pulsate:_,rippleX:x,rippleY:T,rippleSize:k,cb:S}=w;u(C=>[...C,ke.jsx(Yre,{classes:{ripple:on(i.ripple,ci.ripple),rippleVisible:on(i.rippleVisible,ci.rippleVisible),ripplePulsate:on(i.ripplePulsate,ci.ripplePulsate),child:on(i.child,ci.child),childLeaving:on(i.childLeaving,ci.childLeaving),childPulsate:on(i.childPulsate,ci.childPulsate)},timeout:V3,pulsate:_,rippleX:x,rippleY:T,rippleSize:k},c.current)]),c.current+=1,d.current=S},[i]),v=ge.useCallback((w={},_={},x=()=>{})=>{const{pulsate:T=!1,center:k=l||_.pulsate,fakeElement:S=!1}=_;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const C=S?null:g.current,M=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,D,P;if(k||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)O=Math.round(M.width/2),D=Math.round(M.height/2);else{const{clientX:E,clientY:I}=w.touches&&w.touches.length>0?w.touches[0]:w;O=Math.round(E-M.left),D=Math.round(I-M.top)}if(k)P=Math.sqrt((2*M.width**2+M.height**2)/3),P%2===0&&(P+=1);else{const E=Math.max(Math.abs((C?C.clientWidth:0)-O),O)*2+2,I=Math.max(Math.abs((C?C.clientHeight:0)-D),D)*2+2;P=Math.sqrt(E**2+I**2)}w!=null&&w.touches?m.current===null&&(m.current=()=>{b({pulsate:T,rippleX:O,rippleY:D,rippleSize:P,cb:x})},p.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},qre)):b({pulsate:T,rippleX:O,rippleY:D,rippleSize:P,cb:x})},[l,b]),h=ge.useCallback(()=>{v({},{pulsate:!0})},[v]),y=ge.useCallback((w,_)=>{if(clearTimeout(p.current),(w==null?void 0:w.type)==="touchend"&&m.current){m.current(),m.current=null,p.current=setTimeout(()=>{y(w,_)});return}m.current=null,u(x=>x.length>0?x.slice(1):x),d.current=_},[]);return ge.useImperativeHandle(n,()=>({pulsate:h,start:v,stop:y}),[h,v,y]),ke.jsx(Gre,Ie({className:on(ci.root,i.root,o),ref:g},a,{children:ke.jsx(Zm,{component:null,exit:!0,children:s})}))});function Kre(e){return yn("MuiButtonBase",e)}const Zre=hn("MuiButtonBase",["root","disabled","focusVisible"]),Qre=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Jre=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:l}=e,o=vn({root:["root",t&&"disabled",n&&"focusVisible"]},Kre,l);return n&&r&&(o.root+=` ${r}`),o},eae=Et("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${Zre.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Tl=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiButtonBase"}),{action:l,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:m,onClick:g,onContextMenu:b,onDragLeave:v,onFocus:h,onFocusVisible:y,onKeyDown:w,onKeyUp:_,onMouseDown:x,onMouseLeave:T,onMouseUp:k,onTouchEnd:S,onTouchMove:C,onTouchStart:M,tabIndex:O=0,TouchRippleProps:D,touchRippleRef:P,type:E}=r,I=Kt(r,Qre),A=ge.useRef(null),F=ge.useRef(null),j=Lr(F,P),{isFocusVisibleRef:z,onFocus:B,onBlur:N,ref:R}=FC(),[q,Y]=ge.useState(!1);u&&q&&Y(!1),ge.useImperativeHandle(l,()=>({focusVisible:()=>{Y(!0),A.current.focus()}}),[]);const[L,W]=ge.useState(!1);ge.useEffect(()=>{W(!0)},[]);const U=L&&!c&&!u;ge.useEffect(()=>{q&&f&&!c&&L&&F.current.pulsate()},[c,f,q,L]);function V(ne,de,_e=d){return yo(ue=>(de&&de(ue),!_e&&F.current&&F.current[ne](ue),!0))}const te=V("start",x),ee=V("stop",b),H=V("stop",v),Z=V("stop",k),G=V("stop",ne=>{q&&ne.preventDefault(),T&&T(ne)}),X=V("start",M),Q=V("stop",S),re=V("stop",C),ae=V("stop",ne=>{N(ne),z.current===!1&&Y(!1),m&&m(ne)},!1),ie=yo(ne=>{A.current||(A.current=ne.currentTarget),B(ne),z.current===!0&&(Y(!0),y&&y(ne)),h&&h(ne)}),se=()=>{const ne=A.current;return s&&s!=="button"&&!(ne.tagName==="A"&&ne.href)},he=ge.useRef(!1),Se=yo(ne=>{f&&!he.current&&q&&F.current&&ne.key===" "&&(he.current=!0,F.current.stop(ne,()=>{F.current.start(ne)})),ne.target===ne.currentTarget&&se()&&ne.key===" "&&ne.preventDefault(),w&&w(ne),ne.target===ne.currentTarget&&se()&&ne.key==="Enter"&&!u&&(ne.preventDefault(),g&&g(ne))}),Oe=yo(ne=>{f&&ne.key===" "&&F.current&&q&&!ne.defaultPrevented&&(he.current=!1,F.current.stop(ne,()=>{F.current.pulsate(ne)})),_&&_(ne),g&&ne.target===ne.currentTarget&&se()&&ne.key===" "&&!ne.defaultPrevented&&g(ne)});let Pe=s;Pe==="button"&&(I.href||I.to)&&(Pe=p);const Me={};Pe==="button"?(Me.type=E===void 0?"button":E,Me.disabled=u):(!I.href&&!I.to&&(Me.role="button"),u&&(Me["aria-disabled"]=u));const ce=Lr(n,R,A),we=Ie({},r,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:O,focusVisible:q}),K=Jre(we);return ke.jsxs(eae,Ie({as:Pe,className:on(K.root,a),ownerState:we,onBlur:ae,onClick:g,onContextMenu:ee,onFocus:ie,onKeyDown:Se,onKeyUp:Oe,onMouseDown:te,onMouseLeave:G,onMouseUp:Z,onDragLeave:H,onTouchEnd:Q,onTouchMove:re,onTouchStart:X,ref:ce,tabIndex:u?-1:O,type:E},Me,I,{children:[o,U?ke.jsx(Xre,Ie({ref:j,center:i},D)):null]}))});function tae(e){return yn("MuiAlert",e)}const YA=hn("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Oj(e){return yn("MuiIconButton",e)}const nae=hn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Aj=nae,rae=["edge","children","className","color","disabled","disableFocusRipple","size"],aae=e=>{const{classes:t,disabled:n,color:r,edge:l,size:i}=e,o={root:["root",n&&"disabled",r!=="default"&&`color${Jt(r)}`,l&&`edge${Jt(l)}`,`size${Jt(i)}`]};return vn(o,Oj,t)},oae=Et(Tl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Jt(n.color)}`],n.edge&&t[`edge${Jt(n.edge)}`],t[`size${Jt(n.size)}`]]}})(({theme:e,ownerState:t})=>Ie({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Ie({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Ie({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Ie({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Aj.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),iae=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiIconButton"}),{edge:l=!1,children:i,className:o,color:a="default",disabled:s=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=Kt(r,rae),f=Ie({},r,{edge:l,color:a,disabled:s,disableFocusRipple:u,size:c}),p=aae(f);return ke.jsx(oae,Ie({className:on(p.root,o),centerRipple:!0,focusRipple:!u,disabled:s,ref:n,ownerState:f},d,{children:i}))}),mi=iae,lae=Object.freeze(Object.defineProperty({__proto__:null,default:mi,getIconButtonUtilityClass:Oj,iconButtonClasses:Aj},Symbol.toStringTag,{value:"Module"})),sae=Qr(ke.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),uae=Qr(ke.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),cae=Qr(ke.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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"}),"ErrorOutline"),dae=Qr(ke.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),fae=Qr(ke.jsx("path",{d:"M19 6.41L17.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"}),"Close"),pae=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],hae=e=>{const{variant:t,color:n,severity:r,classes:l}=e,i={root:["root",`${t}${Jt(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return vn(i,tae,l)},mae=Et(nu,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Jt(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?wl:_l,r=e.palette.mode==="light"?_l:wl,l=t.color||t.severity;return Ie({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},l&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${l}Color`]:n(e.palette[l].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${l}StandardBg`]:r(e.palette[l].light,.9),[`& .${YA.icon}`]:e.vars?{color:e.vars.palette.Alert[`${l}IconColor`]}:{color:e.palette[l].main}},l&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${l}Color`]:n(e.palette[l].light,.6),border:`1px solid ${(e.vars||e).palette[l].light}`,[`& .${YA.icon}`]:e.vars?{color:e.vars.palette.Alert[`${l}IconColor`]}:{color:e.palette[l].main}},l&&t.variant==="filled"&&Ie({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${l}FilledColor`],backgroundColor:e.vars.palette.Alert[`${l}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[l].dark:e.palette[l].main,color:e.palette.getContrastText(e.palette[l].main)}))}),gae=Et("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),vae=Et("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),XA=Et("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),KA={success:ke.jsx(sae,{fontSize:"inherit"}),warning:ke.jsx(uae,{fontSize:"inherit"}),error:ke.jsx(cae,{fontSize:"inherit"}),info:ke.jsx(dae,{fontSize:"inherit"})},cM=ge.forwardRef(function(t,n){var r,l,i,o,a,s;const u=pn({props:t,name:"MuiAlert"}),{action:c,children:d,className:f,closeText:p="Close",color:m,components:g={},componentsProps:b={},icon:v,iconMapping:h=KA,onClose:y,role:w="alert",severity:_="success",slotProps:x={},slots:T={},variant:k="standard"}=u,S=Kt(u,pae),C=Ie({},u,{color:m,severity:_,variant:k}),M=hae(C),O=(r=(l=T.closeButton)!=null?l:g.CloseButton)!=null?r:mi,D=(i=(o=T.closeIcon)!=null?o:g.CloseIcon)!=null?i:fae,P=(a=x.closeButton)!=null?a:b.closeButton,E=(s=x.closeIcon)!=null?s:b.closeIcon;return ke.jsxs(mae,Ie({role:w,elevation:0,ownerState:C,className:on(M.root,f),ref:n},S,{children:[v!==!1?ke.jsx(gae,{ownerState:C,className:M.icon,children:v||h[_]||KA[_]}):null,ke.jsx(vae,{ownerState:C,className:M.message,children:d}),c!=null?ke.jsx(XA,{ownerState:C,className:M.action,children:c}):null,c==null&&y?ke.jsx(XA,{ownerState:C,className:M.action,children:ke.jsx(O,Ie({size:"small","aria-label":p,title:p,color:"inherit",onClick:y},P,{children:ke.jsx(D,Ie({fontSize:"small"},E))}))}):null]}))});function Dj(e){return yn("MuiTypography",e)}const yae=hn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),bae=yae,xae=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],wae=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:l,variant:i,classes:o}=e,a={root:["root",i,e.align!=="inherit"&&`align${Jt(t)}`,n&&"gutterBottom",r&&"noWrap",l&&"paragraph"]};return vn(a,Dj,o)},_ae=Et("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${Jt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Ie({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),ZA={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Tae={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},kae=e=>Tae[e]||e,Sae=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTypography"}),l=kae(r.color),i=X1(Ie({},r,{color:l})),{align:o="inherit",className:a,component:s,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:p=ZA}=i,m=Kt(i,xae),g=Ie({},i,{align:o,color:l,className:a,component:s,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:p}),b=s||(d?"p":p[f]||ZA[f])||"span",v=wae(g);return ke.jsx(_ae,Ie({as:b,ref:n,ownerState:g,className:on(v.root,a)},m))}),pr=Sae,Cae=Object.freeze(Object.defineProperty({__proto__:null,default:pr,getTypographyUtilityClass:Dj,typographyClasses:bae},Symbol.toStringTag,{value:"Module"}));function Mae(e){return yn("MuiAlertTitle",e)}hn("MuiAlertTitle",["root"]);const Pae=["className"],Oae=e=>{const{classes:t}=e;return vn({root:["root"]},Mae,t)},Aae=Et(pr,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),dM=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiAlertTitle"}),{className:l}=r,i=Kt(r,Pae),o=r,a=Oae(o);return ke.jsx(Aae,Ie({gutterBottom:!0,component:"div",ownerState:o,ref:n,className:on(a.root,l)},i))});function sm(e){return typeof e=="string"}function ph(e,t,n){return e===void 0||sm(e)?t:Ie({},t,{ownerState:Ie({},t.ownerState,n)})}const Dae={disableDefaultClasses:!1},Eae=ge.createContext(Dae);function Rae(e){const{disableDefaultClasses:t}=ge.useContext(Eae);return n=>t?"":e(n)}function Ej(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 Lae(e,t,n){return typeof e=="function"?e(t,n):e}function QA(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Iae(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:l,className:i}=e;if(!t){const p=on(l==null?void 0:l.className,r==null?void 0:r.className,i,n==null?void 0:n.className),m=Ie({},n==null?void 0:n.style,l==null?void 0:l.style,r==null?void 0:r.style),g=Ie({},n,l,r);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const o=Ej(Ie({},l,r)),a=QA(r),s=QA(l),u=t(o),c=on(u==null?void 0:u.className,n==null?void 0:n.className,i,l==null?void 0:l.className,r==null?void 0:r.className),d=Ie({},u==null?void 0:u.style,n==null?void 0:n.style,l==null?void 0:l.style,r==null?void 0:r.style),f=Ie({},u,n,s,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const $ae=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ui(e){var t;const{elementType:n,externalSlotProps:r,ownerState:l,skipResolvingSlotProps:i=!1}=e,o=Kt(e,$ae),a=i?{}:Lae(r,l),{props:s,internalRef:u}=Iae(Ie({},o,{externalSlotProps:a})),c=Lr(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return ph(n,Ie({},s,{ref:c}),l)}const Nae=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Fae(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 jae(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 zae(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||jae(e))}function Bae(e){const t=[],n=[];return Array.from(e.querySelectorAll(Nae)).forEach((r,l)=>{const i=Fae(r);i===-1||!zae(r)||(i===0?t.push(r):n.push({documentOrder:l,tabIndex:i,node:r}))}),n.sort((r,l)=>r.tabIndex===l.tabIndex?r.documentOrder-l.documentOrder:r.tabIndex-l.tabIndex).map(r=>r.node).concat(t)}function Wae(){return!0}function Rj(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:l=!1,getTabbable:i=Bae,isEnabled:o=Wae,open:a}=e,s=ge.useRef(!1),u=ge.useRef(null),c=ge.useRef(null),d=ge.useRef(null),f=ge.useRef(null),p=ge.useRef(!1),m=ge.useRef(null),g=Lr(t.ref,m),b=ge.useRef(null);ge.useEffect(()=>{!a||!m.current||(p.current=!n)},[n,a]),ge.useEffect(()=>{if(!a||!m.current)return;const y=Aa(m.current);return m.current.contains(y.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{l||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}},[a]),ge.useEffect(()=>{if(!a||!m.current)return;const y=Aa(m.current),w=T=>{b.current=T,!(r||!o()||T.key!=="Tab")&&y.activeElement===m.current&&T.shiftKey&&(s.current=!0,c.current&&c.current.focus())},_=()=>{const T=m.current;if(T===null)return;if(!y.hasFocus()||!o()||s.current){s.current=!1;return}if(T.contains(y.activeElement)||r&&y.activeElement!==u.current&&y.activeElement!==c.current)return;if(y.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let k=[];if((y.activeElement===u.current||y.activeElement===c.current)&&(k=i(m.current)),k.length>0){var S,C;const M=!!((S=b.current)!=null&&S.shiftKey&&((C=b.current)==null?void 0:C.key)==="Tab"),O=k[0],D=k[k.length-1];typeof O!="string"&&typeof D!="string"&&(M?D.focus():O.focus())}else T.focus()};y.addEventListener("focusin",_),y.addEventListener("keydown",w,!0);const x=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(x),y.removeEventListener("focusin",_),y.removeEventListener("keydown",w,!0)}},[n,r,l,o,a,i]);const v=y=>{d.current===null&&(d.current=y.relatedTarget),p.current=!0,f.current=y.target;const w=t.props.onFocus;w&&w(y)},h=y=>{d.current===null&&(d.current=y.relatedTarget),p.current=!0};return ke.jsxs(ge.Fragment,{children:[ke.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:u,"data-testid":"sentinelStart"}),ge.cloneElement(t,{ref:g,onFocus:v}),ke.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:c,"data-testid":"sentinelEnd"})]})}var Lo="top",ki="bottom",Si="right",Io="left",fM="auto",Qm=[Lo,ki,Si,Io],Nd="start",um="end",qae="clippingParents",Lj="viewport",Zf="popper",Uae="reference",JA=Qm.reduce(function(e,t){return e.concat([t+"-"+Nd,t+"-"+um])},[]),Ij=[].concat(Qm,[fM]).reduce(function(e,t){return e.concat([t,t+"-"+Nd,t+"-"+um])},[]),Hae="beforeRead",Vae="read",Gae="afterRead",Yae="beforeMain",Xae="main",Kae="afterMain",Zae="beforeWrite",Qae="write",Jae="afterWrite",eoe=[Hae,Vae,Gae,Yae,Xae,Kae,Zae,Qae,Jae];function kl(e){return e?(e.nodeName||"").toLowerCase():null}function ti(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xu(e){var t=ti(e).Element;return e instanceof t||e instanceof Element}function xi(e){var t=ti(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function pM(e){if(typeof ShadowRoot>"u")return!1;var t=ti(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function toe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},l=t.attributes[n]||{},i=t.elements[n];!xi(i)||!kl(i)||(Object.assign(i.style,r),Object.keys(l).forEach(function(o){var a=l[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function noe(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 l=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(s,u){return s[u]="",s},{});!xi(l)||!kl(l)||(Object.assign(l.style,a),Object.keys(i).forEach(function(s){l.removeAttribute(s)}))})}}const roe={name:"applyStyles",enabled:!0,phase:"write",fn:toe,effect:noe,requires:["computeStyles"]};function vl(e){return e.split("-")[0]}var Wu=Math.max,ty=Math.min,Fd=Math.round;function G3(){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 $j(){return!/^((?!chrome|android).)*safari/i.test(G3())}function jd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),l=1,i=1;t&&xi(e)&&(l=e.offsetWidth>0&&Fd(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Fd(r.height)/e.offsetHeight||1);var o=Xu(e)?ti(e):window,a=o.visualViewport,s=!$j()&&n,u=(r.left+(s&&a?a.offsetLeft:0))/l,c=(r.top+(s&&a?a.offsetTop:0))/i,d=r.width/l,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function hM(e){var t=jd(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 Nj(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&pM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ts(e){return ti(e).getComputedStyle(e)}function aoe(e){return["table","td","th"].indexOf(kl(e))>=0}function ru(e){return((Xu(e)?e.ownerDocument:e.document)||window.document).documentElement}function eb(e){return kl(e)==="html"?e:e.assignedSlot||e.parentNode||(pM(e)?e.host:null)||ru(e)}function e8(e){return!xi(e)||ts(e).position==="fixed"?null:e.offsetParent}function ooe(e){var t=/firefox/i.test(G3()),n=/Trident/i.test(G3());if(n&&xi(e)){var r=ts(e);if(r.position==="fixed")return null}var l=eb(e);for(pM(l)&&(l=l.host);xi(l)&&["html","body"].indexOf(kl(l))<0;){var i=ts(l);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return l;l=l.parentNode}return null}function Jm(e){for(var t=ti(e),n=e8(e);n&&aoe(n)&&ts(n).position==="static";)n=e8(n);return n&&(kl(n)==="html"||kl(n)==="body"&&ts(n).position==="static")?t:n||ooe(e)||t}function mM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ah(e,t,n){return Wu(e,ty(t,n))}function ioe(e,t,n){var r=Ah(e,t,n);return r>n?n:r}function Fj(){return{top:0,right:0,bottom:0,left:0}}function jj(e){return Object.assign({},Fj(),e)}function zj(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var loe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,jj(typeof t!="number"?t:zj(t,Qm))};function soe(e){var t,n=e.state,r=e.name,l=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=vl(n.placement),s=mM(a),u=[Io,Si].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!o)){var d=loe(l.padding,n),f=hM(i),p=s==="y"?Lo:Io,m=s==="y"?ki:Si,g=n.rects.reference[c]+n.rects.reference[s]-o[s]-n.rects.popper[c],b=o[s]-n.rects.reference[s],v=Jm(i),h=v?s==="y"?v.clientHeight||0:v.clientWidth||0:0,y=g/2-b/2,w=d[p],_=h-f[c]-d[m],x=h/2-f[c]/2+y,T=Ah(w,x,_),k=s;n.modifiersData[r]=(t={},t[k]=T,t.centerOffset=T-x,t)}}function uoe(e){var t=e.state,n=e.options,r=n.element,l=r===void 0?"[data-popper-arrow]":r;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||Nj(t.elements.popper,l)&&(t.elements.arrow=l))}const coe={name:"arrow",enabled:!0,phase:"main",fn:soe,effect:uoe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zd(e){return e.split("-")[1]}var doe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function foe(e,t){var n=e.x,r=e.y,l=t.devicePixelRatio||1;return{x:Fd(n*l)/l||0,y:Fd(r*l)/l||0}}function t8(e){var t,n=e.popper,r=e.popperRect,l=e.placement,i=e.variation,o=e.offsets,a=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,g=m===void 0?0:m,b=typeof c=="function"?c({x:p,y:g}):{x:p,y:g};p=b.x,g=b.y;var v=o.hasOwnProperty("x"),h=o.hasOwnProperty("y"),y=Io,w=Lo,_=window;if(u){var x=Jm(n),T="clientHeight",k="clientWidth";if(x===ti(n)&&(x=ru(n),ts(x).position!=="static"&&a==="absolute"&&(T="scrollHeight",k="scrollWidth")),x=x,l===Lo||(l===Io||l===Si)&&i===um){w=ki;var S=d&&x===_&&_.visualViewport?_.visualViewport.height:x[T];g-=S-r.height,g*=s?1:-1}if(l===Io||(l===Lo||l===ki)&&i===um){y=Si;var C=d&&x===_&&_.visualViewport?_.visualViewport.width:x[k];p-=C-r.width,p*=s?1:-1}}var M=Object.assign({position:a},u&&doe),O=c===!0?foe({x:p,y:g},ti(n)):{x:p,y:g};if(p=O.x,g=O.y,s){var D;return Object.assign({},M,(D={},D[w]=h?"0":"",D[y]=v?"0":"",D.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",D))}return Object.assign({},M,(t={},t[w]=h?g+"px":"",t[y]=v?p+"px":"",t.transform="",t))}function poe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,l=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,a=n.roundOffsets,s=a===void 0?!0:a,u={placement:vl(t.placement),variation:zd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,t8(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,t8(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const hoe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:poe,data:{}};var n0={passive:!0};function moe(e){var t=e.state,n=e.instance,r=e.options,l=r.scroll,i=l===void 0?!0:l,o=r.resize,a=o===void 0?!0:o,s=ti(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,n0)}),a&&s.addEventListener("resize",n.update,n0),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,n0)}),a&&s.removeEventListener("resize",n.update,n0)}}const goe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:moe,data:{}};var voe={left:"right",right:"left",bottom:"top",top:"bottom"};function J0(e){return e.replace(/left|right|bottom|top/g,function(t){return voe[t]})}var yoe={start:"end",end:"start"};function n8(e){return e.replace(/start|end/g,function(t){return yoe[t]})}function gM(e){var t=ti(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function vM(e){return jd(ru(e)).left+gM(e).scrollLeft}function boe(e,t){var n=ti(e),r=ru(e),l=n.visualViewport,i=r.clientWidth,o=r.clientHeight,a=0,s=0;if(l){i=l.width,o=l.height;var u=$j();(u||!u&&t==="fixed")&&(a=l.offsetLeft,s=l.offsetTop)}return{width:i,height:o,x:a+vM(e),y:s}}function xoe(e){var t,n=ru(e),r=gM(e),l=(t=e.ownerDocument)==null?void 0:t.body,i=Wu(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),o=Wu(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),a=-r.scrollLeft+vM(e),s=-r.scrollTop;return ts(l||n).direction==="rtl"&&(a+=Wu(n.clientWidth,l?l.clientWidth:0)-i),{width:i,height:o,x:a,y:s}}function yM(e){var t=ts(e),n=t.overflow,r=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+r)}function Bj(e){return["html","body","#document"].indexOf(kl(e))>=0?e.ownerDocument.body:xi(e)&&yM(e)?e:Bj(eb(e))}function Dh(e,t){var n;t===void 0&&(t=[]);var r=Bj(e),l=r===((n=e.ownerDocument)==null?void 0:n.body),i=ti(r),o=l?[i].concat(i.visualViewport||[],yM(r)?r:[]):r,a=t.concat(o);return l?a:a.concat(Dh(eb(o)))}function Y3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function woe(e,t){var n=jd(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 r8(e,t,n){return t===Lj?Y3(boe(e,n)):Xu(t)?woe(t,n):Y3(xoe(ru(e)))}function _oe(e){var t=Dh(eb(e)),n=["absolute","fixed"].indexOf(ts(e).position)>=0,r=n&&xi(e)?Jm(e):e;return Xu(r)?t.filter(function(l){return Xu(l)&&Nj(l,r)&&kl(l)!=="body"}):[]}function Toe(e,t,n,r){var l=t==="clippingParents"?_oe(e):[].concat(t),i=[].concat(l,[n]),o=i[0],a=i.reduce(function(s,u){var c=r8(e,u,r);return s.top=Wu(c.top,s.top),s.right=ty(c.right,s.right),s.bottom=ty(c.bottom,s.bottom),s.left=Wu(c.left,s.left),s},r8(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Wj(e){var t=e.reference,n=e.element,r=e.placement,l=r?vl(r):null,i=r?zd(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,s;switch(l){case Lo:s={x:o,y:t.y-n.height};break;case ki:s={x:o,y:t.y+t.height};break;case Si:s={x:t.x+t.width,y:a};break;case Io:s={x:t.x-n.width,y:a};break;default:s={x:t.x,y:t.y}}var u=l?mM(l):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Nd:s[u]=s[u]-(t[c]/2-n[c]/2);break;case um:s[u]=s[u]+(t[c]/2-n[c]/2);break}}return s}function cm(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,a=n.boundary,s=a===void 0?qae:a,u=n.rootBoundary,c=u===void 0?Lj:u,d=n.elementContext,f=d===void 0?Zf:d,p=n.altBoundary,m=p===void 0?!1:p,g=n.padding,b=g===void 0?0:g,v=jj(typeof b!="number"?b:zj(b,Qm)),h=f===Zf?Uae:Zf,y=e.rects.popper,w=e.elements[m?h:f],_=Toe(Xu(w)?w:w.contextElement||ru(e.elements.popper),s,c,o),x=jd(e.elements.reference),T=Wj({reference:x,element:y,strategy:"absolute",placement:l}),k=Y3(Object.assign({},y,T)),S=f===Zf?k:x,C={top:_.top-S.top+v.top,bottom:S.bottom-_.bottom+v.bottom,left:_.left-S.left+v.left,right:S.right-_.right+v.right},M=e.modifiersData.offset;if(f===Zf&&M){var O=M[l];Object.keys(C).forEach(function(D){var P=[Si,ki].indexOf(D)>=0?1:-1,E=[Lo,ki].indexOf(D)>=0?"y":"x";C[D]+=O[E]*P})}return C}function koe(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=n.boundary,i=n.rootBoundary,o=n.padding,a=n.flipVariations,s=n.allowedAutoPlacements,u=s===void 0?Ij:s,c=zd(r),d=c?a?JA:JA.filter(function(m){return zd(m)===c}):Qm,f=d.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,g){return m[g]=cm(e,{placement:g,boundary:l,rootBoundary:i,padding:o})[vl(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function Soe(e){if(vl(e)===fM)return[];var t=J0(e);return[n8(e),t,n8(t)]}function Coe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,a=o===void 0?!0:o,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,g=n.allowedAutoPlacements,b=t.options.placement,v=vl(b),h=v===b,y=s||(h||!m?[J0(b)]:Soe(b)),w=[b].concat(y).reduce(function(q,Y){return q.concat(vl(Y)===fM?koe(t,{placement:Y,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:g}):Y)},[]),_=t.rects.reference,x=t.rects.popper,T=new Map,k=!0,S=w[0],C=0;C=0,E=P?"width":"height",I=cm(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),A=P?D?Si:Io:D?ki:Lo;_[E]>x[E]&&(A=J0(A));var F=J0(A),j=[];if(i&&j.push(I[O]<=0),a&&j.push(I[A]<=0,I[F]<=0),j.every(function(q){return q})){S=M,k=!1;break}T.set(M,j)}if(k)for(var z=m?3:1,B=function(Y){var L=w.find(function(W){var U=T.get(W);if(U)return U.slice(0,Y).every(function(V){return V})});if(L)return S=L,"break"},N=z;N>0;N--){var R=B(N);if(R==="break")break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}}const Moe={name:"flip",enabled:!0,phase:"main",fn:Coe,requiresIfExists:["offset"],data:{_skip:!1}};function a8(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 o8(e){return[Lo,Si,ki,Io].some(function(t){return e[t]>=0})}function Poe(e){var t=e.state,n=e.name,r=t.rects.reference,l=t.rects.popper,i=t.modifiersData.preventOverflow,o=cm(t,{elementContext:"reference"}),a=cm(t,{altBoundary:!0}),s=a8(o,r),u=a8(a,l,i),c=o8(s),d=o8(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Ooe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Poe};function Aoe(e,t,n){var r=vl(e),l=[Io,Lo].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],a=i[1];return o=o||0,a=(a||0)*l,[Io,Si].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function Doe(e){var t=e.state,n=e.options,r=e.name,l=n.offset,i=l===void 0?[0,0]:l,o=Ij.reduce(function(c,d){return c[d]=Aoe(d,t.rects,i),c},{}),a=o[t.placement],s=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const Eoe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Doe};function Roe(e){var t=e.state,n=e.name;t.modifiersData[n]=Wj({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Loe={name:"popperOffsets",enabled:!0,phase:"read",fn:Roe,data:{}};function Ioe(e){return e==="x"?"y":"x"}function $oe(e){var t=e.state,n=e.options,r=e.name,l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,a=o===void 0?!1:o,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,g=m===void 0?0:m,b=cm(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),v=vl(t.placement),h=zd(t.placement),y=!h,w=mM(v),_=Ioe(w),x=t.modifiersData.popperOffsets,T=t.rects.reference,k=t.rects.popper,S=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,C=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(x){if(i){var D,P=w==="y"?Lo:Io,E=w==="y"?ki:Si,I=w==="y"?"height":"width",A=x[w],F=A+b[P],j=A-b[E],z=p?-k[I]/2:0,B=h===Nd?T[I]:k[I],N=h===Nd?-k[I]:-T[I],R=t.elements.arrow,q=p&&R?hM(R):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Fj(),L=Y[P],W=Y[E],U=Ah(0,T[I],q[I]),V=y?T[I]/2-z-U-L-C.mainAxis:B-U-L-C.mainAxis,te=y?-T[I]/2+z+U+W+C.mainAxis:N+U+W+C.mainAxis,ee=t.elements.arrow&&Jm(t.elements.arrow),H=ee?w==="y"?ee.clientTop||0:ee.clientLeft||0:0,Z=(D=M==null?void 0:M[w])!=null?D:0,G=A+V-Z-H,X=A+te-Z,Q=Ah(p?ty(F,G):F,A,p?Wu(j,X):j);x[w]=Q,O[w]=Q-A}if(a){var re,ae=w==="x"?Lo:Io,ie=w==="x"?ki:Si,se=x[_],he=_==="y"?"height":"width",Se=se+b[ae],Oe=se-b[ie],Pe=[Lo,Io].indexOf(v)!==-1,Me=(re=M==null?void 0:M[_])!=null?re:0,ce=Pe?Se:se-T[he]-k[he]-Me+C.altAxis,we=Pe?se+T[he]+k[he]-Me-C.altAxis:Oe,K=p&&Pe?ioe(ce,se,we):Ah(p?ce:Se,se,p?we:Oe);x[_]=K,O[_]=K-se}t.modifiersData[r]=O}}const Noe={name:"preventOverflow",enabled:!0,phase:"main",fn:$oe,requiresIfExists:["offset"]};function Foe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function joe(e){return e===ti(e)||!xi(e)?gM(e):Foe(e)}function zoe(e){var t=e.getBoundingClientRect(),n=Fd(t.width)/e.offsetWidth||1,r=Fd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Boe(e,t,n){n===void 0&&(n=!1);var r=xi(t),l=xi(t)&&zoe(t),i=ru(t),o=jd(e,l,n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((kl(t)!=="body"||yM(i))&&(a=joe(t)),xi(t)?(s=jd(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=vM(i))),{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function Woe(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function l(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var s=t.get(a);s&&l(s)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||l(i)}),r}function qoe(e){var t=Woe(e);return eoe.reduce(function(n,r){return n.concat(t.filter(function(l){return l.phase===r}))},[])}function Uoe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Hoe(e){var t=e.reduce(function(n,r){var l=n[r.name];return n[r.name]=l?Object.assign({},l,r,{options:Object.assign({},l.options,r.options),data:Object.assign({},l.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var i8={placement:"bottom",modifiers:[],strategy:"absolute"};function l8(){for(var e=arguments.length,t=new Array(e),n=0;n{i||a(Xoe(l)||document.body)},[l,i]),no(()=>{if(o&&!i)return Vv(n,o),()=>{Vv(n,null)}},[n,o,i]),i){if(ge.isValidElement(r)){const u={ref:s};return ge.cloneElement(r,u)}return ke.jsx(ge.Fragment,{children:r})}return ke.jsx(ge.Fragment,{children:o&&dc.createPortal(r,o)})});function Koe(e){return yn("MuiPopper",e)}hn("MuiPopper",["root"]);const Zoe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Qoe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Joe(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 X3(e){return typeof e=="function"?e():e}function eie(e){return e.nodeType!==void 0}const tie=()=>vn({root:["root"]},Rae(Koe)),nie={},rie=ge.forwardRef(function(t,n){var r;const{anchorEl:l,children:i,direction:o,disablePortal:a,modifiers:s,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:p={},slots:m={},TransitionProps:g}=t,b=Kt(t,Zoe),v=ge.useRef(null),h=Lr(v,n),y=ge.useRef(null),w=Lr(y,f),_=ge.useRef(w);no(()=>{_.current=w},[w]),ge.useImperativeHandle(f,()=>y.current,[]);const x=Joe(c,o),[T,k]=ge.useState(x),[S,C]=ge.useState(X3(l));ge.useEffect(()=>{y.current&&y.current.forceUpdate()}),ge.useEffect(()=>{l&&C(X3(l))},[l]),no(()=>{if(!S||!u)return;const E=F=>{k(F.placement)};let I=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{E(F)}}];s!=null&&(I=I.concat(s)),d&&d.modifiers!=null&&(I=I.concat(d.modifiers));const A=Yoe(S,v.current,Ie({placement:x},d,{modifiers:I}));return _.current(A),()=>{A.destroy(),_.current(null)}},[S,a,s,u,d,x]);const M={placement:T};g!==null&&(M.TransitionProps=g);const O=tie(),D=(r=m.root)!=null?r:"div",P=Ui({elementType:D,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:h},ownerState:t,className:O.root});return ke.jsx(D,Ie({},P,{children:typeof i=="function"?i(M):i}))}),aie=ge.forwardRef(function(t,n){const{anchorEl:r,children:l,container:i,direction:o="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=nie,popperRef:p,style:m,transition:g=!1,slotProps:b={},slots:v={}}=t,h=Kt(t,Qoe),[y,w]=ge.useState(!0),_=()=>{w(!1)},x=()=>{w(!0)};if(!s&&!c&&(!g||y))return null;let T;if(i)T=i;else if(r){const C=X3(r);T=C&&eie(C)?Aa(C).body:Aa(null).body}const k=!c&&s&&(!g||y)?"none":void 0,S=g?{in:c,onEnter:_,onExited:x}:void 0;return ke.jsx(qj,{disablePortal:a,container:T,children:ke.jsx(rie,Ie({anchorEl:r,direction:o,disablePortal:a,modifiers:u,ref:n,open:g?!y:c,placement:d,popperOptions:f,popperRef:p,slotProps:b,slots:v},h,{style:Ie({position:"fixed",top:0,left:0,display:k},m),TransitionProps:S,children:l}))})});function oie(e){const t=Aa(e);return t.body===e?bl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Eh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function s8(e){return parseInt(bl(e).getComputedStyle(e).paddingRight,10)||0}function iie(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function u8(e,t,n,r,l){const i=[t,n,...r];[].forEach.call(e.children,o=>{const a=i.indexOf(o)===-1,s=!iie(o);a&&s&&Eh(o,l)})}function xw(e,t){let n=-1;return e.some((r,l)=>t(r)?(n=l,!0):!1),n}function lie(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(oie(r)){const o=LF(Aa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${s8(r)+o}px`;const a=Aa(r).querySelectorAll(".mui-fixed");[].forEach.call(a,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${s8(s)+o}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Aa(r).body;else{const o=r.parentElement,a=bl(r);i=(o==null?void 0:o.nodeName)==="HTML"&&a.getComputedStyle(o).overflowY==="scroll"?o:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:o,property:a})=>{i?o.style.setProperty(a,i):o.style.removeProperty(a)})}}function sie(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class uie{constructor(){this.containers=void 0,this.modals=void 0,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&&Eh(t.modalRef,!1);const l=sie(n);u8(n,t.mount,t.modalRef,l,!0);const i=xw(this.containers,o=>o.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:l}),r)}mount(t,n){const r=xw(this.containers,i=>i.modals.indexOf(t)!==-1),l=this.containers[r];l.restore||(l.restore=lie(l,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const l=xw(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[l];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Eh(t.modalRef,n),u8(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(l,1);else{const o=i.modals[i.modals.length-1];o.modalRef&&Eh(o.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function cie(e){return typeof e=="function"?e():e}function die(e){return e?e.props.hasOwnProperty("in"):!1}const fie=new uie;function pie(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:l=fie,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:u,open:c,rootRef:d}=e,f=ge.useRef({}),p=ge.useRef(null),m=ge.useRef(null),g=Lr(m,d),[b,v]=ge.useState(!c),h=die(s);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const w=()=>Aa(p.current),_=()=>(f.current.modalRef=m.current,f.current.mount=p.current,f.current),x=()=>{l.mount(_(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},T=yo(()=>{const I=cie(t)||w().body;l.add(_(),I),m.current&&x()}),k=ge.useCallback(()=>l.isTopModal(_()),[l]),S=yo(I=>{p.current=I,I&&(c&&k()?x():m.current&&Eh(m.current,y))}),C=ge.useCallback(()=>{l.remove(_(),y)},[y,l]);ge.useEffect(()=>()=>{C()},[C]),ge.useEffect(()=>{c?T():(!h||!i)&&C()},[c,C,h,i,T]);const M=I=>A=>{var F;(F=I.onKeyDown)==null||F.call(I,A),!(A.key!=="Escape"||!k())&&(n||(A.stopPropagation(),u&&u(A,"escapeKeyDown")))},O=I=>A=>{var F;(F=I.onClick)==null||F.call(I,A),A.target===A.currentTarget&&u&&u(A,"backdropClick")};return{getRootProps:(I={})=>{const A=Ej(e);delete A.onTransitionEnter,delete A.onTransitionExited;const F=Ie({},A,I);return Ie({role:"presentation"},F,{onKeyDown:M(F),ref:g})},getBackdropProps:(I={})=>{const A=I;return Ie({"aria-hidden":!0},A,{onClick:O(A),open:c})},getTransitionProps:()=>{const I=()=>{v(!1),o&&o()},A=()=>{v(!0),a&&a(),i&&C()};return{onEnter:F3(I,s==null?void 0:s.props.onEnter),onExited:F3(A,s==null?void 0:s.props.onExited)}},rootRef:g,portalRef:S,isTopModal:k,exited:b,hasTransition:h}}const hie=["onChange","maxRows","minRows","style","value"];function r0(e){return parseInt(e,10)||0}const mie={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function c8(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const gie=ge.forwardRef(function(t,n){const{onChange:r,maxRows:l,minRows:i=1,style:o,value:a}=t,s=Kt(t,hie),{current:u}=ge.useRef(a!=null),c=ge.useRef(null),d=Lr(n,c),f=ge.useRef(null),p=ge.useRef(0),[m,g]=ge.useState({outerHeightStyle:0}),b=ge.useCallback(()=>{const w=c.current,x=bl(w).getComputedStyle(w);if(x.width==="0px")return{outerHeightStyle:0};const T=f.current;T.style.width=x.width,T.value=w.value||t.placeholder||"x",T.value.slice(-1)===` -`&&(T.value+=" ");const k=x.boxSizing,S=r0(x.paddingBottom)+r0(x.paddingTop),C=r0(x.borderBottomWidth)+r0(x.borderTopWidth),M=T.scrollHeight;T.value="x";const O=T.scrollHeight;let D=M;i&&(D=Math.max(Number(i)*O,D)),l&&(D=Math.min(Number(l)*O,D)),D=Math.max(D,O);const P=D+(k==="border-box"?S+C:0),E=Math.abs(D-M)<=1;return{outerHeightStyle:P,overflow:E}},[l,i,t.placeholder]),v=(w,_)=>{const{outerHeightStyle:x,overflow:T}=_;return p.current<20&&(x>0&&Math.abs((w.outerHeightStyle||0)-x)>1||w.overflow!==T)?(p.current+=1,{overflow:T,outerHeightStyle:x}):w},h=ge.useCallback(()=>{const w=b();c8(w)||g(_=>v(_,w))},[b]);no(()=>{const w=()=>{const M=b();c8(M)||dc.flushSync(()=>{g(O=>v(O,M))})},_=()=>{p.current=0,w()};let x;const T=Hm(_),k=c.current,S=bl(k);S.addEventListener("resize",T);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(_),C.observe(k)),()=>{T.clear(),cancelAnimationFrame(x),S.removeEventListener("resize",T),C&&C.disconnect()}},[b]),no(()=>{h()}),ge.useEffect(()=>{p.current=0},[a]);const y=w=>{p.current=0,u||h(),r&&r(w)};return ke.jsxs(ge.Fragment,{children:[ke.jsx("textarea",Ie({value:a,onChange:y,ref:d,rows:i,style:Ie({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},o)},s)),ke.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:Ie({},mie.shadow,o,{paddingTop:0,paddingBottom:0})})]})}),vie=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],yie=Et(aie,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bM=ge.forwardRef(function(t,n){var r;const l=Y1(),i=pn({props:t,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:p,open:m,placement:g,popperOptions:b,popperRef:v,transition:h,slots:y,slotProps:w}=i,_=Kt(i,vie),x=(r=y==null?void 0:y.root)!=null?r:s==null?void 0:s.Root,T=Ie({anchorEl:o,container:c,disablePortal:d,keepMounted:f,modifiers:p,open:m,placement:g,popperOptions:b,popperRef:v,transition:h},_);return ke.jsx(yie,Ie({as:a,direction:l==null?void 0:l.direction,slots:{root:x},slotProps:w??u},T,{ref:n}))}),bie=Qr(ke.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"}),"Cancel");function Uj(e){return yn("MuiChip",e)}const xie=hn("MuiChip",["root","sizeSmall","sizeMedium","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"]),dr=xie,wie=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],_ie=e=>{const{classes:t,disabled:n,size:r,color:l,iconColor:i,onDelete:o,clickable:a,variant:s}=e,u={root:["root",s,n&&"disabled",`size${Jt(r)}`,`color${Jt(l)}`,a&&"clickable",a&&`clickableColor${Jt(l)}`,o&&"deletable",o&&`deletableColor${Jt(l)}`,`${s}${Jt(l)}`],label:["label",`label${Jt(r)}`],avatar:["avatar",`avatar${Jt(r)}`,`avatarColor${Jt(l)}`],icon:["icon",`icon${Jt(r)}`,`iconColor${Jt(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Jt(r)}`,`deleteIconColor${Jt(l)}`,`deleteIcon${Jt(s)}Color${Jt(l)}`]};return vn(u,Uj,t)},Tie=Et("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:l,clickable:i,onDelete:o,size:a,variant:s}=n;return[{[`& .${dr.avatar}`]:t.avatar},{[`& .${dr.avatar}`]:t[`avatar${Jt(a)}`]},{[`& .${dr.avatar}`]:t[`avatarColor${Jt(r)}`]},{[`& .${dr.icon}`]:t.icon},{[`& .${dr.icon}`]:t[`icon${Jt(a)}`]},{[`& .${dr.icon}`]:t[`iconColor${Jt(l)}`]},{[`& .${dr.deleteIcon}`]:t.deleteIcon},{[`& .${dr.deleteIcon}`]:t[`deleteIcon${Jt(a)}`]},{[`& .${dr.deleteIcon}`]:t[`deleteIconColor${Jt(r)}`]},{[`& .${dr.deleteIcon}`]:t[`deleteIcon${Jt(s)}Color${Jt(r)}`]},t.root,t[`size${Jt(a)}`],t[`color${Jt(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Jt(r)})`],o&&t.deletable,o&&r!=="default"&&t[`deletableColor${Jt(r)}`],t[s],t[`${s}${Jt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return Ie({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,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",[`&.${dr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${dr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${dr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${dr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${dr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${dr.icon}`]:Ie({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&Ie({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${dr.deleteIcon}`]:Ie({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:rr(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:rr(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:rr(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${dr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${dr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>Ie({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${dr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${dr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>Ie({},t.variant==="outlined"&&{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]}`,[`&.${dr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${dr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${dr.avatar}`]:{marginLeft:4},[`& .${dr.avatarSmall}`]:{marginLeft:2},[`& .${dr.icon}`]:{marginLeft:4},[`& .${dr.iconSmall}`]:{marginLeft:2},[`& .${dr.deleteIcon}`]:{marginRight:5},[`& .${dr.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:rr(e.palette[t.color].main,.7)}`,[`&.${dr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${dr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:rr(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${dr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:rr(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),kie=Et("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Jt(r)}`]]}})(({ownerState:e})=>Ie({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function d8(e){return e.key==="Backspace"||e.key==="Delete"}const Sie=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiChip"}),{avatar:l,className:i,clickable:o,color:a="default",component:s,deleteIcon:u,disabled:c=!1,icon:d,label:f,onClick:p,onDelete:m,onKeyDown:g,onKeyUp:b,size:v="medium",variant:h="filled",tabIndex:y,skipFocusWhenDisabled:w=!1}=r,_=Kt(r,wie),x=ge.useRef(null),T=Lr(x,n),k=j=>{j.stopPropagation(),m&&m(j)},S=j=>{j.currentTarget===j.target&&d8(j)&&j.preventDefault(),g&&g(j)},C=j=>{j.currentTarget===j.target&&(m&&d8(j)?m(j):j.key==="Escape"&&x.current&&x.current.blur()),b&&b(j)},M=o!==!1&&p?!0:o,O=M||m?Tl:s||"div",D=Ie({},r,{component:O,disabled:c,size:v,color:a,iconColor:ge.isValidElement(d)&&d.props.color||a,onDelete:!!m,clickable:M,variant:h}),P=_ie(D),E=O===Tl?Ie({component:s||"div",focusVisibleClassName:P.focusVisible},m&&{disableRipple:!0}):{};let I=null;m&&(I=u&&ge.isValidElement(u)?ge.cloneElement(u,{className:on(u.props.className,P.deleteIcon),onClick:k}):ke.jsx(bie,{className:on(P.deleteIcon),onClick:k}));let A=null;l&&ge.isValidElement(l)&&(A=ge.cloneElement(l,{className:on(P.avatar,l.props.className)}));let F=null;return d&&ge.isValidElement(d)&&(F=ge.cloneElement(d,{className:on(P.icon,d.props.className)})),ke.jsxs(Tie,Ie({as:O,className:on(P.root,i),disabled:M&&c?!0:void 0,onClick:p,onKeyDown:S,onKeyUp:C,ref:T,tabIndex:w&&c?-1:y,ownerState:D},E,_,{children:[A||F,ke.jsx(kie,{className:on(P.label),ownerState:D,children:f}),I]}))}),Cie=Sie,Mie=Object.freeze(Object.defineProperty({__proto__:null,chipClasses:dr,default:Cie,getChipUtilityClass:Uj},Symbol.toStringTag,{value:"Module"}));function au({props:e,states:t,muiFormControl:n}){return t.reduce((r,l)=>(r[l]=e[l],n&&typeof e[l]>"u"&&(r[l]=n[l]),r),{})}const tb=ge.createContext(void 0);function Gi(){return ge.useContext(tb)}function Pie(e){return ke.jsx(Cte,Ie({},e,{defaultTheme:K1,themeId:Ql}))}function f8(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ny(e,t=!1){return e&&(f8(e.value)&&e.value!==""||t&&f8(e.defaultValue)&&e.defaultValue!=="")}function Oie(e){return e.startAdornment}function Aie(e){return yn("MuiInputBase",e)}const Bd=hn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Die=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],nb=(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${Jt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},rb=(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]},Eie=e=>{const{classes:t,color:n,disabled:r,error:l,endAdornment:i,focused:o,formControl:a,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:m}=e,g={root:["root",`color${Jt(n)}`,r&&"disabled",l&&"error",s&&"fullWidth",o&&"focused",a&&"formControl",f&&f!=="medium"&&`size${Jt(f)}`,c&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return vn(g,Aie,t)},ab=Et("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nb})(({theme:e,ownerState:t})=>Ie({},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",[`&.${Bd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ie({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),ob=Et("input",{name:"MuiInputBase",slot:"Input",overridesResolver:rb})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=Ie({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),l={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Ie({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Bd.formControl} &`]:{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Bd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Rie=ke.jsx(Pie,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ib=ge.forwardRef(function(t,n){var r;const l=pn({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:o,autoFocus:a,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:m,fullWidth:g=!1,id:b,inputComponent:v="input",inputProps:h={},inputRef:y,maxRows:w,minRows:_,multiline:x=!1,name:T,onBlur:k,onChange:S,onClick:C,onFocus:M,onKeyDown:O,onKeyUp:D,placeholder:P,readOnly:E,renderSuffix:I,rows:A,slotProps:F={},slots:j={},startAdornment:z,type:B="text",value:N}=l,R=Kt(l,Die),q=h.value!=null?h.value:N,{current:Y}=ge.useRef(q!=null),L=ge.useRef(),W=ge.useCallback(K=>{},[]),U=Lr(L,y,h.ref,W),[V,te]=ge.useState(!1),ee=Gi(),H=au({props:l,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=ee?ee.focused:V,ge.useEffect(()=>{!ee&&f&&V&&(te(!1),k&&k())},[ee,f,V,k]);const Z=ee&&ee.onFilled,G=ee&&ee.onEmpty,X=ge.useCallback(K=>{ny(K)?Z&&Z():G&&G()},[Z,G]);no(()=>{Y&&X({value:q})},[q,X,Y]);const Q=K=>{if(H.disabled){K.stopPropagation();return}M&&M(K),h.onFocus&&h.onFocus(K),ee&&ee.onFocus?ee.onFocus(K):te(!0)},re=K=>{k&&k(K),h.onBlur&&h.onBlur(K),ee&&ee.onBlur?ee.onBlur(K):te(!1)},ae=(K,...ne)=>{if(!Y){const de=K.target||L.current;if(de==null)throw new Error(No(1));X({value:de.value})}h.onChange&&h.onChange(K,...ne),S&&S(K,...ne)};ge.useEffect(()=>{X(L.current)},[]);const ie=K=>{L.current&&K.currentTarget===K.target&&L.current.focus(),C&&C(K)};let se=v,he=h;x&&se==="input"&&(A?he=Ie({type:void 0,minRows:A,maxRows:A},he):he=Ie({type:void 0,maxRows:w,minRows:_},he),se=gie);const Se=K=>{X(K.animationName==="mui-auto-fill-cancel"?L.current:{value:"x"})};ge.useEffect(()=>{ee&&ee.setAdornedStart(!!z)},[ee,z]);const Oe=Ie({},l,{color:H.color||"primary",disabled:H.disabled,endAdornment:m,error:H.error,focused:H.focused,formControl:ee,fullWidth:g,hiddenLabel:H.hiddenLabel,multiline:x,size:H.size,startAdornment:z,type:B}),Pe=Eie(Oe),Me=j.root||u.Root||ab,ce=F.root||c.root||{},we=j.input||u.Input||ob;return he=Ie({},he,(r=F.input)!=null?r:c.input),ke.jsxs(ge.Fragment,{children:[!p&&Rie,ke.jsxs(Me,Ie({},ce,!sm(Me)&&{ownerState:Ie({},Oe,ce.ownerState)},{ref:n,onClick:ie},R,{className:on(Pe.root,ce.className,s,E&&"MuiInputBase-readOnly"),children:[z,ke.jsx(tb.Provider,{value:null,children:ke.jsx(we,Ie({ownerState:Oe,"aria-invalid":H.error,"aria-describedby":i,autoComplete:o,autoFocus:a,defaultValue:d,disabled:H.disabled,id:b,onAnimationStart:Se,name:T,placeholder:P,readOnly:E,required:H.required,rows:A,value:q,onKeyDown:O,onKeyUp:D,type:B},he,!sm(we)&&{as:se,ownerState:Ie({},Oe,he.ownerState)},{ref:U,className:on(Pe.input,he.className,E&&"MuiInputBase-readOnly"),onBlur:re,onChange:ae,onFocus:Q}))}),m,I?I(Ie({},H,{startAdornment:z})):null]}))]})});function Lie(e){return yn("MuiInput",e)}const Qf=Ie({},Bd,hn("MuiInput",["root","underline","input"]));function Iie(e){return yn("MuiOutlinedInput",e)}const xs=Ie({},Bd,hn("MuiOutlinedInput",["root","notchedOutline","input"]));function $ie(e){return yn("MuiFilledInput",e)}const fu=Ie({},Bd,hn("MuiFilledInput",["root","underline","input"])),Nie=Qr(ke.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Fie=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],jie={entering:{opacity:1},entered:{opacity:1}},lb=ge.forwardRef(function(t,n){const r=po(),l={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:g,style:b,timeout:v=l,TransitionComponent:h=Pi}=t,y=Kt(t,Fie),w=ge.useRef(null),_=Lr(w,a.ref,n),x=P=>E=>{if(P){const I=w.current;E===void 0?P(I):P(I,E)}},T=x(f),k=x((P,E)=>{Sj(P);const I=$d({style:b,timeout:v,easing:s},{mode:"enter"});P.style.webkitTransition=r.transitions.create("opacity",I),P.style.transition=r.transitions.create("opacity",I),c&&c(P,E)}),S=x(d),C=x(g),M=x(P=>{const E=$d({style:b,timeout:v,easing:s},{mode:"exit"});P.style.webkitTransition=r.transitions.create("opacity",E),P.style.transition=r.transitions.create("opacity",E),p&&p(P)}),O=x(m),D=P=>{i&&i(w.current,P)};return ke.jsx(h,Ie({appear:o,in:u,nodeRef:w,onEnter:k,onEntered:S,onEntering:T,onExit:M,onExited:O,onExiting:C,addEndListener:D,timeout:v},y,{children:(P,E)=>ge.cloneElement(a,Ie({style:Ie({opacity:0,visibility:P==="exited"&&!u?"hidden":void 0},jie[P],b,a.props.style),ref:_},E))}))});function zie(e){return yn("MuiBackdrop",e)}hn("MuiBackdrop",["root","invisible"]);const Bie=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Wie=e=>{const{classes:t,invisible:n}=e;return vn({root:["root",n&&"invisible"]},zie,t)},qie=Et("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Ie({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"},e.invisible&&{backgroundColor:"transparent"})),Hj=ge.forwardRef(function(t,n){var r,l,i;const o=pn({props:t,name:"MuiBackdrop"}),{children:a,className:s,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:p,slotProps:m={},slots:g={},TransitionComponent:b=lb,transitionDuration:v}=o,h=Kt(o,Bie),y=Ie({},o,{component:u,invisible:f}),w=Wie(y),_=(r=m.root)!=null?r:d.root;return ke.jsx(b,Ie({in:p,timeout:v},h,{children:ke.jsx(qie,Ie({"aria-hidden":!0},_,{as:(l=(i=g.root)!=null?i:c.Root)!=null?l:u,className:on(w.root,s,_==null?void 0:_.className),ownerState:Ie({},y,_==null?void 0:_.ownerState),classes:w,ref:n,children:a}))}))}),Uie=es(),Hie=Ate({themeId:Ql,defaultTheme:Uie,defaultClassName:"MuiBox-root",generateClassName:zC.generate}),Ia=Hie,Vie=Object.freeze(Object.defineProperty({__proto__:null,default:Ia},Symbol.toStringTag,{value:"Module"}));function Vj(e){return yn("MuiButton",e)}const Gie=hn("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),hh=Gie,Yie=ge.createContext({}),Xie=ge.createContext(void 0),Kie=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Zie=e=>{const{color:t,disableElevation:n,fullWidth:r,size:l,variant:i,classes:o}=e,a={root:["root",i,`${i}${Jt(t)}`,`size${Jt(l)}`,`${i}Size${Jt(l)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Jt(l)}`],endIcon:["endIcon",`iconSize${Jt(l)}`]},s=vn(a,Vj,o);return Ie({},o,s)},Gj=e=>Ie({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Qie=Et(Tl,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Jt(n.color)}`],t[`size${Jt(n.size)}`],t[`${n.variant}Size${Jt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const l=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Ie({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ie({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Ie({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${hh.focusVisible}`]:Ie({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${hh.disabled}`]:Ie({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${rr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:l,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${hh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hh.disabled}`]:{boxShadow:"none"}}),Jie=Et("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Jt(n.size)}`]]}})(({ownerState:e})=>Ie({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Gj(e))),ele=Et("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Jt(n.size)}`]]}})(({ownerState:e})=>Ie({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Gj(e))),tle=ge.forwardRef(function(t,n){const r=ge.useContext(Yie),l=ge.useContext(Xie),i=jC(r,t),o=pn({props:i,name:"MuiButton"}),{children:a,color:s="primary",component:u="button",className:c,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:m,focusVisibleClassName:g,fullWidth:b=!1,size:v="medium",startIcon:h,type:y,variant:w="text"}=o,_=Kt(o,Kie),x=Ie({},o,{color:s,component:u,disabled:d,disableElevation:f,disableFocusRipple:p,fullWidth:b,size:v,type:y,variant:w}),T=Zie(x),k=h&&ke.jsx(Jie,{className:T.startIcon,ownerState:x,children:h}),S=m&&ke.jsx(ele,{className:T.endIcon,ownerState:x,children:m}),C=l||"";return ke.jsxs(Qie,Ie({ownerState:x,className:on(r.className,T.root,c,C),component:u,disabled:d,focusRipple:!p,focusVisibleClassName:on(T.focusVisible,g),ref:n,type:y},_,{classes:T,children:[k,a,S]}))}),ji=tle,nle=Object.freeze(Object.defineProperty({__proto__:null,buttonClasses:hh,default:ji,getButtonUtilityClass:Vj},Symbol.toStringTag,{value:"Module"}));function rle(e){return yn("MuiCard",e)}hn("MuiCard",["root"]);const ale=["className","raised"],ole=e=>{const{classes:t}=e;return vn({root:["root"]},rle,t)},ile=Et(nu,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),lle=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiCard"}),{className:l,raised:i=!1}=r,o=Kt(r,ale),a=Ie({},r,{raised:i}),s=ole(a);return ke.jsx(ile,Ie({className:on(s.root,l),elevation:i?8:void 0,ref:n,ownerState:a},o))});function sle(e){return yn("MuiCardContent",e)}hn("MuiCardContent",["root"]);const ule=["className","component"],cle=e=>{const{classes:t}=e;return vn({root:["root"]},sle,t)},dle=Et("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),fle=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiCardContent"}),{className:l,component:i="div"}=r,o=Kt(r,ule),a=Ie({},r,{component:i}),s=cle(a);return ke.jsx(dle,Ie({as:i,className:on(s.root,l),ownerState:a,ref:n},o))});function ple(e){return yn("PrivateSwitchBase",e)}hn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const hle=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],mle=e=>{const{classes:t,checked:n,disabled:r,edge:l}=e,i={root:["root",n&&"checked",r&&"disabled",l&&`edge${Jt(l)}`],input:["input"]};return vn(i,ple,t)},gle=Et(Tl)(({ownerState:e})=>Ie({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),vle=Et("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),yle=ge.forwardRef(function(t,n){const{autoFocus:r,checked:l,checkedIcon:i,className:o,defaultChecked:a,disabled:s,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:f,inputProps:p,inputRef:m,name:g,onBlur:b,onChange:v,onFocus:h,readOnly:y,required:w=!1,tabIndex:_,type:x,value:T}=t,k=Kt(t,hle),[S,C]=Zl({controlled:l,default:!!a,name:"SwitchBase",state:"checked"}),M=Gi(),O=j=>{h&&h(j),M&&M.onFocus&&M.onFocus(j)},D=j=>{b&&b(j),M&&M.onBlur&&M.onBlur(j)},P=j=>{if(j.nativeEvent.defaultPrevented)return;const z=j.target.checked;C(z),v&&v(j,z)};let E=s;M&&typeof E>"u"&&(E=M.disabled);const I=x==="checkbox"||x==="radio",A=Ie({},t,{checked:S,disabled:E,disableFocusRipple:u,edge:c}),F=mle(A);return ke.jsxs(gle,Ie({component:"span",className:on(F.root,o),centerRipple:!0,focusRipple:!u,disabled:E,tabIndex:null,role:void 0,onFocus:O,onBlur:D,ownerState:A,ref:n},k,{children:[ke.jsx(vle,Ie({autoFocus:r,checked:l,defaultChecked:a,className:F.input,disabled:E,id:I?f:void 0,name:g,onChange:P,readOnly:y,ref:m,required:w,ownerState:A,tabIndex:_,type:x},x==="checkbox"&&T===void 0?{}:{value:T},p)),S?i:d]}))}),ble=Qr(ke.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),xle=Qr(ke.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),wle=Qr(ke.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Yj(e){return yn("MuiCheckbox",e)}const _le=hn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),ev=_le,Tle=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],kle=e=>{const{classes:t,indeterminate:n,color:r,size:l}=e,i={root:["root",n&&"indeterminate",`color${Jt(r)}`,`size${Jt(l)}`]},o=vn(i,Yj,t);return Ie({},t,o)},Sle=Et(yle,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Jt(n.color)}`]]}})(({theme:e,ownerState:t})=>Ie({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ev.checked}, &.${ev.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ev.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Cle=ke.jsx(xle,{}),Mle=ke.jsx(ble,{}),Ple=ke.jsx(wle,{}),Ole=ge.forwardRef(function(t,n){var r,l;const i=pn({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Cle,color:a="primary",icon:s=Mle,indeterminate:u=!1,indeterminateIcon:c=Ple,inputProps:d,size:f="medium",className:p}=i,m=Kt(i,Tle),g=u?c:s,b=u?c:o,v=Ie({},i,{color:a,indeterminate:u,size:f}),h=kle(v);return ke.jsx(Sle,Ie({type:"checkbox",inputProps:Ie({"data-indeterminate":u},d),icon:ge.cloneElement(g,{fontSize:(r=g.props.fontSize)!=null?r:f}),checkedIcon:ge.cloneElement(b,{fontSize:(l=b.props.fontSize)!=null?l:f}),ownerState:v,ref:n,className:on(h.root,p)},m,{classes:h}))}),Ale=Ole,Dle=Object.freeze(Object.defineProperty({__proto__:null,checkboxClasses:ev,default:Ale,getCheckboxUtilityClass:Yj},Symbol.toStringTag,{value:"Module"}));function Xj(e){return yn("MuiCircularProgress",e)}const Ele=hn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),Rle=Ele,Lle=["className","color","disableShrink","size","style","thickness","value","variant"];let sb=e=>e,p8,h8,m8,g8;const ws=44,Ile=Hi(p8||(p8=sb` +`),ci.rippleVisible,Bre,H3,({theme:e})=>e.transitions.easing.easeInOut,ci.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ci.child,ci.childLeaving,Wre,H3,({theme:e})=>e.transitions.easing.easeInOut,ci.childPulsate,qre,({theme:e})=>e.transitions.easing.easeInOut),Vre=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTouchRipple"}),{center:l=!1,classes:i={},className:o}=r,a=Kt(r,jre),[s,u]=ge.useState([]),c=ge.useRef(0),d=ge.useRef(null);ge.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const f=ge.useRef(!1),p=ge.useRef(0),m=ge.useRef(null),g=ge.useRef(null);ge.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const b=ge.useCallback(w=>{const{pulsate:_,rippleX:x,rippleY:T,rippleSize:k,cb:S}=w;u(C=>[...C,ke.jsx(Hre,{classes:{ripple:on(i.ripple,ci.ripple),rippleVisible:on(i.rippleVisible,ci.rippleVisible),ripplePulsate:on(i.ripplePulsate,ci.ripplePulsate),child:on(i.child,ci.child),childLeaving:on(i.childLeaving,ci.childLeaving),childPulsate:on(i.childPulsate,ci.childPulsate)},timeout:H3,pulsate:_,rippleX:x,rippleY:T,rippleSize:k},c.current)]),c.current+=1,d.current=S},[i]),v=ge.useCallback((w={},_={},x=()=>{})=>{const{pulsate:T=!1,center:k=l||_.pulsate,fakeElement:S=!1}=_;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const C=S?null:g.current,M=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,D,P;if(k||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)O=Math.round(M.width/2),D=Math.round(M.height/2);else{const{clientX:E,clientY:I}=w.touches&&w.touches.length>0?w.touches[0]:w;O=Math.round(E-M.left),D=Math.round(I-M.top)}if(k)P=Math.sqrt((2*M.width**2+M.height**2)/3),P%2===0&&(P+=1);else{const E=Math.max(Math.abs((C?C.clientWidth:0)-O),O)*2+2,I=Math.max(Math.abs((C?C.clientHeight:0)-D),D)*2+2;P=Math.sqrt(E**2+I**2)}w!=null&&w.touches?m.current===null&&(m.current=()=>{b({pulsate:T,rippleX:O,rippleY:D,rippleSize:P,cb:x})},p.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},zre)):b({pulsate:T,rippleX:O,rippleY:D,rippleSize:P,cb:x})},[l,b]),h=ge.useCallback(()=>{v({},{pulsate:!0})},[v]),y=ge.useCallback((w,_)=>{if(clearTimeout(p.current),(w==null?void 0:w.type)==="touchend"&&m.current){m.current(),m.current=null,p.current=setTimeout(()=>{y(w,_)});return}m.current=null,u(x=>x.length>0?x.slice(1):x),d.current=_},[]);return ge.useImperativeHandle(n,()=>({pulsate:h,start:v,stop:y}),[h,v,y]),ke.jsx(Ure,Ie({className:on(ci.root,i.root,o),ref:g},a,{children:ke.jsx(Km,{component:null,exit:!0,children:s})}))});function Gre(e){return yn("MuiButtonBase",e)}const Yre=hn("MuiButtonBase",["root","disabled","focusVisible"]),Xre=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Kre=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:l}=e,o=vn({root:["root",t&&"disabled",n&&"focusVisible"]},Gre,l);return n&&r&&(o.root+=` ${r}`),o},Zre=Et("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${Yre.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Tl=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiButtonBase"}),{action:l,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:m,onClick:g,onContextMenu:b,onDragLeave:v,onFocus:h,onFocusVisible:y,onKeyDown:w,onKeyUp:_,onMouseDown:x,onMouseLeave:T,onMouseUp:k,onTouchEnd:S,onTouchMove:C,onTouchStart:M,tabIndex:O=0,TouchRippleProps:D,touchRippleRef:P,type:E}=r,I=Kt(r,Xre),A=ge.useRef(null),F=ge.useRef(null),j=Lr(F,P),{isFocusVisibleRef:z,onFocus:B,onBlur:N,ref:R}=FC(),[q,Y]=ge.useState(!1);u&&q&&Y(!1),ge.useImperativeHandle(l,()=>({focusVisible:()=>{Y(!0),A.current.focus()}}),[]);const[L,W]=ge.useState(!1);ge.useEffect(()=>{W(!0)},[]);const U=L&&!c&&!u;ge.useEffect(()=>{q&&f&&!c&&L&&F.current.pulsate()},[c,f,q,L]);function V(ne,de,_e=d){return yo(ue=>(de&&de(ue),!_e&&F.current&&F.current[ne](ue),!0))}const te=V("start",x),ee=V("stop",b),H=V("stop",v),Z=V("stop",k),G=V("stop",ne=>{q&&ne.preventDefault(),T&&T(ne)}),X=V("start",M),Q=V("stop",S),re=V("stop",C),ae=V("stop",ne=>{N(ne),z.current===!1&&Y(!1),m&&m(ne)},!1),ie=yo(ne=>{A.current||(A.current=ne.currentTarget),B(ne),z.current===!0&&(Y(!0),y&&y(ne)),h&&h(ne)}),se=()=>{const ne=A.current;return s&&s!=="button"&&!(ne.tagName==="A"&&ne.href)},he=ge.useRef(!1),Se=yo(ne=>{f&&!he.current&&q&&F.current&&ne.key===" "&&(he.current=!0,F.current.stop(ne,()=>{F.current.start(ne)})),ne.target===ne.currentTarget&&se()&&ne.key===" "&&ne.preventDefault(),w&&w(ne),ne.target===ne.currentTarget&&se()&&ne.key==="Enter"&&!u&&(ne.preventDefault(),g&&g(ne))}),Oe=yo(ne=>{f&&ne.key===" "&&F.current&&q&&!ne.defaultPrevented&&(he.current=!1,F.current.stop(ne,()=>{F.current.pulsate(ne)})),_&&_(ne),g&&ne.target===ne.currentTarget&&se()&&ne.key===" "&&!ne.defaultPrevented&&g(ne)});let Pe=s;Pe==="button"&&(I.href||I.to)&&(Pe=p);const Me={};Pe==="button"?(Me.type=E===void 0?"button":E,Me.disabled=u):(!I.href&&!I.to&&(Me.role="button"),u&&(Me["aria-disabled"]=u));const ce=Lr(n,R,A),we=Ie({},r,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:O,focusVisible:q}),K=Kre(we);return ke.jsxs(Zre,Ie({as:Pe,className:on(K.root,a),ownerState:we,onBlur:ae,onClick:g,onContextMenu:ee,onFocus:ie,onKeyDown:Se,onKeyUp:Oe,onMouseDown:te,onMouseLeave:G,onMouseUp:Z,onDragLeave:H,onTouchEnd:Q,onTouchMove:re,onTouchStart:X,ref:ce,tabIndex:u?-1:O,type:E},Me,I,{children:[o,U?ke.jsx(Vre,Ie({ref:j,center:i},D)):null]}))});function Qre(e){return yn("MuiAlert",e)}const YA=hn("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Pj(e){return yn("MuiIconButton",e)}const Jre=hn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Oj=Jre,eae=["edge","children","className","color","disabled","disableFocusRipple","size"],tae=e=>{const{classes:t,disabled:n,color:r,edge:l,size:i}=e,o={root:["root",n&&"disabled",r!=="default"&&`color${Jt(r)}`,l&&`edge${Jt(l)}`,`size${Jt(i)}`]};return vn(o,Pj,t)},nae=Et(Tl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Jt(n.color)}`],n.edge&&t[`edge${Jt(n.edge)}`],t[`size${Jt(n.size)}`]]}})(({theme:e,ownerState:t})=>Ie({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Ie({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Ie({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Ie({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Oj.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),rae=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiIconButton"}),{edge:l=!1,children:i,className:o,color:a="default",disabled:s=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=Kt(r,eae),f=Ie({},r,{edge:l,color:a,disabled:s,disableFocusRipple:u,size:c}),p=tae(f);return ke.jsx(nae,Ie({className:on(p.root,o),centerRipple:!0,focusRipple:!u,disabled:s,ref:n,ownerState:f},d,{children:i}))}),mi=rae,aae=Object.freeze(Object.defineProperty({__proto__:null,default:mi,getIconButtonUtilityClass:Pj,iconButtonClasses:Oj},Symbol.toStringTag,{value:"Module"})),oae=Qr(ke.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),iae=Qr(ke.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),lae=Qr(ke.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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"}),"ErrorOutline"),sae=Qr(ke.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),uae=Qr(ke.jsx("path",{d:"M19 6.41L17.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"}),"Close"),cae=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],dae=e=>{const{variant:t,color:n,severity:r,classes:l}=e,i={root:["root",`${t}${Jt(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return vn(i,Qre,l)},fae=Et(nu,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Jt(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?wl:_l,r=e.palette.mode==="light"?_l:wl,l=t.color||t.severity;return Ie({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},l&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${l}Color`]:n(e.palette[l].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${l}StandardBg`]:r(e.palette[l].light,.9),[`& .${YA.icon}`]:e.vars?{color:e.vars.palette.Alert[`${l}IconColor`]}:{color:e.palette[l].main}},l&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${l}Color`]:n(e.palette[l].light,.6),border:`1px solid ${(e.vars||e).palette[l].light}`,[`& .${YA.icon}`]:e.vars?{color:e.vars.palette.Alert[`${l}IconColor`]}:{color:e.palette[l].main}},l&&t.variant==="filled"&&Ie({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${l}FilledColor`],backgroundColor:e.vars.palette.Alert[`${l}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[l].dark:e.palette[l].main,color:e.palette.getContrastText(e.palette[l].main)}))}),pae=Et("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),hae=Et("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),XA=Et("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),KA={success:ke.jsx(oae,{fontSize:"inherit"}),warning:ke.jsx(iae,{fontSize:"inherit"}),error:ke.jsx(lae,{fontSize:"inherit"}),info:ke.jsx(sae,{fontSize:"inherit"})},cM=ge.forwardRef(function(t,n){var r,l,i,o,a,s;const u=pn({props:t,name:"MuiAlert"}),{action:c,children:d,className:f,closeText:p="Close",color:m,components:g={},componentsProps:b={},icon:v,iconMapping:h=KA,onClose:y,role:w="alert",severity:_="success",slotProps:x={},slots:T={},variant:k="standard"}=u,S=Kt(u,cae),C=Ie({},u,{color:m,severity:_,variant:k}),M=dae(C),O=(r=(l=T.closeButton)!=null?l:g.CloseButton)!=null?r:mi,D=(i=(o=T.closeIcon)!=null?o:g.CloseIcon)!=null?i:uae,P=(a=x.closeButton)!=null?a:b.closeButton,E=(s=x.closeIcon)!=null?s:b.closeIcon;return ke.jsxs(fae,Ie({role:w,elevation:0,ownerState:C,className:on(M.root,f),ref:n},S,{children:[v!==!1?ke.jsx(pae,{ownerState:C,className:M.icon,children:v||h[_]||KA[_]}):null,ke.jsx(hae,{ownerState:C,className:M.message,children:d}),c!=null?ke.jsx(XA,{ownerState:C,className:M.action,children:c}):null,c==null&&y?ke.jsx(XA,{ownerState:C,className:M.action,children:ke.jsx(O,Ie({size:"small","aria-label":p,title:p,color:"inherit",onClick:y},P,{children:ke.jsx(D,Ie({fontSize:"small"},E))}))}):null]}))});function Aj(e){return yn("MuiTypography",e)}const mae=hn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),gae=mae,vae=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],yae=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:l,variant:i,classes:o}=e,a={root:["root",i,e.align!=="inherit"&&`align${Jt(t)}`,n&&"gutterBottom",r&&"noWrap",l&&"paragraph"]};return vn(a,Aj,o)},bae=Et("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${Jt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Ie({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),ZA={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xae={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},wae=e=>xae[e]||e,_ae=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTypography"}),l=wae(r.color),i=Y1(Ie({},r,{color:l})),{align:o="inherit",className:a,component:s,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:p=ZA}=i,m=Kt(i,vae),g=Ie({},i,{align:o,color:l,className:a,component:s,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:p}),b=s||(d?"p":p[f]||ZA[f])||"span",v=yae(g);return ke.jsx(bae,Ie({as:b,ref:n,ownerState:g,className:on(v.root,a)},m))}),pr=_ae,Tae=Object.freeze(Object.defineProperty({__proto__:null,default:pr,getTypographyUtilityClass:Aj,typographyClasses:gae},Symbol.toStringTag,{value:"Module"}));function kae(e){return yn("MuiAlertTitle",e)}hn("MuiAlertTitle",["root"]);const Sae=["className"],Cae=e=>{const{classes:t}=e;return vn({root:["root"]},kae,t)},Mae=Et(pr,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),dM=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiAlertTitle"}),{className:l}=r,i=Kt(r,Sae),o=r,a=Cae(o);return ke.jsx(Mae,Ie({gutterBottom:!0,component:"div",ownerState:o,ref:n,className:on(a.root,l)},i))});function lm(e){return typeof e=="string"}function fh(e,t,n){return e===void 0||lm(e)?t:Ie({},t,{ownerState:Ie({},t.ownerState,n)})}const Pae={disableDefaultClasses:!1},Oae=ge.createContext(Pae);function Aae(e){const{disableDefaultClasses:t}=ge.useContext(Oae);return n=>t?"":e(n)}function Dj(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 Dae(e,t,n){return typeof e=="function"?e(t,n):e}function QA(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Eae(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:l,className:i}=e;if(!t){const p=on(l==null?void 0:l.className,r==null?void 0:r.className,i,n==null?void 0:n.className),m=Ie({},n==null?void 0:n.style,l==null?void 0:l.style,r==null?void 0:r.style),g=Ie({},n,l,r);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const o=Dj(Ie({},l,r)),a=QA(r),s=QA(l),u=t(o),c=on(u==null?void 0:u.className,n==null?void 0:n.className,i,l==null?void 0:l.className,r==null?void 0:r.className),d=Ie({},u==null?void 0:u.style,n==null?void 0:n.style,l==null?void 0:l.style,r==null?void 0:r.style),f=Ie({},u,n,s,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const Rae=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ui(e){var t;const{elementType:n,externalSlotProps:r,ownerState:l,skipResolvingSlotProps:i=!1}=e,o=Kt(e,Rae),a=i?{}:Dae(r,l),{props:s,internalRef:u}=Eae(Ie({},o,{externalSlotProps:a})),c=Lr(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return fh(n,Ie({},s,{ref:c}),l)}const Lae=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Iae(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 $ae(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 Nae(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||$ae(e))}function Fae(e){const t=[],n=[];return Array.from(e.querySelectorAll(Lae)).forEach((r,l)=>{const i=Iae(r);i===-1||!Nae(r)||(i===0?t.push(r):n.push({documentOrder:l,tabIndex:i,node:r}))}),n.sort((r,l)=>r.tabIndex===l.tabIndex?r.documentOrder-l.documentOrder:r.tabIndex-l.tabIndex).map(r=>r.node).concat(t)}function jae(){return!0}function Ej(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:l=!1,getTabbable:i=Fae,isEnabled:o=jae,open:a}=e,s=ge.useRef(!1),u=ge.useRef(null),c=ge.useRef(null),d=ge.useRef(null),f=ge.useRef(null),p=ge.useRef(!1),m=ge.useRef(null),g=Lr(t.ref,m),b=ge.useRef(null);ge.useEffect(()=>{!a||!m.current||(p.current=!n)},[n,a]),ge.useEffect(()=>{if(!a||!m.current)return;const y=Aa(m.current);return m.current.contains(y.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{l||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}},[a]),ge.useEffect(()=>{if(!a||!m.current)return;const y=Aa(m.current),w=T=>{b.current=T,!(r||!o()||T.key!=="Tab")&&y.activeElement===m.current&&T.shiftKey&&(s.current=!0,c.current&&c.current.focus())},_=()=>{const T=m.current;if(T===null)return;if(!y.hasFocus()||!o()||s.current){s.current=!1;return}if(T.contains(y.activeElement)||r&&y.activeElement!==u.current&&y.activeElement!==c.current)return;if(y.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let k=[];if((y.activeElement===u.current||y.activeElement===c.current)&&(k=i(m.current)),k.length>0){var S,C;const M=!!((S=b.current)!=null&&S.shiftKey&&((C=b.current)==null?void 0:C.key)==="Tab"),O=k[0],D=k[k.length-1];typeof O!="string"&&typeof D!="string"&&(M?D.focus():O.focus())}else T.focus()};y.addEventListener("focusin",_),y.addEventListener("keydown",w,!0);const x=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(x),y.removeEventListener("focusin",_),y.removeEventListener("keydown",w,!0)}},[n,r,l,o,a,i]);const v=y=>{d.current===null&&(d.current=y.relatedTarget),p.current=!0,f.current=y.target;const w=t.props.onFocus;w&&w(y)},h=y=>{d.current===null&&(d.current=y.relatedTarget),p.current=!0};return ke.jsxs(ge.Fragment,{children:[ke.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:u,"data-testid":"sentinelStart"}),ge.cloneElement(t,{ref:g,onFocus:v}),ke.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:c,"data-testid":"sentinelEnd"})]})}var Lo="top",ki="bottom",Si="right",Io="left",fM="auto",Zm=[Lo,ki,Si,Io],$d="start",sm="end",zae="clippingParents",Rj="viewport",Kf="popper",Bae="reference",JA=Zm.reduce(function(e,t){return e.concat([t+"-"+$d,t+"-"+sm])},[]),Lj=[].concat(Zm,[fM]).reduce(function(e,t){return e.concat([t,t+"-"+$d,t+"-"+sm])},[]),Wae="beforeRead",qae="read",Uae="afterRead",Hae="beforeMain",Vae="main",Gae="afterMain",Yae="beforeWrite",Xae="write",Kae="afterWrite",Zae=[Wae,qae,Uae,Hae,Vae,Gae,Yae,Xae,Kae];function kl(e){return e?(e.nodeName||"").toLowerCase():null}function ti(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yu(e){var t=ti(e).Element;return e instanceof t||e instanceof Element}function xi(e){var t=ti(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function pM(e){if(typeof ShadowRoot>"u")return!1;var t=ti(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Qae(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},l=t.attributes[n]||{},i=t.elements[n];!xi(i)||!kl(i)||(Object.assign(i.style,r),Object.keys(l).forEach(function(o){var a=l[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function Jae(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 l=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(s,u){return s[u]="",s},{});!xi(l)||!kl(l)||(Object.assign(l.style,a),Object.keys(i).forEach(function(s){l.removeAttribute(s)}))})}}const eoe={name:"applyStyles",enabled:!0,phase:"write",fn:Qae,effect:Jae,requires:["computeStyles"]};function vl(e){return e.split("-")[0]}var Bu=Math.max,ty=Math.min,Nd=Math.round;function V3(){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 Ij(){return!/^((?!chrome|android).)*safari/i.test(V3())}function Fd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),l=1,i=1;t&&xi(e)&&(l=e.offsetWidth>0&&Nd(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Nd(r.height)/e.offsetHeight||1);var o=Yu(e)?ti(e):window,a=o.visualViewport,s=!Ij()&&n,u=(r.left+(s&&a?a.offsetLeft:0))/l,c=(r.top+(s&&a?a.offsetTop:0))/i,d=r.width/l,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function hM(e){var t=Fd(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 $j(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&pM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ts(e){return ti(e).getComputedStyle(e)}function toe(e){return["table","td","th"].indexOf(kl(e))>=0}function ru(e){return((Yu(e)?e.ownerDocument:e.document)||window.document).documentElement}function J1(e){return kl(e)==="html"?e:e.assignedSlot||e.parentNode||(pM(e)?e.host:null)||ru(e)}function e8(e){return!xi(e)||ts(e).position==="fixed"?null:e.offsetParent}function noe(e){var t=/firefox/i.test(V3()),n=/Trident/i.test(V3());if(n&&xi(e)){var r=ts(e);if(r.position==="fixed")return null}var l=J1(e);for(pM(l)&&(l=l.host);xi(l)&&["html","body"].indexOf(kl(l))<0;){var i=ts(l);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return l;l=l.parentNode}return null}function Qm(e){for(var t=ti(e),n=e8(e);n&&toe(n)&&ts(n).position==="static";)n=e8(n);return n&&(kl(n)==="html"||kl(n)==="body"&&ts(n).position==="static")?t:n||noe(e)||t}function mM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oh(e,t,n){return Bu(e,ty(t,n))}function roe(e,t,n){var r=Oh(e,t,n);return r>n?n:r}function Nj(){return{top:0,right:0,bottom:0,left:0}}function Fj(e){return Object.assign({},Nj(),e)}function jj(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var aoe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Fj(typeof t!="number"?t:jj(t,Zm))};function ooe(e){var t,n=e.state,r=e.name,l=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=vl(n.placement),s=mM(a),u=[Io,Si].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!o)){var d=aoe(l.padding,n),f=hM(i),p=s==="y"?Lo:Io,m=s==="y"?ki:Si,g=n.rects.reference[c]+n.rects.reference[s]-o[s]-n.rects.popper[c],b=o[s]-n.rects.reference[s],v=Qm(i),h=v?s==="y"?v.clientHeight||0:v.clientWidth||0:0,y=g/2-b/2,w=d[p],_=h-f[c]-d[m],x=h/2-f[c]/2+y,T=Oh(w,x,_),k=s;n.modifiersData[r]=(t={},t[k]=T,t.centerOffset=T-x,t)}}function ioe(e){var t=e.state,n=e.options,r=n.element,l=r===void 0?"[data-popper-arrow]":r;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||$j(t.elements.popper,l)&&(t.elements.arrow=l))}const loe={name:"arrow",enabled:!0,phase:"main",fn:ooe,effect:ioe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jd(e){return e.split("-")[1]}var soe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uoe(e,t){var n=e.x,r=e.y,l=t.devicePixelRatio||1;return{x:Nd(n*l)/l||0,y:Nd(r*l)/l||0}}function t8(e){var t,n=e.popper,r=e.popperRect,l=e.placement,i=e.variation,o=e.offsets,a=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,g=m===void 0?0:m,b=typeof c=="function"?c({x:p,y:g}):{x:p,y:g};p=b.x,g=b.y;var v=o.hasOwnProperty("x"),h=o.hasOwnProperty("y"),y=Io,w=Lo,_=window;if(u){var x=Qm(n),T="clientHeight",k="clientWidth";if(x===ti(n)&&(x=ru(n),ts(x).position!=="static"&&a==="absolute"&&(T="scrollHeight",k="scrollWidth")),x=x,l===Lo||(l===Io||l===Si)&&i===sm){w=ki;var S=d&&x===_&&_.visualViewport?_.visualViewport.height:x[T];g-=S-r.height,g*=s?1:-1}if(l===Io||(l===Lo||l===ki)&&i===sm){y=Si;var C=d&&x===_&&_.visualViewport?_.visualViewport.width:x[k];p-=C-r.width,p*=s?1:-1}}var M=Object.assign({position:a},u&&soe),O=c===!0?uoe({x:p,y:g},ti(n)):{x:p,y:g};if(p=O.x,g=O.y,s){var D;return Object.assign({},M,(D={},D[w]=h?"0":"",D[y]=v?"0":"",D.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",D))}return Object.assign({},M,(t={},t[w]=h?g+"px":"",t[y]=v?p+"px":"",t.transform="",t))}function coe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,l=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,a=n.roundOffsets,s=a===void 0?!0:a,u={placement:vl(t.placement),variation:jd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,t8(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,t8(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const doe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:coe,data:{}};var n0={passive:!0};function foe(e){var t=e.state,n=e.instance,r=e.options,l=r.scroll,i=l===void 0?!0:l,o=r.resize,a=o===void 0?!0:o,s=ti(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,n0)}),a&&s.addEventListener("resize",n.update,n0),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,n0)}),a&&s.removeEventListener("resize",n.update,n0)}}const poe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:foe,data:{}};var hoe={left:"right",right:"left",bottom:"top",top:"bottom"};function J0(e){return e.replace(/left|right|bottom|top/g,function(t){return hoe[t]})}var moe={start:"end",end:"start"};function n8(e){return e.replace(/start|end/g,function(t){return moe[t]})}function gM(e){var t=ti(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function vM(e){return Fd(ru(e)).left+gM(e).scrollLeft}function goe(e,t){var n=ti(e),r=ru(e),l=n.visualViewport,i=r.clientWidth,o=r.clientHeight,a=0,s=0;if(l){i=l.width,o=l.height;var u=Ij();(u||!u&&t==="fixed")&&(a=l.offsetLeft,s=l.offsetTop)}return{width:i,height:o,x:a+vM(e),y:s}}function voe(e){var t,n=ru(e),r=gM(e),l=(t=e.ownerDocument)==null?void 0:t.body,i=Bu(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),o=Bu(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),a=-r.scrollLeft+vM(e),s=-r.scrollTop;return ts(l||n).direction==="rtl"&&(a+=Bu(n.clientWidth,l?l.clientWidth:0)-i),{width:i,height:o,x:a,y:s}}function yM(e){var t=ts(e),n=t.overflow,r=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+r)}function zj(e){return["html","body","#document"].indexOf(kl(e))>=0?e.ownerDocument.body:xi(e)&&yM(e)?e:zj(J1(e))}function Ah(e,t){var n;t===void 0&&(t=[]);var r=zj(e),l=r===((n=e.ownerDocument)==null?void 0:n.body),i=ti(r),o=l?[i].concat(i.visualViewport||[],yM(r)?r:[]):r,a=t.concat(o);return l?a:a.concat(Ah(J1(o)))}function G3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yoe(e,t){var n=Fd(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 r8(e,t,n){return t===Rj?G3(goe(e,n)):Yu(t)?yoe(t,n):G3(voe(ru(e)))}function boe(e){var t=Ah(J1(e)),n=["absolute","fixed"].indexOf(ts(e).position)>=0,r=n&&xi(e)?Qm(e):e;return Yu(r)?t.filter(function(l){return Yu(l)&&$j(l,r)&&kl(l)!=="body"}):[]}function xoe(e,t,n,r){var l=t==="clippingParents"?boe(e):[].concat(t),i=[].concat(l,[n]),o=i[0],a=i.reduce(function(s,u){var c=r8(e,u,r);return s.top=Bu(c.top,s.top),s.right=ty(c.right,s.right),s.bottom=ty(c.bottom,s.bottom),s.left=Bu(c.left,s.left),s},r8(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Bj(e){var t=e.reference,n=e.element,r=e.placement,l=r?vl(r):null,i=r?jd(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,s;switch(l){case Lo:s={x:o,y:t.y-n.height};break;case ki:s={x:o,y:t.y+t.height};break;case Si:s={x:t.x+t.width,y:a};break;case Io:s={x:t.x-n.width,y:a};break;default:s={x:t.x,y:t.y}}var u=l?mM(l):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case $d:s[u]=s[u]-(t[c]/2-n[c]/2);break;case sm:s[u]=s[u]+(t[c]/2-n[c]/2);break}}return s}function um(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,a=n.boundary,s=a===void 0?zae:a,u=n.rootBoundary,c=u===void 0?Rj:u,d=n.elementContext,f=d===void 0?Kf:d,p=n.altBoundary,m=p===void 0?!1:p,g=n.padding,b=g===void 0?0:g,v=Fj(typeof b!="number"?b:jj(b,Zm)),h=f===Kf?Bae:Kf,y=e.rects.popper,w=e.elements[m?h:f],_=xoe(Yu(w)?w:w.contextElement||ru(e.elements.popper),s,c,o),x=Fd(e.elements.reference),T=Bj({reference:x,element:y,strategy:"absolute",placement:l}),k=G3(Object.assign({},y,T)),S=f===Kf?k:x,C={top:_.top-S.top+v.top,bottom:S.bottom-_.bottom+v.bottom,left:_.left-S.left+v.left,right:S.right-_.right+v.right},M=e.modifiersData.offset;if(f===Kf&&M){var O=M[l];Object.keys(C).forEach(function(D){var P=[Si,ki].indexOf(D)>=0?1:-1,E=[Lo,ki].indexOf(D)>=0?"y":"x";C[D]+=O[E]*P})}return C}function woe(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=n.boundary,i=n.rootBoundary,o=n.padding,a=n.flipVariations,s=n.allowedAutoPlacements,u=s===void 0?Lj:s,c=jd(r),d=c?a?JA:JA.filter(function(m){return jd(m)===c}):Zm,f=d.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,g){return m[g]=um(e,{placement:g,boundary:l,rootBoundary:i,padding:o})[vl(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function _oe(e){if(vl(e)===fM)return[];var t=J0(e);return[n8(e),t,n8(t)]}function Toe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,a=o===void 0?!0:o,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,g=n.allowedAutoPlacements,b=t.options.placement,v=vl(b),h=v===b,y=s||(h||!m?[J0(b)]:_oe(b)),w=[b].concat(y).reduce(function(q,Y){return q.concat(vl(Y)===fM?woe(t,{placement:Y,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:g}):Y)},[]),_=t.rects.reference,x=t.rects.popper,T=new Map,k=!0,S=w[0],C=0;C=0,E=P?"width":"height",I=um(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),A=P?D?Si:Io:D?ki:Lo;_[E]>x[E]&&(A=J0(A));var F=J0(A),j=[];if(i&&j.push(I[O]<=0),a&&j.push(I[A]<=0,I[F]<=0),j.every(function(q){return q})){S=M,k=!1;break}T.set(M,j)}if(k)for(var z=m?3:1,B=function(Y){var L=w.find(function(W){var U=T.get(W);if(U)return U.slice(0,Y).every(function(V){return V})});if(L)return S=L,"break"},N=z;N>0;N--){var R=B(N);if(R==="break")break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}}const koe={name:"flip",enabled:!0,phase:"main",fn:Toe,requiresIfExists:["offset"],data:{_skip:!1}};function a8(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 o8(e){return[Lo,Si,ki,Io].some(function(t){return e[t]>=0})}function Soe(e){var t=e.state,n=e.name,r=t.rects.reference,l=t.rects.popper,i=t.modifiersData.preventOverflow,o=um(t,{elementContext:"reference"}),a=um(t,{altBoundary:!0}),s=a8(o,r),u=a8(a,l,i),c=o8(s),d=o8(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Coe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Soe};function Moe(e,t,n){var r=vl(e),l=[Io,Lo].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],a=i[1];return o=o||0,a=(a||0)*l,[Io,Si].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function Poe(e){var t=e.state,n=e.options,r=e.name,l=n.offset,i=l===void 0?[0,0]:l,o=Lj.reduce(function(c,d){return c[d]=Moe(d,t.rects,i),c},{}),a=o[t.placement],s=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const Ooe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Poe};function Aoe(e){var t=e.state,n=e.name;t.modifiersData[n]=Bj({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Doe={name:"popperOffsets",enabled:!0,phase:"read",fn:Aoe,data:{}};function Eoe(e){return e==="x"?"y":"x"}function Roe(e){var t=e.state,n=e.options,r=e.name,l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,a=o===void 0?!1:o,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,g=m===void 0?0:m,b=um(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),v=vl(t.placement),h=jd(t.placement),y=!h,w=mM(v),_=Eoe(w),x=t.modifiersData.popperOffsets,T=t.rects.reference,k=t.rects.popper,S=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,C=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(x){if(i){var D,P=w==="y"?Lo:Io,E=w==="y"?ki:Si,I=w==="y"?"height":"width",A=x[w],F=A+b[P],j=A-b[E],z=p?-k[I]/2:0,B=h===$d?T[I]:k[I],N=h===$d?-k[I]:-T[I],R=t.elements.arrow,q=p&&R?hM(R):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Nj(),L=Y[P],W=Y[E],U=Oh(0,T[I],q[I]),V=y?T[I]/2-z-U-L-C.mainAxis:B-U-L-C.mainAxis,te=y?-T[I]/2+z+U+W+C.mainAxis:N+U+W+C.mainAxis,ee=t.elements.arrow&&Qm(t.elements.arrow),H=ee?w==="y"?ee.clientTop||0:ee.clientLeft||0:0,Z=(D=M==null?void 0:M[w])!=null?D:0,G=A+V-Z-H,X=A+te-Z,Q=Oh(p?ty(F,G):F,A,p?Bu(j,X):j);x[w]=Q,O[w]=Q-A}if(a){var re,ae=w==="x"?Lo:Io,ie=w==="x"?ki:Si,se=x[_],he=_==="y"?"height":"width",Se=se+b[ae],Oe=se-b[ie],Pe=[Lo,Io].indexOf(v)!==-1,Me=(re=M==null?void 0:M[_])!=null?re:0,ce=Pe?Se:se-T[he]-k[he]-Me+C.altAxis,we=Pe?se+T[he]+k[he]-Me-C.altAxis:Oe,K=p&&Pe?roe(ce,se,we):Oh(p?ce:Se,se,p?we:Oe);x[_]=K,O[_]=K-se}t.modifiersData[r]=O}}const Loe={name:"preventOverflow",enabled:!0,phase:"main",fn:Roe,requiresIfExists:["offset"]};function Ioe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $oe(e){return e===ti(e)||!xi(e)?gM(e):Ioe(e)}function Noe(e){var t=e.getBoundingClientRect(),n=Nd(t.width)/e.offsetWidth||1,r=Nd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Foe(e,t,n){n===void 0&&(n=!1);var r=xi(t),l=xi(t)&&Noe(t),i=ru(t),o=Fd(e,l,n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((kl(t)!=="body"||yM(i))&&(a=$oe(t)),xi(t)?(s=Fd(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=vM(i))),{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function joe(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function l(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var s=t.get(a);s&&l(s)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||l(i)}),r}function zoe(e){var t=joe(e);return Zae.reduce(function(n,r){return n.concat(t.filter(function(l){return l.phase===r}))},[])}function Boe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Woe(e){var t=e.reduce(function(n,r){var l=n[r.name];return n[r.name]=l?Object.assign({},l,r,{options:Object.assign({},l.options,r.options),data:Object.assign({},l.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var i8={placement:"bottom",modifiers:[],strategy:"absolute"};function l8(){for(var e=arguments.length,t=new Array(e),n=0;n{i||a(Voe(l)||document.body)},[l,i]),no(()=>{if(o&&!i)return Vv(n,o),()=>{Vv(n,null)}},[n,o,i]),i){if(ge.isValidElement(r)){const u={ref:s};return ge.cloneElement(r,u)}return ke.jsx(ge.Fragment,{children:r})}return ke.jsx(ge.Fragment,{children:o&&cc.createPortal(r,o)})});function Goe(e){return yn("MuiPopper",e)}hn("MuiPopper",["root"]);const Yoe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Xoe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Koe(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 Y3(e){return typeof e=="function"?e():e}function Zoe(e){return e.nodeType!==void 0}const Qoe=()=>vn({root:["root"]},Aae(Goe)),Joe={},eie=ge.forwardRef(function(t,n){var r;const{anchorEl:l,children:i,direction:o,disablePortal:a,modifiers:s,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:p={},slots:m={},TransitionProps:g}=t,b=Kt(t,Yoe),v=ge.useRef(null),h=Lr(v,n),y=ge.useRef(null),w=Lr(y,f),_=ge.useRef(w);no(()=>{_.current=w},[w]),ge.useImperativeHandle(f,()=>y.current,[]);const x=Koe(c,o),[T,k]=ge.useState(x),[S,C]=ge.useState(Y3(l));ge.useEffect(()=>{y.current&&y.current.forceUpdate()}),ge.useEffect(()=>{l&&C(Y3(l))},[l]),no(()=>{if(!S||!u)return;const E=F=>{k(F.placement)};let I=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{E(F)}}];s!=null&&(I=I.concat(s)),d&&d.modifiers!=null&&(I=I.concat(d.modifiers));const A=Hoe(S,v.current,Ie({placement:x},d,{modifiers:I}));return _.current(A),()=>{A.destroy(),_.current(null)}},[S,a,s,u,d,x]);const M={placement:T};g!==null&&(M.TransitionProps=g);const O=Qoe(),D=(r=m.root)!=null?r:"div",P=Ui({elementType:D,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:h},ownerState:t,className:O.root});return ke.jsx(D,Ie({},P,{children:typeof i=="function"?i(M):i}))}),tie=ge.forwardRef(function(t,n){const{anchorEl:r,children:l,container:i,direction:o="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=Joe,popperRef:p,style:m,transition:g=!1,slotProps:b={},slots:v={}}=t,h=Kt(t,Xoe),[y,w]=ge.useState(!0),_=()=>{w(!1)},x=()=>{w(!0)};if(!s&&!c&&(!g||y))return null;let T;if(i)T=i;else if(r){const C=Y3(r);T=C&&Zoe(C)?Aa(C).body:Aa(null).body}const k=!c&&s&&(!g||y)?"none":void 0,S=g?{in:c,onEnter:_,onExited:x}:void 0;return ke.jsx(Wj,{disablePortal:a,container:T,children:ke.jsx(eie,Ie({anchorEl:r,direction:o,disablePortal:a,modifiers:u,ref:n,open:g?!y:c,placement:d,popperOptions:f,popperRef:p,slotProps:b,slots:v},h,{style:Ie({position:"fixed",top:0,left:0,display:k},m),TransitionProps:S,children:l}))})});function nie(e){const t=Aa(e);return t.body===e?bl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Dh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function s8(e){return parseInt(bl(e).getComputedStyle(e).paddingRight,10)||0}function rie(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function u8(e,t,n,r,l){const i=[t,n,...r];[].forEach.call(e.children,o=>{const a=i.indexOf(o)===-1,s=!rie(o);a&&s&&Dh(o,l)})}function bw(e,t){let n=-1;return e.some((r,l)=>t(r)?(n=l,!0):!1),n}function aie(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(nie(r)){const o=RF(Aa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${s8(r)+o}px`;const a=Aa(r).querySelectorAll(".mui-fixed");[].forEach.call(a,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${s8(s)+o}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Aa(r).body;else{const o=r.parentElement,a=bl(r);i=(o==null?void 0:o.nodeName)==="HTML"&&a.getComputedStyle(o).overflowY==="scroll"?o:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:o,property:a})=>{i?o.style.setProperty(a,i):o.style.removeProperty(a)})}}function oie(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class iie{constructor(){this.containers=void 0,this.modals=void 0,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&&Dh(t.modalRef,!1);const l=oie(n);u8(n,t.mount,t.modalRef,l,!0);const i=bw(this.containers,o=>o.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:l}),r)}mount(t,n){const r=bw(this.containers,i=>i.modals.indexOf(t)!==-1),l=this.containers[r];l.restore||(l.restore=aie(l,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const l=bw(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[l];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Dh(t.modalRef,n),u8(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(l,1);else{const o=i.modals[i.modals.length-1];o.modalRef&&Dh(o.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function lie(e){return typeof e=="function"?e():e}function sie(e){return e?e.props.hasOwnProperty("in"):!1}const uie=new iie;function cie(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:l=uie,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:u,open:c,rootRef:d}=e,f=ge.useRef({}),p=ge.useRef(null),m=ge.useRef(null),g=Lr(m,d),[b,v]=ge.useState(!c),h=sie(s);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const w=()=>Aa(p.current),_=()=>(f.current.modalRef=m.current,f.current.mount=p.current,f.current),x=()=>{l.mount(_(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},T=yo(()=>{const I=lie(t)||w().body;l.add(_(),I),m.current&&x()}),k=ge.useCallback(()=>l.isTopModal(_()),[l]),S=yo(I=>{p.current=I,I&&(c&&k()?x():m.current&&Dh(m.current,y))}),C=ge.useCallback(()=>{l.remove(_(),y)},[y,l]);ge.useEffect(()=>()=>{C()},[C]),ge.useEffect(()=>{c?T():(!h||!i)&&C()},[c,C,h,i,T]);const M=I=>A=>{var F;(F=I.onKeyDown)==null||F.call(I,A),!(A.key!=="Escape"||!k())&&(n||(A.stopPropagation(),u&&u(A,"escapeKeyDown")))},O=I=>A=>{var F;(F=I.onClick)==null||F.call(I,A),A.target===A.currentTarget&&u&&u(A,"backdropClick")};return{getRootProps:(I={})=>{const A=Dj(e);delete A.onTransitionEnter,delete A.onTransitionExited;const F=Ie({},A,I);return Ie({role:"presentation"},F,{onKeyDown:M(F),ref:g})},getBackdropProps:(I={})=>{const A=I;return Ie({"aria-hidden":!0},A,{onClick:O(A),open:c})},getTransitionProps:()=>{const I=()=>{v(!1),o&&o()},A=()=>{v(!0),a&&a(),i&&C()};return{onEnter:N3(I,s==null?void 0:s.props.onEnter),onExited:N3(A,s==null?void 0:s.props.onExited)}},rootRef:g,portalRef:S,isTopModal:k,exited:b,hasTransition:h}}const die=["onChange","maxRows","minRows","style","value"];function r0(e){return parseInt(e,10)||0}const fie={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function c8(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const pie=ge.forwardRef(function(t,n){const{onChange:r,maxRows:l,minRows:i=1,style:o,value:a}=t,s=Kt(t,die),{current:u}=ge.useRef(a!=null),c=ge.useRef(null),d=Lr(n,c),f=ge.useRef(null),p=ge.useRef(0),[m,g]=ge.useState({outerHeightStyle:0}),b=ge.useCallback(()=>{const w=c.current,x=bl(w).getComputedStyle(w);if(x.width==="0px")return{outerHeightStyle:0};const T=f.current;T.style.width=x.width,T.value=w.value||t.placeholder||"x",T.value.slice(-1)===` +`&&(T.value+=" ");const k=x.boxSizing,S=r0(x.paddingBottom)+r0(x.paddingTop),C=r0(x.borderBottomWidth)+r0(x.borderTopWidth),M=T.scrollHeight;T.value="x";const O=T.scrollHeight;let D=M;i&&(D=Math.max(Number(i)*O,D)),l&&(D=Math.min(Number(l)*O,D)),D=Math.max(D,O);const P=D+(k==="border-box"?S+C:0),E=Math.abs(D-M)<=1;return{outerHeightStyle:P,overflow:E}},[l,i,t.placeholder]),v=(w,_)=>{const{outerHeightStyle:x,overflow:T}=_;return p.current<20&&(x>0&&Math.abs((w.outerHeightStyle||0)-x)>1||w.overflow!==T)?(p.current+=1,{overflow:T,outerHeightStyle:x}):w},h=ge.useCallback(()=>{const w=b();c8(w)||g(_=>v(_,w))},[b]);no(()=>{const w=()=>{const M=b();c8(M)||cc.flushSync(()=>{g(O=>v(O,M))})},_=()=>{p.current=0,w()};let x;const T=Um(_),k=c.current,S=bl(k);S.addEventListener("resize",T);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(_),C.observe(k)),()=>{T.clear(),cancelAnimationFrame(x),S.removeEventListener("resize",T),C&&C.disconnect()}},[b]),no(()=>{h()}),ge.useEffect(()=>{p.current=0},[a]);const y=w=>{p.current=0,u||h(),r&&r(w)};return ke.jsxs(ge.Fragment,{children:[ke.jsx("textarea",Ie({value:a,onChange:y,ref:d,rows:i,style:Ie({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},o)},s)),ke.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:Ie({},fie.shadow,o,{paddingTop:0,paddingBottom:0})})]})}),hie=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],mie=Et(tie,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bM=ge.forwardRef(function(t,n){var r;const l=G1(),i=pn({props:t,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:p,open:m,placement:g,popperOptions:b,popperRef:v,transition:h,slots:y,slotProps:w}=i,_=Kt(i,hie),x=(r=y==null?void 0:y.root)!=null?r:s==null?void 0:s.Root,T=Ie({anchorEl:o,container:c,disablePortal:d,keepMounted:f,modifiers:p,open:m,placement:g,popperOptions:b,popperRef:v,transition:h},_);return ke.jsx(mie,Ie({as:a,direction:l==null?void 0:l.direction,slots:{root:x},slotProps:w??u},T,{ref:n}))}),gie=Qr(ke.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"}),"Cancel");function qj(e){return yn("MuiChip",e)}const vie=hn("MuiChip",["root","sizeSmall","sizeMedium","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"]),dr=vie,yie=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],bie=e=>{const{classes:t,disabled:n,size:r,color:l,iconColor:i,onDelete:o,clickable:a,variant:s}=e,u={root:["root",s,n&&"disabled",`size${Jt(r)}`,`color${Jt(l)}`,a&&"clickable",a&&`clickableColor${Jt(l)}`,o&&"deletable",o&&`deletableColor${Jt(l)}`,`${s}${Jt(l)}`],label:["label",`label${Jt(r)}`],avatar:["avatar",`avatar${Jt(r)}`,`avatarColor${Jt(l)}`],icon:["icon",`icon${Jt(r)}`,`iconColor${Jt(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Jt(r)}`,`deleteIconColor${Jt(l)}`,`deleteIcon${Jt(s)}Color${Jt(l)}`]};return vn(u,qj,t)},xie=Et("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:l,clickable:i,onDelete:o,size:a,variant:s}=n;return[{[`& .${dr.avatar}`]:t.avatar},{[`& .${dr.avatar}`]:t[`avatar${Jt(a)}`]},{[`& .${dr.avatar}`]:t[`avatarColor${Jt(r)}`]},{[`& .${dr.icon}`]:t.icon},{[`& .${dr.icon}`]:t[`icon${Jt(a)}`]},{[`& .${dr.icon}`]:t[`iconColor${Jt(l)}`]},{[`& .${dr.deleteIcon}`]:t.deleteIcon},{[`& .${dr.deleteIcon}`]:t[`deleteIcon${Jt(a)}`]},{[`& .${dr.deleteIcon}`]:t[`deleteIconColor${Jt(r)}`]},{[`& .${dr.deleteIcon}`]:t[`deleteIcon${Jt(s)}Color${Jt(r)}`]},t.root,t[`size${Jt(a)}`],t[`color${Jt(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Jt(r)})`],o&&t.deletable,o&&r!=="default"&&t[`deletableColor${Jt(r)}`],t[s],t[`${s}${Jt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return Ie({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,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",[`&.${dr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${dr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${dr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${dr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${dr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${dr.icon}`]:Ie({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&Ie({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${dr.deleteIcon}`]:Ie({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:rr(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:rr(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:rr(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${dr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${dr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>Ie({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${dr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${dr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>Ie({},t.variant==="outlined"&&{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]}`,[`&.${dr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${dr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${dr.avatar}`]:{marginLeft:4},[`& .${dr.avatarSmall}`]:{marginLeft:2},[`& .${dr.icon}`]:{marginLeft:4},[`& .${dr.iconSmall}`]:{marginLeft:2},[`& .${dr.deleteIcon}`]:{marginRight:5},[`& .${dr.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:rr(e.palette[t.color].main,.7)}`,[`&.${dr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${dr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:rr(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${dr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:rr(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),wie=Et("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Jt(r)}`]]}})(({ownerState:e})=>Ie({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function d8(e){return e.key==="Backspace"||e.key==="Delete"}const _ie=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiChip"}),{avatar:l,className:i,clickable:o,color:a="default",component:s,deleteIcon:u,disabled:c=!1,icon:d,label:f,onClick:p,onDelete:m,onKeyDown:g,onKeyUp:b,size:v="medium",variant:h="filled",tabIndex:y,skipFocusWhenDisabled:w=!1}=r,_=Kt(r,yie),x=ge.useRef(null),T=Lr(x,n),k=j=>{j.stopPropagation(),m&&m(j)},S=j=>{j.currentTarget===j.target&&d8(j)&&j.preventDefault(),g&&g(j)},C=j=>{j.currentTarget===j.target&&(m&&d8(j)?m(j):j.key==="Escape"&&x.current&&x.current.blur()),b&&b(j)},M=o!==!1&&p?!0:o,O=M||m?Tl:s||"div",D=Ie({},r,{component:O,disabled:c,size:v,color:a,iconColor:ge.isValidElement(d)&&d.props.color||a,onDelete:!!m,clickable:M,variant:h}),P=bie(D),E=O===Tl?Ie({component:s||"div",focusVisibleClassName:P.focusVisible},m&&{disableRipple:!0}):{};let I=null;m&&(I=u&&ge.isValidElement(u)?ge.cloneElement(u,{className:on(u.props.className,P.deleteIcon),onClick:k}):ke.jsx(gie,{className:on(P.deleteIcon),onClick:k}));let A=null;l&&ge.isValidElement(l)&&(A=ge.cloneElement(l,{className:on(P.avatar,l.props.className)}));let F=null;return d&&ge.isValidElement(d)&&(F=ge.cloneElement(d,{className:on(P.icon,d.props.className)})),ke.jsxs(xie,Ie({as:O,className:on(P.root,i),disabled:M&&c?!0:void 0,onClick:p,onKeyDown:S,onKeyUp:C,ref:T,tabIndex:w&&c?-1:y,ownerState:D},E,_,{children:[A||F,ke.jsx(wie,{className:on(P.label),ownerState:D,children:f}),I]}))}),Tie=_ie,kie=Object.freeze(Object.defineProperty({__proto__:null,chipClasses:dr,default:Tie,getChipUtilityClass:qj},Symbol.toStringTag,{value:"Module"}));function au({props:e,states:t,muiFormControl:n}){return t.reduce((r,l)=>(r[l]=e[l],n&&typeof e[l]>"u"&&(r[l]=n[l]),r),{})}const eb=ge.createContext(void 0);function Gi(){return ge.useContext(eb)}function Sie(e){return ke.jsx(Tte,Ie({},e,{defaultTheme:X1,themeId:Ql}))}function f8(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ny(e,t=!1){return e&&(f8(e.value)&&e.value!==""||t&&f8(e.defaultValue)&&e.defaultValue!=="")}function Cie(e){return e.startAdornment}function Mie(e){return yn("MuiInputBase",e)}const zd=hn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Pie=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],tb=(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${Jt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},nb=(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]},Oie=e=>{const{classes:t,color:n,disabled:r,error:l,endAdornment:i,focused:o,formControl:a,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:m}=e,g={root:["root",`color${Jt(n)}`,r&&"disabled",l&&"error",s&&"fullWidth",o&&"focused",a&&"formControl",f&&f!=="medium"&&`size${Jt(f)}`,c&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return vn(g,Mie,t)},rb=Et("div",{name:"MuiInputBase",slot:"Root",overridesResolver:tb})(({theme:e,ownerState:t})=>Ie({},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",[`&.${zd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ie({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),ab=Et("input",{name:"MuiInputBase",slot:"Input",overridesResolver:nb})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=Ie({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),l={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Ie({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${zd.formControl} &`]:{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${zd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Aie=ke.jsx(Sie,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ob=ge.forwardRef(function(t,n){var r;const l=pn({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:o,autoFocus:a,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:m,fullWidth:g=!1,id:b,inputComponent:v="input",inputProps:h={},inputRef:y,maxRows:w,minRows:_,multiline:x=!1,name:T,onBlur:k,onChange:S,onClick:C,onFocus:M,onKeyDown:O,onKeyUp:D,placeholder:P,readOnly:E,renderSuffix:I,rows:A,slotProps:F={},slots:j={},startAdornment:z,type:B="text",value:N}=l,R=Kt(l,Pie),q=h.value!=null?h.value:N,{current:Y}=ge.useRef(q!=null),L=ge.useRef(),W=ge.useCallback(K=>{},[]),U=Lr(L,y,h.ref,W),[V,te]=ge.useState(!1),ee=Gi(),H=au({props:l,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=ee?ee.focused:V,ge.useEffect(()=>{!ee&&f&&V&&(te(!1),k&&k())},[ee,f,V,k]);const Z=ee&&ee.onFilled,G=ee&&ee.onEmpty,X=ge.useCallback(K=>{ny(K)?Z&&Z():G&&G()},[Z,G]);no(()=>{Y&&X({value:q})},[q,X,Y]);const Q=K=>{if(H.disabled){K.stopPropagation();return}M&&M(K),h.onFocus&&h.onFocus(K),ee&&ee.onFocus?ee.onFocus(K):te(!0)},re=K=>{k&&k(K),h.onBlur&&h.onBlur(K),ee&&ee.onBlur?ee.onBlur(K):te(!1)},ae=(K,...ne)=>{if(!Y){const de=K.target||L.current;if(de==null)throw new Error(No(1));X({value:de.value})}h.onChange&&h.onChange(K,...ne),S&&S(K,...ne)};ge.useEffect(()=>{X(L.current)},[]);const ie=K=>{L.current&&K.currentTarget===K.target&&L.current.focus(),C&&C(K)};let se=v,he=h;x&&se==="input"&&(A?he=Ie({type:void 0,minRows:A,maxRows:A},he):he=Ie({type:void 0,maxRows:w,minRows:_},he),se=pie);const Se=K=>{X(K.animationName==="mui-auto-fill-cancel"?L.current:{value:"x"})};ge.useEffect(()=>{ee&&ee.setAdornedStart(!!z)},[ee,z]);const Oe=Ie({},l,{color:H.color||"primary",disabled:H.disabled,endAdornment:m,error:H.error,focused:H.focused,formControl:ee,fullWidth:g,hiddenLabel:H.hiddenLabel,multiline:x,size:H.size,startAdornment:z,type:B}),Pe=Oie(Oe),Me=j.root||u.Root||rb,ce=F.root||c.root||{},we=j.input||u.Input||ab;return he=Ie({},he,(r=F.input)!=null?r:c.input),ke.jsxs(ge.Fragment,{children:[!p&&Aie,ke.jsxs(Me,Ie({},ce,!lm(Me)&&{ownerState:Ie({},Oe,ce.ownerState)},{ref:n,onClick:ie},R,{className:on(Pe.root,ce.className,s,E&&"MuiInputBase-readOnly"),children:[z,ke.jsx(eb.Provider,{value:null,children:ke.jsx(we,Ie({ownerState:Oe,"aria-invalid":H.error,"aria-describedby":i,autoComplete:o,autoFocus:a,defaultValue:d,disabled:H.disabled,id:b,onAnimationStart:Se,name:T,placeholder:P,readOnly:E,required:H.required,rows:A,value:q,onKeyDown:O,onKeyUp:D,type:B},he,!lm(we)&&{as:se,ownerState:Ie({},Oe,he.ownerState)},{ref:U,className:on(Pe.input,he.className,E&&"MuiInputBase-readOnly"),onBlur:re,onChange:ae,onFocus:Q}))}),m,I?I(Ie({},H,{startAdornment:z})):null]}))]})});function Die(e){return yn("MuiInput",e)}const Zf=Ie({},zd,hn("MuiInput",["root","underline","input"]));function Eie(e){return yn("MuiOutlinedInput",e)}const xs=Ie({},zd,hn("MuiOutlinedInput",["root","notchedOutline","input"]));function Rie(e){return yn("MuiFilledInput",e)}const du=Ie({},zd,hn("MuiFilledInput",["root","underline","input"])),Lie=Qr(ke.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Iie=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],$ie={entering:{opacity:1},entered:{opacity:1}},ib=ge.forwardRef(function(t,n){const r=po(),l={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:g,style:b,timeout:v=l,TransitionComponent:h=Pi}=t,y=Kt(t,Iie),w=ge.useRef(null),_=Lr(w,a.ref,n),x=P=>E=>{if(P){const I=w.current;E===void 0?P(I):P(I,E)}},T=x(f),k=x((P,E)=>{kj(P);const I=Id({style:b,timeout:v,easing:s},{mode:"enter"});P.style.webkitTransition=r.transitions.create("opacity",I),P.style.transition=r.transitions.create("opacity",I),c&&c(P,E)}),S=x(d),C=x(g),M=x(P=>{const E=Id({style:b,timeout:v,easing:s},{mode:"exit"});P.style.webkitTransition=r.transitions.create("opacity",E),P.style.transition=r.transitions.create("opacity",E),p&&p(P)}),O=x(m),D=P=>{i&&i(w.current,P)};return ke.jsx(h,Ie({appear:o,in:u,nodeRef:w,onEnter:k,onEntered:S,onEntering:T,onExit:M,onExited:O,onExiting:C,addEndListener:D,timeout:v},y,{children:(P,E)=>ge.cloneElement(a,Ie({style:Ie({opacity:0,visibility:P==="exited"&&!u?"hidden":void 0},$ie[P],b,a.props.style),ref:_},E))}))});function Nie(e){return yn("MuiBackdrop",e)}hn("MuiBackdrop",["root","invisible"]);const Fie=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],jie=e=>{const{classes:t,invisible:n}=e;return vn({root:["root",n&&"invisible"]},Nie,t)},zie=Et("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Ie({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"},e.invisible&&{backgroundColor:"transparent"})),Uj=ge.forwardRef(function(t,n){var r,l,i;const o=pn({props:t,name:"MuiBackdrop"}),{children:a,className:s,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:p,slotProps:m={},slots:g={},TransitionComponent:b=ib,transitionDuration:v}=o,h=Kt(o,Fie),y=Ie({},o,{component:u,invisible:f}),w=jie(y),_=(r=m.root)!=null?r:d.root;return ke.jsx(b,Ie({in:p,timeout:v},h,{children:ke.jsx(zie,Ie({"aria-hidden":!0},_,{as:(l=(i=g.root)!=null?i:c.Root)!=null?l:u,className:on(w.root,s,_==null?void 0:_.className),ownerState:Ie({},y,_==null?void 0:_.ownerState),classes:w,ref:n,children:a}))}))}),Bie=es(),Wie=Mte({themeId:Ql,defaultTheme:Bie,defaultClassName:"MuiBox-root",generateClassName:zC.generate}),Ia=Wie,qie=Object.freeze(Object.defineProperty({__proto__:null,default:Ia},Symbol.toStringTag,{value:"Module"}));function Hj(e){return yn("MuiButton",e)}const Uie=hn("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),ph=Uie,Hie=ge.createContext({}),Vie=ge.createContext(void 0),Gie=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Yie=e=>{const{color:t,disableElevation:n,fullWidth:r,size:l,variant:i,classes:o}=e,a={root:["root",i,`${i}${Jt(t)}`,`size${Jt(l)}`,`${i}Size${Jt(l)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Jt(l)}`],endIcon:["endIcon",`iconSize${Jt(l)}`]},s=vn(a,Hj,o);return Ie({},o,s)},Vj=e=>Ie({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Xie=Et(Tl,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Jt(n.color)}`],t[`size${Jt(n.size)}`],t[`${n.variant}Size${Jt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const l=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Ie({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ie({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Ie({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ph.focusVisible}`]:Ie({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ph.disabled}`]:Ie({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${rr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:l,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ph.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ph.disabled}`]:{boxShadow:"none"}}),Kie=Et("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Jt(n.size)}`]]}})(({ownerState:e})=>Ie({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Vj(e))),Zie=Et("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Jt(n.size)}`]]}})(({ownerState:e})=>Ie({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Vj(e))),Qie=ge.forwardRef(function(t,n){const r=ge.useContext(Hie),l=ge.useContext(Vie),i=jC(r,t),o=pn({props:i,name:"MuiButton"}),{children:a,color:s="primary",component:u="button",className:c,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:m,focusVisibleClassName:g,fullWidth:b=!1,size:v="medium",startIcon:h,type:y,variant:w="text"}=o,_=Kt(o,Gie),x=Ie({},o,{color:s,component:u,disabled:d,disableElevation:f,disableFocusRipple:p,fullWidth:b,size:v,type:y,variant:w}),T=Yie(x),k=h&&ke.jsx(Kie,{className:T.startIcon,ownerState:x,children:h}),S=m&&ke.jsx(Zie,{className:T.endIcon,ownerState:x,children:m}),C=l||"";return ke.jsxs(Xie,Ie({ownerState:x,className:on(r.className,T.root,c,C),component:u,disabled:d,focusRipple:!p,focusVisibleClassName:on(T.focusVisible,g),ref:n,type:y},_,{classes:T,children:[k,a,S]}))}),ji=Qie,Jie=Object.freeze(Object.defineProperty({__proto__:null,buttonClasses:ph,default:ji,getButtonUtilityClass:Hj},Symbol.toStringTag,{value:"Module"}));function ele(e){return yn("MuiCard",e)}hn("MuiCard",["root"]);const tle=["className","raised"],nle=e=>{const{classes:t}=e;return vn({root:["root"]},ele,t)},rle=Et(nu,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),ale=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiCard"}),{className:l,raised:i=!1}=r,o=Kt(r,tle),a=Ie({},r,{raised:i}),s=nle(a);return ke.jsx(rle,Ie({className:on(s.root,l),elevation:i?8:void 0,ref:n,ownerState:a},o))});function ole(e){return yn("MuiCardContent",e)}hn("MuiCardContent",["root"]);const ile=["className","component"],lle=e=>{const{classes:t}=e;return vn({root:["root"]},ole,t)},sle=Et("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),ule=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiCardContent"}),{className:l,component:i="div"}=r,o=Kt(r,ile),a=Ie({},r,{component:i}),s=lle(a);return ke.jsx(sle,Ie({as:i,className:on(s.root,l),ownerState:a,ref:n},o))});function cle(e){return yn("PrivateSwitchBase",e)}hn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const dle=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],fle=e=>{const{classes:t,checked:n,disabled:r,edge:l}=e,i={root:["root",n&&"checked",r&&"disabled",l&&`edge${Jt(l)}`],input:["input"]};return vn(i,cle,t)},ple=Et(Tl)(({ownerState:e})=>Ie({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),hle=Et("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),mle=ge.forwardRef(function(t,n){const{autoFocus:r,checked:l,checkedIcon:i,className:o,defaultChecked:a,disabled:s,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:f,inputProps:p,inputRef:m,name:g,onBlur:b,onChange:v,onFocus:h,readOnly:y,required:w=!1,tabIndex:_,type:x,value:T}=t,k=Kt(t,dle),[S,C]=Zl({controlled:l,default:!!a,name:"SwitchBase",state:"checked"}),M=Gi(),O=j=>{h&&h(j),M&&M.onFocus&&M.onFocus(j)},D=j=>{b&&b(j),M&&M.onBlur&&M.onBlur(j)},P=j=>{if(j.nativeEvent.defaultPrevented)return;const z=j.target.checked;C(z),v&&v(j,z)};let E=s;M&&typeof E>"u"&&(E=M.disabled);const I=x==="checkbox"||x==="radio",A=Ie({},t,{checked:S,disabled:E,disableFocusRipple:u,edge:c}),F=fle(A);return ke.jsxs(ple,Ie({component:"span",className:on(F.root,o),centerRipple:!0,focusRipple:!u,disabled:E,tabIndex:null,role:void 0,onFocus:O,onBlur:D,ownerState:A,ref:n},k,{children:[ke.jsx(hle,Ie({autoFocus:r,checked:l,defaultChecked:a,className:F.input,disabled:E,id:I?f:void 0,name:g,onChange:P,readOnly:y,ref:m,required:w,ownerState:A,tabIndex:_,type:x},x==="checkbox"&&T===void 0?{}:{value:T},p)),S?i:d]}))}),gle=Qr(ke.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),vle=Qr(ke.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),yle=Qr(ke.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Gj(e){return yn("MuiCheckbox",e)}const ble=hn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),ev=ble,xle=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],wle=e=>{const{classes:t,indeterminate:n,color:r,size:l}=e,i={root:["root",n&&"indeterminate",`color${Jt(r)}`,`size${Jt(l)}`]},o=vn(i,Gj,t);return Ie({},t,o)},_le=Et(mle,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Jt(n.color)}`]]}})(({theme:e,ownerState:t})=>Ie({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ev.checked}, &.${ev.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ev.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Tle=ke.jsx(vle,{}),kle=ke.jsx(gle,{}),Sle=ke.jsx(yle,{}),Cle=ge.forwardRef(function(t,n){var r,l;const i=pn({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Tle,color:a="primary",icon:s=kle,indeterminate:u=!1,indeterminateIcon:c=Sle,inputProps:d,size:f="medium",className:p}=i,m=Kt(i,xle),g=u?c:s,b=u?c:o,v=Ie({},i,{color:a,indeterminate:u,size:f}),h=wle(v);return ke.jsx(_le,Ie({type:"checkbox",inputProps:Ie({"data-indeterminate":u},d),icon:ge.cloneElement(g,{fontSize:(r=g.props.fontSize)!=null?r:f}),checkedIcon:ge.cloneElement(b,{fontSize:(l=b.props.fontSize)!=null?l:f}),ownerState:v,ref:n,className:on(h.root,p)},m,{classes:h}))}),Mle=Cle,Ple=Object.freeze(Object.defineProperty({__proto__:null,checkboxClasses:ev,default:Mle,getCheckboxUtilityClass:Gj},Symbol.toStringTag,{value:"Module"}));function Yj(e){return yn("MuiCircularProgress",e)}const Ole=hn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),Ale=Ole,Dle=["className","color","disableShrink","size","style","thickness","value","variant"];let lb=e=>e,p8,h8,m8,g8;const ws=44,Ele=Hi(p8||(p8=lb` 0% { transform: rotate(0deg); } @@ -158,7 +158,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { transform: rotate(360deg); } -`)),$le=Hi(h8||(h8=sb` +`)),Rle=Hi(h8||(h8=lb` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -173,11 +173,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),Nle=e=>{const{classes:t,variant:n,color:r,disableShrink:l}=e,i={root:["root",n,`color${Jt(r)}`],svg:["svg"],circle:["circle",`circle${Jt(n)}`,l&&"circleDisableShrink"]};return vn(i,Xj,t)},Fle=Et("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Jt(n.color)}`]]}})(({ownerState:e,theme:t})=>Ie({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Jl(m8||(m8=sb` +`)),Lle=e=>{const{classes:t,variant:n,color:r,disableShrink:l}=e,i={root:["root",n,`color${Jt(r)}`],svg:["svg"],circle:["circle",`circle${Jt(n)}`,l&&"circleDisableShrink"]};return vn(i,Yj,t)},Ile=Et("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Jt(n.color)}`]]}})(({ownerState:e,theme:t})=>Ie({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Jl(m8||(m8=lb` animation: ${0} 1.4s linear infinite; - `),Ile)),jle=Et("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),zle=Et("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Jt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>Ie({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Jl(g8||(g8=sb` + `),Ele)),$le=Et("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Nle=Et("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Jt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>Ie({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Jl(g8||(g8=lb` animation: ${0} 1.4s ease-in-out infinite; - `),$le)),Ble=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiCircularProgress"}),{className:l,color:i="primary",disableShrink:o=!1,size:a=40,style:s,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=Kt(r,Lle),p=Ie({},r,{color:i,disableShrink:o,size:a,thickness:u,value:c,variant:d}),m=Nle(p),g={},b={},v={};if(d==="determinate"){const h=2*Math.PI*((ws-u)/2);g.strokeDasharray=h.toFixed(3),v["aria-valuenow"]=Math.round(c),g.strokeDashoffset=`${((100-c)/100*h).toFixed(3)}px`,b.transform="rotate(-90deg)"}return ke.jsx(Fle,Ie({className:on(m.root,l),style:Ie({width:a,height:a},b,s),ownerState:p,ref:n,role:"progressbar"},v,f,{children:ke.jsx(jle,{className:m.svg,ownerState:p,viewBox:`${ws/2} ${ws/2} ${ws} ${ws}`,children:ke.jsx(zle,{className:m.circle,style:g,ownerState:p,cx:ws,cy:ws,r:(ws-u)/2,fill:"none",strokeWidth:u})})}))}),Kj=Ble,Wle=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:Rle,default:Kj,getCircularProgressUtilityClass:Xj},Symbol.toStringTag,{value:"Module"}));function qle(e){return yn("MuiModal",e)}hn("MuiModal",["root","hidden","backdrop"]);const Ule=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Hle=e=>{const{open:t,exited:n,classes:r}=e;return vn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},qle,r)},Vle=Et("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Ie({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Gle=Et(Hj,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Zj=ge.forwardRef(function(t,n){var r,l,i,o,a,s;const u=pn({name:"MuiModal",props:t}),{BackdropComponent:c=Gle,BackdropProps:d,className:f,closeAfterTransition:p=!1,children:m,container:g,component:b,components:v={},componentsProps:h={},disableAutoFocus:y=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:_=!1,disablePortal:x=!1,disableRestoreFocus:T=!1,disableScrollLock:k=!1,hideBackdrop:S=!1,keepMounted:C=!1,onBackdropClick:M,open:O,slotProps:D,slots:P}=u,E=Kt(u,Ule),I=Ie({},u,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:w,disableEscapeKeyDown:_,disablePortal:x,disableRestoreFocus:T,disableScrollLock:k,hideBackdrop:S,keepMounted:C}),{getRootProps:A,getBackdropProps:F,getTransitionProps:j,portalRef:z,isTopModal:B,exited:N,hasTransition:R}=pie(Ie({},I,{rootRef:n})),q=Ie({},I,{exited:N}),Y=Hle(q),L={};if(m.props.tabIndex===void 0&&(L.tabIndex="-1"),R){const{onEnter:Z,onExited:G}=j();L.onEnter=Z,L.onExited=G}const W=(r=(l=P==null?void 0:P.root)!=null?l:v.Root)!=null?r:Vle,U=(i=(o=P==null?void 0:P.backdrop)!=null?o:v.Backdrop)!=null?i:c,V=(a=D==null?void 0:D.root)!=null?a:h.root,te=(s=D==null?void 0:D.backdrop)!=null?s:h.backdrop,ee=Ui({elementType:W,externalSlotProps:V,externalForwardedProps:E,getSlotProps:A,additionalProps:{ref:n,as:b},ownerState:q,className:on(f,V==null?void 0:V.className,Y==null?void 0:Y.root,!q.open&&q.exited&&(Y==null?void 0:Y.hidden))}),H=Ui({elementType:U,externalSlotProps:te,additionalProps:d,getSlotProps:Z=>F(Ie({},Z,{onClick:G=>{M&&M(G),Z!=null&&Z.onClick&&Z.onClick(G)}})),className:on(te==null?void 0:te.className,d==null?void 0:d.className,Y==null?void 0:Y.backdrop),ownerState:q});return!C&&!O&&(!R||N)?null:ke.jsx(qj,{ref:z,container:g,disablePortal:x,children:ke.jsxs(W,Ie({},ee,{children:[!S&&c?ke.jsx(U,Ie({},H)):null,ke.jsx(Rj,{disableEnforceFocus:w,disableAutoFocus:y,disableRestoreFocus:T,isEnabled:B,open:O,children:ge.cloneElement(m,L)})]}))})});function Yle(e){return yn("MuiDialog",e)}const Rh=hn("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Xle=ge.createContext({}),Kle=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Zle=Et(Hj,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Qle=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:l,fullScreen:i}=e,o={root:["root"],container:["container",`scroll${Jt(n)}`],paper:["paper",`paperScroll${Jt(n)}`,`paperWidth${Jt(String(r))}`,l&&"paperFullWidth",i&&"paperFullScreen"]};return vn(o,Yle,t)},Jle=Et(Zj,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),ese=Et("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Jt(n.scroll)}`]]}})(({ownerState:e})=>Ie({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),tse=Et(nu,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Jt(n.scroll)}`],t[`paperWidth${Jt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>Ie({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Rh.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Rh.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Rh.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),nse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDialog"}),l=po(),i={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":a,BackdropComponent:s,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:f=!1,fullScreen:p=!1,fullWidth:m=!1,maxWidth:g="sm",onBackdropClick:b,onClose:v,open:h,PaperComponent:y=nu,PaperProps:w={},scroll:_="paper",TransitionComponent:x=lb,transitionDuration:T=i,TransitionProps:k}=r,S=Kt(r,Kle),C=Ie({},r,{disableEscapeKeyDown:f,fullScreen:p,fullWidth:m,maxWidth:g,scroll:_}),M=Qle(C),O=ge.useRef(),D=A=>{O.current=A.target===A.currentTarget},P=A=>{O.current&&(O.current=null,b&&b(A),v&&v(A,"backdropClick"))},E=Kl(a),I=ge.useMemo(()=>({titleId:E}),[E]);return ke.jsx(Jle,Ie({className:on(M.root,d),closeAfterTransition:!0,components:{Backdrop:Zle},componentsProps:{backdrop:Ie({transitionDuration:T,as:s},u)},disableEscapeKeyDown:f,onClose:v,open:h,ref:n,onClick:P,ownerState:C},S,{children:ke.jsx(x,Ie({appear:!0,in:h,timeout:T,role:"presentation"},k,{children:ke.jsx(ese,{className:on(M.container),onMouseDown:D,ownerState:C,children:ke.jsx(tse,Ie({as:y,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":E},w,{className:on(M.paper,w.className),ownerState:C,children:ke.jsx(Xle.Provider,{value:I,children:c})}))})}))}))});function rse(e){return yn("MuiDialogActions",e)}hn("MuiDialogActions",["root","spacing"]);const ase=["className","disableSpacing"],ose=e=>{const{classes:t,disableSpacing:n}=e;return vn({root:["root",!n&&"spacing"]},rse,t)},ise=Et("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>Ie({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),lse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDialogActions"}),{className:l,disableSpacing:i=!1}=r,o=Kt(r,ase),a=Ie({},r,{disableSpacing:i}),s=ose(a);return ke.jsx(ise,Ie({className:on(s.root,l),ownerState:a,ref:n},o))});function sse(e){return yn("MuiDialogContent",e)}hn("MuiDialogContent",["root","dividers"]);const use=hn("MuiDialogTitle",["root"]),cse=["className","dividers"],dse=e=>{const{classes:t,dividers:n}=e;return vn({root:["root",n&&"dividers"]},sse,t)},fse=Et("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>Ie({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${use.root} + &`]:{paddingTop:0}})),pse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDialogContent"}),{className:l,dividers:i=!1}=r,o=Kt(r,cse),a=Ie({},r,{dividers:i}),s=dse(a);return ke.jsx(fse,Ie({className:on(s.root,l),ownerState:a,ref:n},o))}),v8=hn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),hse=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],mse=e=>{const{classes:t,disableUnderline:n}=e,l=vn({root:["root",!n&&"underline"],input:["input"]},$ie,t);return Ie({},t,l)},gse=Et(ab,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nb(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",l=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Ie({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,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:i}},[`&.${fu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${fu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,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"},[`&.${fu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fu.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})`:l}`,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(.${fu.disabled}, .${fu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${fu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Ie({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),vse=Et(ob,{name:"MuiFilledInput",slot:"Input",overridesResolver:rb})(({theme:e,ownerState:t})=>Ie({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),xM=ge.forwardRef(function(t,n){var r,l,i,o;const a=pn({props:t,name:"MuiFilledInput"}),{components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:p,slots:m={},type:g="text"}=a,b=Kt(a,hse),v=Ie({},a,{fullWidth:c,inputComponent:d,multiline:f,type:g}),h=mse(a),y={root:{ownerState:v},input:{ownerState:v}},w=p??u?ha(p??u,y):y,_=(r=(l=m.root)!=null?l:s.Root)!=null?r:gse,x=(i=(o=m.input)!=null?o:s.Input)!=null?i:vse;return ke.jsx(ib,Ie({slots:{root:_,input:x},componentsProps:w,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:g},b,{classes:h}))});xM.muiName="Input";function Qj(e){return yn("MuiFormControl",e)}const yse=hn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]),bse=yse,xse=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],wse=e=>{const{classes:t,margin:n,fullWidth:r}=e,l={root:["root",n!=="none"&&`margin${Jt(n)}`,r&&"fullWidth"]};return vn(l,Qj,t)},_se=Et("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>Ie({},t.root,t[`margin${Jt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>Ie({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Tse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiFormControl"}),{children:l,className:i,color:o="primary",component:a="div",disabled:s=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:p="none",required:m=!1,size:g="medium",variant:b="outlined"}=r,v=Kt(r,xse),h=Ie({},r,{color:o,component:a,disabled:s,error:u,fullWidth:d,hiddenLabel:f,margin:p,required:m,size:g,variant:b}),y=wse(h),[w,_]=ge.useState(()=>{let D=!1;return l&&ge.Children.forEach(l,P=>{if(!G0(P,["Input","Select"]))return;const E=G0(P,["Select"])?P.props.input:P;E&&Oie(E.props)&&(D=!0)}),D}),[x,T]=ge.useState(()=>{let D=!1;return l&&ge.Children.forEach(l,P=>{G0(P,["Input","Select"])&&(ny(P.props,!0)||ny(P.props.inputProps,!0))&&(D=!0)}),D}),[k,S]=ge.useState(!1);s&&k&&S(!1);const C=c!==void 0&&!s?c:k;let M;const O=ge.useMemo(()=>({adornedStart:w,setAdornedStart:_,color:o,disabled:s,error:u,filled:x,focused:C,fullWidth:d,hiddenLabel:f,size:g,onBlur:()=>{S(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{S(!0)},registerEffect:M,required:m,variant:b}),[w,o,s,u,x,C,d,f,M,m,g,b]);return ke.jsx(tb.Provider,{value:O,children:ke.jsx(_se,Ie({as:a,ownerState:h,className:on(y.root,i),ref:n},v,{children:l}))})}),Jj=Tse,kse=Object.freeze(Object.defineProperty({__proto__:null,default:Jj,formControlClasses:bse,getFormControlUtilityClasses:Qj,useFormControl:Gi},Symbol.toStringTag,{value:"Module"})),Sse=mne({createStyledComponent:Et("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>pn({props:e,name:"MuiStack"})});function ez(e){return yn("MuiFormControlLabel",e)}const Cse=hn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),cd=Cse,Mse=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Pse=e=>{const{classes:t,disabled:n,labelPlacement:r,error:l,required:i}=e,o={root:["root",n&&"disabled",`labelPlacement${Jt(r)}`,l&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",l&&"error"]};return vn(o,ez,t)},Ose=Et("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${cd.label}`]:t.label},t.root,t[`labelPlacement${Jt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>Ie({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${cd.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${cd.label}`]:{[`&.${cd.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Ase=Et("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${cd.error}`]:{color:(e.vars||e).palette.error.main}})),Dse=ge.forwardRef(function(t,n){var r,l;const i=pn({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:a={},control:s,disabled:u,disableTypography:c,label:d,labelPlacement:f="end",required:p,slotProps:m={}}=i,g=Kt(i,Mse),b=Gi(),v=(r=u??s.props.disabled)!=null?r:b==null?void 0:b.disabled,h=p??s.props.required,y={disabled:v,required:h};["checked","name","onChange","value","inputRef"].forEach(S=>{typeof s.props[S]>"u"&&typeof i[S]<"u"&&(y[S]=i[S])});const w=au({props:i,muiFormControl:b,states:["error"]}),_=Ie({},i,{disabled:v,labelPlacement:f,required:h,error:w.error}),x=Pse(_),T=(l=m.typography)!=null?l:a.typography;let k=d;return k!=null&&k.type!==pr&&!c&&(k=ke.jsx(pr,Ie({component:"span"},T,{className:on(x.label,T==null?void 0:T.className),children:k}))),ke.jsxs(Ose,Ie({className:on(x.root,o),ownerState:_,ref:n},g,{children:[ge.cloneElement(s,y),h?ke.jsxs(Sse,{direction:"row",alignItems:"center",children:[k,ke.jsxs(Ase,{ownerState:_,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):k]}))}),Ese=Dse,Rse=Object.freeze(Object.defineProperty({__proto__:null,default:Ese,formControlLabelClasses:cd,getFormControlLabelUtilityClasses:ez},Symbol.toStringTag,{value:"Module"}));function tz(e){return yn("MuiFormGroup",e)}const Lse=hn("MuiFormGroup",["root","row","error"]),Ise=Lse,$se=["className","row"],Nse=e=>{const{classes:t,row:n,error:r}=e;return vn({root:["root",n&&"row",r&&"error"]},tz,t)},Fse=Et("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>Ie({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),jse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiFormGroup"}),{className:l,row:i=!1}=r,o=Kt(r,$se),a=Gi(),s=au({props:r,muiFormControl:a,states:["error"]}),u=Ie({},r,{row:i,error:s.error}),c=Nse(u);return ke.jsx(Fse,Ie({className:on(c.root,l),ownerState:u,ref:n},o))}),zse=jse,Bse=Object.freeze(Object.defineProperty({__proto__:null,default:zse,formGroupClasses:Ise,getFormGroupUtilityClass:tz},Symbol.toStringTag,{value:"Module"}));function nz(e){return yn("MuiFormHelperText",e)}const Wse=hn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),K3=Wse;var y8;const qse=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Use=e=>{const{classes:t,contained:n,size:r,disabled:l,error:i,filled:o,focused:a,required:s}=e,u={root:["root",l&&"disabled",i&&"error",r&&`size${Jt(r)}`,n&&"contained",a&&"focused",o&&"filled",s&&"required"]};return vn(u,nz,t)},Hse=Et("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Jt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>Ie({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${K3.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${K3.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Vse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiFormHelperText"}),{children:l,className:i,component:o="p"}=r,a=Kt(r,qse),s=Gi(),u=au({props:r,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),c=Ie({},r,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=Use(c);return ke.jsx(Hse,Ie({as:o,ownerState:c,className:on(d.root,i),ref:n},a,{children:l===" "?y8||(y8=ke.jsx("span",{className:"notranslate",children:"​"})):l}))}),rz=Vse,Gse=Object.freeze(Object.defineProperty({__proto__:null,default:rz,formHelperTextClasses:K3,getFormHelperTextUtilityClasses:nz},Symbol.toStringTag,{value:"Module"}));function Yse(e){return yn("MuiFormLabel",e)}const Lh=hn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Xse=["children","className","color","component","disabled","error","filled","focused","required"],Kse=e=>{const{classes:t,color:n,focused:r,disabled:l,error:i,filled:o,required:a}=e,s={root:["root",`color${Jt(n)}`,l&&"disabled",i&&"error",o&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return vn(s,Yse,t)},Zse=Et("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>Ie({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>Ie({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Lh.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Lh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Lh.error}`]:{color:(e.vars||e).palette.error.main}})),Qse=Et("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Lh.error}`]:{color:(e.vars||e).palette.error.main}})),Jse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiFormLabel"}),{children:l,className:i,component:o="label"}=r,a=Kt(r,Xse),s=Gi(),u=au({props:r,muiFormControl:s,states:["color","required","focused","disabled","error","filled"]}),c=Ie({},r,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=Kse(c);return ke.jsxs(Zse,Ie({as:o,ownerState:c,className:on(d.root,i),ref:n},a,{children:[l,u.required&&ke.jsxs(Qse,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),b8=ge.createContext();function eue(e){return yn("MuiGrid",e)}const tue=[0,1,2,3,4,5,6,7,8,9,10],nue=["column-reverse","column","row-reverse","row"],rue=["nowrap","wrap-reverse","wrap"],Jf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],dm=hn("MuiGrid",["root","container","item","zeroMinWidth",...tue.map(e=>`spacing-xs-${e}`),...nue.map(e=>`direction-xs-${e}`),...rue.map(e=>`wrap-xs-${e}`),...Jf.map(e=>`grid-xs-${e}`),...Jf.map(e=>`grid-sm-${e}`),...Jf.map(e=>`grid-md-${e}`),...Jf.map(e=>`grid-lg-${e}`),...Jf.map(e=>`grid-xl-${e}`)]),aue=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function wd(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function oue({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,l)=>{let i={};if(t[l]&&(n=t[l]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const o=Bu({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof o=="object"?o[l]:o;if(a==null)return r;const s=`${Math.round(n/a*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${s} + ${wd(c)})`;u={flexBasis:d,maxWidth:d}}}i=Ie({flexBasis:s,flexGrow:0,maxWidth:s},u)}return e.breakpoints.values[l]===0?Object.assign(r,i):r[e.breakpoints.up(l)]=i,r},{})}function iue({theme:e,ownerState:t}){const n=Bu({values:t.direction,breakpoints:e.breakpoints.values});return jo({theme:e},n,r=>{const l={flexDirection:r};return r.indexOf("column")===0&&(l[`& > .${dm.item}`]={maxWidth:"none"}),l})}function az({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(l=>{n===""&&t[l]!==0&&(n=l)});const r=Object.keys(e).sort((l,i)=>e[l]-e[i]);return r.slice(0,r.indexOf(n))}function lue({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let l={};if(n&&r!==0){const i=Bu({values:r,breakpoints:e.breakpoints.values});let o;typeof i=="object"&&(o=az({breakpoints:e.breakpoints.values,values:i})),l=jo({theme:e},i,(a,s)=>{var u;const c=e.spacing(a);return c!=="0px"?{marginTop:`-${wd(c)}`,[`& > .${dm.item}`]:{paddingTop:wd(c)}}:(u=o)!=null&&u.includes(s)?{}:{marginTop:0,[`& > .${dm.item}`]:{paddingTop:0}}})}return l}function sue({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let l={};if(n&&r!==0){const i=Bu({values:r,breakpoints:e.breakpoints.values});let o;typeof i=="object"&&(o=az({breakpoints:e.breakpoints.values,values:i})),l=jo({theme:e},i,(a,s)=>{var u;const c=e.spacing(a);return c!=="0px"?{width:`calc(100% + ${wd(c)})`,marginLeft:`-${wd(c)}`,[`& > .${dm.item}`]:{paddingLeft:wd(c)}}:(u=o)!=null&&u.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${dm.item}`]:{paddingLeft:0}}})}return l}function uue(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(l=>{const i=e[l];Number(i)>0&&r.push(n[`spacing-${l}-${String(i)}`])}),r}const cue=Et("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:l,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:u}=n;let c=[];r&&(c=uue(o,u,t));const d=[];return u.forEach(f=>{const p=n[f];p&&d.push(t[`grid-${f}-${String(p)}`])}),[t.root,r&&t.container,i&&t.item,s&&t.zeroMinWidth,...c,l!=="row"&&t[`direction-xs-${String(l)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...d]}})(({ownerState:e})=>Ie({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),iue,lue,sue,oue);function due(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const l=e[r];if(Number(l)>0){const i=`spacing-${r}-${String(l)}`;n.push(i)}}),n}const fue=e=>{const{classes:t,container:n,direction:r,item:l,spacing:i,wrap:o,zeroMinWidth:a,breakpoints:s}=e;let u=[];n&&(u=due(i,s));const c=[];s.forEach(f=>{const p=e[f];p&&c.push(`grid-${f}-${String(p)}`)});const d={root:["root",n&&"container",l&&"item",a&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,o!=="wrap"&&`wrap-xs-${String(o)}`,...c]};return vn(d,eue,t)},cr=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiGrid"}),{breakpoints:l}=po(),i=X1(r),{className:o,columns:a,columnSpacing:s,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:p,spacing:m=0,wrap:g="wrap",zeroMinWidth:b=!1}=i,v=Kt(i,aue),h=p||m,y=s||m,w=ge.useContext(b8),_=c?a||12:w,x={},T=Ie({},v);l.keys.forEach(C=>{v[C]!=null&&(x[C]=v[C],delete T[C])});const k=Ie({},i,{columns:_,container:c,direction:d,item:f,rowSpacing:h,columnSpacing:y,wrap:g,zeroMinWidth:b,spacing:m},x,{breakpoints:l.keys}),S=fue(k);return ke.jsx(b8.Provider,{value:_,children:ke.jsx(cue,Ie({ownerState:k,className:on(S.root,o),as:u,ref:n},T))})}),pue=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Z3(e){return`scale(${e}, ${e**2})`}const hue={entering:{opacity:1,transform:Z3(1)},entered:{opacity:1,transform:"none"}},ww=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fm=ge.forwardRef(function(t,n){const{addEndListener:r,appear:l=!0,children:i,easing:o,in:a,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:p,style:m,timeout:g="auto",TransitionComponent:b=Pi}=t,v=Kt(t,pue),h=ge.useRef(),y=ge.useRef(),w=po(),_=ge.useRef(null),x=Lr(_,i.ref,n),T=E=>I=>{if(E){const A=_.current;I===void 0?E(A):E(A,I)}},k=T(c),S=T((E,I)=>{Sj(E);const{duration:A,delay:F,easing:j}=$d({style:m,timeout:g,easing:o},{mode:"enter"});let z;g==="auto"?(z=w.transitions.getAutoHeightDuration(E.clientHeight),y.current=z):z=A,E.style.transition=[w.transitions.create("opacity",{duration:z,delay:F}),w.transitions.create("transform",{duration:ww?z:z*.666,delay:F,easing:j})].join(","),s&&s(E,I)}),C=T(u),M=T(p),O=T(E=>{const{duration:I,delay:A,easing:F}=$d({style:m,timeout:g,easing:o},{mode:"exit"});let j;g==="auto"?(j=w.transitions.getAutoHeightDuration(E.clientHeight),y.current=j):j=I,E.style.transition=[w.transitions.create("opacity",{duration:j,delay:A}),w.transitions.create("transform",{duration:ww?j:j*.666,delay:ww?A:A||j*.333,easing:F})].join(","),E.style.opacity=0,E.style.transform=Z3(.75),d&&d(E)}),D=T(f),P=E=>{g==="auto"&&(h.current=setTimeout(E,y.current||0)),r&&r(_.current,E)};return ge.useEffect(()=>()=>{clearTimeout(h.current)},[]),ke.jsx(b,Ie({appear:l,in:a,nodeRef:_,onEnter:S,onEntered:C,onEntering:k,onExit:O,onExited:D,onExiting:M,addEndListener:P,timeout:g==="auto"?null:g},v,{children:(E,I)=>ge.cloneElement(i,Ie({style:Ie({opacity:0,transform:Z3(.75),visibility:E==="exited"&&!a?"hidden":void 0},hue[E],m,i.props.style),ref:x},I))}))});fm.muiSupportAuto=!0;function mue(e,t,n,r,l){const[i,o]=ge.useState(()=>l&&n?n(e).matches:r?r(e).matches:t);return no(()=>{let a=!0;if(!n)return;const s=n(e),u=()=>{a&&o(s.matches)};return u(),s.addListener(u),()=>{a=!1,s.removeListener(u)}},[e,n]),i}const oz=ge.useSyncExternalStore;function gue(e,t,n,r,l){const i=ge.useCallback(()=>t,[t]),o=ge.useMemo(()=>{if(l&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return i},[i,e,r,l,n]),[a,s]=ge.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[i,n,e]);return oz(s,a,o)}function wM(e,t={}){const n=Y1(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:o=null,noSsr:a=!1}=cj({name:"MuiUseMediaQuery",props:t,theme:n});let s=typeof e=="function"?e(n):e;return s=s.replace(/^@media( ?)/m,""),(oz!==void 0?gue:mue)(s,l,i,o,a)}function iz(e){return yn("MuiIcon",e)}const vue=hn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),yue=vue,bue=["baseClassName","className","color","component","fontSize"],xue=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${Jt(t)}`,`fontSize${Jt(n)}`]};return vn(l,iz,r)},wue=Et("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Jt(n.color)}`],t[`fontSize${Jt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),lz=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiIcon"}),{baseClassName:l="material-icons",className:i,color:o="inherit",component:a="span",fontSize:s="medium"}=r,u=Kt(r,bue),c=Ie({},r,{baseClassName:l,color:o,component:a,fontSize:s}),d=xue(c);return ke.jsx(wue,Ie({as:a,className:on(l,"notranslate",d.root,i),ownerState:c,"aria-hidden":!0,ref:n},u))});lz.muiName="Icon";const _ue=lz,Tue=Object.freeze(Object.defineProperty({__proto__:null,default:_ue,getIconUtilityClass:iz,iconClasses:yue},Symbol.toStringTag,{value:"Module"})),kue=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Sue=e=>{const{classes:t,disableUnderline:n}=e,l=vn({root:["root",!n&&"underline"],input:["input"]},Lie,t);return Ie({},t,l)},Cue=Et(ab,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nb(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Ie({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${Qf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qf.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,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(.${Qf.disabled}, .${Qf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Qf.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Mue=Et(ob,{name:"MuiInput",slot:"Input",overridesResolver:rb})({}),_M=ge.forwardRef(function(t,n){var r,l,i,o;const a=pn({props:t,name:"MuiInput"}),{disableUnderline:s,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:g={},type:b="text"}=a,v=Kt(a,kue),h=Sue(a),w={root:{ownerState:{disableUnderline:s}}},_=m??c?ha(m??c,w):w,x=(r=(l=g.root)!=null?l:u.Root)!=null?r:Cue,T=(i=(o=g.input)!=null?o:u.Input)!=null?i:Mue;return ke.jsx(ib,Ie({slots:{root:x,input:T},slotProps:_,fullWidth:d,inputComponent:f,multiline:p,ref:n,type:b},v,{classes:h}))});_M.muiName="Input";function sz(e){return yn("MuiInputAdornment",e)}const Pue=hn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Q3=Pue;var x8;const Oue=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Aue=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Jt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Due=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:l,size:i,variant:o}=e,a={root:["root",n&&"disablePointerEvents",l&&`position${Jt(l)}`,o,r&&"hiddenLabel",i&&`size${Jt(i)}`]};return vn(a,sz,t)},Eue=Et("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Aue})(({theme:e,ownerState:t})=>Ie({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${Q3.positionStart}&:not(.${Q3.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Rue=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiInputAdornment"}),{children:l,className:i,component:o="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:u,variant:c}=r,d=Kt(r,Oue),f=Gi()||{};let p=c;c&&f.variant,f&&!p&&(p=f.variant);const m=Ie({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:u,variant:p}),g=Due(m);return ke.jsx(tb.Provider,{value:null,children:ke.jsx(Eue,Ie({as:o,ownerState:m,className:on(g.root,i),ref:n},d,{children:typeof l=="string"&&!s?ke.jsx(pr,{color:"text.secondary",children:l}):ke.jsxs(ge.Fragment,{children:[u==="start"?x8||(x8=ke.jsx("span",{className:"notranslate",children:"​"})):null,l]})}))})}),uz=Rue,Lue=Object.freeze(Object.defineProperty({__proto__:null,default:uz,getInputAdornmentUtilityClass:sz,inputAdornmentClasses:Q3},Symbol.toStringTag,{value:"Module"}));function cz(e){return yn("MuiInputLabel",e)}const Iue=hn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]),$ue=Iue,Nue=["disableAnimation","margin","shrink","variant","className"],Fue=e=>{const{classes:t,formControl:n,size:r,shrink:l,disableAnimation:i,variant:o,required:a}=e,s={root:["root",n&&"formControl",!i&&"animated",l&&"shrink",r&&r!=="normal"&&`size${Jt(r)}`,o],asterisk:[a&&"asterisk"]},u=vn(s,cz,t);return Ie({},t,u)},jue=Et(Jse,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Lh.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>Ie({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&Ie({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&Ie({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&Ie({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),dz=ge.forwardRef(function(t,n){const r=pn({name:"MuiInputLabel",props:t}),{disableAnimation:l=!1,shrink:i,className:o}=r,a=Kt(r,Nue),s=Gi();let u=i;typeof u>"u"&&s&&(u=s.filled||s.focused||s.adornedStart);const c=au({props:r,muiFormControl:s,states:["size","variant","required"]}),d=Ie({},r,{disableAnimation:l,formControl:s,shrink:u,size:c.size,variant:c.variant,required:c.required}),f=Fue(d);return ke.jsx(jue,Ie({"data-shrink":u,ownerState:d,ref:n,className:on(f.root,o)},a,{classes:f}))}),zue=Object.freeze(Object.defineProperty({__proto__:null,default:dz,getInputLabelUtilityClasses:cz,inputLabelClasses:$ue},Symbol.toStringTag,{value:"Module"}));function fz(e){return yn("MuiLinearProgress",e)}const Bue=hn("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),Wue=Bue,que=["className","color","value","valueBuffer","variant"];let sf=e=>e,w8,_8,T8,k8,S8,C8;const J3=4,Uue=Hi(w8||(w8=sf` + `),Rle)),Fle=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiCircularProgress"}),{className:l,color:i="primary",disableShrink:o=!1,size:a=40,style:s,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=Kt(r,Dle),p=Ie({},r,{color:i,disableShrink:o,size:a,thickness:u,value:c,variant:d}),m=Lle(p),g={},b={},v={};if(d==="determinate"){const h=2*Math.PI*((ws-u)/2);g.strokeDasharray=h.toFixed(3),v["aria-valuenow"]=Math.round(c),g.strokeDashoffset=`${((100-c)/100*h).toFixed(3)}px`,b.transform="rotate(-90deg)"}return ke.jsx(Ile,Ie({className:on(m.root,l),style:Ie({width:a,height:a},b,s),ownerState:p,ref:n,role:"progressbar"},v,f,{children:ke.jsx($le,{className:m.svg,ownerState:p,viewBox:`${ws/2} ${ws/2} ${ws} ${ws}`,children:ke.jsx(Nle,{className:m.circle,style:g,ownerState:p,cx:ws,cy:ws,r:(ws-u)/2,fill:"none",strokeWidth:u})})}))}),Xj=Fle,jle=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:Ale,default:Xj,getCircularProgressUtilityClass:Yj},Symbol.toStringTag,{value:"Module"}));function zle(e){return yn("MuiModal",e)}hn("MuiModal",["root","hidden","backdrop"]);const Ble=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wle=e=>{const{open:t,exited:n,classes:r}=e;return vn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zle,r)},qle=Et("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Ie({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Ule=Et(Uj,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Kj=ge.forwardRef(function(t,n){var r,l,i,o,a,s;const u=pn({name:"MuiModal",props:t}),{BackdropComponent:c=Ule,BackdropProps:d,className:f,closeAfterTransition:p=!1,children:m,container:g,component:b,components:v={},componentsProps:h={},disableAutoFocus:y=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:_=!1,disablePortal:x=!1,disableRestoreFocus:T=!1,disableScrollLock:k=!1,hideBackdrop:S=!1,keepMounted:C=!1,onBackdropClick:M,open:O,slotProps:D,slots:P}=u,E=Kt(u,Ble),I=Ie({},u,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:w,disableEscapeKeyDown:_,disablePortal:x,disableRestoreFocus:T,disableScrollLock:k,hideBackdrop:S,keepMounted:C}),{getRootProps:A,getBackdropProps:F,getTransitionProps:j,portalRef:z,isTopModal:B,exited:N,hasTransition:R}=cie(Ie({},I,{rootRef:n})),q=Ie({},I,{exited:N}),Y=Wle(q),L={};if(m.props.tabIndex===void 0&&(L.tabIndex="-1"),R){const{onEnter:Z,onExited:G}=j();L.onEnter=Z,L.onExited=G}const W=(r=(l=P==null?void 0:P.root)!=null?l:v.Root)!=null?r:qle,U=(i=(o=P==null?void 0:P.backdrop)!=null?o:v.Backdrop)!=null?i:c,V=(a=D==null?void 0:D.root)!=null?a:h.root,te=(s=D==null?void 0:D.backdrop)!=null?s:h.backdrop,ee=Ui({elementType:W,externalSlotProps:V,externalForwardedProps:E,getSlotProps:A,additionalProps:{ref:n,as:b},ownerState:q,className:on(f,V==null?void 0:V.className,Y==null?void 0:Y.root,!q.open&&q.exited&&(Y==null?void 0:Y.hidden))}),H=Ui({elementType:U,externalSlotProps:te,additionalProps:d,getSlotProps:Z=>F(Ie({},Z,{onClick:G=>{M&&M(G),Z!=null&&Z.onClick&&Z.onClick(G)}})),className:on(te==null?void 0:te.className,d==null?void 0:d.className,Y==null?void 0:Y.backdrop),ownerState:q});return!C&&!O&&(!R||N)?null:ke.jsx(Wj,{ref:z,container:g,disablePortal:x,children:ke.jsxs(W,Ie({},ee,{children:[!S&&c?ke.jsx(U,Ie({},H)):null,ke.jsx(Ej,{disableEnforceFocus:w,disableAutoFocus:y,disableRestoreFocus:T,isEnabled:B,open:O,children:ge.cloneElement(m,L)})]}))})});function Hle(e){return yn("MuiDialog",e)}const Eh=hn("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Vle=ge.createContext({}),Gle=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Yle=Et(Uj,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Xle=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:l,fullScreen:i}=e,o={root:["root"],container:["container",`scroll${Jt(n)}`],paper:["paper",`paperScroll${Jt(n)}`,`paperWidth${Jt(String(r))}`,l&&"paperFullWidth",i&&"paperFullScreen"]};return vn(o,Hle,t)},Kle=Et(Kj,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Zle=Et("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Jt(n.scroll)}`]]}})(({ownerState:e})=>Ie({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Qle=Et(nu,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Jt(n.scroll)}`],t[`paperWidth${Jt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>Ie({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Eh.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Eh.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Eh.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Jle=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDialog"}),l=po(),i={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":a,BackdropComponent:s,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:f=!1,fullScreen:p=!1,fullWidth:m=!1,maxWidth:g="sm",onBackdropClick:b,onClose:v,open:h,PaperComponent:y=nu,PaperProps:w={},scroll:_="paper",TransitionComponent:x=ib,transitionDuration:T=i,TransitionProps:k}=r,S=Kt(r,Gle),C=Ie({},r,{disableEscapeKeyDown:f,fullScreen:p,fullWidth:m,maxWidth:g,scroll:_}),M=Xle(C),O=ge.useRef(),D=A=>{O.current=A.target===A.currentTarget},P=A=>{O.current&&(O.current=null,b&&b(A),v&&v(A,"backdropClick"))},E=Kl(a),I=ge.useMemo(()=>({titleId:E}),[E]);return ke.jsx(Kle,Ie({className:on(M.root,d),closeAfterTransition:!0,components:{Backdrop:Yle},componentsProps:{backdrop:Ie({transitionDuration:T,as:s},u)},disableEscapeKeyDown:f,onClose:v,open:h,ref:n,onClick:P,ownerState:C},S,{children:ke.jsx(x,Ie({appear:!0,in:h,timeout:T,role:"presentation"},k,{children:ke.jsx(Zle,{className:on(M.container),onMouseDown:D,ownerState:C,children:ke.jsx(Qle,Ie({as:y,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":E},w,{className:on(M.paper,w.className),ownerState:C,children:ke.jsx(Vle.Provider,{value:I,children:c})}))})}))}))});function ese(e){return yn("MuiDialogActions",e)}hn("MuiDialogActions",["root","spacing"]);const tse=["className","disableSpacing"],nse=e=>{const{classes:t,disableSpacing:n}=e;return vn({root:["root",!n&&"spacing"]},ese,t)},rse=Et("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>Ie({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),ase=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDialogActions"}),{className:l,disableSpacing:i=!1}=r,o=Kt(r,tse),a=Ie({},r,{disableSpacing:i}),s=nse(a);return ke.jsx(rse,Ie({className:on(s.root,l),ownerState:a,ref:n},o))});function ose(e){return yn("MuiDialogContent",e)}hn("MuiDialogContent",["root","dividers"]);const ise=hn("MuiDialogTitle",["root"]),lse=["className","dividers"],sse=e=>{const{classes:t,dividers:n}=e;return vn({root:["root",n&&"dividers"]},ose,t)},use=Et("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>Ie({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${ise.root} + &`]:{paddingTop:0}})),cse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDialogContent"}),{className:l,dividers:i=!1}=r,o=Kt(r,lse),a=Ie({},r,{dividers:i}),s=sse(a);return ke.jsx(use,Ie({className:on(s.root,l),ownerState:a,ref:n},o))}),v8=hn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dse=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],fse=e=>{const{classes:t,disableUnderline:n}=e,l=vn({root:["root",!n&&"underline"],input:["input"]},Rie,t);return Ie({},t,l)},pse=Et(rb,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...tb(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",l=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Ie({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,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:i}},[`&.${du.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${du.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,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"},[`&.${du.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${du.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})`:l}`,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(.${du.disabled}, .${du.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${du.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Ie({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),hse=Et(ab,{name:"MuiFilledInput",slot:"Input",overridesResolver:nb})(({theme:e,ownerState:t})=>Ie({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),xM=ge.forwardRef(function(t,n){var r,l,i,o;const a=pn({props:t,name:"MuiFilledInput"}),{components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:p,slots:m={},type:g="text"}=a,b=Kt(a,dse),v=Ie({},a,{fullWidth:c,inputComponent:d,multiline:f,type:g}),h=fse(a),y={root:{ownerState:v},input:{ownerState:v}},w=p??u?ha(p??u,y):y,_=(r=(l=m.root)!=null?l:s.Root)!=null?r:pse,x=(i=(o=m.input)!=null?o:s.Input)!=null?i:hse;return ke.jsx(ob,Ie({slots:{root:_,input:x},componentsProps:w,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:g},b,{classes:h}))});xM.muiName="Input";function Zj(e){return yn("MuiFormControl",e)}const mse=hn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]),gse=mse,vse=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],yse=e=>{const{classes:t,margin:n,fullWidth:r}=e,l={root:["root",n!=="none"&&`margin${Jt(n)}`,r&&"fullWidth"]};return vn(l,Zj,t)},bse=Et("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>Ie({},t.root,t[`margin${Jt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>Ie({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),xse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiFormControl"}),{children:l,className:i,color:o="primary",component:a="div",disabled:s=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:p="none",required:m=!1,size:g="medium",variant:b="outlined"}=r,v=Kt(r,vse),h=Ie({},r,{color:o,component:a,disabled:s,error:u,fullWidth:d,hiddenLabel:f,margin:p,required:m,size:g,variant:b}),y=yse(h),[w,_]=ge.useState(()=>{let D=!1;return l&&ge.Children.forEach(l,P=>{if(!G0(P,["Input","Select"]))return;const E=G0(P,["Select"])?P.props.input:P;E&&Cie(E.props)&&(D=!0)}),D}),[x,T]=ge.useState(()=>{let D=!1;return l&&ge.Children.forEach(l,P=>{G0(P,["Input","Select"])&&(ny(P.props,!0)||ny(P.props.inputProps,!0))&&(D=!0)}),D}),[k,S]=ge.useState(!1);s&&k&&S(!1);const C=c!==void 0&&!s?c:k;let M;const O=ge.useMemo(()=>({adornedStart:w,setAdornedStart:_,color:o,disabled:s,error:u,filled:x,focused:C,fullWidth:d,hiddenLabel:f,size:g,onBlur:()=>{S(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{S(!0)},registerEffect:M,required:m,variant:b}),[w,o,s,u,x,C,d,f,M,m,g,b]);return ke.jsx(eb.Provider,{value:O,children:ke.jsx(bse,Ie({as:a,ownerState:h,className:on(y.root,i),ref:n},v,{children:l}))})}),Qj=xse,wse=Object.freeze(Object.defineProperty({__proto__:null,default:Qj,formControlClasses:gse,getFormControlUtilityClasses:Zj,useFormControl:Gi},Symbol.toStringTag,{value:"Module"})),_se=fne({createStyledComponent:Et("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>pn({props:e,name:"MuiStack"})});function Jj(e){return yn("MuiFormControlLabel",e)}const Tse=hn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ud=Tse,kse=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Sse=e=>{const{classes:t,disabled:n,labelPlacement:r,error:l,required:i}=e,o={root:["root",n&&"disabled",`labelPlacement${Jt(r)}`,l&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",l&&"error"]};return vn(o,Jj,t)},Cse=Et("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ud.label}`]:t.label},t.root,t[`labelPlacement${Jt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>Ie({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ud.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${ud.label}`]:{[`&.${ud.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Mse=Et("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ud.error}`]:{color:(e.vars||e).palette.error.main}})),Pse=ge.forwardRef(function(t,n){var r,l;const i=pn({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:a={},control:s,disabled:u,disableTypography:c,label:d,labelPlacement:f="end",required:p,slotProps:m={}}=i,g=Kt(i,kse),b=Gi(),v=(r=u??s.props.disabled)!=null?r:b==null?void 0:b.disabled,h=p??s.props.required,y={disabled:v,required:h};["checked","name","onChange","value","inputRef"].forEach(S=>{typeof s.props[S]>"u"&&typeof i[S]<"u"&&(y[S]=i[S])});const w=au({props:i,muiFormControl:b,states:["error"]}),_=Ie({},i,{disabled:v,labelPlacement:f,required:h,error:w.error}),x=Sse(_),T=(l=m.typography)!=null?l:a.typography;let k=d;return k!=null&&k.type!==pr&&!c&&(k=ke.jsx(pr,Ie({component:"span"},T,{className:on(x.label,T==null?void 0:T.className),children:k}))),ke.jsxs(Cse,Ie({className:on(x.root,o),ownerState:_,ref:n},g,{children:[ge.cloneElement(s,y),h?ke.jsxs(_se,{direction:"row",alignItems:"center",children:[k,ke.jsxs(Mse,{ownerState:_,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):k]}))}),Ose=Pse,Ase=Object.freeze(Object.defineProperty({__proto__:null,default:Ose,formControlLabelClasses:ud,getFormControlLabelUtilityClasses:Jj},Symbol.toStringTag,{value:"Module"}));function ez(e){return yn("MuiFormGroup",e)}const Dse=hn("MuiFormGroup",["root","row","error"]),Ese=Dse,Rse=["className","row"],Lse=e=>{const{classes:t,row:n,error:r}=e;return vn({root:["root",n&&"row",r&&"error"]},ez,t)},Ise=Et("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>Ie({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),$se=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiFormGroup"}),{className:l,row:i=!1}=r,o=Kt(r,Rse),a=Gi(),s=au({props:r,muiFormControl:a,states:["error"]}),u=Ie({},r,{row:i,error:s.error}),c=Lse(u);return ke.jsx(Ise,Ie({className:on(c.root,l),ownerState:u,ref:n},o))}),Nse=$se,Fse=Object.freeze(Object.defineProperty({__proto__:null,default:Nse,formGroupClasses:Ese,getFormGroupUtilityClass:ez},Symbol.toStringTag,{value:"Module"}));function tz(e){return yn("MuiFormHelperText",e)}const jse=hn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),X3=jse;var y8;const zse=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Bse=e=>{const{classes:t,contained:n,size:r,disabled:l,error:i,filled:o,focused:a,required:s}=e,u={root:["root",l&&"disabled",i&&"error",r&&`size${Jt(r)}`,n&&"contained",a&&"focused",o&&"filled",s&&"required"]};return vn(u,tz,t)},Wse=Et("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Jt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>Ie({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${X3.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${X3.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),qse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiFormHelperText"}),{children:l,className:i,component:o="p"}=r,a=Kt(r,zse),s=Gi(),u=au({props:r,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),c=Ie({},r,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=Bse(c);return ke.jsx(Wse,Ie({as:o,ownerState:c,className:on(d.root,i),ref:n},a,{children:l===" "?y8||(y8=ke.jsx("span",{className:"notranslate",children:"​"})):l}))}),nz=qse,Use=Object.freeze(Object.defineProperty({__proto__:null,default:nz,formHelperTextClasses:X3,getFormHelperTextUtilityClasses:tz},Symbol.toStringTag,{value:"Module"}));function Hse(e){return yn("MuiFormLabel",e)}const Rh=hn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Vse=["children","className","color","component","disabled","error","filled","focused","required"],Gse=e=>{const{classes:t,color:n,focused:r,disabled:l,error:i,filled:o,required:a}=e,s={root:["root",`color${Jt(n)}`,l&&"disabled",i&&"error",o&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return vn(s,Hse,t)},Yse=Et("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>Ie({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>Ie({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Rh.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Rh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Rh.error}`]:{color:(e.vars||e).palette.error.main}})),Xse=Et("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Rh.error}`]:{color:(e.vars||e).palette.error.main}})),Kse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiFormLabel"}),{children:l,className:i,component:o="label"}=r,a=Kt(r,Vse),s=Gi(),u=au({props:r,muiFormControl:s,states:["color","required","focused","disabled","error","filled"]}),c=Ie({},r,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=Gse(c);return ke.jsxs(Yse,Ie({as:o,ownerState:c,className:on(d.root,i),ref:n},a,{children:[l,u.required&&ke.jsxs(Xse,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),b8=ge.createContext();function Zse(e){return yn("MuiGrid",e)}const Qse=[0,1,2,3,4,5,6,7,8,9,10],Jse=["column-reverse","column","row-reverse","row"],eue=["nowrap","wrap-reverse","wrap"],Qf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],cm=hn("MuiGrid",["root","container","item","zeroMinWidth",...Qse.map(e=>`spacing-xs-${e}`),...Jse.map(e=>`direction-xs-${e}`),...eue.map(e=>`wrap-xs-${e}`),...Qf.map(e=>`grid-xs-${e}`),...Qf.map(e=>`grid-sm-${e}`),...Qf.map(e=>`grid-md-${e}`),...Qf.map(e=>`grid-lg-${e}`),...Qf.map(e=>`grid-xl-${e}`)]),tue=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xd(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function nue({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,l)=>{let i={};if(t[l]&&(n=t[l]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const o=zu({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof o=="object"?o[l]:o;if(a==null)return r;const s=`${Math.round(n/a*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${s} + ${xd(c)})`;u={flexBasis:d,maxWidth:d}}}i=Ie({flexBasis:s,flexGrow:0,maxWidth:s},u)}return e.breakpoints.values[l]===0?Object.assign(r,i):r[e.breakpoints.up(l)]=i,r},{})}function rue({theme:e,ownerState:t}){const n=zu({values:t.direction,breakpoints:e.breakpoints.values});return jo({theme:e},n,r=>{const l={flexDirection:r};return r.indexOf("column")===0&&(l[`& > .${cm.item}`]={maxWidth:"none"}),l})}function rz({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(l=>{n===""&&t[l]!==0&&(n=l)});const r=Object.keys(e).sort((l,i)=>e[l]-e[i]);return r.slice(0,r.indexOf(n))}function aue({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let l={};if(n&&r!==0){const i=zu({values:r,breakpoints:e.breakpoints.values});let o;typeof i=="object"&&(o=rz({breakpoints:e.breakpoints.values,values:i})),l=jo({theme:e},i,(a,s)=>{var u;const c=e.spacing(a);return c!=="0px"?{marginTop:`-${xd(c)}`,[`& > .${cm.item}`]:{paddingTop:xd(c)}}:(u=o)!=null&&u.includes(s)?{}:{marginTop:0,[`& > .${cm.item}`]:{paddingTop:0}}})}return l}function oue({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let l={};if(n&&r!==0){const i=zu({values:r,breakpoints:e.breakpoints.values});let o;typeof i=="object"&&(o=rz({breakpoints:e.breakpoints.values,values:i})),l=jo({theme:e},i,(a,s)=>{var u;const c=e.spacing(a);return c!=="0px"?{width:`calc(100% + ${xd(c)})`,marginLeft:`-${xd(c)}`,[`& > .${cm.item}`]:{paddingLeft:xd(c)}}:(u=o)!=null&&u.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${cm.item}`]:{paddingLeft:0}}})}return l}function iue(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(l=>{const i=e[l];Number(i)>0&&r.push(n[`spacing-${l}-${String(i)}`])}),r}const lue=Et("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:l,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:u}=n;let c=[];r&&(c=iue(o,u,t));const d=[];return u.forEach(f=>{const p=n[f];p&&d.push(t[`grid-${f}-${String(p)}`])}),[t.root,r&&t.container,i&&t.item,s&&t.zeroMinWidth,...c,l!=="row"&&t[`direction-xs-${String(l)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...d]}})(({ownerState:e})=>Ie({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),rue,aue,oue,nue);function sue(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const l=e[r];if(Number(l)>0){const i=`spacing-${r}-${String(l)}`;n.push(i)}}),n}const uue=e=>{const{classes:t,container:n,direction:r,item:l,spacing:i,wrap:o,zeroMinWidth:a,breakpoints:s}=e;let u=[];n&&(u=sue(i,s));const c=[];s.forEach(f=>{const p=e[f];p&&c.push(`grid-${f}-${String(p)}`)});const d={root:["root",n&&"container",l&&"item",a&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,o!=="wrap"&&`wrap-xs-${String(o)}`,...c]};return vn(d,Zse,t)},cr=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiGrid"}),{breakpoints:l}=po(),i=Y1(r),{className:o,columns:a,columnSpacing:s,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:p,spacing:m=0,wrap:g="wrap",zeroMinWidth:b=!1}=i,v=Kt(i,tue),h=p||m,y=s||m,w=ge.useContext(b8),_=c?a||12:w,x={},T=Ie({},v);l.keys.forEach(C=>{v[C]!=null&&(x[C]=v[C],delete T[C])});const k=Ie({},i,{columns:_,container:c,direction:d,item:f,rowSpacing:h,columnSpacing:y,wrap:g,zeroMinWidth:b,spacing:m},x,{breakpoints:l.keys}),S=uue(k);return ke.jsx(b8.Provider,{value:_,children:ke.jsx(lue,Ie({ownerState:k,className:on(S.root,o),as:u,ref:n},T))})}),cue=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function K3(e){return`scale(${e}, ${e**2})`}const due={entering:{opacity:1,transform:K3(1)},entered:{opacity:1,transform:"none"}},xw=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),dm=ge.forwardRef(function(t,n){const{addEndListener:r,appear:l=!0,children:i,easing:o,in:a,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:p,style:m,timeout:g="auto",TransitionComponent:b=Pi}=t,v=Kt(t,cue),h=ge.useRef(),y=ge.useRef(),w=po(),_=ge.useRef(null),x=Lr(_,i.ref,n),T=E=>I=>{if(E){const A=_.current;I===void 0?E(A):E(A,I)}},k=T(c),S=T((E,I)=>{kj(E);const{duration:A,delay:F,easing:j}=Id({style:m,timeout:g,easing:o},{mode:"enter"});let z;g==="auto"?(z=w.transitions.getAutoHeightDuration(E.clientHeight),y.current=z):z=A,E.style.transition=[w.transitions.create("opacity",{duration:z,delay:F}),w.transitions.create("transform",{duration:xw?z:z*.666,delay:F,easing:j})].join(","),s&&s(E,I)}),C=T(u),M=T(p),O=T(E=>{const{duration:I,delay:A,easing:F}=Id({style:m,timeout:g,easing:o},{mode:"exit"});let j;g==="auto"?(j=w.transitions.getAutoHeightDuration(E.clientHeight),y.current=j):j=I,E.style.transition=[w.transitions.create("opacity",{duration:j,delay:A}),w.transitions.create("transform",{duration:xw?j:j*.666,delay:xw?A:A||j*.333,easing:F})].join(","),E.style.opacity=0,E.style.transform=K3(.75),d&&d(E)}),D=T(f),P=E=>{g==="auto"&&(h.current=setTimeout(E,y.current||0)),r&&r(_.current,E)};return ge.useEffect(()=>()=>{clearTimeout(h.current)},[]),ke.jsx(b,Ie({appear:l,in:a,nodeRef:_,onEnter:S,onEntered:C,onEntering:k,onExit:O,onExited:D,onExiting:M,addEndListener:P,timeout:g==="auto"?null:g},v,{children:(E,I)=>ge.cloneElement(i,Ie({style:Ie({opacity:0,transform:K3(.75),visibility:E==="exited"&&!a?"hidden":void 0},due[E],m,i.props.style),ref:x},I))}))});dm.muiSupportAuto=!0;function fue(e,t,n,r,l){const[i,o]=ge.useState(()=>l&&n?n(e).matches:r?r(e).matches:t);return no(()=>{let a=!0;if(!n)return;const s=n(e),u=()=>{a&&o(s.matches)};return u(),s.addListener(u),()=>{a=!1,s.removeListener(u)}},[e,n]),i}const az=ge.useSyncExternalStore;function pue(e,t,n,r,l){const i=ge.useCallback(()=>t,[t]),o=ge.useMemo(()=>{if(l&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return i},[i,e,r,l,n]),[a,s]=ge.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[i,n,e]);return az(s,a,o)}function wM(e,t={}){const n=G1(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:o=null,noSsr:a=!1}=uj({name:"MuiUseMediaQuery",props:t,theme:n});let s=typeof e=="function"?e(n):e;return s=s.replace(/^@media( ?)/m,""),(az!==void 0?pue:fue)(s,l,i,o,a)}function oz(e){return yn("MuiIcon",e)}const hue=hn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),mue=hue,gue=["baseClassName","className","color","component","fontSize"],vue=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${Jt(t)}`,`fontSize${Jt(n)}`]};return vn(l,oz,r)},yue=Et("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Jt(n.color)}`],t[`fontSize${Jt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),iz=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiIcon"}),{baseClassName:l="material-icons",className:i,color:o="inherit",component:a="span",fontSize:s="medium"}=r,u=Kt(r,gue),c=Ie({},r,{baseClassName:l,color:o,component:a,fontSize:s}),d=vue(c);return ke.jsx(yue,Ie({as:a,className:on(l,"notranslate",d.root,i),ownerState:c,"aria-hidden":!0,ref:n},u))});iz.muiName="Icon";const bue=iz,xue=Object.freeze(Object.defineProperty({__proto__:null,default:bue,getIconUtilityClass:oz,iconClasses:mue},Symbol.toStringTag,{value:"Module"})),wue=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],_ue=e=>{const{classes:t,disableUnderline:n}=e,l=vn({root:["root",!n&&"underline"],input:["input"]},Die,t);return Ie({},t,l)},Tue=Et(rb,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...tb(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Ie({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${Zf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Zf.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,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(.${Zf.disabled}, .${Zf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Zf.disabled}:before`]:{borderBottomStyle:"dotted"}})}),kue=Et(ab,{name:"MuiInput",slot:"Input",overridesResolver:nb})({}),_M=ge.forwardRef(function(t,n){var r,l,i,o;const a=pn({props:t,name:"MuiInput"}),{disableUnderline:s,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:g={},type:b="text"}=a,v=Kt(a,wue),h=_ue(a),w={root:{ownerState:{disableUnderline:s}}},_=m??c?ha(m??c,w):w,x=(r=(l=g.root)!=null?l:u.Root)!=null?r:Tue,T=(i=(o=g.input)!=null?o:u.Input)!=null?i:kue;return ke.jsx(ob,Ie({slots:{root:x,input:T},slotProps:_,fullWidth:d,inputComponent:f,multiline:p,ref:n,type:b},v,{classes:h}))});_M.muiName="Input";function lz(e){return yn("MuiInputAdornment",e)}const Sue=hn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Z3=Sue;var x8;const Cue=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Mue=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Jt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Pue=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:l,size:i,variant:o}=e,a={root:["root",n&&"disablePointerEvents",l&&`position${Jt(l)}`,o,r&&"hiddenLabel",i&&`size${Jt(i)}`]};return vn(a,lz,t)},Oue=Et("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Mue})(({theme:e,ownerState:t})=>Ie({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${Z3.positionStart}&:not(.${Z3.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Aue=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiInputAdornment"}),{children:l,className:i,component:o="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:u,variant:c}=r,d=Kt(r,Cue),f=Gi()||{};let p=c;c&&f.variant,f&&!p&&(p=f.variant);const m=Ie({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:u,variant:p}),g=Pue(m);return ke.jsx(eb.Provider,{value:null,children:ke.jsx(Oue,Ie({as:o,ownerState:m,className:on(g.root,i),ref:n},d,{children:typeof l=="string"&&!s?ke.jsx(pr,{color:"text.secondary",children:l}):ke.jsxs(ge.Fragment,{children:[u==="start"?x8||(x8=ke.jsx("span",{className:"notranslate",children:"​"})):null,l]})}))})}),sz=Aue,Due=Object.freeze(Object.defineProperty({__proto__:null,default:sz,getInputAdornmentUtilityClass:lz,inputAdornmentClasses:Z3},Symbol.toStringTag,{value:"Module"}));function uz(e){return yn("MuiInputLabel",e)}const Eue=hn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]),Rue=Eue,Lue=["disableAnimation","margin","shrink","variant","className"],Iue=e=>{const{classes:t,formControl:n,size:r,shrink:l,disableAnimation:i,variant:o,required:a}=e,s={root:["root",n&&"formControl",!i&&"animated",l&&"shrink",r&&r!=="normal"&&`size${Jt(r)}`,o],asterisk:[a&&"asterisk"]},u=vn(s,uz,t);return Ie({},t,u)},$ue=Et(Kse,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Rh.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>Ie({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&Ie({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&Ie({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&Ie({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),cz=ge.forwardRef(function(t,n){const r=pn({name:"MuiInputLabel",props:t}),{disableAnimation:l=!1,shrink:i,className:o}=r,a=Kt(r,Lue),s=Gi();let u=i;typeof u>"u"&&s&&(u=s.filled||s.focused||s.adornedStart);const c=au({props:r,muiFormControl:s,states:["size","variant","required"]}),d=Ie({},r,{disableAnimation:l,formControl:s,shrink:u,size:c.size,variant:c.variant,required:c.required}),f=Iue(d);return ke.jsx($ue,Ie({"data-shrink":u,ownerState:d,ref:n,className:on(f.root,o)},a,{classes:f}))}),Nue=Object.freeze(Object.defineProperty({__proto__:null,default:cz,getInputLabelUtilityClasses:uz,inputLabelClasses:Rue},Symbol.toStringTag,{value:"Module"}));function dz(e){return yn("MuiLinearProgress",e)}const Fue=hn("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),jue=Fue,zue=["className","color","value","valueBuffer","variant"];let lf=e=>e,w8,_8,T8,k8,S8,C8;const Q3=4,Bue=Hi(w8||(w8=lf` 0% { left: -35%; right: 100%; @@ -192,7 +192,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann left: 100%; right: -90%; } -`)),Hue=Hi(_8||(_8=sf` +`)),Wue=Hi(_8||(_8=lf` 0% { left: -200%; right: 100%; @@ -207,7 +207,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann left: 107%; right: -8%; } -`)),Vue=Hi(T8||(T8=sf` +`)),que=Hi(T8||(T8=lf` 0% { opacity: 1; background-position: 0 -23px; @@ -222,15 +222,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann opacity: 1; background-position: -200px -23px; } -`)),Gue=e=>{const{classes:t,variant:n,color:r}=e,l={root:["root",`color${Jt(r)}`,n],dashed:["dashed",`dashedColor${Jt(r)}`],bar1:["bar",`barColor${Jt(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${Jt(r)}`,n==="buffer"&&`color${Jt(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return vn(l,fz,t)},TM=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?_l(e.palette[t].main,.62):wl(e.palette[t].main,.5),Yue=Et("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Jt(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>Ie({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:TM(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),Xue=Et("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Jt(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=TM(t,e.color);return Ie({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Jl(k8||(k8=sf` +`)),Uue=e=>{const{classes:t,variant:n,color:r}=e,l={root:["root",`color${Jt(r)}`,n],dashed:["dashed",`dashedColor${Jt(r)}`],bar1:["bar",`barColor${Jt(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${Jt(r)}`,n==="buffer"&&`color${Jt(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return vn(l,dz,t)},TM=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?_l(e.palette[t].main,.62):wl(e.palette[t].main,.5),Hue=Et("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Jt(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>Ie({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:TM(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),Vue=Et("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Jt(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=TM(t,e.color);return Ie({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Jl(k8||(k8=lf` animation: ${0} 3s infinite linear; - `),Vue)),Kue=Et("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Jt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>Ie({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${J3}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${J3}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Jl(S8||(S8=sf` + `),que)),Gue=Et("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Jt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>Ie({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${Q3}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Q3}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Jl(S8||(S8=lf` width: auto; animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),Uue)),Zue=Et("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Jt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>Ie({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:TM(t,e.color),transition:`transform .${J3}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Jl(C8||(C8=sf` + `),Bue)),Yue=Et("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Jt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>Ie({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:TM(t,e.color),transition:`transform .${Q3}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Jl(C8||(C8=lf` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),Hue)),Que=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiLinearProgress"}),{className:l,color:i="primary",value:o,valueBuffer:a,variant:s="indeterminate"}=r,u=Kt(r,que),c=Ie({},r,{color:i,variant:s}),d=Gue(c),f=po(),p={},m={bar1:{},bar2:{}};if((s==="determinate"||s==="buffer")&&o!==void 0){p["aria-valuenow"]=Math.round(o),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let g=o-100;f.direction==="rtl"&&(g=-g),m.bar1.transform=`translateX(${g}%)`}if(s==="buffer"&&a!==void 0){let g=(a||0)-100;f.direction==="rtl"&&(g=-g),m.bar2.transform=`translateX(${g}%)`}return ke.jsxs(Yue,Ie({className:on(d.root,l),ownerState:c,role:"progressbar"},p,{ref:n},u,{children:[s==="buffer"?ke.jsx(Xue,{className:d.dashed,ownerState:c}):null,ke.jsx(Kue,{className:d.bar1,ownerState:c,style:m.bar1}),s==="determinate"?null:ke.jsx(Zue,{className:d.bar2,ownerState:c,style:m.bar2})]}))}),pz=Que,Jue=Object.freeze(Object.defineProperty({__proto__:null,default:pz,getLinearProgressUtilityClass:fz,linearProgressClasses:Wue},Symbol.toStringTag,{value:"Module"})),ry=ge.createContext({});function ece(e){return yn("MuiList",e)}hn("MuiList",["root","padding","dense","subheader"]);const tce=["children","className","component","dense","disablePadding","subheader"],nce=e=>{const{classes:t,disablePadding:n,dense:r,subheader:l}=e;return vn({root:["root",!n&&"padding",r&&"dense",l&&"subheader"]},ece,t)},rce=Et("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]}})(({ownerState:e})=>Ie({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ace=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiList"}),{children:l,className:i,component:o="ul",dense:a=!1,disablePadding:s=!1,subheader:u}=r,c=Kt(r,tce),d=ge.useMemo(()=>({dense:a}),[a]),f=Ie({},r,{component:o,dense:a,disablePadding:s}),p=nce(f);return ke.jsx(ry.Provider,{value:d,children:ke.jsxs(rce,Ie({as:o,className:on(p.root,i),ref:n,ownerState:f},c,{children:[u,l]}))})}),M8=hn("MuiListItemIcon",["root","alignItemsFlexStart"]);function hz(e){return yn("MuiListItemText",e)}const pm=hn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),oce=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],ice=e=>{const{classes:t,inset:n,primary:r,secondary:l,dense:i}=e;return vn({root:["root",n&&"inset",i&&"dense",r&&l&&"multiline"],primary:["primary"],secondary:["secondary"]},hz,t)},lce=Et("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${pm.primary}`]:t.primary},{[`& .${pm.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>Ie({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),sce=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiListItemText"}),{children:l,className:i,disableTypography:o=!1,inset:a=!1,primary:s,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=Kt(r,oce),{dense:p}=ge.useContext(ry);let m=s??l,g=c;const b=Ie({},r,{disableTypography:o,inset:a,primary:!!m,secondary:!!g,dense:p}),v=ice(b);return m!=null&&m.type!==pr&&!o&&(m=ke.jsx(pr,Ie({variant:p?"body2":"body1",className:v.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:m}))),g!=null&&g.type!==pr&&!o&&(g=ke.jsx(pr,Ie({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},d,{children:g}))),ke.jsxs(lce,Ie({className:on(v.root,i),ownerState:b,ref:n},f,{children:[m,g]}))}),uce=sce,cce=Object.freeze(Object.defineProperty({__proto__:null,default:uce,getListItemTextUtilityClass:hz,listItemTextClasses:pm},Symbol.toStringTag,{value:"Module"})),dce=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function _w(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function P8(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function mz(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.indexOf(t.keys.join(""))===0}function ep(e,t,n,r,l,i){let o=!1,a=l(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(o)return!1;o=!0}const s=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!mz(a,i)||s)a=l(e,a,n);else return a.focus(),!0}return!1}const fce=ge.forwardRef(function(t,n){const{actions:r,autoFocus:l=!1,autoFocusItem:i=!1,children:o,className:a,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,f=Kt(t,dce),p=ge.useRef(null),m=ge.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});no(()=>{l&&p.current.focus()},[l]),ge.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,w)=>{const _=!p.current.style.width;if(y.clientHeight{const w=p.current,_=y.key,x=Aa(w).activeElement;if(_==="ArrowDown")y.preventDefault(),ep(w,x,u,s,_w);else if(_==="ArrowUp")y.preventDefault(),ep(w,x,u,s,P8);else if(_==="Home")y.preventDefault(),ep(w,null,u,s,_w);else if(_==="End")y.preventDefault(),ep(w,null,u,s,P8);else if(_.length===1){const T=m.current,k=_.toLowerCase(),S=performance.now();T.keys.length>0&&(S-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&k!==T.keys[0]&&(T.repeating=!1)),T.lastTime=S,T.keys.push(k);const C=x&&!T.repeating&&mz(x,T);T.previousKeyMatched&&(C||ep(w,x,!1,s,_w,T))?y.preventDefault():T.previousKeyMatched=!1}c&&c(y)},b=Lr(p,n);let v=-1;ge.Children.forEach(o,(y,w)=>{if(!ge.isValidElement(y)){v===w&&(v+=1,v>=o.length&&(v=-1));return}y.props.disabled||(d==="selectedMenu"&&y.props.selected||v===-1)&&(v=w),v===w&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(v+=1,v>=o.length&&(v=-1))});const h=ge.Children.map(o,(y,w)=>{if(w===v){const _={};return i&&(_.autoFocus=!0),y.props.tabIndex===void 0&&d==="selectedMenu"&&(_.tabIndex=0),ge.cloneElement(y,_)}return y});return ke.jsx(ace,Ie({role:"menu",ref:b,className:a,onKeyDown:g,tabIndex:l?0:-1},f,{children:h}))});function pce(e){return yn("MuiPopover",e)}hn("MuiPopover",["root","paper"]);const hce=["onEntering"],mce=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],gce=["slotProps"];function O8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function A8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function D8(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Tw(e){return typeof e=="function"?e():e}const vce=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"]},pce,t)},yce=Et(Zj,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gz=Et(nu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),kM=ge.forwardRef(function(t,n){var r,l,i;const o=pn({props:t,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:p,container:m,elevation:g=8,marginThreshold:b=16,open:v,PaperProps:h={},slots:y,slotProps:w,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:x=fm,transitionDuration:T="auto",TransitionProps:{onEntering:k}={},disableScrollLock:S=!1}=o,C=Kt(o.TransitionProps,hce),M=Kt(o,mce),O=(r=w==null?void 0:w.paper)!=null?r:h,D=ge.useRef(),P=Lr(D,O.ref),E=Ie({},o,{anchorOrigin:u,anchorReference:d,elevation:g,marginThreshold:b,externalPaperSlotProps:O,transformOrigin:_,TransitionComponent:x,transitionDuration:T,TransitionProps:C}),I=vce(E),A=ge.useCallback(()=>{if(d==="anchorPosition")return c;const Z=Tw(s),X=(Z&&Z.nodeType===1?Z:Aa(D.current).body).getBoundingClientRect();return{top:X.top+O8(X,u.vertical),left:X.left+A8(X,u.horizontal)}},[s,u.horizontal,u.vertical,c,d]),F=ge.useCallback(Z=>({vertical:O8(Z,_.vertical),horizontal:A8(Z,_.horizontal)}),[_.horizontal,_.vertical]),j=ge.useCallback(Z=>{const G={width:Z.offsetWidth,height:Z.offsetHeight},X=F(G);if(d==="none")return{top:null,left:null,transformOrigin:D8(X)};const Q=A();let re=Q.top-X.vertical,ae=Q.left-X.horizontal;const ie=re+G.height,se=ae+G.width,he=bl(Tw(s)),Se=he.innerHeight-b,Oe=he.innerWidth-b;if(b!==null&&reSe){const Pe=ie-Se;re-=Pe,X.vertical+=Pe}if(b!==null&&aeOe){const Pe=se-Oe;ae-=Pe,X.horizontal+=Pe}return{top:`${Math.round(re)}px`,left:`${Math.round(ae)}px`,transformOrigin:D8(X)}},[s,d,A,F,b]),[z,B]=ge.useState(v),N=ge.useCallback(()=>{const Z=D.current;if(!Z)return;const G=j(Z);G.top!==null&&(Z.style.top=G.top),G.left!==null&&(Z.style.left=G.left),Z.style.transformOrigin=G.transformOrigin,B(!0)},[j]);ge.useEffect(()=>(S&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[s,S,N]);const R=(Z,G)=>{k&&k(Z,G),N()},q=()=>{B(!1)};ge.useEffect(()=>{v&&N()}),ge.useImperativeHandle(a,()=>v?{updatePosition:()=>{N()}}:null,[v,N]),ge.useEffect(()=>{if(!v)return;const Z=Hm(()=>{N()}),G=bl(s);return G.addEventListener("resize",Z),()=>{Z.clear(),G.removeEventListener("resize",Z)}},[s,v,N]);let Y=T;T==="auto"&&!x.muiSupportAuto&&(Y=void 0);const L=m||(s?Aa(Tw(s)).body:void 0),W=(l=y==null?void 0:y.root)!=null?l:yce,U=(i=y==null?void 0:y.paper)!=null?i:gz,V=Ui({elementType:U,externalSlotProps:Ie({},O,{style:z?O.style:Ie({},O.style,{opacity:0})}),additionalProps:{elevation:g,ref:P},ownerState:E,className:on(I.paper,O==null?void 0:O.className)}),te=Ui({elementType:W,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:M,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:L,open:v},ownerState:E,className:on(I.root,p)}),{slotProps:ee}=te,H=Kt(te,gce);return ke.jsx(W,Ie({},H,!sm(W)&&{slotProps:ee,disableScrollLock:S},{children:ke.jsx(x,Ie({appear:!0,in:v,onEntering:R,onExited:q,timeout:Y},C,{children:ke.jsx(U,Ie({},V,{children:f}))}))}))});function vz(e){return yn("MuiMenu",e)}const bce=hn("MuiMenu",["root","paper","list"]),xce=bce,wce=["onEntering"],_ce=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Tce={vertical:"top",horizontal:"right"},kce={vertical:"top",horizontal:"left"},Sce=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"],list:["list"]},vz,t)},Cce=Et(kM,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mce=Et(gz,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Pce=Et(fce,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Oce=ge.forwardRef(function(t,n){var r,l;const i=pn({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:f,PaperProps:p={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:b}={},variant:v="selectedMenu",slots:h={},slotProps:y={}}=i,w=Kt(i.TransitionProps,wce),_=Kt(i,_ce),x=po(),T=x.direction==="rtl",k=Ie({},i,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:b,PaperProps:p,transitionDuration:g,TransitionProps:w,variant:v}),S=Sce(k),C=o&&!u&&f,M=ge.useRef(null),O=(j,z)=>{M.current&&M.current.adjustStyleForScrollbar(j,x),b&&b(j,z)},D=j=>{j.key==="Tab"&&(j.preventDefault(),d&&d(j,"tabKeyDown"))};let P=-1;ge.Children.map(a,(j,z)=>{ge.isValidElement(j)&&(j.props.disabled||(v==="selectedMenu"&&j.props.selected||P===-1)&&(P=z))});const E=(r=h.paper)!=null?r:Mce,I=(l=y.paper)!=null?l:p,A=Ui({elementType:h.root,externalSlotProps:y.root,ownerState:k,className:[S.root,s]}),F=Ui({elementType:E,externalSlotProps:I,ownerState:k,className:S.paper});return ke.jsx(Cce,Ie({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?Tce:kce,slots:{paper:E,root:h.root},slotProps:{root:A,paper:F},open:f,ref:n,transitionDuration:g,TransitionProps:Ie({onEntering:O},w),ownerState:k},_,{classes:m,children:ke.jsx(Pce,Ie({onKeyDown:D,actions:M,autoFocus:o&&(P===-1||u),autoFocusItem:C,variant:v},c,{className:on(S.list,c.className),children:a}))}))}),yz=Oce,Ace=Object.freeze(Object.defineProperty({__proto__:null,default:yz,getMenuUtilityClass:vz,menuClasses:xce},Symbol.toStringTag,{value:"Module"}));function bz(e){return yn("MuiMenuItem",e)}const Dce=hn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Xc=Dce,Ece=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Rce=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Lce=e=>{const{disabled:t,dense:n,divider:r,disableGutters:l,selected:i,classes:o}=e,s=vn({root:["root",n&&"dense",t&&"disabled",!l&&"gutters",r&&"divider",i&&"selected"]},bz,o);return Ie({},o,s)},Ice=Et(Tl,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Rce})(({theme:e,ownerState:t})=>Ie({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Xc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Xc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${v8.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${v8.inset}`]:{marginLeft:52},[`& .${pm.root}`]:{marginTop:0,marginBottom:0},[`& .${pm.inset}`]:{paddingLeft:36},[`& .${M8.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ie({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${M8.root} svg`]:{fontSize:"1.25rem"}}))),$ce=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiMenuItem"}),{autoFocus:l=!1,component:i="li",dense:o=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f}=r,p=Kt(r,Ece),m=ge.useContext(ry),g=ge.useMemo(()=>({dense:o||m.dense||!1,disableGutters:s}),[m.dense,o,s]),b=ge.useRef(null);no(()=>{l&&b.current&&b.current.focus()},[l]);const v=Ie({},r,{dense:g.dense,divider:a,disableGutters:s}),h=Lce(r),y=Lr(b,n);let w;return r.disabled||(w=d!==void 0?d:-1),ke.jsx(ry.Provider,{value:g,children:ke.jsx(Ice,Ie({ref:y,role:c,tabIndex:w,component:i,focusVisibleClassName:on(h.focusVisible,u),className:on(h.root,f)},p,{ownerState:v,classes:h}))})}),xz=$ce,Nce=Object.freeze(Object.defineProperty({__proto__:null,default:xz,getMenuItemUtilityClass:bz,menuItemClasses:Xc},Symbol.toStringTag,{value:"Module"}));function Fce(e){return yn("MuiNativeSelect",e)}const SM=hn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),jce=["className","disabled","error","IconComponent","inputRef","variant"],zce=e=>{const{classes:t,variant:n,disabled:r,multiple:l,open:i,error:o}=e,a={select:["select",n,r&&"disabled",l&&"multiple",o&&"error"],icon:["icon",`icon${Jt(n)}`,i&&"iconOpen",r&&"disabled"]};return vn(a,Fce,t)},wz=({ownerState:e,theme:t})=>Ie({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Ie({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${SM.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Bce=Et("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Vi,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${SM.multiple}`]:t.multiple}]}})(wz),_z=({ownerState:e,theme:t})=>Ie({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${SM.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Wce=Et("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Jt(n.variant)}`],n.open&&t.iconOpen]}})(_z),qce=ge.forwardRef(function(t,n){const{className:r,disabled:l,error:i,IconComponent:o,inputRef:a,variant:s="standard"}=t,u=Kt(t,jce),c=Ie({},t,{disabled:l,variant:s,error:i}),d=zce(c);return ke.jsxs(ge.Fragment,{children:[ke.jsx(Bce,Ie({ownerState:c,className:on(d.select,r),disabled:l,ref:a||n},u)),t.multiple?null:ke.jsx(Wce,{as:o,ownerState:c,className:d.icon})]})});var E8;const Uce=["children","classes","className","label","notched"],Hce=Et("fieldset")({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%"}),Vce=Et("legend")(({ownerState:e,theme:t})=>Ie({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Ie({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Gce(e){const{className:t,label:n,notched:r}=e,l=Kt(e,Uce),i=n!=null&&n!=="",o=Ie({},e,{notched:r,withLabel:i});return ke.jsx(Hce,Ie({"aria-hidden":!0,className:t,ownerState:o},l,{children:ke.jsx(Vce,{ownerState:o,children:i?ke.jsx("span",{children:n}):E8||(E8=ke.jsx("span",{className:"notranslate",children:"​"}))})}))}const Yce=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Xce=e=>{const{classes:t}=e,r=vn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Iie,t);return Ie({},t,r)},Kce=Et(ab,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nb})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Ie({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xs.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xs.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${xs.focused} .${xs.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${xs.error} .${xs.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xs.disabled} .${xs.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Ie({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Zce=Et(Gce,{name:"MuiOutlinedInput",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{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Qce=Et(ob,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rb})(({theme:e,ownerState:t})=>Ie({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),CM=ge.forwardRef(function(t,n){var r,l,i,o,a;const s=pn({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:p=!1,notched:m,slots:g={},type:b="text"}=s,v=Kt(s,Yce),h=Xce(s),y=Gi(),w=au({props:s,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=Ie({},s,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:y,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:p,size:w.size,type:b}),x=(r=(l=g.root)!=null?l:u.Root)!=null?r:Kce,T=(i=(o=g.input)!=null?o:u.Input)!=null?i:Qce;return ke.jsx(ib,Ie({slots:{root:x,input:T},renderSuffix:k=>ke.jsx(Zce,{ownerState:_,className:h.notchedOutline,label:f!=null&&f!==""&&w.required?a||(a=ke.jsxs(ge.Fragment,{children:[f," ","*"]})):f,notched:typeof m<"u"?m:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:c,inputComponent:d,multiline:p,ref:n,type:b},v,{classes:Ie({},h,{notchedOutline:null})}))});CM.muiName="Input";const R8=Qr(ke.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),L8=Qr(ke.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function Tz(e){return yn("MuiSelect",e)}const Jce=hn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Kc=Jce;var I8;const ede=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],tde=Et("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Kc.select}`]:t.select},{[`&.${Kc.select}`]:t[n.variant]},{[`&.${Kc.error}`]:t.error},{[`&.${Kc.multiple}`]:t.multiple}]}})(wz,{[`&.${Kc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),nde=Et("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Jt(n.variant)}`],n.open&&t.iconOpen]}})(_z),rde=Et("input",{shouldForwardProp:e=>Gne(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function $8(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function ade(e){return e==null||typeof e=="string"&&!e.trim()}const ode=e=>{const{classes:t,variant:n,disabled:r,multiple:l,open:i,error:o}=e,a={select:["select",n,r&&"disabled",l&&"multiple",o&&"error"],icon:["icon",`icon${Jt(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return vn(a,Tz,t)},ide=ge.forwardRef(function(t,n){var r;const{"aria-describedby":l,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:u,defaultOpen:c,defaultValue:d,disabled:f,displayEmpty:p,error:m=!1,IconComponent:g,inputRef:b,labelId:v,MenuProps:h={},multiple:y,name:w,onBlur:_,onChange:x,onClose:T,onFocus:k,onOpen:S,open:C,readOnly:M,renderValue:O,SelectDisplayProps:D={},tabIndex:P,value:E,variant:I="standard"}=t,A=Kt(t,ede),[F,j]=Zl({controlled:E,default:d,name:"Select"}),[z,B]=Zl({controlled:C,default:c,name:"Select"}),N=ge.useRef(null),R=ge.useRef(null),[q,Y]=ge.useState(null),{current:L}=ge.useRef(C!=null),[W,U]=ge.useState(),V=Lr(n,b),te=ge.useCallback(pe=>{R.current=pe,pe&&Y(pe)},[]),ee=q==null?void 0:q.parentNode;ge.useImperativeHandle(V,()=>({focus:()=>{R.current.focus()},node:N.current,value:F}),[F]),ge.useEffect(()=>{c&&z&&q&&!L&&(U(a?null:ee.clientWidth),R.current.focus())},[q,a]),ge.useEffect(()=>{o&&R.current.focus()},[o]),ge.useEffect(()=>{if(!v)return;const pe=Aa(R.current).getElementById(v);if(pe){const xe=()=>{getSelection().isCollapsed&&R.current.focus()};return pe.addEventListener("click",xe),()=>{pe.removeEventListener("click",xe)}}},[v]);const H=(pe,xe)=>{pe?S&&S(xe):T&&T(xe),L||(U(a?null:ee.clientWidth),B(pe))},Z=pe=>{pe.button===0&&(pe.preventDefault(),R.current.focus(),H(!0,pe))},G=pe=>{H(!1,pe)},X=ge.Children.toArray(s),Q=pe=>{const xe=X.find(ye=>ye.props.value===pe.target.value);xe!==void 0&&(j(xe.props.value),x&&x(pe,xe))},re=pe=>xe=>{let ye;if(xe.currentTarget.hasAttribute("tabindex")){if(y){ye=Array.isArray(F)?F.slice():[];const Te=F.indexOf(pe.props.value);Te===-1?ye.push(pe.props.value):ye.splice(Te,1)}else ye=pe.props.value;if(pe.props.onClick&&pe.props.onClick(xe),F!==ye&&(j(ye),x)){const Te=xe.nativeEvent||xe,Ae=new Te.constructor(Te.type,Te);Object.defineProperty(Ae,"target",{writable:!0,value:{value:ye,name:w}}),x(Ae,pe)}y||H(!1,xe)}},ae=pe=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(pe.key)!==-1&&(pe.preventDefault(),H(!0,pe))},ie=q!==null&&z,se=pe=>{!ie&&_&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:F,name:w}}),_(pe))};delete A["aria-invalid"];let he,Se;const Oe=[];let Pe=!1;(ny({value:F})||p)&&(O?he=O(F):Pe=!0);const Me=X.map(pe=>{if(!ge.isValidElement(pe))return null;let xe;if(y){if(!Array.isArray(F))throw new Error(No(2));xe=F.some(ye=>$8(ye,pe.props.value)),xe&&Pe&&Oe.push(pe.props.children)}else xe=$8(F,pe.props.value),xe&&Pe&&(Se=pe.props.children);return ge.cloneElement(pe,{"aria-selected":xe?"true":"false",onClick:re(pe),onKeyUp:ye=>{ye.key===" "&&ye.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(ye)},role:"option",selected:xe,value:void 0,"data-value":pe.props.value})});Pe&&(y?Oe.length===0?he=null:he=Oe.reduce((pe,xe,ye)=>(pe.push(xe),ye{const{classes:t}=e;return t},MM={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Vi(e)&&e!=="variant",slot:"Root"},cde=Et(_M,MM)(""),dde=Et(CM,MM)(""),fde=Et(xM,MM)(""),kz=ge.forwardRef(function(t,n){const r=pn({name:"MuiSelect",props:t}),{autoWidth:l=!1,children:i,classes:o={},className:a,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=Nie,id:d,input:f,inputProps:p,label:m,labelId:g,MenuProps:b,multiple:v=!1,native:h=!1,onClose:y,onOpen:w,open:_,renderValue:x,SelectDisplayProps:T,variant:k="outlined"}=r,S=Kt(r,lde),C=h?qce:ide,M=Gi(),O=au({props:r,muiFormControl:M,states:["variant","error"]}),D=O.variant||k,P=Ie({},r,{variant:D,classes:o}),E=ude(P),I=Kt(E,sde),A=f||{standard:ke.jsx(cde,{ownerState:P}),outlined:ke.jsx(dde,{label:m,ownerState:P}),filled:ke.jsx(fde,{ownerState:P})}[D],F=Lr(n,A.ref);return ke.jsx(ge.Fragment,{children:ge.cloneElement(A,Ie({inputComponent:C,inputProps:Ie({children:i,error:O.error,IconComponent:c,variant:D,type:void 0,multiple:v},h?{id:d}:{autoWidth:l,defaultOpen:s,displayEmpty:u,labelId:g,MenuProps:b,onClose:y,onOpen:w,open:_,renderValue:x,SelectDisplayProps:Ie({id:d},T)},p,{classes:p?ha(I,p.classes):I},f?f.props.inputProps:{})},v&&h&&D==="outlined"?{notched:!0}:{},{ref:F,className:on(A.props.className,a,E.root)},!f&&{variant:D},S))})});kz.muiName="Select";const ub=kz,pde=Object.freeze(Object.defineProperty({__proto__:null,default:ub,getSelectUtilityClasses:Tz,selectClasses:Kc},Symbol.toStringTag,{value:"Module"}));function hde(e){return yn("MuiSkeleton",e)}hn("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const mde=["animation","className","component","height","style","variant","width"];let ay=e=>e,N8,F8,j8,z8;const gde=e=>{const{classes:t,variant:n,animation:r,hasChildren:l,width:i,height:o}=e;return vn({root:["root",n,r,l&&"withChildren",l&&!i&&"fitContent",l&&!o&&"heightAuto"]},hde,t)},vde=Hi(N8||(N8=ay` + `),Wue)),Xue=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiLinearProgress"}),{className:l,color:i="primary",value:o,valueBuffer:a,variant:s="indeterminate"}=r,u=Kt(r,zue),c=Ie({},r,{color:i,variant:s}),d=Uue(c),f=po(),p={},m={bar1:{},bar2:{}};if((s==="determinate"||s==="buffer")&&o!==void 0){p["aria-valuenow"]=Math.round(o),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let g=o-100;f.direction==="rtl"&&(g=-g),m.bar1.transform=`translateX(${g}%)`}if(s==="buffer"&&a!==void 0){let g=(a||0)-100;f.direction==="rtl"&&(g=-g),m.bar2.transform=`translateX(${g}%)`}return ke.jsxs(Hue,Ie({className:on(d.root,l),ownerState:c,role:"progressbar"},p,{ref:n},u,{children:[s==="buffer"?ke.jsx(Vue,{className:d.dashed,ownerState:c}):null,ke.jsx(Gue,{className:d.bar1,ownerState:c,style:m.bar1}),s==="determinate"?null:ke.jsx(Yue,{className:d.bar2,ownerState:c,style:m.bar2})]}))}),fz=Xue,Kue=Object.freeze(Object.defineProperty({__proto__:null,default:fz,getLinearProgressUtilityClass:dz,linearProgressClasses:jue},Symbol.toStringTag,{value:"Module"})),ry=ge.createContext({});function Zue(e){return yn("MuiList",e)}hn("MuiList",["root","padding","dense","subheader"]);const Que=["children","className","component","dense","disablePadding","subheader"],Jue=e=>{const{classes:t,disablePadding:n,dense:r,subheader:l}=e;return vn({root:["root",!n&&"padding",r&&"dense",l&&"subheader"]},Zue,t)},ece=Et("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]}})(({ownerState:e})=>Ie({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),tce=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiList"}),{children:l,className:i,component:o="ul",dense:a=!1,disablePadding:s=!1,subheader:u}=r,c=Kt(r,Que),d=ge.useMemo(()=>({dense:a}),[a]),f=Ie({},r,{component:o,dense:a,disablePadding:s}),p=Jue(f);return ke.jsx(ry.Provider,{value:d,children:ke.jsxs(ece,Ie({as:o,className:on(p.root,i),ref:n,ownerState:f},c,{children:[u,l]}))})}),M8=hn("MuiListItemIcon",["root","alignItemsFlexStart"]);function pz(e){return yn("MuiListItemText",e)}const fm=hn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),nce=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],rce=e=>{const{classes:t,inset:n,primary:r,secondary:l,dense:i}=e;return vn({root:["root",n&&"inset",i&&"dense",r&&l&&"multiline"],primary:["primary"],secondary:["secondary"]},pz,t)},ace=Et("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fm.primary}`]:t.primary},{[`& .${fm.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>Ie({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),oce=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiListItemText"}),{children:l,className:i,disableTypography:o=!1,inset:a=!1,primary:s,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=Kt(r,nce),{dense:p}=ge.useContext(ry);let m=s??l,g=c;const b=Ie({},r,{disableTypography:o,inset:a,primary:!!m,secondary:!!g,dense:p}),v=rce(b);return m!=null&&m.type!==pr&&!o&&(m=ke.jsx(pr,Ie({variant:p?"body2":"body1",className:v.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:m}))),g!=null&&g.type!==pr&&!o&&(g=ke.jsx(pr,Ie({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},d,{children:g}))),ke.jsxs(ace,Ie({className:on(v.root,i),ownerState:b,ref:n},f,{children:[m,g]}))}),ice=oce,lce=Object.freeze(Object.defineProperty({__proto__:null,default:ice,getListItemTextUtilityClass:pz,listItemTextClasses:fm},Symbol.toStringTag,{value:"Module"})),sce=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ww(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function P8(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function hz(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.indexOf(t.keys.join(""))===0}function Jf(e,t,n,r,l,i){let o=!1,a=l(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(o)return!1;o=!0}const s=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!hz(a,i)||s)a=l(e,a,n);else return a.focus(),!0}return!1}const uce=ge.forwardRef(function(t,n){const{actions:r,autoFocus:l=!1,autoFocusItem:i=!1,children:o,className:a,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,f=Kt(t,sce),p=ge.useRef(null),m=ge.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});no(()=>{l&&p.current.focus()},[l]),ge.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,w)=>{const _=!p.current.style.width;if(y.clientHeight{const w=p.current,_=y.key,x=Aa(w).activeElement;if(_==="ArrowDown")y.preventDefault(),Jf(w,x,u,s,ww);else if(_==="ArrowUp")y.preventDefault(),Jf(w,x,u,s,P8);else if(_==="Home")y.preventDefault(),Jf(w,null,u,s,ww);else if(_==="End")y.preventDefault(),Jf(w,null,u,s,P8);else if(_.length===1){const T=m.current,k=_.toLowerCase(),S=performance.now();T.keys.length>0&&(S-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&k!==T.keys[0]&&(T.repeating=!1)),T.lastTime=S,T.keys.push(k);const C=x&&!T.repeating&&hz(x,T);T.previousKeyMatched&&(C||Jf(w,x,!1,s,ww,T))?y.preventDefault():T.previousKeyMatched=!1}c&&c(y)},b=Lr(p,n);let v=-1;ge.Children.forEach(o,(y,w)=>{if(!ge.isValidElement(y)){v===w&&(v+=1,v>=o.length&&(v=-1));return}y.props.disabled||(d==="selectedMenu"&&y.props.selected||v===-1)&&(v=w),v===w&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(v+=1,v>=o.length&&(v=-1))});const h=ge.Children.map(o,(y,w)=>{if(w===v){const _={};return i&&(_.autoFocus=!0),y.props.tabIndex===void 0&&d==="selectedMenu"&&(_.tabIndex=0),ge.cloneElement(y,_)}return y});return ke.jsx(tce,Ie({role:"menu",ref:b,className:a,onKeyDown:g,tabIndex:l?0:-1},f,{children:h}))});function cce(e){return yn("MuiPopover",e)}hn("MuiPopover",["root","paper"]);const dce=["onEntering"],fce=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],pce=["slotProps"];function O8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function A8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function D8(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function _w(e){return typeof e=="function"?e():e}const hce=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"]},cce,t)},mce=Et(Kj,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mz=Et(nu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),kM=ge.forwardRef(function(t,n){var r,l,i;const o=pn({props:t,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:p,container:m,elevation:g=8,marginThreshold:b=16,open:v,PaperProps:h={},slots:y,slotProps:w,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:x=dm,transitionDuration:T="auto",TransitionProps:{onEntering:k}={},disableScrollLock:S=!1}=o,C=Kt(o.TransitionProps,dce),M=Kt(o,fce),O=(r=w==null?void 0:w.paper)!=null?r:h,D=ge.useRef(),P=Lr(D,O.ref),E=Ie({},o,{anchorOrigin:u,anchorReference:d,elevation:g,marginThreshold:b,externalPaperSlotProps:O,transformOrigin:_,TransitionComponent:x,transitionDuration:T,TransitionProps:C}),I=hce(E),A=ge.useCallback(()=>{if(d==="anchorPosition")return c;const Z=_w(s),X=(Z&&Z.nodeType===1?Z:Aa(D.current).body).getBoundingClientRect();return{top:X.top+O8(X,u.vertical),left:X.left+A8(X,u.horizontal)}},[s,u.horizontal,u.vertical,c,d]),F=ge.useCallback(Z=>({vertical:O8(Z,_.vertical),horizontal:A8(Z,_.horizontal)}),[_.horizontal,_.vertical]),j=ge.useCallback(Z=>{const G={width:Z.offsetWidth,height:Z.offsetHeight},X=F(G);if(d==="none")return{top:null,left:null,transformOrigin:D8(X)};const Q=A();let re=Q.top-X.vertical,ae=Q.left-X.horizontal;const ie=re+G.height,se=ae+G.width,he=bl(_w(s)),Se=he.innerHeight-b,Oe=he.innerWidth-b;if(b!==null&&reSe){const Pe=ie-Se;re-=Pe,X.vertical+=Pe}if(b!==null&&aeOe){const Pe=se-Oe;ae-=Pe,X.horizontal+=Pe}return{top:`${Math.round(re)}px`,left:`${Math.round(ae)}px`,transformOrigin:D8(X)}},[s,d,A,F,b]),[z,B]=ge.useState(v),N=ge.useCallback(()=>{const Z=D.current;if(!Z)return;const G=j(Z);G.top!==null&&(Z.style.top=G.top),G.left!==null&&(Z.style.left=G.left),Z.style.transformOrigin=G.transformOrigin,B(!0)},[j]);ge.useEffect(()=>(S&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[s,S,N]);const R=(Z,G)=>{k&&k(Z,G),N()},q=()=>{B(!1)};ge.useEffect(()=>{v&&N()}),ge.useImperativeHandle(a,()=>v?{updatePosition:()=>{N()}}:null,[v,N]),ge.useEffect(()=>{if(!v)return;const Z=Um(()=>{N()}),G=bl(s);return G.addEventListener("resize",Z),()=>{Z.clear(),G.removeEventListener("resize",Z)}},[s,v,N]);let Y=T;T==="auto"&&!x.muiSupportAuto&&(Y=void 0);const L=m||(s?Aa(_w(s)).body:void 0),W=(l=y==null?void 0:y.root)!=null?l:mce,U=(i=y==null?void 0:y.paper)!=null?i:mz,V=Ui({elementType:U,externalSlotProps:Ie({},O,{style:z?O.style:Ie({},O.style,{opacity:0})}),additionalProps:{elevation:g,ref:P},ownerState:E,className:on(I.paper,O==null?void 0:O.className)}),te=Ui({elementType:W,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:M,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:L,open:v},ownerState:E,className:on(I.root,p)}),{slotProps:ee}=te,H=Kt(te,pce);return ke.jsx(W,Ie({},H,!lm(W)&&{slotProps:ee,disableScrollLock:S},{children:ke.jsx(x,Ie({appear:!0,in:v,onEntering:R,onExited:q,timeout:Y},C,{children:ke.jsx(U,Ie({},V,{children:f}))}))}))});function gz(e){return yn("MuiMenu",e)}const gce=hn("MuiMenu",["root","paper","list"]),vce=gce,yce=["onEntering"],bce=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],xce={vertical:"top",horizontal:"right"},wce={vertical:"top",horizontal:"left"},_ce=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"],list:["list"]},gz,t)},Tce=Et(kM,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kce=Et(mz,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Sce=Et(uce,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Cce=ge.forwardRef(function(t,n){var r,l;const i=pn({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:f,PaperProps:p={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:b}={},variant:v="selectedMenu",slots:h={},slotProps:y={}}=i,w=Kt(i.TransitionProps,yce),_=Kt(i,bce),x=po(),T=x.direction==="rtl",k=Ie({},i,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:b,PaperProps:p,transitionDuration:g,TransitionProps:w,variant:v}),S=_ce(k),C=o&&!u&&f,M=ge.useRef(null),O=(j,z)=>{M.current&&M.current.adjustStyleForScrollbar(j,x),b&&b(j,z)},D=j=>{j.key==="Tab"&&(j.preventDefault(),d&&d(j,"tabKeyDown"))};let P=-1;ge.Children.map(a,(j,z)=>{ge.isValidElement(j)&&(j.props.disabled||(v==="selectedMenu"&&j.props.selected||P===-1)&&(P=z))});const E=(r=h.paper)!=null?r:kce,I=(l=y.paper)!=null?l:p,A=Ui({elementType:h.root,externalSlotProps:y.root,ownerState:k,className:[S.root,s]}),F=Ui({elementType:E,externalSlotProps:I,ownerState:k,className:S.paper});return ke.jsx(Tce,Ie({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?xce:wce,slots:{paper:E,root:h.root},slotProps:{root:A,paper:F},open:f,ref:n,transitionDuration:g,TransitionProps:Ie({onEntering:O},w),ownerState:k},_,{classes:m,children:ke.jsx(Sce,Ie({onKeyDown:D,actions:M,autoFocus:o&&(P===-1||u),autoFocusItem:C,variant:v},c,{className:on(S.list,c.className),children:a}))}))}),vz=Cce,Mce=Object.freeze(Object.defineProperty({__proto__:null,default:vz,getMenuUtilityClass:gz,menuClasses:vce},Symbol.toStringTag,{value:"Module"}));function yz(e){return yn("MuiMenuItem",e)}const Pce=hn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Yc=Pce,Oce=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ace=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Dce=e=>{const{disabled:t,dense:n,divider:r,disableGutters:l,selected:i,classes:o}=e,s=vn({root:["root",n&&"dense",t&&"disabled",!l&&"gutters",r&&"divider",i&&"selected"]},yz,o);return Ie({},o,s)},Ece=Et(Tl,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Ace})(({theme:e,ownerState:t})=>Ie({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Yc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Yc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Yc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${v8.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${v8.inset}`]:{marginLeft:52},[`& .${fm.root}`]:{marginTop:0,marginBottom:0},[`& .${fm.inset}`]:{paddingLeft:36},[`& .${M8.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ie({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${M8.root} svg`]:{fontSize:"1.25rem"}}))),Rce=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiMenuItem"}),{autoFocus:l=!1,component:i="li",dense:o=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f}=r,p=Kt(r,Oce),m=ge.useContext(ry),g=ge.useMemo(()=>({dense:o||m.dense||!1,disableGutters:s}),[m.dense,o,s]),b=ge.useRef(null);no(()=>{l&&b.current&&b.current.focus()},[l]);const v=Ie({},r,{dense:g.dense,divider:a,disableGutters:s}),h=Dce(r),y=Lr(b,n);let w;return r.disabled||(w=d!==void 0?d:-1),ke.jsx(ry.Provider,{value:g,children:ke.jsx(Ece,Ie({ref:y,role:c,tabIndex:w,component:i,focusVisibleClassName:on(h.focusVisible,u),className:on(h.root,f)},p,{ownerState:v,classes:h}))})}),bz=Rce,Lce=Object.freeze(Object.defineProperty({__proto__:null,default:bz,getMenuItemUtilityClass:yz,menuItemClasses:Yc},Symbol.toStringTag,{value:"Module"}));function Ice(e){return yn("MuiNativeSelect",e)}const SM=hn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),$ce=["className","disabled","error","IconComponent","inputRef","variant"],Nce=e=>{const{classes:t,variant:n,disabled:r,multiple:l,open:i,error:o}=e,a={select:["select",n,r&&"disabled",l&&"multiple",o&&"error"],icon:["icon",`icon${Jt(n)}`,i&&"iconOpen",r&&"disabled"]};return vn(a,Ice,t)},xz=({ownerState:e,theme:t})=>Ie({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Ie({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${SM.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Fce=Et("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Vi,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${SM.multiple}`]:t.multiple}]}})(xz),wz=({ownerState:e,theme:t})=>Ie({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${SM.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),jce=Et("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Jt(n.variant)}`],n.open&&t.iconOpen]}})(wz),zce=ge.forwardRef(function(t,n){const{className:r,disabled:l,error:i,IconComponent:o,inputRef:a,variant:s="standard"}=t,u=Kt(t,$ce),c=Ie({},t,{disabled:l,variant:s,error:i}),d=Nce(c);return ke.jsxs(ge.Fragment,{children:[ke.jsx(Fce,Ie({ownerState:c,className:on(d.select,r),disabled:l,ref:a||n},u)),t.multiple?null:ke.jsx(jce,{as:o,ownerState:c,className:d.icon})]})});var E8;const Bce=["children","classes","className","label","notched"],Wce=Et("fieldset")({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%"}),qce=Et("legend")(({ownerState:e,theme:t})=>Ie({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Ie({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Uce(e){const{className:t,label:n,notched:r}=e,l=Kt(e,Bce),i=n!=null&&n!=="",o=Ie({},e,{notched:r,withLabel:i});return ke.jsx(Wce,Ie({"aria-hidden":!0,className:t,ownerState:o},l,{children:ke.jsx(qce,{ownerState:o,children:i?ke.jsx("span",{children:n}):E8||(E8=ke.jsx("span",{className:"notranslate",children:"​"}))})}))}const Hce=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Vce=e=>{const{classes:t}=e,r=vn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Eie,t);return Ie({},t,r)},Gce=Et(rb,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:tb})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Ie({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xs.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xs.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${xs.focused} .${xs.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${xs.error} .${xs.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xs.disabled} .${xs.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Ie({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Yce=Et(Uce,{name:"MuiOutlinedInput",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{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Xce=Et(ab,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:nb})(({theme:e,ownerState:t})=>Ie({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),CM=ge.forwardRef(function(t,n){var r,l,i,o,a;const s=pn({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:p=!1,notched:m,slots:g={},type:b="text"}=s,v=Kt(s,Hce),h=Vce(s),y=Gi(),w=au({props:s,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=Ie({},s,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:y,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:p,size:w.size,type:b}),x=(r=(l=g.root)!=null?l:u.Root)!=null?r:Gce,T=(i=(o=g.input)!=null?o:u.Input)!=null?i:Xce;return ke.jsx(ob,Ie({slots:{root:x,input:T},renderSuffix:k=>ke.jsx(Yce,{ownerState:_,className:h.notchedOutline,label:f!=null&&f!==""&&w.required?a||(a=ke.jsxs(ge.Fragment,{children:[f," ","*"]})):f,notched:typeof m<"u"?m:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:c,inputComponent:d,multiline:p,ref:n,type:b},v,{classes:Ie({},h,{notchedOutline:null})}))});CM.muiName="Input";const R8=Qr(ke.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),L8=Qr(ke.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function _z(e){return yn("MuiSelect",e)}const Kce=hn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Xc=Kce;var I8;const Zce=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Qce=Et("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Xc.select}`]:t.select},{[`&.${Xc.select}`]:t[n.variant]},{[`&.${Xc.error}`]:t.error},{[`&.${Xc.multiple}`]:t.multiple}]}})(xz,{[`&.${Xc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Jce=Et("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Jt(n.variant)}`],n.open&&t.iconOpen]}})(wz),ede=Et("input",{shouldForwardProp:e=>Une(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function $8(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function tde(e){return e==null||typeof e=="string"&&!e.trim()}const nde=e=>{const{classes:t,variant:n,disabled:r,multiple:l,open:i,error:o}=e,a={select:["select",n,r&&"disabled",l&&"multiple",o&&"error"],icon:["icon",`icon${Jt(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return vn(a,_z,t)},rde=ge.forwardRef(function(t,n){var r;const{"aria-describedby":l,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:u,defaultOpen:c,defaultValue:d,disabled:f,displayEmpty:p,error:m=!1,IconComponent:g,inputRef:b,labelId:v,MenuProps:h={},multiple:y,name:w,onBlur:_,onChange:x,onClose:T,onFocus:k,onOpen:S,open:C,readOnly:M,renderValue:O,SelectDisplayProps:D={},tabIndex:P,value:E,variant:I="standard"}=t,A=Kt(t,Zce),[F,j]=Zl({controlled:E,default:d,name:"Select"}),[z,B]=Zl({controlled:C,default:c,name:"Select"}),N=ge.useRef(null),R=ge.useRef(null),[q,Y]=ge.useState(null),{current:L}=ge.useRef(C!=null),[W,U]=ge.useState(),V=Lr(n,b),te=ge.useCallback(pe=>{R.current=pe,pe&&Y(pe)},[]),ee=q==null?void 0:q.parentNode;ge.useImperativeHandle(V,()=>({focus:()=>{R.current.focus()},node:N.current,value:F}),[F]),ge.useEffect(()=>{c&&z&&q&&!L&&(U(a?null:ee.clientWidth),R.current.focus())},[q,a]),ge.useEffect(()=>{o&&R.current.focus()},[o]),ge.useEffect(()=>{if(!v)return;const pe=Aa(R.current).getElementById(v);if(pe){const xe=()=>{getSelection().isCollapsed&&R.current.focus()};return pe.addEventListener("click",xe),()=>{pe.removeEventListener("click",xe)}}},[v]);const H=(pe,xe)=>{pe?S&&S(xe):T&&T(xe),L||(U(a?null:ee.clientWidth),B(pe))},Z=pe=>{pe.button===0&&(pe.preventDefault(),R.current.focus(),H(!0,pe))},G=pe=>{H(!1,pe)},X=ge.Children.toArray(s),Q=pe=>{const xe=X.find(ye=>ye.props.value===pe.target.value);xe!==void 0&&(j(xe.props.value),x&&x(pe,xe))},re=pe=>xe=>{let ye;if(xe.currentTarget.hasAttribute("tabindex")){if(y){ye=Array.isArray(F)?F.slice():[];const Te=F.indexOf(pe.props.value);Te===-1?ye.push(pe.props.value):ye.splice(Te,1)}else ye=pe.props.value;if(pe.props.onClick&&pe.props.onClick(xe),F!==ye&&(j(ye),x)){const Te=xe.nativeEvent||xe,Ae=new Te.constructor(Te.type,Te);Object.defineProperty(Ae,"target",{writable:!0,value:{value:ye,name:w}}),x(Ae,pe)}y||H(!1,xe)}},ae=pe=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(pe.key)!==-1&&(pe.preventDefault(),H(!0,pe))},ie=q!==null&&z,se=pe=>{!ie&&_&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:F,name:w}}),_(pe))};delete A["aria-invalid"];let he,Se;const Oe=[];let Pe=!1;(ny({value:F})||p)&&(O?he=O(F):Pe=!0);const Me=X.map(pe=>{if(!ge.isValidElement(pe))return null;let xe;if(y){if(!Array.isArray(F))throw new Error(No(2));xe=F.some(ye=>$8(ye,pe.props.value)),xe&&Pe&&Oe.push(pe.props.children)}else xe=$8(F,pe.props.value),xe&&Pe&&(Se=pe.props.children);return ge.cloneElement(pe,{"aria-selected":xe?"true":"false",onClick:re(pe),onKeyUp:ye=>{ye.key===" "&&ye.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(ye)},role:"option",selected:xe,value:void 0,"data-value":pe.props.value})});Pe&&(y?Oe.length===0?he=null:he=Oe.reduce((pe,xe,ye)=>(pe.push(xe),ye{const{classes:t}=e;return t},MM={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Vi(e)&&e!=="variant",slot:"Root"},lde=Et(_M,MM)(""),sde=Et(CM,MM)(""),ude=Et(xM,MM)(""),Tz=ge.forwardRef(function(t,n){const r=pn({name:"MuiSelect",props:t}),{autoWidth:l=!1,children:i,classes:o={},className:a,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=Lie,id:d,input:f,inputProps:p,label:m,labelId:g,MenuProps:b,multiple:v=!1,native:h=!1,onClose:y,onOpen:w,open:_,renderValue:x,SelectDisplayProps:T,variant:k="outlined"}=r,S=Kt(r,ade),C=h?zce:rde,M=Gi(),O=au({props:r,muiFormControl:M,states:["variant","error"]}),D=O.variant||k,P=Ie({},r,{variant:D,classes:o}),E=ide(P),I=Kt(E,ode),A=f||{standard:ke.jsx(lde,{ownerState:P}),outlined:ke.jsx(sde,{label:m,ownerState:P}),filled:ke.jsx(ude,{ownerState:P})}[D],F=Lr(n,A.ref);return ke.jsx(ge.Fragment,{children:ge.cloneElement(A,Ie({inputComponent:C,inputProps:Ie({children:i,error:O.error,IconComponent:c,variant:D,type:void 0,multiple:v},h?{id:d}:{autoWidth:l,defaultOpen:s,displayEmpty:u,labelId:g,MenuProps:b,onClose:y,onOpen:w,open:_,renderValue:x,SelectDisplayProps:Ie({id:d},T)},p,{classes:p?ha(I,p.classes):I},f?f.props.inputProps:{})},v&&h&&D==="outlined"?{notched:!0}:{},{ref:F,className:on(A.props.className,a,E.root)},!f&&{variant:D},S))})});Tz.muiName="Select";const sb=Tz,cde=Object.freeze(Object.defineProperty({__proto__:null,default:sb,getSelectUtilityClasses:_z,selectClasses:Xc},Symbol.toStringTag,{value:"Module"}));function dde(e){return yn("MuiSkeleton",e)}hn("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const fde=["animation","className","component","height","style","variant","width"];let ay=e=>e,N8,F8,j8,z8;const pde=e=>{const{classes:t,variant:n,animation:r,hasChildren:l,width:i,height:o}=e;return vn({root:["root",n,r,l&&"withChildren",l&&!i&&"fitContent",l&&!o&&"heightAuto"]},dde,t)},hde=Hi(N8||(N8=ay` 0% { opacity: 1; } @@ -242,7 +242,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { opacity: 1; } -`)),yde=Hi(F8||(F8=ay` +`)),mde=Hi(F8||(F8=ay` 0% { transform: translateX(-100%); } @@ -255,9 +255,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { transform: translateX(100%); } -`)),bde=Et("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=lM(e.shape.borderRadius)||"px",r=$l(e.shape.borderRadius);return Ie({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:rr(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Jl(j8||(j8=ay` +`)),gde=Et("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=lM(e.shape.borderRadius)||"px",r=$l(e.shape.borderRadius);return Ie({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:rr(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Jl(j8||(j8=ay` animation: ${0} 2s ease-in-out 0.5s infinite; - `),vde),({ownerState:e,theme:t})=>e.animation==="wave"&&Jl(z8||(z8=ay` + `),hde),({ownerState:e,theme:t})=>e.animation==="wave"&&Jl(z8||(z8=ay` position: relative; overflow: hidden; @@ -280,15 +280,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann right: 0; top: 0; } - `),yde,(t.vars||t).palette.action.hover)),xde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiSkeleton"}),{animation:l="pulse",className:i,component:o="span",height:a,style:s,variant:u="text",width:c}=r,d=Kt(r,mde),f=Ie({},r,{animation:l,component:o,variant:u,hasChildren:!!d.children}),p=gde(f);return ke.jsx(bde,Ie({as:o,ref:n,className:on(p.root,i),ownerState:f},d,{style:Ie({width:c,height:a},s)}))});function Sz(e){return yn("MuiTooltip",e)}const wde=hn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Bl=wde,_de=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Tde(e){return Math.round(e*1e5)/1e5}const kde=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:l,placement:i}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",l&&"touch",`tooltipPlacement${Jt(i.split("-")[0])}`],arrow:["arrow"]};return vn(o,Sz,t)},Sde=Et(bM,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>Ie({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Bl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Bl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Bl.arrow}`]:Ie({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Bl.arrow}`]:Ie({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Cde=Et("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Jt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>Ie({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:rr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Tde(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Bl.popper}[data-popper-placement*="left"] &`]:Ie({transformOrigin:"right center"},t.isRtl?Ie({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Ie({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Bl.popper}[data-popper-placement*="right"] &`]:Ie({transformOrigin:"left center"},t.isRtl?Ie({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Ie({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Bl.popper}[data-popper-placement*="top"] &`]:Ie({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Bl.popper}[data-popper-placement*="bottom"] &`]:Ie({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Mde=Et("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:rr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let a0=!1,kw=null,tp={x:0,y:0};function o0(e,t){return n=>{t&&t(n),e(n)}}const Pde=ge.forwardRef(function(t,n){var r,l,i,o,a,s,u,c,d,f,p,m,g,b,v,h,y,w,_;const x=pn({props:t,name:"MuiTooltip"}),{arrow:T=!1,children:k,components:S={},componentsProps:C={},describeChild:M=!1,disableFocusListener:O=!1,disableHoverListener:D=!1,disableInteractive:P=!1,disableTouchListener:E=!1,enterDelay:I=100,enterNextDelay:A=0,enterTouchDelay:F=700,followCursor:j=!1,id:z,leaveDelay:B=0,leaveTouchDelay:N=1500,onClose:R,onOpen:q,open:Y,placement:L="bottom",PopperComponent:W,PopperProps:U={},slotProps:V={},slots:te={},title:ee,TransitionComponent:H=fm,TransitionProps:Z}=x,G=Kt(x,_de),X=ge.isValidElement(k)?k:ke.jsx("span",{children:k}),Q=po(),re=Q.direction==="rtl",[ae,ie]=ge.useState(),[se,he]=ge.useState(null),Se=ge.useRef(!1),Oe=P||j,Pe=ge.useRef(),Me=ge.useRef(),ce=ge.useRef(),we=ge.useRef(),[K,ne]=Zl({controlled:Y,default:!1,name:"Tooltip",state:"open"});let de=K;const _e=Kl(z),ue=ge.useRef(),pe=ge.useCallback(()=>{ue.current!==void 0&&(document.body.style.WebkitUserSelect=ue.current,ue.current=void 0),clearTimeout(we.current)},[]);ge.useEffect(()=>()=>{clearTimeout(Pe.current),clearTimeout(Me.current),clearTimeout(ce.current),pe()},[pe]);const xe=Ye=>{clearTimeout(kw),a0=!0,ne(!0),q&&!de&&q(Ye)},ye=yo(Ye=>{clearTimeout(kw),kw=setTimeout(()=>{a0=!1},800+B),ne(!1),R&&de&&R(Ye),clearTimeout(Pe.current),Pe.current=setTimeout(()=>{Se.current=!1},Q.transitions.duration.shortest)}),Te=Ye=>{Se.current&&Ye.type!=="touchstart"||(ae&&ae.removeAttribute("title"),clearTimeout(Me.current),clearTimeout(ce.current),I||a0&&A?Me.current=setTimeout(()=>{xe(Ye)},a0?A:I):xe(Ye))},Ae=Ye=>{clearTimeout(Me.current),clearTimeout(ce.current),ce.current=setTimeout(()=>{ye(Ye)},B)},{isFocusVisibleRef:Re,onBlur:Le,onFocus:$e,ref:Fe}=FC(),[,Be]=ge.useState(!1),Ue=Ye=>{Le(Ye),Re.current===!1&&(Be(!1),Ae(Ye))},qe=Ye=>{ae||ie(Ye.currentTarget),$e(Ye),Re.current===!0&&(Be(!0),Te(Ye))},Xe=Ye=>{Se.current=!0;const nt=X.props;nt.onTouchStart&&nt.onTouchStart(Ye)},ot=Te,st=Ae,dt=Ye=>{Xe(Ye),clearTimeout(ce.current),clearTimeout(Pe.current),pe(),ue.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",we.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ue.current,Te(Ye)},F)},vt=Ye=>{X.props.onTouchEnd&&X.props.onTouchEnd(Ye),pe(),clearTimeout(ce.current),ce.current=setTimeout(()=>{ye(Ye)},N)};ge.useEffect(()=>{if(!de)return;function Ye(nt){(nt.key==="Escape"||nt.key==="Esc")&&ye(nt)}return document.addEventListener("keydown",Ye),()=>{document.removeEventListener("keydown",Ye)}},[ye,de]);const We=Lr(X.ref,Fe,ie,n);!ee&&ee!==0&&(de=!1);const ze=ge.useRef(),tt=Ye=>{const nt=X.props;nt.onMouseMove&&nt.onMouseMove(Ye),tp={x:Ye.clientX,y:Ye.clientY},ze.current&&ze.current.update()},it={},St=typeof ee=="string";M?(it.title=!de&&St&&!D?ee:null,it["aria-describedby"]=de?_e:null):(it["aria-label"]=St?ee:null,it["aria-labelledby"]=de&&!St?_e:null);const Ze=Ie({},it,G,X.props,{className:on(G.className,X.props.className),onTouchStart:Xe,ref:We},j?{onMouseMove:tt}:{}),ut={};E||(Ze.onTouchStart=dt,Ze.onTouchEnd=vt),D||(Ze.onMouseOver=o0(ot,Ze.onMouseOver),Ze.onMouseLeave=o0(st,Ze.onMouseLeave),Oe||(ut.onMouseOver=ot,ut.onMouseLeave=st)),O||(Ze.onFocus=o0(qe,Ze.onFocus),Ze.onBlur=o0(Ue,Ze.onBlur),Oe||(ut.onFocus=qe,ut.onBlur=Ue));const ht=ge.useMemo(()=>{var Ye;let nt=[{name:"arrow",enabled:!!se,options:{element:se,padding:4}}];return(Ye=U.popperOptions)!=null&&Ye.modifiers&&(nt=nt.concat(U.popperOptions.modifiers)),Ie({},U.popperOptions,{modifiers:nt})},[se,U]),Rt=Ie({},x,{isRtl:re,arrow:T,disableInteractive:Oe,placement:L,PopperComponentProp:W,touch:Se.current}),Ct=kde(Rt),Wt=(r=(l=te.popper)!=null?l:S.Popper)!=null?r:Sde,_t=(i=(o=(a=te.transition)!=null?a:S.Transition)!=null?o:H)!=null?i:fm,be=(s=(u=te.tooltip)!=null?u:S.Tooltip)!=null?s:Cde,Ce=(c=(d=te.arrow)!=null?d:S.Arrow)!=null?c:Mde,Ge=ph(Wt,Ie({},U,(f=V.popper)!=null?f:C.popper,{className:on(Ct.popper,U==null?void 0:U.className,(p=(m=V.popper)!=null?m:C.popper)==null?void 0:p.className)}),Rt),He=ph(_t,Ie({},Z,(g=V.transition)!=null?g:C.transition),Rt),et=ph(be,Ie({},(b=V.tooltip)!=null?b:C.tooltip,{className:on(Ct.tooltip,(v=(h=V.tooltip)!=null?h:C.tooltip)==null?void 0:v.className)}),Rt),Ke=ph(Ce,Ie({},(y=V.arrow)!=null?y:C.arrow,{className:on(Ct.arrow,(w=(_=V.arrow)!=null?_:C.arrow)==null?void 0:w.className)}),Rt);return ke.jsxs(ge.Fragment,{children:[ge.cloneElement(X,Ze),ke.jsx(Wt,Ie({as:W??bM,placement:L,anchorEl:j?{getBoundingClientRect:()=>({top:tp.y,left:tp.x,right:tp.x,bottom:tp.y,width:0,height:0})}:ae,popperRef:ze,open:ae?de:!1,id:_e,transition:!0},ut,Ge,{popperOptions:ht,children:({TransitionProps:Ye})=>ke.jsx(_t,Ie({timeout:Q.transitions.duration.shorter},Ye,He,{children:ke.jsxs(be,Ie({},et,{children:[ee,T?ke.jsx(Ce,Ie({},Ke,{ref:he})):null]}))}))}))]})}),Ode=Pde,Ade=Object.freeze(Object.defineProperty({__proto__:null,default:Ode,getTooltipUtilityClass:Sz,tooltipClasses:Bl},Symbol.toStringTag,{value:"Module"}));function Dde(e){return yn("MuiTab",e)}const pu=hn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Ede=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Rde=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:l,icon:i,label:o,selected:a,disabled:s}=e,u={root:["root",i&&o&&"labelIcon",`textColor${Jt(n)}`,r&&"fullWidth",l&&"wrapped",a&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]};return vn(u,Dde,t)},Lde=Et(Tl,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Jt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>Ie({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${pu.iconWrapper}`]:Ie({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${pu.selected}`]:{opacity:1},[`&.${pu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${pu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${pu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${pu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${pu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),ek=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTab"}),{className:l,disabled:i=!1,disableFocusRipple:o=!1,fullWidth:a,icon:s,iconPosition:u="top",indicator:c,label:d,onChange:f,onClick:p,onFocus:m,selected:g,selectionFollowsFocus:b,textColor:v="inherit",value:h,wrapped:y=!1}=r,w=Kt(r,Ede),_=Ie({},r,{disabled:i,disableFocusRipple:o,selected:g,icon:!!s,iconPosition:u,label:!!d,fullWidth:a,textColor:v,wrapped:y}),x=Rde(_),T=s&&d&&ge.isValidElement(s)?ge.cloneElement(s,{className:on(x.iconWrapper,s.props.className)}):s,k=C=>{!g&&f&&f(C,h),p&&p(C)},S=C=>{b&&!g&&f&&f(C,h),m&&m(C)};return ke.jsxs(Lde,Ie({focusRipple:!o,className:on(x.root,l),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:k,onFocus:S,ownerState:_,tabIndex:g?0:-1},w,{children:[u==="top"||u==="start"?ke.jsxs(ge.Fragment,{children:[T,d]}):ke.jsxs(ge.Fragment,{children:[d,T]}),c]}))}),Cz=ge.createContext();function Mz(e){return yn("MuiTable",e)}const Ide=hn("MuiTable",["root","stickyHeader"]),$de=Ide,Nde=["className","component","padding","size","stickyHeader"],Fde=e=>{const{classes:t,stickyHeader:n}=e;return vn({root:["root",n&&"stickyHeader"]},Mz,t)},jde=Et("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Ie({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ie({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),B8="table",zde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTable"}),{className:l,component:i=B8,padding:o="normal",size:a="medium",stickyHeader:s=!1}=r,u=Kt(r,Nde),c=Ie({},r,{component:i,padding:o,size:a,stickyHeader:s}),d=Fde(c),f=ge.useMemo(()=>({padding:o,size:a,stickyHeader:s}),[o,a,s]);return ke.jsx(Cz.Provider,{value:f,children:ke.jsx(jde,Ie({as:i,role:i===B8?null:"table",ref:n,className:on(d.root,l),ownerState:c},u))})}),PM=zde,Bde=Object.freeze(Object.defineProperty({__proto__:null,default:PM,getTableUtilityClass:Mz,tableClasses:$de},Symbol.toStringTag,{value:"Module"})),eg=ge.createContext();function Pz(e){return yn("MuiTableBody",e)}const Wde=hn("MuiTableBody",["root"]),qde=Wde,Ude=["className","component"],Hde=e=>{const{classes:t}=e;return vn({root:["root"]},Pz,t)},Vde=Et("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Gde={variant:"body"},W8="tbody",Yde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableBody"}),{className:l,component:i=W8}=r,o=Kt(r,Ude),a=Ie({},r,{component:i}),s=Hde(a);return ke.jsx(eg.Provider,{value:Gde,children:ke.jsx(Vde,Ie({className:on(s.root,l),as:i,ref:n,role:i===W8?null:"rowgroup",ownerState:a},o))})}),OM=Yde,Xde=Object.freeze(Object.defineProperty({__proto__:null,default:OM,getTableBodyUtilityClass:Pz,tableBodyClasses:qde},Symbol.toStringTag,{value:"Module"}));function Oz(e){return yn("MuiTableCell",e)}const Kde=hn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Az=Kde,Zde=["align","className","component","padding","scope","size","sortDirection","variant"],Qde=e=>{const{classes:t,variant:n,align:r,padding:l,size:i,stickyHeader:o}=e,a={root:["root",n,o&&"stickyHeader",r!=="inherit"&&`align${Jt(r)}`,l!=="normal"&&`padding${Jt(l)}`,`size${Jt(i)}`]};return vn(a,Oz,t)},Jde=Et("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Jt(n.size)}`],n.padding!=="normal"&&t[`padding${Jt(n.padding)}`],n.align!=="inherit"&&t[`align${Jt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Ie({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?_l(rr(e.palette.divider,1),.88):wl(rr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Az.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),efe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableCell"}),{align:l="inherit",className:i,component:o,padding:a,scope:s,size:u,sortDirection:c,variant:d}=r,f=Kt(r,Zde),p=ge.useContext(Cz),m=ge.useContext(eg),g=m&&m.variant==="head";let b;o?b=o:b=g?"th":"td";let v=s;b==="td"?v=void 0:!v&&g&&(v="col");const h=d||m&&m.variant,y=Ie({},r,{align:l,component:b,padding:a||(p&&p.padding?p.padding:"normal"),size:u||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:h==="head"&&p&&p.stickyHeader,variant:h}),w=Qde(y);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),ke.jsx(Jde,Ie({as:b,ref:n,className:on(w.root,i),"aria-sort":_,scope:v,ownerState:y},f))}),gi=efe,tfe=Object.freeze(Object.defineProperty({__proto__:null,default:gi,getTableCellUtilityClass:Oz,tableCellClasses:Az},Symbol.toStringTag,{value:"Module"}));function nfe(e){return yn("MuiTableContainer",e)}hn("MuiTableContainer",["root"]);const rfe=["className","component"],afe=e=>{const{classes:t}=e;return vn({root:["root"]},nfe,t)},ofe=Et("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),ife=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableContainer"}),{className:l,component:i="div"}=r,o=Kt(r,rfe),a=Ie({},r,{component:i}),s=afe(a);return ke.jsx(ofe,Ie({ref:n,as:i,className:on(s.root,l),ownerState:a},o))});function Dz(e){return yn("MuiTableFooter",e)}const lfe=hn("MuiTableFooter",["root"]),sfe=lfe,ufe=["className","component"],cfe=e=>{const{classes:t}=e;return vn({root:["root"]},Dz,t)},dfe=Et("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),ffe={variant:"footer"},q8="tfoot",pfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableFooter"}),{className:l,component:i=q8}=r,o=Kt(r,ufe),a=Ie({},r,{component:i}),s=cfe(a);return ke.jsx(eg.Provider,{value:ffe,children:ke.jsx(dfe,Ie({as:i,className:on(s.root,l),ref:n,role:i===q8?null:"rowgroup",ownerState:a},o))})}),hfe=pfe,mfe=Object.freeze(Object.defineProperty({__proto__:null,default:hfe,getTableFooterUtilityClass:Dz,tableFooterClasses:sfe},Symbol.toStringTag,{value:"Module"}));function Ez(e){return yn("MuiTableHead",e)}const gfe=hn("MuiTableHead",["root"]),vfe=gfe,yfe=["className","component"],bfe=e=>{const{classes:t}=e;return vn({root:["root"]},Ez,t)},xfe=Et("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),wfe={variant:"head"},U8="thead",_fe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableHead"}),{className:l,component:i=U8}=r,o=Kt(r,yfe),a=Ie({},r,{component:i}),s=bfe(a);return ke.jsx(eg.Provider,{value:wfe,children:ke.jsx(xfe,Ie({as:i,className:on(s.root,l),ref:n,role:i===U8?null:"rowgroup",ownerState:a},o))})}),AM=_fe,Tfe=Object.freeze(Object.defineProperty({__proto__:null,default:AM,getTableHeadUtilityClass:Ez,tableHeadClasses:vfe},Symbol.toStringTag,{value:"Module"}));function Rz(e){return yn("MuiToolbar",e)}const kfe=hn("MuiToolbar",["root","gutters","regular","dense"]),Sfe=kfe,Cfe=["className","component","disableGutters","variant"],Mfe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return vn({root:["root",!n&&"gutters",r]},Rz,t)},Pfe=Et("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>Ie({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Ofe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiToolbar"}),{className:l,component:i="div",disableGutters:o=!1,variant:a="regular"}=r,s=Kt(r,Cfe),u=Ie({},r,{component:i,disableGutters:o,variant:a}),c=Mfe(u);return ke.jsx(Pfe,Ie({as:i,className:on(c.root,l),ref:n,ownerState:u},s))}),Lz=Ofe,Afe=Object.freeze(Object.defineProperty({__proto__:null,default:Lz,getToolbarUtilityClass:Rz,toolbarClasses:Sfe},Symbol.toStringTag,{value:"Module"})),tk=Qr(ke.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),nk=Qr(ke.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var H8,V8,G8,Y8,X8,K8,Z8,Q8;const Dfe=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],Efe=ge.forwardRef(function(t,n){const{backIconButtonProps:r,count:l,getItemAriaLabel:i,nextIconButtonProps:o,onPageChange:a,page:s,rowsPerPage:u,showFirstButton:c,showLastButton:d}=t,f=Kt(t,Dfe),p=po(),m=h=>{a(h,0)},g=h=>{a(h,s-1)},b=h=>{a(h,s+1)},v=h=>{a(h,Math.max(0,Math.ceil(l/u)-1))};return ke.jsxs("div",Ie({ref:n},f,{children:[c&&ke.jsx(mi,{onClick:m,disabled:s===0,"aria-label":i("first",s),title:i("first",s),children:p.direction==="rtl"?H8||(H8=ke.jsx(L8,{})):V8||(V8=ke.jsx(R8,{}))}),ke.jsx(mi,Ie({onClick:g,disabled:s===0,color:"inherit","aria-label":i("previous",s),title:i("previous",s)},r,{children:p.direction==="rtl"?G8||(G8=ke.jsx(nk,{})):Y8||(Y8=ke.jsx(tk,{}))})),ke.jsx(mi,Ie({onClick:b,disabled:l!==-1?s>=Math.ceil(l/u)-1:!1,color:"inherit","aria-label":i("next",s),title:i("next",s)},o,{children:p.direction==="rtl"?X8||(X8=ke.jsx(tk,{})):K8||(K8=ke.jsx(nk,{}))})),d&&ke.jsx(mi,{onClick:v,disabled:s>=Math.ceil(l/u)-1,"aria-label":i("last",s),title:i("last",s),children:p.direction==="rtl"?Z8||(Z8=ke.jsx(R8,{})):Q8||(Q8=ke.jsx(L8,{}))})]}))});function Iz(e){return yn("MuiTablePagination",e)}const Rfe=hn("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),_d=Rfe;var J8;const Lfe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],Ife=Et(gi,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),$fe=Et(Lz,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>Ie({[`& .${_d.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${_d.actions}`]:{flexShrink:0,marginLeft:20}})),Nfe=Et("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Ffe=Et("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>Ie({},e.typography.body2,{flexShrink:0})),jfe=Et(ub,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>Ie({[`& .${_d.selectIcon}`]:t.selectIcon,[`& .${_d.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${_d.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),zfe=Et(xz,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Bfe=Et("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>Ie({},e.typography.body2,{flexShrink:0}));function Wfe({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function qfe(e){return`Go to ${e} page`}const Ufe=e=>{const{classes:t}=e;return vn({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Iz,t)},Hfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=Efe,backIconButtonProps:i,className:o,colSpan:a,component:s=gi,count:u,getItemAriaLabel:c=qfe,labelDisplayedRows:d=Wfe,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:p,onPageChange:m,onRowsPerPageChange:g,page:b,rowsPerPage:v,rowsPerPageOptions:h=[10,25,50,100],SelectProps:y={},showFirstButton:w=!1,showLastButton:_=!1}=r,x=Kt(r,Lfe),T=r,k=Ufe(T),S=y.native?"option":zfe;let C;(s===gi||s==="td")&&(C=a||1e3);const M=Kl(y.id),O=Kl(y.labelId),D=()=>u===-1?(b+1)*v:v===-1?u:Math.min(u,(b+1)*v);return ke.jsx(Ife,Ie({colSpan:C,ref:n,as:s,ownerState:T,className:on(k.root,o)},x,{children:ke.jsxs($fe,{className:k.toolbar,children:[ke.jsx(Nfe,{className:k.spacer}),h.length>1&&ke.jsx(Ffe,{className:k.selectLabel,id:O,children:f}),h.length>1&&ke.jsx(jfe,Ie({variant:"standard"},!y.variant&&{input:J8||(J8=ke.jsx(ib,{}))},{value:v,onChange:g,id:M,labelId:O},y,{classes:Ie({},y.classes,{root:on(k.input,k.selectRoot,(y.classes||{}).root),select:on(k.select,(y.classes||{}).select),icon:on(k.selectIcon,(y.classes||{}).icon)}),children:h.map(P=>ge.createElement(S,Ie({},!sm(S)&&{ownerState:T},{className:k.menuItem,key:P.label?P.label:P,value:P.value?P.value:P}),P.label?P.label:P))})),ke.jsx(Bfe,{className:k.displayedRows,children:d({from:u===0?0:b*v+1,to:D(),count:u===-1?-1:u,page:b})}),ke.jsx(l,{className:k.actions,backIconButtonProps:i,count:u,nextIconButtonProps:p,onPageChange:m,page:b,rowsPerPage:v,showFirstButton:w,showLastButton:_,getItemAriaLabel:c})]})}))}),Vfe=Hfe,Gfe=Object.freeze(Object.defineProperty({__proto__:null,default:Vfe,getTablePaginationUtilityClass:Iz,tablePaginationClasses:_d},Symbol.toStringTag,{value:"Module"}));function $z(e){return yn("MuiTableRow",e)}const Yfe=hn("MuiTableRow",["root","selected","hover","head","footer"]),rk=Yfe,Xfe=["className","component","hover","selected"],Kfe=e=>{const{classes:t,selected:n,hover:r,head:l,footer:i}=e;return vn({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},$z,t)},Zfe=Et("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${rk.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${rk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),eD="tr",Qfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableRow"}),{className:l,component:i=eD,hover:o=!1,selected:a=!1}=r,s=Kt(r,Xfe),u=ge.useContext(eg),c=Ie({},r,{component:i,hover:o,selected:a,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),d=Kfe(c);return ke.jsx(Zfe,Ie({as:i,ref:n,className:on(d.root,l),role:i===eD?null:"row",ownerState:c},s))}),hm=Qfe,Jfe=Object.freeze(Object.defineProperty({__proto__:null,default:hm,getTableRowUtilityClass:$z,tableRowClasses:rk},Symbol.toStringTag,{value:"Module"})),epe=Qr(ke.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function Nz(e){return yn("MuiTableSortLabel",e)}const tpe=hn("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),tv=tpe,npe=["active","children","className","direction","hideSortIcon","IconComponent"],rpe=e=>{const{classes:t,direction:n,active:r}=e,l={root:["root",r&&"active"],icon:["icon",`iconDirection${Jt(n)}`]};return vn(l,Nz,t)},ape=Et(Tl,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${tv.icon}`]:{opacity:.5}},[`&.${tv.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${tv.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),ope=Et("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${Jt(n.direction)}`]]}})(({theme:e,ownerState:t})=>Ie({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),ipe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableSortLabel"}),{active:l=!1,children:i,className:o,direction:a="asc",hideSortIcon:s=!1,IconComponent:u=epe}=r,c=Kt(r,npe),d=Ie({},r,{active:l,direction:a,hideSortIcon:s,IconComponent:u}),f=rpe(d);return ke.jsxs(ape,Ie({className:on(f.root,o),component:"span",disableRipple:!0,ownerState:d,ref:n},c,{children:[i,s&&!l?null:ke.jsx(ope,{as:u,className:on(f.icon),ownerState:d})]}))}),lpe=ipe,spe=Object.freeze(Object.defineProperty({__proto__:null,default:lpe,getTableSortLabelUtilityClass:Nz,tableSortLabelClasses:tv},Symbol.toStringTag,{value:"Module"}));function upe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function cpe(e,t,n,r={},l=()=>{}){const{ease:i=upe,duration:o=300}=r;let a=null;const s=t[e];let u=!1;const c=()=>{u=!0},d=f=>{if(u){l(new Error("Animation cancelled"));return}a===null&&(a=f);const p=Math.min(1,(f-a)/o);if(t[e]=i(p)*(n-s)+s,p>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(d)};return s===n?(l(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const dpe=["onChange"],fpe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ppe(e){const{onChange:t}=e,n=Kt(e,dpe),r=ge.useRef(),l=ge.useRef(null),i=()=>{r.current=l.current.offsetHeight-l.current.clientHeight};return no(()=>{const o=Hm(()=>{const s=r.current;i(),s!==r.current&&t(r.current)}),a=bl(l.current);return a.addEventListener("resize",o),()=>{o.clear(),a.removeEventListener("resize",o)}},[t]),ge.useEffect(()=>{i(),t(r.current)},[t]),ke.jsx("div",Ie({style:fpe,ref:l},n))}function hpe(e){return yn("MuiTabScrollButton",e)}const mpe=hn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),gpe=["className","slots","slotProps","direction","orientation","disabled"],vpe=e=>{const{classes:t,orientation:n,disabled:r}=e;return vn({root:["root",n,r&&"disabled"]},hpe,t)},ype=Et(Tl,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>Ie({width:40,flexShrink:0,opacity:.8,[`&.${mpe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),bpe=ge.forwardRef(function(t,n){var r,l;const i=pn({props:t,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:s={},direction:u}=i,c=Kt(i,gpe),f=po().direction==="rtl",p=Ie({isRtl:f},i),m=vpe(p),g=(r=a.StartScrollButtonIcon)!=null?r:tk,b=(l=a.EndScrollButtonIcon)!=null?l:nk,v=Ui({elementType:g,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),h=Ui({elementType:b,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return ke.jsx(ype,Ie({component:"div",className:on(m.root,o),ref:n,role:null,ownerState:p,tabIndex:null},c,{children:u==="left"?ke.jsx(g,Ie({},v)):ke.jsx(b,Ie({},h))}))});function xpe(e){return yn("MuiTabs",e)}const nv=hn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),wpe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],tD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,nD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,i0=(e,t,n)=>{let r=!1,l=n(e,t);for(;l;){if(l===e.firstChild){if(r)return;r=!0}const i=l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||i)l=n(e,l);else{l.focus();return}}},_pe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:l,scrollableY:i,centered:o,scrollButtonsHideMobile:a,classes:s}=e;return vn({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",l&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},xpe,s)},Tpe=Et("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nv.scrollButtons}`]:t.scrollButtons},{[`& .${nv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>Ie({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${nv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),kpe=Et("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>Ie({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Spe=Et("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>Ie({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Cpe=Et("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>Ie({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Mpe=Et(ppe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),rD={},Fz=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTabs"}),l=po(),i=l.direction==="rtl",{"aria-label":o,"aria-labelledby":a,action:s,centered:u=!1,children:c,className:d,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:m="primary",onChange:g,orientation:b="horizontal",ScrollButtonComponent:v=bpe,scrollButtons:h="auto",selectionFollowsFocus:y,slots:w={},slotProps:_={},TabIndicatorProps:x={},TabScrollButtonProps:T={},textColor:k="primary",value:S,variant:C="standard",visibleScrollbar:M=!1}=r,O=Kt(r,wpe),D=C==="scrollable",P=b==="vertical",E=P?"scrollTop":"scrollLeft",I=P?"top":"left",A=P?"bottom":"right",F=P?"clientHeight":"clientWidth",j=P?"height":"width",z=Ie({},r,{component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:b,vertical:P,scrollButtons:h,textColor:k,variant:C,visibleScrollbar:M,fixed:!D,hideScrollbar:D&&!M,scrollableX:D&&!P,scrollableY:D&&P,centered:u&&!D,scrollButtonsHideMobile:!p}),B=_pe(z),N=Ui({elementType:w.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:z}),R=Ui({elementType:w.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:z}),[q,Y]=ge.useState(!1),[L,W]=ge.useState(rD),[U,V]=ge.useState(!1),[te,ee]=ge.useState(!1),[H,Z]=ge.useState(!1),[G,X]=ge.useState({overflow:"hidden",scrollbarWidth:0}),Q=new Map,re=ge.useRef(null),ae=ge.useRef(null),ie=()=>{const ye=re.current;let Te;if(ye){const Re=ye.getBoundingClientRect();Te={clientWidth:ye.clientWidth,scrollLeft:ye.scrollLeft,scrollTop:ye.scrollTop,scrollLeftNormalized:TJ(ye,l.direction),scrollWidth:ye.scrollWidth,top:Re.top,bottom:Re.bottom,left:Re.left,right:Re.right}}let Ae;if(ye&&S!==!1){const Re=ae.current.children;if(Re.length>0){const Le=Re[Q.get(S)];Ae=Le?Le.getBoundingClientRect():null}}return{tabsMeta:Te,tabMeta:Ae}},se=yo(()=>{const{tabsMeta:ye,tabMeta:Te}=ie();let Ae=0,Re;if(P)Re="top",Te&&ye&&(Ae=Te.top-ye.top+ye.scrollTop);else if(Re=i?"right":"left",Te&&ye){const $e=i?ye.scrollLeftNormalized+ye.clientWidth-ye.scrollWidth:ye.scrollLeft;Ae=(i?-1:1)*(Te[Re]-ye[Re]+$e)}const Le={[Re]:Ae,[j]:Te?Te[j]:0};if(isNaN(L[Re])||isNaN(L[j]))W(Le);else{const $e=Math.abs(L[Re]-Le[Re]),Fe=Math.abs(L[j]-Le[j]);($e>=1||Fe>=1)&&W(Le)}}),he=(ye,{animation:Te=!0}={})=>{Te?cpe(E,re.current,ye,{duration:l.transitions.duration.standard}):re.current[E]=ye},Se=ye=>{let Te=re.current[E];P?Te+=ye:(Te+=ye*(i?-1:1),Te*=i&&IF()==="reverse"?-1:1),he(Te)},Oe=()=>{const ye=re.current[F];let Te=0;const Ae=Array.from(ae.current.children);for(let Re=0;Reye){Re===0&&(Te=ye);break}Te+=Le[F]}return Te},Pe=()=>{Se(-1*Oe())},Me=()=>{Se(Oe())},ce=ge.useCallback(ye=>{X({overflow:null,scrollbarWidth:ye})},[]),we=()=>{const ye={};ye.scrollbarSizeListener=D?ke.jsx(Mpe,{onChange:ce,className:on(B.scrollableX,B.hideScrollbar)}):null;const Ae=D&&(h==="auto"&&(U||te)||h===!0);return ye.scrollButtonStart=Ae?ke.jsx(v,Ie({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:N},orientation:b,direction:i?"right":"left",onClick:Pe,disabled:!U},T,{className:on(B.scrollButtons,T.className)})):null,ye.scrollButtonEnd=Ae?ke.jsx(v,Ie({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:R},orientation:b,direction:i?"left":"right",onClick:Me,disabled:!te},T,{className:on(B.scrollButtons,T.className)})):null,ye},K=yo(ye=>{const{tabsMeta:Te,tabMeta:Ae}=ie();if(!(!Ae||!Te)){if(Ae[I]Te[A]){const Re=Te[E]+(Ae[A]-Te[A]);he(Re,{animation:ye})}}}),ne=yo(()=>{D&&h!==!1&&Z(!H)});ge.useEffect(()=>{const ye=Hm(()=>{re.current&&se()}),Te=bl(re.current);Te.addEventListener("resize",ye);let Ae;return typeof ResizeObserver<"u"&&(Ae=new ResizeObserver(ye),Array.from(ae.current.children).forEach(Re=>{Ae.observe(Re)})),()=>{ye.clear(),Te.removeEventListener("resize",ye),Ae&&Ae.disconnect()}},[se]),ge.useEffect(()=>{const ye=Array.from(ae.current.children),Te=ye.length;if(typeof IntersectionObserver<"u"&&Te>0&&D&&h!==!1){const Ae=ye[0],Re=ye[Te-1],Le={root:re.current,threshold:.99},$e=qe=>{V(!qe[0].isIntersecting)},Fe=new IntersectionObserver($e,Le);Fe.observe(Ae);const Be=qe=>{ee(!qe[0].isIntersecting)},Ue=new IntersectionObserver(Be,Le);return Ue.observe(Re),()=>{Fe.disconnect(),Ue.disconnect()}}},[D,h,H,c==null?void 0:c.length]),ge.useEffect(()=>{Y(!0)},[]),ge.useEffect(()=>{se()}),ge.useEffect(()=>{K(rD!==L)},[K,L]),ge.useImperativeHandle(s,()=>({updateIndicator:se,updateScrollButtons:ne}),[se,ne]);const de=ke.jsx(Cpe,Ie({},x,{className:on(B.indicator,x.className),ownerState:z,style:Ie({},L,x.style)}));let _e=0;const ue=ge.Children.map(c,ye=>{if(!ge.isValidElement(ye))return null;const Te=ye.props.value===void 0?_e:ye.props.value;Q.set(Te,_e);const Ae=Te===S;return _e+=1,ge.cloneElement(ye,Ie({fullWidth:C==="fullWidth",indicator:Ae&&!q&&de,selected:Ae,selectionFollowsFocus:y,onChange:g,textColor:k,value:Te},_e===1&&S===!1&&!ye.props.tabIndex?{tabIndex:0}:{}))}),pe=ye=>{const Te=ae.current,Ae=Aa(Te).activeElement;if(Ae.getAttribute("role")!=="tab")return;let Le=b==="horizontal"?"ArrowLeft":"ArrowUp",$e=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&i&&(Le="ArrowRight",$e="ArrowLeft"),ye.key){case Le:ye.preventDefault(),i0(Te,Ae,nD);break;case $e:ye.preventDefault(),i0(Te,Ae,tD);break;case"Home":ye.preventDefault(),i0(Te,null,tD);break;case"End":ye.preventDefault(),i0(Te,null,nD);break}},xe=we();return ke.jsxs(Tpe,Ie({className:on(B.root,d),ownerState:z,ref:n,as:f},O,{children:[xe.scrollButtonStart,xe.scrollbarSizeListener,ke.jsxs(kpe,{className:B.scroller,ownerState:z,style:{overflow:G.overflow,[P?`margin${i?"Left":"Right"}`:"marginBottom"]:M?void 0:-G.scrollbarWidth},ref:re,children:[ke.jsx(Spe,{"aria-label":o,"aria-labelledby":a,"aria-orientation":b==="vertical"?"vertical":null,className:B.flexContainer,ownerState:z,onKeyDown:pe,ref:ae,role:"tablist",children:ue}),q&&de]}),xe.scrollButtonEnd]}))});function jz(e){return yn("MuiTextField",e)}const Ppe=hn("MuiTextField",["root"]),Ope=Ppe,Ape=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Dpe={standard:_M,filled:xM,outlined:CM},Epe=e=>{const{classes:t}=e;return vn({root:["root"]},jz,t)},Rpe=Et(Jj,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lpe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTextField"}),{autoComplete:l,autoFocus:i=!1,children:o,className:a,color:s="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:m,id:g,InputLabelProps:b,inputProps:v,InputProps:h,inputRef:y,label:w,maxRows:_,minRows:x,multiline:T=!1,name:k,onBlur:S,onChange:C,onFocus:M,placeholder:O,required:D=!1,rows:P,select:E=!1,SelectProps:I,type:A,value:F,variant:j="outlined"}=r,z=Kt(r,Ape),B=Ie({},r,{autoFocus:i,color:s,disabled:c,error:d,fullWidth:p,multiline:T,required:D,select:E,variant:j}),N=Epe(B),R={};j==="outlined"&&(b&&typeof b.shrink<"u"&&(R.notched=b.shrink),R.label=w),E&&((!I||!I.native)&&(R.id=void 0),R["aria-describedby"]=void 0);const q=Kl(g),Y=m&&q?`${q}-helper-text`:void 0,L=w&&q?`${q}-label`:void 0,W=Dpe[j],U=ke.jsx(W,Ie({"aria-describedby":Y,autoComplete:l,autoFocus:i,defaultValue:u,fullWidth:p,multiline:T,name:k,rows:P,maxRows:_,minRows:x,type:A,value:F,id:q,inputRef:y,onBlur:S,onChange:C,onFocus:M,placeholder:O,inputProps:v},R,h));return ke.jsxs(Rpe,Ie({className:on(N.root,a),disabled:c,error:d,fullWidth:p,ref:n,required:D,color:s,variant:j,ownerState:B},z,{children:[w!=null&&w!==""&&ke.jsx(dz,Ie({htmlFor:q,id:L},b,{children:w})),E?ke.jsx(ub,Ie({"aria-describedby":Y,id:q,labelId:L,value:F,input:U},I,{children:o})):U,m&&ke.jsx(rz,Ie({id:Y},f,{children:m}))]}))}),Ipe=Lpe,$pe=Object.freeze(Object.defineProperty({__proto__:null,default:Ipe,getTextFieldUtilityClass:jz,textFieldClasses:Ope},Symbol.toStringTag,{value:"Module"})),{transitions:jc}=es(),Dl="#ed0500",Npe="#ded5d5",Fpe=es({shape:{borderRadius:5},palette:{primary:{main:Rl[900],light:Rl[200]},secondary:{main:Dl,dark:"#c10400",light:Rl[200]},background:{default:"white",paper:"white"}},components:{MuiLink:{styleOverrides:{root:{transition:jc.create("color",{duration:jc.duration.enteringScreen}),"&:hover":{color:Dl}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:Dl}}},MuiButton:{styleOverrides:{contained:{"&:hover":{background:Rl[800]}},outlined:{"&:hover":{color:Dl,borderColor:Dl,background:"white"}},text:{"&:hover":{color:Dl,borderColor:Dl}}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px","&:hover":{background:Rl[200]}}}},MuiIconButton:{styleOverrides:{root:{transition:jc.create("color",{duration:jc.duration.enteringScreen}),color:Rl[900],"&:hover":{color:Dl}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:jc.create("color",{duration:jc.duration.enteringScreen}),color:Rl[900],"&:hover":{color:Dl},"&.Mui-disabled":{border:"unset",background:Rl[100]}}}},MuiToggleButtonGroup:{defaultProps:{color:"secondary"}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{styleOverrides:{root:{boxShadow:"unset",border:"1px solid",borderColor:Npe}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}});class jpe{constructor(t){du(this,"cachedGraphs");du(this,"cachedWidgets");du(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let n=this.cachedGraphs.get(t);return n!==void 0||(n=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,n)),n}async getAdditionWidgetData(t){let n=this.cachedWidgets.get(t);return n!==void 0||(n=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,n)),n}}const DM=Qe.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function zpe(e){return new jpe(e)}const oy=e=>{const[t,n]=ge.useState(()=>({status:0}));return ge.useEffect(()=>{n({status:1,func:e.func})},[e.func]),t.status===1&&(n(r=>({...r,status:2})),t.func().then(r=>n(l=>({status:3,func:l.func,result:r})))),ke.jsx(Qe.Fragment,{children:t.status===3?e.children?e.children(t.result):ke.jsx("div",{}):ke.jsx(Ia,{textAlign:"center",children:ke.jsx(Kj,{})})})};var rv=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(rv||{});function l0(e){return e.palette.mode==="dark"?_l:wl}function s0(e){return e.palette.mode==="light"?wl:_l}const ak=e=>{const[t,n]=ge.useState({open:!1});return ke.jsxs(nu,{elevation:0,onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),sx:[{color:r=>s0(r)(r.palette.info.main,.6),backgroundColor:r=>l0(r)(r.palette.info.main,.9)},e.data.state==="success"&&{color:r=>s0(r)(r.palette.success.main,.6),backgroundColor:r=>l0(r)(r.palette.success.main,.9)},e.data.state==="warning"&&{color:r=>s0(r)(r.palette.warning.main,.6),backgroundColor:r=>l0(r)(r.palette.warning.main,.9)},e.data.state==="error"&&{color:r=>s0(r)(r.palette.error.main,.6),backgroundColor:r=>l0(r)(r.palette.error.main,.9)}],children:[ke.jsx(pr,{align:"center",variant:"h6",component:"div",children:e.data.value}),ke.jsx(pr,{align:"center",variant:"body1",component:"div",children:e.data.text}),ke.jsx(kM,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??ke.jsx(pr,{padding:1,children:e.data.longText})})]})},zz=e=>ke.jsxs(cM,{severity:e.data.severity,children:[ke.jsx(dM,{children:e.data.title}),e.data.text]}),aD=e=>{const{alertStats:t}=e;return ke.jsx(ak,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:ke.jsx(pr,{sx:{pr:1},children:ke.jsxs("ul",{children:[ke.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),ke.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),ke.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function Bpe(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const Wpe=e=>{const{size:t,ItemWrapper:n}=e,r=e.children.alertsPosition??"row",{id:l,title:i,details:o,content:a,alerts:s,alertStats:u,insights:c}=e.children,d=s===void 0?!1:s.length>0,f=c===void 0?!1:c.length>0,p=ke.jsx(lle,{sx:{border:"1px solid",borderColor:"#d6d6d6",borderRadius:"4px"},elevation:0,children:ke.jsx(fle,{children:ke.jsxs(cr,{container:!0,spacing:1,direction:"column",children:[r==="row"?ke.jsxs(cr,{container:!0,spacing:1,item:!0,children:[ke.jsxs(cr,{item:!0,xs:d&&r==="row"?9:12,children:[i?ke.jsx(pr,{fontWeight:500,variant:"h5",children:i}):ke.jsx("div",{}),ke.jsx("div",{children:a}),o?ke.jsx(pr,{variant:"subtitle1",children:o}):ke.jsx("div",{})]}),d?ke.jsx(cr,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:s?ke.jsxs(Qe.Fragment,{children:[u?ke.jsx(cr,{item:!0,children:ke.jsx(aD,{alertStats:u})}):ke.jsx("div",{}),s.map(m=>ke.jsx(cr,{item:!0,children:ke.jsx(ak,{data:m})}))]}):ke.jsx("div",{})}):ke.jsx("div",{})]}):ke.jsxs(Qe.Fragment,{children:[ke.jsxs(cr,{item:!0,children:[i?ke.jsx(pr,{variant:"h5",children:i}):ke.jsx("div",{}),ke.jsx("div",{children:a}),o?ke.jsx(pr,{variant:"subtitle1",children:o}):ke.jsx("div",{})]}),d?ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(cr,{container:!0,direction:"row",spacing:1,children:s?ke.jsxs(Qe.Fragment,{children:[u?ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(aD,{alertStats:u})}):ke.jsx("div",{}),s.map(m=>ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(ak,{data:m})}))]}):ke.jsx("div",{})})}):ke.jsx("div",{})]}),f?c.map(m=>ke.jsx(cr,{item:!0,xs:!0,sm:!0,md:!0,children:ke.jsx(zz,{data:m})})):ke.jsx("div",{})]})})});return ke.jsx(cr,{item:!0,...Bpe(t),children:n?n({id:l,children:p}):p})},oD=e=>ke.jsxs("div",{children:[ke.jsx(pr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),ke.jsx(pr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),qpe=e=>ke.jsx(Qe.Fragment,{children:e.counters.length===1?ke.jsx(oD,{...e.counters[0]}):ke.jsx(cr,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map((t,n)=>ke.jsx(cr,{item:!0,xs:!0,component:Ia,height:"100%",children:ke.jsx(Ia,{children:ke.jsx(oD,{...t})})},n))})}),Upe=e=>ke.jsxs("div",{children:[ke.jsxs(Ia,{display:"flex",alignItems:"center",children:[ke.jsx(Ia,{width:"100%",mr:1,children:ke.jsx(pz,{variant:"determinate",value:e.value/e.maxValue*100})}),ke.jsx(Ia,{minWidth:35,children:ke.jsx(pr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),ke.jsx(Ia,{width:"100%",children:ke.jsx(pr,{variant:"body2",color:"textSecondary",children:e.details??""})})]});var Bz={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(n,r){e.exports=r()})(self,function(){return function(){var n={98847:function(i,o,a){var s=a(71828),u={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var c in u){var d=c.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");s.addStyleRule(d,u[c])}},98222:function(i,o,a){i.exports=a(82887)},27206:function(i,o,a){i.exports=a(60822)},5224:function(i,o,a){i.exports=a(83832)},59509:function(i,o,a){i.exports=a(72201)},49866:function(i,o,a){i.exports=a(99442)},19548:function(i,o,a){i.exports=a(8729)},61039:function(i,o,a){i.exports=a(14382)},24296:function(i,o,a){i.exports=a(43102)},58872:function(i,o,a){i.exports=a(92165)},65591:function(i,o,a){i.exports=a(36071)},69738:function(i,o,a){i.exports=a(43905)},92650:function(i,o,a){i.exports=a(35902)},73434:function(i,o,a){i.exports=a(94507)},760:function(i,o,a){var s=a(19548);s.register([a(27206),a(5224),a(58872),a(65591),a(69738),a(92650),a(49866),a(25743),a(6197),a(73434),a(54201),a(98222),a(61039),a(24296),a(66398),a(59509)]),i.exports=s},54201:function(i,o,a){i.exports=a(58810)},25743:function(i,o,a){i.exports=a(52979)},66398:function(i,o,a){i.exports=a(32275)},6197:function(i,o,a){i.exports=a(47462)},82884:function(i){i.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(i,o,a){var s=a(82884),u=a(41940),c=a(85555),d=a(44467).templatedArray;a(24695),i.exports=d("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",c.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",c.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:u({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(i,o,a){var s=a(71828),u=a(89298),c=a(92605).draw;function d(p){var m=p._fullLayout;s.filterVisible(m.annotations).forEach(function(g){var b=u.getFromId(p,g.xref),v=u.getFromId(p,g.yref),h=u.getRefType(g.xref),y=u.getRefType(g.yref);g._extremes={},h==="range"&&f(g,b),y==="range"&&f(g,v)})}function f(p,m){var g,b=m._id,v=b.charAt(0),h=p[v],y=p["a"+v],w=p[v+"ref"],_=p["a"+v+"ref"],x=p["_"+v+"padplus"],T=p["_"+v+"padminus"],k={x:1,y:-1}[v]*p[v+"shift"],S=3*p.arrowsize*p.arrowwidth||0,C=S+k,M=S-k,O=3*p.startarrowsize*p.arrowwidth||0,D=O+k,P=O-k;if(_===w){var E=u.findExtremes(m,[m.r2c(h)],{ppadplus:C,ppadminus:M}),I=u.findExtremes(m,[m.r2c(y)],{ppadplus:Math.max(x,D),ppadminus:Math.max(T,P)});g={min:[E.min[0],I.min[0]],max:[E.max[0],I.max[0]]}}else D=y?D+y:D,P=y?P-y:P,g=u.findExtremes(m,[m.r2c(h)],{ppadplus:Math.max(x,C,D),ppadminus:Math.max(T,M,P)});p._extremes[b]=g}i.exports=function(p){var m=p._fullLayout;if(s.filterVisible(m.annotations).length&&p._fullData.length)return s.syncOrAsync([c,d],p)}},44317:function(i,o,a){var s=a(71828),u=a(73972),c=a(44467).arrayEditor;function d(p,m){var g,b,v,h,y,w,_,x=p._fullLayout.annotations,T=[],k=[],S=[],C=(m||[]).length;for(g=0;g0||g.explicitOff.length>0},onClick:function(p,m){var g,b,v=d(p,m),h=v.on,y=v.off.concat(v.explicitOff),w={},_=p._fullLayout.annotations;if(h.length||y.length){for(g=0;g.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var ye=!1,Te=["x","y"],Ae=0;Ae1)&&(Xe===qe?((Ze=ot.r2fraction(C["a"+Ue]))<0||Ze>1)&&(ye=!0):ye=!0),Re=ot._offset+ot.r2p(C[Ue]),Fe=.5}else{var ut=St==="domain";Ue==="x"?($e=C[Ue],Re=ut?ot._offset+ot._length*$e:Re=F.l+F.w*$e):($e=1-C[Ue],Re=ut?ot._offset+ot._length*$e:Re=F.t+F.h*$e),Fe=C.showarrow?.5:$e}if(C.showarrow){it.head=Re;var ht=C["a"+Ue];if(Be=dt*xe(.5,C.xanchor)-vt*xe(.5,C.yanchor),Xe===qe){var Rt=p.getRefType(Xe);Rt==="domain"?(Ue==="y"&&(ht=1-ht),it.tail=ot._offset+ot._length*ht):Rt==="paper"?Ue==="y"?(ht=1-ht,it.tail=F.t+F.h*ht):it.tail=F.l+F.w*ht:it.tail=ot._offset+ot.r2p(ht),Le=Be}else it.tail=Re+ht,Le=Be+ht;it.text=it.tail+Be;var Ct=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=d.constrain(it.head,1,Ct-1)),Xe==="pixel"){var Wt=-Math.max(it.tail-3,it.text),_t=Math.min(it.tail+3,it.text)-Ct;Wt>0?(it.tail+=Wt,it.text+=Wt):_t>0&&(it.tail-=_t,it.text-=_t)}it.tail+=tt,it.head+=tt}else Le=Be=We*xe(Fe,ze),it.text=Re+Be;it.text+=tt,Be+=tt,Le+=tt,C["_"+Ue+"padplus"]=We/2+Le,C["_"+Ue+"padminus"]=We/2-Le,C["_"+Ue+"size"]=We,C["_"+Ue+"shift"]=Be}if(ye)ee.remove();else{var be=0,Ce=0;if(C.align!=="left"&&(be=(de-K)*(C.align==="center"?.5:1)),C.valign!=="top"&&(Ce=(_e-ne)*(C.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:G+be-1,y:G+Ce}).call(g.setClipUrl,Q?q:null,S);else{var Ge=G+Ce-we.top,He=G+be-we.left;se.call(v.positionText,He,Ge).call(g.setClipUrl,Q?q:null,S)}re.select("rect").call(g.setRect,G,G,de,_e),X.call(g.setRect,H/2,H/2,ue-H,pe-H),ee.call(g.setTranslate,Math.round(Y.x.text-ue/2),Math.round(Y.y.text-pe/2)),U.attr({transform:"rotate("+L+","+Y.x.text+","+Y.y.text+")"});var et,Ke=function(Ye,nt){W.selectAll(".annotation-arrow-g").remove();var ct=Y.x.head,yt=Y.y.head,rt=Y.x.tail+Ye,Ft=Y.y.tail+nt,Yt=Y.x.text+Ye,Mt=Y.y.text+nt,jt=d.rotationXYMatrix(L,Yt,Mt),Lt=d.apply2DTransform(jt),gt=d.apply2DTransform2(jt),mt=+X.attr("width"),xt=+X.attr("height"),Ut=Yt-.5*mt,It=Ut+mt,zt=Mt-.5*xt,kt=zt+xt,Ot=[[Ut,zt,Ut,kt],[Ut,kt,It,kt],[It,kt,It,zt],[It,zt,Ut,zt]].map(gt);if(!Ot.reduce(function(dn,gn){return dn^!!d.segmentsIntersect(ct,yt,ct+1e6,yt+1e6,gn[0],gn[1],gn[2],gn[3])},!1)){Ot.forEach(function(dn){var gn=d.segmentsIntersect(rt,Ft,ct,yt,dn[0],dn[1],dn[2],dn[3]);gn&&(rt=gn.x,Ft=gn.y)});var At=C.arrowwidth,Nt=C.arrowcolor,$t=C.arrowside,Bt=W.append("g").style({opacity:m.opacity(Nt)}).classed("annotation-arrow-g",!0),Xt=Bt.append("path").attr("d","M"+rt+","+Ft+"L"+ct+","+yt).style("stroke-width",At+"px").call(m.stroke,m.rgb(Nt));if(_(Xt,$t,C),j.annotationPosition&&Xt.node().parentNode&&!O){var Zt=ct,qt=yt;if(C.standoff){var Ht=Math.sqrt(Math.pow(ct-rt,2)+Math.pow(yt-Ft,2));Zt+=C.standoff*(rt-ct)/Ht,qt+=C.standoff*(Ft-yt)/Ht}var sn,xn,mn=Bt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(rt-Zt)+","+(Ft-qt),transform:f(Zt,qt)}).style("stroke-width",At+6+"px").call(m.stroke,"rgba(0,0,0,0)").call(m.fill,"rgba(0,0,0,0)");y.init({element:mn.node(),gd:S,prepFn:function(){var dn=g.getTranslate(ee);sn=dn.x,xn=dn.y,D&&D.autorange&&B(D._name+".autorange",!0),P&&P.autorange&&B(P._name+".autorange",!0)},moveFn:function(dn,gn){var en=Lt(sn,xn),kn=en[0]+dn,un=en[1]+gn;ee.call(g.setTranslate,kn,un),N("x",T(D,dn,"x",F,C)),N("y",T(P,gn,"y",F,C)),C.axref===C.xref&&N("ax",T(D,dn,"ax",F,C)),C.ayref===C.yref&&N("ay",T(P,gn,"ay",F,C)),Bt.attr("transform",f(dn,gn)),U.attr({transform:"rotate("+L+","+kn+","+un+")"})},doneFn:function(){u.call("_guiRelayout",S,R());var dn=document.querySelector(".js-notes-box-panel");dn&&dn.redraw(dn.selectedObj)}})}}};C.showarrow&&Ke(0,0),V&&y.init({element:ee.node(),gd:S,prepFn:function(){et=U.attr("transform")},moveFn:function(Ye,nt){var ct="pointer";if(C.showarrow)C.axref===C.xref?N("ax",T(D,Ye,"ax",F,C)):N("ax",C.ax+Ye),C.ayref===C.yref?N("ay",T(P,nt,"ay",F.w,C)):N("ay",C.ay+nt),Ke(Ye,nt);else{if(O)return;var yt,rt;if(D)yt=T(D,Ye,"x",F,C);else{var Ft=C._xsize/F.w,Yt=C.x+(C._xshift-C.xshift)/F.w-Ft/2;yt=y.align(Yt+Ye/F.w,Ft,0,1,C.xanchor)}if(P)rt=T(P,nt,"y",F,C);else{var Mt=C._ysize/F.h,jt=C.y-(C._yshift+C.yshift)/F.h-Mt/2;rt=y.align(jt-nt/F.h,Mt,0,1,C.yanchor)}N("x",yt),N("y",rt),D&&P||(ct=y.getCursor(D?.5:yt,P?.5:rt,C.xanchor,C.yanchor))}U.attr({transform:f(Ye,nt)+et}),h(ee,ct)},clickFn:function(Ye,nt){C.captureevents&&S.emit("plotly_clickannotation",he(nt))},doneFn:function(){h(ee),u.call("_guiRelayout",S,R());var Ye=document.querySelector(".js-notes-box-panel");Ye&&Ye.redraw(Ye.selectedObj)}})}}}i.exports={draw:function(S){var C=S._fullLayout;C._infolayer.selectAll(".annotation").remove();for(var M=0;M=0,O=b.indexOf("end")>=0,D=T.backoff*S+v.standoff,P=k.backoff*C+v.startstandoff;if(x.nodeName==="line"){h={x:+g.attr("x1"),y:+g.attr("y1")},y={x:+g.attr("x2"),y:+g.attr("y2")};var E=h.x-y.x,I=h.y-y.y;if(_=(w=Math.atan2(I,E))+Math.PI,D&&P&&D+P>Math.sqrt(E*E+I*I))return void W();if(D){if(D*D>E*E+I*I)return void W();var A=D*Math.cos(w),F=D*Math.sin(w);y.x+=A,y.y+=F,g.attr({x2:y.x,y2:y.y})}if(P){if(P*P>E*E+I*I)return void W();var j=P*Math.cos(w),z=P*Math.sin(w);h.x-=j,h.y-=z,g.attr({x1:h.x,y1:h.y})}}else if(x.nodeName==="path"){var B=x.getTotalLength(),N="";if(B1){v=!0;break}}v?d.fullLayout._infolayer.select(".annotation-"+d.id+'[data-index="'+g+'"]').remove():(b._pdata=u(d.glplot.cameraParams,[f.xaxis.r2l(b.x)*p[0],f.yaxis.r2l(b.y)*p[1],f.zaxis.r2l(b.z)*p[2]]),s(d.graphDiv,b,g,d.id,b._xa,b._ya))}}},2468:function(i,o,a){var s=a(73972),u=a(71828);i.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:a(26997)}}},layoutAttributes:a(26997),handleDefaults:a(20226),includeBasePlot:function(c,d){var f=s.subplotsRegistry.gl3d;if(f)for(var p=f.attrRegex,m=Object.keys(c),g=0;g=0)))return b;if(_===3)y[_]>1&&(y[_]=1);else if(y[_]>=1)return b}var x=Math.round(255*y[0])+", "+Math.round(255*y[1])+", "+Math.round(255*y[2]);return w?"rgba("+x+", "+y[3]+")":"rgb("+x+")"}d.tinyRGB=function(b){var v=b.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},d.rgb=function(b){return d.tinyRGB(s(b))},d.opacity=function(b){return b?s(b).getAlpha():0},d.addOpacity=function(b,v){var h=s(b).toRgb();return"rgba("+Math.round(h.r)+", "+Math.round(h.g)+", "+Math.round(h.b)+", "+v+")"},d.combine=function(b,v){var h=s(b).toRgb();if(h.a===1)return s(b).toRgbString();var y=s(v||m).toRgb(),w=y.a===1?y:{r:255*(1-y.a)+y.r*y.a,g:255*(1-y.a)+y.g*y.a,b:255*(1-y.a)+y.b*y.a},_={r:w.r*(1-h.a)+h.r*h.a,g:w.g*(1-h.a)+h.g*h.a,b:w.b*(1-h.a)+h.b*h.a};return s(_).toRgbString()},d.contrast=function(b,v,h){var y=s(b);return y.getAlpha()!==1&&(y=s(d.combine(b,m))),(y.isDark()?v?y.lighten(v):m:h?y.darken(h):p).toString()},d.stroke=function(b,v){var h=s(v);b.style({stroke:d.tinyRGB(h),"stroke-opacity":h.getAlpha()})},d.fill=function(b,v){var h=s(v);b.style({fill:d.tinyRGB(h),"fill-opacity":h.getAlpha()})},d.clean=function(b){if(b&&typeof b=="object"){var v,h,y,w,_=Object.keys(b);for(v=0;v<_.length;v++)if(w=b[y=_[v]],y.substr(y.length-5)==="color")if(Array.isArray(w))for(h=0;h0?_t>=et:_t<=et));be++)_t>Ye&&_t0?_t>=et:_t<=et));be++)_t>Wt[0]&&_t1){var vt=Math.pow(10,Math.floor(Math.log(dt)/Math.LN10));ot*=vt*m.roundUp(dt/vt,[2,5,10]),(Math.abs(K.start)/K.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=ot}qe.domain=R?[Be+G/se.h,Be+ye-G/se.h]:[Be+Z/se.w,Be+ye-Z/se.w],qe.setScale(),z.attr("transform",g(Math.round(se.l),Math.round(se.t)));var We,ze=z.select("."+P.cbtitleunshift).attr("transform",g(-Math.round(se.l),-Math.round(se.t))),tt=qe.ticklabelposition,it=qe.title.font.size,St=z.select("."+P.cbaxis),Ze=0,ut=0;function ht(Rt,Ct){var Wt={propContainer:qe,propName:B._propPrefix+"title",traceIndex:B._traceIndex,_meta:B._meta,placeholder:ie._dfltTitle.colorbar,containerGroup:z.select("."+P.cbtitle)},_t=Rt.charAt(0)==="h"?Rt.substr(1):"h"+Rt;z.selectAll("."+_t+",."+_t+"-math-group").remove(),w.draw(N,Rt,b(Wt,Ct||{}))}return m.syncOrAsync([c.previousPromises,function(){var Rt,Ct;(R&&Xe||!R&&!Xe)&&(Pe==="top"&&(Rt=Z+se.l+Te*X,Ct=G+se.t+Ae*(1-Be-ye)+3+.75*it),Pe==="bottom"&&(Rt=Z+se.l+Te*X,Ct=G+se.t+Ae*(1-Be)-3-.25*it),Pe==="right"&&(Ct=G+se.t+Ae*Q+3+.75*it,Rt=Z+se.l+Te*Be),ht(qe._id+"title",{attributes:{x:Rt,y:Ct,"text-anchor":R?"start":"middle"}}))},function(){if(!R&&!Xe||R&&Xe){var Rt,Ct=z.select("."+P.cbtitle),Wt=Ct.select("text"),_t=[-U/2,U/2],be=Ct.select(".h"+qe._id+"title-math-group").node(),Ce=15.6;if(Wt.node()&&(Ce=parseInt(Wt.node().style.fontSize,10)*M),be?(Rt=h.bBox(be),ut=Rt.width,(Ze=Rt.height)>Ce&&(_t[1]-=(Ze-Ce)/2)):Wt.node()&&!Wt.classed(P.jsPlaceholder)&&(Rt=h.bBox(Wt.node()),ut=Rt.width,Ze=Rt.height),R){if(Ze){if(Ze+=5,Pe==="top")qe.domain[1]-=Ze/se.h,_t[1]*=-1;else{qe.domain[0]+=Ze/se.h;var Ge=_.lineCount(Wt);_t[1]+=(1-Ge)*Ce}Ct.attr("transform",g(_t[0],_t[1])),qe.setScale()}}else ut&&(Pe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Ct.attr("transform",g(_t[0],_t[1])),qe.setScale())}z.selectAll("."+P.cbfills+",."+P.cblines).attr("transform",R?g(0,Math.round(se.h*(1-qe.domain[1]))):g(Math.round(se.w*qe.domain[0]),0)),St.attr("transform",R?g(0,Math.round(-se.t)):g(Math.round(-se.l),0));var He=z.select("."+P.cbfills).selectAll("rect."+P.cbfill).attr("style","").data(de);He.enter().append("rect").classed(P.cbfill,!0).attr("style",""),He.exit().remove();var et=Me.map(qe.c2p).map(Math.round).sort(function(yt,rt){return yt-rt});He.each(function(yt,rt){var Ft=[rt===0?Me[0]:(de[rt]+de[rt-1])/2,rt===de.length-1?Me[1]:(de[rt]+de[rt+1])/2].map(qe.c2p).map(Math.round);R&&(Ft[1]=m.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,et[0],et[1]));var Yt=s.select(this).attr(R?"x":"y",Re).attr(R?"y":"x",s.min(Ft)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(s.max(Ft)-s.min(Ft),2));if(B._fillgradient)h.gradient(Yt,N,B._id,R?"vertical":"horizontalreversed",B._fillgradient,"fill");else{var Mt=we(yt).replace("e-","");Yt.attr("fill",u(Mt).toHexString())}});var Ke=z.select("."+P.cblines).selectAll("path."+P.cbline).data(Se.color&&Se.width?_e:[]);Ke.enter().append("path").classed(P.cbline,!0),Ke.exit().remove(),Ke.each(function(yt){var rt=Re,Ft=Math.round(qe.c2p(yt))+Se.width/2%1;s.select(this).attr("d","M"+(R?rt+","+Ft:Ft+","+rt)+(R?"h":"v")+ue).call(h.lineGroupStyle,Se.width,ce(yt),Se.dash)}),St.selectAll("g."+qe._id+"tick,path").remove();var Ye=Re+ue+(U||0)/2-(B.ticks==="outside"?1:0),nt=f.calcTicks(qe),ct=f.getTickSigns(qe)[2];return f.drawTicks(N,qe,{vals:qe.ticks==="inside"?f.clipEnds(qe,nt):nt,layer:St,path:f.makeTickPath(qe,Ye,ct),transFn:f.makeTransTickFn(qe)}),f.drawLabels(N,qe,{vals:nt,layer:St,transFn:f.makeTransTickLabelFn(qe),labelFns:f.makeLabelFns(qe,Ye)})},function(){if(R&&!Xe||!R&&Xe){var Rt,Ct,Wt=qe.position||0,_t=qe._offset+qe._length/2;if(Pe==="right")Ct=_t,Rt=se.l+Te*Wt+10+it*(qe.showticklabels?1:.5);else if(Rt=_t,Pe==="bottom"&&(Ct=se.t+Ae*Wt+10+(tt.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&B.ticklen||0)),Pe==="top"){var be=Oe.text.split("
").length;Ct=se.t+Ae*Wt+10-ue-M*it*be}ht((R?"h":"v")+qe._id+"title",{avoid:{selection:s.select(N).selectAll("g."+qe._id+"tick"),side:Pe,offsetTop:R?0:se.t,offsetLeft:R?se.l:0,maxShift:R?ie.width:ie.height},attributes:{x:Rt,y:Ct,"text-anchor":"middle"},transform:{rotate:R?-90:0,offset:0}})}},c.previousPromises,function(){var Rt,Ct=ue+U/2;tt.indexOf("inside")===-1&&(Rt=h.bBox(St.node()),Ct+=R?Rt.width:Rt.height),We=ze.select("text");var Wt=0,_t=R&&Pe==="top",be=!R&&Pe==="right",Ce=0;if(We.node()&&!We.classed(P.jsPlaceholder)){var Ge,He=ze.select(".h"+qe._id+"title-math-group").node();He&&(R&&Xe||!R&&!Xe)?(Wt=(Rt=h.bBox(He)).width,Ge=Rt.height):(Wt=(Rt=h.bBox(ze.node())).right-se.l-(R?Re:Ue),Ge=Rt.bottom-se.t-(R?Ue:Re),R||Pe!=="top"||(Ct+=Rt.height,Ce=Rt.height)),be&&(We.attr("transform",g(Wt/2+it/2,0)),Wt*=2),Ct=Math.max(Ct,R?Wt:Ge)}var et=2*(R?Z:G)+Ct+V+U/2,Ke=0;!R&&Oe.text&&H==="bottom"&&Q<=0&&(et+=Ke=et/2,Ce+=Ke),ie._hColorbarMoveTitle=Ke,ie._hColorbarMoveCBTitle=Ce;var Ye=V+U,nt=(R?Re:Ue)-Ye/2-(R?Z:0),ct=(R?Ue:Re)-(R?xe:G+Ce-Ke);z.select("."+P.cbbg).attr("x",nt).attr("y",ct).attr(R?"width":"height",Math.max(et-Ke,2)).attr(R?"height":"width",Math.max(xe+Ye,2)).call(y.fill,te).call(y.stroke,B.bordercolor).style("stroke-width",V);var yt=be?Math.max(Wt-10,0):0;z.selectAll("."+P.cboutline).attr("x",(R?Re:Ue+Z)+yt).attr("y",(R?Ue+G-xe:Re)+(_t?Ze:0)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(xe-(R?2*G+Ze:2*Z+yt),2)).call(y.stroke,B.outlinecolor).style({fill:"none","stroke-width":U});var rt=R?Le*et:0,Ft=R?0:(1-$e)*et-Ce;if(rt=ae?se.l-rt:-rt,Ft=re?se.t-Ft:-Ft,z.attr("transform",g(rt,Ft)),!R&&(V||u(te).getAlpha()&&!u.equals(ie.paper_bgcolor,te))){var Yt=St.selectAll("text"),Mt=Yt[0].length,jt=z.select("."+P.cbbg).node(),Lt=h.bBox(jt),gt=h.getTranslate(z);Yt.each(function($t,Bt){var Xt=Mt-1;if(Bt===0||Bt===Xt){var Zt,qt=h.bBox(this),Ht=h.getTranslate(this);if(Bt===Xt){var sn=qt.right+Ht.x;(Zt=Lt.right+gt.x+Ue-V-2+X-sn)>0&&(Zt=0)}else if(Bt===0){var xn=qt.left+Ht.x;(Zt=Lt.left+gt.x+Ue+V+2-xn)<0&&(Zt=0)}Zt&&(Mt<3?this.setAttribute("transform","translate("+Zt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var mt={},xt=O[ee],Ut=D[ee],It=O[H],zt=D[H],kt=et-ue;R?(Y==="pixels"?(mt.y=Q,mt.t=xe*It,mt.b=xe*zt):(mt.t=mt.b=0,mt.yt=Q+q*It,mt.yb=Q-q*zt),W==="pixels"?(mt.x=X,mt.l=et*xt,mt.r=et*Ut):(mt.l=kt*xt,mt.r=kt*Ut,mt.xl=X-L*xt,mt.xr=X+L*Ut)):(Y==="pixels"?(mt.x=X,mt.l=xe*xt,mt.r=xe*Ut):(mt.l=mt.r=0,mt.xl=X+q*xt,mt.xr=X-q*Ut),W==="pixels"?(mt.y=1-Q,mt.t=et*It,mt.b=et*zt):(mt.t=kt*It,mt.b=kt*zt,mt.yt=Q-L*It,mt.yb=Q+L*zt));var Ot=B.y<.5?"b":"t",At=B.x<.5?"l":"r";N._fullLayout._reservedMargin[B._id]={};var Nt={r:ie.width-nt-rt,l:nt+mt.r,b:ie.height-ct-Ft,t:ct+mt.b};ae&&re?c.autoMargin(N,B._id,mt):ae?N._fullLayout._reservedMargin[B._id][Ot]=Nt[Ot]:re||R?N._fullLayout._reservedMargin[B._id][At]=Nt[At]:N._fullLayout._reservedMargin[B._id][Ot]=Nt[Ot]}],N)}(F,A,E);j&&j.then&&(E._promises||[]).push(j),E._context.edits.colorbarPosition&&function(z,B,N){var R,q,Y,L=B.orientation==="v",W=N._fullLayout._size;p.init({element:z.node(),gd:N,prepFn:function(){R=z.attr("transform"),v(z)},moveFn:function(U,V){z.attr("transform",R+g(U,V)),q=p.align((L?B._uFrac:B._vFrac)+U/W.w,L?B._thickFrac:B._lenFrac,0,1,B.xanchor),Y=p.align((L?B._vFrac:1-B._uFrac)-V/W.h,L?B._lenFrac:B._thickFrac,0,1,B.yanchor);var te=p.getCursor(q,Y,B.xanchor,B.yanchor);v(z,te)},doneFn:function(){if(v(z),q!==void 0&&Y!==void 0){var U={};U[B._propPrefix+"x"]=q,U[B._propPrefix+"y"]=Y,B._traceIndex!==void 0?d.call("_guiRestyle",N,U,B._traceIndex):d.call("_guiRelayout",N,U)}}})}(F,A,E)}),I.exit().each(function(A){c.autoMargin(E,A._id)}).remove(),I.order()}}},76228:function(i,o,a){var s=a(71828);i.exports=function(u){return s.isPlainObject(u.colorbar)}},12311:function(i,o,a){i.exports={moduleType:"component",name:"colorbar",attributes:a(63583),supplyDefaults:a(62499),draw:a(98981).draw,hasColorbar:a(76228)}},50693:function(i,o,a){var s=a(63583),u=a(30587).counter,c=a(78607),d=a(63282).scales;function f(p){return"`"+p+"`"}c(d),i.exports=function(p,m){p=p||"";var g,b=(m=m||{}).cLetter||"c",v=("onlyIfNumerical"in m&&m.onlyIfNumerical,"noScale"in m?m.noScale:p==="marker.line"),h="showScaleDflt"in m?m.showScaleDflt:b==="z",y=typeof m.colorscaleDflt=="string"?d[m.colorscaleDflt]:null,w=m.editTypeOverride||"",_=p?p+".":"";"colorAttr"in m?(g=m.colorAttr,m.colorAttr):f(_+(g={z:"z",c:"color"}[b]));var x=b+"auto",T=b+"min",k=b+"max",S=b+"mid",C={};C[T]=C[k]=void 0;var M={};M[x]=!1;var O={};return g==="color"&&(O.color={valType:"color",arrayOk:!0,editType:w||"style"},m.anim&&(O.color.anim=!0)),O[x]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:C},O[T]={valType:"number",dflt:null,editType:w||"plot",impliedEdits:M},O[k]={valType:"number",dflt:null,editType:w||"plot",impliedEdits:M},O[S]={valType:"number",dflt:null,editType:"calc",impliedEdits:C},O.colorscale={valType:"colorscale",editType:"calc",dflt:y,impliedEdits:{autocolorscale:!1}},O.autocolorscale={valType:"boolean",dflt:m.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},O.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(O.showscale={valType:"boolean",dflt:h,editType:"calc"},O.colorbar=s),m.noColorAxis||(O.coloraxis={valType:"subplotid",regex:u("coloraxis"),dflt:null,editType:"calc"}),O}},78803:function(i,o,a){var s=a(92770),u=a(71828),c=a(52075).extractOpts;i.exports=function(d,f,p){var m,g=d._fullLayout,b=p.vals,v=p.containerStr,h=v?u.nestedProperty(f,v).get():f,y=c(h),w=y.auto!==!1,_=y.min,x=y.max,T=y.mid,k=function(){return u.aggNums(Math.min,null,b)},S=function(){return u.aggNums(Math.max,null,b)};_===void 0?_=k():w&&(_=h._colorAx&&s(_)?Math.min(_,k()):k()),x===void 0?x=S():w&&(x=h._colorAx&&s(x)?Math.max(x,S()):S()),w&&T!==void 0&&(x-T>T-_?_=T-(x-T):x-T=0?g.colorscale.sequential:g.colorscale.sequentialminus,y._sync("colorscale",m))}},33046:function(i,o,a){var s=a(71828),u=a(52075).hasColorscale,c=a(52075).extractOpts;i.exports=function(d,f){function p(w,_){var x=w["_"+_];x!==void 0&&(w[_]=x)}function m(w,_){var x=_.container?s.nestedProperty(w,_.container).get():w;if(x)if(x.coloraxis)x._colorAx=f[x.coloraxis];else{var T=c(x),k=T.auto;(k||T.min===void 0)&&p(x,_.min),(k||T.max===void 0)&&p(x,_.max),T.autocolorscale&&p(x,"colorscale")}}for(var g=0;g=0;k--,S++){var C=_[k];T[S]=[1-C[0],C[1]]}return T}function y(_,x){x=x||{};for(var T=_.domain,k=_.range,S=k.length,C=new Array(S),M=0;M1.3333333333333333-p?f:p}},70461:function(i,o,a){var s=a(71828),u=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];i.exports=function(c,d,f,p){return c=f==="left"?0:f==="center"?1:f==="right"?2:s.constrain(Math.floor(3*c),0,2),d=p==="bottom"?0:p==="middle"?1:p==="top"?2:s.constrain(Math.floor(3*d),0,2),u[d][c]}},64505:function(i,o){o.selectMode=function(a){return a==="lasso"||a==="select"},o.drawMode=function(a){return a==="drawclosedpath"||a==="drawopenpath"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.openMode=function(a){return a==="drawline"||a==="drawopenpath"},o.rectMode=function(a){return a==="select"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.freeMode=function(a){return a==="lasso"||a==="drawclosedpath"||a==="drawopenpath"},o.selectingOrDrawing=function(a){return o.freeMode(a)||o.rectMode(a)}},28569:function(i,o,a){var s=a(48956),u=a(57035),c=a(38520),d=a(71828).removeElement,f=a(85555),p=i.exports={};p.align=a(92807),p.getCursor=a(70461);var m=a(26041);function g(){var v=document.createElement("div");v.className="dragcover";var h=v.style;return h.position="fixed",h.left=0,h.right=0,h.top=0,h.bottom=0,h.zIndex=999999999,h.background="none",document.body.appendChild(v),v}function b(v){return s(v.changedTouches?v.changedTouches[0]:v,document.body)}p.unhover=m.wrapped,p.unhoverRaw=m.raw,p.init=function(v){var h,y,w,_,x,T,k,S,C=v.gd,M=1,O=C._context.doubleClickDelay,D=v.element;C._mouseDownTime||(C._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=E,c?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=E,D.addEventListener("touchstart",E,{passive:!1})):D.ontouchstart=E;var P=v.clampFn||function(F,j,z){return Math.abs(F)O&&(M=Math.max(M-1,1)),C._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(M,T),!S){var j;try{j=new MouseEvent("click",F)}catch{var z=b(F);(j=document.createEvent("MouseEvents")).initMouseEvent("click",F.bubbles,F.cancelable,F.view,F.detail,F.screenX,F.screenY,z[0],z[1],F.ctrlKey,F.altKey,F.shiftKey,F.metaKey,F.button,F.relatedTarget)}k.dispatchEvent(j)}C._dragging=!1,C._dragged=!1}else C._dragged=!1}},p.coverSlip=g},26041:function(i,o,a){var s=a(11086),u=a(79990),c=a(24401).getGraphDiv,d=a(26675),f=i.exports={};f.wrapped=function(p,m,g){(p=c(p))._fullLayout&&u.clear(p._fullLayout._uid+d.HOVERID),f.raw(p,m,g)},f.raw=function(p,m){var g=p._fullLayout,b=p._hoverdata;m||(m={}),m.target&&!p._dragged&&s.triggerHandler(p,"plotly_beforehover",m)===!1||(g._hoverlayer.selectAll("g").remove(),g._hoverlayer.selectAll("line").remove(),g._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,m.target&&b&&p.emit("plotly_unhover",{event:m,points:b}))}},79952:function(i,o){o.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},o.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(i,o,a){var s=a(39898),u=a(71828),c=u.numberFormat,d=a(92770),f=a(84267),p=a(73972),m=a(7901),g=a(21081),b=u.strTranslate,v=a(63893),h=a(77922),y=a(18783).LINE_SPACING,w=a(37822).DESELECTDIM,_=a(34098),x=a(39984),T=a(23469).appendArrayPointValue,k=i.exports={};function S(ce,we,K){var ne=we.fillpattern,de=ne&&k.getPatternAttr(ne.shape,0,"");if(de){var _e=k.getPatternAttr(ne.bgcolor,0,null),ue=k.getPatternAttr(ne.fgcolor,0,null),pe=ne.fgopacity,xe=k.getPatternAttr(ne.size,0,8),ye=k.getPatternAttr(ne.solidity,0,.3),Te=we.uid;k.pattern(ce,"point",K,Te,de,xe,ye,void 0,ne.fillmode,_e,ue,pe)}else we.fillcolor&&ce.call(m.fill,we.fillcolor)}k.font=function(ce,we,K,ne){u.isPlainObject(we)&&(ne=we.color,K=we.size,we=we.family),we&&ce.style("font-family",we),K+1&&ce.style("font-size",K+"px"),ne&&ce.call(m.fill,ne)},k.setPosition=function(ce,we,K){ce.attr("x",we).attr("y",K)},k.setSize=function(ce,we,K){ce.attr("width",we).attr("height",K)},k.setRect=function(ce,we,K,ne,de){ce.call(k.setPosition,we,K).call(k.setSize,ne,de)},k.translatePoint=function(ce,we,K,ne){var de=K.c2p(ce.x),_e=ne.c2p(ce.y);return!!(d(de)&&d(_e)&&we.node())&&(we.node().nodeName==="text"?we.attr("x",de).attr("y",_e):we.attr("transform",b(de,_e)),!0)},k.translatePoints=function(ce,we,K){ce.each(function(ne){var de=s.select(this);k.translatePoint(ne,de,we,K)})},k.hideOutsideRangePoint=function(ce,we,K,ne,de,_e){we.attr("display",K.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,_e)?null:"none")},k.hideOutsideRangePoints=function(ce,we){if(we._hasClipOnAxisFalse){var K=we.xaxis,ne=we.yaxis;ce.each(function(de){var _e=de[0].trace,ue=_e.xcalendar,pe=_e.ycalendar,xe=p.traceIs(_e,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(xe).each(function(ye){k.hideOutsideRangePoint(ye,s.select(this),K,ne,ue,pe)})})}},k.crispRound=function(ce,we,K){return we&&d(we)?ce._context.staticPlot?we:we<1?1:Math.round(we):K||0},k.singleLineStyle=function(ce,we,K,ne,de){we.style("fill","none");var _e=(((ce||[])[0]||{}).trace||{}).line||{},ue=K||_e.width||0,pe=de||_e.dash||"";m.stroke(we,ne||_e.color),k.dashLine(we,pe,ue)},k.lineGroupStyle=function(ce,we,K,ne){ce.style("fill","none").each(function(de){var _e=(((de||[])[0]||{}).trace||{}).line||{},ue=we||_e.width||0,pe=ne||_e.dash||"";s.select(this).call(m.stroke,K||_e.color).call(k.dashLine,pe,ue)})},k.dashLine=function(ce,we,K){K=+K||0,we=k.dashStyle(we,K),ce.style({"stroke-dasharray":we,"stroke-width":K+"px"})},k.dashStyle=function(ce,we){we=+we||1;var K=Math.max(we,3);return ce==="solid"?ce="":ce==="dot"?ce=K+"px,"+K+"px":ce==="dash"?ce=3*K+"px,"+3*K+"px":ce==="longdash"?ce=5*K+"px,"+5*K+"px":ce==="dashdot"?ce=3*K+"px,"+K+"px,"+K+"px,"+K+"px":ce==="longdashdot"&&(ce=5*K+"px,"+2*K+"px,"+K+"px,"+2*K+"px"),ce},k.singleFillStyle=function(ce,we){var K=s.select(ce.node());S(ce,((K.data()[0]||[])[0]||{}).trace||{},we)},k.fillGroupStyle=function(ce,we){ce.style("stroke-width",0).each(function(K){var ne=s.select(this);K[0].trace&&S(ne,K[0].trace,we)})};var C=a(90998);k.symbolNames=[],k.symbolFuncs=[],k.symbolBackOffs=[],k.symbolNeedLines={},k.symbolNoDot={},k.symbolNoFill={},k.symbolList=[],Object.keys(C).forEach(function(ce){var we=C[ce],K=we.n;k.symbolList.push(K,String(K),ce,K+100,String(K+100),ce+"-open"),k.symbolNames[K]=ce,k.symbolFuncs[K]=we.f,k.symbolBackOffs[K]=we.backoff||0,we.needLine&&(k.symbolNeedLines[K]=!0),we.noDot?k.symbolNoDot[K]=!0:k.symbolList.push(K+200,String(K+200),ce+"-dot",K+300,String(K+300),ce+"-open-dot"),we.noFill&&(k.symbolNoFill[K]=!0)});var M=k.symbolNames.length;function O(ce,we,K,ne){var de=ce%100;return k.symbolFuncs[de](we,K,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}k.symbolNumber=function(ce){if(d(ce))ce=+ce;else if(typeof ce=="string"){var we=0;ce.indexOf("-open")>0&&(we=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(we+=200,ce=ce.replace("-dot","")),(ce=k.symbolNames.indexOf(ce))>=0&&(ce+=we)}return ce%100>=M||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},P={x1:0,x2:0,y1:1,y2:0},E=c("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:P},verticalreversed:{node:"linearGradient",attrs:P,reversed:!0}};k.gradient=function(ce,we,K,ne,de,_e){for(var ue=de.length,pe=I[ne],xe=new Array(ue),ye=0;ye=0&&ce.i===void 0&&(ce.i=_e.i),we.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var xe;xe=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=xe,ne.selectedSizeFn&&(xe=ce.mrc=ne.selectedSizeFn(ce));var ye=k.symbolNumber(ce.mx||ue.symbol)||0;ce.om=ye%200>=100;var Te=Me(ce,K),Ae=G(ce,K);we.attr("d",O(ye,xe,Te,Ae))}var Re,Le,$e,Fe=!1;if(ce.so)$e=pe.outlierwidth,Le=pe.outliercolor,Re=ue.outliercolor;else{var Be=(pe||{}).width;$e=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,Le="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):u.isArrayOrTypedArray(pe.color)?m.defaultLine:pe.color,u.isArrayOrTypedArray(ue.color)&&(Re=m.defaultLine,Fe=!0),Re="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Re=ne.selectedColorFn(ce))}if(ce.om)we.call(m.stroke,Re).style({"stroke-width":($e||1)+"px",fill:"none"});else{we.style("stroke-width",(ce.isBlank?0:$e)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Fe=!0:qe=Ue&&Ue.type,u.isArrayOrTypedArray(qe)&&(qe=qe[0],I[qe]||(qe=0));var Xe=ue.pattern,ot=Xe&&k.getPatternAttr(Xe.shape,ce.i,"");if(qe&&qe!=="none"){var st=ce.mgc;st?Fe=!0:st=Ue.color;var dt=K.uid;Fe&&(dt+="-"+ce.i),k.gradient(we,de,dt,qe,[[0,st],[1,Re]],"fill")}else if(ot){var vt=!1,We=Xe.fgcolor;!We&&_e&&_e.color&&(We=_e.color,vt=!0);var ze=k.getPatternAttr(We,ce.i,_e&&_e.color||null),tt=k.getPatternAttr(Xe.bgcolor,ce.i,null),it=Xe.fgopacity,St=k.getPatternAttr(Xe.size,ce.i,8),Ze=k.getPatternAttr(Xe.solidity,ce.i,.3);vt=vt||ce.mcc||u.isArrayOrTypedArray(Xe.shape)||u.isArrayOrTypedArray(Xe.bgcolor)||u.isArrayOrTypedArray(Xe.fgcolor)||u.isArrayOrTypedArray(Xe.size)||u.isArrayOrTypedArray(Xe.solidity);var ut=K.uid;vt&&(ut+="-"+ce.i),k.pattern(we,"point",de,ut,ot,St,Ze,ce.mcc,Xe.fillmode,tt,ze,it)}else u.isArrayOrTypedArray(Re)?m.fill(we,Re[ce.i]):m.fill(we,Re);$e&&m.stroke(we,Le)}},k.makePointStyleFns=function(ce){var we={},K=ce.marker;return we.markerScale=k.tryColorscale(K,""),we.lineScale=k.tryColorscale(K,"line"),p.traceIs(ce,"symbols")&&(we.ms2mrc=_.isBubble(ce)?x(ce):function(){return(K.size||6)/2}),ce.selectedpoints&&u.extendFlat(we,k.makeSelectedPointStyleFns(ce)),we},k.makeSelectedPointStyleFns=function(ce){var we={},K=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},_e=K.marker||{},ue=ne.marker||{},pe=de.opacity,xe=_e.opacity,ye=ue.opacity,Te=xe!==void 0,Ae=ye!==void 0;(u.isArrayOrTypedArray(pe)||Te||Ae)&&(we.selectedOpacityFn=function(ot){var st=ot.mo===void 0?de.opacity:ot.mo;return ot.selected?Te?xe:st:Ae?ye:w*st});var Re=de.color,Le=_e.color,$e=ue.color;(Le||$e)&&(we.selectedColorFn=function(ot){var st=ot.mcc||Re;return ot.selected?Le||st:$e||st});var Fe=de.size,Be=_e.size,Ue=ue.size,qe=Be!==void 0,Xe=Ue!==void 0;return p.traceIs(ce,"symbols")&&(qe||Xe)&&(we.selectedSizeFn=function(ot){var st=ot.mrc||Fe/2;return ot.selected?qe?Be/2:st:Xe?Ue/2:st}),we},k.makeSelectedTextStyleFns=function(ce){var we={},K=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},_e=K.textfont||{},ue=ne.textfont||{},pe=de.color,xe=_e.color,ye=ue.color;return we.selectedTextColorFn=function(Te){var Ae=Te.tc||pe;return Te.selected?xe||Ae:ye||(xe?Ae:m.addOpacity(Ae,w))},we},k.selectedPointStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var K=k.makeSelectedPointStyleFns(we),ne=we.marker||{},de=[];K.selectedOpacityFn&&de.push(function(_e,ue){_e.style("opacity",K.selectedOpacityFn(ue))}),K.selectedColorFn&&de.push(function(_e,ue){m.fill(_e,K.selectedColorFn(ue))}),K.selectedSizeFn&&de.push(function(_e,ue){var pe=ue.mx||ne.symbol||0,xe=K.selectedSizeFn(ue);_e.attr("d",O(k.symbolNumber(pe),xe,Me(ue,we),G(ue,we))),ue.mrc2=xe}),de.length&&ce.each(function(_e){for(var ue=s.select(this),pe=0;pe0?K:0}function N(ce,we,K){return K&&(ce=U(ce)),we?q(ce[1]):R(ce[0])}function R(ce){var we=s.round(ce,2);return A=we,we}function q(ce){var we=s.round(ce,2);return F=we,we}function Y(ce,we,K,ne){var de=ce[0]-we[0],_e=ce[1]-we[1],ue=K[0]-we[0],pe=K[1]-we[1],xe=Math.pow(de*de+_e*_e,.25),ye=Math.pow(ue*ue+pe*pe,.25),Te=(ye*ye*de-xe*xe*ue)*ne,Ae=(ye*ye*_e-xe*xe*pe)*ne,Re=3*ye*(xe+ye),Le=3*xe*(xe+ye);return[[R(we[0]+(Re&&Te/Re)),q(we[1]+(Re&&Ae/Re))],[R(we[0]-(Le&&Te/Le)),q(we[1]-(Le&&Ae/Le))]]}k.textPointStyle=function(ce,we,K){if(ce.size()){var ne;if(we.selectedpoints){var de=k.makeSelectedTextStyleFns(we);ne=de.selectedTextColorFn}var _e=we.texttemplate,ue=K._fullLayout;ce.each(function(pe){var xe=s.select(this),ye=_e?u.extractOption(pe,we,"txt","texttemplate"):u.extractOption(pe,we,"tx","text");if(ye||ye===0){if(_e){var Te=we._module.formatLabels,Ae=Te?Te(pe,we,ue):{},Re={};T(Re,we,pe.i);var Le=we._meta||{};ye=u.texttemplateString(ye,Ae,ue._d3locale,Re,pe,Le)}var $e=pe.tp||we.textposition,Fe=B(pe,we),Be=ne?ne(pe):pe.tc||we.textfont.color;xe.call(k.font,pe.tf||we.textfont.family,Fe,Be).text(ye).call(v.convertToTspans,K).call(z,$e,Fe,pe.mrc)}else xe.remove()})}},k.selectedTextStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var K=k.makeSelectedTextStyleFns(we);ce.each(function(ne){var de=s.select(this),_e=K.selectedTextColorFn(ne),ue=ne.tp||we.textposition,pe=B(ne,we);m.fill(de,_e);var xe=p.traceIs(we,"bar-like");z(de,ue,pe,ne.mrc2||ne.mrc,xe)})}},k.smoothopen=function(ce,we){if(ce.length<3)return"M"+ce.join("L");var K,ne="M"+ce[0],de=[];for(K=1;K=xe||ot>=Te&&ot<=xe)&&(st<=Ae&&st>=ye||st>=Ae&&st<=ye)&&(ce=[ot,st])}return ce}k.steps=function(ce){var we=L[ce]||W;return function(K){for(var ne="M"+R(K[0][0])+","+q(K[0][1]),de=K.length,_e=1;_e=1e4&&(k.savedBBoxes={},V=0),K&&(k.savedBBoxes[K]=Le),V++,u.extendFlat({},Le)},k.setClipUrl=function(ce,we,K){ce.attr("clip-path",ee(we,K))},k.getTranslate=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(K,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+we[0]||0,y:+we[1]||0}},k.setTranslate=function(ce,we,K){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[ne]("transform")||"";return we=we||0,K=K||0,_e=_e.replace(/(\btranslate\(.*?\);?)/,"").trim(),_e=(_e+=b(we,K)).trim(),ce[de]("transform",_e),_e},k.getScale=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(K,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+we[0]||1,y:+we[1]||1}},k.setScale=function(ce,we,K){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[ne]("transform")||"";return we=we||1,K=K||1,_e=_e.replace(/(\bscale\(.*?\);?)/,"").trim(),_e=(_e+="scale("+we+","+K+")").trim(),ce[de]("transform",_e),_e};var H=/\s*sc.*/;k.setPointGroupScale=function(ce,we,K){if(we=we||1,K=K||1,ce){var ne=we===1&&K===1?"":"scale("+we+","+K+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(H,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Z=/translate\([^)]*\)\s*$/;function G(ce,we){var K;return ce&&(K=ce.mf),K===void 0&&(K=we.marker&&we.marker.standoff||0),we._geo||we._xA?K:-K}k.setTextPointsScale=function(ce,we,K){ce&&ce.each(function(){var ne,de=s.select(this),_e=de.select("text");if(_e.node()){var ue=parseFloat(_e.attr("x")||0),pe=parseFloat(_e.attr("y")||0),xe=(de.attr("transform")||"").match(Z);ne=we===1&&K===1?[]:[b(ue,pe),"scale("+we+","+K+")",b(-ue,-pe)],xe&&ne.push(xe),de.attr("transform",ne.join(""))}})},k.getMarkerStandoff=G;var X,Q,re,ae,ie,se,he=Math.atan2,Se=Math.cos,Oe=Math.sin;function Pe(ce,we){var K=we[0],ne=we[1];return[K*Se(ce)-ne*Oe(ce),K*Oe(ce)+ne*Se(ce)]}function Me(ce,we){var K,ne,de=ce.ma;de===void 0&&(de=we.marker.angle||0);var _e=we.marker.angleref;if(_e==="previous"||_e==="north"){if(we._geo){var ue=we._geo.project(ce.lonlat);K=ue[0],ne=ue[1]}else{var pe=we._xA,xe=we._yA;if(!pe||!xe)return 90;K=pe.c2p(ce.x),ne=xe.c2p(ce.y)}if(we._geo){var ye,Te=ce.lonlat[0],Ae=ce.lonlat[1],Re=we._geo.project([Te,Ae+1e-5]),Le=we._geo.project([Te+1e-5,Ae]),$e=he(Le[1]-ne,Le[0]-K),Fe=he(Re[1]-ne,Re[0]-K);if(_e==="north")ye=de/180*Math.PI;else if(_e==="previous"){var Be=Te/180*Math.PI,Ue=Ae/180*Math.PI,qe=X/180*Math.PI,Xe=Q/180*Math.PI,ot=qe-Be,st=Se(Xe)*Oe(ot),dt=Oe(Xe)*Se(Ue)-Se(Xe)*Oe(Ue)*Se(ot);ye=-he(st,dt)-Math.PI,X=Te,Q=Ae}var vt=Pe($e,[Se(ye),0]),We=Pe(Fe,[Oe(ye),0]);de=he(vt[1]+We[1],vt[0]+We[0])/Math.PI*180,_e!=="previous"||se===we.uid&&ce.i===ie+1||(de=null)}if(_e==="previous"&&!we._geo)if(se===we.uid&&ce.i===ie+1&&d(K)&&d(ne)){var ze=K-re,tt=ne-ae,it=we.line&&we.line.shape||"",St=it.slice(it.length-1);St==="h"&&(tt=0),St==="v"&&(ze=0),de+=he(tt,ze)/Math.PI*180+90}else de=null}return re=K,ae=ne,ie=ce.i,se=we.uid,de}k.getMarkerAngle=Me},90998:function(i,o,a){var s,u,c,d,f=a(95616),p=a(39898).round,m="M0,0Z",g=Math.sqrt(2),b=Math.sqrt(3),v=Math.PI,h=Math.cos,y=Math.sin;function w(x){return x===null}function _(x,T,k){if(!(x&&x%360!=0||T))return k;if(c===x&&d===T&&s===k)return u;function S(N,R){var q=h(N),Y=y(N),L=R[0],W=R[1]+(T||0);return[L*q-W*Y,L*Y+W*q]}c=x,d=T,s=k;for(var C=x/180*v,M=0,O=0,D=f(k),P="",E=0;E0,y=f._context.staticPlot;p.each(function(w){var _,x=w[0].trace,T=x.error_x||{},k=x.error_y||{};x.ids&&(_=function(O){return O.id});var S=d.hasMarkers(x)&&x.marker.maxdisplayed>0;k.visible||T.visible||(w=[]);var C=s.select(this).selectAll("g.errorbar").data(w,_);if(C.exit().remove(),w.length){T.visible||C.selectAll("path.xerror").remove(),k.visible||C.selectAll("path.yerror").remove(),C.style("opacity",1);var M=C.enter().append("g").classed("errorbar",!0);h&&M.style("opacity",0).transition().duration(g.duration).style("opacity",1),c.setClipUrl(C,m.layerClipId,f),C.each(function(O){var D=s.select(this),P=function(z,B,N){var R={x:B.c2p(z.x),y:N.c2p(z.y)};return z.yh!==void 0&&(R.yh=N.c2p(z.yh),R.ys=N.c2p(z.ys),u(R.ys)||(R.noYS=!0,R.ys=N.c2p(z.ys,!0))),z.xh!==void 0&&(R.xh=B.c2p(z.xh),R.xs=B.c2p(z.xs),u(R.xs)||(R.noXS=!0,R.xs=B.c2p(z.xs,!0))),R}(O,b,v);if(!S||O.vis){var E,I=D.select("path.yerror");if(k.visible&&u(P.x)&&u(P.yh)&&u(P.ys)){var A=k.width;E="M"+(P.x-A)+","+P.yh+"h"+2*A+"m-"+A+",0V"+P.ys,P.noYS||(E+="m-"+A+",0h"+2*A),I.size()?h&&(I=I.transition().duration(g.duration).ease(g.easing)):I=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",E)}else I.remove();var F=D.select("path.xerror");if(T.visible&&u(P.y)&&u(P.xh)&&u(P.xs)){var j=(T.copy_ystyle?k:T).width;E="M"+P.xh+","+(P.y-j)+"v"+2*j+"m0,-"+j+"H"+P.xs,P.noXS||(E+="m0,-"+j+"v"+2*j),F.size()?h&&(F=F.transition().duration(g.duration).ease(g.easing)):F=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("xerror",!0),F.attr("d",E)}else F.remove()}})}})}},62662:function(i,o,a){var s=a(39898),u=a(7901);i.exports=function(c){c.each(function(d){var f=d[0].trace,p=f.error_y||{},m=f.error_x||{},g=s.select(this);g.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(u.stroke,p.color),m.copy_ystyle&&(m=p),g.selectAll("path.xerror").style("stroke-width",m.thickness+"px").call(u.stroke,m.color)})}},77914:function(i,o,a){var s=a(41940),u=a(528).hoverlabel,c=a(1426).extendFlat;i.exports={hoverlabel:{bgcolor:c({},u.bgcolor,{arrayOk:!0}),bordercolor:c({},u.bordercolor,{arrayOk:!0}),font:s({arrayOk:!0,editType:"none"}),align:c({},u.align,{arrayOk:!0}),namelength:c({},u.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(i,o,a){var s=a(71828),u=a(73972);function c(d,f,p,m){m=m||s.identity,Array.isArray(d)&&(f[0][p]=m(d))}i.exports=function(d){var f=d.calcdata,p=d._fullLayout;function m(y){return function(w){return s.coerceHoverinfo({hoverinfo:w},{_module:y._module},p)}}for(var g=0;g=0&&b.indexde[0]._length||ht<0||ht>_e[0]._length)return y.unhoverRaw(ae,ie)}else ut="xpx"in ie?ie.xpx:de[0]._length/2,ht="ypx"in ie?ie.ypx:_e[0]._length/2;if(ie.pointerX=ut+de[0]._offset,ie.pointerY=ht+_e[0]._offset,Le="xval"in ie?x.flat(Oe,ie.xval):x.p2c(de,ut),$e="yval"in ie?x.flat(Oe,ie.yval):x.p2c(_e,ht),!u(Le[0])||!u($e[0]))return d.warn("Fx.hover failed",ie,ae),y.unhoverRaw(ae,ie)}var Wt=1/0;function _t(en,kn){for(Be=0;Beze&&(tt.splice(0,ze),Wt=tt[0].distance),we&&Re!==0&&tt.length===0){We.distance=Re,We.index=!1;var Bn=qe._module.hoverPoints(We,dt,vt,"closest",{hoverLayer:Pe._hoverlayer});if(Bn&&(Bn=Bn.filter(function(Tr){return Tr.spikeDistance<=Re})),Bn&&Bn.length){var En,Wn=Bn.filter(function(Tr){return Tr.xa.showspikes&&Tr.xa.spikesnap!=="hovered data"});if(Wn.length){var gr=Wn[0];u(gr.x0)&&u(gr.y0)&&(En=Ce(gr),(!St.vLinePoint||St.vLinePoint.spikeDistance>En.spikeDistance)&&(St.vLinePoint=En))}var Va=Bn.filter(function(Tr){return Tr.ya.showspikes&&Tr.ya.spikesnap!=="hovered data"});if(Va.length){var ro=Va[0];u(ro.x0)&&u(ro.y0)&&(En=Ce(ro),(!St.hLinePoint||St.hLinePoint.spikeDistance>En.spikeDistance)&&(St.hLinePoint=En))}}}}}function be(en,kn,un){for(var tn,Fn=null,Rn=1/0,Bn=0;Bn0&&Math.abs(en.distance)Ft-1;Yt--)gt(tt[Yt]);tt=Mt,et()}var mt=ae._hoverdata,xt=[],Ut=te(ae),It=ee(ae);for(Fe=0;Fe1||tt.length>1)||Te==="closest"&&Ze&&tt.length>1,xn=h.combine(Pe.plot_bgcolor||h.background,Pe.paper_bgcolor),mn=B(tt,{gd:ae,hovermode:Te,rotateLabels:sn,bgColor:xn,container:Pe._hoverlayer,outerContainer:Pe._paper.node(),commonLabelOpts:Pe.hoverlabel,hoverdistance:Pe.hoverdistance}),dn=mn.hoverLabels;if(x.isUnifiedHover(Te)||(function(en,kn,un,tn){var Fn,Rn,Bn,En,Wn,gr,Va,ro=kn?"xa":"ya",Tr=kn?"ya":"xa",Ki=0,Jr=1,Cr=en.size(),Gr=new Array(Cr),Ga=0,jn=tn.minX,fn=tn.maxX,Xn=tn.minY,ea=tn.maxY,Un=function(Ln){return Ln*un._invScaleX},Kn=function(Ln){return Ln*un._invScaleY};function Yn(Ln){var ta=Ln[0],Wo=Ln[Ln.length-1];if(Rn=ta.pmin-ta.pos-ta.dp+ta.size,Bn=Wo.pos+Wo.dp+Wo.size-ta.pmax,Rn>.01){for(Wn=Ln.length-1;Wn>=0;Wn--)Ln[Wn].dp+=Rn;Fn=!1}if(!(Bn<.01)){if(Rn<-.01){for(Wn=Ln.length-1;Wn>=0;Wn--)Ln[Wn].dp-=Bn;Fn=!1}if(Fn){var va=0;for(En=0;Enta.pmax&&va++;for(En=Ln.length-1;En>=0&&!(va<=0);En--)(gr=Ln[En]).pos>ta.pmax-1&&(gr.del=!0,va--);for(En=0;En=0;Wn--)Ln[Wn].dp-=Bn;for(En=Ln.length-1;En>=0&&!(va<=0);En--)(gr=Ln[En]).pos+gr.dp+gr.size>ta.pmax&&(gr.del=!0,va--)}}}for(en.each(function(Ln){var ta=Ln[ro],Wo=Ln[Tr],va=ta._id.charAt(0)==="x",hs=ta.range;Ga===0&&hs&&hs[0]>hs[1]!==va&&(Jr=-1);var ms=0,Ml=va?un.width:un.height;if(un.hovermode==="x"||un.hovermode==="y"){var Zi,Di,Pl=R(Ln,kn),If=Ln.anchor,Oc=If==="end"?-1:1;if(If==="middle")Di=(Zi=Ln.crossPos+(va?Kn(Pl.y-Ln.by/2):Un(Ln.bx/2+Ln.tx2width/2)))+(va?Kn(Ln.by):Un(Ln.bx));else if(va)Di=(Zi=Ln.crossPos+Kn(E+Pl.y)-Kn(Ln.by/2-E))+Kn(Ln.by);else{var $f=Un(Oc*E+Pl.x),su=$f+Un(Oc*Ln.bx);Zi=Ln.crossPos+Math.min($f,su),Di=Ln.crossPos+Math.max($f,su)}va?Xn!==void 0&&ea!==void 0&&Math.min(Di,ea)-Math.max(Zi,Xn)>1&&(Wo.side==="left"?(ms=Wo._mainLinePosition,Ml=un.width):Ml=Wo._mainLinePosition):jn!==void 0&&fn!==void 0&&Math.min(Di,fn)-Math.max(Zi,jn)>1&&(Wo.side==="top"?(ms=Wo._mainLinePosition,Ml=un.height):Ml=Wo._mainLinePosition)}Gr[Ga++]=[{datum:Ln,traceIndex:Ln.trace.index,dp:0,pos:Ln.pos,posref:Ln.posref,size:Ln.by*(va?O:1)/2,pmin:ms,pmax:Ml}]}),Gr.sort(function(Ln,ta){return Ln[0].posref-ta[0].posref||Jr*(ta[0].traceIndex-Ln[0].traceIndex)});!Fn&&Ki<=Cr;){for(Ki++,Fn=!0,En=0;En.01&&Wr.pmin===Yr.pmin&&Wr.pmax===Yr.pmax){for(Wn=la.length-1;Wn>=0;Wn--)la[Wn].dp+=Rn;for(er.push.apply(er,la),Gr.splice(En+1,1),Va=0,Wn=er.length-1;Wn>=0;Wn--)Va+=er[Wn].dp;for(Bn=Va/er.length,Wn=er.length-1;Wn>=0;Wn--)er[Wn].dp-=Bn;Fn=!1}else En++}Gr.forEach(Yn)}for(En=Gr.length-1;En>=0;En--){var ii=Gr[En];for(Wn=ii.length-1;Wn>=0;Wn--){var ko=ii[Wn],Ya=ko.datum;Ya.offset=ko.dp,Ya.del=ko.del}}}(dn,sn,Pe,mn.commonLabelBoundingBox),q(dn,sn,Pe._invScaleX,Pe._invScaleY)),Se&&Se.tagName){var gn=_.getComponentMethod("annotations","hasClickToShow")(ae,xt);b(s.select(Se),gn?"pointer":"")}Se&&!he&&function(en,kn,un){if(!un||un.length!==en._hoverdata.length)return!0;for(var tn=un.length-1;tn>=0;tn--){var Fn=un[tn],Rn=en._hoverdata[tn];if(Fn.curveNumber!==Rn.curveNumber||String(Fn.pointNumber)!==String(Rn.pointNumber)||String(Fn.pointNumbers)!==String(Rn.pointNumbers))return!0}return!1}(ae,0,mt)&&(mt&&ae.emit("plotly_unhover",{event:ie,points:mt}),ae.emit("plotly_hover",{event:ie,points:ae._hoverdata,xaxes:de,yaxes:_e,xvals:Le,yvals:$e}))})(Z,G,X,Q,re)})},o.loneHover=function(Z,G){var X=!0;Array.isArray(Z)||(X=!1,Z=[Z]);var Q=G.gd,re=te(Q),ae=ee(Q),ie=B(Z.map(function(Se){var Oe=Se._x0||Se.x0||Se.x||0,Pe=Se._x1||Se.x1||Se.x||0,Me=Se._y0||Se.y0||Se.y||0,ce=Se._y1||Se.y1||Se.y||0,we=Se.eventData;if(we){var K=Math.min(Oe,Pe),ne=Math.max(Oe,Pe),de=Math.min(Me,ce),_e=Math.max(Me,ce),ue=Se.trace;if(_.traceIs(ue,"gl3d")){var pe=Q._fullLayout[ue.scene]._scene.container,xe=pe.offsetLeft,ye=pe.offsetTop;K+=xe,ne+=xe,de+=ye,_e+=ye}we.bbox={x0:K+ae,x1:ne+ae,y0:de+re,y1:_e+re},G.inOut_bbox&&G.inOut_bbox.push(we.bbox)}else we=!1;return{color:Se.color||h.defaultLine,x0:Se.x0||Se.x||0,x1:Se.x1||Se.x||0,y0:Se.y0||Se.y||0,y1:Se.y1||Se.y||0,xLabel:Se.xLabel,yLabel:Se.yLabel,zLabel:Se.zLabel,text:Se.text,name:Se.name,idealAlign:Se.idealAlign,borderColor:Se.borderColor,fontFamily:Se.fontFamily,fontSize:Se.fontSize,fontColor:Se.fontColor,nameLength:Se.nameLength,textAlign:Se.textAlign,trace:Se.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Se.hovertemplate||!1,hovertemplateLabels:Se.hovertemplateLabels||!1,eventData:we}}),{gd:Q,hovermode:"closest",rotateLabels:!1,bgColor:G.bgColor||h.background,container:s.select(G.container),outerContainer:G.outerContainer||G.container}).hoverLabels,se=0,he=0;return ie.sort(function(Se,Oe){return Se.y0-Oe.y0}).each(function(Se,Oe){var Pe=Se.y0-Se.by/2;Se.offset=Pe-5([\s\S]*)<\/extra>/;function B(Z,G){var X=G.gd,Q=X._fullLayout,re=G.hovermode,ae=G.rotateLabels,ie=G.bgColor,se=G.container,he=G.outerContainer,Se=G.commonLabelOpts||{};if(Z.length===0)return[[]];var Oe=G.fontFamily||T.HOVERFONT,Pe=G.fontSize||T.HOVERFONTSIZE,Me=Z[0],ce=Me.xa,we=Me.ya,K=re.charAt(0),ne=K+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var _e=0;_eQ.width-zt?(mt=Q.width-zt,Ft.attr("d","M"+(zt-E)+",0L"+zt+","+It+E+"v"+It+(2*I+Ut.height)+"H-"+zt+"V"+It+E+"H"+(zt-2*E)+"Z")):Ft.attr("d","M0,0L"+E+","+It+E+"H"+zt+"v"+It+(2*I+Ut.height)+"H-"+zt+"V"+It+E+"H-"+E+"Z"),Be.minX=mt-zt,Be.maxX=mt+zt,ce.side==="top"?(Be.minY=xt-(2*I+Ut.height),Be.maxY=xt-I):(Be.minY=xt+I,Be.maxY=xt+(2*I+Ut.height))}else{var kt,Ot,At;we.side==="right"?(kt="start",Ot=1,At="",mt=ce._offset+ce._length):(kt="end",Ot=-1,At="-",mt=ce._offset),xt=we._offset+(Me.y0+Me.y1)/2,Yt.attr("text-anchor",kt),Ft.attr("d","M0,0L"+At+E+","+E+"V"+(I+Ut.height/2)+"h"+At+(2*I+Ut.width)+"V-"+(I+Ut.height/2)+"H"+At+E+"V-"+E+"Z"),Be.minY=xt-(I+Ut.height/2),Be.maxY=xt+(I+Ut.height/2),we.side==="right"?(Be.minX=mt+E,Be.maxX=mt+E+(2*I+Ut.width)):(Be.minX=mt-E-(2*I+Ut.width),Be.maxX=mt-E);var Nt,$t=Ut.height/2,Bt=pe-Ut.top-$t,Xt="clip"+Q._uid+"commonlabel"+we._id;if(mt=0?ht:Rt+_t=0?Rt:nt+_t=0?Ze:ut+be=0?ut:ct+be=0,rt.idealAlign!=="top"&&sn||!xn?sn?($t+=Xt/2,rt.anchor="start"):rt.anchor="middle":($t-=Xt/2,rt.anchor="end"),rt.crossPos=$t;else{if(rt.pos=$t,sn=Nt+Bt/2+mn<=xe,xn=Nt-Bt/2-mn>=0,rt.idealAlign!=="left"&&sn||!xn)if(sn)Nt+=Bt/2,rt.anchor="start";else{rt.anchor="middle";var dn=mn/2,gn=Nt+dn-xe,en=Nt-dn;gn>0&&(Nt-=gn),en<0&&(Nt+=-en)}else Nt-=Bt/2,rt.anchor="end";rt.crossPos=Nt}It.attr("text-anchor",rt.anchor),kt&&zt.attr("text-anchor",rt.anchor),Ft.attr("transform",f(Nt,$t)+(ae?p(C):""))}),{hoverLabels:yt,commonLabelBoundingBox:Be}}function N(Z,G,X,Q,re,ae){var ie="",se="";Z.nameOverride!==void 0&&(Z.name=Z.nameOverride),Z.name&&(Z.trace._meta&&(Z.name=d.templateString(Z.name,Z.trace._meta)),ie=U(Z.name,Z.nameLength));var he=X.charAt(0),Se=he==="x"?"y":"x";Z.zLabel!==void 0?(Z.xLabel!==void 0&&(se+="x: "+Z.xLabel+"
"),Z.yLabel!==void 0&&(se+="y: "+Z.yLabel+"
"),Z.trace.type!=="choropleth"&&Z.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Z.zLabel)):G&&Z[he+"Label"]===re?se=Z[Se+"Label"]||"":Z.xLabel===void 0?Z.yLabel!==void 0&&Z.trace.type!=="scattercarpet"&&(se=Z.yLabel):se=Z.yLabel===void 0?Z.xLabel:"("+Z.xLabel+", "+Z.yLabel+")",!Z.text&&Z.text!==0||Array.isArray(Z.text)||(se+=(se?"
":"")+Z.text),Z.extraText!==void 0&&(se+=(se?"
":"")+Z.extraText),ae&&se===""&&!Z.hovertemplate&&(ie===""&&ae.remove(),se=ie);var Oe=Z.hovertemplate||!1;if(Oe){var Pe=Z.hovertemplateLabels||Z;Z[he+"Label"]!==re&&(Pe[he+"other"]=Pe[he+"Val"],Pe[he+"otherLabel"]=Pe[he+"Label"]),se=(se=d.hovertemplateString(Oe,Pe,Q._d3locale,Z.eventData[0]||{},Z.trace._meta)).replace(z,function(Me,ce){return ie=U(ce,Z.nameLength),""})}return[se,ie]}function R(Z,G){var X=0,Q=Z.offset;return G&&(Q*=-P,X=Z.offset*D),{x:X,y:Q}}function q(Z,G,X,Q){var re=function(ie){return ie*X},ae=function(ie){return ie*Q};Z.each(function(ie){var se=s.select(this);if(ie.del)return se.remove();var he,Se,Oe,Pe,Me=se.select("text.nums"),ce=ie.anchor,we=ce==="end"?-1:1,K=(Pe=(Oe=(Se={start:1,end:-1,middle:0}[(he=ie).anchor])*(E+I))+Se*(he.txwidth+I),he.anchor==="middle"&&(Oe-=he.tx2width/2,Pe+=he.txwidth/2+I),{alignShift:Se,textShiftX:Oe,text2ShiftX:Pe}),ne=R(ie,G),de=ne.x,_e=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(ie.bx/2+ie.tx2width/2)+","+ae(_e-ie.by/2)+"h"+re(ie.bx)+"v"+ae(ie.by)+"h-"+re(ie.bx)+"Z":"M0,0L"+re(we*E+de)+","+ae(E+_e)+"v"+ae(ie.by/2-E)+"h"+re(we*ie.bx)+"v-"+ae(ie.by)+"H"+re(we*E+de)+"V"+ae(_e-E)+"Z");var pe=de+K.textShiftX,xe=_e+ie.ty0-ie.by/2+I,ye=ie.textAlign||"auto";ye!=="auto"&&(ye==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),pe=ue?-ie.bx/2-ie.tx2width/2+I:-ie.bx-I):ye==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),pe=ue?ie.bx/2-ie.tx2width/2-I:ie.bx+I)),Me.call(g.positionText,re(pe),ae(xe)),ie.tx2width&&(se.select("text.name").call(g.positionText,re(K.text2ShiftX+K.alignShift*I+de),ae(_e+ie.ty0-ie.by/2+I)),se.select("rect").call(v.setRect,re(K.text2ShiftX+(K.alignShift-1)*ie.tx2width/2+de),ae(_e-ie.by/2-1),re(ie.tx2width),ae(ie.by+2)))})}function Y(Z,G){var X=Z.index,Q=Z.trace||{},re=Z.cd[0],ae=Z.cd[X]||{};function ie(Me){return Me||u(Me)&&Me===0}var se=Array.isArray(X)?function(Me,ce){var we=d.castOption(re,X,Me);return ie(we)?we:d.extractOption({},Q,"",ce)}:function(Me,ce){return d.extractOption(ae,Q,Me,ce)};function he(Me,ce,we){var K=se(ce,we);ie(K)&&(Z[Me]=K)}if(he("hoverinfo","hi","hoverinfo"),he("bgcolor","hbg","hoverlabel.bgcolor"),he("borderColor","hbc","hoverlabel.bordercolor"),he("fontFamily","htf","hoverlabel.font.family"),he("fontSize","hts","hoverlabel.font.size"),he("fontColor","htc","hoverlabel.font.color"),he("nameLength","hnl","hoverlabel.namelength"),he("textAlign","hta","hoverlabel.align"),Z.posref=G==="y"||G==="closest"&&Q.orientation==="h"?Z.xa._offset+(Z.x0+Z.x1)/2:Z.ya._offset+(Z.y0+Z.y1)/2,Z.x0=d.constrain(Z.x0,0,Z.xa._length),Z.x1=d.constrain(Z.x1,0,Z.xa._length),Z.y0=d.constrain(Z.y0,0,Z.ya._length),Z.y1=d.constrain(Z.y1,0,Z.ya._length),Z.xLabelVal!==void 0&&(Z.xLabel="xLabel"in Z?Z.xLabel:w.hoverLabelText(Z.xa,Z.xLabelVal,Q.xhoverformat),Z.xVal=Z.xa.c2d(Z.xLabelVal)),Z.yLabelVal!==void 0&&(Z.yLabel="yLabel"in Z?Z.yLabel:w.hoverLabelText(Z.ya,Z.yLabelVal,Q.yhoverformat),Z.yVal=Z.ya.c2d(Z.yLabelVal)),Z.zLabelVal!==void 0&&Z.zLabel===void 0&&(Z.zLabel=String(Z.zLabelVal)),!(isNaN(Z.xerr)||Z.xa.type==="log"&&Z.xerr<=0)){var Se=w.tickText(Z.xa,Z.xa.c2l(Z.xerr),"hover").text;Z.xerrneg!==void 0?Z.xLabel+=" +"+Se+" / -"+w.tickText(Z.xa,Z.xa.c2l(Z.xerrneg),"hover").text:Z.xLabel+=" ± "+Se,G==="x"&&(Z.distance+=1)}if(!(isNaN(Z.yerr)||Z.ya.type==="log"&&Z.yerr<=0)){var Oe=w.tickText(Z.ya,Z.ya.c2l(Z.yerr),"hover").text;Z.yerrneg!==void 0?Z.yLabel+=" +"+Oe+" / -"+w.tickText(Z.ya,Z.ya.c2l(Z.yerrneg),"hover").text:Z.yLabel+=" ± "+Oe,G==="y"&&(Z.distance+=1)}var Pe=Z.hoverinfo||Z.trace.hoverinfo;return Pe&&Pe!=="all"&&((Pe=Array.isArray(Pe)?Pe:Pe.split("+")).indexOf("x")===-1&&(Z.xLabel=void 0),Pe.indexOf("y")===-1&&(Z.yLabel=void 0),Pe.indexOf("z")===-1&&(Z.zLabel=void 0),Pe.indexOf("text")===-1&&(Z.text=void 0),Pe.indexOf("name")===-1&&(Z.name=void 0)),Z}function L(Z,G,X){var Q,re,ae=X.container,ie=X.fullLayout,se=ie._size,he=X.event,Se=!!G.hLinePoint,Oe=!!G.vLinePoint;if(ae.selectAll(".spikeline").remove(),Oe||Se){var Pe=h.combine(ie.plot_bgcolor,ie.paper_bgcolor);if(Se){var Me,ce,we=G.hLinePoint;Q=we&&we.xa,(re=we&&we.ya).spikesnap==="cursor"?(Me=he.pointerX,ce=he.pointerY):(Me=Q._offset+we.x,ce=re._offset+we.y);var K,ne,de=c.readability(we.color,Pe)<1.5?h.contrast(Pe):we.color,_e=re.spikemode,ue=re.spikethickness,pe=re.spikecolor||de,xe=w.getPxPosition(Z,re);if(_e.indexOf("toaxis")!==-1||_e.indexOf("across")!==-1){if(_e.indexOf("toaxis")!==-1&&(K=xe,ne=Me),_e.indexOf("across")!==-1){var ye=re._counterDomainMin,Te=re._counterDomainMax;re.anchor==="free"&&(ye=Math.min(ye,re.position),Te=Math.max(Te,re.position)),K=se.l+ye*se.w,ne=se.l+Te*se.w}ae.insert("line",":first-child").attr({x1:K,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:pe,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:K,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Pe}).classed("spikeline",!0).classed("crisp",!0)}_e.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:xe+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:pe}).classed("spikeline",!0)}if(Oe){var Ae,Re,Le=G.vLinePoint;Q=Le&&Le.xa,re=Le&&Le.ya,Q.spikesnap==="cursor"?(Ae=he.pointerX,Re=he.pointerY):(Ae=Q._offset+Le.x,Re=re._offset+Le.y);var $e,Fe,Be=c.readability(Le.color,Pe)<1.5?h.contrast(Pe):Le.color,Ue=Q.spikemode,qe=Q.spikethickness,Xe=Q.spikecolor||Be,ot=w.getPxPosition(Z,Q);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&($e=ot,Fe=Re),Ue.indexOf("across")!==-1){var st=Q._counterDomainMin,dt=Q._counterDomainMax;Q.anchor==="free"&&(st=Math.min(st,Q.position),dt=Math.max(dt,Q.position)),$e=se.t+(1-dt)*se.h,Fe=se.t+(1-st)*se.h}ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:$e,y2:Fe,"stroke-width":qe,stroke:Xe,"stroke-dasharray":v.dashStyle(Q.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:$e,y2:Fe,"stroke-width":qe+2,stroke:Pe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:Ae,cy:ot-(Q.side!=="top"?qe:-qe),r:qe,fill:Xe}).classed("spikeline",!0)}}}function W(Z,G){return!G}function U(Z,G){return g.plainText(Z||"",{len:G,allowedTags:["br","sub","sup","b","i","em"]})}function V(Z,G,X){var Q=G[Z+"a"],re=G[Z+"Val"],ae=G.cd[0];if(Q.type==="category"||Q.type==="multicategory")re=Q._categoriesMap[re];else if(Q.type==="date"){var ie=G.trace[Z+"periodalignment"];if(ie){var se=G.cd[G.index],he=se[Z+"Start"];he===void 0&&(he=se[Z]);var Se=se[Z+"End"];Se===void 0&&(Se=se[Z]);var Oe=Se-he;ie==="end"?re+=Oe:ie==="middle"&&(re+=Oe/2)}re=Q.d2c(re)}return ae&&ae.t&&ae.t.posLetter===Q._id&&(X.boxmode!=="group"&&X.violinmode!=="group"||(re+=ae.t.dPos)),re}function te(Z){return Z.offsetTop+Z.clientTop}function ee(Z){return Z.offsetLeft+Z.clientLeft}function H(Z,G){var X=Z._fullLayout,Q=G.getBoundingClientRect(),re=Q.left,ae=Q.top,ie=re+Q.width,se=ae+Q.height,he=d.apply3DTransform(X._invTransform)(re,ae),Se=d.apply3DTransform(X._invTransform)(ie,se),Oe=he[0],Pe=he[1],Me=Se[0],ce=Se[1];return{x:Oe,y:Pe,width:Me-Oe,height:ce-Pe,top:Math.min(Pe,ce),left:Math.min(Oe,Me),right:Math.max(Oe,Me),bottom:Math.max(Pe,ce)}}},38048:function(i,o,a){var s=a(71828),u=a(7901),c=a(23469).isUnifiedHover;i.exports=function(d,f,p,m){m=m||{};var g=f.legend;function b(v){m.font[v]||(m.font[v]=g?f.legend.font[v]:f.font[v])}f&&c(f.hovermode)&&(m.font||(m.font={}),b("size"),b("family"),b("color"),g?(m.bgcolor||(m.bgcolor=u.combine(f.legend.bgcolor,f.paper_bgcolor)),m.bordercolor||(m.bordercolor=f.legend.bordercolor)):m.bgcolor||(m.bgcolor=f.paper_bgcolor)),p("hoverlabel.bgcolor",m.bgcolor),p("hoverlabel.bordercolor",m.bordercolor),p("hoverlabel.namelength",m.namelength),s.coerceFont(p,"hoverlabel.font",m.font),p("hoverlabel.align",m.align)}},98212:function(i,o,a){var s=a(71828),u=a(528);i.exports=function(c,d){function f(p,m){return d[p]!==void 0?d[p]:s.coerce(c,d,u,p,m)}return f("clickmode"),f("hovermode")}},30211:function(i,o,a){var s=a(39898),u=a(71828),c=a(28569),d=a(23469),f=a(528),p=a(88335);i.exports={moduleType:"component",name:"fx",constants:a(26675),schema:{layout:f},attributes:a(77914),layoutAttributes:f,supplyLayoutGlobalDefaults:a(22774),supplyDefaults:a(54268),supplyLayoutDefaults:a(34938),calc:a(30732),getDistanceFunction:d.getDistanceFunction,getClosest:d.getClosest,inbox:d.inbox,quadrature:d.quadrature,appendArrayPointValue:d.appendArrayPointValue,castHoverOption:function(m,g,b){return u.castOption(m,g,"hoverlabel."+b)},castHoverinfo:function(m,g,b){return u.castOption(m,b,"hoverinfo",function(v){return u.coerceHoverinfo({hoverinfo:v},{_module:m._module},g)})},hover:p.hover,unhover:c.unhover,loneHover:p.loneHover,loneUnhover:function(m){var g=u.isD3Selection(m)?m:s.select(m);g.selectAll("g.hovertext").remove(),g.selectAll(".spikeline").remove()},click:a(75914)}},528:function(i,o,a){var s=a(26675),u=a(41940),c=u({editType:"none"});c.family.dflt=s.HOVERFONT,c.size.dflt=s.HOVERFONTSIZE,i.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:c,grouptitlefont:u({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(i,o,a){var s=a(71828),u=a(528),c=a(98212),d=a(38048);i.exports=function(f,p){function m(h,y){return s.coerce(f,p,u,h,y)}c(f,p)&&(m("hoverdistance"),m("spikedistance")),m("dragmode")==="select"&&m("selectdirection");var g=p._has("mapbox"),b=p._has("geo"),v=p._basePlotModules.length;p.dragmode==="zoom"&&((g||b)&&v===1||g&&b&&v===2)&&(p.dragmode="pan"),d(f,p,m),s.coerceFont(m,"hoverlabel.grouptitlefont",p.hoverlabel.font)}},22774:function(i,o,a){var s=a(71828),u=a(38048),c=a(528);i.exports=function(d,f){u(d,f,function(p,m){return s.coerce(d,f,c,p,m)})}},83312:function(i,o,a){var s=a(71828),u=a(30587).counter,c=a(27670).Y,d=a(85555).idRegex,f=a(44467),p={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[u("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:c({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function m(v,h,y){var w=h[y+"axes"],_=Object.keys((v._splomAxes||{})[y]||{});return Array.isArray(w)?w:_.length?_:void 0}function g(v,h,y,w,_,x){var T=h(v+"gap",y),k=h("domain."+v);h(v+"side",w);for(var S=new Array(_),C=k[0],M=(k[1]-C)/(_-T),O=M*(1-T),D=0;D<_;D++){var P=C+M*D;S[x?_-1-D:D]=[P,P+O]}return S}function b(v,h,y,w,_){var x,T=new Array(y);function k(S,C){h.indexOf(C)!==-1&&w[C]===void 0?(T[S]=C,w[C]=S):T[S]=""}if(Array.isArray(v))for(x=0;x1){k||S||C||z("pattern")==="independent"&&(k=!0),O._hasSubplotGrid=k;var E,I,A=z("roworder")==="top to bottom",F=k?.2:.1,j=k?.3:.1;M&&h._splomGridDflt&&(E=h._splomGridDflt.xside,I=h._splomGridDflt.yside),O._domains={x:g("x",z,F,E,P),y:g("y",z,j,I,D,A)}}else delete h.grid}function z(B,N){return s.coerce(y,O,p,B,N)}},contentDefaults:function(v,h){var y=h.grid;if(y&&y._domains){var w,_,x,T,k,S,C,M=v.grid||{},O=h._subplots,D=y._hasSubplotGrid,P=y.rows,E=y.columns,I=y.pattern==="independent",A=y._axisMap={};if(D){var F=M.subplots||[];S=y.subplots=new Array(P);var j=1;for(w=0;w(b==="legend"?1:0));if(j===!1&&(h[b]=void 0),(j!==!1||w.uirevision)&&(x("uirevision",h.uirevision),j!==!1)){x("borderwidth");var z,B,N,R=x("orientation")==="h",q=x("yref")==="paper",Y=x("xref")==="paper",L="left";if(R?(z=0,s.getComponentMethod("rangeslider","isVisible")(v.xaxis)?q?(B=1.1,N="bottom"):(B=1,N="top"):q?(B=-.1,N="top"):(B=0,N="bottom")):(B=1,N="auto",Y?z=1.02:(z=1,L="right")),u.coerce(w,_,{x:{valType:"number",editType:"legend",min:Y?-2:0,max:Y?3:1,dflt:z}},"x"),u.coerce(w,_,{y:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:B}},"y"),x("traceorder",P),m.isGrouped(h[b])&&x("tracegroupgap"),x("entrywidth"),x("entrywidthmode"),x("itemsizing"),x("itemwidth"),x("itemclick"),x("itemdoubleclick"),x("groupclick"),x("xanchor",L),x("yanchor",N),x("valign"),u.noneOrAll(w,_,["x","y"]),x("title.text")){x("title.side",R?"left":"top");var W=u.extendFlat({},T,{size:u.bigFont(T.size)});u.coerceFont(x,"title.font",W)}}}}i.exports=function(b,v,h){var y,w=h.slice(),_=v.shapes;if(_)for(y=0;y<_.length;y++){var x=_[y];if(x.showlegend){var T={_input:x._input,visible:x.visible,showlegend:x.showlegend,legend:x.legend};w.push(T)}}var k=["legend"];for(y=0;y1)}var Q=W.hiddenlabels||[];if(!(V||W.showlegend&&te.length))return Y.selectAll("."+U).remove(),W._topdefs.select("#"+q).remove(),c.autoMargin(N,U);var re=u.ensureSingle(Y,"g",U,function(ce){V||ce.attr("pointer-events","all")}),ae=u.ensureSingleById(W._topdefs,"clipPath",q,function(ce){ce.append("rect")}),ie=u.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});ie.call(g.stroke,L.bordercolor).call(g.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,he=u.ensureSingle(re,"g","scrollbox"),Se=L.title;L._titleWidth=0,L._titleHeight=0,Se.text?((se=u.ensureSingle(he,"text",U+"titletext")).attr("text-anchor","start").call(m.font,Se.font).text(Se.text),F(se,he,N,L,C)):he.selectAll("."+U+"titletext").remove();var Oe=u.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(h.scrollBarEnterAttrs).call(g.fill,h.scrollBarColor)}),Pe=he.selectAll("g.groups").data(te);Pe.enter().append("g").attr("class","groups"),Pe.exit().remove();var Me=Pe.selectAll("g.traces").data(u.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var we=ce[0].trace;return d.traceIs(we,"pie-like")?Q.indexOf(ce[0].label)!==-1?.5:1:we.visible==="legendonly"?.5:1}).each(function(){s.select(this).call(E,N,L)}).call(k,N,L).each(function(){V||s.select(this).call(A,N,U)}),u.syncOrAsync([c.previousPromises,function(){return function(ce,we,K,ne){var de=ce._fullLayout,_e=B(ne);ne||(ne=de[_e]);var ue=de._size,pe=S.isVertical(ne),xe=S.isGrouped(ne),ye=ne.entrywidthmode==="fraction",Te=ne.borderwidth,Ae=2*Te,Re=h.itemGap,Le=ne.itemwidth+2*Re,$e=2*(Te+Re),Fe=z(ne),Be=ne.y<0||ne.y===0&&Fe==="top",Ue=ne.y>1||ne.y===1&&Fe==="bottom",qe=ne.tracegroupgap,Xe={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var ot=0;ne._width=0,ne._height=0;var st=function(Ke){var Ye=0,nt=0,ct=Ke.title.side;return ct&&(ct.indexOf("left")!==-1&&(Ye=Ke._titleWidth),ct.indexOf("top")!==-1&&(nt=Ke._titleHeight)),[Ye,nt]}(ne);if(pe)K.each(function(Ke){var Ye=Ke[0].height;m.setTranslate(this,Te+st[0],Te+st[1]+ne._height+Ye/2+Re),ne._height+=Ye,ne._width=Math.max(ne._width,Ke[0].width)}),ot=Le+ne._width,ne._width+=Re+Le+Ae,ne._height+=$e,xe&&(we.each(function(Ke,Ye){m.setTranslate(this,0,Ye*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var dt=j(ne),vt=ne.x<0||ne.x===0&&dt==="right",We=ne.x>1||ne.x===1&&dt==="left",ze=Ue||Be,tt=de.width/2;ne._maxWidth=Math.max(vt?ze&&dt==="left"?ue.l+ue.w:tt:We?ze&&dt==="right"?ue.r+ue.w:tt:ue.w,2*Le);var it=0,St=0;K.each(function(Ke){var Ye=D(Ke,ne,Le);it=Math.max(it,Ye),St+=Ye}),ot=null;var Ze=0;if(xe){var ut=0,ht=0,Rt=0;we.each(function(){var Ke=0,Ye=0;s.select(this).selectAll("g.traces").each(function(ct){var yt=D(ct,ne,Le),rt=ct[0].height;m.setTranslate(this,st[0],st[1]+Te+Re+rt/2+Ye),Ye+=rt,Ke=Math.max(Ke,yt),Xe[ct[0].trace.legendgroup]=Ke});var nt=Ke+Re;ht>0&&nt+Te+ht>ne._maxWidth?(Ze=Math.max(Ze,ht),ht=0,Rt+=ut+qe,ut=Ye):ut=Math.max(ut,Ye),m.setTranslate(this,ht,Rt),ht+=nt}),ne._width=Math.max(Ze,ht)+Te,ne._height=Rt+ut+$e}else{var Ct=K.size(),Wt=St+Ae+(Ct-1)*Re=ne._maxWidth&&(Ze=Math.max(Ze,Ge),be=0,Ce+=_t,ne._height+=_t,_t=0),m.setTranslate(this,st[0]+Te+be,st[1]+Te+Ce+Ye/2+Re),Ge=be+nt+Re,be+=ct,_t=Math.max(_t,Ye)}),Wt?(ne._width=be+Ae,ne._height=_t+$e):(ne._width=Math.max(Ze,Ge)+Ae,ne._height+=_t+$e)}}ne._width=Math.ceil(Math.max(ne._width+st[0],ne._titleWidth+2*(Te+h.titlePad))),ne._height=Math.ceil(Math.max(ne._height+st[1],ne._titleHeight+2*(Te+h.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var He=ce._context.edits,et=He.legendText||He.legendPosition;K.each(function(Ke){var Ye=s.select(this).select("."+_e+"toggle"),nt=Ke[0].height,ct=Ke[0].trace.legendgroup,yt=D(Ke,ne,Le);xe&&ct!==""&&(yt=Xe[ct]);var rt=et?Le:ot||yt;pe||ye||(rt+=Re/2),m.setRect(Ye,0,-nt/2,rt,nt)})}(N,Pe,Me,L)},function(){var ce,we,K,ne,de=W._size,_e=L.borderwidth,ue=L.xref==="paper",pe=L.yref==="paper";if(Se.text&&function(ze,tt,it){if(tt.title.side==="top center"||tt.title.side==="top right"){var St=tt.title.font.size*w,Ze=0,ut=ze.node(),ht=m.bBox(ut).width;tt.title.side==="top center"?Ze=.5*(tt._width-2*it-2*h.titlePad-ht):tt.title.side==="top right"&&(Ze=tt._width-2*it-2*h.titlePad-ht),b.positionText(ze,it+h.titlePad+Ze,it+St)}}(se,L,_e),!V){var xe,ye;xe=ue?de.l+de.w*L.x-_[j(L)]*L._width:W.width*L.x-_[j(L)]*L._width,ye=pe?de.t+de.h*(1-L.y)-_[z(L)]*L._effHeight:W.height*(1-L.y)-_[z(L)]*L._effHeight;var Te=function(ze,tt,it,St){var Ze=ze._fullLayout,ut=Ze[tt],ht=j(ut),Rt=z(ut),Ct=ut.xref==="paper",Wt=ut.yref==="paper";ze._fullLayout._reservedMargin[tt]={};var _t=ut.y<.5?"b":"t",be=ut.x<.5?"l":"r",Ce={r:Ze.width-it,l:it+ut._width,b:Ze.height-St,t:St+ut._effHeight};if(Ct&&Wt)return c.autoMargin(ze,tt,{x:ut.x,y:ut.y,l:ut._width*_[ht],r:ut._width*x[ht],b:ut._effHeight*x[Rt],t:ut._effHeight*_[Rt]});Ct?ze._fullLayout._reservedMargin[tt][_t]=Ce[_t]:Wt||ut.orientation==="v"?ze._fullLayout._reservedMargin[tt][be]=Ce[be]:ze._fullLayout._reservedMargin[tt][_t]=Ce[_t]}(N,U,xe,ye);if(Te)return;if(W.margin.autoexpand){var Ae=xe,Re=ye;xe=ue?u.constrain(xe,0,W.width-L._width):Ae,ye=pe?u.constrain(ye,0,W.height-L._effHeight):Re,xe!==Ae&&u.log("Constrain "+U+".x to make legend fit inside graph"),ye!==Re&&u.log("Constrain "+U+".y to make legend fit inside graph")}m.setTranslate(re,xe,ye)}if(Oe.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var Le=L._effHeight;V&&(Le=L._height),ie.attr({width:L._width-_e,height:Le-_e,x:_e/2,y:_e/2}),m.setTranslate(he,0,0),ae.select("rect").attr({width:L._width-2*_e,height:Le-2*_e,x:_e,y:_e}),m.setClipUrl(he,q,N),m.setRect(Oe,0,0,0,0),delete L._scrollY}else{var $e,Fe,Be,Ue=Math.max(h.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*h.scrollBarMargin,Xe=L._height-L._effHeight,ot=qe/Xe,st=Math.min(L._scrollY||0,Xe);ie.attr({width:L._width-2*_e+h.scrollBarWidth+h.scrollBarMargin,height:L._effHeight-_e,x:_e/2,y:_e/2}),ae.select("rect").attr({width:L._width-2*_e+h.scrollBarWidth+h.scrollBarMargin,height:L._effHeight-2*_e,x:_e,y:_e+st}),m.setClipUrl(he,q,N),We(st,Ue,ot),re.on("wheel",function(){We(st=u.constrain(L._scrollY+s.event.deltaY/qe*Xe,0,Xe),Ue,ot),st!==0&&st!==Xe&&s.event.preventDefault()});var dt=s.behavior.drag().on("dragstart",function(){var ze=s.event.sourceEvent;$e=ze.type==="touchstart"?ze.changedTouches[0].clientY:ze.clientY,Be=st}).on("drag",function(){var ze=s.event.sourceEvent;ze.buttons===2||ze.ctrlKey||(Fe=ze.type==="touchmove"?ze.changedTouches[0].clientY:ze.clientY,st=function(tt,it,St){var Ze=(St-it)/ot+tt;return u.constrain(Ze,0,Xe)}(Be,$e,Fe),We(st,Ue,ot))});Oe.call(dt);var vt=s.behavior.drag().on("dragstart",function(){var ze=s.event.sourceEvent;ze.type==="touchstart"&&($e=ze.changedTouches[0].clientY,Be=st)}).on("drag",function(){var ze=s.event.sourceEvent;ze.type==="touchmove"&&(Fe=ze.changedTouches[0].clientY,st=function(tt,it,St){var Ze=(it-St)/ot+tt;return u.constrain(Ze,0,Xe)}(Be,$e,Fe),We(st,Ue,ot))});he.call(vt)}function We(ze,tt,it){L._scrollY=N._fullLayout[U]._scrollY=ze,m.setTranslate(he,0,-ze),m.setRect(Oe,L._width,h.scrollBarMargin+ze*it,h.scrollBarWidth,tt),ae.select("rect").attr("y",_e+ze)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),p.init({element:re.node(),gd:N,prepFn:function(){var ze=m.getTranslate(re);K=ze.x,ne=ze.y},moveFn:function(ze,tt){var it=K+ze,St=ne+tt;m.setTranslate(re,it,St),ce=p.align(it,L._width,de.l,de.l+de.w,L.xanchor),we=p.align(St+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&we!==void 0){var ze={};ze[U+".x"]=ce,ze[U+".y"]=we,d.call("_guiRelayout",N,ze)}},clickFn:function(ze,tt){var it=Y.selectAll("g.traces").filter(function(){var St=this.getBoundingClientRect();return tt.clientX>=St.left&&tt.clientX<=St.right&&tt.clientY>=St.top&&tt.clientY<=St.bottom});it.size()>0&&P(N,re,it,ze,tt)}}))}],N)}}function D(N,R,q){var Y=N[0],L=Y.width,W=R.entrywidthmode,U=Y.trace.legendwidth||R.entrywidth;return W==="fraction"?R._maxWidth*U:q+(U||L)}function P(N,R,q,Y,L){var W=q.data()[0][0].trace,U={event:L,node:q.node(),curveNumber:W.index,expandedIndex:W._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};W._group&&(U.group=W._group),d.traceIs(W,"pie-like")&&(U.label=q.datum()[0].label);var V=f.triggerHandler(N,"plotly_legendclick",U);if(Y===1){if(V===!1)return;R._clickTimeout=setTimeout(function(){N._fullLayout&&v(q,N,Y)},N._context.doubleClickDelay)}else Y===2&&(R._clickTimeout&&clearTimeout(R._clickTimeout),N._legendMouseDownTime=0,f.triggerHandler(N,"plotly_legenddoubleclick",U)!==!1&&V!==!1&&v(q,N,Y))}function E(N,R,q){var Y,L,W=B(q),U=N.data()[0][0],V=U.trace,te=d.traceIs(V,"pie-like"),ee=!q._inHover&&R._context.edits.legendText&&!te,H=q._maxNameLength;U.groupTitle?(Y=U.groupTitle.text,L=U.groupTitle.font):(L=q.font,q.entries?Y=U.text:(Y=te?U.label:V.name,V._meta&&(Y=u.templateString(Y,V._meta))));var Z=u.ensureSingle(N,"text",W+"text");Z.attr("text-anchor","start").call(m.font,L).text(ee?I(Y,H):Y);var G=q.itemwidth+2*h.itemGap;b.positionText(Z,G,0),ee?Z.call(b.makeEditable,{gd:R,text:Y}).call(F,N,R,q).on("edit",function(X){this.text(I(X,H)).call(F,N,R,q);var Q=U.trace._fullInput||{},re={};if(d.hasTransform(Q,"groupby")){var ae=d.getTransformIndices(Q,"groupby"),ie=ae[ae.length-1],se=u.keyedContainer(Q,"transforms["+ie+"].styles","target","value.name");se.set(U.trace._group,X),re=se.constructUpdate()}else re.name=X;return Q._isShape?d.call("_guiRelayout",R,"shapes["+V.index+"].name",re.name):d.call("_guiRestyle",R,re,V.index)}):F(Z,N,R,q)}function I(N,R){var q=Math.max(4,R);if(N&&N.trim().length>=q/2)return N;for(var Y=q-(N=N||"").length;Y>0;Y--)N+=" ";return N}function A(N,R,q){var Y,L=R._context.doubleClickDelay,W=1,U=u.ensureSingle(N,"rect",q+"toggle",function(V){R._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(g.fill,"rgba(0,0,0,0)")});R._context.staticPlot||(U.on("mousedown",function(){(Y=new Date().getTime())-R._legendMouseDownTimeL&&(W=Math.max(W-1,1)),P(R,V,N,W,s.event)}}))}function F(N,R,q,Y,L){Y._inHover&&N.attr("data-notex",!0),b.convertToTspans(N,q,function(){(function(W,U,V,te){var ee=W.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var H=W.select("g[class*=math-group]"),Z=H.node(),G=B(V);V||(V=U._fullLayout[G]);var X,Q,re=V.borderwidth,ae=(te===C?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*w;if(Z){var ie=m.bBox(Z);X=ie.height,Q=ie.width,te===C?m.setTranslate(H,re,re+.75*X):m.setTranslate(H,0,.25*X)}else{var se="."+G+(te===C?"title":"")+"text",he=W.select(se),Se=b.lineCount(he),Oe=he.node();if(X=ae*Se,Q=Oe?m.bBox(Oe).width:0,te===C)V.title.side==="left"&&(Q+=2*h.itemGap),b.positionText(he,re+h.titlePad,re+ae);else{var Pe=2*h.itemGap+V.itemwidth;ee.groupTitle&&(Pe=h.itemGap,Q-=V.itemwidth),b.positionText(he,Pe,-ae*((Se-1)/2-.3))}}te===C?(V._titleWidth=Q,V._titleHeight=X):(ee.lineHeight=ae,ee.height=Math.max(X,16)+3,ee.width=Q)}else W.remove()})(R,q,Y,L)})}function j(N){return u.isRightAnchor(N)?"right":u.isCenterAnchor(N)?"center":"left"}function z(N){return u.isBottomAnchor(N)?"bottom":u.isMiddleAnchor(N)?"middle":"top"}function B(N){return N._id||"legend"}i.exports=function(N,R){if(R)O(N,R);else{var q=N._fullLayout,Y=q._legends;q._infolayer.selectAll('[class^="legend"]').each(function(){var U=s.select(this),V=U.attr("class").split(" ")[0];V.match(M)&&Y.indexOf(V)===-1&&U.remove()});for(var L=0;Lj&&(F=j)}I[p][0]._groupMinRank=F,I[p][0]._preGroupSort=p}var z=function(Y,L){return Y.trace.legendrank-L.trace.legendrank||Y._preSort-L._preSort};for(I.forEach(function(Y,L){Y[0]._preGroupSort=L}),I.sort(function(Y,L){return Y[0]._groupMinRank-L[0]._groupMinRank||Y[0]._preGroupSort-L[0]._preGroupSort}),p=0;pk?k:x}i.exports=function(x,T,k){var S=T._fullLayout;k||(k=S.legend);var C=k.itemsizing==="constant",M=k.itemwidth,O=(M+2*h.itemGap)/2,D=d(O,0),P=function(A,F,j,z){var B;if(A+1)B=A;else{if(!(F&&F.width>0))return 0;B=F.width}return C?z:Math.min(B,j)};function E(A,F,j){var z=A[0].trace,B=z.marker||{},N=B.line||{},R=j?z.visible&&z.type===j:u.traceIs(z,"bar"),q=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(R?[A]:[]);q.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),q.exit().remove(),q.each(function(Y){var L=s.select(this),W=Y[0],U=P(W.mlw,B.line,5,2);L.style("stroke-width",U+"px");var V=W.mcc;if(!k._inHover&&"mc"in W){var te=m(B),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=f.tryColorscale(B,"")(ee)}var H=V||W.mc||B.color,Z=B.pattern,G=Z&&f.getPatternAttr(Z.shape,0,"");if(G){var X=f.getPatternAttr(Z.bgcolor,0,null),Q=f.getPatternAttr(Z.fgcolor,0,null),re=Z.fgopacity,ae=_(Z.size,8,10),ie=_(Z.solidity,.5,1),se="legend-"+z.uid;L.call(f.pattern,"legend",T,se,G,ae,ie,V,Z.fillmode,X,Q,re)}else L.call(p.fill,H);U&&p.stroke(L,W.mlc||N.color)})}function I(A,F,j){var z=A[0],B=z.trace,N=j?B.visible&&B.type===j:u.traceIs(B,j),R=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(N?[A]:[]);if(R.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),R.exit().remove(),R.size()){var q=B.marker||{},Y=P(v(q.line.width,z.pts),q.line,5,2),L="pieLike",W=c.minExtend(B,{marker:{line:{width:Y}}},L),U=c.minExtend(z,{trace:W},L);b(R,U,W,T)}}x.each(function(A){var F=s.select(this),j=c.ensureSingle(F,"g","layers");j.style("opacity",A[0].trace.opacity);var z=k.valign,B=A[0].lineHeight,N=A[0].height;if(z!=="middle"&&B&&N){var R={top:1,bottom:-1}[z]*(.5*(B-N+3));j.attr("transform",d(0,R))}else j.attr("transform",null);j.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),j.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var q=j.selectAll("g.legendsymbols").data([A]);q.enter().append("g").classed("legendsymbols",!0),q.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var F,j=A[0].trace,z=[];if(j.visible)switch(j.type){case"histogram2d":case"heatmap":z=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":z=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":z=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":z=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":z=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":z=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1}var B=s.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(z);B.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(N,R){var q,Y=s.select(this),L=m(j),W=L.colorscale,U=L.reversescale;if(W){if(!F){var V=W.length;q=R===0?W[U?V-1:0][1]:R===1?W[U?0:V-1][1]:W[Math.floor((V-1)/2)][1]}}else{var te=j.vertexcolor||j.facecolor||j.color;q=c.isArrayOrTypedArray(te)?te[R]||te[0]:te}Y.attr("d",N[0]),q?Y.call(p.fill,q):Y.call(function(ee){if(ee.size()){var H="legendfill-"+j.uid;f.gradient(ee,T,H,y(U,F==="radial"),W,"fill")}})})}).each(function(A){var F=A[0].trace,j=F.type==="waterfall";if(A[0]._distinct&&j){var z=A[0].trace[A[0].dir].marker;return A[0].mc=z.color,A[0].mlw=z.line.width,A[0].mlc=z.line.color,E(A,this,"waterfall")}var B=[];F.visible&&j&&(B=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=s.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(B);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(R){var q=s.select(this),Y=F[R[0]].marker,L=P(void 0,Y.line,5,2);q.attr("d",R[1]).style("stroke-width",L+"px").call(p.fill,Y.color),L&&q.call(p.stroke,Y.line.color)})}).each(function(A){E(A,this,"funnel")}).each(function(A){E(A,this)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendbox").data(F.visible&&u.traceIs(F,"box-violin")?[A]:[]);j.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),j.exit().remove(),j.each(function(){var z=s.select(this);if(F.boxpoints!=="all"&&F.points!=="all"||p.opacity(F.fillcolor)!==0||p.opacity((F.line||{}).color)!==0){var B=P(void 0,F.line,5,2);z.style("stroke-width",B+"px").call(p.fill,F.fillcolor),B&&p.stroke(z,F.line.color)}else{var N=c.minExtend(F,{marker:{size:C?12:c.constrain(F.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});j.call(f.pointStyle,N,T)}})}).each(function(A){I(A,this,"funnelarea")}).each(function(A){I(A,this,"pie")}).each(function(A){var F,j,z=w(A),B=z.showFill,N=z.showLine,R=z.showGradientLine,q=z.showGradientFill,Y=z.anyFill,L=z.anyLine,W=A[0],U=W.trace,V=m(U),te=V.colorscale,ee=V.reversescale,H=g.hasMarkers(U)||!Y?"M5,0":L?"M5,-2":"M5,-3",Z=s.select(this),G=Z.select(".legendfill").selectAll("path").data(B||q?[A]:[]);if(G.enter().append("path").classed("js-fill",!0),G.exit().remove(),G.attr("d",H+"h"+M+"v6h-"+M+"z").call(function(re){if(re.size())if(B)f.fillGroupStyle(re,T);else{var ae="legendfill-"+U.uid;f.gradient(re,T,ae,y(ee),te,"fill")}}),N||R){var X=P(void 0,U.line,10,5);j=c.minExtend(U,{line:{width:X}}),F=[c.minExtend(W,{trace:j})]}var Q=Z.select(".legendlines").selectAll("path").data(N||R?[F]:[]);Q.enter().append("path").classed("js-line",!0),Q.exit().remove(),Q.attr("d",H+(R?"l"+M+",0.0001":"h"+M)).call(N?f.lineGroupStyle:function(re){if(re.size()){var ae="legendline-"+U.uid;f.lineGroupStyle(re),f.gradient(re,T,ae,y(ee),te,"stroke")}})}).each(function(A){var F,j,z=w(A),B=z.anyFill,N=z.anyLine,R=z.showLine,q=z.showMarker,Y=A[0],L=Y.trace,W=!q&&!N&&!B&&g.hasText(L);function U(Q,re,ae,ie){var se=c.nestedProperty(L,Q).get(),he=c.isArrayOrTypedArray(se)&&re?re(se):se;if(C&&he&&ie!==void 0&&(he=ie),ae){if(heae[1])return ae[1]}return he}function V(Q){return Y._distinct&&Y.index&&Q[Y.index]?Q[Y.index]:Q[0]}if(q||W||R){var te={},ee={};if(q){te.mc=U("marker.color",V),te.mx=U("marker.symbol",V),te.mo=U("marker.opacity",c.mean,[.2,1]),te.mlc=U("marker.line.color",V),te.mlw=U("marker.line.width",c.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var H=U("marker.size",c.mean,[2,16],12);te.ms=H,ee.marker.size=H}R&&(ee.line={width:U("line.width",V,[0,10],5)}),W&&(te.tx="Aa",te.tp=U("textposition",V),te.ts=10,te.tc=U("textfont.color",V),te.tf=U("textfont.family",V)),F=[c.minExtend(Y,te)],(j=c.minExtend(L,ee)).selectedpoints=null,j.texttemplate=null}var Z=s.select(this).select("g.legendpoints"),G=Z.selectAll("path.scatterpts").data(q?F:[]);G.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),G.exit().remove(),G.call(f.pointStyle,j,T),q&&(F[0].mrc=3);var X=Z.selectAll("g.pointtext").data(W?F:[]);X.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),X.exit().remove(),X.selectAll("text").call(f.textPointStyle,j,T)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(F.visible&&F.type==="candlestick"?[A,A]:[]);j.enter().append("path").classed("legendcandle",!0).attr("d",function(z,B){return B?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(z,B){var N=s.select(this),R=F[B?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("stroke-width",q+"px").call(p.fill,R.fillcolor),q&&p.stroke(N,R.line.color)})}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(F.visible&&F.type==="ohlc"?[A,A]:[]);j.enter().append("path").classed("legendohlc",!0).attr("d",function(z,B){return B?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(z,B){var N=s.select(this),R=F[B?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("fill","none").call(f.dashLine,R.line.dash,q),q&&p.stroke(N,R.line.color)})})}},42068:function(i,o,a){a(93348),i.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(i,o,a){var s=a(73972),u=a(74875),c=a(41675),d=a(24255),f=a(34031).eraseActiveShape,p=a(71828),m=p._,g=i.exports={};function b(S,C){var M,O,D=C.currentTarget,P=D.getAttribute("data-attr"),E=D.getAttribute("data-val")||!0,I=S._fullLayout,A={},F=c.list(S,null,!0),j=I._cartesianSpikesEnabled;if(P==="zoom"){var z,B=E==="in"?.5:2,N=(1+B)/2,R=(1-B)/2;for(O=0;O1?(H=["toggleHover"],Z=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],H=["hoverClosestGeo"],Z=["resetGeo"]):I?(H=["hoverClosest3d"],Z=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],H=["toggleHover"],Z=["resetViewMapbox"]):z?H=["hoverClosestGl2d"]:F?H=["hoverClosestPie"]:Y?(H=["hoverClosestCartesian","hoverCompareCartesian"],Z=["resetViewSankey"]):H=["toggleHover"],E&&(H=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var he=0;he0)){var T=function(S,C,M){for(var O=M.filter(function(I){return C[I].anchor===S._id}),D=0,P=0;P=Oe.max)he=re[Se+1];else if(se=Oe.pmax)he=re[Se+1];else if(seSe._length||pe+Fe<0)return;Re=ue+Fe,Le=pe+Fe;break;case Me:if($e="col-resize",ue+Fe>Se._length)return;Re=ue+Fe,Le=pe;break;case ce:if($e="col-resize",pe+Fe<0)return;Re=ue,Le=pe+Fe;break;default:$e="ew-resize",Re=_e,Le=_e+Fe}if(Le=0;z--){var B=C.append("path").attr(O).style("opacity",z?.1:D).call(d.stroke,E).call(d.fill,P).call(f.dashLine,z?"solid":A,z?4+I:I);if(y(B,_,k),F){var N=p(_.layout,"selections",k);B.style({cursor:"move"});var R={element:B.node(),plotinfo:S,gd:_,editHelpers:N,isActiveSelection:!0},q=s(M,_);u(q,B,R)}else B.style("pointer-events",z?"all":"none");j[z]=B}var Y=j[0];j[1].node().addEventListener("click",function(){return function(L,W){if(v(L)){var U=+W.node().getAttribute("data-index");if(U>=0){if(U===L._fullLayout._activeSelectionIndex)return void w(L);L._fullLayout._activeSelectionIndex=U,L._fullLayout._deactivateSelection=w,b(L)}}}(_,Y)})}(_._fullLayout._selectionLayer)}function y(_,x,T){var k=T.xref+T.yref;f.setClipUrl(_,"clip"+x._fullLayout._uid+k,x)}function w(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(c(_),delete _._fullLayout._activeSelectionIndex,b(_))}i.exports={draw:b,drawOne:h,activateLastSelection:function(_){if(v(_)){var x=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=x,_._fullLayout._deactivateSelection=w,b(_)}}}},53777:function(i,o,a){var s=a(79952).P,u=a(1426).extendFlat;i.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:u({},s,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(i){i.exports=function(o,a,s){s("newselection.mode"),s("newselection.line.width")&&(s("newselection.line.color"),s("newselection.line.dash")),s("activeselection.fillcolor"),s("activeselection.opacity")}},35855:function(i,o,a){var s=a(64505).selectMode,u=a(51873).clearOutline,c=a(60165),d=c.readPaths,f=c.writePaths,p=c.fixDatesForPaths;i.exports=function(m,g){if(m.length){var b=m[0][0];if(b){var v=b.getAttribute("d"),h=g.gd,y=h._fullLayout.newselection,w=g.plotinfo,_=w.xaxis,x=w.yaxis,T=g.isActiveSelection,k=g.dragmode,S=(h.layout||{}).selections||[];if(!s(k)&&T!==void 0){var C=h._fullLayout._activeSelectionIndex;if(C-1,St=[];if(function(Ct){return Ct&&Array.isArray(Ct)&&Ct[0].hoverOnBox!==!0}(tt)){X(Te,Ae,Fe);var Ze=function(Ct,Wt){var _t,be,Ce=Ct[0],Ge=-1,He=[];for(be=0;be0?function(Ct,Wt){var _t,be,Ce,Ge=[];for(Ce=0;Ce0&&Ge.push(_t);if(Ge.length===1&&Ge[0]===Wt.searchInfo&&(be=Wt.searchInfo.cd[0].trace).selectedpoints.length===Wt.pointNumbers.length){for(Ce=0;Ce1||(be+=Wt.selectedpoints.length)>1))return!1;return be===1}(Ue)&&(dt=se(Ze))){for(Be&&Be.remove(),ze=0;ze=0})($e)&&$e._fullLayout._deactivateShape($e),function(st){return st._fullLayout._activeSelectionIndex>=0}($e)&&$e._fullLayout._deactivateSelection($e);var Fe=$e._fullLayout._zoomlayer,Be=h(Re),Ue=w(Re);if(Be||Ue){var qe,Xe,ot=Fe.selectAll(".select-outline-"+Le.id);ot&&$e._fullLayout._outlining&&(Be&&(qe=O(ot,Te)),qe&&c.call("_guiRelayout",$e,{shapes:qe}),Ue&&!te(Te)&&(Xe=D(ot,Te)),Xe&&($e._fullLayout._noEmitSelectedAtStart=!0,c.call("_guiRelayout",$e,{selections:Xe}).then(function(){Ae&&P($e)})),$e._fullLayout._outlining=!1)}Le.selection={},Le.selection.selectionDefs=Te.selectionDefs=[],Le.selection.mergedPolygons=Te.mergedPolygons=[]}function re(Te){return Te._id}function ae(Te,Ae,Re,Le){if(!Te.calcdata)return[];var $e,Fe,Be,Ue=[],qe=Ae.map(re),Xe=Re.map(re);for(Be=0;Be0?Le[0]:Re;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf($e)>-1}function he(Te,Ae,Re){var Le,$e;for(Le=0;Le-1&&Ae;if(!Fe&&Ae){var Ot=ne(Te,!0);if(Ot.length){var At=Ot[0].xref,Nt=Ot[0].yref;if(At&&Nt){var $t=ue(Ot);pe([j(Te,At,"x"),j(Te,Nt,"y")])(zt,$t)}}Te._fullLayout._noEmitSelectedAtStart?Te._fullLayout._noEmitSelectedAtStart=!1:kt&&xe(Te,zt),dt._reselect=!1}if(!Fe&&dt._deselect){var Bt=dt._deselect;(function(Xt,Zt,qt){for(var Ht=0;Ht=0)vt._fullLayout._deactivateShape(vt);else if(!Xe){var $t=We.clickmode;F.done(It).then(function(){if(F.clear(It),At===2){for(jt.remove(),Ce=0;Ce-1&&ee(Nt,vt,Le.xaxes,Le.yaxes,Le.subplot,Le,jt),$t==="event"&&xe(vt,void 0);p.click(vt,Nt,St.id)}).catch(E.error)}},Le.doneFn=function(){xt.remove(),F.done(It).then(function(){F.clear(It),!ze&&be&&Le.selectionDefs&&(be.subtract=Mt,Le.selectionDefs.push(be),Le.mergedPolygons.length=0,[].push.apply(Le.mergedPolygons,_t)),(ze||Xe)&&Q(Le,ze),Le.doneFnCompleted&&Le.doneFnCompleted(zt),ot&&xe(vt,He)}).catch(E.error)}},clearOutline:k,clearSelectionsCache:Q,selectOnClick:ee}},89827:function(i,o,a){var s=a(50215),u=a(41940),c=a(82196).line,d=a(79952).P,f=a(1426).extendFlat,p=a(44467).templatedArray,m=(a(24695),a(9012)),g=a(5386).R,b=a(37281);i.exports=p("shape",{visible:f({},m.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:f({},m.legend,{editType:"calc+arraydraw"}),legendgroup:f({},m.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:f({},m.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:u({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:f({},m.legendrank,{editType:"calc+arraydraw"}),legendwidth:f({},m.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:f({},s.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:f({},s.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:f({},c.color,{editType:"arraydraw"}),width:f({},c.width,{editType:"calc+arraydraw"}),dash:f({},d,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:g({},{keys:Object.keys(b)}),font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(i,o,a){var s=a(71828),u=a(89298),c=a(21459),d=a(30477);function f(b){return m(b.line.width,b.xsizemode,b.x0,b.x1,b.path,!1)}function p(b){return m(b.line.width,b.ysizemode,b.y0,b.y1,b.path,!0)}function m(b,v,h,y,w,_){var x=b/2,T=_;if(v==="pixel"){var k=w?d.extractPathCoords(w,_?c.paramIsY:c.paramIsX):[h,y],S=s.aggNums(Math.max,null,k),C=s.aggNums(Math.min,null,k),M=C<0?Math.abs(C)+x:x,O=S>0?S+x:x;return{ppad:x,ppadplus:T?M:O,ppadminus:T?O:M}}return{ppad:x}}function g(b,v,h,y,w){var _=b.type==="category"||b.type==="multicategory"?b.r2c:b.d2c;if(v!==void 0)return[_(v),_(h)];if(y){var x,T,k,S,C=1/0,M=-1/0,O=y.match(c.segmentRE);for(b.type==="date"&&(_=d.decodeDate(_)),x=0;xM&&(M=S)));return M>=C?[C,M]:void 0}}i.exports=function(b){var v=b._fullLayout,h=s.filterVisible(v.shapes);if(h.length&&b._fullData.length)for(var y=0;y=re?ae-se:se-ae,-180/Math.PI*Math.atan2(he,Se)}(M,D,O,P):0),A.call(function(re){return re.call(d.font,I).attr({}),c.convertToTspans(re,v),re});var Z=function(re,ae,ie,se,he,Se,Oe){var Pe,Me,ce,we,K=he.label.textposition,ne=he.label.textangle,de=he.label.padding,_e=he.type,ue=Math.PI/180*Se,pe=Math.sin(ue),xe=Math.cos(ue),ye=he.label.xanchor,Te=he.label.yanchor;if(_e==="line"){K==="start"?(Pe=re,Me=ae):K==="end"?(Pe=ie,Me=se):(Pe=(re+ie)/2,Me=(ae+se)/2),ye==="auto"&&(ye=K==="start"?ne==="auto"?ie>re?"left":iere?"right":iere?"right":iere?"left":ie1&&(Pe.length!==2||Pe[1][0]!=="Z")&&(Y===0&&(Pe[0][0]="M"),E[q]=Pe,z(),B())}}()}}function re(he,Se){(function(Oe,Pe){if(E.length)for(var Me=0;MeMe?(K=Oe,ue="y0",ne=Me,pe="y1"):(K=Me,ue="y1",ne=Oe,pe="y0"),ut(_t),Ct(se,ae),function(be,Ce,Ge){var He=Ce.xref,et=Ce.yref,Ke=d.getFromId(Ge,He),Ye=d.getFromId(Ge,et),nt="";He==="paper"||Ke.autorange||(nt+=He),et==="paper"||Ye.autorange||(nt+=et),v.setClipUrl(be,nt?"clip"+Ge._fullLayout._uid+nt:null,Ge)}(re,ae,Q),Ze.moveFn=Ae==="move"?ht:Rt,Ze.altKey=_t.altKey)},doneFn:function(){S(Q)||(w(re),Wt(se),O(re,Q,ae),u.call("_guiRelayout",Q,he.getUpdateObj()))},clickFn:function(){S(Q)||Wt(se)}};function ut(_t){if(S(Q))Ae=null;else if(Be)Ae=_t.target.tagName==="path"?"move":_t.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var be=Ze.element.getBoundingClientRect(),Ce=be.right-be.left,Ge=be.bottom-be.top,He=_t.clientX-be.left,et=_t.clientY-be.top,Ke=!Ue&&Ce>Re&&Ge>Le&&!_t.shiftKey?y.getCursor(He/Ce,1-et/Ge):"move";w(re,Ke),Ae=Ke.split("-")[0]}}function ht(_t,be){if(ae.type==="path"){var Ce=function(et){return et},Ge=Ce,He=Ce;$e?qe("xanchor",ae.xanchor=tt(ce+_t)):(Ge=function(et){return tt(We(et)+_t)},ot&&ot.type==="date"&&(Ge=x.encodeDate(Ge))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(He=function(et){return it(ze(et)+be)},dt&&dt.type==="date"&&(He=x.encodeDate(He))),qe("path",ae.path=D(Te,Ge,He))}else $e?qe("xanchor",ae.xanchor=tt(ce+_t)):(qe("x0",ae.x0=tt(Se+_t)),qe("x1",ae.x1=tt(Pe+_t))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(qe("y0",ae.y0=it(Oe+be)),qe("y1",ae.y1=it(Me+be)));re.attr("d",T(Q,ae)),Ct(se,ae),m(Q,ie,ae,Xe)}function Rt(_t,be){if(Ue){var Ce=function(mt){return mt},Ge=Ce,He=Ce;$e?qe("xanchor",ae.xanchor=tt(ce+_t)):(Ge=function(mt){return tt(We(mt)+_t)},ot&&ot.type==="date"&&(Ge=x.encodeDate(Ge))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(He=function(mt){return it(ze(mt)+be)},dt&&dt.type==="date"&&(He=x.encodeDate(He))),qe("path",ae.path=D(Te,Ge,He))}else if(Be){if(Ae==="resize-over-start-point"){var et=Se+_t,Ke=Fe?Oe-be:Oe+be;qe("x0",ae.x0=$e?et:tt(et)),qe("y0",ae.y0=Fe?Ke:it(Ke))}else if(Ae==="resize-over-end-point"){var Ye=Pe+_t,nt=Fe?Me-be:Me+be;qe("x1",ae.x1=$e?Ye:tt(Ye)),qe("y1",ae.y1=Fe?nt:it(nt))}}else{var ct=function(mt){return Ae.indexOf(mt)!==-1},yt=ct("n"),rt=ct("s"),Ft=ct("w"),Yt=ct("e"),Mt=yt?K+be:K,jt=rt?ne+be:ne,Lt=Ft?de+_t:de,gt=Yt?_e+_t:_e;Fe&&(yt&&(Mt=K-be),rt&&(jt=ne-be)),(!Fe&&jt-Mt>Le||Fe&&Mt-jt>Le)&&(qe(ue,ae[ue]=Fe?Mt:it(Mt)),qe(pe,ae[pe]=Fe?jt:it(jt))),gt-Lt>Re&&(qe(xe,ae[xe]=$e?Lt:tt(Lt)),qe(ye,ae[ye]=$e?gt:tt(gt)))}re.attr("d",T(Q,ae)),Ct(se,ae),m(Q,ie,ae,Xe)}function Ct(_t,be){($e||Fe)&&function(){var Ce=be.type!=="path",Ge=_t.selectAll(".visual-cue").data([0]);Ge.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var He=We($e?be.xanchor:c.midRange(Ce?[be.x0,be.x1]:x.extractPathCoords(be.path,_.paramIsX))),et=ze(Fe?be.yanchor:c.midRange(Ce?[be.y0,be.y1]:x.extractPathCoords(be.path,_.paramIsY)));if(He=x.roundPositionForSharpStrokeRendering(He,1),et=x.roundPositionForSharpStrokeRendering(et,1),$e&&Fe){var Ke="M"+(He-1-1)+","+(et-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ge.attr("d",Ke)}else if($e){var Ye="M"+(He-1-1)+","+(et-9-1)+"v18 h2 v-18 Z";Ge.attr("d",Ye)}else{var nt="M"+(He-9-1)+","+(et-1-1)+"h18 v2 h-18 Z";Ge.attr("d",nt)}}()}function Wt(_t){_t.selectAll(".visual-cue").remove()}y.init(Ze),St.node().onmousemove=ut}(E,Z,F,I,B,ee):F.editable===!0&&Z.style("pointer-events",V||b.opacity(Y)*q<=.5?"stroke":"all");Z.node().addEventListener("click",function(){return function(Q,re){if(C(Q)){var ae=+re.node().getAttribute("data-index");if(ae>=0){if(ae===Q._fullLayout._activeShapeIndex)return void P(Q);Q._fullLayout._activeShapeIndex=ae,Q._fullLayout._deactivateShape=P,k(Q)}}}(E,Z)})}F._input&&F.visible===!0&&(F.layer!=="below"?z(E._fullLayout._shapeUpperLayer):F.xref==="paper"||F.yref==="paper"?z(E._fullLayout._shapeLowerLayer):j._hadPlotinfo?z((j.mainplotinfo||j).shapelayer):z(E._fullLayout._shapeLowerLayer))}function O(E,I,A){var F=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(E,F?"clip"+I._fullLayout._uid+F:null,I)}function D(E,I,A){return E.replace(_.segmentRE,function(F){var j=0,z=F.charAt(0),B=_.paramIsX[z],N=_.paramIsY[z],R=_.numParams[z];return z+F.substr(1).replace(_.paramRE,function(q){return j>=R||(B[j]?q=I(q):N[j]&&(q=A(q)),j++),q})})}function P(E){C(E)&&E._fullLayout._activeShapeIndex>=0&&(g(E),delete E._fullLayout._activeShapeIndex,k(E))}i.exports={draw:k,drawOne:M,eraseActiveShape:function(E){if(C(E)){g(E);var I=E._fullLayout._activeShapeIndex,A=(E.layout||{}).shapes||[];if(I0&&MH&&(G="X"),G});return U>H&&(Z=Z.replace(/[\s,]*X.*/,""),u.log("Ignoring extra params in segment "+W)),V+Z})}(f,m,b);if(f.xsizemode==="pixel"){var M=m(f.xanchor);v=M+f.x0,h=M+f.x1}else v=m(f.x0),h=m(f.x1);if(f.ysizemode==="pixel"){var O=b(f.yanchor);y=O-f.y0,w=O-f.y1}else y=b(f.y0),w=b(f.y1);if(_==="line")return"M"+v+","+y+"L"+h+","+w;if(_==="rect")return"M"+v+","+y+"H"+h+"V"+w+"H"+v+"Z";var D=(v+h)/2,P=(y+w)/2,E=Math.abs(D-v),I=Math.abs(P-y),A="A"+E+","+I,F=D+E+","+P;return"M"+F+A+" 0 1,1 "+D+","+(P-I)+A+" 0 0,1 "+F+"Z"}},89853:function(i,o,a){var s=a(34031);i.exports={moduleType:"component",name:"shapes",layoutAttributes:a(89827),supplyLayoutDefaults:a(84726),supplyDrawNewShapeDefaults:a(45547),includeBasePlot:a(76325)("shapes"),calcAutorange:a(5627),draw:s.draw,drawOne:s.drawOne}},37281:function(i){function o(c,d){return d?d.d2l(c):c}function a(c,d){return d?d.l2d(c):c}function s(c,d){return o(c.x1,d)-o(c.x0,d)}function u(c,d,f){return o(c.y1,f)-o(c.y0,f)}i.exports={x0:function(c){return c.x0},x1:function(c){return c.x1},y0:function(c){return c.y0},y1:function(c){return c.y1},slope:function(c,d,f){return c.type!=="line"?void 0:u(c,0,f)/s(c,d)},dx:s,dy:u,width:function(c,d){return Math.abs(s(c,d))},height:function(c,d,f){return Math.abs(u(c,0,f))},length:function(c,d,f){return c.type!=="line"?void 0:Math.sqrt(Math.pow(s(c,d),2)+Math.pow(u(c,0,f),2))},xcenter:function(c,d){return a((o(c.x1,d)+o(c.x0,d))/2,d)},ycenter:function(c,d,f){return a((o(c.y1,f)+o(c.y0,f))/2,f)}}},75067:function(i,o,a){var s=a(41940),u=a(35025),c=a(1426).extendDeepAll,d=a(30962).overrideAll,f=a(85594),p=a(44467).templatedArray,m=a(98292),g=p("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:g,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:c(u({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:f.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:s({})},font:s({}),activebgcolor:{valType:"color",dflt:m.gripBgActiveColor},bgcolor:{valType:"color",dflt:m.railBgColor},bordercolor:{valType:"color",dflt:m.railBorderColor},borderwidth:{valType:"number",min:0,dflt:m.railBorderWidth},ticklen:{valType:"number",min:0,dflt:m.tickLength},tickcolor:{valType:"color",dflt:m.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:m.minorTickLength}}),"arraydraw","from-root")},98292:function(i){i.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(i,o,a){var s=a(71828),u=a(85501),c=a(75067),d=a(98292).name,f=c.steps;function p(g,b,v){function h(T,k){return s.coerce(g,b,c,T,k)}for(var y=u(g,b,{name:"steps",handleItemDefaults:m}),w=0,_=0;_0&&(U=U.transition().duration(N.transition.duration).ease(N.transition.easing)),U.attr("transform",p(W-.5*b.gripWidth,N._dims.currentValueTotalHeight))}}function A(B,N){var R=B._dims;return R.inputAreaStart+b.stepInset+(R.inputAreaLength-2*b.stepInset)*Math.min(1,Math.max(0,N))}function F(B,N){var R=B._dims;return Math.min(1,Math.max(0,(N-b.stepInset-R.inputAreaStart)/(R.inputAreaLength-2*b.stepInset-2*R.inputAreaStart)))}function j(B,N,R){var q=R._dims,Y=f.ensureSingle(B,"rect",b.railTouchRectClass,function(L){L.call(P,N,B,R).style("pointer-events","all")});Y.attr({width:q.inputAreaLength,height:Math.max(q.inputAreaWidth,b.tickOffset+R.ticklen+q.labelHeight)}).call(c.fill,R.bgcolor).attr("opacity",0),d.setTranslate(Y,0,q.currentValueTotalHeight)}function z(B,N){var R=N._dims,q=R.inputAreaLength-2*b.railInset,Y=f.ensureSingle(B,"rect",b.railRectClass);Y.attr({width:q,height:b.railWidth,rx:b.railRadius,ry:b.railRadius,"shape-rendering":"crispEdges"}).call(c.stroke,N.bordercolor).call(c.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),d.setTranslate(Y,b.railInset,.5*(R.inputAreaWidth-b.railWidth)+R.currentValueTotalHeight)}i.exports=function(B){var N=B._context.staticPlot,R=B._fullLayout,q=function(te,ee){for(var H=te[b.name],Z=[],G=0;G0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),u.autoMargin(B,_(te))}if(Y.enter().append("g").classed(b.containerClassName,!0).style("cursor",N?null:"ew-resize"),Y.exit().each(function(){s.select(this).selectAll("g."+b.groupClassName).each(L)}).remove(),q.length!==0){var W=Y.selectAll("g."+b.groupClassName).data(q,x);W.enter().append("g").classed(b.groupClassName,!0),W.exit().each(L).remove();for(var U=0;U0||Pe<0){var K={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[O.side];Z.attr("transform",p(K[0],K[1]))}}}return U.call(V),Y&&(z?U.on(".opacity",null):(A=0,F=!0,U.text(C).on("mouseover.opacity",function(){s.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){s.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),U.call(b.makeEditable,{gd:w}).on("edit",function(H){M!==void 0?d.call("_guiRestyle",w,S,H,M):d.call("_guiRelayout",w,S,H)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(H){this.text(H||" ").call(b.positionText,D.x,D.y)})),U.classed("js-placeholder",F),E}}},7163:function(i,o,a){var s=a(41940),u=a(22399),c=a(1426).extendFlat,d=a(30962).overrideAll,f=a(35025),p=a(44467).templatedArray,m=p("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:m,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:c(f({editType:"arraydraw"}),{}),font:s({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:u.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(i){i.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(i,o,a){var s=a(71828),u=a(85501),c=a(7163),d=a(75909).name,f=c.buttons;function p(g,b,v){function h(y,w){return s.coerce(g,b,c,y,w)}h("visible",u(g,b,{name:"buttons",handleItemDefaults:m}).length>0)&&(h("active"),h("direction"),h("type"),h("showactive"),h("x"),h("y"),s.noneOrAll(g,b,["x","y"]),h("xanchor"),h("yanchor"),h("pad.t"),h("pad.r"),h("pad.b"),h("pad.l"),s.coerceFont(h,"font",v.font),h("bgcolor",v.paper_bgcolor),h("bordercolor"),h("borderwidth"))}function m(g,b){function v(h,y){return s.coerce(g,b,f,h,y)}v("visible",g.method==="skip"||Array.isArray(g.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}i.exports=function(g,b){u(g,b,{name:d,handleItemDefaults:p})}},13689:function(i,o,a){var s=a(39898),u=a(74875),c=a(7901),d=a(91424),f=a(71828),p=a(63893),m=a(44467).arrayEditor,g=a(18783).LINE_SPACING,b=a(75909),v=a(25849);function h(A){return A._index}function y(A,F){return+A.attr(b.menuIndexAttrName)===F._index}function w(A,F,j,z,B,N,R,q){F.active=R,m(A.layout,b.name,F).applyUpdate("active",R),F.type==="buttons"?x(A,z,null,null,F):F.type==="dropdown"&&(B.attr(b.menuIndexAttrName,"-1"),_(A,z,B,N,F),q||x(A,z,B,N,F))}function _(A,F,j,z,B){var N=f.ensureSingle(F,"g",b.headerClassName,function(U){U.style("pointer-events","all")}),R=B._dims,q=B.active,Y=B.buttons[q]||b.blankHeaderOpts,L={y:B.pad.t,yPad:0,x:B.pad.l,xPad:0,index:0},W={width:R.headerWidth,height:R.headerHeight};N.call(T,B,Y,A).call(E,B,L,W),f.ensureSingle(F,"text",b.headerArrowClassName,function(U){U.attr("text-anchor","end").call(d.font,B.font).text(b.arrowSymbol[B.direction])}).attr({x:R.headerWidth-b.arrowOffsetX+B.pad.l,y:R.headerHeight/2+b.textOffsetY+B.pad.t}),N.on("click",function(){j.call(I,String(y(j,B)?-1:B._index)),x(A,F,j,z,B)}),N.on("mouseover",function(){N.call(M)}),N.on("mouseout",function(){N.call(O,B)}),d.setTranslate(F,R.lx,R.ly)}function x(A,F,j,z,B){j||(j=F).attr("pointer-events","all");var N=function(Z){return+Z.attr(b.menuIndexAttrName)==-1}(j)&&B.type!=="buttons"?[]:B.buttons,R=B.type==="dropdown"?b.dropdownButtonClassName:b.buttonClassName,q=j.selectAll("g."+R).data(f.filterVisible(N)),Y=q.enter().append("g").classed(R,!0),L=q.exit();B.type==="dropdown"?(Y.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var W=0,U=0,V=B._dims,te=["up","down"].indexOf(B.direction)!==-1;B.type==="dropdown"&&(te?U=V.headerHeight+b.gapButtonHeader:W=V.headerWidth+b.gapButtonHeader),B.type==="dropdown"&&B.direction==="up"&&(U=-b.gapButtonHeader+b.gapButton-V.openHeight),B.type==="dropdown"&&B.direction==="left"&&(W=-b.gapButtonHeader+b.gapButton-V.openWidth);var ee={x:V.lx+W+B.pad.l,y:V.ly+U+B.pad.t,yPad:b.gapButton,xPad:b.gapButton,index:0},H={l:ee.x+B.borderwidth,t:ee.y+B.borderwidth};q.each(function(Z,G){var X=s.select(this);X.call(T,B,Z,A).call(E,B,ee),X.on("click",function(){s.event.defaultPrevented||(Z.execute&&(Z.args2&&B.active===G?(w(A,B,0,F,j,z,-1),u.executeAPICommand(A,Z.method,Z.args2)):(w(A,B,0,F,j,z,G),u.executeAPICommand(A,Z.method,Z.args))),A.emit("plotly_buttonclicked",{menu:B,button:Z,active:B.active}))}),X.on("mouseover",function(){X.call(M)}),X.on("mouseout",function(){X.call(O,B),q.call(C,B)})}),q.call(C,B),te?(H.w=Math.max(V.openWidth,V.headerWidth),H.h=ee.y-H.t):(H.w=ee.x-H.l,H.h=Math.max(V.openHeight,V.headerHeight)),H.direction=B.direction,z&&(q.size()?function(Z,G,X,Q,re,ae){var ie,se,he,Se=re.direction,Oe=Se==="up"||Se==="down",Pe=re._dims,Me=re.active;if(Oe)for(se=0,he=0;he0?[0]:[]);if(B.enter().append("g").classed(b.containerClassName,!0).style("cursor","pointer"),B.exit().each(function(){s.select(this).selectAll("g."+b.headerGroupClassName).each(z)}).remove(),j.length!==0){var N=B.selectAll("g."+b.headerGroupClassName).data(j,h);N.enter().append("g").classed(b.headerGroupClassName,!0);for(var R=f.ensureSingle(B,"g",b.dropdownButtonGroupClassName,function(U){U.style("pointer-events","all")}),q=0;qE,F=f.barLength+2*f.barPad,j=f.barWidth+2*f.barPad,z=T,B=S+C;B+j>h&&(B=h-j);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(u.fill,f.barColor),A?(this.hbar=N.attr({rx:f.barRadius,ry:f.barRadius,x:z,y:B,width:F,height:j}),this._hbarXMin=z+F/2,this._hbarTranslateMax=E-F):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var R=C>I,q=f.barWidth+2*f.barPad,Y=f.barLength+2*f.barPad,L=T+k,W=S;L+q>v&&(L=v-q);var U=this.container.selectAll("rect.scrollbar-vertical").data(R?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(u.fill,f.barColor),R?(this.vbar=U.attr({rx:f.barRadius,ry:f.barRadius,x:L,y:W,width:q,height:Y}),this._vbarYMin=W+Y/2,this._vbarTranslateMax=I-Y):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=y-.5,ee=R?w+q+.5:w+.5,H=_-.5,Z=A?x+j+.5:x+.5,G=b._topdefs.selectAll("#"+V).data(A||R?[0]:[]);if(G.exit().remove(),G.enter().append("clipPath").attr("id",V).append("rect"),A||R?(this._clipRect=G.select("rect").attr({x:Math.floor(te),y:Math.floor(H),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Z)-Math.floor(H)}),this.container.call(c.setClipUrl,V,this.gd),this.bg.attr({x:T,y:S,width:k,height:C})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),A||R){var X=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(X);var Q=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault(),s.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(Q),R&&this.vbar.on(".drag",null).call(Q)}this.setTranslate(m,g)},f.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},f.prototype._onBoxDrag=function(){var p=this.translateX,m=this.translateY;this.hbar&&(p-=s.event.dx),this.vbar&&(m-=s.event.dy),this.setTranslate(p,m)},f.prototype._onBoxWheel=function(){var p=this.translateX,m=this.translateY;this.hbar&&(p+=s.event.deltaY),this.vbar&&(m+=s.event.deltaY),this.setTranslate(p,m)},f.prototype._onBarDrag=function(){var p=this.translateX,m=this.translateY;if(this.hbar){var g=p+this._hbarXMin,b=g+this._hbarTranslateMax;p=(d.constrain(s.event.x,g,b)-g)/(b-g)*(this.position.w-this._box.w)}if(this.vbar){var v=m+this._vbarYMin,h=v+this._vbarTranslateMax;m=(d.constrain(s.event.y,v,h)-v)/(h-v)*(this.position.h-this._box.h)}this.setTranslate(p,m)},f.prototype.setTranslate=function(p,m){var g=this.position.w-this._box.w,b=this.position.h-this._box.h;if(p=d.constrain(p||0,0,g),m=d.constrain(m||0,0,b),this.translateX=p,this.translateY=m,this.container.call(c.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-m),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+m-.5)}),this.hbar){var v=p/g;this.hbar.call(c.setTranslate,p+v*this._hbarTranslateMax,m)}if(this.vbar){var h=m/b;this.vbar.call(c.setTranslate,p,m+h*this._vbarTranslateMax)}}},18783:function(i){i.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(i){i.exports={axisRefDescription:function(o,a,s){return["If set to a",o,"axis id (e.g. *"+o+"* or","*"+o+"2*), the `"+o+"` position refers to a",o,"coordinate. If set to *paper*, the `"+o+"`","position refers to the distance from the",a,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",a,"("+s+"). If set to a",o,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",a,"of the domain of that axis: e.g.,","*"+o+"2 domain* refers to the domain of the second",o," axis and a",o,"position of 0.5 refers to the","point between the",a,"and the",s,"of the domain of the","second",o,"axis."].join(" ")}}},31562:function(i){i.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(i){i.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(i){i.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(i){i.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(i,o){o.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],o.STYLE=o.CSS_DECLARATIONS.map(function(a){return a.join(": ")+"; "}).join("")},77922:function(i,o){o.xmlns="http://www.w3.org/2000/xmlns/",o.svg="http://www.w3.org/2000/svg",o.xlink="http://www.w3.org/1999/xlink",o.svgAttrs={xmlns:o.svg,"xmlns:xlink":o.xlink}},8729:function(i,o,a){o.version=a(11506).version,a(7417),a(98847);for(var s=a(73972),u=o.register=s.register,c=a(10641),d=Object.keys(c),f=0;f",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(i,o){o.isLeftAnchor=function(a){return a.xanchor==="left"||a.xanchor==="auto"&&a.x<=.3333333333333333},o.isCenterAnchor=function(a){return a.xanchor==="center"||a.xanchor==="auto"&&a.x>.3333333333333333&&a.x<.6666666666666666},o.isRightAnchor=function(a){return a.xanchor==="right"||a.xanchor==="auto"&&a.x>=.6666666666666666},o.isTopAnchor=function(a){return a.yanchor==="top"||a.yanchor==="auto"&&a.y>=.6666666666666666},o.isMiddleAnchor=function(a){return a.yanchor==="middle"||a.yanchor==="auto"&&a.y>.3333333333333333&&a.y<.6666666666666666},o.isBottomAnchor=function(a){return a.yanchor==="bottom"||a.yanchor==="auto"&&a.y<=.3333333333333333}},26348:function(i,o,a){var s=a(64872),u=s.mod,c=s.modHalf,d=Math.PI,f=2*d;function p(v){return Math.abs(v[1]-v[0])>f-1e-14}function m(v,h){return c(h-v,f)}function g(v,h){if(p(h))return!0;var y,w;h[0](w=u(w,f))&&(w+=f);var _=u(v,f),x=_+f;return _>=y&&_<=w||x>=y&&x<=w}function b(v,h,y,w,_,x,T){_=_||0,x=x||0;var k,S,C,M,O,D=p([y,w]);function P(F,j){return[F*Math.cos(j)+_,x-F*Math.sin(j)]}D?(k=0,S=d,C=f):y=_&&v<=x);var _,x},pathArc:function(v,h,y,w,_){return b(null,v,h,y,w,_,0)},pathSector:function(v,h,y,w,_){return b(null,v,h,y,w,_,1)},pathAnnulus:function(v,h,y,w,_,x){return b(v,h,y,w,_,x,1)}}},73627:function(i,o){var a=Array.isArray,s=ArrayBuffer,u=DataView;function c(p){return s.isView(p)&&!(p instanceof u)}function d(p){return a(p)||c(p)}function f(p,m,g){if(d(p)){if(d(p[0])){for(var b=g,v=0;vx.max?w.set(_):w.set(+y)}},integer:{coerceFunction:function(y,w,_,x){y%1||!s(y)||x.min!==void 0&&yx.max?w.set(_):w.set(+y)}},string:{coerceFunction:function(y,w,_,x){if(typeof y!="string"){var T=typeof y=="number";x.strict!==!0&&T?w.set(String(y)):w.set(_)}else x.noBlank&&!y?w.set(_):w.set(y)}},color:{coerceFunction:function(y,w,_){u(y).isValid()?w.set(y):w.set(_)}},colorlist:{coerceFunction:function(y,w,_){Array.isArray(y)&&y.length&&y.every(function(x){return u(x).isValid()})?w.set(y):w.set(_)}},colorscale:{coerceFunction:function(y,w,_){w.set(d.get(y,_))}},angle:{coerceFunction:function(y,w,_){y==="auto"?w.set("auto"):s(y)?w.set(b(+y,360)):w.set(_)}},subplotid:{coerceFunction:function(y,w,_,x){var T=x.regex||g(_);typeof y=="string"&&T.test(y)?w.set(y):w.set(_)},validateFunction:function(y,w){var _=w.dflt;return y===_||typeof y=="string"&&!!g(_).test(y)}},flaglist:{coerceFunction:function(y,w,_,x){if((x.extras||[]).indexOf(y)===-1)if(typeof y=="string"){for(var T=y.split("+"),k=0;k=s&&N<=u?N:g}if(typeof N!="string"&&typeof N!="number")return g;N=String(N);var W=C(R),U=N.charAt(0);!W||U!=="G"&&U!=="g"||(N=N.substr(1),R="");var V=W&&R.substr(0,7)==="chinese",te=N.match(V?k:T);if(!te)return g;var ee=te[1],H=te[3]||"1",Z=Number(te[5]||1),G=Number(te[7]||0),X=Number(te[9]||0),Q=Number(te[11]||0);if(W){if(ee.length===2)return g;var re;ee=Number(ee);try{var ae=_.getComponentMethod("calendars","getCal")(R);if(V){var ie=H.charAt(H.length-1)==="i";H=parseInt(H,10),re=ae.newDate(ee,ae.toMonthIndex(ee,H,ie),Z)}else re=ae.newDate(ee,Number(H),Z)}catch{return g}return re?(re.toJD()-w)*b+G*v+X*h+Q*y:g}ee=ee.length===2?(Number(ee)+2e3-S)%100+S:Number(ee),H-=1;var se=new Date(Date.UTC(2e3,H,Z,G,X));return se.setUTCFullYear(ee),se.getUTCMonth()!==H||se.getUTCDate()!==Z?g:se.getTime()+Q*y},s=o.MIN_MS=o.dateTime2ms("-9999"),u=o.MAX_MS=o.dateTime2ms("9999-12-31 23:59:59.9999"),o.isDateTime=function(N,R){return o.dateTime2ms(N,R)!==g};var O=90*b,D=3*v,P=5*h;function E(N,R,q,Y,L){if((R||q||Y||L)&&(N+=" "+M(R,2)+":"+M(q,2),(Y||L)&&(N+=":"+M(Y,2),L))){for(var W=4;L%10==0;)W-=1,L/=10;N+="."+M(L,W)}return N}o.ms2DateTime=function(N,R,q){if(typeof N!="number"||!(N>=s&&N<=u))return g;R||(R=0);var Y,L,W,U,V,te,ee=Math.floor(10*p(N+.05,1)),H=Math.round(N-ee/10);if(C(q)){var Z=Math.floor(H/b)+w,G=Math.floor(p(N,b));try{Y=_.getComponentMethod("calendars","getCal")(q).fromJD(Z).formatDate("yyyy-mm-dd")}catch{Y=x("G%Y-%m-%d")(new Date(H))}if(Y.charAt(0)==="-")for(;Y.length<11;)Y="-0"+Y.substr(1);else for(;Y.length<10;)Y="0"+Y;L=R=s+b&&N<=u-b))return g;var R=Math.floor(10*p(N+.05,1)),q=new Date(Math.round(N-R/10));return E(c("%Y-%m-%d")(q),q.getHours(),q.getMinutes(),q.getSeconds(),10*q.getUTCMilliseconds()+R)},o.cleanDate=function(N,R,q){if(N===g)return R;if(o.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(C(q))return f.error("JS Dates and milliseconds are incompatible with world calendars",N),R;if(!(N=o.ms2DateTimeLocal(+N))&&R!==void 0)return R}else if(!o.isDateTime(N,q))return f.error("unrecognized date",N),R;return N};var I=/%\d?f/g,A=/%h/g,F={1:"1",2:"1",3:"2",4:"2"};function j(N,R,q,Y){N=N.replace(I,function(W){var U=Math.min(+W.charAt(1)||6,6);return(R/1e3%1+2).toFixed(U).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(R+.05));if(N=N.replace(A,function(){return F[q("%q")(L)]}),C(Y))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,R,Y)}catch{return"Invalid"}return q(N)(L)}var z=[59,59.9,59.99,59.999,59.9999];o.formatDate=function(N,R,q,Y,L,W){if(L=C(L)&&L,!R)if(q==="y")R=W.year;else if(q==="m")R=W.month;else{if(q!=="d")return function(U,V){var te=p(U+.05,b),ee=M(Math.floor(te/v),2)+":"+M(p(Math.floor(te/h),60),2);if(V!=="M"){d(V)||(V=0);var H=(100+Math.min(p(U/y,60),z[V])).toFixed(V).substr(1);V>0&&(H=H.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+H}return ee}(N,q)+` + `),mde,(t.vars||t).palette.action.hover)),vde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiSkeleton"}),{animation:l="pulse",className:i,component:o="span",height:a,style:s,variant:u="text",width:c}=r,d=Kt(r,fde),f=Ie({},r,{animation:l,component:o,variant:u,hasChildren:!!d.children}),p=pde(f);return ke.jsx(gde,Ie({as:o,ref:n,className:on(p.root,i),ownerState:f},d,{style:Ie({width:c,height:a},s)}))});function kz(e){return yn("MuiTooltip",e)}const yde=hn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Bl=yde,bde=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function xde(e){return Math.round(e*1e5)/1e5}const wde=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:l,placement:i}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",l&&"touch",`tooltipPlacement${Jt(i.split("-")[0])}`],arrow:["arrow"]};return vn(o,kz,t)},_de=Et(bM,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>Ie({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Bl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Bl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Bl.arrow}`]:Ie({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Bl.arrow}`]:Ie({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Tde=Et("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Jt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>Ie({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:rr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${xde(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Bl.popper}[data-popper-placement*="left"] &`]:Ie({transformOrigin:"right center"},t.isRtl?Ie({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Ie({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Bl.popper}[data-popper-placement*="right"] &`]:Ie({transformOrigin:"left center"},t.isRtl?Ie({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Ie({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Bl.popper}[data-popper-placement*="top"] &`]:Ie({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Bl.popper}[data-popper-placement*="bottom"] &`]:Ie({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),kde=Et("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:rr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let a0=!1,Tw=null,ep={x:0,y:0};function o0(e,t){return n=>{t&&t(n),e(n)}}const Sde=ge.forwardRef(function(t,n){var r,l,i,o,a,s,u,c,d,f,p,m,g,b,v,h,y,w,_;const x=pn({props:t,name:"MuiTooltip"}),{arrow:T=!1,children:k,components:S={},componentsProps:C={},describeChild:M=!1,disableFocusListener:O=!1,disableHoverListener:D=!1,disableInteractive:P=!1,disableTouchListener:E=!1,enterDelay:I=100,enterNextDelay:A=0,enterTouchDelay:F=700,followCursor:j=!1,id:z,leaveDelay:B=0,leaveTouchDelay:N=1500,onClose:R,onOpen:q,open:Y,placement:L="bottom",PopperComponent:W,PopperProps:U={},slotProps:V={},slots:te={},title:ee,TransitionComponent:H=dm,TransitionProps:Z}=x,G=Kt(x,bde),X=ge.isValidElement(k)?k:ke.jsx("span",{children:k}),Q=po(),re=Q.direction==="rtl",[ae,ie]=ge.useState(),[se,he]=ge.useState(null),Se=ge.useRef(!1),Oe=P||j,Pe=ge.useRef(),Me=ge.useRef(),ce=ge.useRef(),we=ge.useRef(),[K,ne]=Zl({controlled:Y,default:!1,name:"Tooltip",state:"open"});let de=K;const _e=Kl(z),ue=ge.useRef(),pe=ge.useCallback(()=>{ue.current!==void 0&&(document.body.style.WebkitUserSelect=ue.current,ue.current=void 0),clearTimeout(we.current)},[]);ge.useEffect(()=>()=>{clearTimeout(Pe.current),clearTimeout(Me.current),clearTimeout(ce.current),pe()},[pe]);const xe=Ye=>{clearTimeout(Tw),a0=!0,ne(!0),q&&!de&&q(Ye)},ye=yo(Ye=>{clearTimeout(Tw),Tw=setTimeout(()=>{a0=!1},800+B),ne(!1),R&&de&&R(Ye),clearTimeout(Pe.current),Pe.current=setTimeout(()=>{Se.current=!1},Q.transitions.duration.shortest)}),Te=Ye=>{Se.current&&Ye.type!=="touchstart"||(ae&&ae.removeAttribute("title"),clearTimeout(Me.current),clearTimeout(ce.current),I||a0&&A?Me.current=setTimeout(()=>{xe(Ye)},a0?A:I):xe(Ye))},Ae=Ye=>{clearTimeout(Me.current),clearTimeout(ce.current),ce.current=setTimeout(()=>{ye(Ye)},B)},{isFocusVisibleRef:Re,onBlur:Le,onFocus:$e,ref:Fe}=FC(),[,Be]=ge.useState(!1),Ue=Ye=>{Le(Ye),Re.current===!1&&(Be(!1),Ae(Ye))},qe=Ye=>{ae||ie(Ye.currentTarget),$e(Ye),Re.current===!0&&(Be(!0),Te(Ye))},Xe=Ye=>{Se.current=!0;const nt=X.props;nt.onTouchStart&&nt.onTouchStart(Ye)},ot=Te,st=Ae,dt=Ye=>{Xe(Ye),clearTimeout(ce.current),clearTimeout(Pe.current),pe(),ue.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",we.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ue.current,Te(Ye)},F)},vt=Ye=>{X.props.onTouchEnd&&X.props.onTouchEnd(Ye),pe(),clearTimeout(ce.current),ce.current=setTimeout(()=>{ye(Ye)},N)};ge.useEffect(()=>{if(!de)return;function Ye(nt){(nt.key==="Escape"||nt.key==="Esc")&&ye(nt)}return document.addEventListener("keydown",Ye),()=>{document.removeEventListener("keydown",Ye)}},[ye,de]);const We=Lr(X.ref,Fe,ie,n);!ee&&ee!==0&&(de=!1);const ze=ge.useRef(),tt=Ye=>{const nt=X.props;nt.onMouseMove&&nt.onMouseMove(Ye),ep={x:Ye.clientX,y:Ye.clientY},ze.current&&ze.current.update()},it={},St=typeof ee=="string";M?(it.title=!de&&St&&!D?ee:null,it["aria-describedby"]=de?_e:null):(it["aria-label"]=St?ee:null,it["aria-labelledby"]=de&&!St?_e:null);const Ze=Ie({},it,G,X.props,{className:on(G.className,X.props.className),onTouchStart:Xe,ref:We},j?{onMouseMove:tt}:{}),ut={};E||(Ze.onTouchStart=dt,Ze.onTouchEnd=vt),D||(Ze.onMouseOver=o0(ot,Ze.onMouseOver),Ze.onMouseLeave=o0(st,Ze.onMouseLeave),Oe||(ut.onMouseOver=ot,ut.onMouseLeave=st)),O||(Ze.onFocus=o0(qe,Ze.onFocus),Ze.onBlur=o0(Ue,Ze.onBlur),Oe||(ut.onFocus=qe,ut.onBlur=Ue));const ht=ge.useMemo(()=>{var Ye;let nt=[{name:"arrow",enabled:!!se,options:{element:se,padding:4}}];return(Ye=U.popperOptions)!=null&&Ye.modifiers&&(nt=nt.concat(U.popperOptions.modifiers)),Ie({},U.popperOptions,{modifiers:nt})},[se,U]),Rt=Ie({},x,{isRtl:re,arrow:T,disableInteractive:Oe,placement:L,PopperComponentProp:W,touch:Se.current}),Ct=wde(Rt),Wt=(r=(l=te.popper)!=null?l:S.Popper)!=null?r:_de,_t=(i=(o=(a=te.transition)!=null?a:S.Transition)!=null?o:H)!=null?i:dm,be=(s=(u=te.tooltip)!=null?u:S.Tooltip)!=null?s:Tde,Ce=(c=(d=te.arrow)!=null?d:S.Arrow)!=null?c:kde,Ge=fh(Wt,Ie({},U,(f=V.popper)!=null?f:C.popper,{className:on(Ct.popper,U==null?void 0:U.className,(p=(m=V.popper)!=null?m:C.popper)==null?void 0:p.className)}),Rt),He=fh(_t,Ie({},Z,(g=V.transition)!=null?g:C.transition),Rt),et=fh(be,Ie({},(b=V.tooltip)!=null?b:C.tooltip,{className:on(Ct.tooltip,(v=(h=V.tooltip)!=null?h:C.tooltip)==null?void 0:v.className)}),Rt),Ke=fh(Ce,Ie({},(y=V.arrow)!=null?y:C.arrow,{className:on(Ct.arrow,(w=(_=V.arrow)!=null?_:C.arrow)==null?void 0:w.className)}),Rt);return ke.jsxs(ge.Fragment,{children:[ge.cloneElement(X,Ze),ke.jsx(Wt,Ie({as:W??bM,placement:L,anchorEl:j?{getBoundingClientRect:()=>({top:ep.y,left:ep.x,right:ep.x,bottom:ep.y,width:0,height:0})}:ae,popperRef:ze,open:ae?de:!1,id:_e,transition:!0},ut,Ge,{popperOptions:ht,children:({TransitionProps:Ye})=>ke.jsx(_t,Ie({timeout:Q.transitions.duration.shorter},Ye,He,{children:ke.jsxs(be,Ie({},et,{children:[ee,T?ke.jsx(Ce,Ie({},Ke,{ref:he})):null]}))}))}))]})}),Cde=Sde,Mde=Object.freeze(Object.defineProperty({__proto__:null,default:Cde,getTooltipUtilityClass:kz,tooltipClasses:Bl},Symbol.toStringTag,{value:"Module"}));function Pde(e){return yn("MuiTab",e)}const fu=hn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Ode=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Ade=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:l,icon:i,label:o,selected:a,disabled:s}=e,u={root:["root",i&&o&&"labelIcon",`textColor${Jt(n)}`,r&&"fullWidth",l&&"wrapped",a&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]};return vn(u,Pde,t)},Dde=Et(Tl,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Jt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>Ie({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${fu.iconWrapper}`]:Ie({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${fu.selected}`]:{opacity:1},[`&.${fu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${fu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${fu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${fu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${fu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),J3=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTab"}),{className:l,disabled:i=!1,disableFocusRipple:o=!1,fullWidth:a,icon:s,iconPosition:u="top",indicator:c,label:d,onChange:f,onClick:p,onFocus:m,selected:g,selectionFollowsFocus:b,textColor:v="inherit",value:h,wrapped:y=!1}=r,w=Kt(r,Ode),_=Ie({},r,{disabled:i,disableFocusRipple:o,selected:g,icon:!!s,iconPosition:u,label:!!d,fullWidth:a,textColor:v,wrapped:y}),x=Ade(_),T=s&&d&&ge.isValidElement(s)?ge.cloneElement(s,{className:on(x.iconWrapper,s.props.className)}):s,k=C=>{!g&&f&&f(C,h),p&&p(C)},S=C=>{b&&!g&&f&&f(C,h),m&&m(C)};return ke.jsxs(Dde,Ie({focusRipple:!o,className:on(x.root,l),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:k,onFocus:S,ownerState:_,tabIndex:g?0:-1},w,{children:[u==="top"||u==="start"?ke.jsxs(ge.Fragment,{children:[T,d]}):ke.jsxs(ge.Fragment,{children:[d,T]}),c]}))}),Sz=ge.createContext();function Cz(e){return yn("MuiTable",e)}const Ede=hn("MuiTable",["root","stickyHeader"]),Rde=Ede,Lde=["className","component","padding","size","stickyHeader"],Ide=e=>{const{classes:t,stickyHeader:n}=e;return vn({root:["root",n&&"stickyHeader"]},Cz,t)},$de=Et("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Ie({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ie({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),B8="table",Nde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTable"}),{className:l,component:i=B8,padding:o="normal",size:a="medium",stickyHeader:s=!1}=r,u=Kt(r,Lde),c=Ie({},r,{component:i,padding:o,size:a,stickyHeader:s}),d=Ide(c),f=ge.useMemo(()=>({padding:o,size:a,stickyHeader:s}),[o,a,s]);return ke.jsx(Sz.Provider,{value:f,children:ke.jsx($de,Ie({as:i,role:i===B8?null:"table",ref:n,className:on(d.root,l),ownerState:c},u))})}),PM=Nde,Fde=Object.freeze(Object.defineProperty({__proto__:null,default:PM,getTableUtilityClass:Cz,tableClasses:Rde},Symbol.toStringTag,{value:"Module"})),Jm=ge.createContext();function Mz(e){return yn("MuiTableBody",e)}const jde=hn("MuiTableBody",["root"]),zde=jde,Bde=["className","component"],Wde=e=>{const{classes:t}=e;return vn({root:["root"]},Mz,t)},qde=Et("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ude={variant:"body"},W8="tbody",Hde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableBody"}),{className:l,component:i=W8}=r,o=Kt(r,Bde),a=Ie({},r,{component:i}),s=Wde(a);return ke.jsx(Jm.Provider,{value:Ude,children:ke.jsx(qde,Ie({className:on(s.root,l),as:i,ref:n,role:i===W8?null:"rowgroup",ownerState:a},o))})}),OM=Hde,Vde=Object.freeze(Object.defineProperty({__proto__:null,default:OM,getTableBodyUtilityClass:Mz,tableBodyClasses:zde},Symbol.toStringTag,{value:"Module"}));function Pz(e){return yn("MuiTableCell",e)}const Gde=hn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Oz=Gde,Yde=["align","className","component","padding","scope","size","sortDirection","variant"],Xde=e=>{const{classes:t,variant:n,align:r,padding:l,size:i,stickyHeader:o}=e,a={root:["root",n,o&&"stickyHeader",r!=="inherit"&&`align${Jt(r)}`,l!=="normal"&&`padding${Jt(l)}`,`size${Jt(i)}`]};return vn(a,Pz,t)},Kde=Et("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Jt(n.size)}`],n.padding!=="normal"&&t[`padding${Jt(n.padding)}`],n.align!=="inherit"&&t[`align${Jt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Ie({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?_l(rr(e.palette.divider,1),.88):wl(rr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Oz.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Zde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableCell"}),{align:l="inherit",className:i,component:o,padding:a,scope:s,size:u,sortDirection:c,variant:d}=r,f=Kt(r,Yde),p=ge.useContext(Sz),m=ge.useContext(Jm),g=m&&m.variant==="head";let b;o?b=o:b=g?"th":"td";let v=s;b==="td"?v=void 0:!v&&g&&(v="col");const h=d||m&&m.variant,y=Ie({},r,{align:l,component:b,padding:a||(p&&p.padding?p.padding:"normal"),size:u||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:h==="head"&&p&&p.stickyHeader,variant:h}),w=Xde(y);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),ke.jsx(Kde,Ie({as:b,ref:n,className:on(w.root,i),"aria-sort":_,scope:v,ownerState:y},f))}),gi=Zde,Qde=Object.freeze(Object.defineProperty({__proto__:null,default:gi,getTableCellUtilityClass:Pz,tableCellClasses:Oz},Symbol.toStringTag,{value:"Module"}));function Jde(e){return yn("MuiTableContainer",e)}hn("MuiTableContainer",["root"]);const efe=["className","component"],tfe=e=>{const{classes:t}=e;return vn({root:["root"]},Jde,t)},nfe=Et("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),rfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableContainer"}),{className:l,component:i="div"}=r,o=Kt(r,efe),a=Ie({},r,{component:i}),s=tfe(a);return ke.jsx(nfe,Ie({ref:n,as:i,className:on(s.root,l),ownerState:a},o))});function Az(e){return yn("MuiTableFooter",e)}const afe=hn("MuiTableFooter",["root"]),ofe=afe,ife=["className","component"],lfe=e=>{const{classes:t}=e;return vn({root:["root"]},Az,t)},sfe=Et("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),ufe={variant:"footer"},q8="tfoot",cfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableFooter"}),{className:l,component:i=q8}=r,o=Kt(r,ife),a=Ie({},r,{component:i}),s=lfe(a);return ke.jsx(Jm.Provider,{value:ufe,children:ke.jsx(sfe,Ie({as:i,className:on(s.root,l),ref:n,role:i===q8?null:"rowgroup",ownerState:a},o))})}),dfe=cfe,ffe=Object.freeze(Object.defineProperty({__proto__:null,default:dfe,getTableFooterUtilityClass:Az,tableFooterClasses:ofe},Symbol.toStringTag,{value:"Module"}));function Dz(e){return yn("MuiTableHead",e)}const pfe=hn("MuiTableHead",["root"]),hfe=pfe,mfe=["className","component"],gfe=e=>{const{classes:t}=e;return vn({root:["root"]},Dz,t)},vfe=Et("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),yfe={variant:"head"},U8="thead",bfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableHead"}),{className:l,component:i=U8}=r,o=Kt(r,mfe),a=Ie({},r,{component:i}),s=gfe(a);return ke.jsx(Jm.Provider,{value:yfe,children:ke.jsx(vfe,Ie({as:i,className:on(s.root,l),ref:n,role:i===U8?null:"rowgroup",ownerState:a},o))})}),AM=bfe,xfe=Object.freeze(Object.defineProperty({__proto__:null,default:AM,getTableHeadUtilityClass:Dz,tableHeadClasses:hfe},Symbol.toStringTag,{value:"Module"}));function Ez(e){return yn("MuiToolbar",e)}const wfe=hn("MuiToolbar",["root","gutters","regular","dense"]),_fe=wfe,Tfe=["className","component","disableGutters","variant"],kfe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return vn({root:["root",!n&&"gutters",r]},Ez,t)},Sfe=Et("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>Ie({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Cfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiToolbar"}),{className:l,component:i="div",disableGutters:o=!1,variant:a="regular"}=r,s=Kt(r,Tfe),u=Ie({},r,{component:i,disableGutters:o,variant:a}),c=kfe(u);return ke.jsx(Sfe,Ie({as:i,className:on(c.root,l),ref:n,ownerState:u},s))}),Rz=Cfe,Mfe=Object.freeze(Object.defineProperty({__proto__:null,default:Rz,getToolbarUtilityClass:Ez,toolbarClasses:_fe},Symbol.toStringTag,{value:"Module"})),ek=Qr(ke.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),tk=Qr(ke.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var H8,V8,G8,Y8,X8,K8,Z8,Q8;const Pfe=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],Ofe=ge.forwardRef(function(t,n){const{backIconButtonProps:r,count:l,getItemAriaLabel:i,nextIconButtonProps:o,onPageChange:a,page:s,rowsPerPage:u,showFirstButton:c,showLastButton:d}=t,f=Kt(t,Pfe),p=po(),m=h=>{a(h,0)},g=h=>{a(h,s-1)},b=h=>{a(h,s+1)},v=h=>{a(h,Math.max(0,Math.ceil(l/u)-1))};return ke.jsxs("div",Ie({ref:n},f,{children:[c&&ke.jsx(mi,{onClick:m,disabled:s===0,"aria-label":i("first",s),title:i("first",s),children:p.direction==="rtl"?H8||(H8=ke.jsx(L8,{})):V8||(V8=ke.jsx(R8,{}))}),ke.jsx(mi,Ie({onClick:g,disabled:s===0,color:"inherit","aria-label":i("previous",s),title:i("previous",s)},r,{children:p.direction==="rtl"?G8||(G8=ke.jsx(tk,{})):Y8||(Y8=ke.jsx(ek,{}))})),ke.jsx(mi,Ie({onClick:b,disabled:l!==-1?s>=Math.ceil(l/u)-1:!1,color:"inherit","aria-label":i("next",s),title:i("next",s)},o,{children:p.direction==="rtl"?X8||(X8=ke.jsx(ek,{})):K8||(K8=ke.jsx(tk,{}))})),d&&ke.jsx(mi,{onClick:v,disabled:s>=Math.ceil(l/u)-1,"aria-label":i("last",s),title:i("last",s),children:p.direction==="rtl"?Z8||(Z8=ke.jsx(R8,{})):Q8||(Q8=ke.jsx(L8,{}))})]}))});function Lz(e){return yn("MuiTablePagination",e)}const Afe=hn("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),wd=Afe;var J8;const Dfe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],Efe=Et(gi,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),Rfe=Et(Rz,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>Ie({[`& .${wd.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${wd.actions}`]:{flexShrink:0,marginLeft:20}})),Lfe=Et("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Ife=Et("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>Ie({},e.typography.body2,{flexShrink:0})),$fe=Et(sb,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>Ie({[`& .${wd.selectIcon}`]:t.selectIcon,[`& .${wd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${wd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Nfe=Et(bz,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Ffe=Et("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>Ie({},e.typography.body2,{flexShrink:0}));function jfe({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function zfe(e){return`Go to ${e} page`}const Bfe=e=>{const{classes:t}=e;return vn({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Lz,t)},Wfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=Ofe,backIconButtonProps:i,className:o,colSpan:a,component:s=gi,count:u,getItemAriaLabel:c=zfe,labelDisplayedRows:d=jfe,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:p,onPageChange:m,onRowsPerPageChange:g,page:b,rowsPerPage:v,rowsPerPageOptions:h=[10,25,50,100],SelectProps:y={},showFirstButton:w=!1,showLastButton:_=!1}=r,x=Kt(r,Dfe),T=r,k=Bfe(T),S=y.native?"option":Nfe;let C;(s===gi||s==="td")&&(C=a||1e3);const M=Kl(y.id),O=Kl(y.labelId),D=()=>u===-1?(b+1)*v:v===-1?u:Math.min(u,(b+1)*v);return ke.jsx(Efe,Ie({colSpan:C,ref:n,as:s,ownerState:T,className:on(k.root,o)},x,{children:ke.jsxs(Rfe,{className:k.toolbar,children:[ke.jsx(Lfe,{className:k.spacer}),h.length>1&&ke.jsx(Ife,{className:k.selectLabel,id:O,children:f}),h.length>1&&ke.jsx($fe,Ie({variant:"standard"},!y.variant&&{input:J8||(J8=ke.jsx(ob,{}))},{value:v,onChange:g,id:M,labelId:O},y,{classes:Ie({},y.classes,{root:on(k.input,k.selectRoot,(y.classes||{}).root),select:on(k.select,(y.classes||{}).select),icon:on(k.selectIcon,(y.classes||{}).icon)}),children:h.map(P=>ge.createElement(S,Ie({},!lm(S)&&{ownerState:T},{className:k.menuItem,key:P.label?P.label:P,value:P.value?P.value:P}),P.label?P.label:P))})),ke.jsx(Ffe,{className:k.displayedRows,children:d({from:u===0?0:b*v+1,to:D(),count:u===-1?-1:u,page:b})}),ke.jsx(l,{className:k.actions,backIconButtonProps:i,count:u,nextIconButtonProps:p,onPageChange:m,page:b,rowsPerPage:v,showFirstButton:w,showLastButton:_,getItemAriaLabel:c})]})}))}),qfe=Wfe,Ufe=Object.freeze(Object.defineProperty({__proto__:null,default:qfe,getTablePaginationUtilityClass:Lz,tablePaginationClasses:wd},Symbol.toStringTag,{value:"Module"}));function Iz(e){return yn("MuiTableRow",e)}const Hfe=hn("MuiTableRow",["root","selected","hover","head","footer"]),nk=Hfe,Vfe=["className","component","hover","selected"],Gfe=e=>{const{classes:t,selected:n,hover:r,head:l,footer:i}=e;return vn({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},Iz,t)},Yfe=Et("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${nk.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),eD="tr",Xfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableRow"}),{className:l,component:i=eD,hover:o=!1,selected:a=!1}=r,s=Kt(r,Vfe),u=ge.useContext(Jm),c=Ie({},r,{component:i,hover:o,selected:a,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),d=Gfe(c);return ke.jsx(Yfe,Ie({as:i,ref:n,className:on(d.root,l),role:i===eD?null:"row",ownerState:c},s))}),pm=Xfe,Kfe=Object.freeze(Object.defineProperty({__proto__:null,default:pm,getTableRowUtilityClass:Iz,tableRowClasses:nk},Symbol.toStringTag,{value:"Module"})),Zfe=Qr(ke.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function $z(e){return yn("MuiTableSortLabel",e)}const Qfe=hn("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),tv=Qfe,Jfe=["active","children","className","direction","hideSortIcon","IconComponent"],epe=e=>{const{classes:t,direction:n,active:r}=e,l={root:["root",r&&"active"],icon:["icon",`iconDirection${Jt(n)}`]};return vn(l,$z,t)},tpe=Et(Tl,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${tv.icon}`]:{opacity:.5}},[`&.${tv.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${tv.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),npe=Et("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${Jt(n.direction)}`]]}})(({theme:e,ownerState:t})=>Ie({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),rpe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableSortLabel"}),{active:l=!1,children:i,className:o,direction:a="asc",hideSortIcon:s=!1,IconComponent:u=Zfe}=r,c=Kt(r,Jfe),d=Ie({},r,{active:l,direction:a,hideSortIcon:s,IconComponent:u}),f=epe(d);return ke.jsxs(tpe,Ie({className:on(f.root,o),component:"span",disableRipple:!0,ownerState:d,ref:n},c,{children:[i,s&&!l?null:ke.jsx(npe,{as:u,className:on(f.icon),ownerState:d})]}))}),ape=rpe,ope=Object.freeze(Object.defineProperty({__proto__:null,default:ape,getTableSortLabelUtilityClass:$z,tableSortLabelClasses:tv},Symbol.toStringTag,{value:"Module"}));function ipe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function lpe(e,t,n,r={},l=()=>{}){const{ease:i=ipe,duration:o=300}=r;let a=null;const s=t[e];let u=!1;const c=()=>{u=!0},d=f=>{if(u){l(new Error("Animation cancelled"));return}a===null&&(a=f);const p=Math.min(1,(f-a)/o);if(t[e]=i(p)*(n-s)+s,p>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(d)};return s===n?(l(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const spe=["onChange"],upe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function cpe(e){const{onChange:t}=e,n=Kt(e,spe),r=ge.useRef(),l=ge.useRef(null),i=()=>{r.current=l.current.offsetHeight-l.current.clientHeight};return no(()=>{const o=Um(()=>{const s=r.current;i(),s!==r.current&&t(r.current)}),a=bl(l.current);return a.addEventListener("resize",o),()=>{o.clear(),a.removeEventListener("resize",o)}},[t]),ge.useEffect(()=>{i(),t(r.current)},[t]),ke.jsx("div",Ie({style:upe,ref:l},n))}function dpe(e){return yn("MuiTabScrollButton",e)}const fpe=hn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ppe=["className","slots","slotProps","direction","orientation","disabled"],hpe=e=>{const{classes:t,orientation:n,disabled:r}=e;return vn({root:["root",n,r&&"disabled"]},dpe,t)},mpe=Et(Tl,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>Ie({width:40,flexShrink:0,opacity:.8,[`&.${fpe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),gpe=ge.forwardRef(function(t,n){var r,l;const i=pn({props:t,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:s={},direction:u}=i,c=Kt(i,ppe),f=po().direction==="rtl",p=Ie({isRtl:f},i),m=hpe(p),g=(r=a.StartScrollButtonIcon)!=null?r:ek,b=(l=a.EndScrollButtonIcon)!=null?l:tk,v=Ui({elementType:g,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),h=Ui({elementType:b,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return ke.jsx(mpe,Ie({component:"div",className:on(m.root,o),ref:n,role:null,ownerState:p,tabIndex:null},c,{children:u==="left"?ke.jsx(g,Ie({},v)):ke.jsx(b,Ie({},h))}))});function vpe(e){return yn("MuiTabs",e)}const nv=hn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ype=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],tD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,nD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,i0=(e,t,n)=>{let r=!1,l=n(e,t);for(;l;){if(l===e.firstChild){if(r)return;r=!0}const i=l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||i)l=n(e,l);else{l.focus();return}}},bpe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:l,scrollableY:i,centered:o,scrollButtonsHideMobile:a,classes:s}=e;return vn({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",l&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},vpe,s)},xpe=Et("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nv.scrollButtons}`]:t.scrollButtons},{[`& .${nv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>Ie({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${nv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),wpe=Et("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>Ie({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),_pe=Et("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>Ie({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Tpe=Et("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>Ie({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),kpe=Et(cpe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),rD={},Nz=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTabs"}),l=po(),i=l.direction==="rtl",{"aria-label":o,"aria-labelledby":a,action:s,centered:u=!1,children:c,className:d,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:m="primary",onChange:g,orientation:b="horizontal",ScrollButtonComponent:v=gpe,scrollButtons:h="auto",selectionFollowsFocus:y,slots:w={},slotProps:_={},TabIndicatorProps:x={},TabScrollButtonProps:T={},textColor:k="primary",value:S,variant:C="standard",visibleScrollbar:M=!1}=r,O=Kt(r,ype),D=C==="scrollable",P=b==="vertical",E=P?"scrollTop":"scrollLeft",I=P?"top":"left",A=P?"bottom":"right",F=P?"clientHeight":"clientWidth",j=P?"height":"width",z=Ie({},r,{component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:b,vertical:P,scrollButtons:h,textColor:k,variant:C,visibleScrollbar:M,fixed:!D,hideScrollbar:D&&!M,scrollableX:D&&!P,scrollableY:D&&P,centered:u&&!D,scrollButtonsHideMobile:!p}),B=bpe(z),N=Ui({elementType:w.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:z}),R=Ui({elementType:w.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:z}),[q,Y]=ge.useState(!1),[L,W]=ge.useState(rD),[U,V]=ge.useState(!1),[te,ee]=ge.useState(!1),[H,Z]=ge.useState(!1),[G,X]=ge.useState({overflow:"hidden",scrollbarWidth:0}),Q=new Map,re=ge.useRef(null),ae=ge.useRef(null),ie=()=>{const ye=re.current;let Te;if(ye){const Re=ye.getBoundingClientRect();Te={clientWidth:ye.clientWidth,scrollLeft:ye.scrollLeft,scrollTop:ye.scrollTop,scrollLeftNormalized:xJ(ye,l.direction),scrollWidth:ye.scrollWidth,top:Re.top,bottom:Re.bottom,left:Re.left,right:Re.right}}let Ae;if(ye&&S!==!1){const Re=ae.current.children;if(Re.length>0){const Le=Re[Q.get(S)];Ae=Le?Le.getBoundingClientRect():null}}return{tabsMeta:Te,tabMeta:Ae}},se=yo(()=>{const{tabsMeta:ye,tabMeta:Te}=ie();let Ae=0,Re;if(P)Re="top",Te&&ye&&(Ae=Te.top-ye.top+ye.scrollTop);else if(Re=i?"right":"left",Te&&ye){const $e=i?ye.scrollLeftNormalized+ye.clientWidth-ye.scrollWidth:ye.scrollLeft;Ae=(i?-1:1)*(Te[Re]-ye[Re]+$e)}const Le={[Re]:Ae,[j]:Te?Te[j]:0};if(isNaN(L[Re])||isNaN(L[j]))W(Le);else{const $e=Math.abs(L[Re]-Le[Re]),Fe=Math.abs(L[j]-Le[j]);($e>=1||Fe>=1)&&W(Le)}}),he=(ye,{animation:Te=!0}={})=>{Te?lpe(E,re.current,ye,{duration:l.transitions.duration.standard}):re.current[E]=ye},Se=ye=>{let Te=re.current[E];P?Te+=ye:(Te+=ye*(i?-1:1),Te*=i&&LF()==="reverse"?-1:1),he(Te)},Oe=()=>{const ye=re.current[F];let Te=0;const Ae=Array.from(ae.current.children);for(let Re=0;Reye){Re===0&&(Te=ye);break}Te+=Le[F]}return Te},Pe=()=>{Se(-1*Oe())},Me=()=>{Se(Oe())},ce=ge.useCallback(ye=>{X({overflow:null,scrollbarWidth:ye})},[]),we=()=>{const ye={};ye.scrollbarSizeListener=D?ke.jsx(kpe,{onChange:ce,className:on(B.scrollableX,B.hideScrollbar)}):null;const Ae=D&&(h==="auto"&&(U||te)||h===!0);return ye.scrollButtonStart=Ae?ke.jsx(v,Ie({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:N},orientation:b,direction:i?"right":"left",onClick:Pe,disabled:!U},T,{className:on(B.scrollButtons,T.className)})):null,ye.scrollButtonEnd=Ae?ke.jsx(v,Ie({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:R},orientation:b,direction:i?"left":"right",onClick:Me,disabled:!te},T,{className:on(B.scrollButtons,T.className)})):null,ye},K=yo(ye=>{const{tabsMeta:Te,tabMeta:Ae}=ie();if(!(!Ae||!Te)){if(Ae[I]Te[A]){const Re=Te[E]+(Ae[A]-Te[A]);he(Re,{animation:ye})}}}),ne=yo(()=>{D&&h!==!1&&Z(!H)});ge.useEffect(()=>{const ye=Um(()=>{re.current&&se()}),Te=bl(re.current);Te.addEventListener("resize",ye);let Ae;return typeof ResizeObserver<"u"&&(Ae=new ResizeObserver(ye),Array.from(ae.current.children).forEach(Re=>{Ae.observe(Re)})),()=>{ye.clear(),Te.removeEventListener("resize",ye),Ae&&Ae.disconnect()}},[se]),ge.useEffect(()=>{const ye=Array.from(ae.current.children),Te=ye.length;if(typeof IntersectionObserver<"u"&&Te>0&&D&&h!==!1){const Ae=ye[0],Re=ye[Te-1],Le={root:re.current,threshold:.99},$e=qe=>{V(!qe[0].isIntersecting)},Fe=new IntersectionObserver($e,Le);Fe.observe(Ae);const Be=qe=>{ee(!qe[0].isIntersecting)},Ue=new IntersectionObserver(Be,Le);return Ue.observe(Re),()=>{Fe.disconnect(),Ue.disconnect()}}},[D,h,H,c==null?void 0:c.length]),ge.useEffect(()=>{Y(!0)},[]),ge.useEffect(()=>{se()}),ge.useEffect(()=>{K(rD!==L)},[K,L]),ge.useImperativeHandle(s,()=>({updateIndicator:se,updateScrollButtons:ne}),[se,ne]);const de=ke.jsx(Tpe,Ie({},x,{className:on(B.indicator,x.className),ownerState:z,style:Ie({},L,x.style)}));let _e=0;const ue=ge.Children.map(c,ye=>{if(!ge.isValidElement(ye))return null;const Te=ye.props.value===void 0?_e:ye.props.value;Q.set(Te,_e);const Ae=Te===S;return _e+=1,ge.cloneElement(ye,Ie({fullWidth:C==="fullWidth",indicator:Ae&&!q&&de,selected:Ae,selectionFollowsFocus:y,onChange:g,textColor:k,value:Te},_e===1&&S===!1&&!ye.props.tabIndex?{tabIndex:0}:{}))}),pe=ye=>{const Te=ae.current,Ae=Aa(Te).activeElement;if(Ae.getAttribute("role")!=="tab")return;let Le=b==="horizontal"?"ArrowLeft":"ArrowUp",$e=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&i&&(Le="ArrowRight",$e="ArrowLeft"),ye.key){case Le:ye.preventDefault(),i0(Te,Ae,nD);break;case $e:ye.preventDefault(),i0(Te,Ae,tD);break;case"Home":ye.preventDefault(),i0(Te,null,tD);break;case"End":ye.preventDefault(),i0(Te,null,nD);break}},xe=we();return ke.jsxs(xpe,Ie({className:on(B.root,d),ownerState:z,ref:n,as:f},O,{children:[xe.scrollButtonStart,xe.scrollbarSizeListener,ke.jsxs(wpe,{className:B.scroller,ownerState:z,style:{overflow:G.overflow,[P?`margin${i?"Left":"Right"}`:"marginBottom"]:M?void 0:-G.scrollbarWidth},ref:re,children:[ke.jsx(_pe,{"aria-label":o,"aria-labelledby":a,"aria-orientation":b==="vertical"?"vertical":null,className:B.flexContainer,ownerState:z,onKeyDown:pe,ref:ae,role:"tablist",children:ue}),q&&de]}),xe.scrollButtonEnd]}))});function Fz(e){return yn("MuiTextField",e)}const Spe=hn("MuiTextField",["root"]),Cpe=Spe,Mpe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ppe={standard:_M,filled:xM,outlined:CM},Ope=e=>{const{classes:t}=e;return vn({root:["root"]},Fz,t)},Ape=Et(Qj,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dpe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTextField"}),{autoComplete:l,autoFocus:i=!1,children:o,className:a,color:s="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:m,id:g,InputLabelProps:b,inputProps:v,InputProps:h,inputRef:y,label:w,maxRows:_,minRows:x,multiline:T=!1,name:k,onBlur:S,onChange:C,onFocus:M,placeholder:O,required:D=!1,rows:P,select:E=!1,SelectProps:I,type:A,value:F,variant:j="outlined"}=r,z=Kt(r,Mpe),B=Ie({},r,{autoFocus:i,color:s,disabled:c,error:d,fullWidth:p,multiline:T,required:D,select:E,variant:j}),N=Ope(B),R={};j==="outlined"&&(b&&typeof b.shrink<"u"&&(R.notched=b.shrink),R.label=w),E&&((!I||!I.native)&&(R.id=void 0),R["aria-describedby"]=void 0);const q=Kl(g),Y=m&&q?`${q}-helper-text`:void 0,L=w&&q?`${q}-label`:void 0,W=Ppe[j],U=ke.jsx(W,Ie({"aria-describedby":Y,autoComplete:l,autoFocus:i,defaultValue:u,fullWidth:p,multiline:T,name:k,rows:P,maxRows:_,minRows:x,type:A,value:F,id:q,inputRef:y,onBlur:S,onChange:C,onFocus:M,placeholder:O,inputProps:v},R,h));return ke.jsxs(Ape,Ie({className:on(N.root,a),disabled:c,error:d,fullWidth:p,ref:n,required:D,color:s,variant:j,ownerState:B},z,{children:[w!=null&&w!==""&&ke.jsx(cz,Ie({htmlFor:q,id:L},b,{children:w})),E?ke.jsx(sb,Ie({"aria-describedby":Y,id:q,labelId:L,value:F,input:U},I,{children:o})):U,m&&ke.jsx(nz,Ie({id:Y},f,{children:m}))]}))}),Epe=Dpe,Rpe=Object.freeze(Object.defineProperty({__proto__:null,default:Epe,getTextFieldUtilityClass:Fz,textFieldClasses:Cpe},Symbol.toStringTag,{value:"Module"})),{transitions:Fc}=es(),Dl="#ed0500",Lpe="#ded5d5",Ipe=es({shape:{borderRadius:5},palette:{primary:{main:Rl[900],light:Rl[200]},secondary:{main:Dl,dark:"#c10400",light:Rl[200]},background:{default:"white",paper:"white"}},components:{MuiLink:{styleOverrides:{root:{transition:Fc.create("color",{duration:Fc.duration.enteringScreen}),"&:hover":{color:Dl}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:Dl}}},MuiButton:{styleOverrides:{contained:{"&:hover":{background:Rl[800]}},outlined:{"&:hover":{color:Dl,borderColor:Dl,background:"white"}},text:{"&:hover":{color:Dl,borderColor:Dl}}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px","&:hover":{background:Rl[200]}}}},MuiIconButton:{styleOverrides:{root:{transition:Fc.create("color",{duration:Fc.duration.enteringScreen}),color:Rl[900],"&:hover":{color:Dl}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:Fc.create("color",{duration:Fc.duration.enteringScreen}),color:Rl[900],"&:hover":{color:Dl},"&.Mui-disabled":{border:"unset",background:Rl[100]}}}},MuiToggleButtonGroup:{defaultProps:{color:"secondary"}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{styleOverrides:{root:{boxShadow:"unset",border:"1px solid",borderColor:Lpe}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}});class $pe{constructor(t){$g(this,"cachedGraphs");$g(this,"cachedWidgets");$g(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let n=this.cachedGraphs.get(t);return n!==void 0||(n=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,n)),n}async getAdditionWidgetData(t){let n=this.cachedWidgets.get(t);return n!==void 0||(n=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,n)),n}}const DM=Qe.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function Npe(e){return new $pe(e)}var rv=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(rv||{});function l0(e){return e.palette.mode==="dark"?_l:wl}function s0(e){return e.palette.mode==="light"?wl:_l}const rk=e=>{const[t,n]=ge.useState({open:!1});return ke.jsxs(nu,{elevation:0,onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),sx:[{color:r=>s0(r)(r.palette.info.main,.6),backgroundColor:r=>l0(r)(r.palette.info.main,.9)},e.data.state==="success"&&{color:r=>s0(r)(r.palette.success.main,.6),backgroundColor:r=>l0(r)(r.palette.success.main,.9)},e.data.state==="warning"&&{color:r=>s0(r)(r.palette.warning.main,.6),backgroundColor:r=>l0(r)(r.palette.warning.main,.9)},e.data.state==="error"&&{color:r=>s0(r)(r.palette.error.main,.6),backgroundColor:r=>l0(r)(r.palette.error.main,.9)}],children:[ke.jsx(pr,{align:"center",variant:"h6",component:"div",children:e.data.value}),ke.jsx(pr,{align:"center",variant:"body1",component:"div",children:e.data.text}),ke.jsx(kM,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??ke.jsx(pr,{padding:1,children:e.data.longText})})]})},jz=e=>ke.jsxs(cM,{severity:e.data.severity,children:[ke.jsx(dM,{children:e.data.title}),e.data.text]}),aD=e=>{const{alertStats:t}=e;return ke.jsx(rk,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:ke.jsx(pr,{sx:{pr:1},children:ke.jsxs("ul",{children:[ke.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),ke.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),ke.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function Fpe(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const jpe=e=>{const{size:t,ItemWrapper:n}=e,r=e.children.alertsPosition??"row",{id:l,title:i,details:o,content:a,alerts:s,alertStats:u,insights:c}=e.children,d=s===void 0?!1:s.length>0,f=c===void 0?!1:c.length>0,p=ke.jsx(ale,{sx:{border:"1px solid",borderColor:"#d6d6d6",borderRadius:"4px"},elevation:0,children:ke.jsx(ule,{children:ke.jsxs(cr,{container:!0,spacing:1,direction:"column",children:[r==="row"?ke.jsxs(cr,{container:!0,spacing:1,item:!0,children:[ke.jsxs(cr,{item:!0,xs:d&&r==="row"?9:12,children:[i?ke.jsx(pr,{fontWeight:500,variant:"h5",children:i}):ke.jsx("div",{}),ke.jsx("div",{children:a}),o?ke.jsx(pr,{variant:"subtitle1",children:o}):ke.jsx("div",{})]}),d?ke.jsx(cr,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:s?ke.jsxs(Qe.Fragment,{children:[u?ke.jsx(cr,{item:!0,children:ke.jsx(aD,{alertStats:u})}):ke.jsx("div",{}),s.map(m=>ke.jsx(cr,{item:!0,children:ke.jsx(rk,{data:m})}))]}):ke.jsx("div",{})}):ke.jsx("div",{})]}):ke.jsxs(Qe.Fragment,{children:[ke.jsxs(cr,{item:!0,children:[i?ke.jsx(pr,{variant:"h5",children:i}):ke.jsx("div",{}),ke.jsx("div",{children:a}),o?ke.jsx(pr,{variant:"subtitle1",children:o}):ke.jsx("div",{})]}),d?ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(cr,{container:!0,direction:"row",spacing:1,children:s?ke.jsxs(Qe.Fragment,{children:[u?ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(aD,{alertStats:u})}):ke.jsx("div",{}),s.map(m=>ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(rk,{data:m})}))]}):ke.jsx("div",{})})}):ke.jsx("div",{})]}),f?c.map(m=>ke.jsx(cr,{item:!0,xs:!0,sm:!0,md:!0,children:ke.jsx(jz,{data:m})})):ke.jsx("div",{})]})})});return ke.jsx(cr,{item:!0,...Fpe(t),children:n?n({id:l,children:p}):p})},oD=e=>ke.jsxs("div",{children:[ke.jsx(pr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),ke.jsx(pr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),zpe=e=>ke.jsx(Qe.Fragment,{children:e.counters.length===1?ke.jsx(oD,{...e.counters[0]}):ke.jsx(cr,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map((t,n)=>ke.jsx(cr,{item:!0,xs:!0,component:Ia,height:"100%",children:ke.jsx(Ia,{children:ke.jsx(oD,{...t})})},n))})}),Bpe=e=>ke.jsxs("div",{children:[ke.jsxs(Ia,{display:"flex",alignItems:"center",children:[ke.jsx(Ia,{width:"100%",mr:1,children:ke.jsx(fz,{variant:"determinate",value:e.value/e.maxValue*100})}),ke.jsx(Ia,{minWidth:35,children:ke.jsx(pr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),ke.jsx(Ia,{width:"100%",children:ke.jsx(pr,{variant:"body2",color:"textSecondary",children:e.details??""})})]});var zz={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(n,r){e.exports=r()})(self,function(){return function(){var n={98847:function(i,o,a){var s=a(71828),u={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var c in u){var d=c.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");s.addStyleRule(d,u[c])}},98222:function(i,o,a){i.exports=a(82887)},27206:function(i,o,a){i.exports=a(60822)},5224:function(i,o,a){i.exports=a(83832)},59509:function(i,o,a){i.exports=a(72201)},49866:function(i,o,a){i.exports=a(99442)},19548:function(i,o,a){i.exports=a(8729)},61039:function(i,o,a){i.exports=a(14382)},24296:function(i,o,a){i.exports=a(43102)},58872:function(i,o,a){i.exports=a(92165)},65591:function(i,o,a){i.exports=a(36071)},69738:function(i,o,a){i.exports=a(43905)},92650:function(i,o,a){i.exports=a(35902)},73434:function(i,o,a){i.exports=a(94507)},760:function(i,o,a){var s=a(19548);s.register([a(27206),a(5224),a(58872),a(65591),a(69738),a(92650),a(49866),a(25743),a(6197),a(73434),a(54201),a(98222),a(61039),a(24296),a(66398),a(59509)]),i.exports=s},54201:function(i,o,a){i.exports=a(58810)},25743:function(i,o,a){i.exports=a(52979)},66398:function(i,o,a){i.exports=a(32275)},6197:function(i,o,a){i.exports=a(47462)},82884:function(i){i.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(i,o,a){var s=a(82884),u=a(41940),c=a(85555),d=a(44467).templatedArray;a(24695),i.exports=d("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",c.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",c.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:u({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(i,o,a){var s=a(71828),u=a(89298),c=a(92605).draw;function d(p){var m=p._fullLayout;s.filterVisible(m.annotations).forEach(function(g){var b=u.getFromId(p,g.xref),v=u.getFromId(p,g.yref),h=u.getRefType(g.xref),y=u.getRefType(g.yref);g._extremes={},h==="range"&&f(g,b),y==="range"&&f(g,v)})}function f(p,m){var g,b=m._id,v=b.charAt(0),h=p[v],y=p["a"+v],w=p[v+"ref"],_=p["a"+v+"ref"],x=p["_"+v+"padplus"],T=p["_"+v+"padminus"],k={x:1,y:-1}[v]*p[v+"shift"],S=3*p.arrowsize*p.arrowwidth||0,C=S+k,M=S-k,O=3*p.startarrowsize*p.arrowwidth||0,D=O+k,P=O-k;if(_===w){var E=u.findExtremes(m,[m.r2c(h)],{ppadplus:C,ppadminus:M}),I=u.findExtremes(m,[m.r2c(y)],{ppadplus:Math.max(x,D),ppadminus:Math.max(T,P)});g={min:[E.min[0],I.min[0]],max:[E.max[0],I.max[0]]}}else D=y?D+y:D,P=y?P-y:P,g=u.findExtremes(m,[m.r2c(h)],{ppadplus:Math.max(x,C,D),ppadminus:Math.max(T,M,P)});p._extremes[b]=g}i.exports=function(p){var m=p._fullLayout;if(s.filterVisible(m.annotations).length&&p._fullData.length)return s.syncOrAsync([c,d],p)}},44317:function(i,o,a){var s=a(71828),u=a(73972),c=a(44467).arrayEditor;function d(p,m){var g,b,v,h,y,w,_,x=p._fullLayout.annotations,T=[],k=[],S=[],C=(m||[]).length;for(g=0;g0||g.explicitOff.length>0},onClick:function(p,m){var g,b,v=d(p,m),h=v.on,y=v.off.concat(v.explicitOff),w={},_=p._fullLayout.annotations;if(h.length||y.length){for(g=0;g.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var ye=!1,Te=["x","y"],Ae=0;Ae1)&&(Xe===qe?((Ze=ot.r2fraction(C["a"+Ue]))<0||Ze>1)&&(ye=!0):ye=!0),Re=ot._offset+ot.r2p(C[Ue]),Fe=.5}else{var ut=St==="domain";Ue==="x"?($e=C[Ue],Re=ut?ot._offset+ot._length*$e:Re=F.l+F.w*$e):($e=1-C[Ue],Re=ut?ot._offset+ot._length*$e:Re=F.t+F.h*$e),Fe=C.showarrow?.5:$e}if(C.showarrow){it.head=Re;var ht=C["a"+Ue];if(Be=dt*xe(.5,C.xanchor)-vt*xe(.5,C.yanchor),Xe===qe){var Rt=p.getRefType(Xe);Rt==="domain"?(Ue==="y"&&(ht=1-ht),it.tail=ot._offset+ot._length*ht):Rt==="paper"?Ue==="y"?(ht=1-ht,it.tail=F.t+F.h*ht):it.tail=F.l+F.w*ht:it.tail=ot._offset+ot.r2p(ht),Le=Be}else it.tail=Re+ht,Le=Be+ht;it.text=it.tail+Be;var Ct=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=d.constrain(it.head,1,Ct-1)),Xe==="pixel"){var Wt=-Math.max(it.tail-3,it.text),_t=Math.min(it.tail+3,it.text)-Ct;Wt>0?(it.tail+=Wt,it.text+=Wt):_t>0&&(it.tail-=_t,it.text-=_t)}it.tail+=tt,it.head+=tt}else Le=Be=We*xe(Fe,ze),it.text=Re+Be;it.text+=tt,Be+=tt,Le+=tt,C["_"+Ue+"padplus"]=We/2+Le,C["_"+Ue+"padminus"]=We/2-Le,C["_"+Ue+"size"]=We,C["_"+Ue+"shift"]=Be}if(ye)ee.remove();else{var be=0,Ce=0;if(C.align!=="left"&&(be=(de-K)*(C.align==="center"?.5:1)),C.valign!=="top"&&(Ce=(_e-ne)*(C.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:G+be-1,y:G+Ce}).call(g.setClipUrl,Q?q:null,S);else{var Ge=G+Ce-we.top,He=G+be-we.left;se.call(v.positionText,He,Ge).call(g.setClipUrl,Q?q:null,S)}re.select("rect").call(g.setRect,G,G,de,_e),X.call(g.setRect,H/2,H/2,ue-H,pe-H),ee.call(g.setTranslate,Math.round(Y.x.text-ue/2),Math.round(Y.y.text-pe/2)),U.attr({transform:"rotate("+L+","+Y.x.text+","+Y.y.text+")"});var et,Ke=function(Ye,nt){W.selectAll(".annotation-arrow-g").remove();var ct=Y.x.head,yt=Y.y.head,rt=Y.x.tail+Ye,Ft=Y.y.tail+nt,Yt=Y.x.text+Ye,Mt=Y.y.text+nt,jt=d.rotationXYMatrix(L,Yt,Mt),Lt=d.apply2DTransform(jt),gt=d.apply2DTransform2(jt),mt=+X.attr("width"),xt=+X.attr("height"),Ut=Yt-.5*mt,It=Ut+mt,zt=Mt-.5*xt,kt=zt+xt,Ot=[[Ut,zt,Ut,kt],[Ut,kt,It,kt],[It,kt,It,zt],[It,zt,Ut,zt]].map(gt);if(!Ot.reduce(function(dn,gn){return dn^!!d.segmentsIntersect(ct,yt,ct+1e6,yt+1e6,gn[0],gn[1],gn[2],gn[3])},!1)){Ot.forEach(function(dn){var gn=d.segmentsIntersect(rt,Ft,ct,yt,dn[0],dn[1],dn[2],dn[3]);gn&&(rt=gn.x,Ft=gn.y)});var At=C.arrowwidth,Nt=C.arrowcolor,$t=C.arrowside,Bt=W.append("g").style({opacity:m.opacity(Nt)}).classed("annotation-arrow-g",!0),Xt=Bt.append("path").attr("d","M"+rt+","+Ft+"L"+ct+","+yt).style("stroke-width",At+"px").call(m.stroke,m.rgb(Nt));if(_(Xt,$t,C),j.annotationPosition&&Xt.node().parentNode&&!O){var Zt=ct,qt=yt;if(C.standoff){var Ht=Math.sqrt(Math.pow(ct-rt,2)+Math.pow(yt-Ft,2));Zt+=C.standoff*(rt-ct)/Ht,qt+=C.standoff*(Ft-yt)/Ht}var sn,xn,mn=Bt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(rt-Zt)+","+(Ft-qt),transform:f(Zt,qt)}).style("stroke-width",At+6+"px").call(m.stroke,"rgba(0,0,0,0)").call(m.fill,"rgba(0,0,0,0)");y.init({element:mn.node(),gd:S,prepFn:function(){var dn=g.getTranslate(ee);sn=dn.x,xn=dn.y,D&&D.autorange&&B(D._name+".autorange",!0),P&&P.autorange&&B(P._name+".autorange",!0)},moveFn:function(dn,gn){var en=Lt(sn,xn),kn=en[0]+dn,un=en[1]+gn;ee.call(g.setTranslate,kn,un),N("x",T(D,dn,"x",F,C)),N("y",T(P,gn,"y",F,C)),C.axref===C.xref&&N("ax",T(D,dn,"ax",F,C)),C.ayref===C.yref&&N("ay",T(P,gn,"ay",F,C)),Bt.attr("transform",f(dn,gn)),U.attr({transform:"rotate("+L+","+kn+","+un+")"})},doneFn:function(){u.call("_guiRelayout",S,R());var dn=document.querySelector(".js-notes-box-panel");dn&&dn.redraw(dn.selectedObj)}})}}};C.showarrow&&Ke(0,0),V&&y.init({element:ee.node(),gd:S,prepFn:function(){et=U.attr("transform")},moveFn:function(Ye,nt){var ct="pointer";if(C.showarrow)C.axref===C.xref?N("ax",T(D,Ye,"ax",F,C)):N("ax",C.ax+Ye),C.ayref===C.yref?N("ay",T(P,nt,"ay",F.w,C)):N("ay",C.ay+nt),Ke(Ye,nt);else{if(O)return;var yt,rt;if(D)yt=T(D,Ye,"x",F,C);else{var Ft=C._xsize/F.w,Yt=C.x+(C._xshift-C.xshift)/F.w-Ft/2;yt=y.align(Yt+Ye/F.w,Ft,0,1,C.xanchor)}if(P)rt=T(P,nt,"y",F,C);else{var Mt=C._ysize/F.h,jt=C.y-(C._yshift+C.yshift)/F.h-Mt/2;rt=y.align(jt-nt/F.h,Mt,0,1,C.yanchor)}N("x",yt),N("y",rt),D&&P||(ct=y.getCursor(D?.5:yt,P?.5:rt,C.xanchor,C.yanchor))}U.attr({transform:f(Ye,nt)+et}),h(ee,ct)},clickFn:function(Ye,nt){C.captureevents&&S.emit("plotly_clickannotation",he(nt))},doneFn:function(){h(ee),u.call("_guiRelayout",S,R());var Ye=document.querySelector(".js-notes-box-panel");Ye&&Ye.redraw(Ye.selectedObj)}})}}}i.exports={draw:function(S){var C=S._fullLayout;C._infolayer.selectAll(".annotation").remove();for(var M=0;M=0,O=b.indexOf("end")>=0,D=T.backoff*S+v.standoff,P=k.backoff*C+v.startstandoff;if(x.nodeName==="line"){h={x:+g.attr("x1"),y:+g.attr("y1")},y={x:+g.attr("x2"),y:+g.attr("y2")};var E=h.x-y.x,I=h.y-y.y;if(_=(w=Math.atan2(I,E))+Math.PI,D&&P&&D+P>Math.sqrt(E*E+I*I))return void W();if(D){if(D*D>E*E+I*I)return void W();var A=D*Math.cos(w),F=D*Math.sin(w);y.x+=A,y.y+=F,g.attr({x2:y.x,y2:y.y})}if(P){if(P*P>E*E+I*I)return void W();var j=P*Math.cos(w),z=P*Math.sin(w);h.x-=j,h.y-=z,g.attr({x1:h.x,y1:h.y})}}else if(x.nodeName==="path"){var B=x.getTotalLength(),N="";if(B1){v=!0;break}}v?d.fullLayout._infolayer.select(".annotation-"+d.id+'[data-index="'+g+'"]').remove():(b._pdata=u(d.glplot.cameraParams,[f.xaxis.r2l(b.x)*p[0],f.yaxis.r2l(b.y)*p[1],f.zaxis.r2l(b.z)*p[2]]),s(d.graphDiv,b,g,d.id,b._xa,b._ya))}}},2468:function(i,o,a){var s=a(73972),u=a(71828);i.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:a(26997)}}},layoutAttributes:a(26997),handleDefaults:a(20226),includeBasePlot:function(c,d){var f=s.subplotsRegistry.gl3d;if(f)for(var p=f.attrRegex,m=Object.keys(c),g=0;g=0)))return b;if(_===3)y[_]>1&&(y[_]=1);else if(y[_]>=1)return b}var x=Math.round(255*y[0])+", "+Math.round(255*y[1])+", "+Math.round(255*y[2]);return w?"rgba("+x+", "+y[3]+")":"rgb("+x+")"}d.tinyRGB=function(b){var v=b.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},d.rgb=function(b){return d.tinyRGB(s(b))},d.opacity=function(b){return b?s(b).getAlpha():0},d.addOpacity=function(b,v){var h=s(b).toRgb();return"rgba("+Math.round(h.r)+", "+Math.round(h.g)+", "+Math.round(h.b)+", "+v+")"},d.combine=function(b,v){var h=s(b).toRgb();if(h.a===1)return s(b).toRgbString();var y=s(v||m).toRgb(),w=y.a===1?y:{r:255*(1-y.a)+y.r*y.a,g:255*(1-y.a)+y.g*y.a,b:255*(1-y.a)+y.b*y.a},_={r:w.r*(1-h.a)+h.r*h.a,g:w.g*(1-h.a)+h.g*h.a,b:w.b*(1-h.a)+h.b*h.a};return s(_).toRgbString()},d.contrast=function(b,v,h){var y=s(b);return y.getAlpha()!==1&&(y=s(d.combine(b,m))),(y.isDark()?v?y.lighten(v):m:h?y.darken(h):p).toString()},d.stroke=function(b,v){var h=s(v);b.style({stroke:d.tinyRGB(h),"stroke-opacity":h.getAlpha()})},d.fill=function(b,v){var h=s(v);b.style({fill:d.tinyRGB(h),"fill-opacity":h.getAlpha()})},d.clean=function(b){if(b&&typeof b=="object"){var v,h,y,w,_=Object.keys(b);for(v=0;v<_.length;v++)if(w=b[y=_[v]],y.substr(y.length-5)==="color")if(Array.isArray(w))for(h=0;h0?_t>=et:_t<=et));be++)_t>Ye&&_t0?_t>=et:_t<=et));be++)_t>Wt[0]&&_t1){var vt=Math.pow(10,Math.floor(Math.log(dt)/Math.LN10));ot*=vt*m.roundUp(dt/vt,[2,5,10]),(Math.abs(K.start)/K.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=ot}qe.domain=R?[Be+G/se.h,Be+ye-G/se.h]:[Be+Z/se.w,Be+ye-Z/se.w],qe.setScale(),z.attr("transform",g(Math.round(se.l),Math.round(se.t)));var We,ze=z.select("."+P.cbtitleunshift).attr("transform",g(-Math.round(se.l),-Math.round(se.t))),tt=qe.ticklabelposition,it=qe.title.font.size,St=z.select("."+P.cbaxis),Ze=0,ut=0;function ht(Rt,Ct){var Wt={propContainer:qe,propName:B._propPrefix+"title",traceIndex:B._traceIndex,_meta:B._meta,placeholder:ie._dfltTitle.colorbar,containerGroup:z.select("."+P.cbtitle)},_t=Rt.charAt(0)==="h"?Rt.substr(1):"h"+Rt;z.selectAll("."+_t+",."+_t+"-math-group").remove(),w.draw(N,Rt,b(Wt,Ct||{}))}return m.syncOrAsync([c.previousPromises,function(){var Rt,Ct;(R&&Xe||!R&&!Xe)&&(Pe==="top"&&(Rt=Z+se.l+Te*X,Ct=G+se.t+Ae*(1-Be-ye)+3+.75*it),Pe==="bottom"&&(Rt=Z+se.l+Te*X,Ct=G+se.t+Ae*(1-Be)-3-.25*it),Pe==="right"&&(Ct=G+se.t+Ae*Q+3+.75*it,Rt=Z+se.l+Te*Be),ht(qe._id+"title",{attributes:{x:Rt,y:Ct,"text-anchor":R?"start":"middle"}}))},function(){if(!R&&!Xe||R&&Xe){var Rt,Ct=z.select("."+P.cbtitle),Wt=Ct.select("text"),_t=[-U/2,U/2],be=Ct.select(".h"+qe._id+"title-math-group").node(),Ce=15.6;if(Wt.node()&&(Ce=parseInt(Wt.node().style.fontSize,10)*M),be?(Rt=h.bBox(be),ut=Rt.width,(Ze=Rt.height)>Ce&&(_t[1]-=(Ze-Ce)/2)):Wt.node()&&!Wt.classed(P.jsPlaceholder)&&(Rt=h.bBox(Wt.node()),ut=Rt.width,Ze=Rt.height),R){if(Ze){if(Ze+=5,Pe==="top")qe.domain[1]-=Ze/se.h,_t[1]*=-1;else{qe.domain[0]+=Ze/se.h;var Ge=_.lineCount(Wt);_t[1]+=(1-Ge)*Ce}Ct.attr("transform",g(_t[0],_t[1])),qe.setScale()}}else ut&&(Pe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Ct.attr("transform",g(_t[0],_t[1])),qe.setScale())}z.selectAll("."+P.cbfills+",."+P.cblines).attr("transform",R?g(0,Math.round(se.h*(1-qe.domain[1]))):g(Math.round(se.w*qe.domain[0]),0)),St.attr("transform",R?g(0,Math.round(-se.t)):g(Math.round(-se.l),0));var He=z.select("."+P.cbfills).selectAll("rect."+P.cbfill).attr("style","").data(de);He.enter().append("rect").classed(P.cbfill,!0).attr("style",""),He.exit().remove();var et=Me.map(qe.c2p).map(Math.round).sort(function(yt,rt){return yt-rt});He.each(function(yt,rt){var Ft=[rt===0?Me[0]:(de[rt]+de[rt-1])/2,rt===de.length-1?Me[1]:(de[rt]+de[rt+1])/2].map(qe.c2p).map(Math.round);R&&(Ft[1]=m.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,et[0],et[1]));var Yt=s.select(this).attr(R?"x":"y",Re).attr(R?"y":"x",s.min(Ft)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(s.max(Ft)-s.min(Ft),2));if(B._fillgradient)h.gradient(Yt,N,B._id,R?"vertical":"horizontalreversed",B._fillgradient,"fill");else{var Mt=we(yt).replace("e-","");Yt.attr("fill",u(Mt).toHexString())}});var Ke=z.select("."+P.cblines).selectAll("path."+P.cbline).data(Se.color&&Se.width?_e:[]);Ke.enter().append("path").classed(P.cbline,!0),Ke.exit().remove(),Ke.each(function(yt){var rt=Re,Ft=Math.round(qe.c2p(yt))+Se.width/2%1;s.select(this).attr("d","M"+(R?rt+","+Ft:Ft+","+rt)+(R?"h":"v")+ue).call(h.lineGroupStyle,Se.width,ce(yt),Se.dash)}),St.selectAll("g."+qe._id+"tick,path").remove();var Ye=Re+ue+(U||0)/2-(B.ticks==="outside"?1:0),nt=f.calcTicks(qe),ct=f.getTickSigns(qe)[2];return f.drawTicks(N,qe,{vals:qe.ticks==="inside"?f.clipEnds(qe,nt):nt,layer:St,path:f.makeTickPath(qe,Ye,ct),transFn:f.makeTransTickFn(qe)}),f.drawLabels(N,qe,{vals:nt,layer:St,transFn:f.makeTransTickLabelFn(qe),labelFns:f.makeLabelFns(qe,Ye)})},function(){if(R&&!Xe||!R&&Xe){var Rt,Ct,Wt=qe.position||0,_t=qe._offset+qe._length/2;if(Pe==="right")Ct=_t,Rt=se.l+Te*Wt+10+it*(qe.showticklabels?1:.5);else if(Rt=_t,Pe==="bottom"&&(Ct=se.t+Ae*Wt+10+(tt.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&B.ticklen||0)),Pe==="top"){var be=Oe.text.split("
").length;Ct=se.t+Ae*Wt+10-ue-M*it*be}ht((R?"h":"v")+qe._id+"title",{avoid:{selection:s.select(N).selectAll("g."+qe._id+"tick"),side:Pe,offsetTop:R?0:se.t,offsetLeft:R?se.l:0,maxShift:R?ie.width:ie.height},attributes:{x:Rt,y:Ct,"text-anchor":"middle"},transform:{rotate:R?-90:0,offset:0}})}},c.previousPromises,function(){var Rt,Ct=ue+U/2;tt.indexOf("inside")===-1&&(Rt=h.bBox(St.node()),Ct+=R?Rt.width:Rt.height),We=ze.select("text");var Wt=0,_t=R&&Pe==="top",be=!R&&Pe==="right",Ce=0;if(We.node()&&!We.classed(P.jsPlaceholder)){var Ge,He=ze.select(".h"+qe._id+"title-math-group").node();He&&(R&&Xe||!R&&!Xe)?(Wt=(Rt=h.bBox(He)).width,Ge=Rt.height):(Wt=(Rt=h.bBox(ze.node())).right-se.l-(R?Re:Ue),Ge=Rt.bottom-se.t-(R?Ue:Re),R||Pe!=="top"||(Ct+=Rt.height,Ce=Rt.height)),be&&(We.attr("transform",g(Wt/2+it/2,0)),Wt*=2),Ct=Math.max(Ct,R?Wt:Ge)}var et=2*(R?Z:G)+Ct+V+U/2,Ke=0;!R&&Oe.text&&H==="bottom"&&Q<=0&&(et+=Ke=et/2,Ce+=Ke),ie._hColorbarMoveTitle=Ke,ie._hColorbarMoveCBTitle=Ce;var Ye=V+U,nt=(R?Re:Ue)-Ye/2-(R?Z:0),ct=(R?Ue:Re)-(R?xe:G+Ce-Ke);z.select("."+P.cbbg).attr("x",nt).attr("y",ct).attr(R?"width":"height",Math.max(et-Ke,2)).attr(R?"height":"width",Math.max(xe+Ye,2)).call(y.fill,te).call(y.stroke,B.bordercolor).style("stroke-width",V);var yt=be?Math.max(Wt-10,0):0;z.selectAll("."+P.cboutline).attr("x",(R?Re:Ue+Z)+yt).attr("y",(R?Ue+G-xe:Re)+(_t?Ze:0)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(xe-(R?2*G+Ze:2*Z+yt),2)).call(y.stroke,B.outlinecolor).style({fill:"none","stroke-width":U});var rt=R?Le*et:0,Ft=R?0:(1-$e)*et-Ce;if(rt=ae?se.l-rt:-rt,Ft=re?se.t-Ft:-Ft,z.attr("transform",g(rt,Ft)),!R&&(V||u(te).getAlpha()&&!u.equals(ie.paper_bgcolor,te))){var Yt=St.selectAll("text"),Mt=Yt[0].length,jt=z.select("."+P.cbbg).node(),Lt=h.bBox(jt),gt=h.getTranslate(z);Yt.each(function($t,Bt){var Xt=Mt-1;if(Bt===0||Bt===Xt){var Zt,qt=h.bBox(this),Ht=h.getTranslate(this);if(Bt===Xt){var sn=qt.right+Ht.x;(Zt=Lt.right+gt.x+Ue-V-2+X-sn)>0&&(Zt=0)}else if(Bt===0){var xn=qt.left+Ht.x;(Zt=Lt.left+gt.x+Ue+V+2-xn)<0&&(Zt=0)}Zt&&(Mt<3?this.setAttribute("transform","translate("+Zt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var mt={},xt=O[ee],Ut=D[ee],It=O[H],zt=D[H],kt=et-ue;R?(Y==="pixels"?(mt.y=Q,mt.t=xe*It,mt.b=xe*zt):(mt.t=mt.b=0,mt.yt=Q+q*It,mt.yb=Q-q*zt),W==="pixels"?(mt.x=X,mt.l=et*xt,mt.r=et*Ut):(mt.l=kt*xt,mt.r=kt*Ut,mt.xl=X-L*xt,mt.xr=X+L*Ut)):(Y==="pixels"?(mt.x=X,mt.l=xe*xt,mt.r=xe*Ut):(mt.l=mt.r=0,mt.xl=X+q*xt,mt.xr=X-q*Ut),W==="pixels"?(mt.y=1-Q,mt.t=et*It,mt.b=et*zt):(mt.t=kt*It,mt.b=kt*zt,mt.yt=Q-L*It,mt.yb=Q+L*zt));var Ot=B.y<.5?"b":"t",At=B.x<.5?"l":"r";N._fullLayout._reservedMargin[B._id]={};var Nt={r:ie.width-nt-rt,l:nt+mt.r,b:ie.height-ct-Ft,t:ct+mt.b};ae&&re?c.autoMargin(N,B._id,mt):ae?N._fullLayout._reservedMargin[B._id][Ot]=Nt[Ot]:re||R?N._fullLayout._reservedMargin[B._id][At]=Nt[At]:N._fullLayout._reservedMargin[B._id][Ot]=Nt[Ot]}],N)}(F,A,E);j&&j.then&&(E._promises||[]).push(j),E._context.edits.colorbarPosition&&function(z,B,N){var R,q,Y,L=B.orientation==="v",W=N._fullLayout._size;p.init({element:z.node(),gd:N,prepFn:function(){R=z.attr("transform"),v(z)},moveFn:function(U,V){z.attr("transform",R+g(U,V)),q=p.align((L?B._uFrac:B._vFrac)+U/W.w,L?B._thickFrac:B._lenFrac,0,1,B.xanchor),Y=p.align((L?B._vFrac:1-B._uFrac)-V/W.h,L?B._lenFrac:B._thickFrac,0,1,B.yanchor);var te=p.getCursor(q,Y,B.xanchor,B.yanchor);v(z,te)},doneFn:function(){if(v(z),q!==void 0&&Y!==void 0){var U={};U[B._propPrefix+"x"]=q,U[B._propPrefix+"y"]=Y,B._traceIndex!==void 0?d.call("_guiRestyle",N,U,B._traceIndex):d.call("_guiRelayout",N,U)}}})}(F,A,E)}),I.exit().each(function(A){c.autoMargin(E,A._id)}).remove(),I.order()}}},76228:function(i,o,a){var s=a(71828);i.exports=function(u){return s.isPlainObject(u.colorbar)}},12311:function(i,o,a){i.exports={moduleType:"component",name:"colorbar",attributes:a(63583),supplyDefaults:a(62499),draw:a(98981).draw,hasColorbar:a(76228)}},50693:function(i,o,a){var s=a(63583),u=a(30587).counter,c=a(78607),d=a(63282).scales;function f(p){return"`"+p+"`"}c(d),i.exports=function(p,m){p=p||"";var g,b=(m=m||{}).cLetter||"c",v=("onlyIfNumerical"in m&&m.onlyIfNumerical,"noScale"in m?m.noScale:p==="marker.line"),h="showScaleDflt"in m?m.showScaleDflt:b==="z",y=typeof m.colorscaleDflt=="string"?d[m.colorscaleDflt]:null,w=m.editTypeOverride||"",_=p?p+".":"";"colorAttr"in m?(g=m.colorAttr,m.colorAttr):f(_+(g={z:"z",c:"color"}[b]));var x=b+"auto",T=b+"min",k=b+"max",S=b+"mid",C={};C[T]=C[k]=void 0;var M={};M[x]=!1;var O={};return g==="color"&&(O.color={valType:"color",arrayOk:!0,editType:w||"style"},m.anim&&(O.color.anim=!0)),O[x]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:C},O[T]={valType:"number",dflt:null,editType:w||"plot",impliedEdits:M},O[k]={valType:"number",dflt:null,editType:w||"plot",impliedEdits:M},O[S]={valType:"number",dflt:null,editType:"calc",impliedEdits:C},O.colorscale={valType:"colorscale",editType:"calc",dflt:y,impliedEdits:{autocolorscale:!1}},O.autocolorscale={valType:"boolean",dflt:m.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},O.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(O.showscale={valType:"boolean",dflt:h,editType:"calc"},O.colorbar=s),m.noColorAxis||(O.coloraxis={valType:"subplotid",regex:u("coloraxis"),dflt:null,editType:"calc"}),O}},78803:function(i,o,a){var s=a(92770),u=a(71828),c=a(52075).extractOpts;i.exports=function(d,f,p){var m,g=d._fullLayout,b=p.vals,v=p.containerStr,h=v?u.nestedProperty(f,v).get():f,y=c(h),w=y.auto!==!1,_=y.min,x=y.max,T=y.mid,k=function(){return u.aggNums(Math.min,null,b)},S=function(){return u.aggNums(Math.max,null,b)};_===void 0?_=k():w&&(_=h._colorAx&&s(_)?Math.min(_,k()):k()),x===void 0?x=S():w&&(x=h._colorAx&&s(x)?Math.max(x,S()):S()),w&&T!==void 0&&(x-T>T-_?_=T-(x-T):x-T=0?g.colorscale.sequential:g.colorscale.sequentialminus,y._sync("colorscale",m))}},33046:function(i,o,a){var s=a(71828),u=a(52075).hasColorscale,c=a(52075).extractOpts;i.exports=function(d,f){function p(w,_){var x=w["_"+_];x!==void 0&&(w[_]=x)}function m(w,_){var x=_.container?s.nestedProperty(w,_.container).get():w;if(x)if(x.coloraxis)x._colorAx=f[x.coloraxis];else{var T=c(x),k=T.auto;(k||T.min===void 0)&&p(x,_.min),(k||T.max===void 0)&&p(x,_.max),T.autocolorscale&&p(x,"colorscale")}}for(var g=0;g=0;k--,S++){var C=_[k];T[S]=[1-C[0],C[1]]}return T}function y(_,x){x=x||{};for(var T=_.domain,k=_.range,S=k.length,C=new Array(S),M=0;M1.3333333333333333-p?f:p}},70461:function(i,o,a){var s=a(71828),u=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];i.exports=function(c,d,f,p){return c=f==="left"?0:f==="center"?1:f==="right"?2:s.constrain(Math.floor(3*c),0,2),d=p==="bottom"?0:p==="middle"?1:p==="top"?2:s.constrain(Math.floor(3*d),0,2),u[d][c]}},64505:function(i,o){o.selectMode=function(a){return a==="lasso"||a==="select"},o.drawMode=function(a){return a==="drawclosedpath"||a==="drawopenpath"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.openMode=function(a){return a==="drawline"||a==="drawopenpath"},o.rectMode=function(a){return a==="select"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.freeMode=function(a){return a==="lasso"||a==="drawclosedpath"||a==="drawopenpath"},o.selectingOrDrawing=function(a){return o.freeMode(a)||o.rectMode(a)}},28569:function(i,o,a){var s=a(48956),u=a(57035),c=a(38520),d=a(71828).removeElement,f=a(85555),p=i.exports={};p.align=a(92807),p.getCursor=a(70461);var m=a(26041);function g(){var v=document.createElement("div");v.className="dragcover";var h=v.style;return h.position="fixed",h.left=0,h.right=0,h.top=0,h.bottom=0,h.zIndex=999999999,h.background="none",document.body.appendChild(v),v}function b(v){return s(v.changedTouches?v.changedTouches[0]:v,document.body)}p.unhover=m.wrapped,p.unhoverRaw=m.raw,p.init=function(v){var h,y,w,_,x,T,k,S,C=v.gd,M=1,O=C._context.doubleClickDelay,D=v.element;C._mouseDownTime||(C._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=E,c?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=E,D.addEventListener("touchstart",E,{passive:!1})):D.ontouchstart=E;var P=v.clampFn||function(F,j,z){return Math.abs(F)O&&(M=Math.max(M-1,1)),C._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(M,T),!S){var j;try{j=new MouseEvent("click",F)}catch{var z=b(F);(j=document.createEvent("MouseEvents")).initMouseEvent("click",F.bubbles,F.cancelable,F.view,F.detail,F.screenX,F.screenY,z[0],z[1],F.ctrlKey,F.altKey,F.shiftKey,F.metaKey,F.button,F.relatedTarget)}k.dispatchEvent(j)}C._dragging=!1,C._dragged=!1}else C._dragged=!1}},p.coverSlip=g},26041:function(i,o,a){var s=a(11086),u=a(79990),c=a(24401).getGraphDiv,d=a(26675),f=i.exports={};f.wrapped=function(p,m,g){(p=c(p))._fullLayout&&u.clear(p._fullLayout._uid+d.HOVERID),f.raw(p,m,g)},f.raw=function(p,m){var g=p._fullLayout,b=p._hoverdata;m||(m={}),m.target&&!p._dragged&&s.triggerHandler(p,"plotly_beforehover",m)===!1||(g._hoverlayer.selectAll("g").remove(),g._hoverlayer.selectAll("line").remove(),g._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,m.target&&b&&p.emit("plotly_unhover",{event:m,points:b}))}},79952:function(i,o){o.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},o.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(i,o,a){var s=a(39898),u=a(71828),c=u.numberFormat,d=a(92770),f=a(84267),p=a(73972),m=a(7901),g=a(21081),b=u.strTranslate,v=a(63893),h=a(77922),y=a(18783).LINE_SPACING,w=a(37822).DESELECTDIM,_=a(34098),x=a(39984),T=a(23469).appendArrayPointValue,k=i.exports={};function S(ce,we,K){var ne=we.fillpattern,de=ne&&k.getPatternAttr(ne.shape,0,"");if(de){var _e=k.getPatternAttr(ne.bgcolor,0,null),ue=k.getPatternAttr(ne.fgcolor,0,null),pe=ne.fgopacity,xe=k.getPatternAttr(ne.size,0,8),ye=k.getPatternAttr(ne.solidity,0,.3),Te=we.uid;k.pattern(ce,"point",K,Te,de,xe,ye,void 0,ne.fillmode,_e,ue,pe)}else we.fillcolor&&ce.call(m.fill,we.fillcolor)}k.font=function(ce,we,K,ne){u.isPlainObject(we)&&(ne=we.color,K=we.size,we=we.family),we&&ce.style("font-family",we),K+1&&ce.style("font-size",K+"px"),ne&&ce.call(m.fill,ne)},k.setPosition=function(ce,we,K){ce.attr("x",we).attr("y",K)},k.setSize=function(ce,we,K){ce.attr("width",we).attr("height",K)},k.setRect=function(ce,we,K,ne,de){ce.call(k.setPosition,we,K).call(k.setSize,ne,de)},k.translatePoint=function(ce,we,K,ne){var de=K.c2p(ce.x),_e=ne.c2p(ce.y);return!!(d(de)&&d(_e)&&we.node())&&(we.node().nodeName==="text"?we.attr("x",de).attr("y",_e):we.attr("transform",b(de,_e)),!0)},k.translatePoints=function(ce,we,K){ce.each(function(ne){var de=s.select(this);k.translatePoint(ne,de,we,K)})},k.hideOutsideRangePoint=function(ce,we,K,ne,de,_e){we.attr("display",K.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,_e)?null:"none")},k.hideOutsideRangePoints=function(ce,we){if(we._hasClipOnAxisFalse){var K=we.xaxis,ne=we.yaxis;ce.each(function(de){var _e=de[0].trace,ue=_e.xcalendar,pe=_e.ycalendar,xe=p.traceIs(_e,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(xe).each(function(ye){k.hideOutsideRangePoint(ye,s.select(this),K,ne,ue,pe)})})}},k.crispRound=function(ce,we,K){return we&&d(we)?ce._context.staticPlot?we:we<1?1:Math.round(we):K||0},k.singleLineStyle=function(ce,we,K,ne,de){we.style("fill","none");var _e=(((ce||[])[0]||{}).trace||{}).line||{},ue=K||_e.width||0,pe=de||_e.dash||"";m.stroke(we,ne||_e.color),k.dashLine(we,pe,ue)},k.lineGroupStyle=function(ce,we,K,ne){ce.style("fill","none").each(function(de){var _e=(((de||[])[0]||{}).trace||{}).line||{},ue=we||_e.width||0,pe=ne||_e.dash||"";s.select(this).call(m.stroke,K||_e.color).call(k.dashLine,pe,ue)})},k.dashLine=function(ce,we,K){K=+K||0,we=k.dashStyle(we,K),ce.style({"stroke-dasharray":we,"stroke-width":K+"px"})},k.dashStyle=function(ce,we){we=+we||1;var K=Math.max(we,3);return ce==="solid"?ce="":ce==="dot"?ce=K+"px,"+K+"px":ce==="dash"?ce=3*K+"px,"+3*K+"px":ce==="longdash"?ce=5*K+"px,"+5*K+"px":ce==="dashdot"?ce=3*K+"px,"+K+"px,"+K+"px,"+K+"px":ce==="longdashdot"&&(ce=5*K+"px,"+2*K+"px,"+K+"px,"+2*K+"px"),ce},k.singleFillStyle=function(ce,we){var K=s.select(ce.node());S(ce,((K.data()[0]||[])[0]||{}).trace||{},we)},k.fillGroupStyle=function(ce,we){ce.style("stroke-width",0).each(function(K){var ne=s.select(this);K[0].trace&&S(ne,K[0].trace,we)})};var C=a(90998);k.symbolNames=[],k.symbolFuncs=[],k.symbolBackOffs=[],k.symbolNeedLines={},k.symbolNoDot={},k.symbolNoFill={},k.symbolList=[],Object.keys(C).forEach(function(ce){var we=C[ce],K=we.n;k.symbolList.push(K,String(K),ce,K+100,String(K+100),ce+"-open"),k.symbolNames[K]=ce,k.symbolFuncs[K]=we.f,k.symbolBackOffs[K]=we.backoff||0,we.needLine&&(k.symbolNeedLines[K]=!0),we.noDot?k.symbolNoDot[K]=!0:k.symbolList.push(K+200,String(K+200),ce+"-dot",K+300,String(K+300),ce+"-open-dot"),we.noFill&&(k.symbolNoFill[K]=!0)});var M=k.symbolNames.length;function O(ce,we,K,ne){var de=ce%100;return k.symbolFuncs[de](we,K,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}k.symbolNumber=function(ce){if(d(ce))ce=+ce;else if(typeof ce=="string"){var we=0;ce.indexOf("-open")>0&&(we=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(we+=200,ce=ce.replace("-dot","")),(ce=k.symbolNames.indexOf(ce))>=0&&(ce+=we)}return ce%100>=M||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},P={x1:0,x2:0,y1:1,y2:0},E=c("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:P},verticalreversed:{node:"linearGradient",attrs:P,reversed:!0}};k.gradient=function(ce,we,K,ne,de,_e){for(var ue=de.length,pe=I[ne],xe=new Array(ue),ye=0;ye=0&&ce.i===void 0&&(ce.i=_e.i),we.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var xe;xe=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=xe,ne.selectedSizeFn&&(xe=ce.mrc=ne.selectedSizeFn(ce));var ye=k.symbolNumber(ce.mx||ue.symbol)||0;ce.om=ye%200>=100;var Te=Me(ce,K),Ae=G(ce,K);we.attr("d",O(ye,xe,Te,Ae))}var Re,Le,$e,Fe=!1;if(ce.so)$e=pe.outlierwidth,Le=pe.outliercolor,Re=ue.outliercolor;else{var Be=(pe||{}).width;$e=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,Le="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):u.isArrayOrTypedArray(pe.color)?m.defaultLine:pe.color,u.isArrayOrTypedArray(ue.color)&&(Re=m.defaultLine,Fe=!0),Re="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Re=ne.selectedColorFn(ce))}if(ce.om)we.call(m.stroke,Re).style({"stroke-width":($e||1)+"px",fill:"none"});else{we.style("stroke-width",(ce.isBlank?0:$e)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Fe=!0:qe=Ue&&Ue.type,u.isArrayOrTypedArray(qe)&&(qe=qe[0],I[qe]||(qe=0));var Xe=ue.pattern,ot=Xe&&k.getPatternAttr(Xe.shape,ce.i,"");if(qe&&qe!=="none"){var st=ce.mgc;st?Fe=!0:st=Ue.color;var dt=K.uid;Fe&&(dt+="-"+ce.i),k.gradient(we,de,dt,qe,[[0,st],[1,Re]],"fill")}else if(ot){var vt=!1,We=Xe.fgcolor;!We&&_e&&_e.color&&(We=_e.color,vt=!0);var ze=k.getPatternAttr(We,ce.i,_e&&_e.color||null),tt=k.getPatternAttr(Xe.bgcolor,ce.i,null),it=Xe.fgopacity,St=k.getPatternAttr(Xe.size,ce.i,8),Ze=k.getPatternAttr(Xe.solidity,ce.i,.3);vt=vt||ce.mcc||u.isArrayOrTypedArray(Xe.shape)||u.isArrayOrTypedArray(Xe.bgcolor)||u.isArrayOrTypedArray(Xe.fgcolor)||u.isArrayOrTypedArray(Xe.size)||u.isArrayOrTypedArray(Xe.solidity);var ut=K.uid;vt&&(ut+="-"+ce.i),k.pattern(we,"point",de,ut,ot,St,Ze,ce.mcc,Xe.fillmode,tt,ze,it)}else u.isArrayOrTypedArray(Re)?m.fill(we,Re[ce.i]):m.fill(we,Re);$e&&m.stroke(we,Le)}},k.makePointStyleFns=function(ce){var we={},K=ce.marker;return we.markerScale=k.tryColorscale(K,""),we.lineScale=k.tryColorscale(K,"line"),p.traceIs(ce,"symbols")&&(we.ms2mrc=_.isBubble(ce)?x(ce):function(){return(K.size||6)/2}),ce.selectedpoints&&u.extendFlat(we,k.makeSelectedPointStyleFns(ce)),we},k.makeSelectedPointStyleFns=function(ce){var we={},K=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},_e=K.marker||{},ue=ne.marker||{},pe=de.opacity,xe=_e.opacity,ye=ue.opacity,Te=xe!==void 0,Ae=ye!==void 0;(u.isArrayOrTypedArray(pe)||Te||Ae)&&(we.selectedOpacityFn=function(ot){var st=ot.mo===void 0?de.opacity:ot.mo;return ot.selected?Te?xe:st:Ae?ye:w*st});var Re=de.color,Le=_e.color,$e=ue.color;(Le||$e)&&(we.selectedColorFn=function(ot){var st=ot.mcc||Re;return ot.selected?Le||st:$e||st});var Fe=de.size,Be=_e.size,Ue=ue.size,qe=Be!==void 0,Xe=Ue!==void 0;return p.traceIs(ce,"symbols")&&(qe||Xe)&&(we.selectedSizeFn=function(ot){var st=ot.mrc||Fe/2;return ot.selected?qe?Be/2:st:Xe?Ue/2:st}),we},k.makeSelectedTextStyleFns=function(ce){var we={},K=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},_e=K.textfont||{},ue=ne.textfont||{},pe=de.color,xe=_e.color,ye=ue.color;return we.selectedTextColorFn=function(Te){var Ae=Te.tc||pe;return Te.selected?xe||Ae:ye||(xe?Ae:m.addOpacity(Ae,w))},we},k.selectedPointStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var K=k.makeSelectedPointStyleFns(we),ne=we.marker||{},de=[];K.selectedOpacityFn&&de.push(function(_e,ue){_e.style("opacity",K.selectedOpacityFn(ue))}),K.selectedColorFn&&de.push(function(_e,ue){m.fill(_e,K.selectedColorFn(ue))}),K.selectedSizeFn&&de.push(function(_e,ue){var pe=ue.mx||ne.symbol||0,xe=K.selectedSizeFn(ue);_e.attr("d",O(k.symbolNumber(pe),xe,Me(ue,we),G(ue,we))),ue.mrc2=xe}),de.length&&ce.each(function(_e){for(var ue=s.select(this),pe=0;pe0?K:0}function N(ce,we,K){return K&&(ce=U(ce)),we?q(ce[1]):R(ce[0])}function R(ce){var we=s.round(ce,2);return A=we,we}function q(ce){var we=s.round(ce,2);return F=we,we}function Y(ce,we,K,ne){var de=ce[0]-we[0],_e=ce[1]-we[1],ue=K[0]-we[0],pe=K[1]-we[1],xe=Math.pow(de*de+_e*_e,.25),ye=Math.pow(ue*ue+pe*pe,.25),Te=(ye*ye*de-xe*xe*ue)*ne,Ae=(ye*ye*_e-xe*xe*pe)*ne,Re=3*ye*(xe+ye),Le=3*xe*(xe+ye);return[[R(we[0]+(Re&&Te/Re)),q(we[1]+(Re&&Ae/Re))],[R(we[0]-(Le&&Te/Le)),q(we[1]-(Le&&Ae/Le))]]}k.textPointStyle=function(ce,we,K){if(ce.size()){var ne;if(we.selectedpoints){var de=k.makeSelectedTextStyleFns(we);ne=de.selectedTextColorFn}var _e=we.texttemplate,ue=K._fullLayout;ce.each(function(pe){var xe=s.select(this),ye=_e?u.extractOption(pe,we,"txt","texttemplate"):u.extractOption(pe,we,"tx","text");if(ye||ye===0){if(_e){var Te=we._module.formatLabels,Ae=Te?Te(pe,we,ue):{},Re={};T(Re,we,pe.i);var Le=we._meta||{};ye=u.texttemplateString(ye,Ae,ue._d3locale,Re,pe,Le)}var $e=pe.tp||we.textposition,Fe=B(pe,we),Be=ne?ne(pe):pe.tc||we.textfont.color;xe.call(k.font,pe.tf||we.textfont.family,Fe,Be).text(ye).call(v.convertToTspans,K).call(z,$e,Fe,pe.mrc)}else xe.remove()})}},k.selectedTextStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var K=k.makeSelectedTextStyleFns(we);ce.each(function(ne){var de=s.select(this),_e=K.selectedTextColorFn(ne),ue=ne.tp||we.textposition,pe=B(ne,we);m.fill(de,_e);var xe=p.traceIs(we,"bar-like");z(de,ue,pe,ne.mrc2||ne.mrc,xe)})}},k.smoothopen=function(ce,we){if(ce.length<3)return"M"+ce.join("L");var K,ne="M"+ce[0],de=[];for(K=1;K=xe||ot>=Te&&ot<=xe)&&(st<=Ae&&st>=ye||st>=Ae&&st<=ye)&&(ce=[ot,st])}return ce}k.steps=function(ce){var we=L[ce]||W;return function(K){for(var ne="M"+R(K[0][0])+","+q(K[0][1]),de=K.length,_e=1;_e=1e4&&(k.savedBBoxes={},V=0),K&&(k.savedBBoxes[K]=Le),V++,u.extendFlat({},Le)},k.setClipUrl=function(ce,we,K){ce.attr("clip-path",ee(we,K))},k.getTranslate=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(K,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+we[0]||0,y:+we[1]||0}},k.setTranslate=function(ce,we,K){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[ne]("transform")||"";return we=we||0,K=K||0,_e=_e.replace(/(\btranslate\(.*?\);?)/,"").trim(),_e=(_e+=b(we,K)).trim(),ce[de]("transform",_e),_e},k.getScale=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(K,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+we[0]||1,y:+we[1]||1}},k.setScale=function(ce,we,K){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[ne]("transform")||"";return we=we||1,K=K||1,_e=_e.replace(/(\bscale\(.*?\);?)/,"").trim(),_e=(_e+="scale("+we+","+K+")").trim(),ce[de]("transform",_e),_e};var H=/\s*sc.*/;k.setPointGroupScale=function(ce,we,K){if(we=we||1,K=K||1,ce){var ne=we===1&&K===1?"":"scale("+we+","+K+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(H,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Z=/translate\([^)]*\)\s*$/;function G(ce,we){var K;return ce&&(K=ce.mf),K===void 0&&(K=we.marker&&we.marker.standoff||0),we._geo||we._xA?K:-K}k.setTextPointsScale=function(ce,we,K){ce&&ce.each(function(){var ne,de=s.select(this),_e=de.select("text");if(_e.node()){var ue=parseFloat(_e.attr("x")||0),pe=parseFloat(_e.attr("y")||0),xe=(de.attr("transform")||"").match(Z);ne=we===1&&K===1?[]:[b(ue,pe),"scale("+we+","+K+")",b(-ue,-pe)],xe&&ne.push(xe),de.attr("transform",ne.join(""))}})},k.getMarkerStandoff=G;var X,Q,re,ae,ie,se,he=Math.atan2,Se=Math.cos,Oe=Math.sin;function Pe(ce,we){var K=we[0],ne=we[1];return[K*Se(ce)-ne*Oe(ce),K*Oe(ce)+ne*Se(ce)]}function Me(ce,we){var K,ne,de=ce.ma;de===void 0&&(de=we.marker.angle||0);var _e=we.marker.angleref;if(_e==="previous"||_e==="north"){if(we._geo){var ue=we._geo.project(ce.lonlat);K=ue[0],ne=ue[1]}else{var pe=we._xA,xe=we._yA;if(!pe||!xe)return 90;K=pe.c2p(ce.x),ne=xe.c2p(ce.y)}if(we._geo){var ye,Te=ce.lonlat[0],Ae=ce.lonlat[1],Re=we._geo.project([Te,Ae+1e-5]),Le=we._geo.project([Te+1e-5,Ae]),$e=he(Le[1]-ne,Le[0]-K),Fe=he(Re[1]-ne,Re[0]-K);if(_e==="north")ye=de/180*Math.PI;else if(_e==="previous"){var Be=Te/180*Math.PI,Ue=Ae/180*Math.PI,qe=X/180*Math.PI,Xe=Q/180*Math.PI,ot=qe-Be,st=Se(Xe)*Oe(ot),dt=Oe(Xe)*Se(Ue)-Se(Xe)*Oe(Ue)*Se(ot);ye=-he(st,dt)-Math.PI,X=Te,Q=Ae}var vt=Pe($e,[Se(ye),0]),We=Pe(Fe,[Oe(ye),0]);de=he(vt[1]+We[1],vt[0]+We[0])/Math.PI*180,_e!=="previous"||se===we.uid&&ce.i===ie+1||(de=null)}if(_e==="previous"&&!we._geo)if(se===we.uid&&ce.i===ie+1&&d(K)&&d(ne)){var ze=K-re,tt=ne-ae,it=we.line&&we.line.shape||"",St=it.slice(it.length-1);St==="h"&&(tt=0),St==="v"&&(ze=0),de+=he(tt,ze)/Math.PI*180+90}else de=null}return re=K,ae=ne,ie=ce.i,se=we.uid,de}k.getMarkerAngle=Me},90998:function(i,o,a){var s,u,c,d,f=a(95616),p=a(39898).round,m="M0,0Z",g=Math.sqrt(2),b=Math.sqrt(3),v=Math.PI,h=Math.cos,y=Math.sin;function w(x){return x===null}function _(x,T,k){if(!(x&&x%360!=0||T))return k;if(c===x&&d===T&&s===k)return u;function S(N,R){var q=h(N),Y=y(N),L=R[0],W=R[1]+(T||0);return[L*q-W*Y,L*Y+W*q]}c=x,d=T,s=k;for(var C=x/180*v,M=0,O=0,D=f(k),P="",E=0;E0,y=f._context.staticPlot;p.each(function(w){var _,x=w[0].trace,T=x.error_x||{},k=x.error_y||{};x.ids&&(_=function(O){return O.id});var S=d.hasMarkers(x)&&x.marker.maxdisplayed>0;k.visible||T.visible||(w=[]);var C=s.select(this).selectAll("g.errorbar").data(w,_);if(C.exit().remove(),w.length){T.visible||C.selectAll("path.xerror").remove(),k.visible||C.selectAll("path.yerror").remove(),C.style("opacity",1);var M=C.enter().append("g").classed("errorbar",!0);h&&M.style("opacity",0).transition().duration(g.duration).style("opacity",1),c.setClipUrl(C,m.layerClipId,f),C.each(function(O){var D=s.select(this),P=function(z,B,N){var R={x:B.c2p(z.x),y:N.c2p(z.y)};return z.yh!==void 0&&(R.yh=N.c2p(z.yh),R.ys=N.c2p(z.ys),u(R.ys)||(R.noYS=!0,R.ys=N.c2p(z.ys,!0))),z.xh!==void 0&&(R.xh=B.c2p(z.xh),R.xs=B.c2p(z.xs),u(R.xs)||(R.noXS=!0,R.xs=B.c2p(z.xs,!0))),R}(O,b,v);if(!S||O.vis){var E,I=D.select("path.yerror");if(k.visible&&u(P.x)&&u(P.yh)&&u(P.ys)){var A=k.width;E="M"+(P.x-A)+","+P.yh+"h"+2*A+"m-"+A+",0V"+P.ys,P.noYS||(E+="m-"+A+",0h"+2*A),I.size()?h&&(I=I.transition().duration(g.duration).ease(g.easing)):I=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",E)}else I.remove();var F=D.select("path.xerror");if(T.visible&&u(P.y)&&u(P.xh)&&u(P.xs)){var j=(T.copy_ystyle?k:T).width;E="M"+P.xh+","+(P.y-j)+"v"+2*j+"m0,-"+j+"H"+P.xs,P.noXS||(E+="m0,-"+j+"v"+2*j),F.size()?h&&(F=F.transition().duration(g.duration).ease(g.easing)):F=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("xerror",!0),F.attr("d",E)}else F.remove()}})}})}},62662:function(i,o,a){var s=a(39898),u=a(7901);i.exports=function(c){c.each(function(d){var f=d[0].trace,p=f.error_y||{},m=f.error_x||{},g=s.select(this);g.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(u.stroke,p.color),m.copy_ystyle&&(m=p),g.selectAll("path.xerror").style("stroke-width",m.thickness+"px").call(u.stroke,m.color)})}},77914:function(i,o,a){var s=a(41940),u=a(528).hoverlabel,c=a(1426).extendFlat;i.exports={hoverlabel:{bgcolor:c({},u.bgcolor,{arrayOk:!0}),bordercolor:c({},u.bordercolor,{arrayOk:!0}),font:s({arrayOk:!0,editType:"none"}),align:c({},u.align,{arrayOk:!0}),namelength:c({},u.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(i,o,a){var s=a(71828),u=a(73972);function c(d,f,p,m){m=m||s.identity,Array.isArray(d)&&(f[0][p]=m(d))}i.exports=function(d){var f=d.calcdata,p=d._fullLayout;function m(y){return function(w){return s.coerceHoverinfo({hoverinfo:w},{_module:y._module},p)}}for(var g=0;g=0&&b.indexde[0]._length||ht<0||ht>_e[0]._length)return y.unhoverRaw(ae,ie)}else ut="xpx"in ie?ie.xpx:de[0]._length/2,ht="ypx"in ie?ie.ypx:_e[0]._length/2;if(ie.pointerX=ut+de[0]._offset,ie.pointerY=ht+_e[0]._offset,Le="xval"in ie?x.flat(Oe,ie.xval):x.p2c(de,ut),$e="yval"in ie?x.flat(Oe,ie.yval):x.p2c(_e,ht),!u(Le[0])||!u($e[0]))return d.warn("Fx.hover failed",ie,ae),y.unhoverRaw(ae,ie)}var Wt=1/0;function _t(en,kn){for(Be=0;Beze&&(tt.splice(0,ze),Wt=tt[0].distance),we&&Re!==0&&tt.length===0){We.distance=Re,We.index=!1;var Bn=qe._module.hoverPoints(We,dt,vt,"closest",{hoverLayer:Pe._hoverlayer});if(Bn&&(Bn=Bn.filter(function(Tr){return Tr.spikeDistance<=Re})),Bn&&Bn.length){var En,Wn=Bn.filter(function(Tr){return Tr.xa.showspikes&&Tr.xa.spikesnap!=="hovered data"});if(Wn.length){var gr=Wn[0];u(gr.x0)&&u(gr.y0)&&(En=Ce(gr),(!St.vLinePoint||St.vLinePoint.spikeDistance>En.spikeDistance)&&(St.vLinePoint=En))}var Va=Bn.filter(function(Tr){return Tr.ya.showspikes&&Tr.ya.spikesnap!=="hovered data"});if(Va.length){var ro=Va[0];u(ro.x0)&&u(ro.y0)&&(En=Ce(ro),(!St.hLinePoint||St.hLinePoint.spikeDistance>En.spikeDistance)&&(St.hLinePoint=En))}}}}}function be(en,kn,un){for(var tn,Fn=null,Rn=1/0,Bn=0;Bn0&&Math.abs(en.distance)Ft-1;Yt--)gt(tt[Yt]);tt=Mt,et()}var mt=ae._hoverdata,xt=[],Ut=te(ae),It=ee(ae);for(Fe=0;Fe1||tt.length>1)||Te==="closest"&&Ze&&tt.length>1,xn=h.combine(Pe.plot_bgcolor||h.background,Pe.paper_bgcolor),mn=B(tt,{gd:ae,hovermode:Te,rotateLabels:sn,bgColor:xn,container:Pe._hoverlayer,outerContainer:Pe._paper.node(),commonLabelOpts:Pe.hoverlabel,hoverdistance:Pe.hoverdistance}),dn=mn.hoverLabels;if(x.isUnifiedHover(Te)||(function(en,kn,un,tn){var Fn,Rn,Bn,En,Wn,gr,Va,ro=kn?"xa":"ya",Tr=kn?"ya":"xa",Ki=0,Jr=1,Cr=en.size(),Gr=new Array(Cr),Ga=0,jn=tn.minX,fn=tn.maxX,Xn=tn.minY,ea=tn.maxY,Un=function(Ln){return Ln*un._invScaleX},Kn=function(Ln){return Ln*un._invScaleY};function Yn(Ln){var ta=Ln[0],Wo=Ln[Ln.length-1];if(Rn=ta.pmin-ta.pos-ta.dp+ta.size,Bn=Wo.pos+Wo.dp+Wo.size-ta.pmax,Rn>.01){for(Wn=Ln.length-1;Wn>=0;Wn--)Ln[Wn].dp+=Rn;Fn=!1}if(!(Bn<.01)){if(Rn<-.01){for(Wn=Ln.length-1;Wn>=0;Wn--)Ln[Wn].dp-=Bn;Fn=!1}if(Fn){var va=0;for(En=0;Enta.pmax&&va++;for(En=Ln.length-1;En>=0&&!(va<=0);En--)(gr=Ln[En]).pos>ta.pmax-1&&(gr.del=!0,va--);for(En=0;En=0;Wn--)Ln[Wn].dp-=Bn;for(En=Ln.length-1;En>=0&&!(va<=0);En--)(gr=Ln[En]).pos+gr.dp+gr.size>ta.pmax&&(gr.del=!0,va--)}}}for(en.each(function(Ln){var ta=Ln[ro],Wo=Ln[Tr],va=ta._id.charAt(0)==="x",hs=ta.range;Ga===0&&hs&&hs[0]>hs[1]!==va&&(Jr=-1);var ms=0,Ml=va?un.width:un.height;if(un.hovermode==="x"||un.hovermode==="y"){var Zi,Di,Pl=R(Ln,kn),Lf=Ln.anchor,Pc=Lf==="end"?-1:1;if(Lf==="middle")Di=(Zi=Ln.crossPos+(va?Kn(Pl.y-Ln.by/2):Un(Ln.bx/2+Ln.tx2width/2)))+(va?Kn(Ln.by):Un(Ln.bx));else if(va)Di=(Zi=Ln.crossPos+Kn(E+Pl.y)-Kn(Ln.by/2-E))+Kn(Ln.by);else{var If=Un(Pc*E+Pl.x),su=If+Un(Pc*Ln.bx);Zi=Ln.crossPos+Math.min(If,su),Di=Ln.crossPos+Math.max(If,su)}va?Xn!==void 0&&ea!==void 0&&Math.min(Di,ea)-Math.max(Zi,Xn)>1&&(Wo.side==="left"?(ms=Wo._mainLinePosition,Ml=un.width):Ml=Wo._mainLinePosition):jn!==void 0&&fn!==void 0&&Math.min(Di,fn)-Math.max(Zi,jn)>1&&(Wo.side==="top"?(ms=Wo._mainLinePosition,Ml=un.height):Ml=Wo._mainLinePosition)}Gr[Ga++]=[{datum:Ln,traceIndex:Ln.trace.index,dp:0,pos:Ln.pos,posref:Ln.posref,size:Ln.by*(va?O:1)/2,pmin:ms,pmax:Ml}]}),Gr.sort(function(Ln,ta){return Ln[0].posref-ta[0].posref||Jr*(ta[0].traceIndex-Ln[0].traceIndex)});!Fn&&Ki<=Cr;){for(Ki++,Fn=!0,En=0;En.01&&Wr.pmin===Yr.pmin&&Wr.pmax===Yr.pmax){for(Wn=la.length-1;Wn>=0;Wn--)la[Wn].dp+=Rn;for(er.push.apply(er,la),Gr.splice(En+1,1),Va=0,Wn=er.length-1;Wn>=0;Wn--)Va+=er[Wn].dp;for(Bn=Va/er.length,Wn=er.length-1;Wn>=0;Wn--)er[Wn].dp-=Bn;Fn=!1}else En++}Gr.forEach(Yn)}for(En=Gr.length-1;En>=0;En--){var ii=Gr[En];for(Wn=ii.length-1;Wn>=0;Wn--){var ko=ii[Wn],Ya=ko.datum;Ya.offset=ko.dp,Ya.del=ko.del}}}(dn,sn,Pe,mn.commonLabelBoundingBox),q(dn,sn,Pe._invScaleX,Pe._invScaleY)),Se&&Se.tagName){var gn=_.getComponentMethod("annotations","hasClickToShow")(ae,xt);b(s.select(Se),gn?"pointer":"")}Se&&!he&&function(en,kn,un){if(!un||un.length!==en._hoverdata.length)return!0;for(var tn=un.length-1;tn>=0;tn--){var Fn=un[tn],Rn=en._hoverdata[tn];if(Fn.curveNumber!==Rn.curveNumber||String(Fn.pointNumber)!==String(Rn.pointNumber)||String(Fn.pointNumbers)!==String(Rn.pointNumbers))return!0}return!1}(ae,0,mt)&&(mt&&ae.emit("plotly_unhover",{event:ie,points:mt}),ae.emit("plotly_hover",{event:ie,points:ae._hoverdata,xaxes:de,yaxes:_e,xvals:Le,yvals:$e}))})(Z,G,X,Q,re)})},o.loneHover=function(Z,G){var X=!0;Array.isArray(Z)||(X=!1,Z=[Z]);var Q=G.gd,re=te(Q),ae=ee(Q),ie=B(Z.map(function(Se){var Oe=Se._x0||Se.x0||Se.x||0,Pe=Se._x1||Se.x1||Se.x||0,Me=Se._y0||Se.y0||Se.y||0,ce=Se._y1||Se.y1||Se.y||0,we=Se.eventData;if(we){var K=Math.min(Oe,Pe),ne=Math.max(Oe,Pe),de=Math.min(Me,ce),_e=Math.max(Me,ce),ue=Se.trace;if(_.traceIs(ue,"gl3d")){var pe=Q._fullLayout[ue.scene]._scene.container,xe=pe.offsetLeft,ye=pe.offsetTop;K+=xe,ne+=xe,de+=ye,_e+=ye}we.bbox={x0:K+ae,x1:ne+ae,y0:de+re,y1:_e+re},G.inOut_bbox&&G.inOut_bbox.push(we.bbox)}else we=!1;return{color:Se.color||h.defaultLine,x0:Se.x0||Se.x||0,x1:Se.x1||Se.x||0,y0:Se.y0||Se.y||0,y1:Se.y1||Se.y||0,xLabel:Se.xLabel,yLabel:Se.yLabel,zLabel:Se.zLabel,text:Se.text,name:Se.name,idealAlign:Se.idealAlign,borderColor:Se.borderColor,fontFamily:Se.fontFamily,fontSize:Se.fontSize,fontColor:Se.fontColor,nameLength:Se.nameLength,textAlign:Se.textAlign,trace:Se.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Se.hovertemplate||!1,hovertemplateLabels:Se.hovertemplateLabels||!1,eventData:we}}),{gd:Q,hovermode:"closest",rotateLabels:!1,bgColor:G.bgColor||h.background,container:s.select(G.container),outerContainer:G.outerContainer||G.container}).hoverLabels,se=0,he=0;return ie.sort(function(Se,Oe){return Se.y0-Oe.y0}).each(function(Se,Oe){var Pe=Se.y0-Se.by/2;Se.offset=Pe-5([\s\S]*)<\/extra>/;function B(Z,G){var X=G.gd,Q=X._fullLayout,re=G.hovermode,ae=G.rotateLabels,ie=G.bgColor,se=G.container,he=G.outerContainer,Se=G.commonLabelOpts||{};if(Z.length===0)return[[]];var Oe=G.fontFamily||T.HOVERFONT,Pe=G.fontSize||T.HOVERFONTSIZE,Me=Z[0],ce=Me.xa,we=Me.ya,K=re.charAt(0),ne=K+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var _e=0;_eQ.width-zt?(mt=Q.width-zt,Ft.attr("d","M"+(zt-E)+",0L"+zt+","+It+E+"v"+It+(2*I+Ut.height)+"H-"+zt+"V"+It+E+"H"+(zt-2*E)+"Z")):Ft.attr("d","M0,0L"+E+","+It+E+"H"+zt+"v"+It+(2*I+Ut.height)+"H-"+zt+"V"+It+E+"H-"+E+"Z"),Be.minX=mt-zt,Be.maxX=mt+zt,ce.side==="top"?(Be.minY=xt-(2*I+Ut.height),Be.maxY=xt-I):(Be.minY=xt+I,Be.maxY=xt+(2*I+Ut.height))}else{var kt,Ot,At;we.side==="right"?(kt="start",Ot=1,At="",mt=ce._offset+ce._length):(kt="end",Ot=-1,At="-",mt=ce._offset),xt=we._offset+(Me.y0+Me.y1)/2,Yt.attr("text-anchor",kt),Ft.attr("d","M0,0L"+At+E+","+E+"V"+(I+Ut.height/2)+"h"+At+(2*I+Ut.width)+"V-"+(I+Ut.height/2)+"H"+At+E+"V-"+E+"Z"),Be.minY=xt-(I+Ut.height/2),Be.maxY=xt+(I+Ut.height/2),we.side==="right"?(Be.minX=mt+E,Be.maxX=mt+E+(2*I+Ut.width)):(Be.minX=mt-E-(2*I+Ut.width),Be.maxX=mt-E);var Nt,$t=Ut.height/2,Bt=pe-Ut.top-$t,Xt="clip"+Q._uid+"commonlabel"+we._id;if(mt=0?ht:Rt+_t=0?Rt:nt+_t=0?Ze:ut+be=0?ut:ct+be=0,rt.idealAlign!=="top"&&sn||!xn?sn?($t+=Xt/2,rt.anchor="start"):rt.anchor="middle":($t-=Xt/2,rt.anchor="end"),rt.crossPos=$t;else{if(rt.pos=$t,sn=Nt+Bt/2+mn<=xe,xn=Nt-Bt/2-mn>=0,rt.idealAlign!=="left"&&sn||!xn)if(sn)Nt+=Bt/2,rt.anchor="start";else{rt.anchor="middle";var dn=mn/2,gn=Nt+dn-xe,en=Nt-dn;gn>0&&(Nt-=gn),en<0&&(Nt+=-en)}else Nt-=Bt/2,rt.anchor="end";rt.crossPos=Nt}It.attr("text-anchor",rt.anchor),kt&&zt.attr("text-anchor",rt.anchor),Ft.attr("transform",f(Nt,$t)+(ae?p(C):""))}),{hoverLabels:yt,commonLabelBoundingBox:Be}}function N(Z,G,X,Q,re,ae){var ie="",se="";Z.nameOverride!==void 0&&(Z.name=Z.nameOverride),Z.name&&(Z.trace._meta&&(Z.name=d.templateString(Z.name,Z.trace._meta)),ie=U(Z.name,Z.nameLength));var he=X.charAt(0),Se=he==="x"?"y":"x";Z.zLabel!==void 0?(Z.xLabel!==void 0&&(se+="x: "+Z.xLabel+"
"),Z.yLabel!==void 0&&(se+="y: "+Z.yLabel+"
"),Z.trace.type!=="choropleth"&&Z.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Z.zLabel)):G&&Z[he+"Label"]===re?se=Z[Se+"Label"]||"":Z.xLabel===void 0?Z.yLabel!==void 0&&Z.trace.type!=="scattercarpet"&&(se=Z.yLabel):se=Z.yLabel===void 0?Z.xLabel:"("+Z.xLabel+", "+Z.yLabel+")",!Z.text&&Z.text!==0||Array.isArray(Z.text)||(se+=(se?"
":"")+Z.text),Z.extraText!==void 0&&(se+=(se?"
":"")+Z.extraText),ae&&se===""&&!Z.hovertemplate&&(ie===""&&ae.remove(),se=ie);var Oe=Z.hovertemplate||!1;if(Oe){var Pe=Z.hovertemplateLabels||Z;Z[he+"Label"]!==re&&(Pe[he+"other"]=Pe[he+"Val"],Pe[he+"otherLabel"]=Pe[he+"Label"]),se=(se=d.hovertemplateString(Oe,Pe,Q._d3locale,Z.eventData[0]||{},Z.trace._meta)).replace(z,function(Me,ce){return ie=U(ce,Z.nameLength),""})}return[se,ie]}function R(Z,G){var X=0,Q=Z.offset;return G&&(Q*=-P,X=Z.offset*D),{x:X,y:Q}}function q(Z,G,X,Q){var re=function(ie){return ie*X},ae=function(ie){return ie*Q};Z.each(function(ie){var se=s.select(this);if(ie.del)return se.remove();var he,Se,Oe,Pe,Me=se.select("text.nums"),ce=ie.anchor,we=ce==="end"?-1:1,K=(Pe=(Oe=(Se={start:1,end:-1,middle:0}[(he=ie).anchor])*(E+I))+Se*(he.txwidth+I),he.anchor==="middle"&&(Oe-=he.tx2width/2,Pe+=he.txwidth/2+I),{alignShift:Se,textShiftX:Oe,text2ShiftX:Pe}),ne=R(ie,G),de=ne.x,_e=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(ie.bx/2+ie.tx2width/2)+","+ae(_e-ie.by/2)+"h"+re(ie.bx)+"v"+ae(ie.by)+"h-"+re(ie.bx)+"Z":"M0,0L"+re(we*E+de)+","+ae(E+_e)+"v"+ae(ie.by/2-E)+"h"+re(we*ie.bx)+"v-"+ae(ie.by)+"H"+re(we*E+de)+"V"+ae(_e-E)+"Z");var pe=de+K.textShiftX,xe=_e+ie.ty0-ie.by/2+I,ye=ie.textAlign||"auto";ye!=="auto"&&(ye==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),pe=ue?-ie.bx/2-ie.tx2width/2+I:-ie.bx-I):ye==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),pe=ue?ie.bx/2-ie.tx2width/2-I:ie.bx+I)),Me.call(g.positionText,re(pe),ae(xe)),ie.tx2width&&(se.select("text.name").call(g.positionText,re(K.text2ShiftX+K.alignShift*I+de),ae(_e+ie.ty0-ie.by/2+I)),se.select("rect").call(v.setRect,re(K.text2ShiftX+(K.alignShift-1)*ie.tx2width/2+de),ae(_e-ie.by/2-1),re(ie.tx2width),ae(ie.by+2)))})}function Y(Z,G){var X=Z.index,Q=Z.trace||{},re=Z.cd[0],ae=Z.cd[X]||{};function ie(Me){return Me||u(Me)&&Me===0}var se=Array.isArray(X)?function(Me,ce){var we=d.castOption(re,X,Me);return ie(we)?we:d.extractOption({},Q,"",ce)}:function(Me,ce){return d.extractOption(ae,Q,Me,ce)};function he(Me,ce,we){var K=se(ce,we);ie(K)&&(Z[Me]=K)}if(he("hoverinfo","hi","hoverinfo"),he("bgcolor","hbg","hoverlabel.bgcolor"),he("borderColor","hbc","hoverlabel.bordercolor"),he("fontFamily","htf","hoverlabel.font.family"),he("fontSize","hts","hoverlabel.font.size"),he("fontColor","htc","hoverlabel.font.color"),he("nameLength","hnl","hoverlabel.namelength"),he("textAlign","hta","hoverlabel.align"),Z.posref=G==="y"||G==="closest"&&Q.orientation==="h"?Z.xa._offset+(Z.x0+Z.x1)/2:Z.ya._offset+(Z.y0+Z.y1)/2,Z.x0=d.constrain(Z.x0,0,Z.xa._length),Z.x1=d.constrain(Z.x1,0,Z.xa._length),Z.y0=d.constrain(Z.y0,0,Z.ya._length),Z.y1=d.constrain(Z.y1,0,Z.ya._length),Z.xLabelVal!==void 0&&(Z.xLabel="xLabel"in Z?Z.xLabel:w.hoverLabelText(Z.xa,Z.xLabelVal,Q.xhoverformat),Z.xVal=Z.xa.c2d(Z.xLabelVal)),Z.yLabelVal!==void 0&&(Z.yLabel="yLabel"in Z?Z.yLabel:w.hoverLabelText(Z.ya,Z.yLabelVal,Q.yhoverformat),Z.yVal=Z.ya.c2d(Z.yLabelVal)),Z.zLabelVal!==void 0&&Z.zLabel===void 0&&(Z.zLabel=String(Z.zLabelVal)),!(isNaN(Z.xerr)||Z.xa.type==="log"&&Z.xerr<=0)){var Se=w.tickText(Z.xa,Z.xa.c2l(Z.xerr),"hover").text;Z.xerrneg!==void 0?Z.xLabel+=" +"+Se+" / -"+w.tickText(Z.xa,Z.xa.c2l(Z.xerrneg),"hover").text:Z.xLabel+=" ± "+Se,G==="x"&&(Z.distance+=1)}if(!(isNaN(Z.yerr)||Z.ya.type==="log"&&Z.yerr<=0)){var Oe=w.tickText(Z.ya,Z.ya.c2l(Z.yerr),"hover").text;Z.yerrneg!==void 0?Z.yLabel+=" +"+Oe+" / -"+w.tickText(Z.ya,Z.ya.c2l(Z.yerrneg),"hover").text:Z.yLabel+=" ± "+Oe,G==="y"&&(Z.distance+=1)}var Pe=Z.hoverinfo||Z.trace.hoverinfo;return Pe&&Pe!=="all"&&((Pe=Array.isArray(Pe)?Pe:Pe.split("+")).indexOf("x")===-1&&(Z.xLabel=void 0),Pe.indexOf("y")===-1&&(Z.yLabel=void 0),Pe.indexOf("z")===-1&&(Z.zLabel=void 0),Pe.indexOf("text")===-1&&(Z.text=void 0),Pe.indexOf("name")===-1&&(Z.name=void 0)),Z}function L(Z,G,X){var Q,re,ae=X.container,ie=X.fullLayout,se=ie._size,he=X.event,Se=!!G.hLinePoint,Oe=!!G.vLinePoint;if(ae.selectAll(".spikeline").remove(),Oe||Se){var Pe=h.combine(ie.plot_bgcolor,ie.paper_bgcolor);if(Se){var Me,ce,we=G.hLinePoint;Q=we&&we.xa,(re=we&&we.ya).spikesnap==="cursor"?(Me=he.pointerX,ce=he.pointerY):(Me=Q._offset+we.x,ce=re._offset+we.y);var K,ne,de=c.readability(we.color,Pe)<1.5?h.contrast(Pe):we.color,_e=re.spikemode,ue=re.spikethickness,pe=re.spikecolor||de,xe=w.getPxPosition(Z,re);if(_e.indexOf("toaxis")!==-1||_e.indexOf("across")!==-1){if(_e.indexOf("toaxis")!==-1&&(K=xe,ne=Me),_e.indexOf("across")!==-1){var ye=re._counterDomainMin,Te=re._counterDomainMax;re.anchor==="free"&&(ye=Math.min(ye,re.position),Te=Math.max(Te,re.position)),K=se.l+ye*se.w,ne=se.l+Te*se.w}ae.insert("line",":first-child").attr({x1:K,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:pe,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:K,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Pe}).classed("spikeline",!0).classed("crisp",!0)}_e.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:xe+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:pe}).classed("spikeline",!0)}if(Oe){var Ae,Re,Le=G.vLinePoint;Q=Le&&Le.xa,re=Le&&Le.ya,Q.spikesnap==="cursor"?(Ae=he.pointerX,Re=he.pointerY):(Ae=Q._offset+Le.x,Re=re._offset+Le.y);var $e,Fe,Be=c.readability(Le.color,Pe)<1.5?h.contrast(Pe):Le.color,Ue=Q.spikemode,qe=Q.spikethickness,Xe=Q.spikecolor||Be,ot=w.getPxPosition(Z,Q);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&($e=ot,Fe=Re),Ue.indexOf("across")!==-1){var st=Q._counterDomainMin,dt=Q._counterDomainMax;Q.anchor==="free"&&(st=Math.min(st,Q.position),dt=Math.max(dt,Q.position)),$e=se.t+(1-dt)*se.h,Fe=se.t+(1-st)*se.h}ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:$e,y2:Fe,"stroke-width":qe,stroke:Xe,"stroke-dasharray":v.dashStyle(Q.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:$e,y2:Fe,"stroke-width":qe+2,stroke:Pe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:Ae,cy:ot-(Q.side!=="top"?qe:-qe),r:qe,fill:Xe}).classed("spikeline",!0)}}}function W(Z,G){return!G}function U(Z,G){return g.plainText(Z||"",{len:G,allowedTags:["br","sub","sup","b","i","em"]})}function V(Z,G,X){var Q=G[Z+"a"],re=G[Z+"Val"],ae=G.cd[0];if(Q.type==="category"||Q.type==="multicategory")re=Q._categoriesMap[re];else if(Q.type==="date"){var ie=G.trace[Z+"periodalignment"];if(ie){var se=G.cd[G.index],he=se[Z+"Start"];he===void 0&&(he=se[Z]);var Se=se[Z+"End"];Se===void 0&&(Se=se[Z]);var Oe=Se-he;ie==="end"?re+=Oe:ie==="middle"&&(re+=Oe/2)}re=Q.d2c(re)}return ae&&ae.t&&ae.t.posLetter===Q._id&&(X.boxmode!=="group"&&X.violinmode!=="group"||(re+=ae.t.dPos)),re}function te(Z){return Z.offsetTop+Z.clientTop}function ee(Z){return Z.offsetLeft+Z.clientLeft}function H(Z,G){var X=Z._fullLayout,Q=G.getBoundingClientRect(),re=Q.left,ae=Q.top,ie=re+Q.width,se=ae+Q.height,he=d.apply3DTransform(X._invTransform)(re,ae),Se=d.apply3DTransform(X._invTransform)(ie,se),Oe=he[0],Pe=he[1],Me=Se[0],ce=Se[1];return{x:Oe,y:Pe,width:Me-Oe,height:ce-Pe,top:Math.min(Pe,ce),left:Math.min(Oe,Me),right:Math.max(Oe,Me),bottom:Math.max(Pe,ce)}}},38048:function(i,o,a){var s=a(71828),u=a(7901),c=a(23469).isUnifiedHover;i.exports=function(d,f,p,m){m=m||{};var g=f.legend;function b(v){m.font[v]||(m.font[v]=g?f.legend.font[v]:f.font[v])}f&&c(f.hovermode)&&(m.font||(m.font={}),b("size"),b("family"),b("color"),g?(m.bgcolor||(m.bgcolor=u.combine(f.legend.bgcolor,f.paper_bgcolor)),m.bordercolor||(m.bordercolor=f.legend.bordercolor)):m.bgcolor||(m.bgcolor=f.paper_bgcolor)),p("hoverlabel.bgcolor",m.bgcolor),p("hoverlabel.bordercolor",m.bordercolor),p("hoverlabel.namelength",m.namelength),s.coerceFont(p,"hoverlabel.font",m.font),p("hoverlabel.align",m.align)}},98212:function(i,o,a){var s=a(71828),u=a(528);i.exports=function(c,d){function f(p,m){return d[p]!==void 0?d[p]:s.coerce(c,d,u,p,m)}return f("clickmode"),f("hovermode")}},30211:function(i,o,a){var s=a(39898),u=a(71828),c=a(28569),d=a(23469),f=a(528),p=a(88335);i.exports={moduleType:"component",name:"fx",constants:a(26675),schema:{layout:f},attributes:a(77914),layoutAttributes:f,supplyLayoutGlobalDefaults:a(22774),supplyDefaults:a(54268),supplyLayoutDefaults:a(34938),calc:a(30732),getDistanceFunction:d.getDistanceFunction,getClosest:d.getClosest,inbox:d.inbox,quadrature:d.quadrature,appendArrayPointValue:d.appendArrayPointValue,castHoverOption:function(m,g,b){return u.castOption(m,g,"hoverlabel."+b)},castHoverinfo:function(m,g,b){return u.castOption(m,b,"hoverinfo",function(v){return u.coerceHoverinfo({hoverinfo:v},{_module:m._module},g)})},hover:p.hover,unhover:c.unhover,loneHover:p.loneHover,loneUnhover:function(m){var g=u.isD3Selection(m)?m:s.select(m);g.selectAll("g.hovertext").remove(),g.selectAll(".spikeline").remove()},click:a(75914)}},528:function(i,o,a){var s=a(26675),u=a(41940),c=u({editType:"none"});c.family.dflt=s.HOVERFONT,c.size.dflt=s.HOVERFONTSIZE,i.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:c,grouptitlefont:u({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(i,o,a){var s=a(71828),u=a(528),c=a(98212),d=a(38048);i.exports=function(f,p){function m(h,y){return s.coerce(f,p,u,h,y)}c(f,p)&&(m("hoverdistance"),m("spikedistance")),m("dragmode")==="select"&&m("selectdirection");var g=p._has("mapbox"),b=p._has("geo"),v=p._basePlotModules.length;p.dragmode==="zoom"&&((g||b)&&v===1||g&&b&&v===2)&&(p.dragmode="pan"),d(f,p,m),s.coerceFont(m,"hoverlabel.grouptitlefont",p.hoverlabel.font)}},22774:function(i,o,a){var s=a(71828),u=a(38048),c=a(528);i.exports=function(d,f){u(d,f,function(p,m){return s.coerce(d,f,c,p,m)})}},83312:function(i,o,a){var s=a(71828),u=a(30587).counter,c=a(27670).Y,d=a(85555).idRegex,f=a(44467),p={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[u("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:c({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function m(v,h,y){var w=h[y+"axes"],_=Object.keys((v._splomAxes||{})[y]||{});return Array.isArray(w)?w:_.length?_:void 0}function g(v,h,y,w,_,x){var T=h(v+"gap",y),k=h("domain."+v);h(v+"side",w);for(var S=new Array(_),C=k[0],M=(k[1]-C)/(_-T),O=M*(1-T),D=0;D<_;D++){var P=C+M*D;S[x?_-1-D:D]=[P,P+O]}return S}function b(v,h,y,w,_){var x,T=new Array(y);function k(S,C){h.indexOf(C)!==-1&&w[C]===void 0?(T[S]=C,w[C]=S):T[S]=""}if(Array.isArray(v))for(x=0;x1){k||S||C||z("pattern")==="independent"&&(k=!0),O._hasSubplotGrid=k;var E,I,A=z("roworder")==="top to bottom",F=k?.2:.1,j=k?.3:.1;M&&h._splomGridDflt&&(E=h._splomGridDflt.xside,I=h._splomGridDflt.yside),O._domains={x:g("x",z,F,E,P),y:g("y",z,j,I,D,A)}}else delete h.grid}function z(B,N){return s.coerce(y,O,p,B,N)}},contentDefaults:function(v,h){var y=h.grid;if(y&&y._domains){var w,_,x,T,k,S,C,M=v.grid||{},O=h._subplots,D=y._hasSubplotGrid,P=y.rows,E=y.columns,I=y.pattern==="independent",A=y._axisMap={};if(D){var F=M.subplots||[];S=y.subplots=new Array(P);var j=1;for(w=0;w(b==="legend"?1:0));if(j===!1&&(h[b]=void 0),(j!==!1||w.uirevision)&&(x("uirevision",h.uirevision),j!==!1)){x("borderwidth");var z,B,N,R=x("orientation")==="h",q=x("yref")==="paper",Y=x("xref")==="paper",L="left";if(R?(z=0,s.getComponentMethod("rangeslider","isVisible")(v.xaxis)?q?(B=1.1,N="bottom"):(B=1,N="top"):q?(B=-.1,N="top"):(B=0,N="bottom")):(B=1,N="auto",Y?z=1.02:(z=1,L="right")),u.coerce(w,_,{x:{valType:"number",editType:"legend",min:Y?-2:0,max:Y?3:1,dflt:z}},"x"),u.coerce(w,_,{y:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:B}},"y"),x("traceorder",P),m.isGrouped(h[b])&&x("tracegroupgap"),x("entrywidth"),x("entrywidthmode"),x("itemsizing"),x("itemwidth"),x("itemclick"),x("itemdoubleclick"),x("groupclick"),x("xanchor",L),x("yanchor",N),x("valign"),u.noneOrAll(w,_,["x","y"]),x("title.text")){x("title.side",R?"left":"top");var W=u.extendFlat({},T,{size:u.bigFont(T.size)});u.coerceFont(x,"title.font",W)}}}}i.exports=function(b,v,h){var y,w=h.slice(),_=v.shapes;if(_)for(y=0;y<_.length;y++){var x=_[y];if(x.showlegend){var T={_input:x._input,visible:x.visible,showlegend:x.showlegend,legend:x.legend};w.push(T)}}var k=["legend"];for(y=0;y1)}var Q=W.hiddenlabels||[];if(!(V||W.showlegend&&te.length))return Y.selectAll("."+U).remove(),W._topdefs.select("#"+q).remove(),c.autoMargin(N,U);var re=u.ensureSingle(Y,"g",U,function(ce){V||ce.attr("pointer-events","all")}),ae=u.ensureSingleById(W._topdefs,"clipPath",q,function(ce){ce.append("rect")}),ie=u.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});ie.call(g.stroke,L.bordercolor).call(g.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,he=u.ensureSingle(re,"g","scrollbox"),Se=L.title;L._titleWidth=0,L._titleHeight=0,Se.text?((se=u.ensureSingle(he,"text",U+"titletext")).attr("text-anchor","start").call(m.font,Se.font).text(Se.text),F(se,he,N,L,C)):he.selectAll("."+U+"titletext").remove();var Oe=u.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(h.scrollBarEnterAttrs).call(g.fill,h.scrollBarColor)}),Pe=he.selectAll("g.groups").data(te);Pe.enter().append("g").attr("class","groups"),Pe.exit().remove();var Me=Pe.selectAll("g.traces").data(u.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var we=ce[0].trace;return d.traceIs(we,"pie-like")?Q.indexOf(ce[0].label)!==-1?.5:1:we.visible==="legendonly"?.5:1}).each(function(){s.select(this).call(E,N,L)}).call(k,N,L).each(function(){V||s.select(this).call(A,N,U)}),u.syncOrAsync([c.previousPromises,function(){return function(ce,we,K,ne){var de=ce._fullLayout,_e=B(ne);ne||(ne=de[_e]);var ue=de._size,pe=S.isVertical(ne),xe=S.isGrouped(ne),ye=ne.entrywidthmode==="fraction",Te=ne.borderwidth,Ae=2*Te,Re=h.itemGap,Le=ne.itemwidth+2*Re,$e=2*(Te+Re),Fe=z(ne),Be=ne.y<0||ne.y===0&&Fe==="top",Ue=ne.y>1||ne.y===1&&Fe==="bottom",qe=ne.tracegroupgap,Xe={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var ot=0;ne._width=0,ne._height=0;var st=function(Ke){var Ye=0,nt=0,ct=Ke.title.side;return ct&&(ct.indexOf("left")!==-1&&(Ye=Ke._titleWidth),ct.indexOf("top")!==-1&&(nt=Ke._titleHeight)),[Ye,nt]}(ne);if(pe)K.each(function(Ke){var Ye=Ke[0].height;m.setTranslate(this,Te+st[0],Te+st[1]+ne._height+Ye/2+Re),ne._height+=Ye,ne._width=Math.max(ne._width,Ke[0].width)}),ot=Le+ne._width,ne._width+=Re+Le+Ae,ne._height+=$e,xe&&(we.each(function(Ke,Ye){m.setTranslate(this,0,Ye*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var dt=j(ne),vt=ne.x<0||ne.x===0&&dt==="right",We=ne.x>1||ne.x===1&&dt==="left",ze=Ue||Be,tt=de.width/2;ne._maxWidth=Math.max(vt?ze&&dt==="left"?ue.l+ue.w:tt:We?ze&&dt==="right"?ue.r+ue.w:tt:ue.w,2*Le);var it=0,St=0;K.each(function(Ke){var Ye=D(Ke,ne,Le);it=Math.max(it,Ye),St+=Ye}),ot=null;var Ze=0;if(xe){var ut=0,ht=0,Rt=0;we.each(function(){var Ke=0,Ye=0;s.select(this).selectAll("g.traces").each(function(ct){var yt=D(ct,ne,Le),rt=ct[0].height;m.setTranslate(this,st[0],st[1]+Te+Re+rt/2+Ye),Ye+=rt,Ke=Math.max(Ke,yt),Xe[ct[0].trace.legendgroup]=Ke});var nt=Ke+Re;ht>0&&nt+Te+ht>ne._maxWidth?(Ze=Math.max(Ze,ht),ht=0,Rt+=ut+qe,ut=Ye):ut=Math.max(ut,Ye),m.setTranslate(this,ht,Rt),ht+=nt}),ne._width=Math.max(Ze,ht)+Te,ne._height=Rt+ut+$e}else{var Ct=K.size(),Wt=St+Ae+(Ct-1)*Re=ne._maxWidth&&(Ze=Math.max(Ze,Ge),be=0,Ce+=_t,ne._height+=_t,_t=0),m.setTranslate(this,st[0]+Te+be,st[1]+Te+Ce+Ye/2+Re),Ge=be+nt+Re,be+=ct,_t=Math.max(_t,Ye)}),Wt?(ne._width=be+Ae,ne._height=_t+$e):(ne._width=Math.max(Ze,Ge)+Ae,ne._height+=_t+$e)}}ne._width=Math.ceil(Math.max(ne._width+st[0],ne._titleWidth+2*(Te+h.titlePad))),ne._height=Math.ceil(Math.max(ne._height+st[1],ne._titleHeight+2*(Te+h.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var He=ce._context.edits,et=He.legendText||He.legendPosition;K.each(function(Ke){var Ye=s.select(this).select("."+_e+"toggle"),nt=Ke[0].height,ct=Ke[0].trace.legendgroup,yt=D(Ke,ne,Le);xe&&ct!==""&&(yt=Xe[ct]);var rt=et?Le:ot||yt;pe||ye||(rt+=Re/2),m.setRect(Ye,0,-nt/2,rt,nt)})}(N,Pe,Me,L)},function(){var ce,we,K,ne,de=W._size,_e=L.borderwidth,ue=L.xref==="paper",pe=L.yref==="paper";if(Se.text&&function(ze,tt,it){if(tt.title.side==="top center"||tt.title.side==="top right"){var St=tt.title.font.size*w,Ze=0,ut=ze.node(),ht=m.bBox(ut).width;tt.title.side==="top center"?Ze=.5*(tt._width-2*it-2*h.titlePad-ht):tt.title.side==="top right"&&(Ze=tt._width-2*it-2*h.titlePad-ht),b.positionText(ze,it+h.titlePad+Ze,it+St)}}(se,L,_e),!V){var xe,ye;xe=ue?de.l+de.w*L.x-_[j(L)]*L._width:W.width*L.x-_[j(L)]*L._width,ye=pe?de.t+de.h*(1-L.y)-_[z(L)]*L._effHeight:W.height*(1-L.y)-_[z(L)]*L._effHeight;var Te=function(ze,tt,it,St){var Ze=ze._fullLayout,ut=Ze[tt],ht=j(ut),Rt=z(ut),Ct=ut.xref==="paper",Wt=ut.yref==="paper";ze._fullLayout._reservedMargin[tt]={};var _t=ut.y<.5?"b":"t",be=ut.x<.5?"l":"r",Ce={r:Ze.width-it,l:it+ut._width,b:Ze.height-St,t:St+ut._effHeight};if(Ct&&Wt)return c.autoMargin(ze,tt,{x:ut.x,y:ut.y,l:ut._width*_[ht],r:ut._width*x[ht],b:ut._effHeight*x[Rt],t:ut._effHeight*_[Rt]});Ct?ze._fullLayout._reservedMargin[tt][_t]=Ce[_t]:Wt||ut.orientation==="v"?ze._fullLayout._reservedMargin[tt][be]=Ce[be]:ze._fullLayout._reservedMargin[tt][_t]=Ce[_t]}(N,U,xe,ye);if(Te)return;if(W.margin.autoexpand){var Ae=xe,Re=ye;xe=ue?u.constrain(xe,0,W.width-L._width):Ae,ye=pe?u.constrain(ye,0,W.height-L._effHeight):Re,xe!==Ae&&u.log("Constrain "+U+".x to make legend fit inside graph"),ye!==Re&&u.log("Constrain "+U+".y to make legend fit inside graph")}m.setTranslate(re,xe,ye)}if(Oe.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var Le=L._effHeight;V&&(Le=L._height),ie.attr({width:L._width-_e,height:Le-_e,x:_e/2,y:_e/2}),m.setTranslate(he,0,0),ae.select("rect").attr({width:L._width-2*_e,height:Le-2*_e,x:_e,y:_e}),m.setClipUrl(he,q,N),m.setRect(Oe,0,0,0,0),delete L._scrollY}else{var $e,Fe,Be,Ue=Math.max(h.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*h.scrollBarMargin,Xe=L._height-L._effHeight,ot=qe/Xe,st=Math.min(L._scrollY||0,Xe);ie.attr({width:L._width-2*_e+h.scrollBarWidth+h.scrollBarMargin,height:L._effHeight-_e,x:_e/2,y:_e/2}),ae.select("rect").attr({width:L._width-2*_e+h.scrollBarWidth+h.scrollBarMargin,height:L._effHeight-2*_e,x:_e,y:_e+st}),m.setClipUrl(he,q,N),We(st,Ue,ot),re.on("wheel",function(){We(st=u.constrain(L._scrollY+s.event.deltaY/qe*Xe,0,Xe),Ue,ot),st!==0&&st!==Xe&&s.event.preventDefault()});var dt=s.behavior.drag().on("dragstart",function(){var ze=s.event.sourceEvent;$e=ze.type==="touchstart"?ze.changedTouches[0].clientY:ze.clientY,Be=st}).on("drag",function(){var ze=s.event.sourceEvent;ze.buttons===2||ze.ctrlKey||(Fe=ze.type==="touchmove"?ze.changedTouches[0].clientY:ze.clientY,st=function(tt,it,St){var Ze=(St-it)/ot+tt;return u.constrain(Ze,0,Xe)}(Be,$e,Fe),We(st,Ue,ot))});Oe.call(dt);var vt=s.behavior.drag().on("dragstart",function(){var ze=s.event.sourceEvent;ze.type==="touchstart"&&($e=ze.changedTouches[0].clientY,Be=st)}).on("drag",function(){var ze=s.event.sourceEvent;ze.type==="touchmove"&&(Fe=ze.changedTouches[0].clientY,st=function(tt,it,St){var Ze=(it-St)/ot+tt;return u.constrain(Ze,0,Xe)}(Be,$e,Fe),We(st,Ue,ot))});he.call(vt)}function We(ze,tt,it){L._scrollY=N._fullLayout[U]._scrollY=ze,m.setTranslate(he,0,-ze),m.setRect(Oe,L._width,h.scrollBarMargin+ze*it,h.scrollBarWidth,tt),ae.select("rect").attr("y",_e+ze)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),p.init({element:re.node(),gd:N,prepFn:function(){var ze=m.getTranslate(re);K=ze.x,ne=ze.y},moveFn:function(ze,tt){var it=K+ze,St=ne+tt;m.setTranslate(re,it,St),ce=p.align(it,L._width,de.l,de.l+de.w,L.xanchor),we=p.align(St+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&we!==void 0){var ze={};ze[U+".x"]=ce,ze[U+".y"]=we,d.call("_guiRelayout",N,ze)}},clickFn:function(ze,tt){var it=Y.selectAll("g.traces").filter(function(){var St=this.getBoundingClientRect();return tt.clientX>=St.left&&tt.clientX<=St.right&&tt.clientY>=St.top&&tt.clientY<=St.bottom});it.size()>0&&P(N,re,it,ze,tt)}}))}],N)}}function D(N,R,q){var Y=N[0],L=Y.width,W=R.entrywidthmode,U=Y.trace.legendwidth||R.entrywidth;return W==="fraction"?R._maxWidth*U:q+(U||L)}function P(N,R,q,Y,L){var W=q.data()[0][0].trace,U={event:L,node:q.node(),curveNumber:W.index,expandedIndex:W._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};W._group&&(U.group=W._group),d.traceIs(W,"pie-like")&&(U.label=q.datum()[0].label);var V=f.triggerHandler(N,"plotly_legendclick",U);if(Y===1){if(V===!1)return;R._clickTimeout=setTimeout(function(){N._fullLayout&&v(q,N,Y)},N._context.doubleClickDelay)}else Y===2&&(R._clickTimeout&&clearTimeout(R._clickTimeout),N._legendMouseDownTime=0,f.triggerHandler(N,"plotly_legenddoubleclick",U)!==!1&&V!==!1&&v(q,N,Y))}function E(N,R,q){var Y,L,W=B(q),U=N.data()[0][0],V=U.trace,te=d.traceIs(V,"pie-like"),ee=!q._inHover&&R._context.edits.legendText&&!te,H=q._maxNameLength;U.groupTitle?(Y=U.groupTitle.text,L=U.groupTitle.font):(L=q.font,q.entries?Y=U.text:(Y=te?U.label:V.name,V._meta&&(Y=u.templateString(Y,V._meta))));var Z=u.ensureSingle(N,"text",W+"text");Z.attr("text-anchor","start").call(m.font,L).text(ee?I(Y,H):Y);var G=q.itemwidth+2*h.itemGap;b.positionText(Z,G,0),ee?Z.call(b.makeEditable,{gd:R,text:Y}).call(F,N,R,q).on("edit",function(X){this.text(I(X,H)).call(F,N,R,q);var Q=U.trace._fullInput||{},re={};if(d.hasTransform(Q,"groupby")){var ae=d.getTransformIndices(Q,"groupby"),ie=ae[ae.length-1],se=u.keyedContainer(Q,"transforms["+ie+"].styles","target","value.name");se.set(U.trace._group,X),re=se.constructUpdate()}else re.name=X;return Q._isShape?d.call("_guiRelayout",R,"shapes["+V.index+"].name",re.name):d.call("_guiRestyle",R,re,V.index)}):F(Z,N,R,q)}function I(N,R){var q=Math.max(4,R);if(N&&N.trim().length>=q/2)return N;for(var Y=q-(N=N||"").length;Y>0;Y--)N+=" ";return N}function A(N,R,q){var Y,L=R._context.doubleClickDelay,W=1,U=u.ensureSingle(N,"rect",q+"toggle",function(V){R._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(g.fill,"rgba(0,0,0,0)")});R._context.staticPlot||(U.on("mousedown",function(){(Y=new Date().getTime())-R._legendMouseDownTimeL&&(W=Math.max(W-1,1)),P(R,V,N,W,s.event)}}))}function F(N,R,q,Y,L){Y._inHover&&N.attr("data-notex",!0),b.convertToTspans(N,q,function(){(function(W,U,V,te){var ee=W.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var H=W.select("g[class*=math-group]"),Z=H.node(),G=B(V);V||(V=U._fullLayout[G]);var X,Q,re=V.borderwidth,ae=(te===C?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*w;if(Z){var ie=m.bBox(Z);X=ie.height,Q=ie.width,te===C?m.setTranslate(H,re,re+.75*X):m.setTranslate(H,0,.25*X)}else{var se="."+G+(te===C?"title":"")+"text",he=W.select(se),Se=b.lineCount(he),Oe=he.node();if(X=ae*Se,Q=Oe?m.bBox(Oe).width:0,te===C)V.title.side==="left"&&(Q+=2*h.itemGap),b.positionText(he,re+h.titlePad,re+ae);else{var Pe=2*h.itemGap+V.itemwidth;ee.groupTitle&&(Pe=h.itemGap,Q-=V.itemwidth),b.positionText(he,Pe,-ae*((Se-1)/2-.3))}}te===C?(V._titleWidth=Q,V._titleHeight=X):(ee.lineHeight=ae,ee.height=Math.max(X,16)+3,ee.width=Q)}else W.remove()})(R,q,Y,L)})}function j(N){return u.isRightAnchor(N)?"right":u.isCenterAnchor(N)?"center":"left"}function z(N){return u.isBottomAnchor(N)?"bottom":u.isMiddleAnchor(N)?"middle":"top"}function B(N){return N._id||"legend"}i.exports=function(N,R){if(R)O(N,R);else{var q=N._fullLayout,Y=q._legends;q._infolayer.selectAll('[class^="legend"]').each(function(){var U=s.select(this),V=U.attr("class").split(" ")[0];V.match(M)&&Y.indexOf(V)===-1&&U.remove()});for(var L=0;Lj&&(F=j)}I[p][0]._groupMinRank=F,I[p][0]._preGroupSort=p}var z=function(Y,L){return Y.trace.legendrank-L.trace.legendrank||Y._preSort-L._preSort};for(I.forEach(function(Y,L){Y[0]._preGroupSort=L}),I.sort(function(Y,L){return Y[0]._groupMinRank-L[0]._groupMinRank||Y[0]._preGroupSort-L[0]._preGroupSort}),p=0;pk?k:x}i.exports=function(x,T,k){var S=T._fullLayout;k||(k=S.legend);var C=k.itemsizing==="constant",M=k.itemwidth,O=(M+2*h.itemGap)/2,D=d(O,0),P=function(A,F,j,z){var B;if(A+1)B=A;else{if(!(F&&F.width>0))return 0;B=F.width}return C?z:Math.min(B,j)};function E(A,F,j){var z=A[0].trace,B=z.marker||{},N=B.line||{},R=j?z.visible&&z.type===j:u.traceIs(z,"bar"),q=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(R?[A]:[]);q.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),q.exit().remove(),q.each(function(Y){var L=s.select(this),W=Y[0],U=P(W.mlw,B.line,5,2);L.style("stroke-width",U+"px");var V=W.mcc;if(!k._inHover&&"mc"in W){var te=m(B),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=f.tryColorscale(B,"")(ee)}var H=V||W.mc||B.color,Z=B.pattern,G=Z&&f.getPatternAttr(Z.shape,0,"");if(G){var X=f.getPatternAttr(Z.bgcolor,0,null),Q=f.getPatternAttr(Z.fgcolor,0,null),re=Z.fgopacity,ae=_(Z.size,8,10),ie=_(Z.solidity,.5,1),se="legend-"+z.uid;L.call(f.pattern,"legend",T,se,G,ae,ie,V,Z.fillmode,X,Q,re)}else L.call(p.fill,H);U&&p.stroke(L,W.mlc||N.color)})}function I(A,F,j){var z=A[0],B=z.trace,N=j?B.visible&&B.type===j:u.traceIs(B,j),R=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(N?[A]:[]);if(R.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),R.exit().remove(),R.size()){var q=B.marker||{},Y=P(v(q.line.width,z.pts),q.line,5,2),L="pieLike",W=c.minExtend(B,{marker:{line:{width:Y}}},L),U=c.minExtend(z,{trace:W},L);b(R,U,W,T)}}x.each(function(A){var F=s.select(this),j=c.ensureSingle(F,"g","layers");j.style("opacity",A[0].trace.opacity);var z=k.valign,B=A[0].lineHeight,N=A[0].height;if(z!=="middle"&&B&&N){var R={top:1,bottom:-1}[z]*(.5*(B-N+3));j.attr("transform",d(0,R))}else j.attr("transform",null);j.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),j.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var q=j.selectAll("g.legendsymbols").data([A]);q.enter().append("g").classed("legendsymbols",!0),q.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var F,j=A[0].trace,z=[];if(j.visible)switch(j.type){case"histogram2d":case"heatmap":z=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":z=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":z=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":z=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":z=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":z=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1}var B=s.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(z);B.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(N,R){var q,Y=s.select(this),L=m(j),W=L.colorscale,U=L.reversescale;if(W){if(!F){var V=W.length;q=R===0?W[U?V-1:0][1]:R===1?W[U?0:V-1][1]:W[Math.floor((V-1)/2)][1]}}else{var te=j.vertexcolor||j.facecolor||j.color;q=c.isArrayOrTypedArray(te)?te[R]||te[0]:te}Y.attr("d",N[0]),q?Y.call(p.fill,q):Y.call(function(ee){if(ee.size()){var H="legendfill-"+j.uid;f.gradient(ee,T,H,y(U,F==="radial"),W,"fill")}})})}).each(function(A){var F=A[0].trace,j=F.type==="waterfall";if(A[0]._distinct&&j){var z=A[0].trace[A[0].dir].marker;return A[0].mc=z.color,A[0].mlw=z.line.width,A[0].mlc=z.line.color,E(A,this,"waterfall")}var B=[];F.visible&&j&&(B=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=s.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(B);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(R){var q=s.select(this),Y=F[R[0]].marker,L=P(void 0,Y.line,5,2);q.attr("d",R[1]).style("stroke-width",L+"px").call(p.fill,Y.color),L&&q.call(p.stroke,Y.line.color)})}).each(function(A){E(A,this,"funnel")}).each(function(A){E(A,this)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendbox").data(F.visible&&u.traceIs(F,"box-violin")?[A]:[]);j.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),j.exit().remove(),j.each(function(){var z=s.select(this);if(F.boxpoints!=="all"&&F.points!=="all"||p.opacity(F.fillcolor)!==0||p.opacity((F.line||{}).color)!==0){var B=P(void 0,F.line,5,2);z.style("stroke-width",B+"px").call(p.fill,F.fillcolor),B&&p.stroke(z,F.line.color)}else{var N=c.minExtend(F,{marker:{size:C?12:c.constrain(F.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});j.call(f.pointStyle,N,T)}})}).each(function(A){I(A,this,"funnelarea")}).each(function(A){I(A,this,"pie")}).each(function(A){var F,j,z=w(A),B=z.showFill,N=z.showLine,R=z.showGradientLine,q=z.showGradientFill,Y=z.anyFill,L=z.anyLine,W=A[0],U=W.trace,V=m(U),te=V.colorscale,ee=V.reversescale,H=g.hasMarkers(U)||!Y?"M5,0":L?"M5,-2":"M5,-3",Z=s.select(this),G=Z.select(".legendfill").selectAll("path").data(B||q?[A]:[]);if(G.enter().append("path").classed("js-fill",!0),G.exit().remove(),G.attr("d",H+"h"+M+"v6h-"+M+"z").call(function(re){if(re.size())if(B)f.fillGroupStyle(re,T);else{var ae="legendfill-"+U.uid;f.gradient(re,T,ae,y(ee),te,"fill")}}),N||R){var X=P(void 0,U.line,10,5);j=c.minExtend(U,{line:{width:X}}),F=[c.minExtend(W,{trace:j})]}var Q=Z.select(".legendlines").selectAll("path").data(N||R?[F]:[]);Q.enter().append("path").classed("js-line",!0),Q.exit().remove(),Q.attr("d",H+(R?"l"+M+",0.0001":"h"+M)).call(N?f.lineGroupStyle:function(re){if(re.size()){var ae="legendline-"+U.uid;f.lineGroupStyle(re),f.gradient(re,T,ae,y(ee),te,"stroke")}})}).each(function(A){var F,j,z=w(A),B=z.anyFill,N=z.anyLine,R=z.showLine,q=z.showMarker,Y=A[0],L=Y.trace,W=!q&&!N&&!B&&g.hasText(L);function U(Q,re,ae,ie){var se=c.nestedProperty(L,Q).get(),he=c.isArrayOrTypedArray(se)&&re?re(se):se;if(C&&he&&ie!==void 0&&(he=ie),ae){if(heae[1])return ae[1]}return he}function V(Q){return Y._distinct&&Y.index&&Q[Y.index]?Q[Y.index]:Q[0]}if(q||W||R){var te={},ee={};if(q){te.mc=U("marker.color",V),te.mx=U("marker.symbol",V),te.mo=U("marker.opacity",c.mean,[.2,1]),te.mlc=U("marker.line.color",V),te.mlw=U("marker.line.width",c.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var H=U("marker.size",c.mean,[2,16],12);te.ms=H,ee.marker.size=H}R&&(ee.line={width:U("line.width",V,[0,10],5)}),W&&(te.tx="Aa",te.tp=U("textposition",V),te.ts=10,te.tc=U("textfont.color",V),te.tf=U("textfont.family",V)),F=[c.minExtend(Y,te)],(j=c.minExtend(L,ee)).selectedpoints=null,j.texttemplate=null}var Z=s.select(this).select("g.legendpoints"),G=Z.selectAll("path.scatterpts").data(q?F:[]);G.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),G.exit().remove(),G.call(f.pointStyle,j,T),q&&(F[0].mrc=3);var X=Z.selectAll("g.pointtext").data(W?F:[]);X.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),X.exit().remove(),X.selectAll("text").call(f.textPointStyle,j,T)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(F.visible&&F.type==="candlestick"?[A,A]:[]);j.enter().append("path").classed("legendcandle",!0).attr("d",function(z,B){return B?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(z,B){var N=s.select(this),R=F[B?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("stroke-width",q+"px").call(p.fill,R.fillcolor),q&&p.stroke(N,R.line.color)})}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(F.visible&&F.type==="ohlc"?[A,A]:[]);j.enter().append("path").classed("legendohlc",!0).attr("d",function(z,B){return B?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(z,B){var N=s.select(this),R=F[B?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("fill","none").call(f.dashLine,R.line.dash,q),q&&p.stroke(N,R.line.color)})})}},42068:function(i,o,a){a(93348),i.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(i,o,a){var s=a(73972),u=a(74875),c=a(41675),d=a(24255),f=a(34031).eraseActiveShape,p=a(71828),m=p._,g=i.exports={};function b(S,C){var M,O,D=C.currentTarget,P=D.getAttribute("data-attr"),E=D.getAttribute("data-val")||!0,I=S._fullLayout,A={},F=c.list(S,null,!0),j=I._cartesianSpikesEnabled;if(P==="zoom"){var z,B=E==="in"?.5:2,N=(1+B)/2,R=(1-B)/2;for(O=0;O1?(H=["toggleHover"],Z=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],H=["hoverClosestGeo"],Z=["resetGeo"]):I?(H=["hoverClosest3d"],Z=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],H=["toggleHover"],Z=["resetViewMapbox"]):z?H=["hoverClosestGl2d"]:F?H=["hoverClosestPie"]:Y?(H=["hoverClosestCartesian","hoverCompareCartesian"],Z=["resetViewSankey"]):H=["toggleHover"],E&&(H=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var he=0;he0)){var T=function(S,C,M){for(var O=M.filter(function(I){return C[I].anchor===S._id}),D=0,P=0;P=Oe.max)he=re[Se+1];else if(se=Oe.pmax)he=re[Se+1];else if(seSe._length||pe+Fe<0)return;Re=ue+Fe,Le=pe+Fe;break;case Me:if($e="col-resize",ue+Fe>Se._length)return;Re=ue+Fe,Le=pe;break;case ce:if($e="col-resize",pe+Fe<0)return;Re=ue,Le=pe+Fe;break;default:$e="ew-resize",Re=_e,Le=_e+Fe}if(Le=0;z--){var B=C.append("path").attr(O).style("opacity",z?.1:D).call(d.stroke,E).call(d.fill,P).call(f.dashLine,z?"solid":A,z?4+I:I);if(y(B,_,k),F){var N=p(_.layout,"selections",k);B.style({cursor:"move"});var R={element:B.node(),plotinfo:S,gd:_,editHelpers:N,isActiveSelection:!0},q=s(M,_);u(q,B,R)}else B.style("pointer-events",z?"all":"none");j[z]=B}var Y=j[0];j[1].node().addEventListener("click",function(){return function(L,W){if(v(L)){var U=+W.node().getAttribute("data-index");if(U>=0){if(U===L._fullLayout._activeSelectionIndex)return void w(L);L._fullLayout._activeSelectionIndex=U,L._fullLayout._deactivateSelection=w,b(L)}}}(_,Y)})}(_._fullLayout._selectionLayer)}function y(_,x,T){var k=T.xref+T.yref;f.setClipUrl(_,"clip"+x._fullLayout._uid+k,x)}function w(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(c(_),delete _._fullLayout._activeSelectionIndex,b(_))}i.exports={draw:b,drawOne:h,activateLastSelection:function(_){if(v(_)){var x=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=x,_._fullLayout._deactivateSelection=w,b(_)}}}},53777:function(i,o,a){var s=a(79952).P,u=a(1426).extendFlat;i.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:u({},s,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(i){i.exports=function(o,a,s){s("newselection.mode"),s("newselection.line.width")&&(s("newselection.line.color"),s("newselection.line.dash")),s("activeselection.fillcolor"),s("activeselection.opacity")}},35855:function(i,o,a){var s=a(64505).selectMode,u=a(51873).clearOutline,c=a(60165),d=c.readPaths,f=c.writePaths,p=c.fixDatesForPaths;i.exports=function(m,g){if(m.length){var b=m[0][0];if(b){var v=b.getAttribute("d"),h=g.gd,y=h._fullLayout.newselection,w=g.plotinfo,_=w.xaxis,x=w.yaxis,T=g.isActiveSelection,k=g.dragmode,S=(h.layout||{}).selections||[];if(!s(k)&&T!==void 0){var C=h._fullLayout._activeSelectionIndex;if(C-1,St=[];if(function(Ct){return Ct&&Array.isArray(Ct)&&Ct[0].hoverOnBox!==!0}(tt)){X(Te,Ae,Fe);var Ze=function(Ct,Wt){var _t,be,Ce=Ct[0],Ge=-1,He=[];for(be=0;be0?function(Ct,Wt){var _t,be,Ce,Ge=[];for(Ce=0;Ce0&&Ge.push(_t);if(Ge.length===1&&Ge[0]===Wt.searchInfo&&(be=Wt.searchInfo.cd[0].trace).selectedpoints.length===Wt.pointNumbers.length){for(Ce=0;Ce1||(be+=Wt.selectedpoints.length)>1))return!1;return be===1}(Ue)&&(dt=se(Ze))){for(Be&&Be.remove(),ze=0;ze=0})($e)&&$e._fullLayout._deactivateShape($e),function(st){return st._fullLayout._activeSelectionIndex>=0}($e)&&$e._fullLayout._deactivateSelection($e);var Fe=$e._fullLayout._zoomlayer,Be=h(Re),Ue=w(Re);if(Be||Ue){var qe,Xe,ot=Fe.selectAll(".select-outline-"+Le.id);ot&&$e._fullLayout._outlining&&(Be&&(qe=O(ot,Te)),qe&&c.call("_guiRelayout",$e,{shapes:qe}),Ue&&!te(Te)&&(Xe=D(ot,Te)),Xe&&($e._fullLayout._noEmitSelectedAtStart=!0,c.call("_guiRelayout",$e,{selections:Xe}).then(function(){Ae&&P($e)})),$e._fullLayout._outlining=!1)}Le.selection={},Le.selection.selectionDefs=Te.selectionDefs=[],Le.selection.mergedPolygons=Te.mergedPolygons=[]}function re(Te){return Te._id}function ae(Te,Ae,Re,Le){if(!Te.calcdata)return[];var $e,Fe,Be,Ue=[],qe=Ae.map(re),Xe=Re.map(re);for(Be=0;Be0?Le[0]:Re;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf($e)>-1}function he(Te,Ae,Re){var Le,$e;for(Le=0;Le-1&&Ae;if(!Fe&&Ae){var Ot=ne(Te,!0);if(Ot.length){var At=Ot[0].xref,Nt=Ot[0].yref;if(At&&Nt){var $t=ue(Ot);pe([j(Te,At,"x"),j(Te,Nt,"y")])(zt,$t)}}Te._fullLayout._noEmitSelectedAtStart?Te._fullLayout._noEmitSelectedAtStart=!1:kt&&xe(Te,zt),dt._reselect=!1}if(!Fe&&dt._deselect){var Bt=dt._deselect;(function(Xt,Zt,qt){for(var Ht=0;Ht=0)vt._fullLayout._deactivateShape(vt);else if(!Xe){var $t=We.clickmode;F.done(It).then(function(){if(F.clear(It),At===2){for(jt.remove(),Ce=0;Ce-1&&ee(Nt,vt,Le.xaxes,Le.yaxes,Le.subplot,Le,jt),$t==="event"&&xe(vt,void 0);p.click(vt,Nt,St.id)}).catch(E.error)}},Le.doneFn=function(){xt.remove(),F.done(It).then(function(){F.clear(It),!ze&&be&&Le.selectionDefs&&(be.subtract=Mt,Le.selectionDefs.push(be),Le.mergedPolygons.length=0,[].push.apply(Le.mergedPolygons,_t)),(ze||Xe)&&Q(Le,ze),Le.doneFnCompleted&&Le.doneFnCompleted(zt),ot&&xe(vt,He)}).catch(E.error)}},clearOutline:k,clearSelectionsCache:Q,selectOnClick:ee}},89827:function(i,o,a){var s=a(50215),u=a(41940),c=a(82196).line,d=a(79952).P,f=a(1426).extendFlat,p=a(44467).templatedArray,m=(a(24695),a(9012)),g=a(5386).R,b=a(37281);i.exports=p("shape",{visible:f({},m.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:f({},m.legend,{editType:"calc+arraydraw"}),legendgroup:f({},m.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:f({},m.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:u({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:f({},m.legendrank,{editType:"calc+arraydraw"}),legendwidth:f({},m.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:f({},s.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:f({},s.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:f({},c.color,{editType:"arraydraw"}),width:f({},c.width,{editType:"calc+arraydraw"}),dash:f({},d,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:g({},{keys:Object.keys(b)}),font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(i,o,a){var s=a(71828),u=a(89298),c=a(21459),d=a(30477);function f(b){return m(b.line.width,b.xsizemode,b.x0,b.x1,b.path,!1)}function p(b){return m(b.line.width,b.ysizemode,b.y0,b.y1,b.path,!0)}function m(b,v,h,y,w,_){var x=b/2,T=_;if(v==="pixel"){var k=w?d.extractPathCoords(w,_?c.paramIsY:c.paramIsX):[h,y],S=s.aggNums(Math.max,null,k),C=s.aggNums(Math.min,null,k),M=C<0?Math.abs(C)+x:x,O=S>0?S+x:x;return{ppad:x,ppadplus:T?M:O,ppadminus:T?O:M}}return{ppad:x}}function g(b,v,h,y,w){var _=b.type==="category"||b.type==="multicategory"?b.r2c:b.d2c;if(v!==void 0)return[_(v),_(h)];if(y){var x,T,k,S,C=1/0,M=-1/0,O=y.match(c.segmentRE);for(b.type==="date"&&(_=d.decodeDate(_)),x=0;xM&&(M=S)));return M>=C?[C,M]:void 0}}i.exports=function(b){var v=b._fullLayout,h=s.filterVisible(v.shapes);if(h.length&&b._fullData.length)for(var y=0;y=re?ae-se:se-ae,-180/Math.PI*Math.atan2(he,Se)}(M,D,O,P):0),A.call(function(re){return re.call(d.font,I).attr({}),c.convertToTspans(re,v),re});var Z=function(re,ae,ie,se,he,Se,Oe){var Pe,Me,ce,we,K=he.label.textposition,ne=he.label.textangle,de=he.label.padding,_e=he.type,ue=Math.PI/180*Se,pe=Math.sin(ue),xe=Math.cos(ue),ye=he.label.xanchor,Te=he.label.yanchor;if(_e==="line"){K==="start"?(Pe=re,Me=ae):K==="end"?(Pe=ie,Me=se):(Pe=(re+ie)/2,Me=(ae+se)/2),ye==="auto"&&(ye=K==="start"?ne==="auto"?ie>re?"left":iere?"right":iere?"right":iere?"left":ie1&&(Pe.length!==2||Pe[1][0]!=="Z")&&(Y===0&&(Pe[0][0]="M"),E[q]=Pe,z(),B())}}()}}function re(he,Se){(function(Oe,Pe){if(E.length)for(var Me=0;MeMe?(K=Oe,ue="y0",ne=Me,pe="y1"):(K=Me,ue="y1",ne=Oe,pe="y0"),ut(_t),Ct(se,ae),function(be,Ce,Ge){var He=Ce.xref,et=Ce.yref,Ke=d.getFromId(Ge,He),Ye=d.getFromId(Ge,et),nt="";He==="paper"||Ke.autorange||(nt+=He),et==="paper"||Ye.autorange||(nt+=et),v.setClipUrl(be,nt?"clip"+Ge._fullLayout._uid+nt:null,Ge)}(re,ae,Q),Ze.moveFn=Ae==="move"?ht:Rt,Ze.altKey=_t.altKey)},doneFn:function(){S(Q)||(w(re),Wt(se),O(re,Q,ae),u.call("_guiRelayout",Q,he.getUpdateObj()))},clickFn:function(){S(Q)||Wt(se)}};function ut(_t){if(S(Q))Ae=null;else if(Be)Ae=_t.target.tagName==="path"?"move":_t.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var be=Ze.element.getBoundingClientRect(),Ce=be.right-be.left,Ge=be.bottom-be.top,He=_t.clientX-be.left,et=_t.clientY-be.top,Ke=!Ue&&Ce>Re&&Ge>Le&&!_t.shiftKey?y.getCursor(He/Ce,1-et/Ge):"move";w(re,Ke),Ae=Ke.split("-")[0]}}function ht(_t,be){if(ae.type==="path"){var Ce=function(et){return et},Ge=Ce,He=Ce;$e?qe("xanchor",ae.xanchor=tt(ce+_t)):(Ge=function(et){return tt(We(et)+_t)},ot&&ot.type==="date"&&(Ge=x.encodeDate(Ge))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(He=function(et){return it(ze(et)+be)},dt&&dt.type==="date"&&(He=x.encodeDate(He))),qe("path",ae.path=D(Te,Ge,He))}else $e?qe("xanchor",ae.xanchor=tt(ce+_t)):(qe("x0",ae.x0=tt(Se+_t)),qe("x1",ae.x1=tt(Pe+_t))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(qe("y0",ae.y0=it(Oe+be)),qe("y1",ae.y1=it(Me+be)));re.attr("d",T(Q,ae)),Ct(se,ae),m(Q,ie,ae,Xe)}function Rt(_t,be){if(Ue){var Ce=function(mt){return mt},Ge=Ce,He=Ce;$e?qe("xanchor",ae.xanchor=tt(ce+_t)):(Ge=function(mt){return tt(We(mt)+_t)},ot&&ot.type==="date"&&(Ge=x.encodeDate(Ge))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(He=function(mt){return it(ze(mt)+be)},dt&&dt.type==="date"&&(He=x.encodeDate(He))),qe("path",ae.path=D(Te,Ge,He))}else if(Be){if(Ae==="resize-over-start-point"){var et=Se+_t,Ke=Fe?Oe-be:Oe+be;qe("x0",ae.x0=$e?et:tt(et)),qe("y0",ae.y0=Fe?Ke:it(Ke))}else if(Ae==="resize-over-end-point"){var Ye=Pe+_t,nt=Fe?Me-be:Me+be;qe("x1",ae.x1=$e?Ye:tt(Ye)),qe("y1",ae.y1=Fe?nt:it(nt))}}else{var ct=function(mt){return Ae.indexOf(mt)!==-1},yt=ct("n"),rt=ct("s"),Ft=ct("w"),Yt=ct("e"),Mt=yt?K+be:K,jt=rt?ne+be:ne,Lt=Ft?de+_t:de,gt=Yt?_e+_t:_e;Fe&&(yt&&(Mt=K-be),rt&&(jt=ne-be)),(!Fe&&jt-Mt>Le||Fe&&Mt-jt>Le)&&(qe(ue,ae[ue]=Fe?Mt:it(Mt)),qe(pe,ae[pe]=Fe?jt:it(jt))),gt-Lt>Re&&(qe(xe,ae[xe]=$e?Lt:tt(Lt)),qe(ye,ae[ye]=$e?gt:tt(gt)))}re.attr("d",T(Q,ae)),Ct(se,ae),m(Q,ie,ae,Xe)}function Ct(_t,be){($e||Fe)&&function(){var Ce=be.type!=="path",Ge=_t.selectAll(".visual-cue").data([0]);Ge.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var He=We($e?be.xanchor:c.midRange(Ce?[be.x0,be.x1]:x.extractPathCoords(be.path,_.paramIsX))),et=ze(Fe?be.yanchor:c.midRange(Ce?[be.y0,be.y1]:x.extractPathCoords(be.path,_.paramIsY)));if(He=x.roundPositionForSharpStrokeRendering(He,1),et=x.roundPositionForSharpStrokeRendering(et,1),$e&&Fe){var Ke="M"+(He-1-1)+","+(et-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ge.attr("d",Ke)}else if($e){var Ye="M"+(He-1-1)+","+(et-9-1)+"v18 h2 v-18 Z";Ge.attr("d",Ye)}else{var nt="M"+(He-9-1)+","+(et-1-1)+"h18 v2 h-18 Z";Ge.attr("d",nt)}}()}function Wt(_t){_t.selectAll(".visual-cue").remove()}y.init(Ze),St.node().onmousemove=ut}(E,Z,F,I,B,ee):F.editable===!0&&Z.style("pointer-events",V||b.opacity(Y)*q<=.5?"stroke":"all");Z.node().addEventListener("click",function(){return function(Q,re){if(C(Q)){var ae=+re.node().getAttribute("data-index");if(ae>=0){if(ae===Q._fullLayout._activeShapeIndex)return void P(Q);Q._fullLayout._activeShapeIndex=ae,Q._fullLayout._deactivateShape=P,k(Q)}}}(E,Z)})}F._input&&F.visible===!0&&(F.layer!=="below"?z(E._fullLayout._shapeUpperLayer):F.xref==="paper"||F.yref==="paper"?z(E._fullLayout._shapeLowerLayer):j._hadPlotinfo?z((j.mainplotinfo||j).shapelayer):z(E._fullLayout._shapeLowerLayer))}function O(E,I,A){var F=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(E,F?"clip"+I._fullLayout._uid+F:null,I)}function D(E,I,A){return E.replace(_.segmentRE,function(F){var j=0,z=F.charAt(0),B=_.paramIsX[z],N=_.paramIsY[z],R=_.numParams[z];return z+F.substr(1).replace(_.paramRE,function(q){return j>=R||(B[j]?q=I(q):N[j]&&(q=A(q)),j++),q})})}function P(E){C(E)&&E._fullLayout._activeShapeIndex>=0&&(g(E),delete E._fullLayout._activeShapeIndex,k(E))}i.exports={draw:k,drawOne:M,eraseActiveShape:function(E){if(C(E)){g(E);var I=E._fullLayout._activeShapeIndex,A=(E.layout||{}).shapes||[];if(I0&&MH&&(G="X"),G});return U>H&&(Z=Z.replace(/[\s,]*X.*/,""),u.log("Ignoring extra params in segment "+W)),V+Z})}(f,m,b);if(f.xsizemode==="pixel"){var M=m(f.xanchor);v=M+f.x0,h=M+f.x1}else v=m(f.x0),h=m(f.x1);if(f.ysizemode==="pixel"){var O=b(f.yanchor);y=O-f.y0,w=O-f.y1}else y=b(f.y0),w=b(f.y1);if(_==="line")return"M"+v+","+y+"L"+h+","+w;if(_==="rect")return"M"+v+","+y+"H"+h+"V"+w+"H"+v+"Z";var D=(v+h)/2,P=(y+w)/2,E=Math.abs(D-v),I=Math.abs(P-y),A="A"+E+","+I,F=D+E+","+P;return"M"+F+A+" 0 1,1 "+D+","+(P-I)+A+" 0 0,1 "+F+"Z"}},89853:function(i,o,a){var s=a(34031);i.exports={moduleType:"component",name:"shapes",layoutAttributes:a(89827),supplyLayoutDefaults:a(84726),supplyDrawNewShapeDefaults:a(45547),includeBasePlot:a(76325)("shapes"),calcAutorange:a(5627),draw:s.draw,drawOne:s.drawOne}},37281:function(i){function o(c,d){return d?d.d2l(c):c}function a(c,d){return d?d.l2d(c):c}function s(c,d){return o(c.x1,d)-o(c.x0,d)}function u(c,d,f){return o(c.y1,f)-o(c.y0,f)}i.exports={x0:function(c){return c.x0},x1:function(c){return c.x1},y0:function(c){return c.y0},y1:function(c){return c.y1},slope:function(c,d,f){return c.type!=="line"?void 0:u(c,0,f)/s(c,d)},dx:s,dy:u,width:function(c,d){return Math.abs(s(c,d))},height:function(c,d,f){return Math.abs(u(c,0,f))},length:function(c,d,f){return c.type!=="line"?void 0:Math.sqrt(Math.pow(s(c,d),2)+Math.pow(u(c,0,f),2))},xcenter:function(c,d){return a((o(c.x1,d)+o(c.x0,d))/2,d)},ycenter:function(c,d,f){return a((o(c.y1,f)+o(c.y0,f))/2,f)}}},75067:function(i,o,a){var s=a(41940),u=a(35025),c=a(1426).extendDeepAll,d=a(30962).overrideAll,f=a(85594),p=a(44467).templatedArray,m=a(98292),g=p("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:g,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:c(u({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:f.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:s({})},font:s({}),activebgcolor:{valType:"color",dflt:m.gripBgActiveColor},bgcolor:{valType:"color",dflt:m.railBgColor},bordercolor:{valType:"color",dflt:m.railBorderColor},borderwidth:{valType:"number",min:0,dflt:m.railBorderWidth},ticklen:{valType:"number",min:0,dflt:m.tickLength},tickcolor:{valType:"color",dflt:m.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:m.minorTickLength}}),"arraydraw","from-root")},98292:function(i){i.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(i,o,a){var s=a(71828),u=a(85501),c=a(75067),d=a(98292).name,f=c.steps;function p(g,b,v){function h(T,k){return s.coerce(g,b,c,T,k)}for(var y=u(g,b,{name:"steps",handleItemDefaults:m}),w=0,_=0;_0&&(U=U.transition().duration(N.transition.duration).ease(N.transition.easing)),U.attr("transform",p(W-.5*b.gripWidth,N._dims.currentValueTotalHeight))}}function A(B,N){var R=B._dims;return R.inputAreaStart+b.stepInset+(R.inputAreaLength-2*b.stepInset)*Math.min(1,Math.max(0,N))}function F(B,N){var R=B._dims;return Math.min(1,Math.max(0,(N-b.stepInset-R.inputAreaStart)/(R.inputAreaLength-2*b.stepInset-2*R.inputAreaStart)))}function j(B,N,R){var q=R._dims,Y=f.ensureSingle(B,"rect",b.railTouchRectClass,function(L){L.call(P,N,B,R).style("pointer-events","all")});Y.attr({width:q.inputAreaLength,height:Math.max(q.inputAreaWidth,b.tickOffset+R.ticklen+q.labelHeight)}).call(c.fill,R.bgcolor).attr("opacity",0),d.setTranslate(Y,0,q.currentValueTotalHeight)}function z(B,N){var R=N._dims,q=R.inputAreaLength-2*b.railInset,Y=f.ensureSingle(B,"rect",b.railRectClass);Y.attr({width:q,height:b.railWidth,rx:b.railRadius,ry:b.railRadius,"shape-rendering":"crispEdges"}).call(c.stroke,N.bordercolor).call(c.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),d.setTranslate(Y,b.railInset,.5*(R.inputAreaWidth-b.railWidth)+R.currentValueTotalHeight)}i.exports=function(B){var N=B._context.staticPlot,R=B._fullLayout,q=function(te,ee){for(var H=te[b.name],Z=[],G=0;G0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),u.autoMargin(B,_(te))}if(Y.enter().append("g").classed(b.containerClassName,!0).style("cursor",N?null:"ew-resize"),Y.exit().each(function(){s.select(this).selectAll("g."+b.groupClassName).each(L)}).remove(),q.length!==0){var W=Y.selectAll("g."+b.groupClassName).data(q,x);W.enter().append("g").classed(b.groupClassName,!0),W.exit().each(L).remove();for(var U=0;U0||Pe<0){var K={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[O.side];Z.attr("transform",p(K[0],K[1]))}}}return U.call(V),Y&&(z?U.on(".opacity",null):(A=0,F=!0,U.text(C).on("mouseover.opacity",function(){s.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){s.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),U.call(b.makeEditable,{gd:w}).on("edit",function(H){M!==void 0?d.call("_guiRestyle",w,S,H,M):d.call("_guiRelayout",w,S,H)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(H){this.text(H||" ").call(b.positionText,D.x,D.y)})),U.classed("js-placeholder",F),E}}},7163:function(i,o,a){var s=a(41940),u=a(22399),c=a(1426).extendFlat,d=a(30962).overrideAll,f=a(35025),p=a(44467).templatedArray,m=p("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:m,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:c(f({editType:"arraydraw"}),{}),font:s({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:u.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(i){i.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(i,o,a){var s=a(71828),u=a(85501),c=a(7163),d=a(75909).name,f=c.buttons;function p(g,b,v){function h(y,w){return s.coerce(g,b,c,y,w)}h("visible",u(g,b,{name:"buttons",handleItemDefaults:m}).length>0)&&(h("active"),h("direction"),h("type"),h("showactive"),h("x"),h("y"),s.noneOrAll(g,b,["x","y"]),h("xanchor"),h("yanchor"),h("pad.t"),h("pad.r"),h("pad.b"),h("pad.l"),s.coerceFont(h,"font",v.font),h("bgcolor",v.paper_bgcolor),h("bordercolor"),h("borderwidth"))}function m(g,b){function v(h,y){return s.coerce(g,b,f,h,y)}v("visible",g.method==="skip"||Array.isArray(g.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}i.exports=function(g,b){u(g,b,{name:d,handleItemDefaults:p})}},13689:function(i,o,a){var s=a(39898),u=a(74875),c=a(7901),d=a(91424),f=a(71828),p=a(63893),m=a(44467).arrayEditor,g=a(18783).LINE_SPACING,b=a(75909),v=a(25849);function h(A){return A._index}function y(A,F){return+A.attr(b.menuIndexAttrName)===F._index}function w(A,F,j,z,B,N,R,q){F.active=R,m(A.layout,b.name,F).applyUpdate("active",R),F.type==="buttons"?x(A,z,null,null,F):F.type==="dropdown"&&(B.attr(b.menuIndexAttrName,"-1"),_(A,z,B,N,F),q||x(A,z,B,N,F))}function _(A,F,j,z,B){var N=f.ensureSingle(F,"g",b.headerClassName,function(U){U.style("pointer-events","all")}),R=B._dims,q=B.active,Y=B.buttons[q]||b.blankHeaderOpts,L={y:B.pad.t,yPad:0,x:B.pad.l,xPad:0,index:0},W={width:R.headerWidth,height:R.headerHeight};N.call(T,B,Y,A).call(E,B,L,W),f.ensureSingle(F,"text",b.headerArrowClassName,function(U){U.attr("text-anchor","end").call(d.font,B.font).text(b.arrowSymbol[B.direction])}).attr({x:R.headerWidth-b.arrowOffsetX+B.pad.l,y:R.headerHeight/2+b.textOffsetY+B.pad.t}),N.on("click",function(){j.call(I,String(y(j,B)?-1:B._index)),x(A,F,j,z,B)}),N.on("mouseover",function(){N.call(M)}),N.on("mouseout",function(){N.call(O,B)}),d.setTranslate(F,R.lx,R.ly)}function x(A,F,j,z,B){j||(j=F).attr("pointer-events","all");var N=function(Z){return+Z.attr(b.menuIndexAttrName)==-1}(j)&&B.type!=="buttons"?[]:B.buttons,R=B.type==="dropdown"?b.dropdownButtonClassName:b.buttonClassName,q=j.selectAll("g."+R).data(f.filterVisible(N)),Y=q.enter().append("g").classed(R,!0),L=q.exit();B.type==="dropdown"?(Y.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var W=0,U=0,V=B._dims,te=["up","down"].indexOf(B.direction)!==-1;B.type==="dropdown"&&(te?U=V.headerHeight+b.gapButtonHeader:W=V.headerWidth+b.gapButtonHeader),B.type==="dropdown"&&B.direction==="up"&&(U=-b.gapButtonHeader+b.gapButton-V.openHeight),B.type==="dropdown"&&B.direction==="left"&&(W=-b.gapButtonHeader+b.gapButton-V.openWidth);var ee={x:V.lx+W+B.pad.l,y:V.ly+U+B.pad.t,yPad:b.gapButton,xPad:b.gapButton,index:0},H={l:ee.x+B.borderwidth,t:ee.y+B.borderwidth};q.each(function(Z,G){var X=s.select(this);X.call(T,B,Z,A).call(E,B,ee),X.on("click",function(){s.event.defaultPrevented||(Z.execute&&(Z.args2&&B.active===G?(w(A,B,0,F,j,z,-1),u.executeAPICommand(A,Z.method,Z.args2)):(w(A,B,0,F,j,z,G),u.executeAPICommand(A,Z.method,Z.args))),A.emit("plotly_buttonclicked",{menu:B,button:Z,active:B.active}))}),X.on("mouseover",function(){X.call(M)}),X.on("mouseout",function(){X.call(O,B),q.call(C,B)})}),q.call(C,B),te?(H.w=Math.max(V.openWidth,V.headerWidth),H.h=ee.y-H.t):(H.w=ee.x-H.l,H.h=Math.max(V.openHeight,V.headerHeight)),H.direction=B.direction,z&&(q.size()?function(Z,G,X,Q,re,ae){var ie,se,he,Se=re.direction,Oe=Se==="up"||Se==="down",Pe=re._dims,Me=re.active;if(Oe)for(se=0,he=0;he0?[0]:[]);if(B.enter().append("g").classed(b.containerClassName,!0).style("cursor","pointer"),B.exit().each(function(){s.select(this).selectAll("g."+b.headerGroupClassName).each(z)}).remove(),j.length!==0){var N=B.selectAll("g."+b.headerGroupClassName).data(j,h);N.enter().append("g").classed(b.headerGroupClassName,!0);for(var R=f.ensureSingle(B,"g",b.dropdownButtonGroupClassName,function(U){U.style("pointer-events","all")}),q=0;qE,F=f.barLength+2*f.barPad,j=f.barWidth+2*f.barPad,z=T,B=S+C;B+j>h&&(B=h-j);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(u.fill,f.barColor),A?(this.hbar=N.attr({rx:f.barRadius,ry:f.barRadius,x:z,y:B,width:F,height:j}),this._hbarXMin=z+F/2,this._hbarTranslateMax=E-F):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var R=C>I,q=f.barWidth+2*f.barPad,Y=f.barLength+2*f.barPad,L=T+k,W=S;L+q>v&&(L=v-q);var U=this.container.selectAll("rect.scrollbar-vertical").data(R?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(u.fill,f.barColor),R?(this.vbar=U.attr({rx:f.barRadius,ry:f.barRadius,x:L,y:W,width:q,height:Y}),this._vbarYMin=W+Y/2,this._vbarTranslateMax=I-Y):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=y-.5,ee=R?w+q+.5:w+.5,H=_-.5,Z=A?x+j+.5:x+.5,G=b._topdefs.selectAll("#"+V).data(A||R?[0]:[]);if(G.exit().remove(),G.enter().append("clipPath").attr("id",V).append("rect"),A||R?(this._clipRect=G.select("rect").attr({x:Math.floor(te),y:Math.floor(H),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Z)-Math.floor(H)}),this.container.call(c.setClipUrl,V,this.gd),this.bg.attr({x:T,y:S,width:k,height:C})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),A||R){var X=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(X);var Q=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault(),s.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(Q),R&&this.vbar.on(".drag",null).call(Q)}this.setTranslate(m,g)},f.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},f.prototype._onBoxDrag=function(){var p=this.translateX,m=this.translateY;this.hbar&&(p-=s.event.dx),this.vbar&&(m-=s.event.dy),this.setTranslate(p,m)},f.prototype._onBoxWheel=function(){var p=this.translateX,m=this.translateY;this.hbar&&(p+=s.event.deltaY),this.vbar&&(m+=s.event.deltaY),this.setTranslate(p,m)},f.prototype._onBarDrag=function(){var p=this.translateX,m=this.translateY;if(this.hbar){var g=p+this._hbarXMin,b=g+this._hbarTranslateMax;p=(d.constrain(s.event.x,g,b)-g)/(b-g)*(this.position.w-this._box.w)}if(this.vbar){var v=m+this._vbarYMin,h=v+this._vbarTranslateMax;m=(d.constrain(s.event.y,v,h)-v)/(h-v)*(this.position.h-this._box.h)}this.setTranslate(p,m)},f.prototype.setTranslate=function(p,m){var g=this.position.w-this._box.w,b=this.position.h-this._box.h;if(p=d.constrain(p||0,0,g),m=d.constrain(m||0,0,b),this.translateX=p,this.translateY=m,this.container.call(c.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-m),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+m-.5)}),this.hbar){var v=p/g;this.hbar.call(c.setTranslate,p+v*this._hbarTranslateMax,m)}if(this.vbar){var h=m/b;this.vbar.call(c.setTranslate,p,m+h*this._vbarTranslateMax)}}},18783:function(i){i.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(i){i.exports={axisRefDescription:function(o,a,s){return["If set to a",o,"axis id (e.g. *"+o+"* or","*"+o+"2*), the `"+o+"` position refers to a",o,"coordinate. If set to *paper*, the `"+o+"`","position refers to the distance from the",a,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",a,"("+s+"). If set to a",o,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",a,"of the domain of that axis: e.g.,","*"+o+"2 domain* refers to the domain of the second",o," axis and a",o,"position of 0.5 refers to the","point between the",a,"and the",s,"of the domain of the","second",o,"axis."].join(" ")}}},31562:function(i){i.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(i){i.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(i){i.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(i){i.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(i,o){o.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],o.STYLE=o.CSS_DECLARATIONS.map(function(a){return a.join(": ")+"; "}).join("")},77922:function(i,o){o.xmlns="http://www.w3.org/2000/xmlns/",o.svg="http://www.w3.org/2000/svg",o.xlink="http://www.w3.org/1999/xlink",o.svgAttrs={xmlns:o.svg,"xmlns:xlink":o.xlink}},8729:function(i,o,a){o.version=a(11506).version,a(7417),a(98847);for(var s=a(73972),u=o.register=s.register,c=a(10641),d=Object.keys(c),f=0;f",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(i,o){o.isLeftAnchor=function(a){return a.xanchor==="left"||a.xanchor==="auto"&&a.x<=.3333333333333333},o.isCenterAnchor=function(a){return a.xanchor==="center"||a.xanchor==="auto"&&a.x>.3333333333333333&&a.x<.6666666666666666},o.isRightAnchor=function(a){return a.xanchor==="right"||a.xanchor==="auto"&&a.x>=.6666666666666666},o.isTopAnchor=function(a){return a.yanchor==="top"||a.yanchor==="auto"&&a.y>=.6666666666666666},o.isMiddleAnchor=function(a){return a.yanchor==="middle"||a.yanchor==="auto"&&a.y>.3333333333333333&&a.y<.6666666666666666},o.isBottomAnchor=function(a){return a.yanchor==="bottom"||a.yanchor==="auto"&&a.y<=.3333333333333333}},26348:function(i,o,a){var s=a(64872),u=s.mod,c=s.modHalf,d=Math.PI,f=2*d;function p(v){return Math.abs(v[1]-v[0])>f-1e-14}function m(v,h){return c(h-v,f)}function g(v,h){if(p(h))return!0;var y,w;h[0](w=u(w,f))&&(w+=f);var _=u(v,f),x=_+f;return _>=y&&_<=w||x>=y&&x<=w}function b(v,h,y,w,_,x,T){_=_||0,x=x||0;var k,S,C,M,O,D=p([y,w]);function P(F,j){return[F*Math.cos(j)+_,x-F*Math.sin(j)]}D?(k=0,S=d,C=f):y=_&&v<=x);var _,x},pathArc:function(v,h,y,w,_){return b(null,v,h,y,w,_,0)},pathSector:function(v,h,y,w,_){return b(null,v,h,y,w,_,1)},pathAnnulus:function(v,h,y,w,_,x){return b(v,h,y,w,_,x,1)}}},73627:function(i,o){var a=Array.isArray,s=ArrayBuffer,u=DataView;function c(p){return s.isView(p)&&!(p instanceof u)}function d(p){return a(p)||c(p)}function f(p,m,g){if(d(p)){if(d(p[0])){for(var b=g,v=0;vx.max?w.set(_):w.set(+y)}},integer:{coerceFunction:function(y,w,_,x){y%1||!s(y)||x.min!==void 0&&yx.max?w.set(_):w.set(+y)}},string:{coerceFunction:function(y,w,_,x){if(typeof y!="string"){var T=typeof y=="number";x.strict!==!0&&T?w.set(String(y)):w.set(_)}else x.noBlank&&!y?w.set(_):w.set(y)}},color:{coerceFunction:function(y,w,_){u(y).isValid()?w.set(y):w.set(_)}},colorlist:{coerceFunction:function(y,w,_){Array.isArray(y)&&y.length&&y.every(function(x){return u(x).isValid()})?w.set(y):w.set(_)}},colorscale:{coerceFunction:function(y,w,_){w.set(d.get(y,_))}},angle:{coerceFunction:function(y,w,_){y==="auto"?w.set("auto"):s(y)?w.set(b(+y,360)):w.set(_)}},subplotid:{coerceFunction:function(y,w,_,x){var T=x.regex||g(_);typeof y=="string"&&T.test(y)?w.set(y):w.set(_)},validateFunction:function(y,w){var _=w.dflt;return y===_||typeof y=="string"&&!!g(_).test(y)}},flaglist:{coerceFunction:function(y,w,_,x){if((x.extras||[]).indexOf(y)===-1)if(typeof y=="string"){for(var T=y.split("+"),k=0;k=s&&N<=u?N:g}if(typeof N!="string"&&typeof N!="number")return g;N=String(N);var W=C(R),U=N.charAt(0);!W||U!=="G"&&U!=="g"||(N=N.substr(1),R="");var V=W&&R.substr(0,7)==="chinese",te=N.match(V?k:T);if(!te)return g;var ee=te[1],H=te[3]||"1",Z=Number(te[5]||1),G=Number(te[7]||0),X=Number(te[9]||0),Q=Number(te[11]||0);if(W){if(ee.length===2)return g;var re;ee=Number(ee);try{var ae=_.getComponentMethod("calendars","getCal")(R);if(V){var ie=H.charAt(H.length-1)==="i";H=parseInt(H,10),re=ae.newDate(ee,ae.toMonthIndex(ee,H,ie),Z)}else re=ae.newDate(ee,Number(H),Z)}catch{return g}return re?(re.toJD()-w)*b+G*v+X*h+Q*y:g}ee=ee.length===2?(Number(ee)+2e3-S)%100+S:Number(ee),H-=1;var se=new Date(Date.UTC(2e3,H,Z,G,X));return se.setUTCFullYear(ee),se.getUTCMonth()!==H||se.getUTCDate()!==Z?g:se.getTime()+Q*y},s=o.MIN_MS=o.dateTime2ms("-9999"),u=o.MAX_MS=o.dateTime2ms("9999-12-31 23:59:59.9999"),o.isDateTime=function(N,R){return o.dateTime2ms(N,R)!==g};var O=90*b,D=3*v,P=5*h;function E(N,R,q,Y,L){if((R||q||Y||L)&&(N+=" "+M(R,2)+":"+M(q,2),(Y||L)&&(N+=":"+M(Y,2),L))){for(var W=4;L%10==0;)W-=1,L/=10;N+="."+M(L,W)}return N}o.ms2DateTime=function(N,R,q){if(typeof N!="number"||!(N>=s&&N<=u))return g;R||(R=0);var Y,L,W,U,V,te,ee=Math.floor(10*p(N+.05,1)),H=Math.round(N-ee/10);if(C(q)){var Z=Math.floor(H/b)+w,G=Math.floor(p(N,b));try{Y=_.getComponentMethod("calendars","getCal")(q).fromJD(Z).formatDate("yyyy-mm-dd")}catch{Y=x("G%Y-%m-%d")(new Date(H))}if(Y.charAt(0)==="-")for(;Y.length<11;)Y="-0"+Y.substr(1);else for(;Y.length<10;)Y="0"+Y;L=R=s+b&&N<=u-b))return g;var R=Math.floor(10*p(N+.05,1)),q=new Date(Math.round(N-R/10));return E(c("%Y-%m-%d")(q),q.getHours(),q.getMinutes(),q.getSeconds(),10*q.getUTCMilliseconds()+R)},o.cleanDate=function(N,R,q){if(N===g)return R;if(o.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(C(q))return f.error("JS Dates and milliseconds are incompatible with world calendars",N),R;if(!(N=o.ms2DateTimeLocal(+N))&&R!==void 0)return R}else if(!o.isDateTime(N,q))return f.error("unrecognized date",N),R;return N};var I=/%\d?f/g,A=/%h/g,F={1:"1",2:"1",3:"2",4:"2"};function j(N,R,q,Y){N=N.replace(I,function(W){var U=Math.min(+W.charAt(1)||6,6);return(R/1e3%1+2).toFixed(U).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(R+.05));if(N=N.replace(A,function(){return F[q("%q")(L)]}),C(Y))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,R,Y)}catch{return"Invalid"}return q(N)(L)}var z=[59,59.9,59.99,59.999,59.9999];o.formatDate=function(N,R,q,Y,L,W){if(L=C(L)&&L,!R)if(q==="y")R=W.year;else if(q==="m")R=W.month;else{if(q!=="d")return function(U,V){var te=p(U+.05,b),ee=M(Math.floor(te/v),2)+":"+M(p(Math.floor(te/h),60),2);if(V!=="M"){d(V)||(V=0);var H=(100+Math.min(p(U/y,60),z[V])).toFixed(V).substr(1);V>0&&(H=H.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+H}return ee}(N,q)+` `+j(W.dayMonthYear,N,Y,L);R=W.dayMonth+` `+W.year}return j(R,N,Y,L)};var B=3*b;o.incrementMonth=function(N,R,q){q=C(q)&&q;var Y=p(N,b);if(N=Math.round(N-Y),q)try{var L=Math.round(N/b)+w,W=_.getComponentMethod("calendars","getCal")(q),U=W.fromJD(L);return R%12?W.add(U,R,"m"):W.add(U,R/12,"y"),(U.toJD()-w)*b+Y}catch{f.error("invalid ms "+N+" in calendar "+q)}var V=new Date(N+B);return V.setUTCMonth(V.getUTCMonth()+R)+Y-B},o.findExactDates=function(N,R){for(var q,Y,L=0,W=0,U=0,V=0,te=C(R)&&_.getComponentMethod("calendars","getCal")(R),ee=0;ee1||D<0||D>1?null:{x:m+x*D,y:g+S*D}}function p(m,g,b,v,h){var y=v*m+h*g;if(y<0)return v*v+h*h;if(y>b){var w=v-m,_=h-g;return w*w+_*_}var x=v*g-h*m;return x*x/b}o.segmentsIntersect=f,o.segmentDistance=function(m,g,b,v,h,y,w,_){if(f(m,g,b,v,h,y,w,_))return 0;var x=b-m,T=v-g,k=w-h,S=_-y,C=x*x+T*T,M=k*k+S*S,O=Math.min(p(x,T,C,h-m,y-g),p(x,T,C,w-m,_-g),p(k,S,M,m-h,g-y),p(k,S,M,b-h,v-y));return Math.sqrt(O)},o.getTextLocation=function(m,g,b,v){if(m===u&&v===c||(s={},u=m,c=v),s[b])return s[b];var h=m.getPointAtLength(d(b-v/2,g)),y=m.getPointAtLength(d(b+v/2,g)),w=Math.atan((y.y-h.y)/(y.x-h.x)),_=m.getPointAtLength(d(b,g)),x={x:(4*_.x+h.x+y.x)/6,y:(4*_.y+h.y+y.y)/6,theta:w};return s[b]=x,x},o.clearLocationCache=function(){u=null},o.getVisibleSegment=function(m,g,b){var v,h,y=g.left,w=g.right,_=g.top,x=g.bottom,T=0,k=m.getTotalLength(),S=k;function C(O){var D=m.getPointAtLength(O);O===0?v=D:O===k&&(h=D);var P=D.xw?D.x-w:0,E=D.y<_?_-D.y:D.y>x?D.y-x:0;return Math.sqrt(P*P+E*E)}for(var M=C(T);M;){if((T+=M+b)>S)return;M=C(T)}for(M=C(S);M;){if(T>(S-=M+b))return;M=C(S)}return{min:T,max:S,len:S-T,total:k,isClosed:T===0&&S===k&&Math.abs(v.x-h.x)<.1&&Math.abs(v.y-h.y)<.1}},o.findPointOnPath=function(m,g,b,v){for(var h,y,w,_=(v=v||{}).pathLength||m.getTotalLength(),x=v.tolerance||.001,T=v.iterationLimit||30,k=m.getPointAtLength(0)[b]>m.getPointAtLength(_)[b]?-1:1,S=0,C=0,M=_;S0?M=h:C=h,S++}return y}},23389:function(i){i.exports=function(o){return o}},39240:function(i){i.exports=function(o,a){if(!a)return o;var s=1/Math.abs(a),u=s>1?(s*o+s*a)/s:o+a,c=String(u).length;if(c>16){var d=String(a).length;if(c>=String(o).length+d){var f=parseFloat(u).toPrecision(12);f.indexOf("e+")===-1&&(u=+f)}}return u}},71828:function(i,o,a){var s=a(39898),u=a(84096).g0,c=a(60721).WU,d=a(92770),f=a(50606),p=f.FP_SAFE,m=-p,g=f.BADNUM,b=i.exports={};b.adjustFormat=function(G){return!G||/^\d[.]\df/.test(G)||/[.]\d%/.test(G)?G:G==="0.f"?"~f":/^\d%/.test(G)?"~%":/^\ds/.test(G)?"~s":!/^[~,.0$]/.test(G)&&/[&fps]/.test(G)?"~"+G:G};var v={};b.warnBadFormat=function(G){var X=String(G);v[X]||(v[X]=1,b.warn('encountered bad format: "'+X+'"'))},b.noFormat=function(G){return String(G)},b.numberFormat=function(G){var X;try{X=c(b.adjustFormat(G))}catch{return b.warnBadFormat(G),b.noFormat}return X},b.nestedProperty=a(65487),b.keyedContainer=a(66636),b.relativeAttr=a(6962),b.isPlainObject=a(41965),b.toLogRange=a(58163),b.relinkPrivateKeys=a(51332);var h=a(73627);b.isTypedArray=h.isTypedArray,b.isArrayOrTypedArray=h.isArrayOrTypedArray,b.isArray1D=h.isArray1D,b.ensureArray=h.ensureArray,b.concat=h.concat,b.maxRowLength=h.maxRowLength,b.minRowLength=h.minRowLength;var y=a(64872);b.mod=y.mod,b.modHalf=y.modHalf;var w=a(96554);b.valObjectMeta=w.valObjectMeta,b.coerce=w.coerce,b.coerce2=w.coerce2,b.coerceFont=w.coerceFont,b.coercePattern=w.coercePattern,b.coerceHoverinfo=w.coerceHoverinfo,b.coerceSelectionMarkerOpacity=w.coerceSelectionMarkerOpacity,b.validate=w.validate;var _=a(41631);b.dateTime2ms=_.dateTime2ms,b.isDateTime=_.isDateTime,b.ms2DateTime=_.ms2DateTime,b.ms2DateTimeLocal=_.ms2DateTimeLocal,b.cleanDate=_.cleanDate,b.isJSDate=_.isJSDate,b.formatDate=_.formatDate,b.incrementMonth=_.incrementMonth,b.dateTick0=_.dateTick0,b.dfltRange=_.dfltRange,b.findExactDates=_.findExactDates,b.MIN_MS=_.MIN_MS,b.MAX_MS=_.MAX_MS;var x=a(65888);b.findBin=x.findBin,b.sorterAsc=x.sorterAsc,b.sorterDes=x.sorterDes,b.distinctVals=x.distinctVals,b.roundUp=x.roundUp,b.sort=x.sort,b.findIndexOfMin=x.findIndexOfMin,b.sortObjectKeys=a(78607);var T=a(80038);b.aggNums=T.aggNums,b.len=T.len,b.mean=T.mean,b.median=T.median,b.midRange=T.midRange,b.variance=T.variance,b.stdev=T.stdev,b.interp=T.interp;var k=a(35657);b.init2dArray=k.init2dArray,b.transposeRagged=k.transposeRagged,b.dot=k.dot,b.translationMatrix=k.translationMatrix,b.rotationMatrix=k.rotationMatrix,b.rotationXYMatrix=k.rotationXYMatrix,b.apply3DTransform=k.apply3DTransform,b.apply2DTransform=k.apply2DTransform,b.apply2DTransform2=k.apply2DTransform2,b.convertCssMatrix=k.convertCssMatrix,b.inverseTransformMatrix=k.inverseTransformMatrix;var S=a(26348);b.deg2rad=S.deg2rad,b.rad2deg=S.rad2deg,b.angleDelta=S.angleDelta,b.angleDist=S.angleDist,b.isFullCircle=S.isFullCircle,b.isAngleInsideSector=S.isAngleInsideSector,b.isPtInsideSector=S.isPtInsideSector,b.pathArc=S.pathArc,b.pathSector=S.pathSector,b.pathAnnulus=S.pathAnnulus;var C=a(99863);b.isLeftAnchor=C.isLeftAnchor,b.isCenterAnchor=C.isCenterAnchor,b.isRightAnchor=C.isRightAnchor,b.isTopAnchor=C.isTopAnchor,b.isMiddleAnchor=C.isMiddleAnchor,b.isBottomAnchor=C.isBottomAnchor;var M=a(87642);b.segmentsIntersect=M.segmentsIntersect,b.segmentDistance=M.segmentDistance,b.getTextLocation=M.getTextLocation,b.clearLocationCache=M.clearLocationCache,b.getVisibleSegment=M.getVisibleSegment,b.findPointOnPath=M.findPointOnPath;var O=a(1426);b.extendFlat=O.extendFlat,b.extendDeep=O.extendDeep,b.extendDeepAll=O.extendDeepAll,b.extendDeepNoArrays=O.extendDeepNoArrays;var D=a(47769);b.log=D.log,b.warn=D.warn,b.error=D.error;var P=a(30587);b.counterRegex=P.counter;var E=a(79990);b.throttle=E.throttle,b.throttleDone=E.done,b.clearThrottle=E.clear;var I=a(24401);function A(G){var X={};for(var Q in G)for(var re=G[Q],ae=0;aep||G=X)&&d(G)&&G>=0&&G%1==0},b.noop=a(64213),b.identity=a(23389),b.repeat=function(G,X){for(var Q=new Array(X),re=0;reQ?Math.max(Q,Math.min(X,G)):Math.max(X,Math.min(Q,G))},b.bBoxIntersect=function(G,X,Q){return Q=Q||0,G.left<=X.right+Q&&X.left<=G.right+Q&&G.top<=X.bottom+Q&&X.top<=G.bottom+Q},b.simpleMap=function(G,X,Q,re,ae){for(var ie=G.length,se=new Array(ie),he=0;he=Math.pow(2,Q)?ae>10?(b.warn("randstr failed uniqueness"),Se):G(X,Q,re,(ae||0)+1):Se},b.OptionControl=function(G,X){G||(G={}),X||(X="opt");var Q={optionList:[],_newoption:function(re){re[X]=G,Q[re.name]=re,Q.optionList.push(re)}};return Q["_"+X]=G,Q},b.smooth=function(G,X){if((X=Math.round(X)||0)<2)return G;var Q,re,ae,ie,se=G.length,he=2*se,Se=2*X-1,Oe=new Array(Se),Pe=new Array(se);for(Q=0;Q=he&&(ae-=he*Math.floor(ae/he)),ae<0?ae=-1-ae:ae>=se&&(ae=he-1-ae),ie+=G[ae]*Oe[re];Pe[Q]=ie}return Pe},b.syncOrAsync=function(G,X,Q){var re;function ae(){return b.syncOrAsync(G,X,Q)}for(;G.length;)if((re=(0,G.splice(0,1)[0])(X))&&re.then)return re.then(ae);return Q&&Q(X)},b.stripTrailingSlash=function(G){return G.substr(-1)==="/"?G.substr(0,G.length-1):G},b.noneOrAll=function(G,X,Q){if(G){var re,ae=!1,ie=!0;for(re=0;re0?ae:0})},b.fillArray=function(G,X,Q,re){if(re=re||b.identity,b.isArrayOrTypedArray(G))for(var ae=0;ae1?ae+se[1]:"";if(ie&&(se.length>1||he.length>4||Q))for(;re.test(he);)he=he.replace(re,"$1"+ie+"$2");return he+Se},b.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var q=/^\w*$/;b.templateString=function(G,X){var Q={};return G.replace(b.TEMPLATE_STRING_REGEX,function(re,ae){var ie;return q.test(ae)?ie=X[ae]:(Q[ae]=Q[ae]||b.nestedProperty(X,ae).get,ie=Q[ae]()),b.isValidTextValue(ie)?ie:""})};var Y={max:10,count:0,name:"hovertemplate"};b.hovertemplateString=function(){return te.apply(Y,arguments)};var L={max:10,count:0,name:"texttemplate"};b.texttemplateString=function(){return te.apply(L,arguments)};var W=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,U={max:10,count:0,name:"texttemplate",parseMultDiv:!0};b.texttemplateStringForShapes=function(){return te.apply(U,arguments)};var V=/^[:|\|]/;function te(G,X,Q){var re=this,ae=arguments;X||(X={});var ie={};return G.replace(b.TEMPLATE_STRING_REGEX,function(se,he,Se){var Oe=he==="_xother"||he==="_yother",Pe=he==="_xother_"||he==="_yother_",Me=he==="xother_"||he==="yother_",ce=he==="xother"||he==="yother"||Oe||Me||Pe,we=he;(Oe||Pe)&&(we=we.substring(1)),(Me||Pe)&&(we=we.substring(0,we.length-1));var K,ne,de,_e=null,ue=null;if(re.parseMultDiv){var pe=function(Ae){var Re=Ae.match(W);return Re?{key:Re[1],op:Re[2],number:Number(Re[3])}:{key:Ae,op:null,number:null}}(we);we=pe.key,_e=pe.op,ue=pe.number}if(ce){if((K=X[we])===void 0)return""}else for(de=3;de=48&&se<=57,Oe=he>=48&&he<=57;if(Se&&(re=10*re+se-48),Oe&&(ae=10*ae+he-48),!Se||!Oe){if(re!==ae)return re-ae;if(se!==he)return se-he}}return ae-re};var ee=2e9;b.seedPseudoRandom=function(){ee=2e9},b.pseudoRandom=function(){var G=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-G)<429496729?b.pseudoRandom():ee/4294967296},b.fillText=function(G,X,Q){var re=Array.isArray(Q)?function(se){Q.push(se)}:function(se){Q.text=se},ae=b.extractOption(G,X,"htx","hovertext");if(b.isValidTextValue(ae))return re(ae);var ie=b.extractOption(G,X,"tx","text");return b.isValidTextValue(ie)?re(ie):void 0},b.isValidTextValue=function(G){return G||G===0},b.formatPercent=function(G,X){X=X||0;for(var Q=(Math.round(100*G*Math.pow(10,X))*Math.pow(.1,X)).toFixed(X)+"%",re=0;re1&&(Oe=1):Oe=0,b.strTranslate(ae-Oe*(Q+se),ie-Oe*(re+he))+b.strScale(Oe)+(Se?"rotate("+Se+(X?"":" "+Q+" "+re)+")":"")},b.setTransormAndDisplay=function(G,X){G.attr("transform",b.getTextTransform(X)),G.style("display",X.scale?null:"none")},b.ensureUniformFontSize=function(G,X){var Q=b.extendFlat({},X);return Q.size=Math.max(X.size,G._fullLayout.uniformtext.minsize||0),Q},b.join2=function(G,X,Q){var re=G.length;return re>1?G.slice(0,-1).join(X)+Q+G[re-1]:G.join(X)},b.bigFont=function(G){return Math.round(1.2*G)};var H=b.getFirefoxVersion(),Z=H!==null&&H<86;b.getPositionFromD3Event=function(){return Z?[s.event.layerX,s.event.layerY]:[s.event.offsetX,s.event.offsetY]}},41965:function(i){i.exports=function(o){return window&&window.process&&window.process.versions?Object.prototype.toString.call(o)==="[object Object]":Object.prototype.toString.call(o)==="[object Object]"&&Object.getPrototypeOf(o).hasOwnProperty("hasOwnProperty")}},66636:function(i,o,a){var s=a(65487),u=/^\w*$/;i.exports=function(c,d,f,p){var m,g,b;f=f||"name",p=p||"value";var v={};d&&d.length?(b=s(c,d),g=b.get()):g=c,d=d||"";var h={};if(g)for(m=0;m2)return v[x]=2|v[x],w.set(_,null);if(y){for(m=x;m1){var f=["LOG:"];for(d=0;d1){var p=[];for(d=0;d"),"long")}},c.warn=function(){var d;if(s.logging>0){var f=["WARN:"];for(d=0;d0){var p=[];for(d=0;d"),"stick")}},c.error=function(){var d;if(s.logging>0){var f=["ERROR:"];for(d=0;d0){var p=[];for(d=0;d"),"stick")}}},77310:function(i,o,a){var s=a(39898);i.exports=function(u,c,d){var f=u.selectAll("g."+d.replace(/\s/g,".")).data(c,function(m){return m[0].trace.uid});f.exit().remove(),f.enter().append("g").attr("class",d),f.order();var p=u.classed("rangeplot")?"nodeRangePlot3":"node3";return f.each(function(m){m[0][p]=s.select(this)}),f}},35657:function(i,o,a){var s=a(79576);o.init2dArray=function(u,c){for(var d=new Array(u),f=0;fa/2?o-Math.round(o/a)*a:o}}},65487:function(i,o,a){var s=a(92770),u=a(73627).isArrayOrTypedArray;function c(v,h){return function(){var y,w,_,x,T,k=v;for(x=0;x/g),w=0;wg||S===u||Sv||T&&h(x))}:function(x,T){var k=x[0],S=x[1];if(k===u||kg||S===u||Sv)return!1;var C,M,O,D,P,E=p.length,I=p[0][0],A=p[0][1],F=0;for(C=1;CMath.max(M,I)||S>Math.max(O,A)))if(Sw||Math.abs(s(b,x))>m)return!0;return!1},c.filter=function(d,f){var p=[d[0]],m=0,g=0;function b(v){d.push(v);var h=p.length,y=m;p.splice(g+1);for(var w=y+1;w1&&b(d.pop()),{addPt:b,raw:d,filtered:p}}},45142:function(i,o,a){var s=a(92770),u=a(35791);i.exports=function(c){var d;if(typeof(d=c&&c.hasOwnProperty("userAgent")?c.userAgent:function(){var h;return typeof navigator<"u"&&(h=navigator.userAgent),h&&h.headers&&typeof h.headers["user-agent"]=="string"&&(h=h.headers["user-agent"]),h}())!="string")return!0;var f=u({ua:{headers:{"user-agent":d}},tablet:!0,featureDetect:!1});if(!f){for(var p=d.split(" "),m=1;m-1;g--){var b=p[g];if(b.substr(0,8)==="Version/"){var v=b.substr(8).split(".")[0];if(s(v)&&(v=+v),v>=13)return!0}}}return f}},75138:function(i){i.exports=function(o,a){if(a instanceof RegExp){for(var s=a.toString(),u=0;uu.queueLength&&(d.undoQueue.queue.shift(),d.undoQueue.index--))},startSequence:function(d){d.undoQueue=d.undoQueue||{index:0,queue:[],sequence:!1},d.undoQueue.sequence=!0,d.undoQueue.beginSequence=!0},stopSequence:function(d){d.undoQueue=d.undoQueue||{index:0,queue:[],sequence:!1},d.undoQueue.sequence=!1,d.undoQueue.beginSequence=!1},undo:function(d){var f,p;if(!(d.undoQueue===void 0||isNaN(d.undoQueue.index)||d.undoQueue.index<=0)){for(d.undoQueue.index--,f=d.undoQueue.queue[d.undoQueue.index],d.undoQueue.inSequence=!0,p=0;p=d.undoQueue.queue.length)){for(f=d.undoQueue.queue[d.undoQueue.index],d.undoQueue.inSequence=!0,p=0;ph}function b(v,h){return v>=h}o.findBin=function(v,h,y){if(s(h.start))return y?Math.ceil((v-h.start)/h.size-f)-1:Math.floor((v-h.start)/h.size+f);var w,_,x=0,T=h.length,k=0,S=T>1?(h[T-1]-h[0])/(T-1):1;for(_=S>=0?y?p:m:y?b:g,v+=S*f*(y?-1:1)*(S>=0?1:-1);x90&&u.log("Long binary search..."),x-1},o.sorterAsc=function(v,h){return v-h},o.sorterDes=function(v,h){return h-v},o.distinctVals=function(v){var h,y=v.slice();for(y.sort(o.sorterAsc),h=y.length-1;h>-1&&y[h]===d;h--);for(var w,_=y[h]-y[0]||1,x=_/(h||1)/1e4,T=[],k=0;k<=h;k++){var S=y[k],C=S-w;w===void 0?(T.push(S),w=S):C>x&&(_=Math.min(_,C),T.push(S),w=S)}return{vals:T,minDiff:_}},o.roundUp=function(v,h,y){for(var w,_=0,x=h.length-1,T=0,k=y?0:1,S=y?1:0,C=y?Math.ceil:Math.floor;_0&&(w=1),y&&w)return v.sort(h)}return w?v:v.reverse()},o.findIndexOfMin=function(v,h){h=h||c;for(var y,w=1/0,_=0;_f.length)&&(p=f.length),s(d)||(d=!1),u(f[0])){for(g=new Array(p),m=0;mc.length-1)return c[c.length-1];var f=d%1;return f*c[Math.ceil(d)]+(1-f)*c[Math.floor(d)]}},3883:function(i,o,a){var s=a(32396),u=a(91424),c=a(71828),d=null;i.exports=function(){if(d!==null)return d;d=!1;var f=c.isIE()||c.isSafari()||c.isIOS();if(window.navigator.userAgent&&!f){var p=Array.from(s.CSS_DECLARATIONS).reverse(),m=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof m=="function")d=p.some(function(v){return m.apply(null,v)});else{var g=u.tester.append("image").attr("style",s.STYLE),b=window.getComputedStyle(g.node()).imageRendering;d=p.some(function(v){var h=v[1];return b===h||b===h.toLowerCase()}),g.remove()}}return d}},63893:function(i,o,a){var s=a(39898),u=a(71828),c=u.strTranslate,d=a(77922),f=a(18783).LINE_SPACING,p=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;o.convertToTspans=function(N,R,q){var Y=N.text(),L=!N.attr("data-notex")&&R&&R._context.typesetMath&&typeof MathJax<"u"&&Y.match(p),W=s.select(N.node().parentNode);if(!W.empty()){var U=N.attr("class")?N.attr("class").split(" ")[0]:"text";return U+="-math",W.selectAll("svg."+U).remove(),W.selectAll("g."+U+"-group").remove(),N.style("display",null).attr({"data-unformatted":Y,"data-math":"N"}),L?(R&&R._promises||[]).push(new Promise(function(te){N.style("display","none");var ee=parseInt(N.node().style.fontSize,10),H={fontSize:ee};(function(Z,G,X){var Q,re,ae,ie,se=parseInt((MathJax.version||"").split(".")[0]);if(se===2||se===3){var he=function(){var Oe="math-output-"+u.randstr({},64),Pe=(ie=s.select("body").append("div").attr({id:Oe}).style({visibility:"hidden",position:"absolute","font-size":G.fontSize+"px"}).text(Z.replace(m,"\\lt ").replace(g,"\\gt "))).node();return se===2?MathJax.Hub.Typeset(Pe):MathJax.typeset([Pe])},Se=function(){var Oe=ie.select(se===2?".MathJax_SVG":".MathJax"),Pe=!Oe.empty()&&ie.select("svg").node();if(Pe){var Me,ce=Pe.getBoundingClientRect();Me=se===2?s.select("body").select("#MathJax_SVG_glyphs"):Oe.select("defs"),X(Oe,Me,ce)}else u.log("There was an error in the tex syntax.",Z),X();ie.remove()};se===2?MathJax.Hub.Queue(function(){return re=u.extendDeepAll({},MathJax.Hub.config),ae=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:b},displayAlign:"left"})},function(){if((Q=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},he,Se,function(){if(Q!=="SVG")return MathJax.Hub.setRenderer(Q)},function(){return ae!==void 0&&(MathJax.Hub.processSectionDelay=ae),MathJax.Hub.Config(re)}):se===3&&(re=u.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=b,(Q=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){he(),Se(),Q!=="svg"&&(MathJax.config.startup.output=Q),MathJax.config=re}))}else u.warn("No MathJax version:",MathJax.version)})(L[2],H,function(Z,G,X){W.selectAll("svg."+U).remove(),W.selectAll("g."+U+"-group").remove();var Q=Z&&Z.select("svg");if(!Q||!Q.node())return V(),void te();var re=W.append("g").classed(U+"-group",!0).attr({"pointer-events":"none","data-unformatted":Y,"data-math":"Y"});re.node().appendChild(Q.node()),G&&G.node()&&Q.node().insertBefore(G.node().cloneNode(!0),Q.node().firstChild);var ae=X.width,ie=X.height;Q.attr({class:U,height:ie,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=N.node().style.fill||"black",he=Q.select("g");he.attr({fill:se,stroke:se});var Se=he.node().getBoundingClientRect(),Oe=Se.width,Pe=Se.height;(Oe>ae||Pe>ie)&&(Q.style("overflow","hidden"),Oe=(Se=Q.node().getBoundingClientRect()).width,Pe=Se.height);var Me=+N.attr("x"),ce=+N.attr("y"),we=-(ee||N.node().getBoundingClientRect().height)/4;if(U[0]==="y")re.attr({transform:"rotate("+[-90,Me,ce]+")"+c(-Oe/2,we-Pe/2)});else if(U[0]==="l")ce=we-Pe/2;else if(U[0]==="a"&&U.indexOf("atitle")!==0)Me=0,ce=we;else{var K=N.attr("text-anchor");Me-=Oe*(K==="middle"?.5:K==="end"?1:0),ce=ce+we-Pe/2}Q.attr({x:Me,y:ce}),q&&q.call(N,re),te(re)})})):V(),N}function V(){W.empty()||(U=N.attr("class")+"-math",W.select("svg."+U).remove()),N.text("").style("white-space","pre");var te=function(ee,H){H=H.replace(x," ");var Z,G=!1,X=[],Q=-1;function re(){Q++;var ue=document.createElementNS(d.svg,"tspan");s.select(ue).attr({class:"line",dy:Q*f+"em"}),ee.appendChild(ue),Z=ue;var pe=X;if(X=[{node:ue}],pe.length>1)for(var xe=1;xe doesnt match end tag <"+ue+">. Pretending it did match.",H),Z=X[X.length-1].node}else u.log("Ignoring unexpected end tag .",H)}S.test(H)?re():(Z=ee,X=[{node:ee}]);for(var he=H.split(T),Se=0;Se|>|>)/g,b=[["$","$"],["\\(","\\)"]],v={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},h={sub:"0.3em",sup:"-0.6em"},y={sub:"-0.21em",sup:"0.42em"},w="​",_=["http:","https:","mailto:","",void 0,":"],x=o.NEWLINES=/(\r\n?|\n)/g,T=/(<[^<>]*>)/,k=/<(\/?)([^ >]*)(\s+(.*))?>/i,S=//i;o.BR_TAG_ALL=//gi;var C=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,M=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,O=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function P(N,R){if(!N)return null;var q=N.match(R),Y=q&&(q[3]||q[4]);return Y&&F(Y)}var E=/(^|;)\s*color:/;o.plainText=function(N,R){for(var q=(R=R||{}).len!==void 0&&R.len!==-1?R.len:1/0,Y=R.allowedTags!==void 0?R.allowedTags:["br"],L=N.split(T),W=[],U="",V=0,te=0;te3?W.push(ee.substr(0,X-3)+"..."):W.push(ee.substr(0,X));break}U=""}}return W.join("")};var I={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function F(N){return N.replace(A,function(R,q){return(q.charAt(0)==="#"?function(Y){if(!(Y>1114111)){var L=String.fromCodePoint;if(L)return L(Y);var W=String.fromCharCode;return Y<=65535?W(Y):W(55232+(Y>>10),Y%1024+56320)}}(q.charAt(1)==="x"?parseInt(q.substr(2),16):parseInt(q.substr(1),10)):I[q])||R})}function j(N){var R=encodeURI(decodeURI(N)),q=document.createElement("a"),Y=document.createElement("a");q.href=N,Y.href=R;var L=q.protocol,W=Y.protocol;return _.indexOf(L)!==-1&&_.indexOf(W)!==-1?R:""}function z(N,R,q){var Y,L,W,U=q.horizontalAlign,V=q.verticalAlign||"top",te=N.node().getBoundingClientRect(),ee=R.node().getBoundingClientRect();return L=V==="bottom"?function(){return te.bottom-Y.height}:V==="middle"?function(){return te.top+(te.height-Y.height)/2}:function(){return te.top},W=U==="right"?function(){return te.right-Y.width}:U==="center"?function(){return te.left+(te.width-Y.width)/2}:function(){return te.left},function(){Y=this.node().getBoundingClientRect();var H=W()-ee.left,Z=L()-ee.top,G=q.gd||{};if(q.gd){G._fullLayout._calcInverseTransform(G);var X=u.apply3DTransform(G._fullLayout._invTransform)(H,Z);H=X[0],Z=X[1]}return this.style({top:Z+"px",left:H+"px","z-index":1e3}),this}}o.convertEntities=F,o.sanitizeHTML=function(N){N=N.replace(x," ");for(var R=document.createElement("p"),q=R,Y=[],L=N.split(T),W=0;Wf.ts+c?g():f.timer=setTimeout(function(){g(),f.timer=null},c)},o.done=function(u){var c=a[u];return c&&c.timer?new Promise(function(d){var f=c.onDone;c.onDone=function(){f&&f(),d(),c.onDone=null}}):Promise.resolve()},o.clear=function(u){if(u)s(a[u]),delete a[u];else for(var c in a)o.clear(c)}},58163:function(i,o,a){var s=a(92770);i.exports=function(u,c){if(u>0)return Math.log(u)/Math.LN10;var d=Math.log(Math.min(c[0],c[1]))/Math.LN10;return s(d)||(d=Math.log(Math.max(c[0],c[1]))/Math.LN10-6),d}},37815:function(i){i.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(i){i.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(i,o,a){var s=a(73972);i.exports=function(u){for(var c,d,f=s.layoutArrayContainers,p=s.layoutArrayRegexes,m=u.split("[")[0],g=0;g0&&d.log("Clearing previous rejected promises from queue."),M._promises=[]},o.cleanLayout=function(M){var O,D;M||(M={}),M.xaxis1&&(M.xaxis||(M.xaxis=M.xaxis1),delete M.xaxis1),M.yaxis1&&(M.yaxis||(M.yaxis=M.yaxis1),delete M.yaxis1),M.scene1&&(M.scene||(M.scene=M.scene1),delete M.scene1);var P=(f.subplotsRegistry.cartesian||{}).attrRegex,E=(f.subplotsRegistry.polar||{}).attrRegex,I=(f.subplotsRegistry.ternary||{}).attrRegex,A=(f.subplotsRegistry.gl3d||{}).attrRegex,F=Object.keys(M);for(O=0;O3?(X.x=1.02,X.xanchor="left"):X.x<-2&&(X.x=-.02,X.xanchor="right"),X.y>3?(X.y=1.02,X.yanchor="bottom"):X.y<-2&&(X.y=-.02,X.yanchor="top")),y(M),M.dragmode==="rotate"&&(M.dragmode="orbit"),m.clean(M),M.template&&M.template.layout&&o.cleanLayout(M.template.layout),M},o.cleanData=function(M){for(var O=0;O0)return M.substr(0,O)}o.hasParent=function(M,O){for(var D=S(O);D;){if(D in M)return!0;D=S(D)}return!1};var C=["x","y","z"];o.clearAxisTypes=function(M,O,D){for(var P=0;P1&&c.warn("Full array edits are incompatible with other edits",w);var M=v[""][""];if(m(M))b.set(null);else{if(!Array.isArray(M))return c.warn("Unrecognized full array edit value",w,M),!0;b.set(M)}return!k&&(_(S,C),x(g),!0)}var O,D,P,E,I,A,F,j,z=Object.keys(v).map(Number).sort(d),B=b.get(),N=B||[],R=y(C,w).get(),q=[],Y=-1,L=N.length;for(O=0;ON.length-(F?0:1))c.warn("index out of range",w,P);else if(A!==void 0)I.length>1&&c.warn("Insertion & removal are incompatible with edits to the same index.",w,P),m(A)?q.push(P):F?(A==="add"&&(A={}),N.splice(P,0,A),R&&R.splice(P,0,{})):c.warn("Unrecognized full object edit value",w,P,A),Y===-1&&(Y=P);else for(D=0;D=0;O--)N.splice(q[O],1),R&&R.splice(q[O],1);if(N.length?B||b.set(N):b.set(null),k)return!1;if(_(S,C),T!==u){var W;if(Y===-1)W=z;else{for(L=Math.max(N.length,L),W=[],O=0;O=Y);O++)W.push(P);for(O=Y;O=ue.data.length||Te<-ue.data.length)throw new Error(xe+" must be valid indices for gd.data.");if(pe.indexOf(Te,ye+1)>-1||Te>=0&&pe.indexOf(-ue.data.length+Te)>-1||Te<0&&pe.indexOf(ue.data.length+Te)>-1)throw new Error("each index in "+xe+" must be unique.")}}function R(ue,pe,xe){if(!Array.isArray(ue.data))throw new Error("gd.data must be an array.");if(pe===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(pe)||(pe=[pe]),N(ue,pe,"currentIndices"),xe===void 0||Array.isArray(xe)||(xe=[xe]),xe!==void 0&&N(ue,xe,"newIndices"),xe!==void 0&&pe.length!==xe.length)throw new Error("current and new indices must be of equal length.")}function q(ue,pe,xe,ye,Te){(function(qe,Xe,ot,st){var dt=d.isPlainObject(st);if(!Array.isArray(qe.data))throw new Error("gd.data must be an array");if(!d.isPlainObject(Xe))throw new Error("update must be a key:value object");if(ot===void 0)throw new Error("indices must be an integer or array of integers");for(var vt in N(qe,ot,"indices"),Xe){if(!Array.isArray(Xe[vt])||Xe[vt].length!==ot.length)throw new Error("attribute "+vt+" must be an array of length equal to indices array length");if(dt&&(!(vt in st)||!Array.isArray(st[vt])||st[vt].length!==Xe[vt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ue,pe,xe,ye);for(var Ae=function(qe,Xe,ot,st){var dt,vt,We,ze,tt,it=d.isPlainObject(st),St=[];for(var Ze in Array.isArray(ot)||(ot=[ot]),ot=B(ot,qe.data.length-1),Xe)for(var ut=0;ut-1&&xe.indexOf("grouptitlefont")===-1?Le(xe,xe.replace("titlefont","title.font")):xe.indexOf("titleposition")>-1?Le(xe,xe.replace("titleposition","title.position")):xe.indexOf("titleside")>-1?Le(xe,xe.replace("titleside","title.side")):xe.indexOf("titleoffset")>-1&&Le(xe,xe.replace("titleoffset","title.offset")):Le(xe,xe.replace("title","title.text"));function Le($e,Fe){ue[Fe]=ue[$e],delete ue[$e]}}function H(ue,pe,xe){ue=d.getGraphDiv(ue),O.clearPromiseQueue(ue);var ye={};if(typeof pe=="string")ye[pe]=xe;else{if(!d.isPlainObject(pe))return d.warn("Relayout fail.",pe,xe),Promise.reject();ye=d.extendFlat({},pe)}Object.keys(ye).length&&(ue.changed=!0);var Te=ae(ue,ye),Ae=Te.flags;Ae.calc&&(ue.calcdata=void 0);var Re=[v.previousPromises];Ae.layoutReplot?Re.push(D.layoutReplot):Object.keys(ye).length&&(Z(ue,Ae,Te)||v.supplyDefaults(ue),Ae.legend&&Re.push(D.doLegend),Ae.layoutstyle&&Re.push(D.layoutStyles),Ae.axrange&&G(Re,Te.rangesAltered),Ae.ticks&&Re.push(D.doTicksRelayout),Ae.modebar&&Re.push(D.doModeBar),Ae.camera&&Re.push(D.doCamera),Ae.colorbars&&Re.push(D.doColorBars),Re.push(A)),Re.push(v.rehover,v.redrag,v.reselect),m.add(ue,H,[ue,Te.undoit],H,[ue,Te.redoit]);var Le=d.syncOrAsync(Re,ue);return Le&&Le.then||(Le=Promise.resolve(ue)),Le.then(function(){return ue.emit("plotly_relayout",Te.eventData),ue})}function Z(ue,pe,xe){var ye,Te,Ae=ue._fullLayout;if(!pe.axrange)return!1;for(var Re in pe)if(Re!=="axrange"&&pe[Re])return!1;var Le=function(Xe,ot){return d.coerce(ye,Te,w,Xe,ot)},$e={};for(var Fe in xe.rangesAltered){var Be=h.id2name(Fe);if(ye=ue.layout[Be],Te=Ae[Be],y(ye,Te,Le,$e),Te._matchGroup){for(var Ue in Te._matchGroup)if(Ue!==Fe){var qe=Ae[h.id2name(Ue)];qe.autorange=Te.autorange,qe.range=Te.range.slice(),qe._input.range=Te.range.slice()}}}return!0}function G(ue,pe){var xe=pe?function(ye){var Te=[];for(var Ae in pe){var Re=h.getFromId(ye,Ae);if(Te.push(Ae),(Re.ticklabelposition||"").indexOf("inside")!==-1&&Re._anchorAxis&&Te.push(Re._anchorAxis._id),Re._matchGroup)for(var Le in Re._matchGroup)pe[Le]||Te.push(Le)}return h.draw(ye,Te,{skipTitle:!0})}:function(ye){return h.draw(ye,"redraw")};ue.push(S,D.doAutoRangeAndConstraints,xe,D.drawData,D.finalDraw)}var X=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Q=/^[xyz]axis[0-9]*\.autorange$/,re=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ae(ue,pe){var xe,ye,Te,Ae=ue.layout,Re=ue._fullLayout,Le=Re._guiEditing,$e=U(Re._preGUI,Le),Fe=Object.keys(pe),Be=h.list(ue),Ue=d.extendDeepAll({},pe),qe={};for(ee(pe),Fe=Object.keys(pe),ye=0;ye0&&typeof ut.parts[Rt]!="string";)Rt--;var Ct=ut.parts[Rt],Wt=ut.parts[Rt-1]+"."+Ct,_t=ut.parts.slice(0,Rt).join("."),be=f(ue.layout,_t).get(),Ce=f(Re,_t).get(),Ge=ut.get();if(ht!==void 0){vt[Ze]=ht,We[Ze]=Ct==="reverse"?ht:W(Ge);var He=b.getLayoutValObject(Re,ut.parts);if(He&&He.impliedEdits&&ht!==null)for(var et in He.impliedEdits)ze(d.relativeAttr(Ze,et),He.impliedEdits[et]);if(["width","height"].indexOf(Ze)!==-1)if(ht){ze("autosize",null);var Ke=Ze==="height"?"width":"height";ze(Ke,Re[Ke])}else Re[Ze]=ue._initialAutoSize[Ze];else if(Ze==="autosize")ze("width",ht?null:Re.width),ze("height",ht?null:Re.height);else if(Wt.match(X))St(Wt),f(Re,_t+"._inputRange").set(null);else if(Wt.match(Q)){St(Wt),f(Re,_t+"._inputRange").set(null);var Ye=f(Re,_t).get();Ye._inputDomain&&(Ye._input.domain=Ye._inputDomain.slice())}else Wt.match(re)&&f(Re,_t+"._inputDomain").set(null);if(Ct==="type"){tt=be;var nt=Ce.type==="linear"&&ht==="log",ct=Ce.type==="log"&&ht==="linear";if(nt||ct){if(tt&&tt.range)if(Ce.autorange)nt&&(tt.range=tt.range[1]>tt.range[0]?[1,2]:[2,1]);else{var yt=tt.range[0],rt=tt.range[1];nt?(yt<=0&&rt<=0&&ze(_t+".autorange",!0),yt<=0?yt=rt/1e6:rt<=0&&(rt=yt/1e6),ze(_t+".range[0]",Math.log(yt)/Math.LN10),ze(_t+".range[1]",Math.log(rt)/Math.LN10)):(ze(_t+".range[0]",Math.pow(10,yt)),ze(_t+".range[1]",Math.pow(10,rt)))}else ze(_t+".autorange",!0);Array.isArray(Re._subplots.polar)&&Re._subplots.polar.length&&Re[ut.parts[0]]&&ut.parts[1]==="radialaxis"&&delete Re[ut.parts[0]]._subplot.viewInitial["radialaxis.range"],g.getComponentMethod("annotations","convertCoords")(ue,Ce,ht,ze),g.getComponentMethod("images","convertCoords")(ue,Ce,ht,ze)}else ze(_t+".autorange",!0),ze(_t+".range",null);f(Re,_t+"._inputRange").set(null)}else if(Ct.match(E)){var Ft=f(Re,Ze).get(),Yt=(ht||{}).type;Yt&&Yt!=="-"||(Yt="linear"),g.getComponentMethod("annotations","convertCoords")(ue,Ft,Yt,ze),g.getComponentMethod("images","convertCoords")(ue,Ft,Yt,ze)}var Mt=M.containerArrayMatch(Ze);if(Mt){xe=Mt.array,ye=Mt.index;var jt=Mt.property,Lt=He||{editType:"calc"};ye!==""&&jt===""&&(M.isAddVal(ht)?We[Ze]=null:M.isRemoveVal(ht)?We[Ze]=(f(Ae,xe).get()||[])[ye]:d.warn("unrecognized full object value",pe)),P.update(dt,Lt),qe[xe]||(qe[xe]={});var gt=qe[xe][ye];gt||(gt=qe[xe][ye]={}),gt[jt]=ht,delete pe[Ze]}else Ct==="reverse"?(be.range?be.range.reverse():(ze(_t+".autorange",!0),be.range=[1,0]),Ce.autorange?dt.calc=!0:dt.plot=!0):(Ze==="dragmode"&&(ht===!1&&Ge!==!1||ht!==!1&&Ge===!1)||Re._has("scatter-like")&&Re._has("regl")&&Ze==="dragmode"&&(ht==="lasso"||ht==="select")&&Ge!=="lasso"&&Ge!=="select"||Re._has("gl2d")?dt.plot=!0:He?P.update(dt,He):dt.calc=!0,ut.set(ht))}}for(xe in qe)M.applyContainerArrayChanges(ue,$e(Ae,xe),qe[xe],dt,$e)||(dt.plot=!0);for(var mt in it){var xt=(tt=h.getFromId(ue,mt))&&tt._constraintGroup;if(xt)for(var Ut in dt.calc=!0,xt)it[Ut]||(h.getFromId(ue,Ut)._constraintShrinkable=!0)}(ie(ue)||pe.height||pe.width)&&(dt.plot=!0);var It=Re.shapes;for(ye=0;ye1;)if(ye.pop(),(xe=f(pe,ye.join(".")+".uirevision").get())!==void 0)return xe;return pe.uirevision}function ce(ue,pe){for(var xe=0;xe=Te.length?Te[0]:Te[Fe]:Te}function Le(Fe){return Array.isArray(Ae)?Fe>=Ae.length?Ae[0]:Ae[Fe]:Ae}function $e(Fe,Be){var Ue=0;return function(){if(Fe&&++Ue===Be)return Fe()}}return ye._frameWaitingCnt===void 0&&(ye._frameWaitingCnt=0),new Promise(function(Fe,Be){function Ue(){ue.emit("plotly_animating"),ye._lastFrameAt=-1/0,ye._timeToNext=0,ye._runningTransitions=0,ye._currentFrame=null;var Ze=function(){ye._animationRaf=window.requestAnimationFrame(Ze),Date.now()-ye._lastFrameAt>ye._timeToNext&&function(){ye._currentFrame&&ye._currentFrame.onComplete&&ye._currentFrame.onComplete();var ut=ye._currentFrame=ye._frameQueue.shift();if(ut){var ht=ut.name?ut.name.toString():null;ue._fullLayout._currentFrame=ht,ye._lastFrameAt=Date.now(),ye._timeToNext=ut.frameOpts.duration,v.transition(ue,ut.frame.data,ut.frame.layout,O.coerceTraceIndices(ue,ut.frame.traces),ut.frameOpts,ut.transitionOpts).then(function(){ut.onComplete&&ut.onComplete()}),ue.emit("plotly_animatingframe",{name:ht,frame:ut.frame,animation:{frame:ut.frameOpts,transition:ut.transitionOpts}})}else ue.emit("plotly_animated"),window.cancelAnimationFrame(ye._animationRaf),ye._animationRaf=null}()};Ze()}var qe,Xe,ot=0;function st(Ze){return Array.isArray(Te)?ot>=Te.length?Ze.transitionOpts=Te[ot]:Ze.transitionOpts=Te[0]:Ze.transitionOpts=Te,ot++,Ze}var dt=[],vt=pe==null,We=Array.isArray(pe);if(vt||We||!d.isPlainObject(pe)){if(vt||["string","number"].indexOf(typeof pe)!==-1)for(qe=0;qe0&&itit)&&St.push(Xe);dt=St}}dt.length>0?function(Ze){if(Ze.length!==0){for(var ut=0;ut=0;ye--)if(d.isPlainObject(pe[ye])){var qe=pe[ye].name,Xe=($e[qe]||Ue[qe]||{}).name,ot=pe[ye].name,st=$e[Xe]||Ue[Xe];Xe&&ot&&typeof ot=="number"&&st&&I<5&&(I++,d.warn('addFrames: overwriting frame "'+($e[Xe]||Ue[Xe]).name+'" with a frame whose name of type "number" also equates to "'+Xe+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),I===5&&d.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Ue[qe]={name:qe},Be.push({frame:v.supplyFrameDefaults(pe[ye]),index:xe&&xe[ye]!==void 0&&xe[ye]!==null?xe[ye]:Fe+ye})}Be.sort(function(Ze,ut){return Ze.index>ut.index?-1:Ze.index=0;ye--){if(typeof(Te=Be[ye].frame).name=="number"&&d.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Te.name)for(;$e[Te.name="frame "+ue._transitionData._counter++];);if($e[Te.name]){for(Ae=0;Ae=0;xe--)ye=pe[xe],Ae.push({type:"delete",index:ye}),Re.unshift({type:"insert",index:ye,value:Te[ye]});var Le=v.modifyFrames,$e=v.modifyFrames,Fe=[ue,Re],Be=[ue,Ae];return m&&m.add(ue,Le,Fe,$e,Be),v.modifyFrames(ue,Ae)},o.addTraces=function ue(pe,xe,ye){pe=d.getGraphDiv(pe);var Te,Ae,Re=[],Le=o.deleteTraces,$e=ue,Fe=[pe,Re],Be=[pe,xe];for(function(Ue,qe,Xe){var ot,st;if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(qe===void 0)throw new Error("traces must be defined.");for(Array.isArray(qe)||(qe=[qe]),ot=0;ot=0&&Be=0&&Be=z.length)return!1;if(E.dimensions===2){if(A++,I.length===A)return E;var B=I[A];if(!C(B))return!1;E=z[j][B]}else E=z[j]}else E=z}}return E}function C(E){return E===Math.round(E)&&E>=0}function M(){var E,I,A={};for(E in b(A,d),s.subplotsRegistry)if((I=s.subplotsRegistry[E]).layoutAttributes)if(Array.isArray(I.attr))for(var F=0;F=B.length)return!1;F=(A=(s.transformsRegistry[B[N].type]||{}).attributes)&&A[I[2]],z=3}else{var R=E._module;if(R||(R=(s.modules[E.type||c.type.dflt]||{})._module),!R)return!1;if(!(F=(A=R.attributes)&&A[j])){var q=R.basePlotModule;q&&q.attributes&&(F=q.attributes[j])}F||(F=c[j])}return S(F,I,z)},o.getLayoutValObject=function(E,I){var A=function(F,j){var z,B,N,R,q=F._basePlotModules;if(q){var Y;for(z=0;z=v&&(b._input||{})._templateitemname;y&&(h=v);var w,_=g+"["+h+"]";function x(){w={},y&&(w[_]={},w[_][c]=y)}function T(S,C){y?s.nestedProperty(w[_],S).set(C):w[_+"."+S]=C}function k(){var S=w;return x(),S}return x(),{modifyBase:function(S,C){w[S]=C},modifyItem:T,getUpdateObj:k,applyUpdate:function(S,C){S&&T(S,C);var M=k();for(var O in M)s.nestedProperty(m,O).set(M[O])}}}},61549:function(i,o,a){var s=a(39898),u=a(73972),c=a(74875),d=a(71828),f=a(63893),p=a(33306),m=a(7901),g=a(91424),b=a(92998),v=a(64168),h=a(89298),y=a(18783),w=a(99082),_=w.enforce,x=w.clean,T=a(71739).doAutoRange,k="start";function S(P,E,I){for(var A=0;A=P[1]||F[1]<=P[0])&&j[0]E[0])return!0}return!1}function C(P){var E,I,A,F,j,z,B=P._fullLayout,N=B._size,R=N.p,q=h.list(P,"",!0);if(B._paperdiv.style({width:P._context.responsive&&B.autosize&&!P._context._hasZeroWidth&&!P.layout.width?"100%":B.width+"px",height:P._context.responsive&&B.autosize&&!P._context._hasZeroHeight&&!P.layout.height?"100%":B.height+"px"}).selectAll(".main-svg").call(g.setSize,B.width,B.height),P._context.setBackground(P,B.paper_bgcolor),o.drawMainTitle(P),v.manage(P),!B._has("cartesian"))return c.previousPromises(P);function Y(Fe,Be,Ue){var qe=Fe._lw/2;return Fe._id.charAt(0)==="x"?Be?Ue==="top"?Be._offset-R-qe:Be._offset+Be._length+R+qe:N.t+N.h*(1-(Fe.position||0))+qe%1:Be?Ue==="right"?Be._offset+Be._length+R+qe:Be._offset-R-qe:N.l+N.w*(Fe.position||0)+qe%1}for(E=0;E.5?"t":"b",ee=Y._fullLayout.margin[te],H=0;return L.yref==="paper"?H=W+L.pad.t+L.pad.b:L.yref==="container"&&(H=function(Z,G,X,Q,re){var ae=0;return X==="middle"&&(ae+=re/2),Z==="t"?(X==="top"&&(ae+=re),ae+=Q-G*Q):(X==="bottom"&&(ae+=re),ae+=G*Q),ae}(te,U,V,Y._fullLayout.height,W)+L.pad.t+L.pad.b),H>ee?H:0}(P,I,R);q>0&&(function(Y,L,W,U){var V="title.automargin",te=Y._fullLayout.title,ee=te.y>.5?"t":"b",H={x:te.x,y:te.y,t:0,b:0},Z={};te.yref==="paper"&&function(G,X,Q,re,ae){var ie=X.yref==="paper"?G._fullLayout._size.h:G._fullLayout.height,se=d.isTopAnchor(X)?re:re-ae,he=Q==="b"?ie-se:se;return!(d.isTopAnchor(X)&&Q==="t"||d.isBottomAnchor(X)&&Q==="b")&&heN?D.push({code:"unused",traceType:A,templateCount:B,dataCount:N}):N>B&&D.push({code:"reused",traceType:A,templateCount:B,dataCount:N})}}else D.push({code:"data"});if(function R(q,Y){for(var L in q)if(L.charAt(0)!=="_"){var W=q[L],U=w(q,L,Y);u(W)?(Array.isArray(q)&&W._template===!1&&W.templateitemname&&D.push({code:"missing",path:U,templateitemname:W.templateitemname}),R(W,U)):Array.isArray(W)&&_(W)&&R(W,U)}}({data:E,layout:P},""),D.length)return D.map(x)}},403:function(i,o,a){var s=a(92770),u=a(72391),c=a(74875),d=a(71828),f=a(25095),p=a(5900),m=a(70942),g=a(11506).version,b={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};i.exports=function(v,h){var y,w,_,x;function T(N){return!(N in h)||d.validate(h[N],b[N])}if(h=h||{},d.isPlainObject(v)?(y=v.data||[],w=v.layout||{},_=v.config||{},x={}):(v=d.getGraphDiv(v),y=d.extendDeep([],v.data),w=d.extendDeep({},v.layout),_=v._context,x=v._fullLayout||{}),!T("width")&&h.width!==null||!T("height")&&h.height!==null)throw new Error("Height and width should be pixel values.");if(!T("format"))throw new Error("Export format is not "+d.join2(b.format.values,", "," or ")+".");var k={};function S(N,R){return d.coerce(h,k,b,N,R)}var C=S("format"),M=S("width"),O=S("height"),D=S("scale"),P=S("setBackground"),E=S("imageDataOnly"),I=document.createElement("div");I.style.position="absolute",I.style.left="-5000px",document.body.appendChild(I);var A=d.extendFlat({},w);M?A.width=M:h.width===null&&s(x.width)&&(A.width=x.width),O?A.height=O:h.height===null&&s(x.height)&&(A.height=x.height);var F=d.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:P}),j=f.getRedrawFunc(I);function z(){return new Promise(function(N){setTimeout(N,f.getDelay(I._fullLayout))})}function B(){return new Promise(function(N,R){var q=p(I,C,D),Y=I._fullLayout.width,L=I._fullLayout.height;function W(){u.purge(I),document.body.removeChild(I)}if(C==="full-json"){var U=c.graphJson(I,!1,"keepdata","object",!0,!0);return U.version=g,U=JSON.stringify(U),W(),N(E?U:f.encodeJSON(U))}if(W(),C==="svg")return N(E?q:f.encodeSVG(q));var V=document.createElement("canvas");V.id=d.randstr(),m({format:C,width:Y,height:L,scale:D,canvas:V,svg:q,promise:!0}).then(N).catch(R)})}return new Promise(function(N,R){u.newPlot(I,y,A,F).then(j).then(z).then(B).then(function(q){N(function(Y){return E?Y.replace(f.IMAGE_URL_PREFIX,""):Y}(q))}).catch(function(q){R(q)})})}},84936:function(i,o,a){var s=a(71828),u=a(74875),c=a(86281),d=a(72075).dfltConfig,f=s.isPlainObject,p=Array.isArray,m=s.isArrayOrTypedArray;function g(T,k,S,C,M,O){O=O||[];for(var D=Object.keys(T),P=0;PF.length&&C.push(h("unused",M,I.concat(F.length)));var q,Y,L,W,U,V=F.length,te=Array.isArray(R);if(te&&(V=Math.min(V,R.length)),j.dimensions===2)for(Y=0;YF[Y].length&&C.push(h("unused",M,I.concat(Y,F[Y].length)));var ee=F[Y].length;for(q=0;q<(te?Math.min(ee,R[Y].length):ee);q++)L=te?R[Y][q]:R,W=A[Y][q],U=F[Y][q],s.validate(W,L)?U!==W&&U!==+W&&C.push(h("dynamic",M,I.concat(Y,q),W,U)):C.push(h("value",M,I.concat(Y,q),W))}else C.push(h("array",M,I.concat(Y),A[Y]));else for(Y=0;Y1&&O.push(h("object","layout"))),u.supplyDefaults(D);for(var P=D._fullData,E=S.length,I=0;I0&&Math.round(w)===w))return{vals:b};h=w}for(var _=m.calendar,x=v==="start",T=v==="end",k=p[g+"period0"],S=c(k,_)||0,C=[],M=[],O=[],D=b.length,P=0;PF;)A=d(A,-h,_);for(;A<=F;)A=d(A,h,_);I=d(A,-h,_)}else{for(A=S+(E=Math.round((F-S)/y))*y;A>F;)A-=y;for(;A<=F;)A+=y;I=A-y}C[P]=x?I:T?A:(I+A)/2,M[P]=I,O[P]=A}return{vals:C,starts:M,ends:O}}},89502:function(i){i.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(i,o,a){var s=a(39898),u=a(92770),c=a(71828),d=a(50606).FP_SAFE,f=a(73972),p=a(91424),m=a(41675),g=m.getFromId,b=m.isLinked;function v(P,E){var I,A,F=[],j=P._fullLayout,z=y(j,E,0),B=y(j,E,1),N=_(P,E),R=N.min,q=N.max;if(R.length===0||q.length===0)return c.simpleMap(E.range,E.r2l);var Y=R[0].val,L=q[0].val;for(I=1;I0&&((G=ie-z(te)-B(ee))>se?X/G>he&&(H=te,Z=ee,he=X/G):X/ie>he&&(H={val:te.val,nopad:1},Z={val:ee.val,nopad:1},he=X/ie));if(Y===L){var Se=Y-1,Oe=Y+1;if(re)if(Y===0)F=[0,1];else{var Pe=(Y>0?q:R).reduce(function(ce,we){return Math.max(ce,B(we))},0),Me=Y/(1-Math.min(.5,Pe/ie));F=Y>0?[0,Me]:[Me,0]}else F=ae?[Math.max(0,Se),Math.max(1,Oe)]:[Se,Oe]}else re?(H.val>=0&&(H={val:0,nopad:1}),Z.val<=0&&(Z={val:0,nopad:1})):ae&&(H.val-he*z(H)<0&&(H={val:0,nopad:1}),Z.val<=0&&(Z={val:1,nopad:1})),he=(Z.val-H.val-h(E,te.val,ee.val))/(ie-z(H)-B(Z)),F=[H.val-he*z(H),Z.val+he*B(Z)];return F=D(F,E),E.limitRange&&E.limitRange(),U&&F.reverse(),c.simpleMap(F,E.l2r||Number)}function h(P,E,I){var A=0;if(P.rangebreaks)for(var F=P.locateBreaks(E,I),j=0;j0?I.ppadplus:I.ppadminus)||I.ppad||0),Q=G((P._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),re=G(I.vpadplus||I.vpad),ae=G(I.vpadminus||I.vpad);if(!H){if(q=1/0,Y=-1/0,ee)for(A=0;A0&&(q=F),F>Y&&F-d&&(q=F),F>Y&&F=he;A--)se(A);return{min:L,max:W,opts:I}},concatExtremes:_};var w=3;function _(P,E,I){var A,F,j,z=E._id,B=P._fullData,N=P._fullLayout,R=[],q=[];function Y(te,ee){for(A=0;A=I&&(R.extrapad||!z)){B=!1;break}F(E,R.val)&&R.pad<=I&&(z||!R.extrapad)&&(P.splice(N,1),N--)}if(B){var q=j&&E===0;P.push({val:E,pad:q?0:I,extrapad:!q&&z})}}function S(P){return u(P)&&Math.abs(P)=E}function O(P,E,I){return E===void 0||I===void 0||(E=P.d2l(E))=N&&(j=N,I=N),z<=N&&(z=N,A=N)}}return I=function(R,q){var Y=q.autorangeoptions;return Y&&Y.minallowed!==void 0&&O(q,Y.minallowed,Y.maxallowed)?Y.minallowed:Y&&Y.clipmin!==void 0&&O(q,Y.clipmin,Y.clipmax)?Math.max(R,q.d2l(Y.clipmin)):R}(I,E),A=function(R,q){var Y=q.autorangeoptions;return Y&&Y.maxallowed!==void 0&&O(q,Y.minallowed,Y.maxallowed)?Y.maxallowed:Y&&Y.clipmax!==void 0&&O(q,Y.clipmin,Y.clipmax)?Math.min(R,q.d2l(Y.clipmax)):R}(A,E),[I,A]}},23074:function(i){i.exports=function(o,a,s){var u,c;if(s){var d=a==="reversed"||a==="min reversed"||a==="max reversed";u=s[d?1:0],c=s[d?0:1]}var f=o("autorangeoptions.minallowed",c===null?u:void 0),p=o("autorangeoptions.maxallowed",u===null?c:void 0);f===void 0&&o("autorangeoptions.clipmin"),p===void 0&&o("autorangeoptions.clipmax"),o("autorangeoptions.include")}},89298:function(i,o,a){var s=a(39898),u=a(92770),c=a(74875),d=a(73972),f=a(71828),p=f.strTranslate,m=a(63893),g=a(92998),b=a(7901),v=a(91424),h=a(13838),y=a(66287),w=a(50606),_=w.ONEMAXYEAR,x=w.ONEAVGYEAR,T=w.ONEMINYEAR,k=w.ONEMAXQUARTER,S=w.ONEAVGQUARTER,C=w.ONEMINQUARTER,M=w.ONEMAXMONTH,O=w.ONEAVGMONTH,D=w.ONEMINMONTH,P=w.ONEWEEK,E=w.ONEDAY,I=E/2,A=w.ONEHOUR,F=w.ONEMIN,j=w.ONESEC,z=w.MINUS_SIGN,B=w.BADNUM,N={K:"zeroline"},R={K:"gridline",L:"path"},q={K:"minor-gridline",L:"path"},Y={K:"tick",L:"path"},L={K:"tick",L:"text"},W={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},U=a(18783),V=U.MID_SHIFT,te=U.CAP_SHIFT,ee=U.LINE_SPACING,H=U.OPPOSITE_SIDE,Z=i.exports={};Z.setConvert=a(21994);var G=a(4322),X=a(41675),Q=X.idSort,re=X.isLinked;Z.id2name=X.id2name,Z.name2id=X.name2id,Z.cleanId=X.cleanId,Z.list=X.list,Z.listIds=X.listIds,Z.getFromId=X.getFromId,Z.getFromTrace=X.getFromTrace;var ae=a(71739);Z.getAutoRange=ae.getAutoRange,Z.findExtremes=ae.findExtremes;var ie=1e-4;function se(be){var Ce=(be[1]-be[0])*ie;return[be[0]-Ce,be[1]+Ce]}Z.coerceRef=function(be,Ce,Ge,He,et,Ke){var Ye=He.charAt(He.length-1),nt=Ge._fullLayout._subplots[Ye+"axis"],ct=He+"ref",yt={};return et||(et=nt[0]||(typeof Ke=="string"?Ke:Ke[0])),Ke||(Ke=et),nt=nt.concat(nt.map(function(rt){return rt+" domain"})),yt[ct]={valType:"enumerated",values:nt.concat(Ke?typeof Ke=="string"?[Ke]:Ke:[]),dflt:et},f.coerce(be,Ce,yt,ct)},Z.getRefType=function(be){return be===void 0?be:be==="paper"?"paper":be==="pixel"?"pixel":/( domain)$/.test(be)?"domain":"range"},Z.coercePosition=function(be,Ce,Ge,He,et,Ke){var Ye,nt;if(Z.getRefType(He)!=="range")Ye=f.ensureNumber,nt=Ge(et,Ke);else{var ct=Z.getFromId(Ce,He);nt=Ge(et,Ke=ct.fraction2r(Ke)),Ye=ct.cleanPos}be[et]=Ye(nt)},Z.cleanPosition=function(be,Ce,Ge){return(Ge==="paper"||Ge==="pixel"?f.ensureNumber:Z.getFromId(Ce,Ge).cleanPos)(be)},Z.redrawComponents=function(be,Ce){Ce=Ce||Z.listIds(be);var Ge=be._fullLayout;function He(et,Ke,Ye,nt){for(var ct=d.getComponentMethod(et,Ke),yt={},rt=0;rtGe&&rt2e-6||((Ge-be._forceTick0)/be._minDtick%1+1.000001)%1>2e-6)&&(be._minDtick=0)):be._minDtick=0},Z.saveRangeInitial=function(be,Ce){for(var Ge=Z.list(be,"",!0),He=!1,et=0;et.3*Bt||Nt(Ut)||Nt(It))){var Xt=xt.dtick/2;gt+=gt+Xt.8){var kt=Number(xt.substr(1));zt.exactYears>.8&&kt%12==0?gt=Z.tickIncrement(gt,"M6","reverse")+1.5*E:zt.exactMonths>.8?gt=Z.tickIncrement(gt,"M1","reverse")+15.5*E:gt-=I;var Ot=Z.tickIncrement(gt,xt);if(Ot<=Ut)return Ot}return gt}(Lt,be,jt,nt,et)),Mt=Lt;Mt<=ct;)Mt=Z.tickIncrement(Mt,jt,!1,et);return{start:Ce.c2r(Lt,0,et),end:Ce.c2r(Mt,0,et),size:jt,_dataSpan:ct-nt}},Z.prepMinorTicks=function(be,Ce,Ge){if(!Ce.minor.dtick){delete be.dtick;var He,et=Ce.dtick&&u(Ce._tmin);if(et){var Ke=Z.tickIncrement(Ce._tmin,Ce.dtick,!0);He=[Ce._tmin,.99*Ke+.01*Ce._tmin]}else{var Ye=f.simpleMap(Ce.range,Ce.r2l);He=[Ye[0],.8*Ye[0]+.2*Ye[1]]}if(be.range=f.simpleMap(He,Ce.l2r),be._isMinor=!0,Z.prepTicks(be,Ge),et){var nt=u(Ce.dtick),ct=u(be.dtick),yt=nt?Ce.dtick:+Ce.dtick.substring(1),rt=ct?be.dtick:+be.dtick.substring(1);nt&&ct?Pe(yt,rt)?yt===2*P&&rt===2*E&&(be.dtick=P):yt===2*P&&rt===3*E?be.dtick=P:yt!==P||(Ce._input.minor||{}).nticks?Me(yt/rt,2.5)?be.dtick=yt/2:be.dtick=yt:be.dtick=E:String(Ce.dtick).charAt(0)==="M"?ct?be.dtick="M1":Pe(yt,rt)?yt>=12&&rt===2&&(be.dtick="M3"):be.dtick=Ce.dtick:String(be.dtick).charAt(0)==="L"?String(Ce.dtick).charAt(0)==="L"?Pe(yt,rt)||(be.dtick=Me(yt/rt,2.5)?Ce.dtick/2:Ce.dtick):be.dtick="D1":be.dtick==="D2"&&+Ce.dtick>1&&(be.dtick=1)}be.range=Ce.range}Ce.minor._tick0Init===void 0&&(be.tick0=Ce.tick0)},Z.prepTicks=function(be,Ce){var Ge=f.simpleMap(be.range,be.r2l,void 0,void 0,Ce);if(be.tickmode==="auto"||!be.dtick){var He,et=be.nticks;et||(be.type==="category"||be.type==="multicategory"?(He=be.tickfont?f.bigFont(be.tickfont.size||12):15,et=be._length/He):(He=be._id.charAt(0)==="y"?40:80,et=f.constrain(be._length/He,4,9)+1),be._name==="radialaxis"&&(et*=2)),be.minor&&be.minor.tickmode!=="array"||be.tickmode==="array"&&(et*=100),be._roughDTick=Math.abs(Ge[1]-Ge[0])/et,Z.autoTicks(be,be._roughDTick),be._minDtick>0&&be.dtick<2*be._minDtick&&(be.dtick=be._minDtick,be.tick0=be.l2r(be._forceTick0))}be.ticklabelmode==="period"&&function(Ke){var Ye;function nt(){return!(u(Ke.dtick)||Ke.dtick.charAt(0)!=="M")}var ct=nt(),yt=Z.getTickFormat(Ke);if(yt){var rt=Ke._dtickInit!==Ke.dtick;/%[fLQsSMX]/.test(yt)||(/%[HI]/.test(yt)?(Ye=A,rt&&!ct&&Ke.dtick=(mt?0:1);xt--){var Ut=!xt;xt?(be._dtickInit=be.dtick,be._tick0Init=be.tick0):(be.minor._dtickInit=be.minor.dtick,be.minor._tick0Init=be.minor.tick0);var It=xt?be:f.extendFlat({},be,be.minor);if(Ut?Z.prepMinorTicks(It,be,Ce):Z.prepTicks(It,Ce),It.tickmode!=="array")if(It.tickmode!=="sync"){var zt=se(ct),kt=zt[0],Ot=zt[1],At=u(It.dtick),Nt=et==="log"&&!(At||It.dtick.charAt(0)==="L"),$t=Z.tickFirst(It,Ce);if(xt){if(be._tmin=$t,$t=Ot:qt<=Ot;qt=Z.tickIncrement(qt,Ht,yt,Ke)){if(xt&&Bt++,It.rangebreaks&&!yt){if(qt=Ft)break}if(Lt.length>Yt||qt===Zt)break;Zt=qt;var sn={value:qt};xt?(Nt&&qt!==(0|qt)&&(sn.simpleLabel=!0),Ye>1&&Bt%Ye&&(sn.skipLabel=!0),Lt.push(sn)):(sn.minor=!0,gt.push(sn))}}else Lt=[],Mt=K(be);else xt?(Lt=[],Mt=ne(be)):(gt=[],jt=ne(be))}if(mt&&!(be.minor.ticks==="inside"&&be.ticks==="outside"||be.minor.ticks==="outside"&&be.ticks==="inside")){for(var xn=Lt.map(function(Tr){return Tr.value}),mn=[],dn=0;dn0?(Ga=Cr-1,jn=Cr):(Ga=Cr,jn=Cr);var fn,Xn=Tr[Ga].value,ea=Tr[jn].value,Un=Math.abs(ea-Xn),Kn=Jr||Un,Yn=0;Kn>=T?Yn=Un>=T&&Un<=_?Un:x:Jr===S&&Kn>=C?Yn=Un>=C&&Un<=k?Un:S:Kn>=D?Yn=Un>=D&&Un<=M?Un:O:Jr===P&&Kn>=P?Yn=P:Kn>=E?Yn=E:Jr===I&&Kn>=I?Yn=I:Jr===A&&Kn>=A&&(Yn=A),Yn>=Un&&(Yn=Un,fn=!0);var er=Gr+Yn;if(Ki.rangebreaks&&Yn>0){for(var la=0,Wr=0;Wr<84;Wr++){var Yr=(Wr+.5)/84;Ki.maskBreaks(Gr*(1-Yr)+Yr*er)!==B&&la++}(Yn*=la/84)||(Tr[Cr].drop=!0),fn&&Un>P&&(Yn=Un)}(Yn>0||Cr===0)&&(Tr[Cr].periodX=Gr+Yn/2)}}(Lt,be,be._definedDelta),be.rangebreaks){var tn=be._id.charAt(0)==="y",Fn=1;be.tickmode==="auto"&&(Fn=be.tickfont?be.tickfont.size:12);var Rn=NaN;for(Ge=Lt.length-1;Ge>-1;Ge--)if(Lt[Ge].drop)Lt.splice(Ge,1);else{Lt[Ge].value=Rt(Lt[Ge].value,be);var Bn=be.c2p(Lt[Ge].value);(tn?Rn>Bn-Fn:RnFt||WnFt&&(En.periodX=Ft),Wn10||He.substr(5)!=="01-01"?be._tickround="d":be._tickround=+Ce.substr(1)%12==0?"y":"m";else if(Ce>=E&&et<=10||Ce>=15*E)be._tickround="d";else if(Ce>=F&&et<=16||Ce>=A)be._tickround="M";else if(Ce>=j&&et<=19||Ce>=F)be._tickround="S";else{var Ke=be.l2r(Ge+Ce).replace(/^-/,"").length;be._tickround=Math.max(et,Ke)-20,be._tickround<0&&(be._tickround=4)}}else if(u(Ce)||Ce.charAt(0)==="L"){var Ye=be.range.map(be.r2d||Number);u(Ce)||(Ce=Number(Ce.substr(1))),be._tickround=2-Math.floor(Math.log(Ce)/Math.LN10+.01);var nt=Math.max(Math.abs(Ye[0]),Math.abs(Ye[1])),ct=Math.floor(Math.log(nt)/Math.LN10+.01),yt=be.minexponent===void 0?3:be.minexponent;Math.abs(ct)>yt&&(Fe(be.exponentformat)&&!Be(ct)?be._tickexponent=3*Math.round((ct-1)/3):be._tickexponent=ct)}else be._tickround=null}function Le(be,Ce,Ge){var He=be.tickfont||{};return{x:Ce,dx:0,dy:0,text:Ge||"",fontSize:He.size,font:He.family,fontColor:He.color}}Z.autoTicks=function(be,Ce,Ge){var He;function et(Ft){return Math.pow(Ft,Math.floor(Math.log(Ce)/Math.LN10))}if(be.type==="date"){be.tick0=f.dateTick0(be.calendar,0);var Ke=2*Ce;if(Ke>x)Ce/=x,He=et(10),be.dtick="M"+12*Ae(Ce,He,de);else if(Ke>O)Ce/=O,be.dtick="M"+Ae(Ce,1,_e);else if(Ke>E){if(be.dtick=Ae(Ce,E,be._hasDayOfWeekBreaks?[1,2,7,14]:pe),!Ge){var Ye=Z.getTickFormat(be),nt=be.ticklabelmode==="period";nt&&(be._rawTick0=be.tick0),/%[uVW]/.test(Ye)?be.tick0=f.dateTick0(be.calendar,2):be.tick0=f.dateTick0(be.calendar,1),nt&&(be._dowTick0=be.tick0)}}else Ke>A?be.dtick=Ae(Ce,A,_e):Ke>F?be.dtick=Ae(Ce,F,ue):Ke>j?be.dtick=Ae(Ce,j,ue):(He=et(10),be.dtick=Ae(Ce,He,de))}else if(be.type==="log"){be.tick0=0;var ct=f.simpleMap(be.range,be.r2l);if(be._isMinor&&(Ce*=1.5),Ce>.7)be.dtick=Math.ceil(Ce);else if(Math.abs(ct[1]-ct[0])<1){var yt=1.5*Math.abs((ct[1]-ct[0])/Ce);Ce=Math.abs(Math.pow(10,ct[1])-Math.pow(10,ct[0]))/yt,He=et(10),be.dtick="L"+Ae(Ce,He,de)}else be.dtick=Ce>.3?"D2":"D1"}else be.type==="category"||be.type==="multicategory"?(be.tick0=0,be.dtick=Math.ceil(Math.max(Ce,1))):ht(be)?(be.tick0=0,He=1,be.dtick=Ae(Ce,He,Te)):(be.tick0=0,He=et(10),be.dtick=Ae(Ce,He,de));if(be.dtick===0&&(be.dtick=1),!u(be.dtick)&&typeof be.dtick!="string"){var rt=be.dtick;throw be.dtick=1,"ax.dtick error: "+String(rt)}},Z.tickIncrement=function(be,Ce,Ge,He){var et=Ge?-1:1;if(u(Ce))return f.increment(be,et*Ce);var Ke=Ce.charAt(0),Ye=et*Number(Ce.substr(1));if(Ke==="M")return f.incrementMonth(be,Ye,He);if(Ke==="L")return Math.log(Math.pow(10,be)+Ye)/Math.LN10;if(Ke==="D"){var nt=Ce==="D2"?ye:xe,ct=be+.01*et,yt=f.roundUp(f.mod(ct,1),nt,Ge);return Math.floor(ct)+Math.log(s.round(Math.pow(10,yt),1))/Math.LN10}throw"unrecognized dtick "+String(Ce)},Z.tickFirst=function(be,Ce){var Ge=be.r2l||Number,He=f.simpleMap(be.range,Ge,void 0,void 0,Ce),et=He[1] ")}else gt._prevDateHead=kt,Ot+="
"+kt;mt.text=Ot}(be,Ke,Ge,nt):ct==="log"?function(gt,mt,xt,Ut,It){var zt=gt.dtick,kt=mt.x,Ot=gt.tickformat,At=typeof zt=="string"&&zt.charAt(0);if(It==="never"&&(It=""),Ut&&At!=="L"&&(zt="L3",At="L"),Ot||At==="L")mt.text=Ue(Math.pow(10,kt),gt,It,Ut);else if(u(zt)||At==="D"&&f.mod(kt+.01,1)<.1){var Nt=Math.round(kt),$t=Math.abs(Nt),Bt=gt.exponentformat;Bt==="power"||Fe(Bt)&&Be(Nt)?(mt.text=Nt===0?1:Nt===1?"10":"10"+(Nt>1?"":z)+$t+"",mt.fontSize*=1.25):(Bt==="e"||Bt==="E")&&$t>2?mt.text="1"+Bt+(Nt>0?"+":z)+$t:(mt.text=Ue(Math.pow(10,kt),gt,"","fakehover"),zt==="D1"&>._id.charAt(0)==="y"&&(mt.dy-=mt.fontSize/6))}else{if(At!=="D")throw"unrecognized dtick "+String(zt);mt.text=String(Math.round(Math.pow(10,f.mod(kt,1)))),mt.fontSize*=.75}if(gt.dtick==="D1"){var Xt=String(mt.text).charAt(0);Xt!=="0"&&Xt!=="1"||(gt._id.charAt(0)==="y"?mt.dx-=mt.fontSize/4:(mt.dy+=mt.fontSize/2,mt.dx+=(gt.range[1]>gt.range[0]?1:-1)*mt.fontSize*(kt<0?.5:.25)))}}(be,Ke,0,nt,Mt):ct==="category"?function(gt,mt){var xt=gt._categories[Math.round(mt.x)];xt===void 0&&(xt=""),mt.text=String(xt)}(be,Ke):ct==="multicategory"?function(gt,mt,xt){var Ut=Math.round(mt.x),It=gt._categories[Ut]||[],zt=It[1]===void 0?"":String(It[1]),kt=It[0]===void 0?"":String(It[0]);xt?mt.text=kt+" - "+zt:(mt.text=zt,mt.text2=kt)}(be,Ke,Ge):ht(be)?function(gt,mt,xt,Ut,It){if(gt.thetaunit!=="radians"||xt)mt.text=Ue(mt.x,gt,It,Ut);else{var zt=mt.x/180;if(zt===0)mt.text="0";else{var kt=function(At){function Nt(Zt,qt){return Math.abs(Zt-qt)<=1e-6}var $t=function(Zt){for(var qt=1;!Nt(Math.round(Zt*qt)/qt,Zt);)qt*=10;return qt}(At),Bt=At*$t,Xt=Math.abs(function Zt(qt,Ht){return Nt(Ht,0)?qt:Zt(Ht,qt%Ht)}(Bt,$t));return[Math.round(Bt/Xt),Math.round($t/Xt)]}(zt);if(kt[1]>=100)mt.text=Ue(f.deg2rad(mt.x),gt,It,Ut);else{var Ot=mt.x<0;kt[1]===1?kt[0]===1?mt.text="π":mt.text=kt[0]+"π":mt.text=["",kt[0],"","⁄","",kt[1],"","π"].join(""),Ot&&(mt.text=z+mt.text)}}}}(be,Ke,Ge,nt,Mt):function(gt,mt,xt,Ut,It){It==="never"?It="":gt.showexponent==="all"&&Math.abs(mt.x/gt.dtick)<1e-6&&(It="hide"),mt.text=Ue(mt.x,gt,It,Ut)}(be,Ke,0,nt,Mt),He||(be.tickprefix&&!Yt(be.showtickprefix)&&(Ke.text=be.tickprefix+Ke.text),be.ticksuffix&&!Yt(be.showticksuffix)&&(Ke.text+=be.ticksuffix)),be.labelalias&&be.labelalias.hasOwnProperty(Ke.text)){var jt=be.labelalias[Ke.text];typeof jt=="string"&&(Ke.text=jt)}if(be.tickson==="boundaries"||be.showdividers){var Lt=function(gt){var mt=be.l2p(gt);return mt>=0&&mt<=be._length?gt:null};Ke.xbnd=[Lt(Ke.x-.5),Lt(Ke.x+be.dtick-.5)]}return Ke},Z.hoverLabelText=function(be,Ce,Ge){Ge&&(be=f.extendFlat({},be,{hoverformat:Ge}));var He=Array.isArray(Ce)?Ce[0]:Ce,et=Array.isArray(Ce)?Ce[1]:void 0;if(et!==void 0&&et!==He)return Z.hoverLabelText(be,He,Ge)+" - "+Z.hoverLabelText(be,et,Ge);var Ke=be.type==="log"&&He<=0,Ye=Z.tickText(be,be.c2l(Ke?-He:He),"hover").text;return Ke?He===0?"0":z+Ye:Ye};var $e=["f","p","n","μ","m","","k","M","G","T"];function Fe(be){return be==="SI"||be==="B"}function Be(be){return be>14||be<-15}function Ue(be,Ce,Ge,He){var et=be<0,Ke=Ce._tickround,Ye=Ge||Ce.exponentformat||"B",nt=Ce._tickexponent,ct=Z.getTickFormat(Ce),yt=Ce.separatethousands;if(He){var rt={exponentformat:Ye,minexponent:Ce.minexponent,dtick:Ce.showexponent==="none"?Ce.dtick:u(be)&&Math.abs(be)||1,range:Ce.showexponent==="none"?Ce.range.map(Ce.r2d):[0,be||1]};Re(rt),Ke=(Number(rt._tickround)||0)+4,nt=rt._tickexponent,Ce.hoverformat&&(ct=Ce.hoverformat)}if(ct)return Ce._numFormat(ct)(be).replace(/-/g,z);var Ft,Yt=Math.pow(10,-Ke)/2;if(Ye==="none"&&(nt=0),(be=Math.abs(be))"+Ft+"":Ye==="B"&&nt===9?be+="B":Fe(Ye)&&(be+=$e[nt/3+5])),et?z+be:be}function qe(be,Ce){if(be){var Ge=Object.keys(W).reduce(function(He,et){return Ce.indexOf(et)!==-1&&W[et].forEach(function(Ke){He[Ke]=1}),He},{});Object.keys(be).forEach(function(He){Ge[He]||(He.length===1?be[He]=0:delete be[He])})}}function Xe(be,Ce){for(var Ge=[],He={},et=0;et1&&Ge=et.min&&be=0,mt=rt(Yt,Mt[1])<=0;return(jt||gt)&&(Lt||mt)}if(be.tickformatstops&&be.tickformatstops.length>0)switch(be.type){case"date":case"linear":for(Ce=0;Ce=Ye(et)))){Ge=He;break}break;case"log":for(Ce=0;Ce=0&&et.unshift(et.splice(yt,1).shift())}});var Ye={false:{left:0,right:0}};return f.syncOrAsync(et.map(function(nt){return function(){if(nt){var ct=Z.getFromId(be,nt);Ge||(Ge={}),Ge.axShifts=Ye,Ge.overlayingShiftedAx=Ke;var yt=Z.drawOne(be,ct,Ge);return ct._shiftPusher&&_t(ct,ct._fullDepth||0,Ye,!0),ct._r=ct.range.slice(),ct._rl=f.simpleMap(ct._r,ct.r2l),yt}}}))},Z.drawOne=function(be,Ce,Ge){var He,et,Ke,Ye=(Ge=Ge||{}).axShifts||{},nt=Ge.overlayingShiftedAx||[];Ce.setScale();var ct=be._fullLayout,yt=Ce._id,rt=yt.charAt(0),Ft=Z.counterLetter(yt),Yt=ct._plots[Ce._mainSubplot];if(Yt){if(Ce._shiftPusher=Ce.autoshift||nt.indexOf(Ce._id)!==-1||nt.indexOf(Ce.overlaying)!==-1,Ce._shiftPusher&Ce.anchor==="free"){var Mt=Ce.linewidth/2||0;Ce.ticks==="inside"&&(Mt+=Ce.ticklen),_t(Ce,Mt,Ye,!0),_t(Ce,Ce.shift||0,Ye,!1)}Ge.skipTitle===!0&&Ce._shift!==void 0||(Ce._shift=function(jn,fn){return jn.autoshift?fn[jn.overlaying][jn.side]:jn.shift||0}(Ce,Ye));var jt=Yt[rt+"axislayer"],Lt=Ce._mainLinePosition,gt=Lt+=Ce._shift,mt=Ce._mainMirrorPosition,xt=Ce._vals=Z.calcTicks(Ce),Ut=[Ce.mirror,gt,mt].join("_");for(He=0;He0?jn.bottom-Yn:0,er))));var la=0,Wr=0;if(Ce._shiftPusher&&(la=Math.max(er,jn.height>0?Un==="l"?Yn-jn.left:jn.right-Yn:0),Ce.title.text!==ct._dfltTitle[rt]&&(Wr=(Ce._titleStandoff||0)+(Ce._titleScoot||0),Un==="l"&&(Wr+=dt(Ce))),Ce._fullDepth=Math.max(la,Wr)),Ce.automargin){fn={x:0,y:0,r:0,l:0,t:0,b:0};var Yr=[0,1],ii=typeof Ce._shift=="number"?Ce._shift:0;if(rt==="x"){if(Un==="b"?fn[Un]=Ce._depth:(fn[Un]=Ce._depth=Math.max(jn.width>0?Yn-jn.top:0,er),Yr.reverse()),jn.width>0){var ko=jn.right-(Ce._offset+Ce._length);ko>0&&(fn.xr=1,fn.r=ko);var Ya=Ce._offset-jn.left;Ya>0&&(fn.xl=0,fn.l=Ya)}}else if(Un==="l"?(Ce._depth=Math.max(jn.height>0?Yn-jn.left:0,er),fn[Un]=Ce._depth-ii):(Ce._depth=Math.max(jn.height>0?jn.right-Yn:0,er),fn[Un]=Ce._depth+ii,Yr.reverse()),jn.height>0){var Ln=jn.bottom-(Ce._offset+Ce._length);Ln>0&&(fn.yb=0,fn.b=Ln);var ta=Ce._offset-jn.top;ta>0&&(fn.yt=1,fn.t=ta)}fn[Ft]=Ce.anchor==="free"?Ce.position:Ce._anchorAxis.domain[Yr[0]],Ce.title.text!==ct._dfltTitle[rt]&&(fn[Un]+=dt(Ce)+(Ce.title.standoff||0)),Ce.mirror&&Ce.anchor!=="free"&&((Xn={x:0,y:0,r:0,l:0,t:0,b:0})[Kn]=Ce.linewidth,Ce.mirror&&Ce.mirror!==!0&&(Xn[Kn]+=er),Ce.mirror===!0||Ce.mirror==="ticks"?Xn[Ft]=Ce._anchorAxis.domain[Yr[1]]:Ce.mirror!=="all"&&Ce.mirror!=="allticks"||(Xn[Ft]=[Ce._counterDomainMin,Ce._counterDomainMax][Yr[1]]))}Gr&&(ea=d.getComponentMethod("rangeslider","autoMarginOpts")(be,Ce)),typeof Ce.automargin=="string"&&(qe(fn,Ce.automargin),qe(Xn,Ce.automargin)),c.autoMargin(be,ze(Ce),fn),c.autoMargin(be,tt(Ce),Xn),c.autoMargin(be,it(Ce),ea)}),f.syncOrAsync(Jr)}}function Ga(jn){var fn=yt+(jn||"tick");return It[fn]||(It[fn]=function(Xn,ea){var Un,Kn,Yn,er;return Xn._selections[ea].size()?(Un=1/0,Kn=-1/0,Yn=1/0,er=-1/0,Xn._selections[ea].each(function(){var la=We(this),Wr=v.bBox(la.node().parentNode);Un=Math.min(Un,Wr.top),Kn=Math.max(Kn,Wr.bottom),Yn=Math.min(Yn,Wr.left),er=Math.max(er,Wr.right)})):(Un=0,Kn=0,Yn=0,er=0),{top:Un,bottom:Kn,left:Yn,right:er,height:Kn-Un,width:er-Yn}}(Ce,fn)),It[fn]}},Z.getTickSigns=function(be,Ce){var Ge=be._id.charAt(0),He={x:"top",y:"right"}[Ge],et=be.side===He?1:-1,Ke=[-1,1,et,-et];return(Ce?(be.minor||{}).ticks:be.ticks)!=="inside"==(Ge==="x")&&(Ke=Ke.map(function(Ye){return-Ye})),be.side&&Ke.push({l:-1,t:-1,r:1,b:1}[be.side.charAt(0)]),Ke},Z.makeTransTickFn=function(be){return be._id.charAt(0)==="x"?function(Ce){return p(be._offset+be.l2p(Ce.x),0)}:function(Ce){return p(0,be._offset+be.l2p(Ce.x))}},Z.makeTransTickLabelFn=function(be){var Ce=function(et){var Ke=et.ticklabelposition||"",Ye=function(mt){return Ke.indexOf(mt)!==-1},nt=Ye("top"),ct=Ye("left"),yt=Ye("right"),rt=Ye("bottom"),Ft=Ye("inside"),Yt=rt||ct||nt||yt;if(!Yt&&!Ft)return[0,0];var Mt=et.side,jt=Yt?(et.tickwidth||0)/2:0,Lt=3,gt=et.tickfont?et.tickfont.size:12;return(rt||nt)&&(jt+=gt*te,Lt+=(et.linewidth||0)/2),(ct||yt)&&(jt+=(et.linewidth||0)/2,Lt+=3),Ft&&Mt==="top"&&(Lt-=gt*(1-te)),(ct||nt)&&(jt=-jt),Mt!=="bottom"&&Mt!=="right"||(Lt=-Lt),[Yt?jt:0,Ft?Lt:0]}(be),Ge=Ce[0],He=Ce[1];return be._id.charAt(0)==="x"?function(et){return p(Ge+be._offset+be.l2p(ot(et)),He)}:function(et){return p(He,Ge+be._offset+be.l2p(ot(et)))}},Z.makeTickPath=function(be,Ce,Ge,He){He||(He={});var et=He.minor;if(et&&!be.minor)return"";var Ke=He.len!==void 0?He.len:et?be.minor.ticklen:be.ticklen,Ye=be._id.charAt(0),nt=(be.linewidth||1)/2;return Ye==="x"?"M0,"+(Ce+nt*Ge)+"v"+Ke*Ge:"M"+(Ce+nt*Ge)+",0h"+Ke*Ge},Z.makeLabelFns=function(be,Ce,Ge){var He=be.ticklabelposition||"",et=function(Bt){return He.indexOf(Bt)!==-1},Ke=et("top"),Ye=et("left"),nt=et("right"),ct=et("bottom")||Ye||Ke||nt,yt=et("inside"),rt=He==="inside"&&be.ticks==="inside"||!yt&&be.ticks==="outside"&&be.tickson!=="boundaries",Ft=0,Yt=0,Mt=rt?be.ticklen:0;if(yt?Mt*=-1:ct&&(Mt=0),rt&&(Ft+=Mt,Ge)){var jt=f.deg2rad(Ge);Ft=Mt*Math.cos(jt)+1,Yt=Mt*Math.sin(jt)}be.showticklabels&&(rt||be.showline)&&(Ft+=.2*be.tickfont.size);var Lt,gt,mt,xt,Ut,It={labelStandoff:Ft+=(be.linewidth||1)/2*(yt?-1:1),labelShift:Yt},zt=0,kt=be.side,Ot=be._id.charAt(0),At=be.tickangle;if(Ot==="x")xt=(Ut=!yt&&kt==="bottom"||yt&&kt==="top")?1:-1,yt&&(xt*=-1),Lt=Yt*xt,gt=Ce+Ft*xt,mt=Ut?1:-.2,Math.abs(At)===90&&(yt?mt+=V:mt=At===-90&&kt==="bottom"?te:At===90&&kt==="top"?V:.5,zt=V/2*(At/90)),It.xFn=function(Bt){return Bt.dx+Lt+zt*Bt.fontSize},It.yFn=function(Bt){return Bt.dy+gt+Bt.fontSize*mt},It.anchorFn=function(Bt,Xt){if(ct){if(Ye)return"end";if(nt)return"start"}return u(Xt)&&Xt!==0&&Xt!==180?Xt*xt<0!==yt?"end":"start":"middle"},It.heightFn=function(Bt,Xt,Zt){return Xt<-60||Xt>60?-.5*Zt:be.side==="top"!==yt?-Zt:0};else if(Ot==="y"){if(xt=(Ut=!yt&&kt==="left"||yt&&kt==="right")?1:-1,yt&&(xt*=-1),Lt=Ft,gt=Yt*xt,mt=0,yt||Math.abs(At)!==90||(mt=At===-90&&kt==="left"||At===90&&kt==="right"?te:.5),yt){var Nt=u(At)?+At:0;if(Nt!==0){var $t=f.deg2rad(Nt);zt=Math.abs(Math.sin($t))*te*xt,mt=0}}It.xFn=function(Bt){return Bt.dx+Ce-(Lt+Bt.fontSize*mt)*xt+zt*Bt.fontSize},It.yFn=function(Bt){return Bt.dy+gt+Bt.fontSize*V},It.anchorFn=function(Bt,Xt){return u(Xt)&&Math.abs(Xt)===90?"middle":Ut?"end":"start"},It.heightFn=function(Bt,Xt,Zt){return be.side==="right"&&(Xt*=-1),Xt<-30?-Zt:Xt<30?-.5*Zt:0}}return It},Z.drawTicks=function(be,Ce,Ge){Ge=Ge||{};var He=Ce._id+"tick",et=[].concat(Ce.minor&&Ce.minor.ticks?Ge.vals.filter(function(Ye){return Ye.minor&&!Ye.noTick}):[]).concat(Ce.ticks?Ge.vals.filter(function(Ye){return!Ye.minor&&!Ye.noTick}):[]),Ke=Ge.layer.selectAll("path."+He).data(et,st);Ke.exit().remove(),Ke.enter().append("path").classed(He,1).classed("ticks",1).classed("crisp",Ge.crisp!==!1).each(function(Ye){return b.stroke(s.select(this),Ye.minor?Ce.minor.tickcolor:Ce.tickcolor)}).style("stroke-width",function(Ye){return v.crispRound(be,Ye.minor?Ce.minor.tickwidth:Ce.tickwidth,1)+"px"}).attr("d",Ge.path).style("display",null),Wt(Ce,[Y]),Ke.attr("transform",Ge.transFn)},Z.drawGrid=function(be,Ce,Ge){if(Ge=Ge||{},Ce.tickmode!=="sync"){var He=Ce._id+"grid",et=Ce.minor&&Ce.minor.showgrid,Ke=et?Ge.vals.filter(function(mt){return mt.minor}):[],Ye=Ce.showgrid?Ge.vals.filter(function(mt){return!mt.minor}):[],nt=Ge.counterAxis;if(nt&&Z.shouldShowZeroLine(be,Ce,nt))for(var ct=Ce.tickmode==="array",yt=0;yt=0;jt--){var Lt=jt?Yt:Mt;if(Lt){var gt=Lt.selectAll("path."+He).data(jt?Ye:Ke,st);gt.exit().remove(),gt.enter().append("path").classed(He,1).classed("crisp",Ge.crisp!==!1),gt.attr("transform",Ge.transFn).attr("d",Ge.path).each(function(mt){return b.stroke(s.select(this),mt.minor?Ce.minor.gridcolor:Ce.gridcolor||"#ddd")}).style("stroke-dasharray",function(mt){return v.dashStyle(mt.minor?Ce.minor.griddash:Ce.griddash,mt.minor?Ce.minor.gridwidth:Ce.gridwidth)}).style("stroke-width",function(mt){return(mt.minor?Ft:Ce._gw)+"px"}).style("display",null),typeof Ge.path=="function"&>.attr("d",Ge.path)}}Wt(Ce,[R,q])}},Z.drawZeroLine=function(be,Ce,Ge){Ge=Ge||Ge;var He=Ce._id+"zl",et=Z.shouldShowZeroLine(be,Ce,Ge.counterAxis),Ke=Ge.layer.selectAll("path."+He).data(et?[{x:0,id:Ce._id}]:[]);Ke.exit().remove(),Ke.enter().append("path").classed(He,1).classed("zl",1).classed("crisp",Ge.crisp!==!1).each(function(){Ge.layer.selectAll("path").sort(function(Ye,nt){return Q(Ye.id,nt.id)})}),Ke.attr("transform",Ge.transFn).attr("d",Ge.path).call(b.stroke,Ce.zerolinecolor||b.defaultLine).style("stroke-width",v.crispRound(be,Ce.zerolinewidth,Ce._gw||1)+"px").style("display",null),Wt(Ce,[N])},Z.drawLabels=function(be,Ce,Ge){Ge=Ge||{};var He=be._fullLayout,et=Ce._id,Ke=et.charAt(0),Ye=Ge.cls||et+"tick",nt=Ge.vals.filter(function(xt){return xt.text}),ct=Ge.labelFns,yt=Ge.secondary?0:Ce.tickangle,rt=(Ce._prevTickAngles||{})[Ye],Ft=Ge.layer.selectAll("g."+Ye).data(Ce.showticklabels?nt:[],st),Yt=[];function Mt(xt,Ut){xt.each(function(It){var zt=s.select(this),kt=zt.select(".text-math-group"),Ot=ct.anchorFn(It,Ut),At=Ge.transFn.call(zt.node(),It)+(u(Ut)&&+Ut!=0?" rotate("+Ut+","+ct.xFn(It)+","+(ct.yFn(It)-It.fontSize/2)+")":""),Nt=m.lineCount(zt),$t=ee*It.fontSize,Bt=ct.heightFn(It,u(Ut)?+Ut:0,(Nt-1)*$t);if(Bt&&(At+=p(0,Bt)),kt.empty()){var Xt=zt.select("text");Xt.attr({transform:At,"text-anchor":Ot}),Xt.style("opacity",1),Ce._adjustTickLabelsOverflow&&Ce._adjustTickLabelsOverflow()}else{var Zt=v.bBox(kt.node()).width*{end:-.5,start:.5}[Ot];kt.attr("transform",At+p(Zt,0))}})}Ft.enter().append("g").classed(Ye,1).append("text").attr("text-anchor","middle").each(function(xt){var Ut=s.select(this),It=be._promises.length;Ut.call(m.positionText,ct.xFn(xt),ct.yFn(xt)).call(v.font,xt.font,xt.fontSize,xt.fontColor).text(xt.text).call(m.convertToTspans,be),be._promises[It]?Yt.push(be._promises.pop().then(function(){Mt(Ut,yt)})):Mt(Ut,yt)}),Wt(Ce,[L]),Ft.exit().remove(),Ge.repositionOnUpdate&&Ft.each(function(xt){s.select(this).select("text").call(m.positionText,ct.xFn(xt),ct.yFn(xt))}),Ce._adjustTickLabelsOverflow=function(){var xt=Ce.ticklabeloverflow;if(xt&&xt!=="allow"){var Ut=xt.indexOf("hide")!==-1,It=Ce._id.charAt(0)==="x",zt=0,kt=It?be._fullLayout.width:be._fullLayout.height;if(xt.indexOf("domain")!==-1){var Ot=f.simpleMap(Ce.range,Ce.r2l);zt=Ce.l2p(Ot[0])+Ce._offset,kt=Ce.l2p(Ot[1])+Ce._offset}var At=Math.min(zt,kt),Nt=Math.max(zt,kt),$t=Ce.side,Bt=1/0,Xt=-1/0;for(var Zt in Ft.each(function(sn){var xn=s.select(this);if(xn.select(".text-math-group").empty()){var mn=v.bBox(xn.node()),dn=0;It?(mn.right>Nt||mn.leftNt||mn.top+(Ce.tickangle?0:sn.fontSize/4)Ce["_visibleLabelMin_"+Ot._id]?Ht.style("display","none"):Nt.K!=="tick"||At||Ht.style("display",null)})})})})},Mt(Ft,rt+1?rt:yt);var jt=null;Ce._selections&&(Ce._selections[Ye]=Ft);var Lt=[function(){return Yt.length&&Promise.all(Yt)}];Ce.automargin&&He._redrawFromAutoMarginCount&&rt===90?(jt=90,Lt.push(function(){Mt(Ft,rt)})):Lt.push(function(){if(Mt(Ft,yt),nt.length&&Ke==="x"&&!u(yt)&&(Ce.type!=="log"||String(Ce.dtick).charAt(0)!=="D")){jt=0;var xt,Ut=0,It=[];if(Ft.each(function(xn){Ut=Math.max(Ut,xn.fontSize);var mn=Ce.l2p(xn.x),dn=We(this),gn=v.bBox(dn.node());It.push({top:0,bottom:10,height:10,left:mn-gn.width/2,right:mn+gn.width/2+2,width:gn.width+2})}),Ce.tickson!=="boundaries"&&!Ce.showdividers||Ge.secondary){var zt=nt.length,kt=Math.abs((nt[zt-1].x-nt[0].x)*Ce._m)/(zt-1),Ot=Ce.ticklabelposition||"",At=function(xn){return Ot.indexOf(xn)!==-1},Nt=At("top"),$t=At("left"),Bt=At("right"),Xt=At("bottom")||$t||Nt||Bt?(Ce.tickwidth||0)+6:0,Zt=kt<2.5*Ut||Ce.type==="multicategory"||Ce._name==="realaxis";for(xt=0;xt1)for(nt=1;nt2*E}(w,h))return"date";var S=y.autotypenumbers!=="strict";return function(C,M){for(var O=C.length,D=b(O),P=0,E=0,I={},A=0;A2*P}(w,S)?"category":function(C,M){for(var O=C.length,D=0;D=2){var I,A,F="";if(E.length===2){for(I=0;I<2;I++)if(A=C(E[I])){F=x;break}}var j=P("pattern",F);if(j===x)for(I=0;I<2;I++)(A=C(E[I]))&&(O.bounds[I]=E[I]=A-1);if(j)for(I=0;I<2;I++)switch(A=E[I],j){case x:if(!s(A)||(A=+A)!==Math.floor(A)||A<0||A>=7)return void(O.enabled=!1);O.bounds[I]=E[I]=A;break;case T:if(!s(A)||(A=+A)<0||A>24)return void(O.enabled=!1);O.bounds[I]=E[I]=A}if(D.autorange===!1){var z=D.range;if(z[0]z[1])return void(O.enabled=!1)}else if(E[0]>z[0]&&E[1]m?1:-1:+(d.substr(1)||1)-+(f.substr(1)||1)},o.ref2id=function(d){return!!/^[xyz]/.test(d)&&d.split(" ")[0]},o.isLinked=function(d,f){return c(f,d._axisMatchGroups)||c(f,d._axisConstraintGroups)}},15258:function(i){i.exports=function(o,a,s,u){if(a.type==="category"){var c,d=o.categoryarray,f=Array.isArray(d)&&d.length>0;f&&(c="array");var p,m=s("categoryorder",c);m==="array"&&(p=s("categoryarray")),f||m!=="array"||(m=a.categoryorder="trace"),m==="trace"?a._initialCategories=[]:m==="array"?a._initialCategories=p.slice():(p=function(g,b){var v,h,y,w=b.dataAttr||g._id.charAt(0),_={};if(b.axData)v=b.axData;else for(v=[],h=0;hC?M.substr(C):O.substr(S))+D:M+O+T*k:D}function _(T,k){for(var S=k._size,C=S.h/S.w,M={},O=Object.keys(T),D=0;Dm*z)||q){for(S=0;SG&&aeH&&(H=ae);E/=(H-ee)/(2*Z),ee=O.l2r(ee),H=O.l2r(H),O.range=O._input.range=U=0?Math.min(ae,.9):1/(1/Math.max(ae,-.3)+3.222))}function U(ae,ie,se,he,Se){return ae.append("path").attr("class","zoombox").style({fill:ie>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",m(se,he)).attr("d",Se+"Z")}function V(ae,ie,se){return ae.append("path").attr("class","zoombox-corners").style({fill:b.background,stroke:b.defaultLine,"stroke-width":1,opacity:0}).attr("transform",m(ie,se)).attr("d","M0,0Z")}function te(ae,ie,se,he,Se,Oe){ae.attr("d",he+"M"+se.l+","+se.t+"v"+se.h+"h"+se.w+"v-"+se.h+"h-"+se.w+"Z"),ee(ae,ie,Se,Oe)}function ee(ae,ie,se,he){se||(ae.transition().style("fill",he>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),ie.transition().style("opacity",1).duration(200))}function H(ae){s.select(ae).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Z(ae){B&&ae.data&&ae._context.showTips&&(u.notifier(u._(ae,"Double-click to zoom back out"),"long"),B=!1)}function G(ae){var ie=Math.floor(Math.min(ae.b-ae.t,ae.r-ae.l,z)/2);return"M"+(ae.l-3.5)+","+(ae.t-.5+ie)+"h3v"+-ie+"h"+ie+"v-3h-"+(ie+3)+"ZM"+(ae.r+3.5)+","+(ae.t-.5+ie)+"h-3v"+-ie+"h"+-ie+"v-3h"+(ie+3)+"ZM"+(ae.r+3.5)+","+(ae.b+.5-ie)+"h-3v"+ie+"h"+-ie+"v3h"+(ie+3)+"ZM"+(ae.l-3.5)+","+(ae.b+.5-ie)+"h3v"+ie+"h"+ie+"v3h-"+(ie+3)+"Z"}function X(ae,ie,se,he,Se){for(var Oe,Pe,Me,ce,we=!1,K={},ne={},de=(Se||{}).xaHash,_e=(Se||{}).yaHash,ue=0;ue=0)At._fullLayout._deactivateShape(At);else{var Nt=At._fullLayout.clickmode;if(H(At),kt!==2||ze||gt(),We)Nt.indexOf("select")>-1&&I(Ot,At,de,_e,ie.id,He),Nt.indexOf("event")>-1&&h.click(At,Ot,ie.id);else if(kt===1&&ze){var $t=Pe?we:ce,Bt=Pe==="s"||Me==="w"?0:1,Xt=$t._name+".range["+Bt+"]",Zt=function(sn,xn){var mn,dn=sn.range[xn],gn=Math.abs(dn-sn.range[1-xn]);return sn.type==="date"?dn:sn.type==="log"?(mn=Math.ceil(Math.max(0,-Math.log(gn)/Math.LN10))+3,c("."+mn+"g")(Math.pow(10,dn))):(mn=Math.floor(Math.log(Math.abs(dn))/Math.LN10)-Math.floor(Math.log(gn)/Math.LN10)+4,c("."+String(mn)+"g")(dn))}($t,Bt),qt="left",Ht="middle";if($t.fixedrange)return;Pe?(Ht=Pe==="n"?"top":"bottom",$t.side==="right"&&(qt="right")):Me==="e"&&(qt="right"),At._context.showAxisRangeEntryBoxes&&s.select(St).call(g.makeEditable,{gd:At,immediate:!0,background:At._fullLayout.paper_bgcolor,text:String(Zt),fill:$t.tickfont?$t.tickfont.color:"#444",horizontalAlign:qt,verticalAlign:Ht}).on("edit",function(sn){var xn=$t.d2r(sn);xn!==void 0&&p.call("_guiRelayout",At,Xt,xn)})}}}function Ye(kt,Ot){if(ae._transitioningWithDuration)return!1;var At=Math.max(0,Math.min(xe,st*kt+Ze)),Nt=Math.max(0,Math.min(ye,dt*Ot+ut)),$t=Math.abs(At-Ze),Bt=Math.abs(Nt-ut);function Xt(){_t="",ht.r=ht.l,ht.t=ht.b,Ce.attr("d","M0,0Z")}if(ht.l=Math.min(Ze,At),ht.r=Math.max(Ze,At),ht.t=Math.min(ut,Nt),ht.b=Math.max(ut,Nt),Te.isSubplotConstrained)$t>z||Bt>z?(_t="xy",$t/xe>Bt/ye?(Bt=$t*ye/xe,ut>Nt?ht.t=ut-Bt:ht.b=ut+Bt):($t=Bt*xe/ye,Ze>At?ht.l=Ze-$t:ht.r=Ze+$t),Ce.attr("d",G(ht))):Xt();else if(Ae.isSubplotConstrained)if($t>z||Bt>z){_t="xy";var Zt=Math.min(ht.l/xe,(ye-ht.b)/ye),qt=Math.max(ht.r/xe,(ye-ht.t)/ye);ht.l=Zt*xe,ht.r=qt*xe,ht.b=(1-Zt)*ye,ht.t=(1-qt)*ye,Ce.attr("d",G(ht))}else Xt();else!Le||Bt0){var Ht;if(Ae.isSubplotConstrained||!Re&&Le.length===1){for(Ht=0;Ht1&&(Nt.maxallowed!==void 0&&Fe===(Nt.range[0]1&&($t.maxallowed!==void 0&&Be===($t.range[0]<$t.range[1]?"n":"s")||$t.minallowed!==void 0&&Be===($t.range[0]<$t.range[1]?"s":"n"))&&(dn=1,en=0),mn||dn){mn||(mn=1),dn||(dn=1);var tn=Nt._offset-gn/mn,Fn=$t._offset-en/dn;At.clipRect.call(v.setTranslate,gn,en).call(v.setScale,mn,dn),At.plot.call(v.setTranslate,tn,Fn).call(v.setScale,1/mn,1/dn),mn===At.xScaleFactor&&dn===At.yScaleFactor||(v.setPointGroupScale(At.zoomScalePts,mn,dn),v.setTextPointsScale(At.zoomScaleTxt,mn,dn)),v.hideOutsideRangePoints(At.clipOnAxisFalseTraces,At),At.xScaleFactor=mn,At.yScaleFactor=dn}}}}function Ut(kt,Ot,At){return kt.fixedrange?0:Fe&&Te.xaHash[kt._id]?Ot:Be&&(Te.isSubplotConstrained?Te.xaHash:Te.yaHash)[kt._id]?At:0}function It(kt,Ot){return Ot?(kt.range=kt._r.slice(),A(kt,Ot),zt(kt,Ot)):0}function zt(kt,Ot,At){return kt._length*(1-Ot)*S[At||kt.constraintoward||"middle"]}return Pe.length*Me.length!=1&&Q(St,function(kt){if(ae._context._scrollZoom.cartesian||ae._fullLayout._enablescrollzoom){if(et(),ae._transitioningWithDuration)return kt.preventDefault(),void kt.stopPropagation();tt(),clearTimeout(rt);var Ot=-kt.deltaY;if(isFinite(Ot)||(Ot=kt.wheelDelta/10),isFinite(Ot)){var At,Nt=Math.exp(-Math.min(Math.max(Ot,-20),20)/200),$t=Yt.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Bt=(kt.clientX-$t.left)/$t.width,Xt=($t.bottom-kt.clientY)/$t.height;if(Fe){for(Me||(Bt=.5),At=0;AtO[1]-.000244140625&&(d.domain=g),u.noneOrAll(c.domain,d.domain,g),d.tickmode==="sync"&&(d.tickmode="auto")}return f("layer"),d}},89426:function(i,o,a){var s=a(59652);i.exports=function(u,c,d,f,p){p||(p={});var m=p.tickSuffixDflt,g=s(u);d("tickprefix")&&d("showtickprefix",g),d("ticksuffix",m)&&d("showticksuffix",g)}},23608:function(i,o,a){var s=a(23074);i.exports=function(u,c,d,f){var p=c._template||{},m=c.type||p.type||"-";d("minallowed"),d("maxallowed");var g,b=d("range"),v=c.getAutorangeDflt(b,f),h=d("autorange",v);!b||(b[0]!==null||b[1]!==null)&&(b[0]!==null&&b[1]!==null||h!=="reversed"&&h!==!0)&&(b[0]===null||h!=="min"&&h!=="max reversed")&&(b[1]===null||h!=="max"&&h!=="min reversed")||(b=void 0,delete c.range,c.autorange=!0,g=!0),g||(h=d("autorange",v=c.getAutorangeDflt(b,f))),h&&(s(d,h,b),m!=="linear"&&m!=="-"||d("rangemode")),c.cleanRange()}},42449:function(i,o,a){var s=a(18783).FROM_BL;i.exports=function(u,c,d){d===void 0&&(d=s[u.constraintoward||"center"]);var f=[u.r2l(u.range[0]),u.r2l(u.range[1])],p=f[0]+(f[1]-f[0])*d;u.range=u._input.range=[u.l2r(p+(f[0]-p)*c),u.l2r(p+(f[1]-p)*c)],u.setScale()}},21994:function(i,o,a){var s=a(39898),u=a(84096).g0,c=a(71828),d=c.numberFormat,f=a(92770),p=c.cleanNumber,m=c.ms2DateTime,g=c.dateTime2ms,b=c.ensureNumber,v=c.isArrayOrTypedArray,h=a(50606),y=h.FP_SAFE,w=h.BADNUM,_=h.LOG_CLIP,x=h.ONEWEEK,T=h.ONEDAY,k=h.ONEHOUR,S=h.ONEMIN,C=h.ONESEC,M=a(41675),O=a(85555),D=O.HOUR_PATTERN,P=O.WEEKDAY_PATTERN;function E(A){return Math.pow(10,A)}function I(A){return A!=null}i.exports=function(A,F){F=F||{};var j=A._id||"x",z=j.charAt(0);function B(X,Q){if(X>0)return Math.log(X)/Math.LN10;if(X<=0&&Q&&A.range&&A.range.length===2){var re=A.range[0],ae=A.range[1];return .5*(re+ae-2*_*Math.abs(re-ae))}return w}function N(X,Q,re,ae){if((ae||{}).msUTC&&f(X))return+X;var ie=g(X,re||A.calendar);if(ie===w){if(!f(X))return w;X=+X;var se=Math.floor(10*c.mod(X+.05,1)),he=Math.round(X-se/10);ie=g(new Date(he))+se/10}return ie}function R(X,Q,re){return m(X,Q,re||A.calendar)}function q(X){return A._categories[Math.round(X)]}function Y(X){if(I(X)){if(A._categoriesMap===void 0&&(A._categoriesMap={}),A._categoriesMap[X]!==void 0)return A._categoriesMap[X];A._categories.push(typeof X=="number"?String(X):X);var Q=A._categories.length-1;return A._categoriesMap[X]=Q,Q}return w}function L(X){if(A._categoriesMap)return A._categoriesMap[X]}function W(X){var Q=L(X);return Q!==void 0?Q:f(X)?+X:void 0}function U(X){return f(X)?+X:L(X)}function V(X,Q,re){return s.round(re+Q*X,2)}function te(X,Q,re){return(X-re)/Q}var ee=function(X){return f(X)?V(X,A._m,A._b):w},H=function(X){return te(X,A._m,A._b)};if(A.rangebreaks){var Z=z==="y";ee=function(X){if(!f(X))return w;var Q=A._rangebreaks.length;if(!Q)return V(X,A._m,A._b);var re=Z;A.range[0]>A.range[1]&&(re=!re);for(var ae=re?-1:1,ie=ae*X,se=0,he=0;heOe)){se=ie<(Se+Oe)/2?he:he+1;break}se=he+1}var Pe=A._B[se]||0;return isFinite(Pe)?V(X,A._m2,Pe):0},H=function(X){var Q=A._rangebreaks.length;if(!Q)return te(X,A._m,A._b);for(var re=0,ae=0;aeA._rangebreaks[ae].pmax&&(re=ae+1);return te(X,A._m2,A._B[re])}}A.c2l=A.type==="log"?B:b,A.l2c=A.type==="log"?E:b,A.l2p=ee,A.p2l=H,A.c2p=A.type==="log"?function(X,Q){return ee(B(X,Q))}:ee,A.p2c=A.type==="log"?function(X){return E(H(X))}:H,["linear","-"].indexOf(A.type)!==-1?(A.d2r=A.r2d=A.d2c=A.r2c=A.d2l=A.r2l=p,A.c2d=A.c2r=A.l2d=A.l2r=b,A.d2p=A.r2p=function(X){return A.l2p(p(X))},A.p2d=A.p2r=H,A.cleanPos=b):A.type==="log"?(A.d2r=A.d2l=function(X,Q){return B(p(X),Q)},A.r2d=A.r2c=function(X){return E(p(X))},A.d2c=A.r2l=p,A.c2d=A.l2r=b,A.c2r=B,A.l2d=E,A.d2p=function(X,Q){return A.l2p(A.d2r(X,Q))},A.p2d=function(X){return E(H(X))},A.r2p=function(X){return A.l2p(p(X))},A.p2r=H,A.cleanPos=b):A.type==="date"?(A.d2r=A.r2d=c.identity,A.d2c=A.r2c=A.d2l=A.r2l=N,A.c2d=A.c2r=A.l2d=A.l2r=R,A.d2p=A.r2p=function(X,Q,re){return A.l2p(N(X,0,re))},A.p2d=A.p2r=function(X,Q,re){return R(H(X),Q,re)},A.cleanPos=function(X){return c.cleanDate(X,w,A.calendar)}):A.type==="category"?(A.d2c=A.d2l=Y,A.r2d=A.c2d=A.l2d=q,A.d2r=A.d2l_noadd=W,A.r2c=function(X){var Q=U(X);return Q!==void 0?Q:A.fraction2r(.5)},A.l2r=A.c2r=b,A.r2l=U,A.d2p=function(X){return A.l2p(A.r2c(X))},A.p2d=function(X){return q(H(X))},A.r2p=A.d2p,A.p2r=H,A.cleanPos=function(X){return typeof X=="string"&&X!==""?X:b(X)}):A.type==="multicategory"&&(A.r2d=A.c2d=A.l2d=q,A.d2r=A.d2l_noadd=W,A.r2c=function(X){var Q=W(X);return Q!==void 0?Q:A.fraction2r(.5)},A.r2c_just_indices=L,A.l2r=A.c2r=b,A.r2l=W,A.d2p=function(X){return A.l2p(A.r2c(X))},A.p2d=function(X){return q(H(X))},A.r2p=A.d2p,A.p2r=H,A.cleanPos=function(X){return Array.isArray(X)||typeof X=="string"&&X!==""?X:b(X)},A.setupMultiCategory=function(X){var Q,re,ae=A._traceIndices,ie=A._matchGroup;if(ie&&A._categories.length===0){for(var se in ie)if(se!==j){var he=F[M.id2name(se)];ae=ae.concat(he._traceIndices)}}var Se=[[0,{}],[0,{}]],Oe=[];for(Q=0;Qhe[1]&&(ae[se?0:1]=re)}},A.cleanRange=function(X,Q){A._cleanRange(X,Q),A.limitRange(X)},A._cleanRange=function(X,Q){Q||(Q={}),X||(X="range");var re,ae,ie=c.nestedProperty(A,X).get();if(ae=(ae=A.type==="date"?c.dfltRange(A.calendar):z==="y"?O.DFLTRANGEY:A._name==="realaxis"?[0,1]:Q.dfltRange||O.DFLTRANGEX).slice(),A.rangemode!=="tozero"&&A.rangemode!=="nonnegative"||(ae[0]=0),ie&&ie.length===2){var se=ie[0]===null,he=ie[1]===null;for(A.type!=="date"||A.autorange||(ie[0]=c.cleanDate(ie[0],w,A.calendar),ie[1]=c.cleanDate(ie[1],w,A.calendar)),re=0;re<2;re++)if(A.type==="date"){if(!c.isDateTime(ie[re],A.calendar)){A[X]=ae;break}if(A.r2l(ie[0])===A.r2l(ie[1])){var Se=c.constrain(A.r2l(ie[0]),c.MIN_MS+1e3,c.MAX_MS-1e3);ie[0]=A.l2r(Se-1e3),ie[1]=A.l2r(Se+1e3);break}}else{if(!f(ie[re])){if(se||he||!f(ie[1-re])){A[X]=ae;break}ie[re]=ie[1-re]*(re?10:.1)}if(ie[re]<-y?ie[re]=-y:ie[re]>y&&(ie[re]=y),ie[0]===ie[1]){var Oe=Math.max(1,Math.abs(1e-6*ie[0]));ie[0]-=Oe,ie[1]+=Oe}}}else c.nestedProperty(A,X).set(ae)},A.setScale=function(X){var Q=F._size;if(A.overlaying){var re=M.getFromId({_fullLayout:F},A.overlaying);A.domain=re.domain}var ae=X&&A._r?"_r":"range",ie=A.calendar;A.cleanRange(ae);var se,he,Se=A.r2l(A[ae][0],ie),Oe=A.r2l(A[ae][1],ie),Pe=z==="y";if(Pe?(A._offset=Q.t+(1-A.domain[1])*Q.h,A._length=Q.h*(A.domain[1]-A.domain[0]),A._m=A._length/(Se-Oe),A._b=-A._m*Oe):(A._offset=Q.l+A.domain[0]*Q.w,A._length=Q.w*(A.domain[1]-A.domain[0]),A._m=A._length/(Oe-Se),A._b=-A._m*Se),A._rangebreaks=[],A._lBreaks=0,A._m2=0,A._B=[],A.rangebreaks&&(A._rangebreaks=A.locateBreaks(Math.min(Se,Oe),Math.max(Se,Oe)),A._rangebreaks.length)){for(se=0;seOe&&(Me=!Me),Me&&A._rangebreaks.reverse();var ce=Me?-1:1;for(A._m2=ce*A._length/(Math.abs(Oe-Se)-A._lBreaks),A._B.push(-A._m2*(Pe?Oe:Se)),se=0;seae&&(ae+=7,ieae&&(ae+=24,ie=re&&ie=re&&X=Ae.min&&(peAe.max&&(Ae.max=xe),ye=!1)}ye&&he.push({min:pe,max:xe})}};for(re=0;reg.duration?(function(){for(var D={},P=0;P rect").call(d.setTranslate,0,0).call(d.setScale,1,1),S.plot.call(d.setTranslate,C._offset,M._offset).call(d.setScale,1,1);var O=S.plot.selectAll(".scatterlayer .trace");O.selectAll(".point").call(d.setPointGroupScale,1,1),O.selectAll(".textpoint").call(d.setTextPointsScale,1,1),O.call(d.hideOutsideRangePoints,S)}function k(S,C){var M=S.plotinfo,O=M.xaxis,D=M.yaxis,P=O._length,E=D._length,I=!!S.xr1,A=!!S.yr1,F=[];if(I){var j=c.simpleMap(S.xr0,O.r2l),z=c.simpleMap(S.xr1,O.r2l),B=j[1]-j[0],N=z[1]-z[0];F[0]=(j[0]*(1-C)+C*z[0]-j[0])/(j[1]-j[0])*P,F[2]=P*(1-C+C*N/B),O.range[0]=O.l2r(j[0]*(1-C)+C*z[0]),O.range[1]=O.l2r(j[1]*(1-C)+C*z[1])}else F[0]=0,F[2]=P;if(A){var R=c.simpleMap(S.yr0,D.r2l),q=c.simpleMap(S.yr1,D.r2l),Y=R[1]-R[0],L=q[1]-q[0];F[1]=(R[1]*(1-C)+C*q[1]-R[1])/(R[0]-R[1])*E,F[3]=E*(1-C+C*L/Y),D.range[0]=O.l2r(R[0]*(1-C)+C*q[0]),D.range[1]=D.l2r(R[1]*(1-C)+C*q[1])}else F[1]=0,F[3]=E;f.drawOne(p,O,{skipTitle:!0}),f.drawOne(p,D,{skipTitle:!0}),f.redrawComponents(p,[O._id,D._id]);var W=I?P/F[2]:1,U=A?E/F[3]:1,V=I?F[0]:0,te=A?F[1]:0,ee=I?F[0]/F[2]*P:0,H=A?F[1]/F[3]*E:0,Z=O._offset-ee,G=D._offset-H;M.clipRect.call(d.setTranslate,V,te).call(d.setScale,1/W,1/U),M.plot.call(d.setTranslate,Z,G).call(d.setScale,W,U),d.setPointGroupScale(M.zoomScalePts,1/W,1/U),d.setTextPointsScale(M.zoomScaleTxt,1/W,1/U)}f.redrawComponents(p)}},951:function(i,o,a){var s=a(73972).traceIs,u=a(4322);function c(f){return{v:"x",h:"y"}[f.orientation||"v"]}function d(f,p){var m=c(f),g=s(f,"box-violin"),b=s(f._fullInput||{},"candlestick");return g&&!b&&p===m&&f[m]===void 0&&f[m+"0"]===void 0}i.exports=function(f,p,m,g){m("autotypenumbers",g.autotypenumbersDflt),m("type",(g.splomStash||{}).type)==="-"&&(function(b,v){if(b.type==="-"){var h,y=b._id,w=y.charAt(0);y.indexOf("scene")!==-1&&(y=w);var _=function(D,P,E){for(var I=0;I0&&(A["_"+E+"axes"]||{})[P]||(A[E+"axis"]||E)===P&&(d(A,E)||(A[E]||[]).length||A[E+"0"]))return A}}(v,y,w);if(_)if(_.type!=="histogram"||w!=={v:"y",h:"x"}[_.orientation||"v"]){var x=w+"calendar",T=_[x],k={noMultiCategory:!s(_,"cartesian")||s(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&w==={h:"x",v:"y"}[_.orientation||"v"]&&(k.noMultiCategory=!0),k.autotypenumbers=b.autotypenumbers,d(_,w)){var S=c(_),C=[];for(h=0;h0?".":"")+h;u.isPlainObject(y)?p(y,g,w,v+1):g(w,h,y)}})}o.manageCommandObserver=function(m,g,b,v){var h={},y=!0;g&&g._commandObserver&&(h=g._commandObserver),h.cache||(h.cache={}),h.lookupTable={};var w=o.hasSimpleAPICommandBindings(m,b,h.lookupTable);if(g&&g._commandObserver){if(w)return h;if(g._commandObserver.remove)return g._commandObserver.remove(),g._commandObserver=null,h}if(w){c(m,w,h.cache),h.check=function(){if(y){var T=c(m,w,h.cache);return T.changed&&v&&h.lookupTable[T.value]!==void 0&&(h.disable(),Promise.resolve(v({value:T.value,type:w.type,prop:w.prop,traces:w.traces,index:h.lookupTable[T.value]})).then(h.enable,h.enable)),T.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],x=0;x<_.length;x++)m._internalOn(_[x],h.check);h.remove=function(){for(var T=0;T<_.length;T++)m._removeInternalListener(_[T],h.check)}}else u.log("Unable to automatically bind plot updates to API command"),h.lookupTable={},h.remove=function(){};return h.disable=function(){y=!1},h.enable=function(){y=!0},g&&(g._commandObserver=h),h},o.hasSimpleAPICommandBindings=function(m,g,b){var v,h,y=g.length;for(v=0;v=W.width-20?(te["text-anchor"]="start",te.x=5):(te["text-anchor"]="end",te.x=W._paper.attr("width")-7),U.attr(te);var ee=U.select(".js-link-to-tool"),H=U.select(".js-link-spacer"),Z=U.select(".js-sourcelinks");L._context.showSources&&L._context.showSources(L),L._context.showLink&&function(G,X){X.text("");var Q=X.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(G._context.linkText+" »");if(G._context.sendData)Q.on("click",function(){C.sendDataToCloud(G)});else{var re=window.location.pathname.split("/"),ae=window.location.search;Q.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+re[2].split(".")[0]+"/"+re[1]+ae})}}(L,ee),H.text(ee.text()&&Z.text()?" - ":"")}},C.sendDataToCloud=function(L){var W=(window.PLOTLYENV||{}).BASE_URL||L._context.plotlyServerURL;if(W){L.emit("plotly_beforeexport");var U=s.select(L).append("div").attr("id","hiddenform").style("display","none"),V=U.append("form").attr({action:W+"/external",method:"post",target:"_blank"});return V.append("input").attr({type:"text",name:"data"}).node().value=C.graphJson(L,!1,"keepdata"),V.node().submit(),U.remove(),L.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],P=["year","month","dayMonth","dayMonthYear"];function E(L,W){var U=L._context.locale;U||(U="en-US");var V=!1,te={};function ee(re){for(var ae=!0,ie=0;ie1&&K.length>1){for(f.getComponentMethod("grid","sizeDefaults")(H,ee),te=0;te15&&K.length>15&&ee.shapes.length===0&&ee.images.length===0,C.linkSubplots(G,ee,Z,V),C.cleanPlot(G,ee,Z,V);var pe=!(!V._has||!V._has("gl2d")),xe=!(!ee._has||!ee._has("gl2d")),ye=!(!V._has||!V._has("cartesian"))||pe,Te=!(!ee._has||!ee._has("cartesian"))||xe;ye&&!Te?V._bgLayer.remove():Te&&!ye&&(ee._shouldCreateBgLayer=!0),V._zoomlayer&&!L._dragging&&y({_fullLayout:V}),function($e,Fe){var Be,Ue=[];Fe.meta&&(Be=Fe._meta={meta:Fe.meta,layout:{meta:Fe.meta}});for(var qe=0;qe<$e.length;qe++){var Xe=$e[qe];Xe.meta?Ue[Xe.index]=Xe._meta={meta:Xe.meta}:Fe.meta&&(Xe._meta={meta:Fe.meta}),Fe.meta&&(Xe._meta.layout={meta:Fe.meta})}Ue.length&&(Be||(Be=Fe._meta={}),Be.data=Ue)}(G,ee),k(ee,V),f.getComponentMethod("colorscale","crossTraceDefaults")(G,ee),ee._preGUI||(ee._preGUI={}),ee._tracePreGUI||(ee._tracePreGUI={});var Ae,Re=ee._tracePreGUI,Le={};for(Ae in Re)Le[Ae]="old";for(te=0;te0){var X=1-2*H;V=Math.round(X*V),te=Math.round(X*te)}}var Q=C.layoutAttributes.width.min,re=C.layoutAttributes.height.min;V1,ie=!W.height&&Math.abs(U.height-te)>1;(ie||ae)&&(ae&&(U.width=V),ie&&(U.height=te)),L._initialAutoSize||(L._initialAutoSize={width:V,height:te}),C.sanitizeMargins(U)},C.supplyLayoutModuleDefaults=function(L,W,U,V){var te,ee,H,Z=f.componentsRegistry,G=W._basePlotModules,X=f.subplotsRegistry.cartesian;for(te in Z)(H=Z[te]).includeBasePlot&&H.includeBasePlot(L,W);for(var Q in G.length||G.push(X),W._has("cartesian")&&(f.getComponentMethod("grid","contentDefaults")(L,W),X.finalizeSubplots(L,W)),W._subplots)W._subplots[Q].sort(g.subplotSort);for(ee=0;ee1&&(U.l/=Se,U.r/=Se)}if(ae){var Oe=(U.t+U.b)/ae;Oe>1&&(U.t/=Oe,U.b/=Oe)}var Pe=U.xl!==void 0?U.xl:U.x,Me=U.xr!==void 0?U.xr:U.x,ce=U.yt!==void 0?U.yt:U.y,we=U.yb!==void 0?U.yb:U.y;ie[W]={l:{val:Pe,size:U.l+he},r:{val:Me,size:U.r+he},b:{val:we,size:U.b+he},t:{val:ce,size:U.t+he}},se[W]=1}else delete ie[W],delete se[W];if(!V._replotting)return C.doAutoMargin(L)}},C.doAutoMargin=function(L){var W=L._fullLayout,U=W.width,V=W.height;W._size||(W._size={}),z(W);var te=W._size,ee=W.margin,H={t:0,b:0,l:0,r:0},Z=g.extendFlat({},te),G=ee.l,X=ee.r,Q=ee.t,re=ee.b,ae=W._pushmargin,ie=W._pushmarginIds,se=W.minreducedwidth,he=W.minreducedheight;if(ee.autoexpand!==!1){for(var Se in ae)ie[Se]||delete ae[Se];var Oe=L._fullLayout._reservedMargin;for(var Pe in Oe)for(var Me in Oe[Pe]){var ce=Oe[Pe][Me];H[Me]=Math.max(H[Me],ce)}for(var we in ae.base={l:{val:0,size:G},r:{val:1,size:X},t:{val:1,size:Q},b:{val:0,size:re}},H){var K=0;for(var ne in ae)ne!=="base"&&d(ae[ne][we].size)&&(K=ae[ne][we].size>K?ae[ne][we].size:K);var de=Math.max(0,ee[we]-K);H[we]=Math.max(0,H[we]-de)}for(var _e in ae){var ue=ae[_e].l||{},pe=ae[_e].b||{},xe=ue.val,ye=ue.size,Te=pe.val,Ae=pe.size,Re=U-H.r-H.l,Le=V-H.t-H.b;for(var $e in ae){if(d(ye)&&ae[$e].r){var Fe=ae[$e].r.val,Be=ae[$e].r.size;if(Fe>xe){var Ue=(ye*Fe+(Be-Re)*xe)/(Fe-xe),qe=(Be*(1-xe)+(ye-Re)*(1-Fe))/(Fe-xe);Ue+qe>G+X&&(G=Ue,X=qe)}}if(d(Ae)&&ae[$e].t){var Xe=ae[$e].t.val,ot=ae[$e].t.size;if(Xe>Te){var st=(Ae*Xe+(ot-Le)*Te)/(Xe-Te),dt=(ot*(1-Te)+(Ae-Le)*(1-Xe))/(Xe-Te);st+dt>re+Q&&(re=st,Q=dt)}}}}}var vt=g.constrain(U-ee.l-ee.r,2,se),We=g.constrain(V-ee.t-ee.b,2,he),ze=Math.max(0,U-vt),tt=Math.max(0,V-We);if(ze){var it=(G+X)/ze;it>1&&(G/=it,X/=it)}if(tt){var St=(re+Q)/tt;St>1&&(re/=St,Q/=St)}if(te.l=Math.round(G)+H.l,te.r=Math.round(X)+H.r,te.t=Math.round(Q)+H.t,te.b=Math.round(re)+H.b,te.p=Math.round(ee.pad),te.w=Math.round(U)-te.l-te.r,te.h=Math.round(V)-te.t-te.b,!W._replotting&&(C.didMarginChange(Z,te)||function(ut){if("_redrawFromAutoMarginCount"in ut._fullLayout)return!1;var ht=h.list(ut,"",!0);for(var Rt in ht)if(ht[Rt].autoshift||ht[Rt].shift)return!0;return!1}(L))){"_redrawFromAutoMarginCount"in W?W._redrawFromAutoMarginCount++:W._redrawFromAutoMarginCount=1;var Ze=3*(1+Object.keys(ie).length);if(W._redrawFromAutoMarginCount0&&(L._transitioningWithDuration=!0),L._transitionData._interruptCallbacks.push(function(){V=!0}),U.redraw&&L._transitionData._interruptCallbacks.push(function(){return f.call("redraw",L)}),L._transitionData._interruptCallbacks.push(function(){L.emit("plotly_transitioninterrupted",[])});var Z=0,G=0;function X(){return Z++,function(){var Q;G++,V||G!==Z||(Q=H,L._transitionData&&(function(re){if(re)for(;re.length;)re.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(U.redraw)return f.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(Q)))}}U.runFn(X),setTimeout(X())})}],ee=g.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}C.didMarginChange=function(L,W){for(var U=0;U1)return!0}return!1},C.graphJson=function(L,W,U,V,te,ee){(te&&W&&!L._fullData||te&&!W&&!L._fullLayout)&&C.supplyDefaults(L);var H=te?L._fullData:L.data,Z=te?L._fullLayout:L.layout,G=(L._transitionData||{})._frames;function X(ae,ie){if(typeof ae=="function")return ie?"_function_":null;if(g.isPlainObject(ae)){var se,he={};return Object.keys(ae).sort().forEach(function(Se){if(["_","["].indexOf(Se.charAt(0))===-1)if(typeof ae[Se]!="function"){if(U==="keepdata"){if(Se.substr(Se.length-3)==="src")return}else if(U==="keepstream"){if(typeof(se=ae[Se+"src"])=="string"&&se.indexOf(":")>0&&!g.isPlainObject(ae.stream))return}else if(U!=="keepall"&&typeof(se=ae[Se+"src"])=="string"&&se.indexOf(":")>0)return;he[Se]=X(ae[Se],ie)}else ie&&(he[Se]="_function")}),he}return Array.isArray(ae)?ae.map(function(Se){return X(Se,ie)}):g.isTypedArray(ae)?g.simpleMap(ae,g.identity):g.isJSDate(ae)?g.ms2DateTimeLocal(+ae):ae}var Q={data:(H||[]).map(function(ae){var ie=X(ae);return W&&delete ie.fit,ie})};if(!W&&(Q.layout=X(Z),te)){var re=Z._size;Q.layout.computed={margin:{b:re.b,l:re.l,r:re.r,t:re.t}}}return G&&(Q.frames=X(G)),ee&&(Q.config=X(L._context,!0)),V==="object"?Q:JSON.stringify(Q)},C.modifyFrames=function(L,W){var U,V,te,ee=L._transitionData._frames,H=L._transitionData._frameHash;for(U=0;U=0;ee--)if(we[ee].enabled){U._indexToPoints=we[ee]._indexToPoints;break}V&&V.calc&&(ce=V.calc(L,U))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=U,X[Pe]=ce}}for(q(H,Z,G),te=0;te0){for(var p=[],m=0;m=D&&(E.min=0,I.min=0,A.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function w(_,x,T,k){var S=v[x._name];function C(I,A){return c.coerce(_,x,S,I,A)}C("uirevision",k.uirevision),x.type="linear";var M=C("color"),O=M!==S.color.dflt?M:T.font.color,D=x._name.charAt(0).toUpperCase(),P="Component "+D,E=C("title.text",P);x._hovertitle=E===P?E:D,c.coerceFont(C,"title.font",{family:T.font.family,size:c.bigFont(T.font.size),color:O}),C("min"),g(_,x,C,"linear"),p(_,x,C,"linear"),f(_,x,C,"linear"),m(_,x,C,{outerTicks:!0}),C("showticklabels")&&(c.coerceFont(C,"tickfont",{family:T.font.family,size:T.font.size,color:O}),C("tickangle"),C("tickformat")),b(_,x,C,{dfltColor:M,bgColor:T.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:S}),C("hoverformat"),C("layer")}i.exports=function(_,x,T){d(_,x,T,{type:"ternary",attributes:v,handleDefaults:y,font:x.font,paper_bgcolor:x.paper_bgcolor})}},64380:function(i,o,a){var s=a(39898),u=a(84267),c=a(73972),d=a(71828),f=d.strTranslate,p=d._,m=a(7901),g=a(91424),b=a(21994),v=a(1426).extendFlat,h=a(74875),y=a(89298),w=a(28569),_=a(30211),x=a(64505),T=x.freeMode,k=x.rectMode,S=a(92998),C=a(47322).prepSelect,M=a(47322).selectOnClick,O=a(47322).clearOutline,D=a(47322).clearSelectionsCache,P=a(85555);function E(q,Y){this.id=q.id,this.graphDiv=q.graphDiv,this.init(Y),this.makeFramework(Y),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}i.exports=E;var I=E.prototype;I.init=function(q){this.container=q._ternarylayer,this.defs=q._defs,this.layoutId=q._uid,this.traceHash={},this.layers={}},I.plot=function(q,Y){var L=this,W=Y[L.id],U=Y._size;L._hasClipOnAxisFalse=!1;for(var V=0;VA*ie?U=(V=ie)*A:V=(U=ae)/A,te=Q*U/ae,ee=re*V/ie,L=Y.l+Y.w*G-U/2,W=Y.t+Y.h*(1-X)-V/2,H.x0=L,H.y0=W,H.w=U,H.h=V,H.sum=se,H.xaxis={type:"linear",range:[he+2*Oe-se,se-he-2*Se],domain:[G-te/2,G+te/2],_id:"x"},b(H.xaxis,H.graphDiv._fullLayout),H.xaxis.setScale(),H.xaxis.isPtWithinRange=function(xe){return xe.a>=H.aaxis.range[0]&&xe.a<=H.aaxis.range[1]&&xe.b>=H.baxis.range[1]&&xe.b<=H.baxis.range[0]&&xe.c>=H.caxis.range[1]&&xe.c<=H.caxis.range[0]},H.yaxis={type:"linear",range:[he,se-Se-Oe],domain:[X-ee/2,X+ee/2],_id:"y"},b(H.yaxis,H.graphDiv._fullLayout),H.yaxis.setScale(),H.yaxis.isPtWithinRange=function(){return!0};var Pe=H.yaxis.domain[0],Me=H.aaxis=v({},q.aaxis,{range:[he,se-Se-Oe],side:"left",tickangle:(+q.aaxis.tickangle||0)-30,domain:[Pe,Pe+ee*A],anchor:"free",position:0,_id:"y",_length:U});b(Me,H.graphDiv._fullLayout),Me.setScale();var ce=H.baxis=v({},q.baxis,{range:[se-he-Oe,Se],side:"bottom",domain:H.xaxis.domain,anchor:"free",position:0,_id:"x",_length:U});b(ce,H.graphDiv._fullLayout),ce.setScale();var we=H.caxis=v({},q.caxis,{range:[se-he-Se,Oe],side:"right",tickangle:(+q.caxis.tickangle||0)+30,domain:[Pe,Pe+ee*A],anchor:"free",position:0,_id:"y",_length:U});b(we,H.graphDiv._fullLayout),we.setScale();var K="M"+L+","+(W+V)+"h"+U+"l-"+U/2+",-"+V+"Z";H.clipDef.select("path").attr("d",K),H.layers.plotbg.select("path").attr("d",K);var ne="M0,"+V+"h"+U+"l-"+U/2+",-"+V+"Z";H.clipDefRelative.select("path").attr("d",ne);var de=f(L,W);H.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",de),H.clipDefRelative.select("path").attr("transform",null);var _e=f(L-ce._offset,W+V);H.layers.baxis.attr("transform",_e),H.layers.bgrid.attr("transform",_e);var ue=f(L+U/2,W)+"rotate(30)"+f(0,-Me._offset);H.layers.aaxis.attr("transform",ue),H.layers.agrid.attr("transform",ue);var pe=f(L+U/2,W)+"rotate(-30)"+f(0,-we._offset);H.layers.caxis.attr("transform",pe),H.layers.cgrid.attr("transform",pe),H.drawAxes(!0),H.layers.aline.select("path").attr("d",Me.showline?"M"+L+","+(W+V)+"l"+U/2+",-"+V:"M0,0").call(m.stroke,Me.linecolor||"#000").style("stroke-width",(Me.linewidth||0)+"px"),H.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(W+V)+"h"+U:"M0,0").call(m.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),H.layers.cline.select("path").attr("d",we.showline?"M"+(L+U/2)+","+W+"l"+U/2+","+V:"M0,0").call(m.stroke,we.linecolor||"#000").style("stroke-width",(we.linewidth||0)+"px"),H.graphDiv._context.staticPlot||H.initInteractions(),g.setClipUrl(H.layers.frontplot,H._hasClipOnAxisFalse?null:H.clipId,H.graphDiv)},I.drawAxes=function(q){var Y=this,L=Y.graphDiv,W=Y.id.substr(7)+"title",U=Y.layers,V=Y.aaxis,te=Y.baxis,ee=Y.caxis;if(Y.drawAx(V),Y.drawAx(te),Y.drawAx(ee),q){var H=Math.max(V.showticklabels?V.tickfont.size/2:0,(ee.showticklabels?.75*ee.tickfont.size:0)+(ee.ticks==="outside"?.87*ee.ticklen:0)),Z=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;U["a-title"]=S.draw(L,"a"+W,{propContainer:V,propName:Y.id+".aaxis.title",placeholder:p(L,"Click to enter Component A title"),attributes:{x:Y.x0+Y.w/2,y:Y.y0-V.title.font.size/3-H,"text-anchor":"middle"}}),U["b-title"]=S.draw(L,"b"+W,{propContainer:te,propName:Y.id+".baxis.title",placeholder:p(L,"Click to enter Component B title"),attributes:{x:Y.x0-Z,y:Y.y0+Y.h+.83*te.title.font.size+Z,"text-anchor":"middle"}}),U["c-title"]=S.draw(L,"c"+W,{propContainer:ee,propName:Y.id+".caxis.title",placeholder:p(L,"Click to enter Component C title"),attributes:{x:Y.x0+Y.w+Z,y:Y.y0+Y.h+.83*ee.title.font.size+Z,"text-anchor":"middle"}})}},I.drawAx=function(q){var Y,L=this,W=L.graphDiv,U=q._name,V=U.charAt(0),te=q._id,ee=L.layers[U],H=V+"tickLayout",Z=(Y=q).ticks+String(Y.ticklen)+String(Y.showticklabels);L[H]!==Z&&(ee.selectAll("."+te+"tick").remove(),L[H]=Z),q.setScale();var G=y.calcTicks(q),X=y.clipEnds(q,G),Q=y.makeTransTickFn(q),re=y.getTickSigns(q)[2],ae=d.deg2rad(30),ie=re*(q.linewidth||1)/2,se=re*q.ticklen,he=L.w,Se=L.h,Oe=V==="b"?"M0,"+ie+"l"+Math.sin(ae)*se+","+Math.cos(ae)*se:"M"+ie+",0l"+Math.cos(ae)*se+","+-Math.sin(ae)*se,Pe={a:"M0,0l"+Se+",-"+he/2,b:"M0,0l-"+he/2+",-"+Se,c:"M0,0l-"+Se+","+he/2}[V];y.drawTicks(W,q,{vals:q.ticks==="inside"?X:G,layer:ee,path:Oe,transFn:Q,crisp:!1}),y.drawGrid(W,q,{vals:X,layer:L.layers[V+"grid"],path:Pe,transFn:Q,crisp:!1}),y.drawLabels(W,q,{vals:G,layer:ee,transFn:Q,labelFns:y.makeLabelFns(q,0,30)})};var F=P.MINZOOM/2+.87,j="m-0.87,.5h"+F+"v3h-"+(F+5.2)+"l"+(F/2+2.6)+",-"+(.87*F+4.5)+"l2.6,1.5l-"+F/2+","+.87*F+"Z",z="m0.87,.5h-"+F+"v3h"+(F+5.2)+"l-"+(F/2+2.6)+",-"+(.87*F+4.5)+"l-2.6,1.5l"+F/2+","+.87*F+"Z",B="m0,1l"+F/2+","+.87*F+"l2.6,-1.5l-"+(F/2+2.6)+",-"+(.87*F+4.5)+"l-"+(F/2+2.6)+","+(.87*F+4.5)+"l2.6,1.5l"+F/2+",-"+.87*F+"Z",N=!0;function R(q){s.select(q).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}I.clearOutline=function(){D(this.dragOptions),O(this.dragOptions.gd)},I.initInteractions=function(){var q,Y,L,W,U,V,te,ee,H,Z,G,X,Q=this,re=Q.layers.plotbg.select("path").node(),ae=Q.graphDiv,ie=ae._fullLayout._zoomlayer;function se(ne){var de={};return de[Q.id+".aaxis.min"]=ne.a,de[Q.id+".baxis.min"]=ne.b,de[Q.id+".caxis.min"]=ne.c,de}function he(ne,de){var _e=ae._fullLayout.clickmode;R(ae),ne===2&&(ae.emit("plotly_doubleclick",null),c.call("_guiRelayout",ae,se({a:0,b:0,c:0}))),_e.indexOf("select")>-1&&ne===1&&M(de,ae,[Q.xaxis],[Q.yaxis],Q.id,Q.dragOptions),_e.indexOf("event")>-1&&_.click(ae,de,Q.id)}function Se(ne,de){return 1-de/Q.h}function Oe(ne,de){return 1-(ne+(Q.h-de)/Math.sqrt(3))/Q.w}function Pe(ne,de){return(ne-(Q.h-de)/Math.sqrt(3))/Q.w}function Me(ne,de){var _e=L+ne*q,ue=W+de*Y,pe=Math.max(0,Math.min(1,Se(0,W),Se(0,ue))),xe=Math.max(0,Math.min(1,Oe(L,W),Oe(_e,ue))),ye=Math.max(0,Math.min(1,Pe(L,W),Pe(_e,ue))),Te=(pe/2+ye)*Q.w,Ae=(1-pe/2-xe)*Q.w,Re=(Te+Ae)/2,Le=Ae-Te,$e=(1-pe)*Q.h,Fe=$e-Le/A;Le.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),X.transition().style("opacity",1).duration(200),Z=!0),ae.emit("plotly_relayouting",se(te))}function ce(){R(ae),te!==U&&(c.call("_guiRelayout",ae,se(te)),N&&ae.data&&ae._context.showTips&&(d.notifier(p(ae,"Double-click to zoom back out"),"long"),N=!1))}function we(ne,de){var _e=ne/Q.xaxis._m,ue=de/Q.yaxis._m,pe=[(te={a:U.a-ue,b:U.b+(_e+ue)/2,c:U.c-(_e-ue)/2}).a,te.b,te.c].sort(d.sorterAsc),xe=pe.indexOf(te.a),ye=pe.indexOf(te.b),Te=pe.indexOf(te.c);pe[0]<0&&(pe[1]+pe[0]/2<0?(pe[2]+=pe[0]+pe[1],pe[0]=pe[1]=0):(pe[2]+=pe[0]/2,pe[1]+=pe[0]/2,pe[0]=0),te={a:pe[xe],b:pe[ye],c:pe[Te]},de=(U.a-te.a)*Q.yaxis._m,ne=(U.c-te.c-U.b+te.b)*Q.xaxis._m);var Ae=f(Q.x0+ne,Q.y0+de);Q.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ae);var Re=f(-ne,-de);Q.clipDefRelative.select("path").attr("transform",Re),Q.aaxis.range=[te.a,Q.sum-te.b-te.c],Q.baxis.range=[Q.sum-te.a-te.c,te.b],Q.caxis.range=[Q.sum-te.a-te.b,te.c],Q.drawAxes(!1),Q._hasClipOnAxisFalse&&Q.plotContainer.select(".scatterlayer").selectAll(".trace").call(g.hideOutsideRangePoints,Q),ae.emit("plotly_relayouting",se(te))}function K(){c.call("_guiRelayout",ae,se(te))}this.dragOptions={element:re,gd:ae,plotinfo:{id:Q.id,domain:ae._fullLayout[Q.id].domain,xaxis:Q.xaxis,yaxis:Q.yaxis},subplot:Q.id,prepFn:function(ne,de,_e){Q.dragOptions.xaxes=[Q.xaxis],Q.dragOptions.yaxes=[Q.yaxis],q=ae._fullLayout._invScaleX,Y=ae._fullLayout._invScaleY;var ue=Q.dragOptions.dragmode=ae._fullLayout.dragmode;T(ue)?Q.dragOptions.minDrag=1:Q.dragOptions.minDrag=void 0,ue==="zoom"?(Q.dragOptions.moveFn=Me,Q.dragOptions.clickFn=he,Q.dragOptions.doneFn=ce,function(pe,xe,ye){var Te=re.getBoundingClientRect();L=xe-Te.left,W=ye-Te.top,ae._fullLayout._calcInverseTransform(ae);var Ae=ae._fullLayout._invTransform,Re=d.apply3DTransform(Ae)(L,W);L=Re[0],W=Re[1],U={a:Q.aaxis.range[0],b:Q.baxis.range[1],c:Q.caxis.range[1]},te=U,V=Q.aaxis.range[1]-U.a,ee=u(Q.graphDiv._fullLayout[Q.id].bgcolor).getLuminance(),H="M0,"+Q.h+"L"+Q.w/2+", 0L"+Q.w+","+Q.h+"Z",Z=!1,G=ie.append("path").attr("class","zoombox").attr("transform",f(Q.x0,Q.y0)).style({fill:ee>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",H),X=ie.append("path").attr("class","zoombox-corners").attr("transform",f(Q.x0,Q.y0)).style({fill:m.background,stroke:m.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),Q.clearOutline(ae)}(0,de,_e)):ue==="pan"?(Q.dragOptions.moveFn=we,Q.dragOptions.clickFn=he,Q.dragOptions.doneFn=K,U={a:Q.aaxis.range[0],b:Q.baxis.range[1],c:Q.caxis.range[1]},te=U,Q.clearOutline(ae)):(k(ue)||T(ue))&&C(ne,de,_e,Q.dragOptions,ue)}},re.onmousemove=function(ne){_.hover(ae,ne,Q.id),ae._fullLayout._lasthover=re,ae._fullLayout._hoversubplot=Q.id},re.onmouseout=function(ne){ae._dragging||w.unhover(ae,ne)},w.init(this.dragOptions)}},73972:function(i,o,a){var s=a(47769),u=a(64213),c=a(75138),d=a(41965),f=a(24401).addStyleRule,p=a(1426),m=a(9012),g=a(10820),b=p.extendFlat,v=p.extendDeepAll;function h(M){var O=M.name,D=M.categories,P=M.meta;if(o.modules[O])s.log("Type "+O+" already registered");else{o.subplotsRegistry[M.basePlotModule.name]||function(N){var R=N.name;if(o.subplotsRegistry[R])s.log("Plot type "+R+" already registered.");else for(var q in x(N),o.subplotsRegistry[R]=N,o.componentsRegistry)S(q,N.name)}(M.basePlotModule);for(var E={},I=0;I-1&&(w[x[g]].title={text:""});for(g=0;g")!==-1?"":I.html(F).text()});return I.remove(),A}(P)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(g,"'"),u.isIE()&&(P=(P=(P=P.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),P}},75341:function(i,o,a){var s=a(71828);i.exports=function(u,c){for(var d=0;dA+E||!s(I))}for(var j=0;jg))return f}return p!==void 0?p:d.dflt},o.coerceColor=function(d,f,p){return u(f).isValid()?f:p!==void 0?p:d.dflt},o.coerceEnumerated=function(d,f,p){return d.coerceNumber&&(f=+f),d.values.indexOf(f)!==-1?f:p!==void 0?p:d.dflt},o.getValue=function(d,f){var p;return Array.isArray(d)?f0?se+=he:T<0&&(se-=he)}return se}function ee(ie){var se=T,he=ie.b,Se=te(ie);return s.inbox(he-se,Se-se,F+(Se-se)/(Se-he)-1)}var H=v[k+"a"],Z=v[S+"a"];O=Math.abs(H.r2c(H.range[1])-H.r2c(H.range[0]));var G=s.getDistanceFunction(w,C,M,function(ie){return(C(ie)+M(ie))/2});if(s.getClosest(D,G,v),v.index!==!1&&D[v.index].p!==m){B||(L=function(ie){return Math.min(N(ie),ie.p-E.bargroupwidth/2)},W=function(ie){return Math.max(R(ie),ie.p+E.bargroupwidth/2)});var X=D[v.index],Q=P.base?X.b+X.s:X.s;v[S+"0"]=v[S+"1"]=Z.c2p(X[S],!0),v[S+"LabelVal"]=Q;var re=E.extents[E.extents.round(X.p)];v[k+"0"]=H.c2p(I?L(X):re[0],!0),v[k+"1"]=H.c2p(I?W(X):re[1],!0);var ae=X.orig_p!==void 0;return v[k+"LabelVal"]=ae?X.orig_p:X.p,v.labelLabel=p(H,v[k+"LabelVal"],P[k+"hoverformat"]),v.valueLabel=p(Z,v[S+"LabelVal"],P[S+"hoverformat"]),v.baseLabel=p(Z,X.b,P[S+"hoverformat"]),v.spikeDistance=(function(ie){var se=T,he=ie.b,Se=te(ie);return s.inbox(he-se,Se-se,j+(Se-se)/(Se-he)-1)}(X)+function(ie){return U(N(ie),R(ie),j)}(X))/2,v[k+"Spike"]=H.c2p(X.p,!0),d(X,P,v),v.hovertemplate=P.hovertemplate,v}}function b(v,h){var y=h.mcc||v.marker.color,w=h.mlcc||v.marker.line.color,_=f(v,h);return c.opacity(y)?y:c.opacity(w)&&_?w:void 0}i.exports={hoverPoints:function(v,h,y,w,_){var x=g(v,h,y,w,_);if(x){var T=x.cd,k=T[0].trace,S=T[x.index];return x.color=b(k,S),u.getComponentMethod("errorbars","hoverInfo")(S,k,x),[x]}},hoverOnBars:g,getTraceColor:b}},60822:function(i,o,a){i.exports={attributes:a(1486),layoutAttributes:a(43641),supplyDefaults:a(90769).supplyDefaults,crossTraceDefaults:a(90769).crossTraceDefaults,supplyLayoutDefaults:a(13957),calc:a(92290),crossTraceCalc:a(11661).crossTraceCalc,colorbar:a(4898),arraysToCalcdata:a(75341),plot:a(17295).plot,style:a(16688).style,styleOnSelect:a(16688).styleOnSelect,hoverPoints:a(95423).hoverPoints,eventData:a(58065),selectPoints:a(81974),moduleType:"trace",name:"bar",basePlotModule:a(93612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},43641:function(i){i.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},13957:function(i,o,a){var s=a(73972),u=a(89298),c=a(71828),d=a(43641);i.exports=function(f,p,m){function g(k,S){return c.coerce(f,p,d,k,S)}for(var b=!1,v=!1,h=!1,y={},w=g("barmode"),_=0;_0}function I(j){return j==="auto"?0:j}function A(j,z){var B=Math.PI/180*z,N=Math.abs(Math.sin(B)),R=Math.abs(Math.cos(B));return{x:j.width*R+j.height*N,y:j.width*N+j.height*R}}function F(j,z,B,N,R,q){var Y=!!q.isHorizontal,L=!!q.constrained,W=q.angle||0,U=q.anchor||"end",V=U==="end",te=U==="start",ee=((q.leftToRight||0)+1)/2,H=1-ee,Z=R.width,G=R.height,X=Math.abs(z-j),Q=Math.abs(N-B),re=X>2*C&&Q>2*C?C:0;X-=2*re,Q-=2*re;var ae=I(W);W!=="auto"||Z<=X&&G<=Q||!(Z>X||G>Q)||(Z>Q||G>X)&&Z.01?ye:function(Le,$e,Fe){return Fe&&Le===$e?Le:Math.abs(Le-$e)>=2?ye(Le):Le>$e?Math.ceil(Le):Math.floor(Le)};ne=Te(ne,de,re),de=Te(de,ne,re),_e=Te(_e,ue,!re),ue=Te(ue,_e,!re)}var Ae=P(c.ensureSingle(we,"path"),W,R,q);if(Ae.style("vector-effect",U?"none":"non-scaling-stroke").attr("d",isNaN((de-ne)*(ue-_e))||pe&&j._context.staticPlot?"M0,0Z":"M"+ne+","+_e+"V"+ue+"H"+de+"V"+_e+"Z").call(p.setClipUrl,z.layerClipId,j),!W.uniformtext.mode&&ae){var Re=p.makePointStyleFns(H);p.singlePointStyle(Oe,Ae,H,Re,j)}(function(Le,$e,Fe,Be,Ue,qe,Xe,ot,st,dt,vt){var We,ze=$e.xaxis,tt=$e.yaxis,it=Le._fullLayout;function St(Lt,gt,mt){return c.ensureSingle(Lt,"text").text(gt).attr({class:"bartext bartext-"+We,"text-anchor":"middle","data-notex":1}).call(p.font,mt).call(d.convertToTspans,Le)}var Ze=Be[0].trace,ut=Ze.orientation==="h",ht=function(Lt,gt,mt,xt,Ut){var It,zt=gt[0].trace;return It=zt.texttemplate?function(kt,Ot,At,Nt,$t){var Bt=Ot[0].trace,Xt=c.castOption(Bt,At,"texttemplate");if(!Xt)return"";var Zt,qt,Ht,sn,xn=Bt.type==="histogram",mn=Bt.type==="waterfall",dn=Bt.type==="funnel",gn=Bt.orientation==="h";function en(En){return g(sn,sn.c2l(En),!0).text}gn?(Zt="y",qt=$t,Ht="x",sn=Nt):(Zt="x",qt=Nt,Ht="y",sn=$t);var kn,un=Ot[At],tn={};tn.label=un.p,tn.labelLabel=tn[Zt+"Label"]=(kn=un.p,g(qt,qt.c2l(kn),!0).text);var Fn=c.castOption(Bt,un.i,"text");(Fn===0||Fn)&&(tn.text=Fn),tn.value=un.s,tn.valueLabel=tn[Ht+"Label"]=en(un.s);var Rn={};S(Rn,Bt,un.i),(xn||Rn.x===void 0)&&(Rn.x=gn?tn.value:tn.label),(xn||Rn.y===void 0)&&(Rn.y=gn?tn.label:tn.value),(xn||Rn.xLabel===void 0)&&(Rn.xLabel=gn?tn.valueLabel:tn.labelLabel),(xn||Rn.yLabel===void 0)&&(Rn.yLabel=gn?tn.labelLabel:tn.valueLabel),mn&&(tn.delta=+un.rawS||un.s,tn.deltaLabel=en(tn.delta),tn.final=un.v,tn.finalLabel=en(tn.final),tn.initial=tn.final-tn.delta,tn.initialLabel=en(tn.initial)),dn&&(tn.value=un.s,tn.valueLabel=en(tn.value),tn.percentInitial=un.begR,tn.percentInitialLabel=c.formatPercent(un.begR),tn.percentPrevious=un.difR,tn.percentPreviousLabel=c.formatPercent(un.difR),tn.percentTotal=un.sumR,tn.percenTotalLabel=c.formatPercent(un.sumR));var Bn=c.castOption(Bt,un.i,"customdata");return Bn&&(tn.customdata=Bn),c.texttemplateString(Xt,tn,kt._d3locale,Rn,tn,Bt._meta||{})}(Lt,gt,mt,xt,Ut):zt.textinfo?function(kt,Ot,At,Nt){var $t=kt[0].trace,Bt=$t.orientation==="h",Xt=$t.type==="waterfall",Zt=$t.type==="funnel";function qt(Bn){return g(Bt?At:Nt,+Bn,!0).text}var Ht,sn,xn=$t.textinfo,mn=kt[Ot],dn=xn.split("+"),gn=[],en=function(Bn){return dn.indexOf(Bn)!==-1};if(en("label")&&gn.push((sn=kt[Ot].p,g(Bt?Nt:At,sn,!0).text)),en("text")&&((Ht=c.castOption($t,mn.i,"text"))===0||Ht)&&gn.push(Ht),Xt){var kn=+mn.rawS||mn.s,un=mn.v,tn=un-kn;en("initial")&&gn.push(qt(tn)),en("delta")&&gn.push(qt(kn)),en("final")&&gn.push(qt(un))}if(Zt){en("value")&&gn.push(qt(mn.s));var Fn=0;en("percent initial")&&Fn++,en("percent previous")&&Fn++,en("percent total")&&Fn++;var Rn=Fn>1;en("percent initial")&&(Ht=c.formatPercent(mn.begR),Rn&&(Ht+=" of initial"),gn.push(Ht)),en("percent previous")&&(Ht=c.formatPercent(mn.difR),Rn&&(Ht+=" of previous"),gn.push(Ht)),en("percent total")&&(Ht=c.formatPercent(mn.sumR),Rn&&(Ht+=" of total"),gn.push(Ht))}return gn.join("
")}(gt,mt,xt,Ut):w.getValue(zt.text,mt),w.coerceString(T,It)}(it,Be,Ue,ze,tt);We=function(Lt,gt){var mt=w.getValue(Lt.textposition,gt);return w.coerceEnumerated(k,mt)}(Ze,Ue);var Rt=dt.mode==="stack"||dt.mode==="relative",Ct=Be[Ue],Wt=!Rt||Ct._outmost;if(ht&&We!=="none"&&(!Ct.isBlank&&qe!==Xe&&ot!==st||We!=="auto"&&We!=="inside")){var _t=it.font,be=y.getBarColor(Be[Ue],Ze),Ce=y.getInsideTextFont(Ze,Ue,_t,be),Ge=y.getOutsideTextFont(Ze,Ue,_t),He=Fe.datum();ut?ze.type==="log"&&He.s0<=0&&(qe=ze.range[0]0&&nt>0&&(Ye<=yt&&nt<=rt||Ye<=rt&&nt<=yt||(ut?yt>=Ye*(rt/nt):rt>=nt*(yt/Ye)))?We="inside":(We="outside",et.remove(),et=null)):We="inside"),!et){var Ft=(et=St(Fe,ht,ct=c.ensureUniformFontSize(Le,We==="outside"?Ge:Ce))).attr("transform");if(et.attr("transform",""),Ye=(Ke=p.bBox(et.node())).width,nt=Ke.height,et.attr("transform",Ft),Ye<=0||nt<=0)return void et.remove()}var Yt,Mt=Ze.textangle;Yt=We==="outside"?function(Lt,gt,mt,xt,Ut,It){var zt,kt=!!It.isHorizontal,Ot=!!It.constrained,At=It.angle||0,Nt=Ut.width,$t=Ut.height,Bt=Math.abs(gt-Lt),Xt=Math.abs(xt-mt);zt=kt?Xt>2*C?C:0:Bt>2*C?C:0;var Zt=1;Ot&&(Zt=kt?Math.min(1,Xt/$t):Math.min(1,Bt/Nt));var qt=I(At),Ht=A(Ut,qt),sn=(kt?Ht.x:Ht.y)/2,xn=(Ut.left+Ut.right)/2,mn=(Ut.top+Ut.bottom)/2,dn=(Lt+gt)/2,gn=(mt+xt)/2,en=0,kn=0,un=kt?D(gt,Lt):D(mt,xt);return kt?(dn=gt-un*zt,en=un*sn):(gn=xt+un*zt,kn=-un*sn),{textX:xn,textY:mn,targetX:dn,targetY:gn,anchorX:en,anchorY:kn,scale:Zt,rotate:qt}}(qe,Xe,ot,st,Ke,{isHorizontal:ut,constrained:Ze.constraintext==="both"||Ze.constraintext==="outside",angle:Mt}):F(qe,Xe,ot,st,Ke,{isHorizontal:ut,constrained:Ze.constraintext==="both"||Ze.constraintext==="inside",angle:Mt,anchor:Ze.insidetextanchor}),Yt.fontSize=ct.size,v(Ze.type==="histogram"?"bar":Ze.type,Yt,it),Ct.transform=Yt;var jt=P(et,it,dt,vt);c.setTransormAndDisplay(jt,Yt)}else Fe.select("text").remove()})(j,z,we,te,Pe,ne,de,_e,ue,R,q),z.layerClipId&&p.hideOutsideRangePoint(Oe,we.select("text"),Y,L,H.xcalendar,H.ycalendar)});var Se=H.cliponaxis===!1;p.setClipUrl(ee,Se?null:z.layerClipId,j)});m.getComponentMethod("errorbars","plot")(j,V,z,R)},toMoveInsideBar:F}},81974:function(i){function o(a,s,u,c,d){var f=s.c2p(c?a.s0:a.p0,!0),p=s.c2p(c?a.s1:a.p1,!0),m=u.c2p(c?a.p0:a.s0,!0),g=u.c2p(c?a.p1:a.s1,!0);return d?[(f+p)/2,(m+g)/2]:c?[p,(m+g)/2]:[(f+p)/2,g]}i.exports=function(a,s){var u,c=a.cd,d=a.xaxis,f=a.yaxis,p=c[0].trace,m=p.type==="funnel",g=p.orientation==="h",b=[];if(s===!1)for(u=0;u1||P.bargap===0&&P.bargroupgap===0&&!E[0].trace.marker.line.width)&&s.select(this).attr("shape-rendering","crispEdges")}),O.selectAll("g.points").each(function(E){y(s.select(this),E[0].trace,M)}),f.getComponentMethod("errorbars","style")(O)},styleTextPoints:w,styleOnSelect:function(M,O,D){var P=O[0].trace;P.selectedpoints?function(E,I,A){c.selectedPointStyle(E.selectAll("path"),I),function(F,j,z){F.each(function(B){var N,R=s.select(this);if(B.selected){N=d.ensureUniformFontSize(z,_(R,B,j,z));var q=j.selected.textfont&&j.selected.textfont.color;q&&(N.color=q),c.font(R,N)}else c.selectedTextStyle(R,j)})}(E.selectAll("text"),I,A)}(D,P,M):(y(D,P,M),f.getComponentMethod("errorbars","style")(D))},getInsideTextFont:T,getOutsideTextFont:k,getBarColor:C,resizeText:p}},98340:function(i,o,a){var s=a(7901),u=a(52075).hasColorscale,c=a(1586),d=a(71828).coercePattern;i.exports=function(f,p,m,g,b){var v=m("marker.color",g),h=u(f,"marker");h&&c(f,p,b,m,{prefix:"marker.",cLetter:"c"}),m("marker.line.color",s.defaultLine),u(f,"marker.line")&&c(f,p,b,m,{prefix:"marker.line.",cLetter:"c"}),m("marker.line.width"),m("marker.opacity"),d(m,"marker.pattern",v,h),m("selected.marker.color"),m("unselected.marker.color")}},72597:function(i,o,a){var s=a(39898),u=a(71828);function c(d){return"_"+d+"Text_minsize"}i.exports={recordMinTextSize:function(d,f,p){if(p.uniformtext.mode){var m=c(d),g=p.uniformtext.minsize,b=f.scale*f.fontSize;f.hide=bB.uf};if(k._hasPreCompStats){var G=k[O],X=function($e){return M.d2c((k[$e]||[])[S])},Q=1/0,re=-1/0;for(S=0;S=B.q1&&B.q3>=B.med){var ie=X("lowerfence");B.lf=ie!==f&&ie<=B.q1?ie:h(B,R,q);var se=X("upperfence");B.uf=se!==f&&se>=B.q3?se:y(B,R,q);var he=X("mean");B.mean=he!==f?he:q?d.mean(R,q):(B.q1+B.q3)/2;var Se=X("sd");B.sd=he!==f&&Se>=0?Se:q?d.stdev(R,q,B.mean):B.q3-B.q1,B.lo=w(B),B.uo=_(B);var Oe=X("notchspan");Oe=Oe!==f&&Oe>0?Oe:x(B,q),B.ln=B.med-Oe,B.un=B.med+Oe;var Pe=B.lf,Me=B.uf;k.boxpoints&&R.length&&(Pe=Math.min(Pe,R[0]),Me=Math.max(Me,R[q-1])),k.notched&&(Pe=Math.min(Pe,B.ln),Me=Math.max(Me,B.un)),B.min=Pe,B.max=Me}else{var ce;d.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+B.q1,"median = "+B.med,"q3 = "+B.q3].join(` -`)),ce=B.med!==f?B.med:B.q1!==f?B.q3!==f?(B.q1+B.q3)/2:B.q1:B.q3!==f?B.q3:0,B.med=ce,B.q1=B.q3=ce,B.lf=B.uf=ce,B.mean=B.sd=ce,B.ln=B.un=ce,B.min=B.max=ce}Q=Math.min(Q,B.min),re=Math.max(re,B.max),B.pts2=N.filter(Z),j.push(B)}}k._extremes[M._id]=u.findExtremes(M,[Q,re],{padded:!0})}else{var we=M.makeCalcdata(k,O),K=function($e,Fe){for(var Be=$e.length,Ue=new Array(Be+1),qe=0;qe=0&&_e0){var Ae,Re;(B={}).pos=B[P]=ee[S],N=B.pts=de[S].sort(b),q=(R=B[O]=N.map(v)).length,B.min=R[0],B.max=R[q-1],B.mean=d.mean(R,q),B.sd=d.stdev(R,q,B.mean)*k.sdmultiple,B.med=d.interp(R,.5),q%2&&(ye||Te)?(ye?(Ae=R.slice(0,q/2),Re=R.slice(q/2+1)):Te&&(Ae=R.slice(0,q/2+1),Re=R.slice(q/2)),B.q1=d.interp(Ae,.5),B.q3=d.interp(Re,.5)):(B.q1=d.interp(R,.25),B.q3=d.interp(R,.75)),B.lf=h(B,R,q),B.uf=y(B,R,q),B.lo=w(B),B.uo=_(B);var Le=x(B,q);B.ln=B.med-Le,B.un=B.med+Le,ue=Math.min(ue,B.ln),pe=Math.max(pe,B.un),B.pts2=N.filter(Z),j.push(B)}k._extremes[M._id]=u.findExtremes(M,k.notched?we.concat([ue,pe]):we,{padded:!0})}return function($e,Fe){if(d.isArrayOrTypedArray(Fe.selectedpoints))for(var Be=0;Be<$e.length;Be++){for(var Ue=$e[Be].pts||[],qe={},Xe=0;Xe0?(j[0].t={num:I[z],dPos:H,posLetter:P,valLetter:O,labels:{med:p(T,"median:"),min:p(T,"min:"),q1:p(T,"q1:"),q3:p(T,"q3:"),max:p(T,"max:"),mean:k.boxmean==="sd"||k.sizemode==="sd"?p(T,"mean ± σ:").replace("σ",k.sdmultiple===1?"σ":k.sdmultiple+"σ"):p(T,"mean:"),lf:p(T,"lower fence:"),uf:p(T,"upper fence:")}},I[z]++,j):[{t:{empty:!0}}]};var m={text:"tx",hovertext:"htx"};function g(T,k,S){for(var C in m)d.isArrayOrTypedArray(k[C])&&(Array.isArray(S)?d.isArrayOrTypedArray(k[C][S[0]])&&(T[m[C]]=k[C][S[0]][S[1]]):T[m[C]]=k[C][S])}function b(T,k){return T.v-k.v}function v(T){return T.v}function h(T,k,S){return S===0?T.q1:Math.min(T.q1,k[Math.min(d.findBin(2.5*T.q1-1.5*T.q3,k,!0)+1,S-1)])}function y(T,k,S){return S===0?T.q3:Math.max(T.q3,k[Math.max(d.findBin(2.5*T.q3-1.5*T.q1,k),0)])}function w(T){return 4*T.q1-3*T.q3}function _(T){return 4*T.q3-3*T.q1}function x(T,k){return k===0?0:1.57*(T.q3-T.q1)/Math.sqrt(k)}},37188:function(i,o,a){var s=a(89298),u=a(71828),c=a(99082).getAxisGroup,d=["v","h"];function f(p,m,g,b){var v,h,y,w=m.calcdata,_=m._fullLayout,x=b._id,T=x.charAt(0),k=[],S=0;for(v=0;v1,P=1-_[p+"gap"],E=1-_[p+"groupgap"];for(v=0;v0){var ae=N.pointpos,ie=N.jitter,se=N.marker.size/2,he=0;ae+ie>=0&&((he=Q*(ae+ie))>z?(re=!0,G=se,H=he):he>te&&(G=se,H=z)),he<=z&&(H=z);var Se=0;ae-ie<=0&&((Se=-Q*(ae-ie))>B?(re=!0,X=se,Z=Se):Se>ee&&(X=se,Z=B)),Se<=B&&(Z=B)}else H=z,Z=B;var Oe=new Array(y.length);for(h=0;h0?(D="v",P=I>0?Math.min(F,A):Math.min(A)):I>0?(D="h",P=Math.min(F)):P=0;if(P){h._length=P;var q=y("orientation",D);h._hasPreCompStats?q==="v"&&I===0?(y("x0",0),y("dx",1)):q==="h"&&E===0&&(y("y0",0),y("dy",1)):q==="v"&&I===0?y("x0"):q==="h"&&E===0&&y("y0"),u.getComponentMethod("calendars","handleTraceDefaults")(v,h,["x","y"],w)}else h.visible=!1}function b(v,h,y,w){var _=w.prefix,x=s.coerce2(v,h,m,"marker.outliercolor"),T=y("marker.line.outliercolor"),k="outliers";h._hasPreCompStats?k="all":(x||T)&&(k="suspectedoutliers");var S=y(_+"points",k);S?(y("jitter",S==="all"?.3:0),y("pointpos",S==="all"?-1.5:0),y("marker.symbol"),y("marker.opacity"),y("marker.size"),y("marker.angle"),y("marker.color",h.line.color),y("marker.line.color"),y("marker.line.width"),S==="suspectedoutliers"&&(y("marker.line.outliercolor",h.marker.color),y("marker.line.outlierwidth")),y("selected.marker.color"),y("unselected.marker.color"),y("selected.marker.size"),y("unselected.marker.size"),y("text"),y("hovertext")):delete h.marker;var C=y("hoveron");C!=="all"&&C.indexOf("points")===-1||y("hovertemplate"),s.coerceSelectionMarkerOpacity(h,y)}i.exports={supplyDefaults:function(v,h,y,w){function _(P,E){return s.coerce(v,h,m,P,E)}if(g(v,h,_,w),h.visible!==!1){d(v,h,w,_),_("xhoverformat"),_("yhoverformat");var x=h._hasPreCompStats;x&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||y),_("line.width"),_("fillcolor",c.addOpacity(h.line.color,.5));var T=!1;if(x){var k=_("mean"),S=_("sd");k&&k.length&&(T=!0,S&&S.length&&(T="sd"))}_("whiskerwidth");var C,M=_("sizemode");M==="quartiles"&&(C=_("boxmean",T)),_("showwhiskers",M==="quartiles"),M!=="sd"&&C!=="sd"||_("sdmultiple"),_("width"),_("quartilemethod");var O=!1;if(x){var D=_("notchspan");D&&D.length&&(O=!0)}else s.validate(v.notchwidth,m.notchwidth)&&(O=!0);_("notched",O)&&_("notchwidth"),b(v,h,_,{prefix:"box"})}},crossTraceDefaults:function(v,h){var y,w;function _(k){return s.coerce(w._input,w,m,k)}for(var x=0;xS.lo&&(R.so=!0)}return O});k.enter().append("path").classed("point",!0),k.exit().remove(),k.call(c.translatePoints,h,y)}function p(m,g,b,v){var h,y,w=g.val,_=g.pos,x=!!_.rangebreaks,T=v.bPos,k=v.bPosPxOffset||0,S=b.boxmean||(b.meanline||{}).visible;Array.isArray(v.bdPos)?(h=v.bdPos[0],y=v.bdPos[1]):(h=v.bdPos,y=v.bdPos);var C=m.selectAll("path.mean").data(b.type==="box"&&b.boxmean||b.type==="violin"&&b.box.visible&&b.meanline.visible?u.identity:[]);C.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),C.exit().remove(),C.each(function(M){var O=_.c2l(M.pos+T,!0),D=_.l2p(O-h)+k,P=_.l2p(O+y)+k,E=x?(D+P)/2:_.l2p(O)+k,I=w.c2p(M.mean,!0),A=w.c2p(M.mean-M.sd,!0),F=w.c2p(M.mean+M.sd,!0);b.orientation==="h"?s.select(this).attr("d","M"+I+","+D+"V"+P+(S==="sd"?"m0,0L"+A+","+E+"L"+I+","+D+"L"+F+","+E+"Z":"")):s.select(this).attr("d","M"+D+","+I+"H"+P+(S==="sd"?"m0,0L"+E+","+A+"L"+D+","+I+"L"+E+","+F+"Z":""))})}i.exports={plot:function(m,g,b,v){var h=m._context.staticPlot,y=g.xaxis,w=g.yaxis;u.makeTraceGroups(v,b,"trace boxes").each(function(_){var x,T,k=s.select(this),S=_[0],C=S.t,M=S.trace;C.wdPos=C.bdPos*M.whiskerwidth,M.visible!==!0||C.empty?k.remove():(M.orientation==="h"?(x=w,T=y):(x=y,T=w),d(k,{pos:x,val:T},M,C,h),f(k,{x:y,y:w},M,C),p(k,{pos:x,val:T},M,C))})},plotBoxAndWhiskers:d,plotPoints:f,plotBoxMean:p}},24626:function(i){i.exports=function(o,a){var s,u,c=o.cd,d=o.xaxis,f=o.yaxis,p=[];if(a===!1)for(s=0;sf.level||f.starts.length&&d===f.level)}break;case"constraint":if(u.prefixBoundary=!1,u.edgepaths.length)return;var p=u.x.length,m=u.y.length,g=-1/0,b=1/0;for(s=0;s":y>g&&(u.prefixBoundary=!0);break;case"<":(yg||u.starts.length&&h===b)&&(u.prefixBoundary=!0);break;case"][":v=Math.min(y[0],y[1]),h=Math.max(y[0],y[1]),vg&&(u.prefixBoundary=!0)}}}},90654:function(i,o,a){var s=a(21081),u=a(86068),c=a(53572);i.exports={min:"zmin",max:"zmax",calc:function(d,f,p){var m=f.contours,g=f.line,b=m.size||1,v=m.coloring,h=u(f,{isColorbar:!0});if(v==="heatmap"){var y=s.extractOpts(f);p._fillgradient=y.reversescale?s.flipScale(y.colorscale):y.colorscale,p._zrange=[y.min,y.max]}else v==="fill"&&(p._fillcolor=h);p._line={color:v==="lines"?h:g.color,width:m.showlines!==!1?g.width:0,dash:g.dash},p._levels={start:m.start,end:c(m),size:b}}}},36914:function(i){i.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},83179:function(i,o,a){var s=a(92770),u=a(14523),c=a(7901),d=c.addOpacity,f=c.opacity,p=a(74808),m=p.CONSTRAINT_REDUCTION,g=p.COMPARISON_OPS2;i.exports=function(b,v,h,y,w,_){var x,T,k,S=v.contours,C=h("contours.operation");S._operation=m[C],function(M,O){var D;g.indexOf(O.operation)===-1?(M("contours.value",[0,1]),Array.isArray(O.value)?O.value.length>2?O.value=O.value.slice(2):O.length===0?O.value=[0,1]:O.length<2?(D=parseFloat(O.value[0]),O.value=[D,D+1]):O.value=[parseFloat(O.value[0]),parseFloat(O.value[1])]:s(O.value)&&(D=parseFloat(O.value),O.value=[D,D+1])):(M("contours.value",0),s(O.value)||(Array.isArray(O.value)?O.value=parseFloat(O.value[0]):O.value=0))}(h,S),C==="="?x=S.showlines=!0:(x=h("contours.showlines"),k=h("fillcolor",d((b.line||{}).color||w,.5))),x&&(T=h("line.color",k&&f(k)?d(v.fillcolor,1):w),h("line.width",2),h("line.dash")),h("line.smoothing"),u(h,y,T,_)}},64237:function(i,o,a){var s=a(74808),u=a(92770);function c(p,m){var g,b=Array.isArray(m);function v(h){return u(h)?+h:null}return s.COMPARISON_OPS2.indexOf(p)!==-1?g=v(b?m[0]:m):s.INTERVAL_OPS.indexOf(p)!==-1?g=b?[v(m[0]),v(m[1])]:[v(m),v(m)]:s.SET_OPS.indexOf(p)!==-1&&(g=b?m.map(v):[v(m)]),g}function d(p){return function(m){m=c(p,m);var g=Math.min(m[0],m[1]),b=Math.max(m[0],m[1]);return{start:g,end:b,size:b-g}}}function f(p){return function(m){return{start:m=c(p,m),end:1/0,size:1/0}}}i.exports={"[]":d("[]"),"][":d("]["),">":f(">"),"<":f("<"),"=":f("=")}},67217:function(i){i.exports=function(o,a,s,u){var c=u("contours.start"),d=u("contours.end"),f=c===!1||d===!1,p=s("contours.size");!(f?a.autocontour=!0:s("autocontour",!1))&&p||s("ncontours")}},84857:function(i,o,a){var s=a(71828);function u(c){return s.extendFlat({},c,{edgepaths:s.extendDeep([],c.edgepaths),paths:s.extendDeep([],c.paths),starts:s.extendDeep([],c.starts)})}i.exports=function(c,d){var f,p,m,g=function(h){return h.reverse()},b=function(h){return h};switch(d){case"=":case"<":return c;case">":for(c.length!==1&&s.warn("Contour data invalid for the specified inequality operation."),p=c[0],f=0;f1e3){s.warn("Too many contours, clipping at 1000",d);break}return b}},53572:function(i){i.exports=function(o){return o.end+o.size/1e6}},81696:function(i,o,a){var s=a(71828),u=a(36914);function c(p,m,g,b){return Math.abs(p[0]-m[0])20&&re?Q===208||Q===1114?ie=ae[0]===0?1:-1:se=ae[1]===0?1:-1:u.BOTTOMSTART.indexOf(Q)!==-1?se=1:u.LEFTSTART.indexOf(Q)!==-1?ie=1:u.TOPSTART.indexOf(Q)!==-1?se=-1:ie=-1,[ie,se]}(w,g,m),x=[f(p,m,[-_[0],-_[1]])],T=p.z.length,k=p.z[0].length,S=m.slice(),C=_.slice();for(h=0;h<1e4;h++){if(w>20?(w=u.CHOOSESADDLE[w][(_[0]||_[1])<0?0:1],p.crossings[y]=u.SADDLEREMAINDER[w]):delete p.crossings[y],!(_=u.NEWDELTA[w])){s.log("Found bad marching index:",w,m,p.level);break}x.push(f(p,m,_)),m[0]+=_[0],m[1]+=_[1],y=m.join(","),c(x[x.length-1],x[x.length-2],b,v)&&x.pop();var M=_[0]&&(m[0]<0||m[0]>k-2)||_[1]&&(m[1]<0||m[1]>T-2);if(m[0]===S[0]&&m[1]===S[1]&&_[0]===C[0]&&_[1]===C[1]||g&&M)break;w=p.crossings[y]}h===1e4&&s.log("Infinite loop in contour?");var O,D,P,E,I,A,F,j,z,B,N,R,q,Y,L,W=c(x[0],x[x.length-1],b,v),U=0,V=.2*p.smoothing,te=[],ee=0;for(h=1;h=ee;h--)if((O=te[h])=ee&&O+te[D]j&&z--,p.edgepaths[z]=N.concat(x,B));break}X||(p.edgepaths[j]=x.concat(B))}for(j=0;j=C)&&(p<=S&&(p=S),m>=C&&(m=C),b=Math.floor((m-p)/g)+1,v=0),w=0;wS&&(T.unshift(S),k.unshift(k[0])),T[T.length-1]c?0:1)+(d[0][1]>c?0:2)+(d[1][1]>c?0:4)+(d[1][0]>c?0:8);return f===5||f===10?c>(d[0][0]+d[0][1]+d[1][0]+d[1][1])/4?f===5?713:1114:f===5?104:208:f===15?0:f}i.exports=function(c){var d,f,p,m,g,b,v,h,y,w=c[0].z,_=w.length,x=w[0].length,T=_===2||x===2;for(f=0;f<_-1;f++)for(m=[],f===0&&(m=m.concat(s.BOTTOMSTART)),f===_-2&&(m=m.concat(s.TOPSTART)),d=0;d=0&&(D=L,E=I):Math.abs(O[1]-D[1])<.01?Math.abs(O[1]-L[1])<.01&&(L[0]-O[0])*(D[0]-L[0])>=0&&(D=L,E=I):u.log("endpt to newendpt is not vert. or horz.",O,D,L)}if(O=D,E>=0)break;j+="L"+D}if(E===C.edgepaths.length){u.log("unclosed perimeter path");break}z=E,(N=B.indexOf(z)===-1)&&(z=B[0],j+="Z")}for(z=0;zD.center?D.right-I:I-D.left)/(j+Math.abs(Math.sin(F)*E)),N=(A>D.middle?D.bottom-A:A-D.top)/(Math.abs(z)+Math.cos(F)*E);if(B<1||N<1)return 1/0;var R=x.EDGECOST*(1/(B-1)+1/(N-1));R+=x.ANGLECOST*F*F;for(var q=I-j,Y=A-z,L=I+j,W=A+z,U=0;U2*x.MAXCOST)break;N&&(I/=2),A=(E=F-I/2)+1.5*I}if(B<=x.MAXCOST)return j},o.addLabelData=function(C,M,O,D){var P=M.fontSize,E=M.width+P/3,I=Math.max(0,M.height-P/3),A=C.x,F=C.y,j=C.theta,z=Math.sin(j),B=Math.cos(j),N=function(q,Y){return[A+q*B-Y*z,F+q*z+Y*B]},R=[N(-E/2,-I/2),N(-E/2,I/2),N(E/2,I/2),N(E/2,-I/2)];O.push({text:M.text,x:A,y:F,dy:M.dy,theta:j,level:M.level,width:E,height:I}),D.push(R)},o.drawLabels=function(C,M,O,D,P){var E=C.selectAll("text").data(M,function(F){return F.text+","+F.x+","+F.y+","+F.theta});if(E.exit().remove(),E.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(F){var j=F.x+Math.sin(F.theta)*F.dy,z=F.y-Math.cos(F.theta)*F.dy;s.select(this).text(F.text).attr({x:j,y:z,transform:"rotate("+180*F.theta/Math.PI+" "+j+" "+z+")"}).call(f.convertToTspans,O)}),P){for(var I="",A=0;Ap.end&&(p.start=p.end=(p.start+p.end)/2),d._input.contours||(d._input.contours={}),u.extendFlat(d._input.contours,{start:p.start,end:p.end,size:p.size}),d._input.autocontour=!0}else if(p.type!=="constraint"){var v,h=p.start,y=p.end,w=d._input.contours;h>y&&(p.start=w.start=y,y=p.end=w.end=h,h=p.start),p.size>0||(v=h===y?1:c(h,y,d.ncontours).dtick,w.size=p.size=v)}}},84426:function(i,o,a){var s=a(39898),u=a(91424),c=a(70035),d=a(86068);i.exports=function(f){var p=s.select(f).selectAll("g.contour");p.style("opacity",function(m){return m[0].trace.opacity}),p.each(function(m){var g=s.select(this),b=m[0].trace,v=b.contours,h=b.line,y=v.size||1,w=v.start,_=v.type==="constraint",x=!_&&v.coloring==="lines",T=!_&&v.coloring==="fill",k=x||T?d(b):null;g.selectAll("g.contourlevel").each(function(M){s.select(this).selectAll("path").call(u.lineGroupStyle,h.width,x?k(M.level):h.color,h.dash)});var S=v.labelfont;if(g.selectAll("g.contourlabels text").each(function(M){u.font(s.select(this),{family:S.family,size:S.size,color:S.color||(x?k(M.level):h.color)})}),_)g.selectAll("g.contourfill path").style("fill",b.fillcolor);else if(T){var C;g.selectAll("g.contourfill path").style("fill",function(M){return C===void 0&&(C=M.level),k(M.level+.5*y)}),C===void 0&&(C=w),g.selectAll("g.contourbg path").style("fill",k(C-.5*y))}}),c(f)}},8724:function(i,o,a){var s=a(1586),u=a(14523);i.exports=function(c,d,f,p,m){var g,b=f("contours.coloring"),v="";b==="fill"&&(g=f("contours.showlines")),g!==!1&&(b!=="lines"&&(v=f("line.color","#000")),f("line.width",.5),f("line.dash")),b!=="none"&&(c.showlegend!==!0&&(d.showlegend=!1),d._dfltShowLegend=!1,s(c,d,p,f,{prefix:"",cLetter:"z"})),f("line.smoothing"),u(f,p,v,m)}},21606:function(i,o,a){var s=a(82196),u=a(9012),c=a(41940),d=a(12663).axisHoverFormat,f=a(5386).fF,p=a(5386).si,m=a(50693),g=a(1426).extendFlat;i.exports=g({z:{valType:"data_array",editType:"calc"},x:g({},s.x,{impliedEdits:{xtype:"array"}}),x0:g({},s.x0,{impliedEdits:{xtype:"scaled"}}),dx:g({},s.dx,{impliedEdits:{xtype:"scaled"}}),y:g({},s.y,{impliedEdits:{ytype:"array"}}),y0:g({},s.y0,{impliedEdits:{ytype:"scaled"}}),dy:g({},s.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:g({},s.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:g({},s.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:g({},s.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:g({},s.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:g({},s.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:g({},s.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:d("x"),yhoverformat:d("y"),zhoverformat:d("z",1),hovertemplate:f(),texttemplate:p({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:c({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:g({},u.showlegend,{dflt:!1})},{transforms:void 0},m("",{cLetter:"z",autoColorDflt:!1}))},90757:function(i,o,a){var s=a(73972),u=a(71828),c=a(89298),d=a(42973),f=a(17562),p=a(78803),m=a(68296),g=a(4742),b=a(824),v=a(43907),h=a(70769),y=a(50606).BADNUM;function w(_){for(var x=[],T=_.length,k=0;k1){var X=(G[G.length-1]-G[0])/(G.length-1),Q=Math.abs(X/100);for(I=0;IQ)return!1}return!0}(F.rangebreaks||j.rangebreaks)&&(E=function(G,X,Q){for(var re=[],ae=-1,ie=0;ie=0;m--)(g=((y[[(d=(p=w[m])[0])-1,f=p[1]]]||T)[2]+(y[[d+1,f]]||T)[2]+(y[[d,f-1]]||T)[2]+(y[[d,f+1]]||T)[2])/20)&&(b[p]=[d,f,g],w.splice(m,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(p in b)y[p]=b[p],h.push(b[p])}return h.sort(function(S,C){return C[2]-S[2]})}},46248:function(i,o,a){var s=a(30211),u=a(71828),c=a(89298),d=a(21081).extractOpts;i.exports=function(f,p,m,g,b){b||(b={});var v,h,y,w,_=b.isContour,x=f.cd[0],T=x.trace,k=f.xa,S=f.ya,C=x.x,M=x.y,O=x.z,D=x.xCenter,P=x.yCenter,E=x.zmask,I=T.zhoverformat,A=C,F=M;if(f.index!==!1){try{y=Math.round(f.index[1]),w=Math.round(f.index[0])}catch{return void u.error("Error hovering on heatmap, pointNumber must be [row,col], found:",f.index)}if(y<0||y>=O[0].length||w<0||w>O.length)return}else{if(s.inbox(p-C[0],p-C[C.length-1],0)>0||s.inbox(m-M[0],m-M[M.length-1],0)>0)return;if(_){var j;for(A=[2*C[0]-C[1]],j=1;jC&&(O=Math.max(O,Math.abs(f[b][v]-S)/(M-C))))}return O}i.exports=function(f,p){var m,g=1;for(d(f,p),m=0;m.01;m++)g=d(f,p,c(g));return g>.01&&s.log("interp2d didn't converge quickly",g),f}},58623:function(i,o,a){var s=a(71828);i.exports=function(u,c){u("texttemplate");var d=s.extendFlat({},c.font,{color:"auto",size:"auto"});s.coerceFont(u,"textfont",d)}},70769:function(i,o,a){var s=a(73972),u=a(71828).isArrayOrTypedArray;i.exports=function(c,d,f,p,m,g){var b,v,h,y=[],w=s.traceIs(c,"contour"),_=s.traceIs(c,"histogram"),x=s.traceIs(c,"gl2d");if(u(d)&&d.length>1&&!_&&g.type!=="category"){var T=d.length;if(!(T<=m))return w?d.slice(0,m):d.slice(0,m+1);if(w||x)y=d.slice(0,m);else if(m===1)y=[d[0]-.5,d[0]+.5];else{for(y=[1.5*d[0]-.5*d[1]],h=1;h0;)B=A.c2p(G[Y]),Y--;for(B0;)q=F.c2p(X[Y]),Y--;q=A._length||B<=0||R>=F._length||q<=0)return U.selectAll("image").data([]).exit().remove(),void S(U);Pe==="fast"?(ce=he,we=se):(ce=K,we=ne);var de=document.createElement("canvas");de.width=ce,de.height=we;var _e,ue,pe=de.getContext("2d",{willReadFrequently:!0}),xe=h(te,{noNumericCheck:!0,returnArray:!0});Pe==="fast"?(_e=Se?function(kn){return he-1-kn}:p.identity,ue=Oe?function(kn){return se-1-kn}:p.identity):(_e=function(kn){return p.constrain(Math.round(A.c2p(G[kn])-z),0,K)},ue=function(kn){return p.constrain(Math.round(F.c2p(X[kn])-R),0,ne)});var ye,Te,Ae,Re,Le=ue(0),$e=[Le,Le],Fe=Se?0:1,Be=Oe?0:1,Ue=0,qe=0,Xe=0,ot=0;function st(kn,un){if(kn!==void 0){var tn=xe(kn);return tn[0]=Math.round(tn[0]),tn[1]=Math.round(tn[1]),tn[2]=Math.round(tn[2]),Ue+=un,qe+=tn[0]*un,Xe+=tn[1]*un,ot+=tn[2]*un,tn}return[0,0,0,0]}function dt(kn,un,tn,Fn){var Rn=kn[tn.bin0];if(Rn===void 0)return st(void 0,1);var Bn,En=kn[tn.bin1],Wn=un[tn.bin0],gr=un[tn.bin1],Va=En-Rn||0,ro=Wn-Rn||0;return Bn=En===void 0?gr===void 0?0:Wn===void 0?2*(gr-Rn):2*(2*gr-Wn-Rn)/3:gr===void 0?Wn===void 0?0:2*(2*Rn-En-Wn)/3:Wn===void 0?2*(2*gr-En-Rn)/3:gr+Rn-En-Wn,st(Rn+tn.frac*Va+Fn.frac*(ro+tn.frac*Bn))}if(Pe!=="default"){var vt,We=0;try{vt=new Uint8Array(ce*we*4)}catch{vt=new Array(ce*we*4)}if(Pe==="smooth"){var ze,tt,it,St=Q||G,Ze=re||X,ut=new Array(St.length),ht=new Array(Ze.length),Rt=new Array(K),Ct=Q?M:C,Wt=re?M:C;for(Y=0;Ygt||gt>F._length))for(L=Yt;Lxt||xt>A._length)){var Ut=g({x:mt,y:Lt},te,D._fullLayout);Ut.x=mt,Ut.y=Lt;var It=V.z[Y][L];It===void 0?(Ut.z="",Ut.zLabel=""):(Ut.z=It,Ut.zLabel=f.tickText(ct,It,"hover").text);var zt=V.text&&V.text[Y]&&V.text[Y][L];zt!==void 0&&zt!==!1||(zt=""),Ut.text=zt;var kt=p.texttemplateString(Ye,Ut,D._fullLayout._d3locale,Ut,te._meta||{});if(kt){var Ot=kt.split("
"),At=Ot.length,Nt=0;for(W=0;W0&&(C=!0);for(var D=0;Dp){var m=p-d[u];return d[u]=p,m}}return 0},max:function(u,c,d,f){var p=f[c];if(s(p)){if(p=Number(p),!s(d[u]))return d[u]=p,p;if(d[u]m?w>d?w>1.1*u?u:w>1.1*c?c:d:w>f?f:w>p?p:m:Math.pow(10,Math.floor(Math.log(w)/Math.LN10))}function h(w,_,x,T,k,S){if(T&&w>d){var C=y(_,k,S),M=y(x,k,S),O=w===u?0:1;return C[O]!==M[O]}return Math.floor(x/w)-Math.floor(_/w)>.1}function y(w,_,x){var T=_.c2d(w,u,x).split("-");return T[0]===""&&(T.unshift(),T[0]="-"+T[0]),T}i.exports=function(w,_,x,T,k){var S,C,M=-1.1*_,O=-.1*_,D=w-O,P=x[0],E=x[1],I=Math.min(b(P+O,P+D,T,k),b(E+O,E+D,T,k)),A=Math.min(b(P+M,P+O,T,k),b(E+M,E+O,T,k));if(I>A&&Ad){var F=S===u?1:6,j=S===u?"M12":"M1";return function(z,B){var N=T.c2d(z,u,k),R=N.indexOf("-",F);R>0&&(N=N.substr(0,R));var q=T.d2c(N,0,k);if(qw.r2l(X)&&(re=d.tickIncrement(re,A.size,!0,C)),ee.start=w.l2r(re),G||u.nestedProperty(y,P+".start").set(ee.start)}var ae=A.end,ie=w.r2l(te.end),se=ie!==void 0;if((A.endFound||se)&&ie!==w.r2l(ae)){var he=se?ie:u.aggNums(Math.max,null,M);ee.end=w.l2r(he),se||u.nestedProperty(y,P+".start").set(ee.end)}var Se="autobin"+_;return y._input[Se]===!1&&(y._input[P]=u.extendFlat({},y[P]||{}),delete y._input[Se],delete y[Se]),[ee,M]}i.exports={calc:function(h,y){var w,_,x,T,k=[],S=[],C=y.orientation==="h",M=d.getFromId(h,C?y.yaxis:y.xaxis),O=C?"y":"x",D={x:"y",y:"x"}[O],P=y[O+"calendar"],E=y.cumulative,I=v(h,y,M,O),A=I[0],F=I[1],j=typeof A.size=="string",z=[],B=j?z:A,N=[],R=[],q=[],Y=0,L=y.histnorm,W=y.histfunc,U=L.indexOf("density")!==-1;E.enabled&&U&&(L=L.replace(/ ?density$/,""),U=!1);var V,te=W==="max"||W==="min"?null:0,ee=p.count,H=m[L],Z=!1,G=function(ne){return M.r2c(ne,0,P)};for(u.isArrayOrTypedArray(y[D])&&W!=="count"&&(V=y[D],Z=W==="avg",ee=p[W]),w=G(A.start),x=G(A.end)+(w-d.tickIncrement(w,A.size,!1,P))/1e6;w=0&&T=0;ue--)Te(ue);else if(de==="increasing"){for(ue=1;ue=0;ue--)ne[ue]+=ne[ue+1];_e==="exclude"&&(ne.push(0),ne.shift())}}(S,E.direction,E.currentbin);var Pe=Math.min(k.length,S.length),Me=[],ce=0,we=Pe-1;for(w=0;w=ce;w--)if(S[w]){we=w;break}for(w=ce;w<=we;w++)if(s(k[w])&&s(S[w])){var K={p:k[w],s:S[w],b:0};E.enabled||(K.pts=q[w],ie?K.ph0=K.ph1=q[w].length?F[q[w][0]]:k[w]:(y._computePh=!0,K.ph0=re(z[w]),K.ph1=re(z[w+1],!0))),Me.push(K)}return Me.length===1&&(Me[0].width1=d.tickIncrement(Me[0].p,A.size,!1,P)-Me[0].p),f(Me,y),u.isArrayOrTypedArray(y.selectedpoints)&&u.tagSelected(Me,y,Se),Me},calcAllAutoBins:v}},72406:function(i){i.exports={eventDataKeys:["binNumber"]}},82222:function(i,o,a){var s=a(71828),u=a(41675),c=a(73972).traceIs,d=a(26125),f=s.nestedProperty,p=a(99082).getAxisGroup,m=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],g=["x","y"];i.exports=function(b,v){var h,y,w,_,x,T,k,S=v._histogramBinOpts={},C=[],M={},O=[];function D(U,V){return s.coerce(h._input,h,h._module.attributes,U,V)}function P(U){return U.orientation==="v"?"x":"y"}function E(U,V,te){var ee=U.uid+"__"+te;V||(V=ee);var H=function(Q,re){return u.getFromTrace({_fullLayout:v},Q,re).type}(U,te),Z=U[te+"calendar"]||"",G=S[V],X=!0;G&&(H===G.axType&&Z===G.calendar?(X=!1,G.traces.push(U),G.dirs.push(te)):(V=ee,H!==G.axType&&s.warn(["Attempted to group the bins of trace",U.index,"set on a","type:"+H,"axis","with bins on","type:"+G.axType,"axis."].join(" ")),Z!==G.calendar&&s.warn(["Attempted to group the bins of trace",U.index,"set with a",Z,"calendar","with bins",G.calendar?"on a "+G.calendar+" calendar":"w/o a set calendar"].join(" ")))),X&&(S[V]={traces:[U],dirs:[te],axType:H,calendar:U[te+"calendar"]||""}),U["_"+te+"bingroup"]=V}for(x=0;xz&&I.splice(z,I.length-z),j.length>z&&j.splice(z,j.length-z);var B=[],N=[],R=[],q=typeof E.size=="string",Y=typeof F.size=="string",L=[],W=[],U=q?L:E,V=Y?W:F,te=0,ee=[],H=[],Z=y.histnorm,G=y.histfunc,X=Z.indexOf("density")!==-1,Q=G==="max"||G==="min"?null:0,re=c.count,ae=d[Z],ie=!1,se=[],he=[],Se="z"in y?y.z:"marker"in y&&Array.isArray(y.marker.color)?y.marker.color:"";Se&&G!=="count"&&(ie=G==="avg",re=c[G]);var Oe=E.size,Pe=O(E.start),Me=O(E.end)+(Pe-u.tickIncrement(Pe,Oe,!1,C))/1e6;for(w=Pe;w=0&&x=0&&T0||s.inbox(p-m.y0,p-(m.y0+m.h*g.dy),0)>0)){var h,y=Math.floor((f-m.x0)/g.dx),w=Math.floor(Math.abs(p-m.y0)/g.dy);if(g._hasZ?h=m.z[w][y]:g._hasSource&&(h=g._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(y,w,1,1).data),h){var _,x=m.hi||g.hoverinfo;if(x){var T=x.split("+");T.indexOf("all")!==-1&&(T=["color"]),T.indexOf("color")!==-1&&(_=!0)}var k,S=c.colormodel[g.colormodel],C=S.colormodel||g.colormodel,M=C.length,O=g._scaler(h),D=S.suffix,P=[];(g.hovertemplate||_)&&(P.push("["+[O[0]+D[0],O[1]+D[1],O[2]+D[2]].join(", ")),M===4&&P.push(", "+O[3]+D[3]),P.push("]"),P=P.join(""),d.extraText=C.toUpperCase()+": "+P),Array.isArray(g.hovertext)&&Array.isArray(g.hovertext[w])?k=g.hovertext[w][y]:Array.isArray(g.text)&&Array.isArray(g.text[w])&&(k=g.text[w][y]);var E=v.c2p(m.y0+(w+.5)*g.dy),I=m.x0+(y+.5)*g.dx,A=m.y0+(w+.5)*g.dy,F="["+h.slice(0,g.colormodel.length).join(", ")+"]";return[u.extendFlat(d,{index:[w,y],x0:b.c2p(m.x0+y*g.dx),x1:b.c2p(m.x0+(y+1)*g.dx),y0:E,y1:E,color:O,xVal:I,xLabelVal:I,yVal:A,yLabelVal:A,zLabelVal:F,text:k,hovertemplateLabels:{zLabel:F,colorLabel:P,"color[0]Label":O[0]+D[0],"color[1]Label":O[1]+D[1],"color[2]Label":O[2]+D[2],"color[3]Label":O[3]+D[3]}})]}}}},94507:function(i,o,a){i.exports={attributes:a(17230),supplyDefaults:a(13245),calc:a(71113),plot:a(60775),style:a(12826),hoverPoints:a(28749),eventData:a(30835),moduleType:"trace",name:"image",basePlotModule:a(93612),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},60775:function(i,o,a){var s=a(39898),u=a(71828),c=u.strTranslate,d=a(77922),f=a(51877),p=a(3883),m=a(32396).STYLE;i.exports=function(g,b,v,h){var y=b.xaxis,w=b.yaxis,_=!g._context._exportedPlot&&p();u.makeTraceGroups(h,v,"im").each(function(x){var T=s.select(this),k=x[0],S=k.trace,C=(S.zsmooth==="fast"||S.zsmooth===!1&&_)&&!S._hasZ&&S._hasSource&&y.type==="linear"&&w.type==="linear";S._realImage=C;var M,O,D,P,E,I,A=k.z,F=k.x0,j=k.y0,z=k.w,B=k.h,N=S.dx,R=S.dy;for(I=0;M===void 0&&I0;)O=y.c2p(F+I*N),I--;for(I=0;P===void 0&&I0;)E=w.c2p(j+I*R),I--;OV[0];if(te||ee){var H=M+q/2,Z=P+Y/2;W+="transform:"+c(H+"px",Z+"px")+"scale("+(te?-1:1)+","+(ee?-1:1)+")"+c(-H+"px",-Z+"px")+";"}}L.attr("style",W);var G=new Promise(function(Q){if(S._hasZ)Q();else if(S._hasSource)if(S._canvas&&S._canvas.el.width===z&&S._canvas.el.height===B&&S._canvas.source===S.source)Q();else{var re=document.createElement("canvas");re.width=z,re.height=B;var ae=re.getContext("2d",{willReadFrequently:!0});S._image=S._image||new Image;var ie=S._image;ie.onload=function(){ae.drawImage(ie,0,0),S._canvas={el:re,source:S.source},Q()},ie.setAttribute("src",S.source)}}).then(function(){var Q,re;if(S._hasZ)re=X(function(ie,se){return A[se][ie]}),Q=re.toDataURL("image/png");else if(S._hasSource)if(C)Q=S.source;else{var ae=S._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,z,B).data;re=X(function(ie,se){var he=4*(se*z+ie);return[ae[he],ae[he+1],ae[he+2],ae[he+3]]}),Q=re.toDataURL("image/png")}L.attr({"xlink:href":Q,height:Y,width:q,x:M,y:P})});g._promises.push(G)}function X(Q){var re=document.createElement("canvas");re.width=q,re.height=Y;var ae,ie=re.getContext("2d",{willReadFrequently:!0}),se=function(de){return u.constrain(Math.round(y.c2p(F+de*N)-M),0,q)},he=function(de){return u.constrain(Math.round(w.c2p(j+de*R)-P),0,Y)},Se=f.colormodel[S.colormodel],Oe=Se.colormodel||S.colormodel,Pe=Se.fmt;for(I=0;I=0}),(g.type==="funnelarea"?D:g.sort)&&h.sort(function(F,j){return j.v-F.v}),h[0]&&(h[0].vTotal=O),h},crossTraceCalc:function(m,g){var b=(g||{}).type;b||(b="pie");var v=m._fullLayout,h=m.calcdata,y=v[b+"colorway"],w=v["_"+b+"colormap"];v["extend"+b+"colors"]&&(y=p(y,d));for(var _=0,x=0;x0){_=!0;break}}_||(w=0)}return{hasLabels:h,hasValues:y,len:w}}function g(b,v,h,y,w){y("marker.line.width")&&y("marker.line.color",w?void 0:h.paper_bgcolor);var _=y("marker.colors");p(y,"marker.pattern",_),b.marker&&!v.marker.pattern.fgcolor&&(v.marker.pattern.fgcolor=b.marker.colors),v.marker.pattern.bgcolor||(v.marker.pattern.bgcolor=h.paper_bgcolor)}i.exports={handleLabelsAndValues:m,handleMarkerDefaults:g,supplyDefaults:function(b,v,h,y){function w(D,P){return u.coerce(b,v,c,D,P)}var _=m(w("labels"),w("values")),x=_.len;if(v._hasLabels=_.hasLabels,v._hasValues=_.hasValues,!v._hasLabels&&v._hasValues&&(w("label0"),w("dlabel")),x){v._length=x,g(b,v,y,w,!0),w("scalegroup");var T,k=w("text"),S=w("texttemplate");if(S||(T=w("textinfo",Array.isArray(k)?"text+percent":"percent")),w("hovertext"),w("hovertemplate"),S||T&&T!=="none"){var C=w("textposition");f(b,v,y,w,C,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(C)||C==="auto"||C==="outside")&&w("automargin"),(C==="inside"||C==="auto"||Array.isArray(C))&&w("insidetextorientation")}d(v,y,w);var M=w("hole");if(w("title.text")){var O=w("title.position",M?"middle center":"top center");M||O!=="middle center"||(v.title.position="top center"),u.coerceFont(w,"title.font",y.font)}w("sort"),w("direction"),w("rotation"),w("pull")}else v.visible=!1}}},20007:function(i,o,a){var s=a(23469).appendArrayMultiPointValues;i.exports=function(u,c){var d={curveNumber:c.index,pointNumbers:u.pts,data:c._input,fullData:c,label:u.label,color:u.color,value:u.v,percent:u.percent,text:u.text,bbox:u.bbox,v:u.v};return u.pts.length===1&&(d.pointNumber=d.i=u.pts[0]),s(d,c,u.pts),c.type==="funnelarea"&&(delete d.v,delete d.i),d}},22209:function(i,o,a){var s=a(91424),u=a(7901);i.exports=function(c,d,f,p){var m=f.marker.pattern;m&&m.shape?s.pointStyle(c,f,p,d):u.fill(c,d.color)}},53581:function(i,o,a){var s=a(71828);function u(c){return c.indexOf("e")!==-1?c.replace(/[.]?0+e/,"e"):c.indexOf(".")!==-1?c.replace(/[.]?0+$/,""):c}o.formatPiePercent=function(c,d){var f=u((100*c).toPrecision(3));return s.numSeparate(f,d)+"%"},o.formatPieValue=function(c,d){var f=u(c.toPrecision(10));return s.numSeparate(f,d)},o.getFirstFilled=function(c,d){if(Array.isArray(c))for(var f=0;f"),name:Q.hovertemplate||re.indexOf("name")!==-1?Q.name:void 0,idealAlign:G.pxmid[0]<0?"left":"right",color:_.castOption(Pe.bgcolor,G.pts)||G.color,borderColor:_.castOption(Pe.bordercolor,G.pts),fontFamily:_.castOption(Me.family,G.pts),fontSize:_.castOption(Me.size,G.pts),fontColor:_.castOption(Me.color,G.pts),nameLength:_.castOption(Pe.namelength,G.pts),textAlign:_.castOption(Pe.align,G.pts),hovertemplate:_.castOption(Q.hovertemplate,G.pts),hovertemplateLabels:G,eventData:[x(G,Q)]},{container:X._hoverlayer.node(),outerContainer:X._paper.node(),gd:W,inOut_bbox:ce}),G.bbox=ce[0],H._hasHoverLabel=!0}H._hasHoverEvent=!0,W.emit("plotly_hover",{points:[x(G,Q)],event:s.event})}}),L.on("mouseout",function(G){var X=W._fullLayout,Q=W._fullData[H.index],re=s.select(this).datum();H._hasHoverEvent&&(G.originalEvent=s.event,W.emit("plotly_unhover",{points:[x(re,Q)],event:s.event}),H._hasHoverEvent=!1),H._hasHoverLabel&&(c.loneUnhover(X._hoverlayer.node()),H._hasHoverLabel=!1)}),L.on("click",function(G){var X=W._fullLayout,Q=W._fullData[H.index];W._dragging||X.hovermode===!1||(W._hoverdata=[x(G,Q)],c.click(W,s.event))})}function S(L,W,U){var V=_.castOption(L.insidetextfont.color,W.pts);!V&&L._input.textfont&&(V=_.castOption(L._input.textfont.color,W.pts));var te=_.castOption(L.insidetextfont.family,W.pts)||_.castOption(L.textfont.family,W.pts)||U.family,ee=_.castOption(L.insidetextfont.size,W.pts)||_.castOption(L.textfont.size,W.pts)||U.size;return{color:V||d.contrast(W.color),family:te,size:ee}}function C(L,W){for(var U,V,te=0;teye&&ye>Ae||Te=-4;Se-=2)Oe(Math.PI*Se,"tan");for(Se=4;Se>=-4;Se-=2)Oe(Math.PI*(Se+1),"tan")}if(re||ie){for(Se=4;Se>=-4;Se-=2)Oe(Math.PI*(Se+1.5),"rad");for(Se=4;Se>=-4;Se-=2)Oe(Math.PI*(Se+.5),"rad")}}if(Z||se||re){var Pe=Math.sqrt(L.width*L.width+L.height*L.height);if((ee={scale:te*V*2/Pe,rCenter:1-te,rotate:0}).textPosAngle=(W.startangle+W.stopangle)/2,ee.scale>=1)return ee;he.push(ee)}(se||ie)&&((ee=O(L,V,H,G,X)).textPosAngle=(W.startangle+W.stopangle)/2,he.push(ee)),(se||ae)&&((ee=D(L,V,H,G,X)).textPosAngle=(W.startangle+W.stopangle)/2,he.push(ee));for(var Me=0,ce=0,we=0;we=1)break}return he[Me]}function O(L,W,U,V,te){W=Math.max(0,W-2*w);var ee=L.width/L.height,H=I(ee,V,W,U);return{scale:2*H/L.height,rCenter:P(ee,H/W),rotate:E(te)}}function D(L,W,U,V,te){W=Math.max(0,W-2*w);var ee=L.height/L.width,H=I(ee,V,W,U);return{scale:2*H/L.width,rCenter:P(ee,H/W),rotate:E(te+Math.PI/2)}}function P(L,W){return Math.cos(W)-L*W}function E(L){return(180/Math.PI*L+720)%180-90}function I(L,W,U,V){var te=L+1/(2*Math.tan(W));return U*Math.min(1/(Math.sqrt(te*te+.5)+te),V/(Math.sqrt(L*L+V/2)+L))}function A(L,W){return L.v!==W.vTotal||W.trace.hole?Math.min(1/(1+1/Math.sin(L.halfangle)),L.ring/2):1}function F(L,W){var U=W.pxmid[0],V=W.pxmid[1],te=L.width/2,ee=L.height/2;return U<0&&(te*=-1),V<0&&(ee*=-1),{scale:1,rCenter:1,rotate:0,x:te+Math.abs(ee)*(te>0?1:-1)/2,y:ee/(1+U*U/(V*V)),outside:!0}}function j(L,W){var U,V,te,ee=L.trace,H={x:L.cx,y:L.cy},Z={tx:0,ty:0};Z.ty+=ee.title.font.size,te=B(ee),ee.title.position.indexOf("top")!==-1?(H.y-=(1+te)*L.r,Z.ty-=L.titleBox.height):ee.title.position.indexOf("bottom")!==-1&&(H.y+=(1+te)*L.r);var G,X=L.r/((G=L.trace.aspectratio)===void 0?1:G),Q=W.w*(ee.domain.x[1]-ee.domain.x[0])/2;return ee.title.position.indexOf("left")!==-1?(Q+=X,H.x-=(1+te)*X,Z.tx+=L.titleBox.width/2):ee.title.position.indexOf("center")!==-1?Q*=2:ee.title.position.indexOf("right")!==-1&&(Q+=X,H.x+=(1+te)*X,Z.tx-=L.titleBox.width/2),U=Q/L.titleBox.width,V=z(L,W)/L.titleBox.height,{x:H.x,y:H.y,scale:Math.min(U,V),tx:Z.tx,ty:Z.ty}}function z(L,W){var U=L.trace,V=W.h*(U.domain.y[1]-U.domain.y[0]);return Math.min(L.titleBox.height,V/2)}function B(L){var W,U=L.pull;if(!U)return 0;if(Array.isArray(U))for(U=0,W=0;WU&&(U=L.pull[W]);return U}function N(L,W){for(var U=[],V=0;V1?we=(ce=ie.r)/he.aspectratio:ce=(we=ie.r)*he.aspectratio,Me=(ce*=(1+he.baseratio)/2)*we}Oe=Math.min(Oe,Me/ie.vTotal)}for(se=0;se")}if(ee){var Se=p.castOption(te,W.i,"texttemplate");if(Se){var Oe=function(Me){return{label:Me.label,value:Me.v,valueLabel:_.formatPieValue(Me.v,V.separators),percent:Me.v/U.vTotal,percentLabel:_.formatPiePercent(Me.v/U.vTotal,V.separators),color:Me.color,text:Me.text,customdata:p.castOption(te,Me.i,"customdata")}}(W),Pe=_.getFirstFilled(te.text,W.pts);(T(Pe)||Pe==="")&&(Oe.text=Pe),W.text=p.texttemplateString(Se,Oe,L._fullLayout._d3locale,Oe,te._meta||{})}else W.text=""}}function Y(L,W){var U=L.rotate*Math.PI/180,V=Math.cos(U),te=Math.sin(U),ee=(W.left+W.right)/2,H=(W.top+W.bottom)/2;L.textX=ee*V-H*te,L.textY=ee*te+H*V,L.noCenter=!0}i.exports={plot:function(L,W){var U=L._context.staticPlot,V=L._fullLayout,te=V._size;y("pie",V),C(W,L),N(W,te);var ee=p.makeTraceGroups(V._pielayer,W,"trace").each(function(H){var Z=s.select(this),G=H[0],X=G.trace;(function(Q){var re,ae,ie,se=Q[0],he=se.r,Se=se.trace,Oe=_.getRotationAngle(Se.rotation),Pe=2*Math.PI/se.vTotal,Me="px0",ce="px1";if(Se.direction==="counterclockwise"){for(re=0;rese.vTotal/2?1:0,ae.halfangle=Math.PI*Math.min(ae.v/se.vTotal,.5),ae.ring=1-Se.hole,ae.rInscribed=A(ae,se))})(H),Z.attr("stroke-linejoin","round"),Z.each(function(){var Q=s.select(this).selectAll("g.slice").data(H);Q.enter().append("g").classed("slice",!0),Q.exit().remove();var re=[[[],[]],[[],[]]],ae=!1;Q.each(function(ce,we){if(ce.hidden)s.select(this).selectAll("path,g").remove();else{ce.pointNumber=ce.i,ce.curveNumber=X.index,re[ce.pxmid[1]<0?0:1][ce.pxmid[0]<0?0:1].push(ce);var K=G.cx,ne=G.cy,de=s.select(this),_e=de.selectAll("path.surface").data([ce]);if(_e.enter().append("path").classed("surface",!0).style({"pointer-events":U?"none":"all"}),de.call(k,L,H),X.pull){var ue=+_.castOption(X.pull,ce.pts)||0;ue>0&&(K+=ue*ce.pxmid[0],ne+=ue*ce.pxmid[1])}ce.cxFinal=K,ce.cyFinal=ne;var pe=X.hole;if(ce.v===G.vTotal){var xe="M"+(K+ce.px0[0])+","+(ne+ce.px0[1])+Le(ce.px0,ce.pxmid,!0,1)+Le(ce.pxmid,ce.px0,!0,1)+"Z";pe?_e.attr("d","M"+(K+pe*ce.px0[0])+","+(ne+pe*ce.px0[1])+Le(ce.px0,ce.pxmid,!1,pe)+Le(ce.pxmid,ce.px0,!1,pe)+"Z"+xe):_e.attr("d",xe)}else{var ye=Le(ce.px0,ce.px1,!0,1);if(pe){var Te=1-pe;_e.attr("d","M"+(K+pe*ce.px1[0])+","+(ne+pe*ce.px1[1])+Le(ce.px1,ce.px0,!1,pe)+"l"+Te*ce.px0[0]+","+Te*ce.px0[1]+ye+"Z")}else _e.attr("d","M"+K+","+ne+"l"+ce.px0[0]+","+ce.px0[1]+ye+"Z")}q(L,ce,G);var Ae=_.castOption(X.textposition,ce.pts),Re=de.selectAll("g.slicetext").data(ce.text&&Ae!=="none"?[0]:[]);Re.enter().append("g").classed("slicetext",!0),Re.exit().remove(),Re.each(function(){var $e=p.ensureSingle(s.select(this),"text","",function(dt){dt.attr("data-notex",1)}),Fe=p.ensureUniformFontSize(L,Ae==="outside"?function(dt,vt,We){return{color:_.castOption(dt.outsidetextfont.color,vt.pts)||_.castOption(dt.textfont.color,vt.pts)||We.color,family:_.castOption(dt.outsidetextfont.family,vt.pts)||_.castOption(dt.textfont.family,vt.pts)||We.family,size:_.castOption(dt.outsidetextfont.size,vt.pts)||_.castOption(dt.textfont.size,vt.pts)||We.size}}(X,ce,V.font):S(X,ce,V.font));$e.text(ce.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(f.font,Fe).call(b.convertToTspans,L);var Be,Ue=f.bBox($e.node());if(Ae==="outside")Be=F(Ue,ce);else if(Be=M(Ue,ce,G),Ae==="auto"&&Be.scale<1){var qe=p.ensureUniformFontSize(L,X.outsidetextfont);$e.call(f.font,qe),Be=F(Ue=f.bBox($e.node()),ce)}var Xe=Be.textPosAngle,ot=Xe===void 0?ce.pxmid:R(G.r,Xe);if(Be.targetX=K+ot[0]*Be.rCenter+(Be.x||0),Be.targetY=ne+ot[1]*Be.rCenter+(Be.y||0),Y(Be,Ue),Be.outside){var st=Be.targetY;ce.yLabelMin=st-Ue.height/2,ce.yLabelMid=st,ce.yLabelMax=st+Ue.height/2,ce.labelExtraX=0,ce.labelExtraY=0,ae=!0}Be.fontSize=Fe.size,h(X.type,Be,V),H[we].transform=Be,p.setTransormAndDisplay($e,Be)})}function Le($e,Fe,Be,Ue){var qe=Ue*(Fe[0]-$e[0]),Xe=Ue*(Fe[1]-$e[1]);return"a"+Ue*G.r+","+Ue*G.r+" 0 "+ce.largeArc+(Be?" 1 ":" 0 ")+qe+","+Xe}});var ie=s.select(this).selectAll("g.titletext").data(X.title.text?[0]:[]);if(ie.enter().append("g").classed("titletext",!0),ie.exit().remove(),ie.each(function(){var ce,we=p.ensureSingle(s.select(this),"text","",function(ne){ne.attr("data-notex",1)}),K=X.title.text;X._meta&&(K=p.templateString(K,X._meta)),we.text(K).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(f.font,X.title.font).call(b.convertToTspans,L),ce=X.title.position==="middle center"?function(ne){var de=Math.sqrt(ne.titleBox.width*ne.titleBox.width+ne.titleBox.height*ne.titleBox.height);return{x:ne.cx,y:ne.cy,scale:ne.trace.hole*ne.r*2/de,tx:0,ty:-ne.titleBox.height/2+ne.trace.title.font.size}}(G):j(G,te),we.attr("transform",g(ce.x,ce.y)+m(Math.min(1,ce.scale))+g(ce.tx,ce.ty))}),ae&&function(ce,we){var K,ne,de,_e,ue,pe,xe,ye,Te,Ae,Re,Le,$e;function Fe(Xe,ot){return Xe.pxmid[1]-ot.pxmid[1]}function Be(Xe,ot){return ot.pxmid[1]-Xe.pxmid[1]}function Ue(Xe,ot){ot||(ot={});var st,dt,vt,We,ze=ot.labelExtraY+(ne?ot.yLabelMax:ot.yLabelMin),tt=ne?Xe.yLabelMin:Xe.yLabelMax,it=ne?Xe.yLabelMax:Xe.yLabelMin,St=Xe.cyFinal+ue(Xe.px0[1],Xe.px1[1]),Ze=ze-tt;if(Ze*xe>0&&(Xe.labelExtraY=Ze),Array.isArray(we.pull))for(dt=0;dt=(_.castOption(we.pull,vt.pts)||0)||((Xe.pxmid[1]-vt.pxmid[1])*xe>0?(Ze=vt.cyFinal+ue(vt.px0[1],vt.px1[1])-tt-Xe.labelExtraY)*xe>0&&(Xe.labelExtraY+=Ze):(it+Xe.labelExtraY-St)*xe>0&&(st=3*pe*Math.abs(dt-Ae.indexOf(Xe)),(We=vt.cxFinal+_e(vt.px0[0],vt.px1[0])+st-(Xe.cxFinal+Xe.pxmid[0])-Xe.labelExtraX)*pe>0&&(Xe.labelExtraX+=We)))}for(ne=0;ne<2;ne++)for(de=ne?Fe:Be,ue=ne?Math.max:Math.min,xe=ne?1:-1,K=0;K<2;K++){for(_e=K?Math.max:Math.min,pe=K?1:-1,(ye=ce[ne][K]).sort(de),Te=ce[1-ne][K],Ae=Te.concat(ye),Le=[],Re=0;ReMath.abs(ye)?ue+="l"+ye*K.pxmid[0]/K.pxmid[1]+","+ye+"H"+(_e+K.labelExtraX+pe):ue+="l"+K.labelExtraX+","+xe+"v"+(ye-xe)+"h"+pe}else ue+="V"+(K.yLabelMid+K.labelExtraY)+"h"+pe;p.ensureSingle(ne,"path","textline").call(d.stroke,we.outsidetextfont.color).attr({"stroke-width":Math.min(2,we.outsidetextfont.size/8),d:ue,fill:"none"})}else ne.select("path.textline").remove()})}(Q,X),ae&&X.automargin){var se=f.bBox(Z.node()),he=X.domain,Se=te.w*(he.x[1]-he.x[0]),Oe=te.h*(he.y[1]-he.y[0]),Pe=(.5*Se-G.r)/te.w,Me=(.5*Oe-G.r)/te.h;u.autoMargin(L,"pie."+X.uid+".automargin",{xl:he.x[0]-Pe,xr:he.x[1]+Pe,yb:he.y[0]-Me,yt:he.y[1]+Me,l:Math.max(G.cx-G.r-se.left,0),r:Math.max(se.right-(G.cx+G.r),0),b:Math.max(se.bottom-(G.cy+G.r),0),t:Math.max(G.cy-G.r-se.top,0),pad:5})}})});setTimeout(function(){ee.selectAll("tspan").each(function(){var H=s.select(this);H.attr("dy")&&H.attr("dy",H.attr("dy"))})},0)},formatSliceLabel:q,transformInsideText:M,determineInsideTextFont:S,positionTitleOutside:j,prerenderTitles:C,layoutAreas:N,attachFxHandlers:k,computeTransform:Y}},68357:function(i,o,a){var s=a(39898),u=a(63463),c=a(72597).resizeText;i.exports=function(d){var f=d._fullLayout._pielayer.selectAll(".trace");c(d,f,"pie"),f.each(function(p){var m=p[0].trace,g=s.select(this);g.style({opacity:m.opacity}),g.selectAll("path.surface").each(function(b){s.select(this).call(u,b,m,d)})})}},63463:function(i,o,a){var s=a(7901),u=a(53581).castOption,c=a(22209);i.exports=function(d,f,p,m){var g=p.marker.line,b=u(g.color,f.pts)||s.defaultLine,v=u(g.width,f.pts)||0;d.call(c,f,p,m).style("stroke-width",v).call(s.stroke,b)}},75225:function(i,o,a){var s=a(71828);i.exports=function(u,c){for(var d=0;dS&&q[M].gap;)M--;for(D=q[M].s,C=q.length-1;C>M;C--)q[C].s=D;for(;Sj[y]&&y=0;y--){var w=d[y];if(w.type==="scatter"&&w.xaxis===v.xaxis&&w.yaxis===v.yaxis){w.opacity=void 0;break}}}}}},17438:function(i,o,a){var s=a(71828),u=a(73972),c=a(82196),d=a(47581),f=a(34098),p=a(67513),m=a(73927),g=a(565),b=a(49508),v=a(11058),h=a(94039),y=a(82410),w=a(28908),_=a(71828).coercePattern;i.exports=function(x,T,k,S){function C(F,j){return s.coerce(x,T,c,F,j)}var M=p(x,T,S,C);if(M||(T.visible=!1),T.visible){m(x,T,S,C),C("xhoverformat"),C("yhoverformat");var O=g(x,T,S,C);S.scattermode==="group"&&T.orientation===void 0&&C("orientation","v");var D=!O&&M=Math.min(Se,Oe)&&x<=Math.max(Se,Oe)?0:1/0}var Pe=Math.max(3,he.mrc||0),Me=1-1/Pe,ce=Math.abs(w.c2p(he.x)-x);return ce=Math.min(Se,Oe)&&T<=Math.max(Se,Oe)?0:1/0}var Pe=Math.max(3,he.mrc||0),Me=1-1/Pe,ce=Math.abs(_.c2p(he.y)-T);return ceie!=(ee=L[q][1])>=ie&&(U=L[q-1][0],V=L[q][0],ee-te&&(W=U+(V-U)*(ie-te)/(ee-te),X=Math.min(X,W),Q=Math.max(Q,W)));X=Math.max(X,0),Q=Math.min(Q,w._length);var se=f.defaultLine;return f.opacity(y.fillcolor)?se=y.fillcolor:f.opacity((y.line||{}).color)&&(se=y.line.color),s.extendFlat(m,{distance:m.maxHoverDistance,x0:X,x1:Q,y0:ie,y1:ie,color:se,hovertemplate:!1}),delete m.index,y.text&&!Array.isArray(y.text)?m.text=String(y.text):m.text=y.name,[m]}}}},67368:function(i,o,a){var s=a(34098);i.exports={hasLines:s.hasLines,hasMarkers:s.hasMarkers,hasText:s.hasText,isBubble:s.isBubble,attributes:a(82196),layoutAttributes:a(21479),supplyDefaults:a(17438),crossTraceDefaults:a(34936),supplyLayoutDefaults:a(79334),calc:a(47761).calc,crossTraceCalc:a(72626),arraysToCalcdata:a(75225),plot:a(32663),colorbar:a(4898),formatLabels:a(8225),style:a(16296).style,styleOnSelect:a(16296).styleOnSelect,hoverPoints:a(33720),selectPoints:a(98002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:a(93612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},21479:function(i){i.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},79334:function(i,o,a){var s=a(71828),u=a(21479);i.exports=function(c,d){var f,p=d.barmode==="group";d.scattermode==="group"&&(f=p?d.bargap:.2,s.coerce(c,d,u,"scattergap",f))}},11058:function(i,o,a){var s=a(71828).isArrayOrTypedArray,u=a(52075).hasColorscale,c=a(1586);i.exports=function(d,f,p,m,g,b){b||(b={});var v=(d.marker||{}).color;g("line.color",p),u(d,"line")?c(d,f,m,g,{prefix:"line.",cLetter:"c"}):g("line.color",!s(v)&&v||p),g("line.width"),b.noDash||g("line.dash"),b.backoff&&g("line.backoff")}},34621:function(i,o,a){var s=a(91424),u=a(50606),c=u.BADNUM,d=u.LOG_CLIP,f=d+.5,p=d-.5,m=a(71828),g=m.segmentsIntersect,b=m.constrain,v=a(47581);i.exports=function(h,y){var w,_,x,T,k,S,C,M,O,D,P,E,I,A,F,j,z,B,N=y.trace||{},R=y.xaxis,q=y.yaxis,Y=R.type==="log",L=q.type==="log",W=R._length,U=q._length,V=y.backoff,te=N.marker,ee=y.connectGaps,H=y.baseTolerance,Z=y.shape,G=Z==="linear",X=N.fill&&N.fill!=="none",Q=[],re=v.minTolerance,ae=h.length,ie=new Array(ae),se=0;function he(Ze){var ut=h[Ze];if(!ut)return!1;var ht=y.linearized?R.l2p(ut.x):R.c2p(ut.x),Rt=y.linearized?q.l2p(ut.y):q.c2p(ut.y);if(ht===c){if(Y&&(ht=R.c2p(ut.x,!0)),ht===c)return!1;L&&Rt===c&&(ht*=Math.abs(R._m*U*(R._m>0?f:p)/(q._m*W*(q._m>0?f:p)))),ht*=1e3}if(Rt===c){if(L&&(Rt=q.c2p(ut.y,!0)),Rt===c)return!1;Rt*=1e3}return[ht,Rt]}function Se(Ze,ut,ht,Rt){var Ct=ht-Ze,Wt=Rt-ut,_t=.5-Ze,be=.5-ut,Ce=Ct*Ct+Wt*Wt,Ge=Ct*_t+Wt*be;if(Ge>0&&Gexe||Ze[1]Te)return[b(Ze[0],pe,xe),b(Ze[1],ye,Te)]}function Le(Ze,ut){return Ze[0]===ut[0]&&(Ze[0]===pe||Ze[0]===xe)||Ze[1]===ut[1]&&(Ze[1]===ye||Ze[1]===Te)||void 0}function $e(Ze,ut,ht){return function(Rt,Ct){var Wt=Re(Rt),_t=Re(Ct),be=[];if(Wt&&_t&&Le(Wt,_t))return be;Wt&&be.push(Wt),_t&&be.push(_t);var Ce=2*m.constrain((Rt[Ze]+Ct[Ze])/2,ut,ht)-((Wt||Rt)[Ze]+(_t||Ct)[Ze]);return Ce&&((Wt&&_t?Ce>0==Wt[Ze]>_t[Ze]?Wt:_t:Wt||_t)[Ze]+=Ce),be}}function Fe(Ze){var ut=Ze[0],ht=Ze[1],Rt=ut===ie[se-1][0],Ct=ht===ie[se-1][1];if(!Rt||!Ct)if(se>1){var Wt=ut===ie[se-2][0],_t=ht===ie[se-2][1];Rt&&(ut===pe||ut===xe)&&Wt?_t?se--:ie[se-1]=Ze:Ct&&(ht===ye||ht===Te)&&_t?Wt?se--:ie[se-1]=Ze:ie[se++]=Ze}else ie[se++]=Ze}function Be(Ze){ie[se-1][0]!==Ze[0]&&ie[se-1][1]!==Ze[1]&&Fe([we,K]),Fe(Ze),ne=null,we=K=0}Z==="linear"||Z==="spline"?_e=function(Ze,ut){for(var ht=[],Rt=0,Ct=0;Ct<4;Ct++){var Wt=Ae[Ct],_t=g(Ze[0],Ze[1],ut[0],ut[1],Wt[0],Wt[1],Wt[2],Wt[3]);_t&&(!Rt||Math.abs(_t.x-ht[0][0])>1||Math.abs(_t.y-ht[0][1])>1)&&(_t=[_t.x,_t.y],Rt&&Pe(_t,Ze)xe?xe:0,ce=Ze[1]Te?Te:0,Me||ce){if(se)if(ne){var ut=_e(ne,Ze);ut.length>1&&(Be(ut[0]),ie[se++]=ut[1])}else de=_e(ie[se-1],Ze)[0],ie[se++]=de;else ie[se++]=[Me||Ze[0],ce||Ze[1]];var ht=ie[se-1];Me&&ce&&(ht[0]!==Me||ht[1]!==ce)?(ne&&(we!==Me&&K!==ce?Fe(we&&K?(Rt=ne,Wt=(Ct=Ze)[0]-Rt[0],_t=(Ct[1]-Rt[1])/Wt,(Rt[1]*Ct[0]-Ct[1]*Rt[0])/Wt>0?[_t>0?pe:xe,Te]:[_t>0?xe:pe,ye]):[we||Me,K||ce]):we&&K&&Fe([we,K])),Fe([Me,ce])):we-Me&&K-ce&&Fe([Me||we,ce||K]),ne=Ze,we=Me,K=ce}else ne&&Be(_e(ne,Ze)[0]),ie[se++]=Ze;var Rt,Ct,Wt,_t}for(w=0;wOe(S,Xe))break;x=S,(I=O[0]*M[0]+O[1]*M[1])>P?(P=I,T=S,C=!1):I=h.length||!S)break;qe(S),_=S}}else qe(T)}ne&&Fe([we||ne[0],K||ne[1]]),Q.push(ie.slice(0,se))}var ot=Z.slice(Z.length-1);if(V&&ot!=="h"&&ot!=="v"){for(var st=!1,dt=-1,vt=[],We=0;We=0?m=y:(m=y=h,h++),m0?Math.max(b,p):0}}},4898:function(i){i.exports={container:"marker",min:"cmin",max:"cmax"}},49508:function(i,o,a){var s=a(7901),u=a(52075).hasColorscale,c=a(1586),d=a(34098);i.exports=function(f,p,m,g,b,v){var h=d.isBubble(f),y=(f.line||{}).color;v=v||{},y&&(m=y),b("marker.symbol"),b("marker.opacity",h?.7:1),b("marker.size"),v.noAngle||(b("marker.angle"),v.noAngleRef||b("marker.angleref"),v.noStandOff||b("marker.standoff")),b("marker.color",m),u(f,"marker")&&c(f,p,g,b,{prefix:"marker.",cLetter:"c"}),v.noSelect||(b("selected.marker.color"),b("unselected.marker.color"),b("selected.marker.size"),b("unselected.marker.size")),v.noLine||(b("marker.line.color",y&&!Array.isArray(y)&&p.marker.color!==y?y:h?s.background:s.defaultLine),u(f,"marker.line")&&c(f,p,g,b,{prefix:"marker.line.",cLetter:"c"}),b("marker.line.width",h?1:0)),h&&(b("marker.sizeref"),b("marker.sizemin"),b("marker.sizemode")),v.gradient&&b("marker.gradient.type")!=="none"&&b("marker.gradient.color")}},73927:function(i,o,a){var s=a(71828).dateTick0,u=a(50606).ONEWEEK;function c(d,f){return s(f,d%u==0?1:0)}i.exports=function(d,f,p,m,g){if(g||(g={x:!0,y:!0}),g.x){var b=m("xperiod");b&&(m("xperiod0",c(b,f.xcalendar)),m("xperiodalignment"))}if(g.y){var v=m("yperiod");v&&(m("yperiod0",c(v,f.ycalendar)),m("yperiodalignment"))}}},32663:function(i,o,a){var s=a(39898),u=a(73972),c=a(71828),d=c.ensureSingle,f=c.identity,p=a(91424),m=a(34098),g=a(34621),b=a(68687),v=a(61082).tester;function h(y,w,_,x,T,k,S){var C,M=y._context.staticPlot;(function(_e,ue,pe,xe,ye){var Te=pe.xaxis,Ae=pe.yaxis,Re=s.extent(c.simpleMap(Te.range,Te.r2c)),Le=s.extent(c.simpleMap(Ae.range,Ae.r2c)),$e=xe[0].trace;if(m.hasMarkers($e)){var Fe=$e.marker.maxdisplayed;if(Fe!==0){var Be=xe.filter(function(ot){return ot.x>=Re[0]&&ot.x<=Re[1]&&ot.y>=Le[0]&&ot.y<=Le[1]}),Ue=Math.ceil(Be.length/Fe),qe=0;ye.forEach(function(ot,st){var dt=ot[0].trace;m.hasMarkers(dt)&&dt.marker.maxdisplayed>0&&st0;function D(_e){return O?_e.transition():_e}var P=_.xaxis,E=_.yaxis,I=x[0].trace,A=I.line,F=s.select(k),j=d(F,"g","errorbars"),z=d(F,"g","lines"),B=d(F,"g","points"),N=d(F,"g","text");if(u.getComponentMethod("errorbars","plot")(y,j,_,S),I.visible===!0){var R,q;D(F).style("opacity",I.opacity);var Y=I.fill.charAt(I.fill.length-1);Y!=="x"&&Y!=="y"&&(Y=""),x[0][_.isRangePlot?"nodeRangePlot3":"node3"]=F;var L,W,U="",V=[],te=I._prevtrace;te&&(U=te._prevRevpath||"",q=te._nextFill,V=te._polygons);var ee,H,Z,G,X,Q,re,ae="",ie="",se=[],he=c.noop;if(R=I._ownFill,m.hasLines(I)||I.fill!=="none"){for(q&&q.datum(x),["hv","vh","hvh","vhv"].indexOf(A.shape)!==-1?(ee=p.steps(A.shape),H=p.steps(A.shape.split("").reverse().join(""))):ee=H=A.shape==="spline"?function(_e){var ue=_e[_e.length-1];return _e.length>1&&_e[0][0]===ue[0]&&_e[0][1]===ue[1]?p.smoothclosed(_e.slice(1),A.smoothing):p.smoothopen(_e,A.smoothing)}:function(_e){return"M"+_e.join("L")},Z=function(_e){return H(_e.reverse())},se=g(x,{xaxis:P,yaxis:E,trace:I,connectGaps:I.connectgaps,baseTolerance:Math.max(A.width||1,3)/4,shape:A.shape,backoff:A.backoff,simplify:A.simplify,fill:I.fill}),re=I._polygons=new Array(se.length),C=0;C0,D=b(y,w,_);(S=x.selectAll("g.trace").data(D,function(P){return P[0].trace.uid})).enter().append("g").attr("class",function(P){return"trace scatter trace"+P[0].trace.uid}).style("stroke-miterlimit",2),S.order(),function(P,E,I){E.each(function(A){var F=d(s.select(this),"g","fills");p.setClipUrl(F,I.layerClipId,P);var j=A[0].trace,z=[];j._ownfill&&z.push("_ownFill"),j._nexttrace&&z.push("_nextFill");var B=F.selectAll("g").data(z,f);B.enter().append("g"),B.exit().each(function(N){j[N]=null}).remove(),B.order().each(function(N){j[N]=d(s.select(this),"path","js-fill")})})}(y,S,w),O?(k&&(C=k()),s.transition().duration(T.duration).ease(T.easing).each("end",function(){C&&C()}).each("interrupt",function(){C&&C()}).each(function(){x.selectAll("g.trace").each(function(P,E){h(y,E,w,P,D,this,T)})})):S.each(function(P,E){h(y,E,w,P,D,this,T)}),M&&S.exit().remove(),x.selectAll("path:not([d])").remove()}},98002:function(i,o,a){var s=a(34098);i.exports=function(u,c){var d,f,p,m,g=u.cd,b=u.xaxis,v=u.yaxis,h=[],y=g[0].trace;if(!s.hasMarkers(y)&&!s.hasText(y))return[];if(c===!1)for(d=0;d"),m.hovertemplate=w.hovertemplate,p}function M(O,D){S.push(O._hovertitle+": "+D)}}},52979:function(i,o,a){i.exports={attributes:a(50413),supplyDefaults:a(46008),colorbar:a(4898),formatLabels:a(93645),calc:a(54337),plot:a(7507),style:a(16296).style,styleOnSelect:a(16296).styleOnSelect,hoverPoints:a(47250),selectPoints:a(98002),eventData:a(4524),moduleType:"trace",name:"scatterternary",basePlotModule:a(61639),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},7507:function(i,o,a){var s=a(32663);i.exports=function(u,c,d){var f=c.plotContainer;f.select(".scatterlayer").selectAll("*").remove();for(var p=c.xaxis,m=c.yaxis,g={xaxis:p,yaxis:m,plot:f,layerClipId:c._hasClipOnAxisFalse?c.clipIdRelative:null},b=c.layers.frontplot.select("g.scatterlayer"),v=0;v0){var O,D,P,E,I,A=p.xa,F=p.ya;x.orientation==="h"?(I=m,O="y",P=F,D="x",E=A):(I=g,O="x",P=A,D="y",E=F);var j=_[p.index];if(I>=j.span[0]&&I<=j.span[1]){var z=u.extendFlat({},p),B=E.c2p(I,!0),N=f.getKdeValue(j,x,I),R=f.getPositionOnKdePath(j,x,B),q=P._offset,Y=P._length;z[O+"0"]=R[0],z[O+"1"]=R[1],z[D+"0"]=z[D+"1"]=B,z[D+"Label"]=D+": "+c.hoverLabelText(E,I,x[D+"hoverformat"])+", "+_[0].t.labels.kde+" "+N.toFixed(3);for(var L=0,W=0;WB&&(B=Y,N=q)}}return B?A(N):f};case"rms":return function(F,j){for(var z=0,B=0,N=0;N":return function(V){return U(V)>L};case">=":return function(V){return U(V)>=L};case"[]":return function(V){var te=U(V);return te>=L[0]&&te<=L[1]};case"()":return function(V){var te=U(V);return te>L[0]&&te=L[0]&&teL[0]&&te<=L[1]};case"][":return function(V){var te=U(V);return te<=L[0]||te>=L[1]};case")(":return function(V){var te=U(V);return teL[1]};case"](":return function(V){var te=U(V);return te<=L[0]||te>L[1]};case")[":return function(V){var te=U(V);return te=L[1]};case"{}":return function(V){return L.indexOf(U(V))!==-1};case"}{":return function(V){return L.indexOf(U(V))===-1}}}(h,c.getDataToCoordFunc(b,v,w,y),x),D={},P={},E=0;k?(C=function(j){D[j.astr]=s.extendDeep([],j.get()),j.set(new Array(_))},M=function(j,z){var B=D[j.astr][z];j.get()[z]=B}):(C=function(j){D[j.astr]=s.extendDeep([],j.get()),j.set([])},M=function(j,z){var B=D[j.astr][z];j.get().push(B)}),F(C);for(var I=d(v.transforms,h),A=0;A<_;A++)O(y[A])?(F(M,A),P[E++]=I(A)):k&&E++;h._indexToPoints=P,v._length=E}}function F(j,z){for(var B=0;B1?"%{group} (%{trace})":"%{group}");var y=p.styles,w=v.styles=[];if(y)for(b=0;bb)throw new RangeError('The value "'+K+'" is invalid for option "size"');var ne=new Uint8Array(K);return Object.setPrototypeOf(ne,h.prototype),ne}function h(K,ne,de){if(typeof K=="number"){if(typeof ne=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(K)}return y(K,ne,de)}function y(K,ne,de){if(typeof K=="string")return function(pe,xe){if(typeof xe=="string"&&xe!==""||(xe="utf8"),!h.isEncoding(xe))throw new TypeError("Unknown encoding: "+xe);var ye=0|S(pe,xe),Te=v(ye),Ae=Te.write(pe,xe);return Ae!==ye&&(Te=Te.slice(0,Ae)),Te}(K,ne);if(ArrayBuffer.isView(K))return function(pe){if(Oe(pe,Uint8Array)){var xe=new Uint8Array(pe);return T(xe.buffer,xe.byteOffset,xe.byteLength)}return x(pe)}(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(K));if(Oe(K,ArrayBuffer)||K&&Oe(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Oe(K,SharedArrayBuffer)||K&&Oe(K.buffer,SharedArrayBuffer)))return T(K,ne,de);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var _e=K.valueOf&&K.valueOf();if(_e!=null&&_e!==K)return h.from(_e,ne,de);var ue=function(pe){if(h.isBuffer(pe)){var xe=0|k(pe.length),ye=v(xe);return ye.length===0||pe.copy(ye,0,0,xe),ye}return pe.length!==void 0?typeof pe.length!="number"||Pe(pe.length)?v(0):x(pe):pe.type==="Buffer"&&Array.isArray(pe.data)?x(pe.data):void 0}(K);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return h.from(K[Symbol.toPrimitive]("string"),ne,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(K))}function w(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function _(K){return w(K),v(K<0?0:0|k(K))}function x(K){for(var ne=K.length<0?0:0|k(K.length),de=v(ne),_e=0;_e=b)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b.toString(16)+" bytes");return 0|K}function S(K,ne){if(h.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Oe(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+f(K));var de=K.length,_e=arguments.length>2&&arguments[2]===!0;if(!_e&&de===0)return 0;for(var ue=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return se(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*de;case"hex":return de>>>1;case"base64":return he(K).length;default:if(ue)return _e?-1:se(K).length;ne=(""+ne).toLowerCase(),ue=!0}}function C(K,ne,de){var _e=!1;if((ne===void 0||ne<0)&&(ne=0),ne>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0)<=(ne>>>=0))return"";for(K||(K="utf8");;)switch(K){case"hex":return q(this,ne,de);case"utf8":case"utf-8":return z(this,ne,de);case"ascii":return N(this,ne,de);case"latin1":case"binary":return R(this,ne,de);case"base64":return j(this,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,ne,de);default:if(_e)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),_e=!0}}function M(K,ne,de){var _e=K[ne];K[ne]=K[de],K[de]=_e}function O(K,ne,de,_e,ue){if(K.length===0)return-1;if(typeof de=="string"?(_e=de,de=0):de>2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),Pe(de=+de)&&(de=ue?0:K.length-1),de<0&&(de=K.length+de),de>=K.length){if(ue)return-1;de=K.length-1}else if(de<0){if(!ue)return-1;de=0}if(typeof ne=="string"&&(ne=h.from(ne,_e)),h.isBuffer(ne))return ne.length===0?-1:D(K,ne,de,_e,ue);if(typeof ne=="number")return ne&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(K,ne,de):Uint8Array.prototype.lastIndexOf.call(K,ne,de):D(K,[ne],de,_e,ue);throw new TypeError("val must be string, number or Buffer")}function D(K,ne,de,_e,ue){var pe,xe=1,ye=K.length,Te=ne.length;if(_e!==void 0&&((_e=String(_e).toLowerCase())==="ucs2"||_e==="ucs-2"||_e==="utf16le"||_e==="utf-16le")){if(K.length<2||ne.length<2)return-1;xe=2,ye/=2,Te/=2,de/=2}function Ae(Fe,Be){return xe===1?Fe[Be]:Fe.readUInt16BE(Be*xe)}if(ue){var Re=-1;for(pe=de;peye&&(de=ye-Te),pe=de;pe>=0;pe--){for(var Le=!0,$e=0;$eue&&(_e=ue):_e=ue;var pe,xe=ne.length;for(_e>xe/2&&(_e=xe/2),pe=0;pe<_e;++pe){var ye=parseInt(ne.substr(2*pe,2),16);if(Pe(ye))return pe;K[de+pe]=ye}return pe}function E(K,ne,de,_e){return Se(se(ne,K.length-de),K,de,_e)}function I(K,ne,de,_e){return Se(function(ue){for(var pe=[],xe=0;xe>8,Te=xe%256,Ae.push(Te),Ae.push(ye);return Ae}(ne,K.length-de),K,de,_e)}function j(K,ne,de){return ne===0&&de===K.length?p.fromByteArray(K):p.fromByteArray(K.slice(ne,de))}function z(K,ne,de){de=Math.min(K.length,de);for(var _e=[],ue=ne;ue239?4:pe>223?3:pe>191?2:1;if(ue+ye<=de){var Te=void 0,Ae=void 0,Re=void 0,Le=void 0;switch(ye){case 1:pe<128&&(xe=pe);break;case 2:(192&(Te=K[ue+1]))==128&&(Le=(31&pe)<<6|63&Te)>127&&(xe=Le);break;case 3:Te=K[ue+1],Ae=K[ue+2],(192&Te)==128&&(192&Ae)==128&&(Le=(15&pe)<<12|(63&Te)<<6|63&Ae)>2047&&(Le<55296||Le>57343)&&(xe=Le);break;case 4:Te=K[ue+1],Ae=K[ue+2],Re=K[ue+3],(192&Te)==128&&(192&Ae)==128&&(192&Re)==128&&(Le=(15&pe)<<18|(63&Te)<<12|(63&Ae)<<6|63&Re)>65535&&Le<1114112&&(xe=Le)}}xe===null?(xe=65533,ye=1):xe>65535&&(xe-=65536,_e.push(xe>>>10&1023|55296),xe=56320|1023&xe),_e.push(xe),ue+=ye}return function($e){var Fe=$e.length;if(Fe<=B)return String.fromCharCode.apply(String,$e);for(var Be="",Ue=0;Ue"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(K,ne,de){return y(K,ne,de)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(K,ne,de){return function(_e,ue,pe){return w(_e),_e<=0?v(_e):ue!==void 0?typeof pe=="string"?v(_e).fill(ue,pe):v(_e).fill(ue):v(_e)}(K,ne,de)},h.allocUnsafe=function(K){return _(K)},h.allocUnsafeSlow=function(K){return _(K)},h.isBuffer=function(K){return K!=null&&K._isBuffer===!0&&K!==h.prototype},h.compare=function(K,ne){if(Oe(K,Uint8Array)&&(K=h.from(K,K.offset,K.byteLength)),Oe(ne,Uint8Array)&&(ne=h.from(ne,ne.offset,ne.byteLength)),!h.isBuffer(K)||!h.isBuffer(ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(K===ne)return 0;for(var de=K.length,_e=ne.length,ue=0,pe=Math.min(de,_e);ue_e.length?(h.isBuffer(pe)||(pe=h.from(pe)),pe.copy(_e,ue)):Uint8Array.prototype.set.call(_e,pe,ue);else{if(!h.isBuffer(pe))throw new TypeError('"list" argument must be an Array of Buffers');pe.copy(_e,ue)}ue+=pe.length}return _e},h.byteLength=S,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var K=this.length;if(K%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(K+=" ... "),""},g&&(h.prototype[g]=h.prototype.inspect),h.prototype.compare=function(K,ne,de,_e,ue){if(Oe(K,Uint8Array)&&(K=h.from(K,K.offset,K.byteLength)),!h.isBuffer(K))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+f(K));if(ne===void 0&&(ne=0),de===void 0&&(de=K?K.length:0),_e===void 0&&(_e=0),ue===void 0&&(ue=this.length),ne<0||de>K.length||_e<0||ue>this.length)throw new RangeError("out of range index");if(_e>=ue&&ne>=de)return 0;if(_e>=ue)return-1;if(ne>=de)return 1;if(this===K)return 0;for(var pe=(ue>>>=0)-(_e>>>=0),xe=(de>>>=0)-(ne>>>=0),ye=Math.min(pe,xe),Te=this.slice(_e,ue),Ae=K.slice(ne,de),Re=0;Re>>=0,isFinite(de)?(de>>>=0,_e===void 0&&(_e="utf8")):(_e=de,de=void 0)}var ue=this.length-ne;if((de===void 0||de>ue)&&(de=ue),K.length>0&&(de<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");_e||(_e="utf8");for(var pe=!1;;)switch(_e){case"hex":return P(this,K,ne,de);case"utf8":case"utf-8":return E(this,K,ne,de);case"ascii":case"latin1":case"binary":return I(this,K,ne,de);case"base64":return A(this,K,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,K,ne,de);default:if(pe)throw new TypeError("Unknown encoding: "+_e);_e=(""+_e).toLowerCase(),pe=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function N(K,ne,de){var _e="";de=Math.min(K.length,de);for(var ue=ne;ue_e)&&(de=_e);for(var ue="",pe=ne;pede)throw new RangeError("Trying to access beyond buffer length")}function W(K,ne,de,_e,ue,pe){if(!h.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>ue||neK.length)throw new RangeError("Index out of range")}function U(K,ne,de,_e,ue){Q(ne,_e,ue,K,de,7);var pe=Number(ne&BigInt(4294967295));K[de++]=pe,pe>>=8,K[de++]=pe,pe>>=8,K[de++]=pe,pe>>=8,K[de++]=pe;var xe=Number(ne>>BigInt(32)&BigInt(4294967295));return K[de++]=xe,xe>>=8,K[de++]=xe,xe>>=8,K[de++]=xe,xe>>=8,K[de++]=xe,de}function V(K,ne,de,_e,ue){Q(ne,_e,ue,K,de,7);var pe=Number(ne&BigInt(4294967295));K[de+7]=pe,pe>>=8,K[de+6]=pe,pe>>=8,K[de+5]=pe,pe>>=8,K[de+4]=pe;var xe=Number(ne>>BigInt(32)&BigInt(4294967295));return K[de+3]=xe,xe>>=8,K[de+2]=xe,xe>>=8,K[de+1]=xe,xe>>=8,K[de]=xe,de+8}function te(K,ne,de,_e,ue,pe){if(de+_e>K.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function ee(K,ne,de,_e,ue){return ne=+ne,de>>>=0,ue||te(K,0,de,4),m.write(K,ne,de,_e,23,4),de+4}function H(K,ne,de,_e,ue){return ne=+ne,de>>>=0,ue||te(K,0,de,8),m.write(K,ne,de,_e,52,8),de+8}h.prototype.slice=function(K,ne){var de=this.length;(K=~~K)<0?(K+=de)<0&&(K=0):K>de&&(K=de),(ne=ne===void 0?de:~~ne)<0?(ne+=de)<0&&(ne=0):ne>de&&(ne=de),ne>>=0,ne>>>=0,de||L(K,ne,this.length);for(var _e=this[K],ue=1,pe=0;++pe>>=0,ne>>>=0,de||L(K,ne,this.length);for(var _e=this[K+--ne],ue=1;ne>0&&(ue*=256);)_e+=this[K+--ne]*ue;return _e},h.prototype.readUint8=h.prototype.readUInt8=function(K,ne){return K>>>=0,ne||L(K,1,this.length),this[K]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(K,ne){return K>>>=0,ne||L(K,2,this.length),this[K]|this[K+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(K,ne){return K>>>=0,ne||L(K,2,this.length),this[K]<<8|this[K+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),(this[K]|this[K+1]<<8|this[K+2]<<16)+16777216*this[K+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),16777216*this[K]+(this[K+1]<<16|this[K+2]<<8|this[K+3])},h.prototype.readBigUInt64LE=ce(function(K){re(K>>>=0,"offset");var ne=this[K],de=this[K+7];ne!==void 0&&de!==void 0||ae(K,this.length-8);var _e=ne+this[++K]*Math.pow(2,8)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,24),ue=this[++K]+this[++K]*Math.pow(2,8)+this[++K]*Math.pow(2,16)+de*Math.pow(2,24);return BigInt(_e)+(BigInt(ue)<>>=0,"offset");var ne=this[K],de=this[K+7];ne!==void 0&&de!==void 0||ae(K,this.length-8);var _e=ne*Math.pow(2,24)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,8)+this[++K],ue=this[++K]*Math.pow(2,24)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,8)+de;return(BigInt(_e)<>>=0,ne>>>=0,de||L(K,ne,this.length);for(var _e=this[K],ue=1,pe=0;++pe=(ue*=128)&&(_e-=Math.pow(2,8*ne)),_e},h.prototype.readIntBE=function(K,ne,de){K>>>=0,ne>>>=0,de||L(K,ne,this.length);for(var _e=ne,ue=1,pe=this[K+--_e];_e>0&&(ue*=256);)pe+=this[K+--_e]*ue;return pe>=(ue*=128)&&(pe-=Math.pow(2,8*ne)),pe},h.prototype.readInt8=function(K,ne){return K>>>=0,ne||L(K,1,this.length),128&this[K]?-1*(255-this[K]+1):this[K]},h.prototype.readInt16LE=function(K,ne){K>>>=0,ne||L(K,2,this.length);var de=this[K]|this[K+1]<<8;return 32768&de?4294901760|de:de},h.prototype.readInt16BE=function(K,ne){K>>>=0,ne||L(K,2,this.length);var de=this[K+1]|this[K]<<8;return 32768&de?4294901760|de:de},h.prototype.readInt32LE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),this[K]|this[K+1]<<8|this[K+2]<<16|this[K+3]<<24},h.prototype.readInt32BE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),this[K]<<24|this[K+1]<<16|this[K+2]<<8|this[K+3]},h.prototype.readBigInt64LE=ce(function(K){re(K>>>=0,"offset");var ne=this[K],de=this[K+7];ne!==void 0&&de!==void 0||ae(K,this.length-8);var _e=this[K+4]+this[K+5]*Math.pow(2,8)+this[K+6]*Math.pow(2,16)+(de<<24);return(BigInt(_e)<>>=0,"offset");var ne=this[K],de=this[K+7];ne!==void 0&&de!==void 0||ae(K,this.length-8);var _e=(ne<<24)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,8)+this[++K];return(BigInt(_e)<>>=0,ne||L(K,4,this.length),m.read(this,K,!0,23,4)},h.prototype.readFloatBE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),m.read(this,K,!1,23,4)},h.prototype.readDoubleLE=function(K,ne){return K>>>=0,ne||L(K,8,this.length),m.read(this,K,!0,52,8)},h.prototype.readDoubleBE=function(K,ne){return K>>>=0,ne||L(K,8,this.length),m.read(this,K,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(K,ne,de,_e){K=+K,ne>>>=0,de>>>=0,_e||W(this,K,ne,de,Math.pow(2,8*de)-1,0);var ue=1,pe=0;for(this[ne]=255&K;++pe>>=0,de>>>=0,_e||W(this,K,ne,de,Math.pow(2,8*de)-1,0);var ue=de-1,pe=1;for(this[ne+ue]=255&K;--ue>=0&&(pe*=256);)this[ne+ue]=K/pe&255;return ne+de},h.prototype.writeUint8=h.prototype.writeUInt8=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,1,255,0),this[ne]=255&K,ne+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,2,65535,0),this[ne]=255&K,this[ne+1]=K>>>8,ne+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,2,65535,0),this[ne]=K>>>8,this[ne+1]=255&K,ne+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,4,4294967295,0),this[ne+3]=K>>>24,this[ne+2]=K>>>16,this[ne+1]=K>>>8,this[ne]=255&K,ne+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,4,4294967295,0),this[ne]=K>>>24,this[ne+1]=K>>>16,this[ne+2]=K>>>8,this[ne+3]=255&K,ne+4},h.prototype.writeBigUInt64LE=ce(function(K){return U(this,K,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeBigUInt64BE=ce(function(K){return V(this,K,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeIntLE=function(K,ne,de,_e){if(K=+K,ne>>>=0,!_e){var ue=Math.pow(2,8*de-1);W(this,K,ne,de,ue-1,-ue)}var pe=0,xe=1,ye=0;for(this[ne]=255&K;++pe>0)-ye&255;return ne+de},h.prototype.writeIntBE=function(K,ne,de,_e){if(K=+K,ne>>>=0,!_e){var ue=Math.pow(2,8*de-1);W(this,K,ne,de,ue-1,-ue)}var pe=de-1,xe=1,ye=0;for(this[ne+pe]=255&K;--pe>=0&&(xe*=256);)K<0&&ye===0&&this[ne+pe+1]!==0&&(ye=1),this[ne+pe]=(K/xe>>0)-ye&255;return ne+de},h.prototype.writeInt8=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,1,127,-128),K<0&&(K=255+K+1),this[ne]=255&K,ne+1},h.prototype.writeInt16LE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,2,32767,-32768),this[ne]=255&K,this[ne+1]=K>>>8,ne+2},h.prototype.writeInt16BE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,2,32767,-32768),this[ne]=K>>>8,this[ne+1]=255&K,ne+2},h.prototype.writeInt32LE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,4,2147483647,-2147483648),this[ne]=255&K,this[ne+1]=K>>>8,this[ne+2]=K>>>16,this[ne+3]=K>>>24,ne+4},h.prototype.writeInt32BE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,4,2147483647,-2147483648),K<0&&(K=4294967295+K+1),this[ne]=K>>>24,this[ne+1]=K>>>16,this[ne+2]=K>>>8,this[ne+3]=255&K,ne+4},h.prototype.writeBigInt64LE=ce(function(K){return U(this,K,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeBigInt64BE=ce(function(K){return V(this,K,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeFloatLE=function(K,ne,de){return ee(this,K,ne,!0,de)},h.prototype.writeFloatBE=function(K,ne,de){return ee(this,K,ne,!1,de)},h.prototype.writeDoubleLE=function(K,ne,de){return H(this,K,ne,!0,de)},h.prototype.writeDoubleBE=function(K,ne,de){return H(this,K,ne,!1,de)},h.prototype.copy=function(K,ne,de,_e){if(!h.isBuffer(K))throw new TypeError("argument should be a Buffer");if(de||(de=0),_e||_e===0||(_e=this.length),ne>=K.length&&(ne=K.length),ne||(ne=0),_e>0&&_e=this.length)throw new RangeError("Index out of range");if(_e<0)throw new RangeError("sourceEnd out of bounds");_e>this.length&&(_e=this.length),K.length-ne<_e-de&&(_e=K.length-ne+de);var ue=_e-de;return this===K&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ne,de,_e):Uint8Array.prototype.set.call(K,this.subarray(de,_e),ne),ue},h.prototype.fill=function(K,ne,de,_e){if(typeof K=="string"){if(typeof ne=="string"?(_e=ne,ne=0,de=this.length):typeof de=="string"&&(_e=de,de=this.length),_e!==void 0&&typeof _e!="string")throw new TypeError("encoding must be a string");if(typeof _e=="string"&&!h.isEncoding(_e))throw new TypeError("Unknown encoding: "+_e);if(K.length===1){var ue=K.charCodeAt(0);(_e==="utf8"&&ue<128||_e==="latin1")&&(K=ue)}}else typeof K=="number"?K&=255:typeof K=="boolean"&&(K=Number(K));if(ne<0||this.length>>=0,de=de===void 0?this.length:de>>>0,K||(K=0),typeof K=="number")for(pe=ne;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Re,Le=d(xe);if(ye){var $e=d(this).constructor;Re=Reflect.construct(Le,arguments,$e)}else Re=Le.apply(this,arguments);return function(Fe,Be){if(Be&&(f(Be)==="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(Fe)}(this,Re)});function Ae(){var Re;return function(Le,$e){if(!(Le instanceof $e))throw new TypeError("Cannot call a class as a function")}(this,Ae),Re=Te.call(this),Object.defineProperty(c(Re),"message",{value:ne.apply(c(Re),arguments),writable:!0,configurable:!0}),Re.name="".concat(Re.name," [").concat(K,"]"),Re.stack,delete Re.name,Re}return ue=Ae,(pe=[{key:"code",get:function(){return K},set:function(Re){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Re,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(K,"]: ").concat(this.message)}}])&&s(ue.prototype,pe),Object.defineProperty(ue,"prototype",{writable:!1}),Ae}(de)}function X(K){for(var ne="",de=K.length,_e=K[0]==="-"?1:0;de>=_e+4;de-=3)ne="_".concat(K.slice(de-3,de)).concat(ne);return"".concat(K.slice(0,de)).concat(ne)}function Q(K,ne,de,_e,ue,pe){if(K>de||K= 0".concat(ye," and < 2").concat(ye," ** ").concat(8*(pe+1)).concat(ye):">= -(2".concat(ye," ** ").concat(8*(pe+1)-1).concat(ye,") and < 2 ** ")+"".concat(8*(pe+1)-1).concat(ye),new Z.ERR_OUT_OF_RANGE("value",xe,K)}(function(Te,Ae,Re){re(Ae,"offset"),Te[Ae]!==void 0&&Te[Ae+Re]!==void 0||ae(Ae,Te.length-(Re+1))})(_e,ue,pe)}function re(K,ne){if(typeof K!="number")throw new Z.ERR_INVALID_ARG_TYPE(ne,"number",K)}function ae(K,ne,de){throw Math.floor(K)!==K?(re(K,de),new Z.ERR_OUT_OF_RANGE("offset","an integer",K)):ne<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(ne),K)}G("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?"".concat(K," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),G("ERR_INVALID_ARG_TYPE",function(K,ne){return'The "'.concat(K,'" argument must be of type number. Received type ').concat(f(ne))},TypeError),G("ERR_OUT_OF_RANGE",function(K,ne,de){var _e='The value of "'.concat(K,'" is out of range.'),ue=de;return Number.isInteger(de)&&Math.abs(de)>Math.pow(2,32)?ue=X(String(de)):typeof de=="bigint"&&(ue=String(de),(de>Math.pow(BigInt(2),BigInt(32))||de<-Math.pow(BigInt(2),BigInt(32)))&&(ue=X(ue)),ue+="n"),_e+" It must be ".concat(ne,". Received ").concat(ue)},RangeError);var ie=/[^+/0-9A-Za-z-_]/g;function se(K,ne){var de;ne=ne||1/0;for(var _e=K.length,ue=null,pe=[],xe=0;xe<_e;++xe){if((de=K.charCodeAt(xe))>55295&&de<57344){if(!ue){if(de>56319){(ne-=3)>-1&&pe.push(239,191,189);continue}if(xe+1===_e){(ne-=3)>-1&&pe.push(239,191,189);continue}ue=de;continue}if(de<56320){(ne-=3)>-1&&pe.push(239,191,189),ue=de;continue}de=65536+(ue-55296<<10|de-56320)}else ue&&(ne-=3)>-1&&pe.push(239,191,189);if(ue=null,de<128){if((ne-=1)<0)break;pe.push(de)}else if(de<2048){if((ne-=2)<0)break;pe.push(de>>6|192,63&de|128)}else if(de<65536){if((ne-=3)<0)break;pe.push(de>>12|224,de>>6&63|128,63&de|128)}else{if(!(de<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;pe.push(de>>18|240,de>>12&63|128,de>>6&63|128,63&de|128)}}return pe}function he(K){return p.toByteArray(function(ne){if((ne=(ne=ne.split("=")[0]).trim().replace(ie,"")).length<2)return"";for(;ne.length%4!=0;)ne+="=";return ne}(K))}function Se(K,ne,de,_e){var ue;for(ue=0;ue<_e&&!(ue+de>=ne.length||ue>=K.length);++ue)ne[ue+de]=K[ue];return ue}function Oe(K,ne){return K instanceof ne||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===ne.name}function Pe(K){return K!=K}var Me=function(){for(var K="0123456789abcdef",ne=new Array(256),de=0;de<16;++de)for(var _e=16*de,ue=0;ue<16;++ue)ne[_e+ue]=K[de]+K[ue];return ne}();function ce(K){return typeof BigInt>"u"?we:K}function we(){throw new Error("BigInt not supported")}},35791:function(i){i.exports=u,i.exports.isMobile=u,i.exports.default=u;var o=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,a=/CrOS/,s=/android|ipad|playbook|silk/i;function u(c){c||(c={});var d=c.ua;if(d||typeof navigator>"u"||(d=navigator.userAgent),d&&d.headers&&typeof d.headers["user-agent"]=="string"&&(d=d.headers["user-agent"]),typeof d!="string")return!1;var f=o.test(d)&&!a.test(d)||!!c.tablet&&s.test(d);return!f&&c.tablet&&c.featureDetect&&navigator&&navigator.maxTouchPoints>1&&d.indexOf("Macintosh")!==-1&&d.indexOf("Safari")!==-1&&(f=!0),f}},39898:function(i,o,a){var s,u;(function(){var c={version:"3.8.0"},d=[].slice,f=function($){return d.call($)},p=self.document;function m($){return $&&($.ownerDocument||$.document||$).documentElement}function g($){return $&&($.ownerDocument&&$.ownerDocument.defaultView||$.document&&$||$.defaultView)}if(p)try{f(p.documentElement.childNodes)[0].nodeType}catch{f=function(J){for(var oe=J.length,fe=new Array(oe);oe--;)fe[oe]=J[oe];return fe}}if(Date.now||(Date.now=function(){return+new Date}),p)try{p.createElement("DIV").style.setProperty("opacity",0,"")}catch{var b=this.Element.prototype,v=b.setAttribute,h=b.setAttributeNS,y=this.CSSStyleDeclaration.prototype,w=y.setProperty;b.setAttribute=function(J,oe){v.call(this,J,oe+"")},b.setAttributeNS=function(J,oe,fe){h.call(this,J,oe,fe+"")},y.setProperty=function(J,oe,fe){w.call(this,J,oe+"",fe)}}function _($,J){return $J?1:$>=J?0:NaN}function x($){return $===null?NaN:+$}function T($){return!isNaN($)}function k($){return{left:function(J,oe,fe,me){for(arguments.length<3&&(fe=0),arguments.length<4&&(me=J.length);fe>>1;$(J[ve],oe)<0?fe=ve+1:me=ve}return fe},right:function(J,oe,fe,me){for(arguments.length<3&&(fe=0),arguments.length<4&&(me=J.length);fe>>1;$(J[ve],oe)>0?me=ve:fe=ve+1}return fe}}}c.ascending=_,c.descending=function($,J){return J<$?-1:J>$?1:J>=$?0:NaN},c.min=function($,J){var oe,fe,me=-1,ve=$.length;if(arguments.length===1){for(;++me=fe){oe=fe;break}for(;++mefe&&(oe=fe)}else{for(;++me=fe){oe=fe;break}for(;++mefe&&(oe=fe)}return oe},c.max=function($,J){var oe,fe,me=-1,ve=$.length;if(arguments.length===1){for(;++me=fe){oe=fe;break}for(;++meoe&&(oe=fe)}else{for(;++me=fe){oe=fe;break}for(;++meoe&&(oe=fe)}return oe},c.extent=function($,J){var oe,fe,me,ve=-1,De=$.length;if(arguments.length===1){for(;++ve=fe){oe=me=fe;break}for(;++vefe&&(oe=fe),me=fe){oe=me=fe;break}for(;++vefe&&(oe=fe),me1)return De/(Ne-1)},c.deviation=function(){var $=c.variance.apply(this,arguments);return $&&Math.sqrt($)};var S=k(_);function C($){return $.length}c.bisectLeft=S.left,c.bisect=c.bisectRight=S.right,c.bisector=function($){return k($.length===1?function(J,oe){return _($(J),oe)}:$)},c.shuffle=function($,J,oe){(ve=arguments.length)<3&&(oe=$.length,ve<2&&(J=0));for(var fe,me,ve=oe-J;ve;)me=Math.random()*ve--|0,fe=$[ve+J],$[ve+J]=$[me+J],$[me+J]=fe;return $},c.permute=function($,J){for(var oe=J.length,fe=new Array(oe);oe--;)fe[oe]=$[J[oe]];return fe},c.pairs=function($){for(var J=0,oe=$.length-1,fe=$[0],me=new Array(oe<0?0:oe);J=0;)for(J=(fe=$[me]).length;--J>=0;)oe[--De]=fe[J];return oe};var M=Math.abs;function O($,J){for(var oe in J)Object.defineProperty($.prototype,oe,{value:J[oe],enumerable:!1})}function D(){this._=Object.create(null)}c.range=function($,J,oe){if(arguments.length<3&&(oe=1,arguments.length<2&&(J=$,$=0)),(J-$)/oe==1/0)throw new Error("infinite range");var fe,me=[],ve=function(Ee){for(var Ne=1;Ee*Ne%1;)Ne*=10;return Ne}(M(oe)),De=-1;if($*=ve,J*=ve,(oe*=ve)<0)for(;(fe=$+oe*++De)>J;)me.push(fe/ve);else for(;(fe=$+oe*++De)=fe.length)return J?J.call(oe,Ne):$?Ne.sort($):Ne;for(var Ve,Je,at,bt,Pt=-1,pt=Ne.length,wt=fe[je++],lt=new D;++Pt=fe.length)return Ee;var je=[],Ve=me[Ne++];return Ee.forEach(function(Je,at){je.push({key:Je,values:De(at,Ne)})}),Ve?je.sort(function(Je,at){return Ve(Je.key,at.key)}):je}return oe.map=function(Ee,Ne){return ve(Ne,Ee,0)},oe.entries=function(Ee){return De(ve(c.map,Ee,0),0)},oe.key=function(Ee){return fe.push(Ee),oe},oe.sortKeys=function(Ee){return me[fe.length-1]=Ee,oe},oe.sortValues=function(Ee){return $=Ee,oe},oe.rollup=function(Ee){return J=Ee,oe},oe},c.set=function($){var J=new R;if($)for(var oe=0,fe=$.length;oe=0&&(fe=$.slice(oe+1),$=$.slice(0,oe)),$)return arguments.length<2?this[$].on(fe):this[$].on(fe,J);if(arguments.length===2){if(J==null)for($ in this)this.hasOwnProperty($)&&this[$].on(fe,null);return this}},c.event=null,c.requote=function($){return $.replace(G,"\\$&")};var G=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,X={}.__proto__?function($,J){$.__proto__=J}:function($,J){for(var oe in J)$[oe]=J[oe]};function Q($){return X($,se),$}var re=function($,J){return J.querySelector($)},ae=function($,J){return J.querySelectorAll($)},ie=function($,J){var oe=$.matches||$[L($,"matchesSelector")];return ie=function(fe,me){return oe.call(fe,me)},ie($,J)};typeof Sizzle=="function"&&(re=function($,J){return Sizzle($,J)[0]||null},ae=Sizzle,ie=Sizzle.matchesSelector),c.selection=function(){return c.select(p.documentElement)};var se=c.selection.prototype=[];function he($){return typeof $=="function"?$:function(){return re($,this)}}function Se($){return typeof $=="function"?$:function(){return ae($,this)}}se.select=function($){var J,oe,fe,me,ve=[];$=he($);for(var De=-1,Ee=this.length;++De=0&&(oe=$.slice(0,J))!=="xmlns"&&($=$.slice(J+1)),Pe.hasOwnProperty(oe)?{space:Pe[oe],local:$}:$}},se.attr=function($,J){if(arguments.length<2){if(typeof $=="string"){var oe=this.node();return($=c.ns.qualify($)).local?oe.getAttributeNS($.space,$.local):oe.getAttribute($)}for(J in $)this.each(Me(J,$[J]));return this}return this.each(Me($,J))},se.classed=function($,J){if(arguments.length<2){if(typeof $=="string"){var oe=this.node(),fe=($=K($)).length,me=-1;if(J=oe.classList){for(;++me=0;)(oe=fe[me])&&(ve&&ve!==oe.nextSibling&&ve.parentNode.insertBefore(oe,ve),ve=oe);return this},se.sort=function($){$=Ae.apply(this,arguments);for(var J=-1,oe=this.length;++J0&&($=$.slice(0,me));var De=Be.get($);function Ee(){var Ne=this[fe];Ne&&(this.removeEventListener($,Ne,Ne.$),delete this[fe])}return De&&($=De,ve=qe),me?J?function(){var Ne=ve(J,f(arguments));Ee.call(this),this.addEventListener($,this[fe]=Ne,Ne.$=oe),Ne._=J}:Ee:J?U:function(){var Ne,je=new RegExp("^__on([^.]+)"+c.requote($)+"$");for(var Ve in this)if(Ne=Ve.match(je)){var Je=this[Ve];this.removeEventListener(Ne[1],Je,Je.$),delete this[Ve]}}}c.selection.enter=Le,c.selection.enter.prototype=$e,$e.append=se.append,$e.empty=se.empty,$e.node=se.node,$e.call=se.call,$e.size=se.size,$e.select=function($){for(var J,oe,fe,me,ve,De=[],Ee=-1,Ne=this.length;++Ee=fe&&(fe=De+1);!(Ne=je[fe])&&++fe1?ut:$<-1?-ut:Math.asin($)}function Wt($){return(($=Math.exp($))+1/$)/2}var _t=Math.SQRT2;c.interpolateZoom=function($,J){var oe,fe,me=$[0],ve=$[1],De=$[2],Ee=J[0],Ne=J[1],je=J[2],Ve=Ee-me,Je=Ne-ve,at=Ve*Ve+Je*Je;if(at0&&(an=an.transition().duration(at)),an.call(Tt.event)}function nn(){De&&De.domain(ve.range().map(function(an){return(an-je.x)/je.k}).map(ve.invert)),Ne&&Ne.domain(Ee.range().map(function(an){return(an-je.y)/je.k}).map(Ee.invert))}function Sn(an){bt++||an({type:"zoomstart"})}function Pn(an){nn(),an({type:"zoom",scale:je.k,translate:[je.x,je.y]})}function In(an){--bt||(an({type:"zoomend"}),J=null)}function On(){var an=this,wn=Dt.of(an,arguments),qn=0,Hn=c.select(g(an)).on(pt,function(){qn=1,Gt(c.mouse(an),Jn),Pn(wn)}).on(wt,function(){Hn.on(pt,null).on(wt,null),Mr(qn),In(wn)}),Jn=ft(c.mouse(an)),Mr=st(an);Rg.call(an),Sn(wn)}function Gn(){var an,wn=this,qn=Dt.of(wn,arguments),Hn={},Jn=0,Mr=".zoom-"+c.event.changedTouches[0].identifier,sa="touchmove"+Mr,Xr="touchend"+Mr,Sa=[],ua=c.select(wn),Ca=st(wn);function ao(){var Da=c.touches(wn);return an=je.k,Da.forEach(function(ca){ca.identifier in Hn&&(Hn[ca.identifier]=ft(ca))}),Da}function Ri(){var Da=c.event.target;c.select(Da).on(sa,Ji).on(Xr,el),Sa.push(Da);for(var ca=c.event.changedTouches,ho=0,mo=ca.length;ho1){Al=So[0];var vs=So[1],$g=Al[0]-vs[0],e6=Al[1]-vs[1];Jn=$g*$g+e6*e6}}function Ji(){var Da,ca,ho,mo,So=c.touches(wn);Rg.call(wn);for(var si=0,Al=So.length;si360?Ee-=360:Ee<0&&(Ee+=360),Ee<60?fe+(me-fe)*Ee/60:Ee<180?me:Ee<240?fe+(me-fe)*(240-Ee)/60:fe}(De))}return $=isNaN($)?0:($%=360)<0?$+360:$,J=isNaN(J)||J<0?0:J>1?1:J,fe=2*(oe=oe<0?0:oe>1?1:oe)-(me=oe<=.5?oe*(1+J):oe+J-oe*J),new It(ve($+120),ve($),ve($-120))}function nt($,J,oe){return this instanceof nt?(this.h=+$,this.c=+J,void(this.l=+oe)):arguments.length<2?$ instanceof nt?new nt($.h,$.c,$.l):function(fe,me,ve){return fe>0?new nt(Math.atan2(ve,me)*Rt,Math.sqrt(me*me+ve*ve),fe):new nt(NaN,NaN,fe)}($ instanceof rt?$.l:($=Bt(($=c.rgb($)).r,$.g,$.b)).l,$.a,$.b):new nt($,J,oe)}Ke.brighter=function($){return $=Math.pow(.7,arguments.length?$:1),new et(this.h,this.s,this.l/$)},Ke.darker=function($){return $=Math.pow(.7,arguments.length?$:1),new et(this.h,this.s,$*this.l)},Ke.rgb=function(){return Ye(this.h,this.s,this.l)},c.hcl=nt;var ct=nt.prototype=new He;function yt($,J,oe){return isNaN($)&&($=0),isNaN(J)&&(J=0),new rt(oe,Math.cos($*=ht)*J,Math.sin($)*J)}function rt($,J,oe){return this instanceof rt?(this.l=+$,this.a=+J,void(this.b=+oe)):arguments.length<2?$ instanceof rt?new rt($.l,$.a,$.b):$ instanceof nt?yt($.h,$.c,$.l):Bt(($=It($)).r,$.g,$.b):new rt($,J,oe)}ct.brighter=function($){return new nt(this.h,this.c,Math.min(100,this.l+Ft*(arguments.length?$:1)))},ct.darker=function($){return new nt(this.h,this.c,Math.max(0,this.l-Ft*(arguments.length?$:1)))},ct.rgb=function(){return yt(this.h,this.c,this.l).rgb()},c.lab=rt;var Ft=18,Yt=.95047,Mt=1,jt=1.08883,Lt=rt.prototype=new He;function gt($,J,oe){var fe=($+16)/116,me=fe+J/500,ve=fe-oe/200;return new It(Ut(3.2404542*(me=mt(me)*Yt)-1.5371385*(fe=mt(fe)*Mt)-.4985314*(ve=mt(ve)*jt)),Ut(-.969266*me+1.8760108*fe+.041556*ve),Ut(.0556434*me-.2040259*fe+1.0572252*ve))}function mt($){return $>.206893034?$*$*$:($-.13793103448275862)/7.787037}function xt($){return $>.008856?Math.pow($,.3333333333333333):7.787037*$+.13793103448275862}function Ut($){return Math.round(255*($<=.00304?12.92*$:1.055*Math.pow($,.4166666666666667)-.055))}function It($,J,oe){return this instanceof It?(this.r=~~$,this.g=~~J,void(this.b=~~oe)):arguments.length<2?$ instanceof It?new It($.r,$.g,$.b):Nt(""+$,It,Ye):new It($,J,oe)}function zt($){return new It($>>16,$>>8&255,255&$)}function kt($){return zt($)+""}Lt.brighter=function($){return new rt(Math.min(100,this.l+Ft*(arguments.length?$:1)),this.a,this.b)},Lt.darker=function($){return new rt(Math.max(0,this.l-Ft*(arguments.length?$:1)),this.a,this.b)},Lt.rgb=function(){return gt(this.l,this.a,this.b)},c.rgb=It;var Ot=It.prototype=new He;function At($){return $<16?"0"+Math.max(0,$).toString(16):Math.min(255,$).toString(16)}function Nt($,J,oe){var fe,me,ve,De=0,Ee=0,Ne=0;if(fe=/([a-z]+)\((.*)\)/.exec($=$.toLowerCase()))switch(me=fe[2].split(","),fe[1]){case"hsl":return oe(parseFloat(me[0]),parseFloat(me[1])/100,parseFloat(me[2])/100);case"rgb":return J(Zt(me[0]),Zt(me[1]),Zt(me[2]))}return(ve=qt.get($))?J(ve.r,ve.g,ve.b):($==null||$.charAt(0)!=="#"||isNaN(ve=parseInt($.slice(1),16))||($.length===4?(De=(3840&ve)>>4,De|=De>>4,Ee=240&ve,Ee|=Ee>>4,Ne=15&ve,Ne|=Ne<<4):$.length===7&&(De=(16711680&ve)>>16,Ee=(65280&ve)>>8,Ne=255&ve)),J(De,Ee,Ne))}function $t($,J,oe){var fe,me,ve=Math.min($/=255,J/=255,oe/=255),De=Math.max($,J,oe),Ee=De-ve,Ne=(De+ve)/2;return Ee?(me=Ne<.5?Ee/(De+ve):Ee/(2-De-ve),fe=$==De?(J-oe)/Ee+(J0&&Ne<1?0:fe),new et(fe,me,Ne)}function Bt($,J,oe){var fe=xt((.4124564*($=Xt($))+.3575761*(J=Xt(J))+.1804375*(oe=Xt(oe)))/Yt),me=xt((.2126729*$+.7151522*J+.072175*oe)/Mt);return rt(116*me-16,500*(fe-me),200*(me-xt((.0193339*$+.119192*J+.9503041*oe)/jt)))}function Xt($){return($/=255)<=.04045?$/12.92:Math.pow(($+.055)/1.055,2.4)}function Zt($){var J=parseFloat($);return $.charAt($.length-1)==="%"?Math.round(2.55*J):J}Ot.brighter=function($){$=Math.pow(.7,arguments.length?$:1);var J=this.r,oe=this.g,fe=this.b,me=30;return J||oe||fe?(J&&J=200&&Je<300||Je===304){try{Ve=oe.call(me,Ee)}catch(at){return void ve.error.call(me,at)}ve.load.call(me,Ve)}else ve.error.call(me,Ee)}return self.XDomainRequest&&!("withCredentials"in Ee)&&/^(http(s)?:)?\/\//.test($)&&(Ee=new XDomainRequest),"onload"in Ee?Ee.onload=Ee.onerror=je:Ee.onreadystatechange=function(){Ee.readyState>3&&je()},Ee.onprogress=function(Ve){var Je=c.event;c.event=Ve;try{ve.progress.call(me,Ee)}finally{c.event=Je}},me.header=function(Ve,Je){return Ve=(Ve+"").toLowerCase(),arguments.length<2?De[Ve]:(Je==null?delete De[Ve]:De[Ve]=Je+"",me)},me.mimeType=function(Ve){return arguments.length?(J=Ve==null?null:Ve+"",me):J},me.responseType=function(Ve){return arguments.length?(Ne=Ve,me):Ne},me.response=function(Ve){return oe=Ve,me},["get","post"].forEach(function(Ve){me[Ve]=function(){return me.send.apply(me,[Ve].concat(f(arguments)))}}),me.send=function(Ve,Je,at){if(arguments.length===2&&typeof Je=="function"&&(at=Je,Je=null),Ee.open(Ve,$,!0),J==null||"accept"in De||(De.accept=J+",*/*"),Ee.setRequestHeader)for(var bt in De)Ee.setRequestHeader(bt,De[bt]);return J!=null&&Ee.overrideMimeType&&Ee.overrideMimeType(J),Ne!=null&&(Ee.responseType=Ne),at!=null&&me.on("error",at).on("load",function(Pt){at(null,Pt)}),ve.beforesend.call(me,Ee),Ee.send(Je??null),me},me.abort=function(){return Ee.abort(),me},c.rebind(me,ve,"on"),fe==null?me:me.get(function(Ve){return Ve.length===1?function(Je,at){Ve(Je==null?at:null)}:Ve}(fe))}qt.forEach(function($,J){qt.set($,zt(J))}),c.functor=Ht,c.xhr=sn(q),c.dsv=function($,J){var oe=new RegExp('["'+$+` +`)),ce=B.med!==f?B.med:B.q1!==f?B.q3!==f?(B.q1+B.q3)/2:B.q1:B.q3!==f?B.q3:0,B.med=ce,B.q1=B.q3=ce,B.lf=B.uf=ce,B.mean=B.sd=ce,B.ln=B.un=ce,B.min=B.max=ce}Q=Math.min(Q,B.min),re=Math.max(re,B.max),B.pts2=N.filter(Z),j.push(B)}}k._extremes[M._id]=u.findExtremes(M,[Q,re],{padded:!0})}else{var we=M.makeCalcdata(k,O),K=function($e,Fe){for(var Be=$e.length,Ue=new Array(Be+1),qe=0;qe=0&&_e0){var Ae,Re;(B={}).pos=B[P]=ee[S],N=B.pts=de[S].sort(b),q=(R=B[O]=N.map(v)).length,B.min=R[0],B.max=R[q-1],B.mean=d.mean(R,q),B.sd=d.stdev(R,q,B.mean)*k.sdmultiple,B.med=d.interp(R,.5),q%2&&(ye||Te)?(ye?(Ae=R.slice(0,q/2),Re=R.slice(q/2+1)):Te&&(Ae=R.slice(0,q/2+1),Re=R.slice(q/2)),B.q1=d.interp(Ae,.5),B.q3=d.interp(Re,.5)):(B.q1=d.interp(R,.25),B.q3=d.interp(R,.75)),B.lf=h(B,R,q),B.uf=y(B,R,q),B.lo=w(B),B.uo=_(B);var Le=x(B,q);B.ln=B.med-Le,B.un=B.med+Le,ue=Math.min(ue,B.ln),pe=Math.max(pe,B.un),B.pts2=N.filter(Z),j.push(B)}k._extremes[M._id]=u.findExtremes(M,k.notched?we.concat([ue,pe]):we,{padded:!0})}return function($e,Fe){if(d.isArrayOrTypedArray(Fe.selectedpoints))for(var Be=0;Be<$e.length;Be++){for(var Ue=$e[Be].pts||[],qe={},Xe=0;Xe0?(j[0].t={num:I[z],dPos:H,posLetter:P,valLetter:O,labels:{med:p(T,"median:"),min:p(T,"min:"),q1:p(T,"q1:"),q3:p(T,"q3:"),max:p(T,"max:"),mean:k.boxmean==="sd"||k.sizemode==="sd"?p(T,"mean ± σ:").replace("σ",k.sdmultiple===1?"σ":k.sdmultiple+"σ"):p(T,"mean:"),lf:p(T,"lower fence:"),uf:p(T,"upper fence:")}},I[z]++,j):[{t:{empty:!0}}]};var m={text:"tx",hovertext:"htx"};function g(T,k,S){for(var C in m)d.isArrayOrTypedArray(k[C])&&(Array.isArray(S)?d.isArrayOrTypedArray(k[C][S[0]])&&(T[m[C]]=k[C][S[0]][S[1]]):T[m[C]]=k[C][S])}function b(T,k){return T.v-k.v}function v(T){return T.v}function h(T,k,S){return S===0?T.q1:Math.min(T.q1,k[Math.min(d.findBin(2.5*T.q1-1.5*T.q3,k,!0)+1,S-1)])}function y(T,k,S){return S===0?T.q3:Math.max(T.q3,k[Math.max(d.findBin(2.5*T.q3-1.5*T.q1,k),0)])}function w(T){return 4*T.q1-3*T.q3}function _(T){return 4*T.q3-3*T.q1}function x(T,k){return k===0?0:1.57*(T.q3-T.q1)/Math.sqrt(k)}},37188:function(i,o,a){var s=a(89298),u=a(71828),c=a(99082).getAxisGroup,d=["v","h"];function f(p,m,g,b){var v,h,y,w=m.calcdata,_=m._fullLayout,x=b._id,T=x.charAt(0),k=[],S=0;for(v=0;v1,P=1-_[p+"gap"],E=1-_[p+"groupgap"];for(v=0;v0){var ae=N.pointpos,ie=N.jitter,se=N.marker.size/2,he=0;ae+ie>=0&&((he=Q*(ae+ie))>z?(re=!0,G=se,H=he):he>te&&(G=se,H=z)),he<=z&&(H=z);var Se=0;ae-ie<=0&&((Se=-Q*(ae-ie))>B?(re=!0,X=se,Z=Se):Se>ee&&(X=se,Z=B)),Se<=B&&(Z=B)}else H=z,Z=B;var Oe=new Array(y.length);for(h=0;h0?(D="v",P=I>0?Math.min(F,A):Math.min(A)):I>0?(D="h",P=Math.min(F)):P=0;if(P){h._length=P;var q=y("orientation",D);h._hasPreCompStats?q==="v"&&I===0?(y("x0",0),y("dx",1)):q==="h"&&E===0&&(y("y0",0),y("dy",1)):q==="v"&&I===0?y("x0"):q==="h"&&E===0&&y("y0"),u.getComponentMethod("calendars","handleTraceDefaults")(v,h,["x","y"],w)}else h.visible=!1}function b(v,h,y,w){var _=w.prefix,x=s.coerce2(v,h,m,"marker.outliercolor"),T=y("marker.line.outliercolor"),k="outliers";h._hasPreCompStats?k="all":(x||T)&&(k="suspectedoutliers");var S=y(_+"points",k);S?(y("jitter",S==="all"?.3:0),y("pointpos",S==="all"?-1.5:0),y("marker.symbol"),y("marker.opacity"),y("marker.size"),y("marker.angle"),y("marker.color",h.line.color),y("marker.line.color"),y("marker.line.width"),S==="suspectedoutliers"&&(y("marker.line.outliercolor",h.marker.color),y("marker.line.outlierwidth")),y("selected.marker.color"),y("unselected.marker.color"),y("selected.marker.size"),y("unselected.marker.size"),y("text"),y("hovertext")):delete h.marker;var C=y("hoveron");C!=="all"&&C.indexOf("points")===-1||y("hovertemplate"),s.coerceSelectionMarkerOpacity(h,y)}i.exports={supplyDefaults:function(v,h,y,w){function _(P,E){return s.coerce(v,h,m,P,E)}if(g(v,h,_,w),h.visible!==!1){d(v,h,w,_),_("xhoverformat"),_("yhoverformat");var x=h._hasPreCompStats;x&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||y),_("line.width"),_("fillcolor",c.addOpacity(h.line.color,.5));var T=!1;if(x){var k=_("mean"),S=_("sd");k&&k.length&&(T=!0,S&&S.length&&(T="sd"))}_("whiskerwidth");var C,M=_("sizemode");M==="quartiles"&&(C=_("boxmean",T)),_("showwhiskers",M==="quartiles"),M!=="sd"&&C!=="sd"||_("sdmultiple"),_("width"),_("quartilemethod");var O=!1;if(x){var D=_("notchspan");D&&D.length&&(O=!0)}else s.validate(v.notchwidth,m.notchwidth)&&(O=!0);_("notched",O)&&_("notchwidth"),b(v,h,_,{prefix:"box"})}},crossTraceDefaults:function(v,h){var y,w;function _(k){return s.coerce(w._input,w,m,k)}for(var x=0;xS.lo&&(R.so=!0)}return O});k.enter().append("path").classed("point",!0),k.exit().remove(),k.call(c.translatePoints,h,y)}function p(m,g,b,v){var h,y,w=g.val,_=g.pos,x=!!_.rangebreaks,T=v.bPos,k=v.bPosPxOffset||0,S=b.boxmean||(b.meanline||{}).visible;Array.isArray(v.bdPos)?(h=v.bdPos[0],y=v.bdPos[1]):(h=v.bdPos,y=v.bdPos);var C=m.selectAll("path.mean").data(b.type==="box"&&b.boxmean||b.type==="violin"&&b.box.visible&&b.meanline.visible?u.identity:[]);C.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),C.exit().remove(),C.each(function(M){var O=_.c2l(M.pos+T,!0),D=_.l2p(O-h)+k,P=_.l2p(O+y)+k,E=x?(D+P)/2:_.l2p(O)+k,I=w.c2p(M.mean,!0),A=w.c2p(M.mean-M.sd,!0),F=w.c2p(M.mean+M.sd,!0);b.orientation==="h"?s.select(this).attr("d","M"+I+","+D+"V"+P+(S==="sd"?"m0,0L"+A+","+E+"L"+I+","+D+"L"+F+","+E+"Z":"")):s.select(this).attr("d","M"+D+","+I+"H"+P+(S==="sd"?"m0,0L"+E+","+A+"L"+D+","+I+"L"+E+","+F+"Z":""))})}i.exports={plot:function(m,g,b,v){var h=m._context.staticPlot,y=g.xaxis,w=g.yaxis;u.makeTraceGroups(v,b,"trace boxes").each(function(_){var x,T,k=s.select(this),S=_[0],C=S.t,M=S.trace;C.wdPos=C.bdPos*M.whiskerwidth,M.visible!==!0||C.empty?k.remove():(M.orientation==="h"?(x=w,T=y):(x=y,T=w),d(k,{pos:x,val:T},M,C,h),f(k,{x:y,y:w},M,C),p(k,{pos:x,val:T},M,C))})},plotBoxAndWhiskers:d,plotPoints:f,plotBoxMean:p}},24626:function(i){i.exports=function(o,a){var s,u,c=o.cd,d=o.xaxis,f=o.yaxis,p=[];if(a===!1)for(s=0;sf.level||f.starts.length&&d===f.level)}break;case"constraint":if(u.prefixBoundary=!1,u.edgepaths.length)return;var p=u.x.length,m=u.y.length,g=-1/0,b=1/0;for(s=0;s":y>g&&(u.prefixBoundary=!0);break;case"<":(yg||u.starts.length&&h===b)&&(u.prefixBoundary=!0);break;case"][":v=Math.min(y[0],y[1]),h=Math.max(y[0],y[1]),vg&&(u.prefixBoundary=!0)}}}},90654:function(i,o,a){var s=a(21081),u=a(86068),c=a(53572);i.exports={min:"zmin",max:"zmax",calc:function(d,f,p){var m=f.contours,g=f.line,b=m.size||1,v=m.coloring,h=u(f,{isColorbar:!0});if(v==="heatmap"){var y=s.extractOpts(f);p._fillgradient=y.reversescale?s.flipScale(y.colorscale):y.colorscale,p._zrange=[y.min,y.max]}else v==="fill"&&(p._fillcolor=h);p._line={color:v==="lines"?h:g.color,width:m.showlines!==!1?g.width:0,dash:g.dash},p._levels={start:m.start,end:c(m),size:b}}}},36914:function(i){i.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},83179:function(i,o,a){var s=a(92770),u=a(14523),c=a(7901),d=c.addOpacity,f=c.opacity,p=a(74808),m=p.CONSTRAINT_REDUCTION,g=p.COMPARISON_OPS2;i.exports=function(b,v,h,y,w,_){var x,T,k,S=v.contours,C=h("contours.operation");S._operation=m[C],function(M,O){var D;g.indexOf(O.operation)===-1?(M("contours.value",[0,1]),Array.isArray(O.value)?O.value.length>2?O.value=O.value.slice(2):O.length===0?O.value=[0,1]:O.length<2?(D=parseFloat(O.value[0]),O.value=[D,D+1]):O.value=[parseFloat(O.value[0]),parseFloat(O.value[1])]:s(O.value)&&(D=parseFloat(O.value),O.value=[D,D+1])):(M("contours.value",0),s(O.value)||(Array.isArray(O.value)?O.value=parseFloat(O.value[0]):O.value=0))}(h,S),C==="="?x=S.showlines=!0:(x=h("contours.showlines"),k=h("fillcolor",d((b.line||{}).color||w,.5))),x&&(T=h("line.color",k&&f(k)?d(v.fillcolor,1):w),h("line.width",2),h("line.dash")),h("line.smoothing"),u(h,y,T,_)}},64237:function(i,o,a){var s=a(74808),u=a(92770);function c(p,m){var g,b=Array.isArray(m);function v(h){return u(h)?+h:null}return s.COMPARISON_OPS2.indexOf(p)!==-1?g=v(b?m[0]:m):s.INTERVAL_OPS.indexOf(p)!==-1?g=b?[v(m[0]),v(m[1])]:[v(m),v(m)]:s.SET_OPS.indexOf(p)!==-1&&(g=b?m.map(v):[v(m)]),g}function d(p){return function(m){m=c(p,m);var g=Math.min(m[0],m[1]),b=Math.max(m[0],m[1]);return{start:g,end:b,size:b-g}}}function f(p){return function(m){return{start:m=c(p,m),end:1/0,size:1/0}}}i.exports={"[]":d("[]"),"][":d("]["),">":f(">"),"<":f("<"),"=":f("=")}},67217:function(i){i.exports=function(o,a,s,u){var c=u("contours.start"),d=u("contours.end"),f=c===!1||d===!1,p=s("contours.size");!(f?a.autocontour=!0:s("autocontour",!1))&&p||s("ncontours")}},84857:function(i,o,a){var s=a(71828);function u(c){return s.extendFlat({},c,{edgepaths:s.extendDeep([],c.edgepaths),paths:s.extendDeep([],c.paths),starts:s.extendDeep([],c.starts)})}i.exports=function(c,d){var f,p,m,g=function(h){return h.reverse()},b=function(h){return h};switch(d){case"=":case"<":return c;case">":for(c.length!==1&&s.warn("Contour data invalid for the specified inequality operation."),p=c[0],f=0;f1e3){s.warn("Too many contours, clipping at 1000",d);break}return b}},53572:function(i){i.exports=function(o){return o.end+o.size/1e6}},81696:function(i,o,a){var s=a(71828),u=a(36914);function c(p,m,g,b){return Math.abs(p[0]-m[0])20&&re?Q===208||Q===1114?ie=ae[0]===0?1:-1:se=ae[1]===0?1:-1:u.BOTTOMSTART.indexOf(Q)!==-1?se=1:u.LEFTSTART.indexOf(Q)!==-1?ie=1:u.TOPSTART.indexOf(Q)!==-1?se=-1:ie=-1,[ie,se]}(w,g,m),x=[f(p,m,[-_[0],-_[1]])],T=p.z.length,k=p.z[0].length,S=m.slice(),C=_.slice();for(h=0;h<1e4;h++){if(w>20?(w=u.CHOOSESADDLE[w][(_[0]||_[1])<0?0:1],p.crossings[y]=u.SADDLEREMAINDER[w]):delete p.crossings[y],!(_=u.NEWDELTA[w])){s.log("Found bad marching index:",w,m,p.level);break}x.push(f(p,m,_)),m[0]+=_[0],m[1]+=_[1],y=m.join(","),c(x[x.length-1],x[x.length-2],b,v)&&x.pop();var M=_[0]&&(m[0]<0||m[0]>k-2)||_[1]&&(m[1]<0||m[1]>T-2);if(m[0]===S[0]&&m[1]===S[1]&&_[0]===C[0]&&_[1]===C[1]||g&&M)break;w=p.crossings[y]}h===1e4&&s.log("Infinite loop in contour?");var O,D,P,E,I,A,F,j,z,B,N,R,q,Y,L,W=c(x[0],x[x.length-1],b,v),U=0,V=.2*p.smoothing,te=[],ee=0;for(h=1;h=ee;h--)if((O=te[h])=ee&&O+te[D]j&&z--,p.edgepaths[z]=N.concat(x,B));break}X||(p.edgepaths[j]=x.concat(B))}for(j=0;j=C)&&(p<=S&&(p=S),m>=C&&(m=C),b=Math.floor((m-p)/g)+1,v=0),w=0;wS&&(T.unshift(S),k.unshift(k[0])),T[T.length-1]c?0:1)+(d[0][1]>c?0:2)+(d[1][1]>c?0:4)+(d[1][0]>c?0:8);return f===5||f===10?c>(d[0][0]+d[0][1]+d[1][0]+d[1][1])/4?f===5?713:1114:f===5?104:208:f===15?0:f}i.exports=function(c){var d,f,p,m,g,b,v,h,y,w=c[0].z,_=w.length,x=w[0].length,T=_===2||x===2;for(f=0;f<_-1;f++)for(m=[],f===0&&(m=m.concat(s.BOTTOMSTART)),f===_-2&&(m=m.concat(s.TOPSTART)),d=0;d=0&&(D=L,E=I):Math.abs(O[1]-D[1])<.01?Math.abs(O[1]-L[1])<.01&&(L[0]-O[0])*(D[0]-L[0])>=0&&(D=L,E=I):u.log("endpt to newendpt is not vert. or horz.",O,D,L)}if(O=D,E>=0)break;j+="L"+D}if(E===C.edgepaths.length){u.log("unclosed perimeter path");break}z=E,(N=B.indexOf(z)===-1)&&(z=B[0],j+="Z")}for(z=0;zD.center?D.right-I:I-D.left)/(j+Math.abs(Math.sin(F)*E)),N=(A>D.middle?D.bottom-A:A-D.top)/(Math.abs(z)+Math.cos(F)*E);if(B<1||N<1)return 1/0;var R=x.EDGECOST*(1/(B-1)+1/(N-1));R+=x.ANGLECOST*F*F;for(var q=I-j,Y=A-z,L=I+j,W=A+z,U=0;U2*x.MAXCOST)break;N&&(I/=2),A=(E=F-I/2)+1.5*I}if(B<=x.MAXCOST)return j},o.addLabelData=function(C,M,O,D){var P=M.fontSize,E=M.width+P/3,I=Math.max(0,M.height-P/3),A=C.x,F=C.y,j=C.theta,z=Math.sin(j),B=Math.cos(j),N=function(q,Y){return[A+q*B-Y*z,F+q*z+Y*B]},R=[N(-E/2,-I/2),N(-E/2,I/2),N(E/2,I/2),N(E/2,-I/2)];O.push({text:M.text,x:A,y:F,dy:M.dy,theta:j,level:M.level,width:E,height:I}),D.push(R)},o.drawLabels=function(C,M,O,D,P){var E=C.selectAll("text").data(M,function(F){return F.text+","+F.x+","+F.y+","+F.theta});if(E.exit().remove(),E.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(F){var j=F.x+Math.sin(F.theta)*F.dy,z=F.y-Math.cos(F.theta)*F.dy;s.select(this).text(F.text).attr({x:j,y:z,transform:"rotate("+180*F.theta/Math.PI+" "+j+" "+z+")"}).call(f.convertToTspans,O)}),P){for(var I="",A=0;Ap.end&&(p.start=p.end=(p.start+p.end)/2),d._input.contours||(d._input.contours={}),u.extendFlat(d._input.contours,{start:p.start,end:p.end,size:p.size}),d._input.autocontour=!0}else if(p.type!=="constraint"){var v,h=p.start,y=p.end,w=d._input.contours;h>y&&(p.start=w.start=y,y=p.end=w.end=h,h=p.start),p.size>0||(v=h===y?1:c(h,y,d.ncontours).dtick,w.size=p.size=v)}}},84426:function(i,o,a){var s=a(39898),u=a(91424),c=a(70035),d=a(86068);i.exports=function(f){var p=s.select(f).selectAll("g.contour");p.style("opacity",function(m){return m[0].trace.opacity}),p.each(function(m){var g=s.select(this),b=m[0].trace,v=b.contours,h=b.line,y=v.size||1,w=v.start,_=v.type==="constraint",x=!_&&v.coloring==="lines",T=!_&&v.coloring==="fill",k=x||T?d(b):null;g.selectAll("g.contourlevel").each(function(M){s.select(this).selectAll("path").call(u.lineGroupStyle,h.width,x?k(M.level):h.color,h.dash)});var S=v.labelfont;if(g.selectAll("g.contourlabels text").each(function(M){u.font(s.select(this),{family:S.family,size:S.size,color:S.color||(x?k(M.level):h.color)})}),_)g.selectAll("g.contourfill path").style("fill",b.fillcolor);else if(T){var C;g.selectAll("g.contourfill path").style("fill",function(M){return C===void 0&&(C=M.level),k(M.level+.5*y)}),C===void 0&&(C=w),g.selectAll("g.contourbg path").style("fill",k(C-.5*y))}}),c(f)}},8724:function(i,o,a){var s=a(1586),u=a(14523);i.exports=function(c,d,f,p,m){var g,b=f("contours.coloring"),v="";b==="fill"&&(g=f("contours.showlines")),g!==!1&&(b!=="lines"&&(v=f("line.color","#000")),f("line.width",.5),f("line.dash")),b!=="none"&&(c.showlegend!==!0&&(d.showlegend=!1),d._dfltShowLegend=!1,s(c,d,p,f,{prefix:"",cLetter:"z"})),f("line.smoothing"),u(f,p,v,m)}},21606:function(i,o,a){var s=a(82196),u=a(9012),c=a(41940),d=a(12663).axisHoverFormat,f=a(5386).fF,p=a(5386).si,m=a(50693),g=a(1426).extendFlat;i.exports=g({z:{valType:"data_array",editType:"calc"},x:g({},s.x,{impliedEdits:{xtype:"array"}}),x0:g({},s.x0,{impliedEdits:{xtype:"scaled"}}),dx:g({},s.dx,{impliedEdits:{xtype:"scaled"}}),y:g({},s.y,{impliedEdits:{ytype:"array"}}),y0:g({},s.y0,{impliedEdits:{ytype:"scaled"}}),dy:g({},s.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:g({},s.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:g({},s.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:g({},s.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:g({},s.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:g({},s.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:g({},s.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:d("x"),yhoverformat:d("y"),zhoverformat:d("z",1),hovertemplate:f(),texttemplate:p({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:c({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:g({},u.showlegend,{dflt:!1})},{transforms:void 0},m("",{cLetter:"z",autoColorDflt:!1}))},90757:function(i,o,a){var s=a(73972),u=a(71828),c=a(89298),d=a(42973),f=a(17562),p=a(78803),m=a(68296),g=a(4742),b=a(824),v=a(43907),h=a(70769),y=a(50606).BADNUM;function w(_){for(var x=[],T=_.length,k=0;k1){var X=(G[G.length-1]-G[0])/(G.length-1),Q=Math.abs(X/100);for(I=0;IQ)return!1}return!0}(F.rangebreaks||j.rangebreaks)&&(E=function(G,X,Q){for(var re=[],ae=-1,ie=0;ie=0;m--)(g=((y[[(d=(p=w[m])[0])-1,f=p[1]]]||T)[2]+(y[[d+1,f]]||T)[2]+(y[[d,f-1]]||T)[2]+(y[[d,f+1]]||T)[2])/20)&&(b[p]=[d,f,g],w.splice(m,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(p in b)y[p]=b[p],h.push(b[p])}return h.sort(function(S,C){return C[2]-S[2]})}},46248:function(i,o,a){var s=a(30211),u=a(71828),c=a(89298),d=a(21081).extractOpts;i.exports=function(f,p,m,g,b){b||(b={});var v,h,y,w,_=b.isContour,x=f.cd[0],T=x.trace,k=f.xa,S=f.ya,C=x.x,M=x.y,O=x.z,D=x.xCenter,P=x.yCenter,E=x.zmask,I=T.zhoverformat,A=C,F=M;if(f.index!==!1){try{y=Math.round(f.index[1]),w=Math.round(f.index[0])}catch{return void u.error("Error hovering on heatmap, pointNumber must be [row,col], found:",f.index)}if(y<0||y>=O[0].length||w<0||w>O.length)return}else{if(s.inbox(p-C[0],p-C[C.length-1],0)>0||s.inbox(m-M[0],m-M[M.length-1],0)>0)return;if(_){var j;for(A=[2*C[0]-C[1]],j=1;jC&&(O=Math.max(O,Math.abs(f[b][v]-S)/(M-C))))}return O}i.exports=function(f,p){var m,g=1;for(d(f,p),m=0;m.01;m++)g=d(f,p,c(g));return g>.01&&s.log("interp2d didn't converge quickly",g),f}},58623:function(i,o,a){var s=a(71828);i.exports=function(u,c){u("texttemplate");var d=s.extendFlat({},c.font,{color:"auto",size:"auto"});s.coerceFont(u,"textfont",d)}},70769:function(i,o,a){var s=a(73972),u=a(71828).isArrayOrTypedArray;i.exports=function(c,d,f,p,m,g){var b,v,h,y=[],w=s.traceIs(c,"contour"),_=s.traceIs(c,"histogram"),x=s.traceIs(c,"gl2d");if(u(d)&&d.length>1&&!_&&g.type!=="category"){var T=d.length;if(!(T<=m))return w?d.slice(0,m):d.slice(0,m+1);if(w||x)y=d.slice(0,m);else if(m===1)y=[d[0]-.5,d[0]+.5];else{for(y=[1.5*d[0]-.5*d[1]],h=1;h0;)B=A.c2p(G[Y]),Y--;for(B0;)q=F.c2p(X[Y]),Y--;q=A._length||B<=0||R>=F._length||q<=0)return U.selectAll("image").data([]).exit().remove(),void S(U);Pe==="fast"?(ce=he,we=se):(ce=K,we=ne);var de=document.createElement("canvas");de.width=ce,de.height=we;var _e,ue,pe=de.getContext("2d",{willReadFrequently:!0}),xe=h(te,{noNumericCheck:!0,returnArray:!0});Pe==="fast"?(_e=Se?function(kn){return he-1-kn}:p.identity,ue=Oe?function(kn){return se-1-kn}:p.identity):(_e=function(kn){return p.constrain(Math.round(A.c2p(G[kn])-z),0,K)},ue=function(kn){return p.constrain(Math.round(F.c2p(X[kn])-R),0,ne)});var ye,Te,Ae,Re,Le=ue(0),$e=[Le,Le],Fe=Se?0:1,Be=Oe?0:1,Ue=0,qe=0,Xe=0,ot=0;function st(kn,un){if(kn!==void 0){var tn=xe(kn);return tn[0]=Math.round(tn[0]),tn[1]=Math.round(tn[1]),tn[2]=Math.round(tn[2]),Ue+=un,qe+=tn[0]*un,Xe+=tn[1]*un,ot+=tn[2]*un,tn}return[0,0,0,0]}function dt(kn,un,tn,Fn){var Rn=kn[tn.bin0];if(Rn===void 0)return st(void 0,1);var Bn,En=kn[tn.bin1],Wn=un[tn.bin0],gr=un[tn.bin1],Va=En-Rn||0,ro=Wn-Rn||0;return Bn=En===void 0?gr===void 0?0:Wn===void 0?2*(gr-Rn):2*(2*gr-Wn-Rn)/3:gr===void 0?Wn===void 0?0:2*(2*Rn-En-Wn)/3:Wn===void 0?2*(2*gr-En-Rn)/3:gr+Rn-En-Wn,st(Rn+tn.frac*Va+Fn.frac*(ro+tn.frac*Bn))}if(Pe!=="default"){var vt,We=0;try{vt=new Uint8Array(ce*we*4)}catch{vt=new Array(ce*we*4)}if(Pe==="smooth"){var ze,tt,it,St=Q||G,Ze=re||X,ut=new Array(St.length),ht=new Array(Ze.length),Rt=new Array(K),Ct=Q?M:C,Wt=re?M:C;for(Y=0;Ygt||gt>F._length))for(L=Yt;Lxt||xt>A._length)){var Ut=g({x:mt,y:Lt},te,D._fullLayout);Ut.x=mt,Ut.y=Lt;var It=V.z[Y][L];It===void 0?(Ut.z="",Ut.zLabel=""):(Ut.z=It,Ut.zLabel=f.tickText(ct,It,"hover").text);var zt=V.text&&V.text[Y]&&V.text[Y][L];zt!==void 0&&zt!==!1||(zt=""),Ut.text=zt;var kt=p.texttemplateString(Ye,Ut,D._fullLayout._d3locale,Ut,te._meta||{});if(kt){var Ot=kt.split("
"),At=Ot.length,Nt=0;for(W=0;W0&&(C=!0);for(var D=0;Dp){var m=p-d[u];return d[u]=p,m}}return 0},max:function(u,c,d,f){var p=f[c];if(s(p)){if(p=Number(p),!s(d[u]))return d[u]=p,p;if(d[u]m?w>d?w>1.1*u?u:w>1.1*c?c:d:w>f?f:w>p?p:m:Math.pow(10,Math.floor(Math.log(w)/Math.LN10))}function h(w,_,x,T,k,S){if(T&&w>d){var C=y(_,k,S),M=y(x,k,S),O=w===u?0:1;return C[O]!==M[O]}return Math.floor(x/w)-Math.floor(_/w)>.1}function y(w,_,x){var T=_.c2d(w,u,x).split("-");return T[0]===""&&(T.unshift(),T[0]="-"+T[0]),T}i.exports=function(w,_,x,T,k){var S,C,M=-1.1*_,O=-.1*_,D=w-O,P=x[0],E=x[1],I=Math.min(b(P+O,P+D,T,k),b(E+O,E+D,T,k)),A=Math.min(b(P+M,P+O,T,k),b(E+M,E+O,T,k));if(I>A&&Ad){var F=S===u?1:6,j=S===u?"M12":"M1";return function(z,B){var N=T.c2d(z,u,k),R=N.indexOf("-",F);R>0&&(N=N.substr(0,R));var q=T.d2c(N,0,k);if(qw.r2l(X)&&(re=d.tickIncrement(re,A.size,!0,C)),ee.start=w.l2r(re),G||u.nestedProperty(y,P+".start").set(ee.start)}var ae=A.end,ie=w.r2l(te.end),se=ie!==void 0;if((A.endFound||se)&&ie!==w.r2l(ae)){var he=se?ie:u.aggNums(Math.max,null,M);ee.end=w.l2r(he),se||u.nestedProperty(y,P+".start").set(ee.end)}var Se="autobin"+_;return y._input[Se]===!1&&(y._input[P]=u.extendFlat({},y[P]||{}),delete y._input[Se],delete y[Se]),[ee,M]}i.exports={calc:function(h,y){var w,_,x,T,k=[],S=[],C=y.orientation==="h",M=d.getFromId(h,C?y.yaxis:y.xaxis),O=C?"y":"x",D={x:"y",y:"x"}[O],P=y[O+"calendar"],E=y.cumulative,I=v(h,y,M,O),A=I[0],F=I[1],j=typeof A.size=="string",z=[],B=j?z:A,N=[],R=[],q=[],Y=0,L=y.histnorm,W=y.histfunc,U=L.indexOf("density")!==-1;E.enabled&&U&&(L=L.replace(/ ?density$/,""),U=!1);var V,te=W==="max"||W==="min"?null:0,ee=p.count,H=m[L],Z=!1,G=function(ne){return M.r2c(ne,0,P)};for(u.isArrayOrTypedArray(y[D])&&W!=="count"&&(V=y[D],Z=W==="avg",ee=p[W]),w=G(A.start),x=G(A.end)+(w-d.tickIncrement(w,A.size,!1,P))/1e6;w=0&&T=0;ue--)Te(ue);else if(de==="increasing"){for(ue=1;ue=0;ue--)ne[ue]+=ne[ue+1];_e==="exclude"&&(ne.push(0),ne.shift())}}(S,E.direction,E.currentbin);var Pe=Math.min(k.length,S.length),Me=[],ce=0,we=Pe-1;for(w=0;w=ce;w--)if(S[w]){we=w;break}for(w=ce;w<=we;w++)if(s(k[w])&&s(S[w])){var K={p:k[w],s:S[w],b:0};E.enabled||(K.pts=q[w],ie?K.ph0=K.ph1=q[w].length?F[q[w][0]]:k[w]:(y._computePh=!0,K.ph0=re(z[w]),K.ph1=re(z[w+1],!0))),Me.push(K)}return Me.length===1&&(Me[0].width1=d.tickIncrement(Me[0].p,A.size,!1,P)-Me[0].p),f(Me,y),u.isArrayOrTypedArray(y.selectedpoints)&&u.tagSelected(Me,y,Se),Me},calcAllAutoBins:v}},72406:function(i){i.exports={eventDataKeys:["binNumber"]}},82222:function(i,o,a){var s=a(71828),u=a(41675),c=a(73972).traceIs,d=a(26125),f=s.nestedProperty,p=a(99082).getAxisGroup,m=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],g=["x","y"];i.exports=function(b,v){var h,y,w,_,x,T,k,S=v._histogramBinOpts={},C=[],M={},O=[];function D(U,V){return s.coerce(h._input,h,h._module.attributes,U,V)}function P(U){return U.orientation==="v"?"x":"y"}function E(U,V,te){var ee=U.uid+"__"+te;V||(V=ee);var H=function(Q,re){return u.getFromTrace({_fullLayout:v},Q,re).type}(U,te),Z=U[te+"calendar"]||"",G=S[V],X=!0;G&&(H===G.axType&&Z===G.calendar?(X=!1,G.traces.push(U),G.dirs.push(te)):(V=ee,H!==G.axType&&s.warn(["Attempted to group the bins of trace",U.index,"set on a","type:"+H,"axis","with bins on","type:"+G.axType,"axis."].join(" ")),Z!==G.calendar&&s.warn(["Attempted to group the bins of trace",U.index,"set with a",Z,"calendar","with bins",G.calendar?"on a "+G.calendar+" calendar":"w/o a set calendar"].join(" ")))),X&&(S[V]={traces:[U],dirs:[te],axType:H,calendar:U[te+"calendar"]||""}),U["_"+te+"bingroup"]=V}for(x=0;xz&&I.splice(z,I.length-z),j.length>z&&j.splice(z,j.length-z);var B=[],N=[],R=[],q=typeof E.size=="string",Y=typeof F.size=="string",L=[],W=[],U=q?L:E,V=Y?W:F,te=0,ee=[],H=[],Z=y.histnorm,G=y.histfunc,X=Z.indexOf("density")!==-1,Q=G==="max"||G==="min"?null:0,re=c.count,ae=d[Z],ie=!1,se=[],he=[],Se="z"in y?y.z:"marker"in y&&Array.isArray(y.marker.color)?y.marker.color:"";Se&&G!=="count"&&(ie=G==="avg",re=c[G]);var Oe=E.size,Pe=O(E.start),Me=O(E.end)+(Pe-u.tickIncrement(Pe,Oe,!1,C))/1e6;for(w=Pe;w=0&&x=0&&T0||s.inbox(p-m.y0,p-(m.y0+m.h*g.dy),0)>0)){var h,y=Math.floor((f-m.x0)/g.dx),w=Math.floor(Math.abs(p-m.y0)/g.dy);if(g._hasZ?h=m.z[w][y]:g._hasSource&&(h=g._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(y,w,1,1).data),h){var _,x=m.hi||g.hoverinfo;if(x){var T=x.split("+");T.indexOf("all")!==-1&&(T=["color"]),T.indexOf("color")!==-1&&(_=!0)}var k,S=c.colormodel[g.colormodel],C=S.colormodel||g.colormodel,M=C.length,O=g._scaler(h),D=S.suffix,P=[];(g.hovertemplate||_)&&(P.push("["+[O[0]+D[0],O[1]+D[1],O[2]+D[2]].join(", ")),M===4&&P.push(", "+O[3]+D[3]),P.push("]"),P=P.join(""),d.extraText=C.toUpperCase()+": "+P),Array.isArray(g.hovertext)&&Array.isArray(g.hovertext[w])?k=g.hovertext[w][y]:Array.isArray(g.text)&&Array.isArray(g.text[w])&&(k=g.text[w][y]);var E=v.c2p(m.y0+(w+.5)*g.dy),I=m.x0+(y+.5)*g.dx,A=m.y0+(w+.5)*g.dy,F="["+h.slice(0,g.colormodel.length).join(", ")+"]";return[u.extendFlat(d,{index:[w,y],x0:b.c2p(m.x0+y*g.dx),x1:b.c2p(m.x0+(y+1)*g.dx),y0:E,y1:E,color:O,xVal:I,xLabelVal:I,yVal:A,yLabelVal:A,zLabelVal:F,text:k,hovertemplateLabels:{zLabel:F,colorLabel:P,"color[0]Label":O[0]+D[0],"color[1]Label":O[1]+D[1],"color[2]Label":O[2]+D[2],"color[3]Label":O[3]+D[3]}})]}}}},94507:function(i,o,a){i.exports={attributes:a(17230),supplyDefaults:a(13245),calc:a(71113),plot:a(60775),style:a(12826),hoverPoints:a(28749),eventData:a(30835),moduleType:"trace",name:"image",basePlotModule:a(93612),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},60775:function(i,o,a){var s=a(39898),u=a(71828),c=u.strTranslate,d=a(77922),f=a(51877),p=a(3883),m=a(32396).STYLE;i.exports=function(g,b,v,h){var y=b.xaxis,w=b.yaxis,_=!g._context._exportedPlot&&p();u.makeTraceGroups(h,v,"im").each(function(x){var T=s.select(this),k=x[0],S=k.trace,C=(S.zsmooth==="fast"||S.zsmooth===!1&&_)&&!S._hasZ&&S._hasSource&&y.type==="linear"&&w.type==="linear";S._realImage=C;var M,O,D,P,E,I,A=k.z,F=k.x0,j=k.y0,z=k.w,B=k.h,N=S.dx,R=S.dy;for(I=0;M===void 0&&I0;)O=y.c2p(F+I*N),I--;for(I=0;P===void 0&&I0;)E=w.c2p(j+I*R),I--;OV[0];if(te||ee){var H=M+q/2,Z=P+Y/2;W+="transform:"+c(H+"px",Z+"px")+"scale("+(te?-1:1)+","+(ee?-1:1)+")"+c(-H+"px",-Z+"px")+";"}}L.attr("style",W);var G=new Promise(function(Q){if(S._hasZ)Q();else if(S._hasSource)if(S._canvas&&S._canvas.el.width===z&&S._canvas.el.height===B&&S._canvas.source===S.source)Q();else{var re=document.createElement("canvas");re.width=z,re.height=B;var ae=re.getContext("2d",{willReadFrequently:!0});S._image=S._image||new Image;var ie=S._image;ie.onload=function(){ae.drawImage(ie,0,0),S._canvas={el:re,source:S.source},Q()},ie.setAttribute("src",S.source)}}).then(function(){var Q,re;if(S._hasZ)re=X(function(ie,se){return A[se][ie]}),Q=re.toDataURL("image/png");else if(S._hasSource)if(C)Q=S.source;else{var ae=S._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,z,B).data;re=X(function(ie,se){var he=4*(se*z+ie);return[ae[he],ae[he+1],ae[he+2],ae[he+3]]}),Q=re.toDataURL("image/png")}L.attr({"xlink:href":Q,height:Y,width:q,x:M,y:P})});g._promises.push(G)}function X(Q){var re=document.createElement("canvas");re.width=q,re.height=Y;var ae,ie=re.getContext("2d",{willReadFrequently:!0}),se=function(de){return u.constrain(Math.round(y.c2p(F+de*N)-M),0,q)},he=function(de){return u.constrain(Math.round(w.c2p(j+de*R)-P),0,Y)},Se=f.colormodel[S.colormodel],Oe=Se.colormodel||S.colormodel,Pe=Se.fmt;for(I=0;I=0}),(g.type==="funnelarea"?D:g.sort)&&h.sort(function(F,j){return j.v-F.v}),h[0]&&(h[0].vTotal=O),h},crossTraceCalc:function(m,g){var b=(g||{}).type;b||(b="pie");var v=m._fullLayout,h=m.calcdata,y=v[b+"colorway"],w=v["_"+b+"colormap"];v["extend"+b+"colors"]&&(y=p(y,d));for(var _=0,x=0;x0){_=!0;break}}_||(w=0)}return{hasLabels:h,hasValues:y,len:w}}function g(b,v,h,y,w){y("marker.line.width")&&y("marker.line.color",w?void 0:h.paper_bgcolor);var _=y("marker.colors");p(y,"marker.pattern",_),b.marker&&!v.marker.pattern.fgcolor&&(v.marker.pattern.fgcolor=b.marker.colors),v.marker.pattern.bgcolor||(v.marker.pattern.bgcolor=h.paper_bgcolor)}i.exports={handleLabelsAndValues:m,handleMarkerDefaults:g,supplyDefaults:function(b,v,h,y){function w(D,P){return u.coerce(b,v,c,D,P)}var _=m(w("labels"),w("values")),x=_.len;if(v._hasLabels=_.hasLabels,v._hasValues=_.hasValues,!v._hasLabels&&v._hasValues&&(w("label0"),w("dlabel")),x){v._length=x,g(b,v,y,w,!0),w("scalegroup");var T,k=w("text"),S=w("texttemplate");if(S||(T=w("textinfo",Array.isArray(k)?"text+percent":"percent")),w("hovertext"),w("hovertemplate"),S||T&&T!=="none"){var C=w("textposition");f(b,v,y,w,C,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(C)||C==="auto"||C==="outside")&&w("automargin"),(C==="inside"||C==="auto"||Array.isArray(C))&&w("insidetextorientation")}d(v,y,w);var M=w("hole");if(w("title.text")){var O=w("title.position",M?"middle center":"top center");M||O!=="middle center"||(v.title.position="top center"),u.coerceFont(w,"title.font",y.font)}w("sort"),w("direction"),w("rotation"),w("pull")}else v.visible=!1}}},20007:function(i,o,a){var s=a(23469).appendArrayMultiPointValues;i.exports=function(u,c){var d={curveNumber:c.index,pointNumbers:u.pts,data:c._input,fullData:c,label:u.label,color:u.color,value:u.v,percent:u.percent,text:u.text,bbox:u.bbox,v:u.v};return u.pts.length===1&&(d.pointNumber=d.i=u.pts[0]),s(d,c,u.pts),c.type==="funnelarea"&&(delete d.v,delete d.i),d}},22209:function(i,o,a){var s=a(91424),u=a(7901);i.exports=function(c,d,f,p){var m=f.marker.pattern;m&&m.shape?s.pointStyle(c,f,p,d):u.fill(c,d.color)}},53581:function(i,o,a){var s=a(71828);function u(c){return c.indexOf("e")!==-1?c.replace(/[.]?0+e/,"e"):c.indexOf(".")!==-1?c.replace(/[.]?0+$/,""):c}o.formatPiePercent=function(c,d){var f=u((100*c).toPrecision(3));return s.numSeparate(f,d)+"%"},o.formatPieValue=function(c,d){var f=u(c.toPrecision(10));return s.numSeparate(f,d)},o.getFirstFilled=function(c,d){if(Array.isArray(c))for(var f=0;f"),name:Q.hovertemplate||re.indexOf("name")!==-1?Q.name:void 0,idealAlign:G.pxmid[0]<0?"left":"right",color:_.castOption(Pe.bgcolor,G.pts)||G.color,borderColor:_.castOption(Pe.bordercolor,G.pts),fontFamily:_.castOption(Me.family,G.pts),fontSize:_.castOption(Me.size,G.pts),fontColor:_.castOption(Me.color,G.pts),nameLength:_.castOption(Pe.namelength,G.pts),textAlign:_.castOption(Pe.align,G.pts),hovertemplate:_.castOption(Q.hovertemplate,G.pts),hovertemplateLabels:G,eventData:[x(G,Q)]},{container:X._hoverlayer.node(),outerContainer:X._paper.node(),gd:W,inOut_bbox:ce}),G.bbox=ce[0],H._hasHoverLabel=!0}H._hasHoverEvent=!0,W.emit("plotly_hover",{points:[x(G,Q)],event:s.event})}}),L.on("mouseout",function(G){var X=W._fullLayout,Q=W._fullData[H.index],re=s.select(this).datum();H._hasHoverEvent&&(G.originalEvent=s.event,W.emit("plotly_unhover",{points:[x(re,Q)],event:s.event}),H._hasHoverEvent=!1),H._hasHoverLabel&&(c.loneUnhover(X._hoverlayer.node()),H._hasHoverLabel=!1)}),L.on("click",function(G){var X=W._fullLayout,Q=W._fullData[H.index];W._dragging||X.hovermode===!1||(W._hoverdata=[x(G,Q)],c.click(W,s.event))})}function S(L,W,U){var V=_.castOption(L.insidetextfont.color,W.pts);!V&&L._input.textfont&&(V=_.castOption(L._input.textfont.color,W.pts));var te=_.castOption(L.insidetextfont.family,W.pts)||_.castOption(L.textfont.family,W.pts)||U.family,ee=_.castOption(L.insidetextfont.size,W.pts)||_.castOption(L.textfont.size,W.pts)||U.size;return{color:V||d.contrast(W.color),family:te,size:ee}}function C(L,W){for(var U,V,te=0;teye&&ye>Ae||Te=-4;Se-=2)Oe(Math.PI*Se,"tan");for(Se=4;Se>=-4;Se-=2)Oe(Math.PI*(Se+1),"tan")}if(re||ie){for(Se=4;Se>=-4;Se-=2)Oe(Math.PI*(Se+1.5),"rad");for(Se=4;Se>=-4;Se-=2)Oe(Math.PI*(Se+.5),"rad")}}if(Z||se||re){var Pe=Math.sqrt(L.width*L.width+L.height*L.height);if((ee={scale:te*V*2/Pe,rCenter:1-te,rotate:0}).textPosAngle=(W.startangle+W.stopangle)/2,ee.scale>=1)return ee;he.push(ee)}(se||ie)&&((ee=O(L,V,H,G,X)).textPosAngle=(W.startangle+W.stopangle)/2,he.push(ee)),(se||ae)&&((ee=D(L,V,H,G,X)).textPosAngle=(W.startangle+W.stopangle)/2,he.push(ee));for(var Me=0,ce=0,we=0;we=1)break}return he[Me]}function O(L,W,U,V,te){W=Math.max(0,W-2*w);var ee=L.width/L.height,H=I(ee,V,W,U);return{scale:2*H/L.height,rCenter:P(ee,H/W),rotate:E(te)}}function D(L,W,U,V,te){W=Math.max(0,W-2*w);var ee=L.height/L.width,H=I(ee,V,W,U);return{scale:2*H/L.width,rCenter:P(ee,H/W),rotate:E(te+Math.PI/2)}}function P(L,W){return Math.cos(W)-L*W}function E(L){return(180/Math.PI*L+720)%180-90}function I(L,W,U,V){var te=L+1/(2*Math.tan(W));return U*Math.min(1/(Math.sqrt(te*te+.5)+te),V/(Math.sqrt(L*L+V/2)+L))}function A(L,W){return L.v!==W.vTotal||W.trace.hole?Math.min(1/(1+1/Math.sin(L.halfangle)),L.ring/2):1}function F(L,W){var U=W.pxmid[0],V=W.pxmid[1],te=L.width/2,ee=L.height/2;return U<0&&(te*=-1),V<0&&(ee*=-1),{scale:1,rCenter:1,rotate:0,x:te+Math.abs(ee)*(te>0?1:-1)/2,y:ee/(1+U*U/(V*V)),outside:!0}}function j(L,W){var U,V,te,ee=L.trace,H={x:L.cx,y:L.cy},Z={tx:0,ty:0};Z.ty+=ee.title.font.size,te=B(ee),ee.title.position.indexOf("top")!==-1?(H.y-=(1+te)*L.r,Z.ty-=L.titleBox.height):ee.title.position.indexOf("bottom")!==-1&&(H.y+=(1+te)*L.r);var G,X=L.r/((G=L.trace.aspectratio)===void 0?1:G),Q=W.w*(ee.domain.x[1]-ee.domain.x[0])/2;return ee.title.position.indexOf("left")!==-1?(Q+=X,H.x-=(1+te)*X,Z.tx+=L.titleBox.width/2):ee.title.position.indexOf("center")!==-1?Q*=2:ee.title.position.indexOf("right")!==-1&&(Q+=X,H.x+=(1+te)*X,Z.tx-=L.titleBox.width/2),U=Q/L.titleBox.width,V=z(L,W)/L.titleBox.height,{x:H.x,y:H.y,scale:Math.min(U,V),tx:Z.tx,ty:Z.ty}}function z(L,W){var U=L.trace,V=W.h*(U.domain.y[1]-U.domain.y[0]);return Math.min(L.titleBox.height,V/2)}function B(L){var W,U=L.pull;if(!U)return 0;if(Array.isArray(U))for(U=0,W=0;WU&&(U=L.pull[W]);return U}function N(L,W){for(var U=[],V=0;V1?we=(ce=ie.r)/he.aspectratio:ce=(we=ie.r)*he.aspectratio,Me=(ce*=(1+he.baseratio)/2)*we}Oe=Math.min(Oe,Me/ie.vTotal)}for(se=0;se")}if(ee){var Se=p.castOption(te,W.i,"texttemplate");if(Se){var Oe=function(Me){return{label:Me.label,value:Me.v,valueLabel:_.formatPieValue(Me.v,V.separators),percent:Me.v/U.vTotal,percentLabel:_.formatPiePercent(Me.v/U.vTotal,V.separators),color:Me.color,text:Me.text,customdata:p.castOption(te,Me.i,"customdata")}}(W),Pe=_.getFirstFilled(te.text,W.pts);(T(Pe)||Pe==="")&&(Oe.text=Pe),W.text=p.texttemplateString(Se,Oe,L._fullLayout._d3locale,Oe,te._meta||{})}else W.text=""}}function Y(L,W){var U=L.rotate*Math.PI/180,V=Math.cos(U),te=Math.sin(U),ee=(W.left+W.right)/2,H=(W.top+W.bottom)/2;L.textX=ee*V-H*te,L.textY=ee*te+H*V,L.noCenter=!0}i.exports={plot:function(L,W){var U=L._context.staticPlot,V=L._fullLayout,te=V._size;y("pie",V),C(W,L),N(W,te);var ee=p.makeTraceGroups(V._pielayer,W,"trace").each(function(H){var Z=s.select(this),G=H[0],X=G.trace;(function(Q){var re,ae,ie,se=Q[0],he=se.r,Se=se.trace,Oe=_.getRotationAngle(Se.rotation),Pe=2*Math.PI/se.vTotal,Me="px0",ce="px1";if(Se.direction==="counterclockwise"){for(re=0;rese.vTotal/2?1:0,ae.halfangle=Math.PI*Math.min(ae.v/se.vTotal,.5),ae.ring=1-Se.hole,ae.rInscribed=A(ae,se))})(H),Z.attr("stroke-linejoin","round"),Z.each(function(){var Q=s.select(this).selectAll("g.slice").data(H);Q.enter().append("g").classed("slice",!0),Q.exit().remove();var re=[[[],[]],[[],[]]],ae=!1;Q.each(function(ce,we){if(ce.hidden)s.select(this).selectAll("path,g").remove();else{ce.pointNumber=ce.i,ce.curveNumber=X.index,re[ce.pxmid[1]<0?0:1][ce.pxmid[0]<0?0:1].push(ce);var K=G.cx,ne=G.cy,de=s.select(this),_e=de.selectAll("path.surface").data([ce]);if(_e.enter().append("path").classed("surface",!0).style({"pointer-events":U?"none":"all"}),de.call(k,L,H),X.pull){var ue=+_.castOption(X.pull,ce.pts)||0;ue>0&&(K+=ue*ce.pxmid[0],ne+=ue*ce.pxmid[1])}ce.cxFinal=K,ce.cyFinal=ne;var pe=X.hole;if(ce.v===G.vTotal){var xe="M"+(K+ce.px0[0])+","+(ne+ce.px0[1])+Le(ce.px0,ce.pxmid,!0,1)+Le(ce.pxmid,ce.px0,!0,1)+"Z";pe?_e.attr("d","M"+(K+pe*ce.px0[0])+","+(ne+pe*ce.px0[1])+Le(ce.px0,ce.pxmid,!1,pe)+Le(ce.pxmid,ce.px0,!1,pe)+"Z"+xe):_e.attr("d",xe)}else{var ye=Le(ce.px0,ce.px1,!0,1);if(pe){var Te=1-pe;_e.attr("d","M"+(K+pe*ce.px1[0])+","+(ne+pe*ce.px1[1])+Le(ce.px1,ce.px0,!1,pe)+"l"+Te*ce.px0[0]+","+Te*ce.px0[1]+ye+"Z")}else _e.attr("d","M"+K+","+ne+"l"+ce.px0[0]+","+ce.px0[1]+ye+"Z")}q(L,ce,G);var Ae=_.castOption(X.textposition,ce.pts),Re=de.selectAll("g.slicetext").data(ce.text&&Ae!=="none"?[0]:[]);Re.enter().append("g").classed("slicetext",!0),Re.exit().remove(),Re.each(function(){var $e=p.ensureSingle(s.select(this),"text","",function(dt){dt.attr("data-notex",1)}),Fe=p.ensureUniformFontSize(L,Ae==="outside"?function(dt,vt,We){return{color:_.castOption(dt.outsidetextfont.color,vt.pts)||_.castOption(dt.textfont.color,vt.pts)||We.color,family:_.castOption(dt.outsidetextfont.family,vt.pts)||_.castOption(dt.textfont.family,vt.pts)||We.family,size:_.castOption(dt.outsidetextfont.size,vt.pts)||_.castOption(dt.textfont.size,vt.pts)||We.size}}(X,ce,V.font):S(X,ce,V.font));$e.text(ce.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(f.font,Fe).call(b.convertToTspans,L);var Be,Ue=f.bBox($e.node());if(Ae==="outside")Be=F(Ue,ce);else if(Be=M(Ue,ce,G),Ae==="auto"&&Be.scale<1){var qe=p.ensureUniformFontSize(L,X.outsidetextfont);$e.call(f.font,qe),Be=F(Ue=f.bBox($e.node()),ce)}var Xe=Be.textPosAngle,ot=Xe===void 0?ce.pxmid:R(G.r,Xe);if(Be.targetX=K+ot[0]*Be.rCenter+(Be.x||0),Be.targetY=ne+ot[1]*Be.rCenter+(Be.y||0),Y(Be,Ue),Be.outside){var st=Be.targetY;ce.yLabelMin=st-Ue.height/2,ce.yLabelMid=st,ce.yLabelMax=st+Ue.height/2,ce.labelExtraX=0,ce.labelExtraY=0,ae=!0}Be.fontSize=Fe.size,h(X.type,Be,V),H[we].transform=Be,p.setTransormAndDisplay($e,Be)})}function Le($e,Fe,Be,Ue){var qe=Ue*(Fe[0]-$e[0]),Xe=Ue*(Fe[1]-$e[1]);return"a"+Ue*G.r+","+Ue*G.r+" 0 "+ce.largeArc+(Be?" 1 ":" 0 ")+qe+","+Xe}});var ie=s.select(this).selectAll("g.titletext").data(X.title.text?[0]:[]);if(ie.enter().append("g").classed("titletext",!0),ie.exit().remove(),ie.each(function(){var ce,we=p.ensureSingle(s.select(this),"text","",function(ne){ne.attr("data-notex",1)}),K=X.title.text;X._meta&&(K=p.templateString(K,X._meta)),we.text(K).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(f.font,X.title.font).call(b.convertToTspans,L),ce=X.title.position==="middle center"?function(ne){var de=Math.sqrt(ne.titleBox.width*ne.titleBox.width+ne.titleBox.height*ne.titleBox.height);return{x:ne.cx,y:ne.cy,scale:ne.trace.hole*ne.r*2/de,tx:0,ty:-ne.titleBox.height/2+ne.trace.title.font.size}}(G):j(G,te),we.attr("transform",g(ce.x,ce.y)+m(Math.min(1,ce.scale))+g(ce.tx,ce.ty))}),ae&&function(ce,we){var K,ne,de,_e,ue,pe,xe,ye,Te,Ae,Re,Le,$e;function Fe(Xe,ot){return Xe.pxmid[1]-ot.pxmid[1]}function Be(Xe,ot){return ot.pxmid[1]-Xe.pxmid[1]}function Ue(Xe,ot){ot||(ot={});var st,dt,vt,We,ze=ot.labelExtraY+(ne?ot.yLabelMax:ot.yLabelMin),tt=ne?Xe.yLabelMin:Xe.yLabelMax,it=ne?Xe.yLabelMax:Xe.yLabelMin,St=Xe.cyFinal+ue(Xe.px0[1],Xe.px1[1]),Ze=ze-tt;if(Ze*xe>0&&(Xe.labelExtraY=Ze),Array.isArray(we.pull))for(dt=0;dt=(_.castOption(we.pull,vt.pts)||0)||((Xe.pxmid[1]-vt.pxmid[1])*xe>0?(Ze=vt.cyFinal+ue(vt.px0[1],vt.px1[1])-tt-Xe.labelExtraY)*xe>0&&(Xe.labelExtraY+=Ze):(it+Xe.labelExtraY-St)*xe>0&&(st=3*pe*Math.abs(dt-Ae.indexOf(Xe)),(We=vt.cxFinal+_e(vt.px0[0],vt.px1[0])+st-(Xe.cxFinal+Xe.pxmid[0])-Xe.labelExtraX)*pe>0&&(Xe.labelExtraX+=We)))}for(ne=0;ne<2;ne++)for(de=ne?Fe:Be,ue=ne?Math.max:Math.min,xe=ne?1:-1,K=0;K<2;K++){for(_e=K?Math.max:Math.min,pe=K?1:-1,(ye=ce[ne][K]).sort(de),Te=ce[1-ne][K],Ae=Te.concat(ye),Le=[],Re=0;ReMath.abs(ye)?ue+="l"+ye*K.pxmid[0]/K.pxmid[1]+","+ye+"H"+(_e+K.labelExtraX+pe):ue+="l"+K.labelExtraX+","+xe+"v"+(ye-xe)+"h"+pe}else ue+="V"+(K.yLabelMid+K.labelExtraY)+"h"+pe;p.ensureSingle(ne,"path","textline").call(d.stroke,we.outsidetextfont.color).attr({"stroke-width":Math.min(2,we.outsidetextfont.size/8),d:ue,fill:"none"})}else ne.select("path.textline").remove()})}(Q,X),ae&&X.automargin){var se=f.bBox(Z.node()),he=X.domain,Se=te.w*(he.x[1]-he.x[0]),Oe=te.h*(he.y[1]-he.y[0]),Pe=(.5*Se-G.r)/te.w,Me=(.5*Oe-G.r)/te.h;u.autoMargin(L,"pie."+X.uid+".automargin",{xl:he.x[0]-Pe,xr:he.x[1]+Pe,yb:he.y[0]-Me,yt:he.y[1]+Me,l:Math.max(G.cx-G.r-se.left,0),r:Math.max(se.right-(G.cx+G.r),0),b:Math.max(se.bottom-(G.cy+G.r),0),t:Math.max(G.cy-G.r-se.top,0),pad:5})}})});setTimeout(function(){ee.selectAll("tspan").each(function(){var H=s.select(this);H.attr("dy")&&H.attr("dy",H.attr("dy"))})},0)},formatSliceLabel:q,transformInsideText:M,determineInsideTextFont:S,positionTitleOutside:j,prerenderTitles:C,layoutAreas:N,attachFxHandlers:k,computeTransform:Y}},68357:function(i,o,a){var s=a(39898),u=a(63463),c=a(72597).resizeText;i.exports=function(d){var f=d._fullLayout._pielayer.selectAll(".trace");c(d,f,"pie"),f.each(function(p){var m=p[0].trace,g=s.select(this);g.style({opacity:m.opacity}),g.selectAll("path.surface").each(function(b){s.select(this).call(u,b,m,d)})})}},63463:function(i,o,a){var s=a(7901),u=a(53581).castOption,c=a(22209);i.exports=function(d,f,p,m){var g=p.marker.line,b=u(g.color,f.pts)||s.defaultLine,v=u(g.width,f.pts)||0;d.call(c,f,p,m).style("stroke-width",v).call(s.stroke,b)}},75225:function(i,o,a){var s=a(71828);i.exports=function(u,c){for(var d=0;dS&&q[M].gap;)M--;for(D=q[M].s,C=q.length-1;C>M;C--)q[C].s=D;for(;Sj[y]&&y=0;y--){var w=d[y];if(w.type==="scatter"&&w.xaxis===v.xaxis&&w.yaxis===v.yaxis){w.opacity=void 0;break}}}}}},17438:function(i,o,a){var s=a(71828),u=a(73972),c=a(82196),d=a(47581),f=a(34098),p=a(67513),m=a(73927),g=a(565),b=a(49508),v=a(11058),h=a(94039),y=a(82410),w=a(28908),_=a(71828).coercePattern;i.exports=function(x,T,k,S){function C(F,j){return s.coerce(x,T,c,F,j)}var M=p(x,T,S,C);if(M||(T.visible=!1),T.visible){m(x,T,S,C),C("xhoverformat"),C("yhoverformat");var O=g(x,T,S,C);S.scattermode==="group"&&T.orientation===void 0&&C("orientation","v");var D=!O&&M=Math.min(Se,Oe)&&x<=Math.max(Se,Oe)?0:1/0}var Pe=Math.max(3,he.mrc||0),Me=1-1/Pe,ce=Math.abs(w.c2p(he.x)-x);return ce=Math.min(Se,Oe)&&T<=Math.max(Se,Oe)?0:1/0}var Pe=Math.max(3,he.mrc||0),Me=1-1/Pe,ce=Math.abs(_.c2p(he.y)-T);return ceie!=(ee=L[q][1])>=ie&&(U=L[q-1][0],V=L[q][0],ee-te&&(W=U+(V-U)*(ie-te)/(ee-te),X=Math.min(X,W),Q=Math.max(Q,W)));X=Math.max(X,0),Q=Math.min(Q,w._length);var se=f.defaultLine;return f.opacity(y.fillcolor)?se=y.fillcolor:f.opacity((y.line||{}).color)&&(se=y.line.color),s.extendFlat(m,{distance:m.maxHoverDistance,x0:X,x1:Q,y0:ie,y1:ie,color:se,hovertemplate:!1}),delete m.index,y.text&&!Array.isArray(y.text)?m.text=String(y.text):m.text=y.name,[m]}}}},67368:function(i,o,a){var s=a(34098);i.exports={hasLines:s.hasLines,hasMarkers:s.hasMarkers,hasText:s.hasText,isBubble:s.isBubble,attributes:a(82196),layoutAttributes:a(21479),supplyDefaults:a(17438),crossTraceDefaults:a(34936),supplyLayoutDefaults:a(79334),calc:a(47761).calc,crossTraceCalc:a(72626),arraysToCalcdata:a(75225),plot:a(32663),colorbar:a(4898),formatLabels:a(8225),style:a(16296).style,styleOnSelect:a(16296).styleOnSelect,hoverPoints:a(33720),selectPoints:a(98002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:a(93612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},21479:function(i){i.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},79334:function(i,o,a){var s=a(71828),u=a(21479);i.exports=function(c,d){var f,p=d.barmode==="group";d.scattermode==="group"&&(f=p?d.bargap:.2,s.coerce(c,d,u,"scattergap",f))}},11058:function(i,o,a){var s=a(71828).isArrayOrTypedArray,u=a(52075).hasColorscale,c=a(1586);i.exports=function(d,f,p,m,g,b){b||(b={});var v=(d.marker||{}).color;g("line.color",p),u(d,"line")?c(d,f,m,g,{prefix:"line.",cLetter:"c"}):g("line.color",!s(v)&&v||p),g("line.width"),b.noDash||g("line.dash"),b.backoff&&g("line.backoff")}},34621:function(i,o,a){var s=a(91424),u=a(50606),c=u.BADNUM,d=u.LOG_CLIP,f=d+.5,p=d-.5,m=a(71828),g=m.segmentsIntersect,b=m.constrain,v=a(47581);i.exports=function(h,y){var w,_,x,T,k,S,C,M,O,D,P,E,I,A,F,j,z,B,N=y.trace||{},R=y.xaxis,q=y.yaxis,Y=R.type==="log",L=q.type==="log",W=R._length,U=q._length,V=y.backoff,te=N.marker,ee=y.connectGaps,H=y.baseTolerance,Z=y.shape,G=Z==="linear",X=N.fill&&N.fill!=="none",Q=[],re=v.minTolerance,ae=h.length,ie=new Array(ae),se=0;function he(Ze){var ut=h[Ze];if(!ut)return!1;var ht=y.linearized?R.l2p(ut.x):R.c2p(ut.x),Rt=y.linearized?q.l2p(ut.y):q.c2p(ut.y);if(ht===c){if(Y&&(ht=R.c2p(ut.x,!0)),ht===c)return!1;L&&Rt===c&&(ht*=Math.abs(R._m*U*(R._m>0?f:p)/(q._m*W*(q._m>0?f:p)))),ht*=1e3}if(Rt===c){if(L&&(Rt=q.c2p(ut.y,!0)),Rt===c)return!1;Rt*=1e3}return[ht,Rt]}function Se(Ze,ut,ht,Rt){var Ct=ht-Ze,Wt=Rt-ut,_t=.5-Ze,be=.5-ut,Ce=Ct*Ct+Wt*Wt,Ge=Ct*_t+Wt*be;if(Ge>0&&Gexe||Ze[1]Te)return[b(Ze[0],pe,xe),b(Ze[1],ye,Te)]}function Le(Ze,ut){return Ze[0]===ut[0]&&(Ze[0]===pe||Ze[0]===xe)||Ze[1]===ut[1]&&(Ze[1]===ye||Ze[1]===Te)||void 0}function $e(Ze,ut,ht){return function(Rt,Ct){var Wt=Re(Rt),_t=Re(Ct),be=[];if(Wt&&_t&&Le(Wt,_t))return be;Wt&&be.push(Wt),_t&&be.push(_t);var Ce=2*m.constrain((Rt[Ze]+Ct[Ze])/2,ut,ht)-((Wt||Rt)[Ze]+(_t||Ct)[Ze]);return Ce&&((Wt&&_t?Ce>0==Wt[Ze]>_t[Ze]?Wt:_t:Wt||_t)[Ze]+=Ce),be}}function Fe(Ze){var ut=Ze[0],ht=Ze[1],Rt=ut===ie[se-1][0],Ct=ht===ie[se-1][1];if(!Rt||!Ct)if(se>1){var Wt=ut===ie[se-2][0],_t=ht===ie[se-2][1];Rt&&(ut===pe||ut===xe)&&Wt?_t?se--:ie[se-1]=Ze:Ct&&(ht===ye||ht===Te)&&_t?Wt?se--:ie[se-1]=Ze:ie[se++]=Ze}else ie[se++]=Ze}function Be(Ze){ie[se-1][0]!==Ze[0]&&ie[se-1][1]!==Ze[1]&&Fe([we,K]),Fe(Ze),ne=null,we=K=0}Z==="linear"||Z==="spline"?_e=function(Ze,ut){for(var ht=[],Rt=0,Ct=0;Ct<4;Ct++){var Wt=Ae[Ct],_t=g(Ze[0],Ze[1],ut[0],ut[1],Wt[0],Wt[1],Wt[2],Wt[3]);_t&&(!Rt||Math.abs(_t.x-ht[0][0])>1||Math.abs(_t.y-ht[0][1])>1)&&(_t=[_t.x,_t.y],Rt&&Pe(_t,Ze)xe?xe:0,ce=Ze[1]Te?Te:0,Me||ce){if(se)if(ne){var ut=_e(ne,Ze);ut.length>1&&(Be(ut[0]),ie[se++]=ut[1])}else de=_e(ie[se-1],Ze)[0],ie[se++]=de;else ie[se++]=[Me||Ze[0],ce||Ze[1]];var ht=ie[se-1];Me&&ce&&(ht[0]!==Me||ht[1]!==ce)?(ne&&(we!==Me&&K!==ce?Fe(we&&K?(Rt=ne,Wt=(Ct=Ze)[0]-Rt[0],_t=(Ct[1]-Rt[1])/Wt,(Rt[1]*Ct[0]-Ct[1]*Rt[0])/Wt>0?[_t>0?pe:xe,Te]:[_t>0?xe:pe,ye]):[we||Me,K||ce]):we&&K&&Fe([we,K])),Fe([Me,ce])):we-Me&&K-ce&&Fe([Me||we,ce||K]),ne=Ze,we=Me,K=ce}else ne&&Be(_e(ne,Ze)[0]),ie[se++]=Ze;var Rt,Ct,Wt,_t}for(w=0;wOe(S,Xe))break;x=S,(I=O[0]*M[0]+O[1]*M[1])>P?(P=I,T=S,C=!1):I=h.length||!S)break;qe(S),_=S}}else qe(T)}ne&&Fe([we||ne[0],K||ne[1]]),Q.push(ie.slice(0,se))}var ot=Z.slice(Z.length-1);if(V&&ot!=="h"&&ot!=="v"){for(var st=!1,dt=-1,vt=[],We=0;We=0?m=y:(m=y=h,h++),m0?Math.max(b,p):0}}},4898:function(i){i.exports={container:"marker",min:"cmin",max:"cmax"}},49508:function(i,o,a){var s=a(7901),u=a(52075).hasColorscale,c=a(1586),d=a(34098);i.exports=function(f,p,m,g,b,v){var h=d.isBubble(f),y=(f.line||{}).color;v=v||{},y&&(m=y),b("marker.symbol"),b("marker.opacity",h?.7:1),b("marker.size"),v.noAngle||(b("marker.angle"),v.noAngleRef||b("marker.angleref"),v.noStandOff||b("marker.standoff")),b("marker.color",m),u(f,"marker")&&c(f,p,g,b,{prefix:"marker.",cLetter:"c"}),v.noSelect||(b("selected.marker.color"),b("unselected.marker.color"),b("selected.marker.size"),b("unselected.marker.size")),v.noLine||(b("marker.line.color",y&&!Array.isArray(y)&&p.marker.color!==y?y:h?s.background:s.defaultLine),u(f,"marker.line")&&c(f,p,g,b,{prefix:"marker.line.",cLetter:"c"}),b("marker.line.width",h?1:0)),h&&(b("marker.sizeref"),b("marker.sizemin"),b("marker.sizemode")),v.gradient&&b("marker.gradient.type")!=="none"&&b("marker.gradient.color")}},73927:function(i,o,a){var s=a(71828).dateTick0,u=a(50606).ONEWEEK;function c(d,f){return s(f,d%u==0?1:0)}i.exports=function(d,f,p,m,g){if(g||(g={x:!0,y:!0}),g.x){var b=m("xperiod");b&&(m("xperiod0",c(b,f.xcalendar)),m("xperiodalignment"))}if(g.y){var v=m("yperiod");v&&(m("yperiod0",c(v,f.ycalendar)),m("yperiodalignment"))}}},32663:function(i,o,a){var s=a(39898),u=a(73972),c=a(71828),d=c.ensureSingle,f=c.identity,p=a(91424),m=a(34098),g=a(34621),b=a(68687),v=a(61082).tester;function h(y,w,_,x,T,k,S){var C,M=y._context.staticPlot;(function(_e,ue,pe,xe,ye){var Te=pe.xaxis,Ae=pe.yaxis,Re=s.extent(c.simpleMap(Te.range,Te.r2c)),Le=s.extent(c.simpleMap(Ae.range,Ae.r2c)),$e=xe[0].trace;if(m.hasMarkers($e)){var Fe=$e.marker.maxdisplayed;if(Fe!==0){var Be=xe.filter(function(ot){return ot.x>=Re[0]&&ot.x<=Re[1]&&ot.y>=Le[0]&&ot.y<=Le[1]}),Ue=Math.ceil(Be.length/Fe),qe=0;ye.forEach(function(ot,st){var dt=ot[0].trace;m.hasMarkers(dt)&&dt.marker.maxdisplayed>0&&st0;function D(_e){return O?_e.transition():_e}var P=_.xaxis,E=_.yaxis,I=x[0].trace,A=I.line,F=s.select(k),j=d(F,"g","errorbars"),z=d(F,"g","lines"),B=d(F,"g","points"),N=d(F,"g","text");if(u.getComponentMethod("errorbars","plot")(y,j,_,S),I.visible===!0){var R,q;D(F).style("opacity",I.opacity);var Y=I.fill.charAt(I.fill.length-1);Y!=="x"&&Y!=="y"&&(Y=""),x[0][_.isRangePlot?"nodeRangePlot3":"node3"]=F;var L,W,U="",V=[],te=I._prevtrace;te&&(U=te._prevRevpath||"",q=te._nextFill,V=te._polygons);var ee,H,Z,G,X,Q,re,ae="",ie="",se=[],he=c.noop;if(R=I._ownFill,m.hasLines(I)||I.fill!=="none"){for(q&&q.datum(x),["hv","vh","hvh","vhv"].indexOf(A.shape)!==-1?(ee=p.steps(A.shape),H=p.steps(A.shape.split("").reverse().join(""))):ee=H=A.shape==="spline"?function(_e){var ue=_e[_e.length-1];return _e.length>1&&_e[0][0]===ue[0]&&_e[0][1]===ue[1]?p.smoothclosed(_e.slice(1),A.smoothing):p.smoothopen(_e,A.smoothing)}:function(_e){return"M"+_e.join("L")},Z=function(_e){return H(_e.reverse())},se=g(x,{xaxis:P,yaxis:E,trace:I,connectGaps:I.connectgaps,baseTolerance:Math.max(A.width||1,3)/4,shape:A.shape,backoff:A.backoff,simplify:A.simplify,fill:I.fill}),re=I._polygons=new Array(se.length),C=0;C0,D=b(y,w,_);(S=x.selectAll("g.trace").data(D,function(P){return P[0].trace.uid})).enter().append("g").attr("class",function(P){return"trace scatter trace"+P[0].trace.uid}).style("stroke-miterlimit",2),S.order(),function(P,E,I){E.each(function(A){var F=d(s.select(this),"g","fills");p.setClipUrl(F,I.layerClipId,P);var j=A[0].trace,z=[];j._ownfill&&z.push("_ownFill"),j._nexttrace&&z.push("_nextFill");var B=F.selectAll("g").data(z,f);B.enter().append("g"),B.exit().each(function(N){j[N]=null}).remove(),B.order().each(function(N){j[N]=d(s.select(this),"path","js-fill")})})}(y,S,w),O?(k&&(C=k()),s.transition().duration(T.duration).ease(T.easing).each("end",function(){C&&C()}).each("interrupt",function(){C&&C()}).each(function(){x.selectAll("g.trace").each(function(P,E){h(y,E,w,P,D,this,T)})})):S.each(function(P,E){h(y,E,w,P,D,this,T)}),M&&S.exit().remove(),x.selectAll("path:not([d])").remove()}},98002:function(i,o,a){var s=a(34098);i.exports=function(u,c){var d,f,p,m,g=u.cd,b=u.xaxis,v=u.yaxis,h=[],y=g[0].trace;if(!s.hasMarkers(y)&&!s.hasText(y))return[];if(c===!1)for(d=0;d"),m.hovertemplate=w.hovertemplate,p}function M(O,D){S.push(O._hovertitle+": "+D)}}},52979:function(i,o,a){i.exports={attributes:a(50413),supplyDefaults:a(46008),colorbar:a(4898),formatLabels:a(93645),calc:a(54337),plot:a(7507),style:a(16296).style,styleOnSelect:a(16296).styleOnSelect,hoverPoints:a(47250),selectPoints:a(98002),eventData:a(4524),moduleType:"trace",name:"scatterternary",basePlotModule:a(61639),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},7507:function(i,o,a){var s=a(32663);i.exports=function(u,c,d){var f=c.plotContainer;f.select(".scatterlayer").selectAll("*").remove();for(var p=c.xaxis,m=c.yaxis,g={xaxis:p,yaxis:m,plot:f,layerClipId:c._hasClipOnAxisFalse?c.clipIdRelative:null},b=c.layers.frontplot.select("g.scatterlayer"),v=0;v0){var O,D,P,E,I,A=p.xa,F=p.ya;x.orientation==="h"?(I=m,O="y",P=F,D="x",E=A):(I=g,O="x",P=A,D="y",E=F);var j=_[p.index];if(I>=j.span[0]&&I<=j.span[1]){var z=u.extendFlat({},p),B=E.c2p(I,!0),N=f.getKdeValue(j,x,I),R=f.getPositionOnKdePath(j,x,B),q=P._offset,Y=P._length;z[O+"0"]=R[0],z[O+"1"]=R[1],z[D+"0"]=z[D+"1"]=B,z[D+"Label"]=D+": "+c.hoverLabelText(E,I,x[D+"hoverformat"])+", "+_[0].t.labels.kde+" "+N.toFixed(3);for(var L=0,W=0;WB&&(B=Y,N=q)}}return B?A(N):f};case"rms":return function(F,j){for(var z=0,B=0,N=0;N":return function(V){return U(V)>L};case">=":return function(V){return U(V)>=L};case"[]":return function(V){var te=U(V);return te>=L[0]&&te<=L[1]};case"()":return function(V){var te=U(V);return te>L[0]&&te=L[0]&&teL[0]&&te<=L[1]};case"][":return function(V){var te=U(V);return te<=L[0]||te>=L[1]};case")(":return function(V){var te=U(V);return teL[1]};case"](":return function(V){var te=U(V);return te<=L[0]||te>L[1]};case")[":return function(V){var te=U(V);return te=L[1]};case"{}":return function(V){return L.indexOf(U(V))!==-1};case"}{":return function(V){return L.indexOf(U(V))===-1}}}(h,c.getDataToCoordFunc(b,v,w,y),x),D={},P={},E=0;k?(C=function(j){D[j.astr]=s.extendDeep([],j.get()),j.set(new Array(_))},M=function(j,z){var B=D[j.astr][z];j.get()[z]=B}):(C=function(j){D[j.astr]=s.extendDeep([],j.get()),j.set([])},M=function(j,z){var B=D[j.astr][z];j.get().push(B)}),F(C);for(var I=d(v.transforms,h),A=0;A<_;A++)O(y[A])?(F(M,A),P[E++]=I(A)):k&&E++;h._indexToPoints=P,v._length=E}}function F(j,z){for(var B=0;B1?"%{group} (%{trace})":"%{group}");var y=p.styles,w=v.styles=[];if(y)for(b=0;bb)throw new RangeError('The value "'+K+'" is invalid for option "size"');var ne=new Uint8Array(K);return Object.setPrototypeOf(ne,h.prototype),ne}function h(K,ne,de){if(typeof K=="number"){if(typeof ne=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(K)}return y(K,ne,de)}function y(K,ne,de){if(typeof K=="string")return function(pe,xe){if(typeof xe=="string"&&xe!==""||(xe="utf8"),!h.isEncoding(xe))throw new TypeError("Unknown encoding: "+xe);var ye=0|S(pe,xe),Te=v(ye),Ae=Te.write(pe,xe);return Ae!==ye&&(Te=Te.slice(0,Ae)),Te}(K,ne);if(ArrayBuffer.isView(K))return function(pe){if(Oe(pe,Uint8Array)){var xe=new Uint8Array(pe);return T(xe.buffer,xe.byteOffset,xe.byteLength)}return x(pe)}(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(K));if(Oe(K,ArrayBuffer)||K&&Oe(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Oe(K,SharedArrayBuffer)||K&&Oe(K.buffer,SharedArrayBuffer)))return T(K,ne,de);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var _e=K.valueOf&&K.valueOf();if(_e!=null&&_e!==K)return h.from(_e,ne,de);var ue=function(pe){if(h.isBuffer(pe)){var xe=0|k(pe.length),ye=v(xe);return ye.length===0||pe.copy(ye,0,0,xe),ye}return pe.length!==void 0?typeof pe.length!="number"||Pe(pe.length)?v(0):x(pe):pe.type==="Buffer"&&Array.isArray(pe.data)?x(pe.data):void 0}(K);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return h.from(K[Symbol.toPrimitive]("string"),ne,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(K))}function w(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function _(K){return w(K),v(K<0?0:0|k(K))}function x(K){for(var ne=K.length<0?0:0|k(K.length),de=v(ne),_e=0;_e=b)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b.toString(16)+" bytes");return 0|K}function S(K,ne){if(h.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Oe(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+f(K));var de=K.length,_e=arguments.length>2&&arguments[2]===!0;if(!_e&&de===0)return 0;for(var ue=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return se(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*de;case"hex":return de>>>1;case"base64":return he(K).length;default:if(ue)return _e?-1:se(K).length;ne=(""+ne).toLowerCase(),ue=!0}}function C(K,ne,de){var _e=!1;if((ne===void 0||ne<0)&&(ne=0),ne>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0)<=(ne>>>=0))return"";for(K||(K="utf8");;)switch(K){case"hex":return q(this,ne,de);case"utf8":case"utf-8":return z(this,ne,de);case"ascii":return N(this,ne,de);case"latin1":case"binary":return R(this,ne,de);case"base64":return j(this,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,ne,de);default:if(_e)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),_e=!0}}function M(K,ne,de){var _e=K[ne];K[ne]=K[de],K[de]=_e}function O(K,ne,de,_e,ue){if(K.length===0)return-1;if(typeof de=="string"?(_e=de,de=0):de>2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),Pe(de=+de)&&(de=ue?0:K.length-1),de<0&&(de=K.length+de),de>=K.length){if(ue)return-1;de=K.length-1}else if(de<0){if(!ue)return-1;de=0}if(typeof ne=="string"&&(ne=h.from(ne,_e)),h.isBuffer(ne))return ne.length===0?-1:D(K,ne,de,_e,ue);if(typeof ne=="number")return ne&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(K,ne,de):Uint8Array.prototype.lastIndexOf.call(K,ne,de):D(K,[ne],de,_e,ue);throw new TypeError("val must be string, number or Buffer")}function D(K,ne,de,_e,ue){var pe,xe=1,ye=K.length,Te=ne.length;if(_e!==void 0&&((_e=String(_e).toLowerCase())==="ucs2"||_e==="ucs-2"||_e==="utf16le"||_e==="utf-16le")){if(K.length<2||ne.length<2)return-1;xe=2,ye/=2,Te/=2,de/=2}function Ae(Fe,Be){return xe===1?Fe[Be]:Fe.readUInt16BE(Be*xe)}if(ue){var Re=-1;for(pe=de;peye&&(de=ye-Te),pe=de;pe>=0;pe--){for(var Le=!0,$e=0;$eue&&(_e=ue):_e=ue;var pe,xe=ne.length;for(_e>xe/2&&(_e=xe/2),pe=0;pe<_e;++pe){var ye=parseInt(ne.substr(2*pe,2),16);if(Pe(ye))return pe;K[de+pe]=ye}return pe}function E(K,ne,de,_e){return Se(se(ne,K.length-de),K,de,_e)}function I(K,ne,de,_e){return Se(function(ue){for(var pe=[],xe=0;xe>8,Te=xe%256,Ae.push(Te),Ae.push(ye);return Ae}(ne,K.length-de),K,de,_e)}function j(K,ne,de){return ne===0&&de===K.length?p.fromByteArray(K):p.fromByteArray(K.slice(ne,de))}function z(K,ne,de){de=Math.min(K.length,de);for(var _e=[],ue=ne;ue239?4:pe>223?3:pe>191?2:1;if(ue+ye<=de){var Te=void 0,Ae=void 0,Re=void 0,Le=void 0;switch(ye){case 1:pe<128&&(xe=pe);break;case 2:(192&(Te=K[ue+1]))==128&&(Le=(31&pe)<<6|63&Te)>127&&(xe=Le);break;case 3:Te=K[ue+1],Ae=K[ue+2],(192&Te)==128&&(192&Ae)==128&&(Le=(15&pe)<<12|(63&Te)<<6|63&Ae)>2047&&(Le<55296||Le>57343)&&(xe=Le);break;case 4:Te=K[ue+1],Ae=K[ue+2],Re=K[ue+3],(192&Te)==128&&(192&Ae)==128&&(192&Re)==128&&(Le=(15&pe)<<18|(63&Te)<<12|(63&Ae)<<6|63&Re)>65535&&Le<1114112&&(xe=Le)}}xe===null?(xe=65533,ye=1):xe>65535&&(xe-=65536,_e.push(xe>>>10&1023|55296),xe=56320|1023&xe),_e.push(xe),ue+=ye}return function($e){var Fe=$e.length;if(Fe<=B)return String.fromCharCode.apply(String,$e);for(var Be="",Ue=0;Ue"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(K,ne,de){return y(K,ne,de)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(K,ne,de){return function(_e,ue,pe){return w(_e),_e<=0?v(_e):ue!==void 0?typeof pe=="string"?v(_e).fill(ue,pe):v(_e).fill(ue):v(_e)}(K,ne,de)},h.allocUnsafe=function(K){return _(K)},h.allocUnsafeSlow=function(K){return _(K)},h.isBuffer=function(K){return K!=null&&K._isBuffer===!0&&K!==h.prototype},h.compare=function(K,ne){if(Oe(K,Uint8Array)&&(K=h.from(K,K.offset,K.byteLength)),Oe(ne,Uint8Array)&&(ne=h.from(ne,ne.offset,ne.byteLength)),!h.isBuffer(K)||!h.isBuffer(ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(K===ne)return 0;for(var de=K.length,_e=ne.length,ue=0,pe=Math.min(de,_e);ue_e.length?(h.isBuffer(pe)||(pe=h.from(pe)),pe.copy(_e,ue)):Uint8Array.prototype.set.call(_e,pe,ue);else{if(!h.isBuffer(pe))throw new TypeError('"list" argument must be an Array of Buffers');pe.copy(_e,ue)}ue+=pe.length}return _e},h.byteLength=S,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var K=this.length;if(K%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(K+=" ... "),""},g&&(h.prototype[g]=h.prototype.inspect),h.prototype.compare=function(K,ne,de,_e,ue){if(Oe(K,Uint8Array)&&(K=h.from(K,K.offset,K.byteLength)),!h.isBuffer(K))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+f(K));if(ne===void 0&&(ne=0),de===void 0&&(de=K?K.length:0),_e===void 0&&(_e=0),ue===void 0&&(ue=this.length),ne<0||de>K.length||_e<0||ue>this.length)throw new RangeError("out of range index");if(_e>=ue&&ne>=de)return 0;if(_e>=ue)return-1;if(ne>=de)return 1;if(this===K)return 0;for(var pe=(ue>>>=0)-(_e>>>=0),xe=(de>>>=0)-(ne>>>=0),ye=Math.min(pe,xe),Te=this.slice(_e,ue),Ae=K.slice(ne,de),Re=0;Re>>=0,isFinite(de)?(de>>>=0,_e===void 0&&(_e="utf8")):(_e=de,de=void 0)}var ue=this.length-ne;if((de===void 0||de>ue)&&(de=ue),K.length>0&&(de<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");_e||(_e="utf8");for(var pe=!1;;)switch(_e){case"hex":return P(this,K,ne,de);case"utf8":case"utf-8":return E(this,K,ne,de);case"ascii":case"latin1":case"binary":return I(this,K,ne,de);case"base64":return A(this,K,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,K,ne,de);default:if(pe)throw new TypeError("Unknown encoding: "+_e);_e=(""+_e).toLowerCase(),pe=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function N(K,ne,de){var _e="";de=Math.min(K.length,de);for(var ue=ne;ue_e)&&(de=_e);for(var ue="",pe=ne;pede)throw new RangeError("Trying to access beyond buffer length")}function W(K,ne,de,_e,ue,pe){if(!h.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>ue||neK.length)throw new RangeError("Index out of range")}function U(K,ne,de,_e,ue){Q(ne,_e,ue,K,de,7);var pe=Number(ne&BigInt(4294967295));K[de++]=pe,pe>>=8,K[de++]=pe,pe>>=8,K[de++]=pe,pe>>=8,K[de++]=pe;var xe=Number(ne>>BigInt(32)&BigInt(4294967295));return K[de++]=xe,xe>>=8,K[de++]=xe,xe>>=8,K[de++]=xe,xe>>=8,K[de++]=xe,de}function V(K,ne,de,_e,ue){Q(ne,_e,ue,K,de,7);var pe=Number(ne&BigInt(4294967295));K[de+7]=pe,pe>>=8,K[de+6]=pe,pe>>=8,K[de+5]=pe,pe>>=8,K[de+4]=pe;var xe=Number(ne>>BigInt(32)&BigInt(4294967295));return K[de+3]=xe,xe>>=8,K[de+2]=xe,xe>>=8,K[de+1]=xe,xe>>=8,K[de]=xe,de+8}function te(K,ne,de,_e,ue,pe){if(de+_e>K.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function ee(K,ne,de,_e,ue){return ne=+ne,de>>>=0,ue||te(K,0,de,4),m.write(K,ne,de,_e,23,4),de+4}function H(K,ne,de,_e,ue){return ne=+ne,de>>>=0,ue||te(K,0,de,8),m.write(K,ne,de,_e,52,8),de+8}h.prototype.slice=function(K,ne){var de=this.length;(K=~~K)<0?(K+=de)<0&&(K=0):K>de&&(K=de),(ne=ne===void 0?de:~~ne)<0?(ne+=de)<0&&(ne=0):ne>de&&(ne=de),ne>>=0,ne>>>=0,de||L(K,ne,this.length);for(var _e=this[K],ue=1,pe=0;++pe>>=0,ne>>>=0,de||L(K,ne,this.length);for(var _e=this[K+--ne],ue=1;ne>0&&(ue*=256);)_e+=this[K+--ne]*ue;return _e},h.prototype.readUint8=h.prototype.readUInt8=function(K,ne){return K>>>=0,ne||L(K,1,this.length),this[K]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(K,ne){return K>>>=0,ne||L(K,2,this.length),this[K]|this[K+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(K,ne){return K>>>=0,ne||L(K,2,this.length),this[K]<<8|this[K+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),(this[K]|this[K+1]<<8|this[K+2]<<16)+16777216*this[K+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),16777216*this[K]+(this[K+1]<<16|this[K+2]<<8|this[K+3])},h.prototype.readBigUInt64LE=ce(function(K){re(K>>>=0,"offset");var ne=this[K],de=this[K+7];ne!==void 0&&de!==void 0||ae(K,this.length-8);var _e=ne+this[++K]*Math.pow(2,8)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,24),ue=this[++K]+this[++K]*Math.pow(2,8)+this[++K]*Math.pow(2,16)+de*Math.pow(2,24);return BigInt(_e)+(BigInt(ue)<>>=0,"offset");var ne=this[K],de=this[K+7];ne!==void 0&&de!==void 0||ae(K,this.length-8);var _e=ne*Math.pow(2,24)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,8)+this[++K],ue=this[++K]*Math.pow(2,24)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,8)+de;return(BigInt(_e)<>>=0,ne>>>=0,de||L(K,ne,this.length);for(var _e=this[K],ue=1,pe=0;++pe=(ue*=128)&&(_e-=Math.pow(2,8*ne)),_e},h.prototype.readIntBE=function(K,ne,de){K>>>=0,ne>>>=0,de||L(K,ne,this.length);for(var _e=ne,ue=1,pe=this[K+--_e];_e>0&&(ue*=256);)pe+=this[K+--_e]*ue;return pe>=(ue*=128)&&(pe-=Math.pow(2,8*ne)),pe},h.prototype.readInt8=function(K,ne){return K>>>=0,ne||L(K,1,this.length),128&this[K]?-1*(255-this[K]+1):this[K]},h.prototype.readInt16LE=function(K,ne){K>>>=0,ne||L(K,2,this.length);var de=this[K]|this[K+1]<<8;return 32768&de?4294901760|de:de},h.prototype.readInt16BE=function(K,ne){K>>>=0,ne||L(K,2,this.length);var de=this[K+1]|this[K]<<8;return 32768&de?4294901760|de:de},h.prototype.readInt32LE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),this[K]|this[K+1]<<8|this[K+2]<<16|this[K+3]<<24},h.prototype.readInt32BE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),this[K]<<24|this[K+1]<<16|this[K+2]<<8|this[K+3]},h.prototype.readBigInt64LE=ce(function(K){re(K>>>=0,"offset");var ne=this[K],de=this[K+7];ne!==void 0&&de!==void 0||ae(K,this.length-8);var _e=this[K+4]+this[K+5]*Math.pow(2,8)+this[K+6]*Math.pow(2,16)+(de<<24);return(BigInt(_e)<>>=0,"offset");var ne=this[K],de=this[K+7];ne!==void 0&&de!==void 0||ae(K,this.length-8);var _e=(ne<<24)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,8)+this[++K];return(BigInt(_e)<>>=0,ne||L(K,4,this.length),m.read(this,K,!0,23,4)},h.prototype.readFloatBE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),m.read(this,K,!1,23,4)},h.prototype.readDoubleLE=function(K,ne){return K>>>=0,ne||L(K,8,this.length),m.read(this,K,!0,52,8)},h.prototype.readDoubleBE=function(K,ne){return K>>>=0,ne||L(K,8,this.length),m.read(this,K,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(K,ne,de,_e){K=+K,ne>>>=0,de>>>=0,_e||W(this,K,ne,de,Math.pow(2,8*de)-1,0);var ue=1,pe=0;for(this[ne]=255&K;++pe>>=0,de>>>=0,_e||W(this,K,ne,de,Math.pow(2,8*de)-1,0);var ue=de-1,pe=1;for(this[ne+ue]=255&K;--ue>=0&&(pe*=256);)this[ne+ue]=K/pe&255;return ne+de},h.prototype.writeUint8=h.prototype.writeUInt8=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,1,255,0),this[ne]=255&K,ne+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,2,65535,0),this[ne]=255&K,this[ne+1]=K>>>8,ne+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,2,65535,0),this[ne]=K>>>8,this[ne+1]=255&K,ne+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,4,4294967295,0),this[ne+3]=K>>>24,this[ne+2]=K>>>16,this[ne+1]=K>>>8,this[ne]=255&K,ne+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,4,4294967295,0),this[ne]=K>>>24,this[ne+1]=K>>>16,this[ne+2]=K>>>8,this[ne+3]=255&K,ne+4},h.prototype.writeBigUInt64LE=ce(function(K){return U(this,K,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeBigUInt64BE=ce(function(K){return V(this,K,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeIntLE=function(K,ne,de,_e){if(K=+K,ne>>>=0,!_e){var ue=Math.pow(2,8*de-1);W(this,K,ne,de,ue-1,-ue)}var pe=0,xe=1,ye=0;for(this[ne]=255&K;++pe>0)-ye&255;return ne+de},h.prototype.writeIntBE=function(K,ne,de,_e){if(K=+K,ne>>>=0,!_e){var ue=Math.pow(2,8*de-1);W(this,K,ne,de,ue-1,-ue)}var pe=de-1,xe=1,ye=0;for(this[ne+pe]=255&K;--pe>=0&&(xe*=256);)K<0&&ye===0&&this[ne+pe+1]!==0&&(ye=1),this[ne+pe]=(K/xe>>0)-ye&255;return ne+de},h.prototype.writeInt8=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,1,127,-128),K<0&&(K=255+K+1),this[ne]=255&K,ne+1},h.prototype.writeInt16LE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,2,32767,-32768),this[ne]=255&K,this[ne+1]=K>>>8,ne+2},h.prototype.writeInt16BE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,2,32767,-32768),this[ne]=K>>>8,this[ne+1]=255&K,ne+2},h.prototype.writeInt32LE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,4,2147483647,-2147483648),this[ne]=255&K,this[ne+1]=K>>>8,this[ne+2]=K>>>16,this[ne+3]=K>>>24,ne+4},h.prototype.writeInt32BE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,4,2147483647,-2147483648),K<0&&(K=4294967295+K+1),this[ne]=K>>>24,this[ne+1]=K>>>16,this[ne+2]=K>>>8,this[ne+3]=255&K,ne+4},h.prototype.writeBigInt64LE=ce(function(K){return U(this,K,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeBigInt64BE=ce(function(K){return V(this,K,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeFloatLE=function(K,ne,de){return ee(this,K,ne,!0,de)},h.prototype.writeFloatBE=function(K,ne,de){return ee(this,K,ne,!1,de)},h.prototype.writeDoubleLE=function(K,ne,de){return H(this,K,ne,!0,de)},h.prototype.writeDoubleBE=function(K,ne,de){return H(this,K,ne,!1,de)},h.prototype.copy=function(K,ne,de,_e){if(!h.isBuffer(K))throw new TypeError("argument should be a Buffer");if(de||(de=0),_e||_e===0||(_e=this.length),ne>=K.length&&(ne=K.length),ne||(ne=0),_e>0&&_e=this.length)throw new RangeError("Index out of range");if(_e<0)throw new RangeError("sourceEnd out of bounds");_e>this.length&&(_e=this.length),K.length-ne<_e-de&&(_e=K.length-ne+de);var ue=_e-de;return this===K&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ne,de,_e):Uint8Array.prototype.set.call(K,this.subarray(de,_e),ne),ue},h.prototype.fill=function(K,ne,de,_e){if(typeof K=="string"){if(typeof ne=="string"?(_e=ne,ne=0,de=this.length):typeof de=="string"&&(_e=de,de=this.length),_e!==void 0&&typeof _e!="string")throw new TypeError("encoding must be a string");if(typeof _e=="string"&&!h.isEncoding(_e))throw new TypeError("Unknown encoding: "+_e);if(K.length===1){var ue=K.charCodeAt(0);(_e==="utf8"&&ue<128||_e==="latin1")&&(K=ue)}}else typeof K=="number"?K&=255:typeof K=="boolean"&&(K=Number(K));if(ne<0||this.length>>=0,de=de===void 0?this.length:de>>>0,K||(K=0),typeof K=="number")for(pe=ne;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Re,Le=d(xe);if(ye){var $e=d(this).constructor;Re=Reflect.construct(Le,arguments,$e)}else Re=Le.apply(this,arguments);return function(Fe,Be){if(Be&&(f(Be)==="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(Fe)}(this,Re)});function Ae(){var Re;return function(Le,$e){if(!(Le instanceof $e))throw new TypeError("Cannot call a class as a function")}(this,Ae),Re=Te.call(this),Object.defineProperty(c(Re),"message",{value:ne.apply(c(Re),arguments),writable:!0,configurable:!0}),Re.name="".concat(Re.name," [").concat(K,"]"),Re.stack,delete Re.name,Re}return ue=Ae,(pe=[{key:"code",get:function(){return K},set:function(Re){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Re,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(K,"]: ").concat(this.message)}}])&&s(ue.prototype,pe),Object.defineProperty(ue,"prototype",{writable:!1}),Ae}(de)}function X(K){for(var ne="",de=K.length,_e=K[0]==="-"?1:0;de>=_e+4;de-=3)ne="_".concat(K.slice(de-3,de)).concat(ne);return"".concat(K.slice(0,de)).concat(ne)}function Q(K,ne,de,_e,ue,pe){if(K>de||K= 0".concat(ye," and < 2").concat(ye," ** ").concat(8*(pe+1)).concat(ye):">= -(2".concat(ye," ** ").concat(8*(pe+1)-1).concat(ye,") and < 2 ** ")+"".concat(8*(pe+1)-1).concat(ye),new Z.ERR_OUT_OF_RANGE("value",xe,K)}(function(Te,Ae,Re){re(Ae,"offset"),Te[Ae]!==void 0&&Te[Ae+Re]!==void 0||ae(Ae,Te.length-(Re+1))})(_e,ue,pe)}function re(K,ne){if(typeof K!="number")throw new Z.ERR_INVALID_ARG_TYPE(ne,"number",K)}function ae(K,ne,de){throw Math.floor(K)!==K?(re(K,de),new Z.ERR_OUT_OF_RANGE("offset","an integer",K)):ne<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(ne),K)}G("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?"".concat(K," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),G("ERR_INVALID_ARG_TYPE",function(K,ne){return'The "'.concat(K,'" argument must be of type number. Received type ').concat(f(ne))},TypeError),G("ERR_OUT_OF_RANGE",function(K,ne,de){var _e='The value of "'.concat(K,'" is out of range.'),ue=de;return Number.isInteger(de)&&Math.abs(de)>Math.pow(2,32)?ue=X(String(de)):typeof de=="bigint"&&(ue=String(de),(de>Math.pow(BigInt(2),BigInt(32))||de<-Math.pow(BigInt(2),BigInt(32)))&&(ue=X(ue)),ue+="n"),_e+" It must be ".concat(ne,". Received ").concat(ue)},RangeError);var ie=/[^+/0-9A-Za-z-_]/g;function se(K,ne){var de;ne=ne||1/0;for(var _e=K.length,ue=null,pe=[],xe=0;xe<_e;++xe){if((de=K.charCodeAt(xe))>55295&&de<57344){if(!ue){if(de>56319){(ne-=3)>-1&&pe.push(239,191,189);continue}if(xe+1===_e){(ne-=3)>-1&&pe.push(239,191,189);continue}ue=de;continue}if(de<56320){(ne-=3)>-1&&pe.push(239,191,189),ue=de;continue}de=65536+(ue-55296<<10|de-56320)}else ue&&(ne-=3)>-1&&pe.push(239,191,189);if(ue=null,de<128){if((ne-=1)<0)break;pe.push(de)}else if(de<2048){if((ne-=2)<0)break;pe.push(de>>6|192,63&de|128)}else if(de<65536){if((ne-=3)<0)break;pe.push(de>>12|224,de>>6&63|128,63&de|128)}else{if(!(de<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;pe.push(de>>18|240,de>>12&63|128,de>>6&63|128,63&de|128)}}return pe}function he(K){return p.toByteArray(function(ne){if((ne=(ne=ne.split("=")[0]).trim().replace(ie,"")).length<2)return"";for(;ne.length%4!=0;)ne+="=";return ne}(K))}function Se(K,ne,de,_e){var ue;for(ue=0;ue<_e&&!(ue+de>=ne.length||ue>=K.length);++ue)ne[ue+de]=K[ue];return ue}function Oe(K,ne){return K instanceof ne||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===ne.name}function Pe(K){return K!=K}var Me=function(){for(var K="0123456789abcdef",ne=new Array(256),de=0;de<16;++de)for(var _e=16*de,ue=0;ue<16;++ue)ne[_e+ue]=K[de]+K[ue];return ne}();function ce(K){return typeof BigInt>"u"?we:K}function we(){throw new Error("BigInt not supported")}},35791:function(i){i.exports=u,i.exports.isMobile=u,i.exports.default=u;var o=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,a=/CrOS/,s=/android|ipad|playbook|silk/i;function u(c){c||(c={});var d=c.ua;if(d||typeof navigator>"u"||(d=navigator.userAgent),d&&d.headers&&typeof d.headers["user-agent"]=="string"&&(d=d.headers["user-agent"]),typeof d!="string")return!1;var f=o.test(d)&&!a.test(d)||!!c.tablet&&s.test(d);return!f&&c.tablet&&c.featureDetect&&navigator&&navigator.maxTouchPoints>1&&d.indexOf("Macintosh")!==-1&&d.indexOf("Safari")!==-1&&(f=!0),f}},39898:function(i,o,a){var s,u;(function(){var c={version:"3.8.0"},d=[].slice,f=function($){return d.call($)},p=self.document;function m($){return $&&($.ownerDocument||$.document||$).documentElement}function g($){return $&&($.ownerDocument&&$.ownerDocument.defaultView||$.document&&$||$.defaultView)}if(p)try{f(p.documentElement.childNodes)[0].nodeType}catch{f=function(J){for(var oe=J.length,fe=new Array(oe);oe--;)fe[oe]=J[oe];return fe}}if(Date.now||(Date.now=function(){return+new Date}),p)try{p.createElement("DIV").style.setProperty("opacity",0,"")}catch{var b=this.Element.prototype,v=b.setAttribute,h=b.setAttributeNS,y=this.CSSStyleDeclaration.prototype,w=y.setProperty;b.setAttribute=function(J,oe){v.call(this,J,oe+"")},b.setAttributeNS=function(J,oe,fe){h.call(this,J,oe,fe+"")},y.setProperty=function(J,oe,fe){w.call(this,J,oe+"",fe)}}function _($,J){return $J?1:$>=J?0:NaN}function x($){return $===null?NaN:+$}function T($){return!isNaN($)}function k($){return{left:function(J,oe,fe,me){for(arguments.length<3&&(fe=0),arguments.length<4&&(me=J.length);fe>>1;$(J[ve],oe)<0?fe=ve+1:me=ve}return fe},right:function(J,oe,fe,me){for(arguments.length<3&&(fe=0),arguments.length<4&&(me=J.length);fe>>1;$(J[ve],oe)>0?me=ve:fe=ve+1}return fe}}}c.ascending=_,c.descending=function($,J){return J<$?-1:J>$?1:J>=$?0:NaN},c.min=function($,J){var oe,fe,me=-1,ve=$.length;if(arguments.length===1){for(;++me=fe){oe=fe;break}for(;++mefe&&(oe=fe)}else{for(;++me=fe){oe=fe;break}for(;++mefe&&(oe=fe)}return oe},c.max=function($,J){var oe,fe,me=-1,ve=$.length;if(arguments.length===1){for(;++me=fe){oe=fe;break}for(;++meoe&&(oe=fe)}else{for(;++me=fe){oe=fe;break}for(;++meoe&&(oe=fe)}return oe},c.extent=function($,J){var oe,fe,me,ve=-1,De=$.length;if(arguments.length===1){for(;++ve=fe){oe=me=fe;break}for(;++vefe&&(oe=fe),me=fe){oe=me=fe;break}for(;++vefe&&(oe=fe),me1)return De/(Ne-1)},c.deviation=function(){var $=c.variance.apply(this,arguments);return $&&Math.sqrt($)};var S=k(_);function C($){return $.length}c.bisectLeft=S.left,c.bisect=c.bisectRight=S.right,c.bisector=function($){return k($.length===1?function(J,oe){return _($(J),oe)}:$)},c.shuffle=function($,J,oe){(ve=arguments.length)<3&&(oe=$.length,ve<2&&(J=0));for(var fe,me,ve=oe-J;ve;)me=Math.random()*ve--|0,fe=$[ve+J],$[ve+J]=$[me+J],$[me+J]=fe;return $},c.permute=function($,J){for(var oe=J.length,fe=new Array(oe);oe--;)fe[oe]=$[J[oe]];return fe},c.pairs=function($){for(var J=0,oe=$.length-1,fe=$[0],me=new Array(oe<0?0:oe);J=0;)for(J=(fe=$[me]).length;--J>=0;)oe[--De]=fe[J];return oe};var M=Math.abs;function O($,J){for(var oe in J)Object.defineProperty($.prototype,oe,{value:J[oe],enumerable:!1})}function D(){this._=Object.create(null)}c.range=function($,J,oe){if(arguments.length<3&&(oe=1,arguments.length<2&&(J=$,$=0)),(J-$)/oe==1/0)throw new Error("infinite range");var fe,me=[],ve=function(Ee){for(var Ne=1;Ee*Ne%1;)Ne*=10;return Ne}(M(oe)),De=-1;if($*=ve,J*=ve,(oe*=ve)<0)for(;(fe=$+oe*++De)>J;)me.push(fe/ve);else for(;(fe=$+oe*++De)=fe.length)return J?J.call(oe,Ne):$?Ne.sort($):Ne;for(var Ve,Je,at,bt,Pt=-1,pt=Ne.length,wt=fe[je++],lt=new D;++Pt=fe.length)return Ee;var je=[],Ve=me[Ne++];return Ee.forEach(function(Je,at){je.push({key:Je,values:De(at,Ne)})}),Ve?je.sort(function(Je,at){return Ve(Je.key,at.key)}):je}return oe.map=function(Ee,Ne){return ve(Ne,Ee,0)},oe.entries=function(Ee){return De(ve(c.map,Ee,0),0)},oe.key=function(Ee){return fe.push(Ee),oe},oe.sortKeys=function(Ee){return me[fe.length-1]=Ee,oe},oe.sortValues=function(Ee){return $=Ee,oe},oe.rollup=function(Ee){return J=Ee,oe},oe},c.set=function($){var J=new R;if($)for(var oe=0,fe=$.length;oe=0&&(fe=$.slice(oe+1),$=$.slice(0,oe)),$)return arguments.length<2?this[$].on(fe):this[$].on(fe,J);if(arguments.length===2){if(J==null)for($ in this)this.hasOwnProperty($)&&this[$].on(fe,null);return this}},c.event=null,c.requote=function($){return $.replace(G,"\\$&")};var G=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,X={}.__proto__?function($,J){$.__proto__=J}:function($,J){for(var oe in J)$[oe]=J[oe]};function Q($){return X($,se),$}var re=function($,J){return J.querySelector($)},ae=function($,J){return J.querySelectorAll($)},ie=function($,J){var oe=$.matches||$[L($,"matchesSelector")];return ie=function(fe,me){return oe.call(fe,me)},ie($,J)};typeof Sizzle=="function"&&(re=function($,J){return Sizzle($,J)[0]||null},ae=Sizzle,ie=Sizzle.matchesSelector),c.selection=function(){return c.select(p.documentElement)};var se=c.selection.prototype=[];function he($){return typeof $=="function"?$:function(){return re($,this)}}function Se($){return typeof $=="function"?$:function(){return ae($,this)}}se.select=function($){var J,oe,fe,me,ve=[];$=he($);for(var De=-1,Ee=this.length;++De=0&&(oe=$.slice(0,J))!=="xmlns"&&($=$.slice(J+1)),Pe.hasOwnProperty(oe)?{space:Pe[oe],local:$}:$}},se.attr=function($,J){if(arguments.length<2){if(typeof $=="string"){var oe=this.node();return($=c.ns.qualify($)).local?oe.getAttributeNS($.space,$.local):oe.getAttribute($)}for(J in $)this.each(Me(J,$[J]));return this}return this.each(Me($,J))},se.classed=function($,J){if(arguments.length<2){if(typeof $=="string"){var oe=this.node(),fe=($=K($)).length,me=-1;if(J=oe.classList){for(;++me=0;)(oe=fe[me])&&(ve&&ve!==oe.nextSibling&&ve.parentNode.insertBefore(oe,ve),ve=oe);return this},se.sort=function($){$=Ae.apply(this,arguments);for(var J=-1,oe=this.length;++J0&&($=$.slice(0,me));var De=Be.get($);function Ee(){var Ne=this[fe];Ne&&(this.removeEventListener($,Ne,Ne.$),delete this[fe])}return De&&($=De,ve=qe),me?J?function(){var Ne=ve(J,f(arguments));Ee.call(this),this.addEventListener($,this[fe]=Ne,Ne.$=oe),Ne._=J}:Ee:J?U:function(){var Ne,je=new RegExp("^__on([^.]+)"+c.requote($)+"$");for(var Ve in this)if(Ne=Ve.match(je)){var Je=this[Ve];this.removeEventListener(Ne[1],Je,Je.$),delete this[Ve]}}}c.selection.enter=Le,c.selection.enter.prototype=$e,$e.append=se.append,$e.empty=se.empty,$e.node=se.node,$e.call=se.call,$e.size=se.size,$e.select=function($){for(var J,oe,fe,me,ve,De=[],Ee=-1,Ne=this.length;++Ee=fe&&(fe=De+1);!(Ne=je[fe])&&++fe1?ut:$<-1?-ut:Math.asin($)}function Wt($){return(($=Math.exp($))+1/$)/2}var _t=Math.SQRT2;c.interpolateZoom=function($,J){var oe,fe,me=$[0],ve=$[1],De=$[2],Ee=J[0],Ne=J[1],je=J[2],Ve=Ee-me,Je=Ne-ve,at=Ve*Ve+Je*Je;if(at0&&(an=an.transition().duration(at)),an.call(Tt.event)}function nn(){De&&De.domain(ve.range().map(function(an){return(an-je.x)/je.k}).map(ve.invert)),Ne&&Ne.domain(Ee.range().map(function(an){return(an-je.y)/je.k}).map(Ee.invert))}function Sn(an){bt++||an({type:"zoomstart"})}function Pn(an){nn(),an({type:"zoom",scale:je.k,translate:[je.x,je.y]})}function In(an){--bt||(an({type:"zoomend"}),J=null)}function On(){var an=this,wn=Dt.of(an,arguments),qn=0,Hn=c.select(g(an)).on(pt,function(){qn=1,Gt(c.mouse(an),Jn),Pn(wn)}).on(wt,function(){Hn.on(pt,null).on(wt,null),Mr(qn),In(wn)}),Jn=ft(c.mouse(an)),Mr=st(an);Eg.call(an),Sn(wn)}function Gn(){var an,wn=this,qn=Dt.of(wn,arguments),Hn={},Jn=0,Mr=".zoom-"+c.event.changedTouches[0].identifier,sa="touchmove"+Mr,Xr="touchend"+Mr,Sa=[],ua=c.select(wn),Ca=st(wn);function ao(){var Da=c.touches(wn);return an=je.k,Da.forEach(function(ca){ca.identifier in Hn&&(Hn[ca.identifier]=ft(ca))}),Da}function Ri(){var Da=c.event.target;c.select(Da).on(sa,Ji).on(Xr,el),Sa.push(Da);for(var ca=c.event.changedTouches,ho=0,mo=ca.length;ho1){Al=So[0];var vs=So[1],Ig=Al[0]-vs[0],e6=Al[1]-vs[1];Jn=Ig*Ig+e6*e6}}function Ji(){var Da,ca,ho,mo,So=c.touches(wn);Eg.call(wn);for(var si=0,Al=So.length;si360?Ee-=360:Ee<0&&(Ee+=360),Ee<60?fe+(me-fe)*Ee/60:Ee<180?me:Ee<240?fe+(me-fe)*(240-Ee)/60:fe}(De))}return $=isNaN($)?0:($%=360)<0?$+360:$,J=isNaN(J)||J<0?0:J>1?1:J,fe=2*(oe=oe<0?0:oe>1?1:oe)-(me=oe<=.5?oe*(1+J):oe+J-oe*J),new It(ve($+120),ve($),ve($-120))}function nt($,J,oe){return this instanceof nt?(this.h=+$,this.c=+J,void(this.l=+oe)):arguments.length<2?$ instanceof nt?new nt($.h,$.c,$.l):function(fe,me,ve){return fe>0?new nt(Math.atan2(ve,me)*Rt,Math.sqrt(me*me+ve*ve),fe):new nt(NaN,NaN,fe)}($ instanceof rt?$.l:($=Bt(($=c.rgb($)).r,$.g,$.b)).l,$.a,$.b):new nt($,J,oe)}Ke.brighter=function($){return $=Math.pow(.7,arguments.length?$:1),new et(this.h,this.s,this.l/$)},Ke.darker=function($){return $=Math.pow(.7,arguments.length?$:1),new et(this.h,this.s,$*this.l)},Ke.rgb=function(){return Ye(this.h,this.s,this.l)},c.hcl=nt;var ct=nt.prototype=new He;function yt($,J,oe){return isNaN($)&&($=0),isNaN(J)&&(J=0),new rt(oe,Math.cos($*=ht)*J,Math.sin($)*J)}function rt($,J,oe){return this instanceof rt?(this.l=+$,this.a=+J,void(this.b=+oe)):arguments.length<2?$ instanceof rt?new rt($.l,$.a,$.b):$ instanceof nt?yt($.h,$.c,$.l):Bt(($=It($)).r,$.g,$.b):new rt($,J,oe)}ct.brighter=function($){return new nt(this.h,this.c,Math.min(100,this.l+Ft*(arguments.length?$:1)))},ct.darker=function($){return new nt(this.h,this.c,Math.max(0,this.l-Ft*(arguments.length?$:1)))},ct.rgb=function(){return yt(this.h,this.c,this.l).rgb()},c.lab=rt;var Ft=18,Yt=.95047,Mt=1,jt=1.08883,Lt=rt.prototype=new He;function gt($,J,oe){var fe=($+16)/116,me=fe+J/500,ve=fe-oe/200;return new It(Ut(3.2404542*(me=mt(me)*Yt)-1.5371385*(fe=mt(fe)*Mt)-.4985314*(ve=mt(ve)*jt)),Ut(-.969266*me+1.8760108*fe+.041556*ve),Ut(.0556434*me-.2040259*fe+1.0572252*ve))}function mt($){return $>.206893034?$*$*$:($-.13793103448275862)/7.787037}function xt($){return $>.008856?Math.pow($,.3333333333333333):7.787037*$+.13793103448275862}function Ut($){return Math.round(255*($<=.00304?12.92*$:1.055*Math.pow($,.4166666666666667)-.055))}function It($,J,oe){return this instanceof It?(this.r=~~$,this.g=~~J,void(this.b=~~oe)):arguments.length<2?$ instanceof It?new It($.r,$.g,$.b):Nt(""+$,It,Ye):new It($,J,oe)}function zt($){return new It($>>16,$>>8&255,255&$)}function kt($){return zt($)+""}Lt.brighter=function($){return new rt(Math.min(100,this.l+Ft*(arguments.length?$:1)),this.a,this.b)},Lt.darker=function($){return new rt(Math.max(0,this.l-Ft*(arguments.length?$:1)),this.a,this.b)},Lt.rgb=function(){return gt(this.l,this.a,this.b)},c.rgb=It;var Ot=It.prototype=new He;function At($){return $<16?"0"+Math.max(0,$).toString(16):Math.min(255,$).toString(16)}function Nt($,J,oe){var fe,me,ve,De=0,Ee=0,Ne=0;if(fe=/([a-z]+)\((.*)\)/.exec($=$.toLowerCase()))switch(me=fe[2].split(","),fe[1]){case"hsl":return oe(parseFloat(me[0]),parseFloat(me[1])/100,parseFloat(me[2])/100);case"rgb":return J(Zt(me[0]),Zt(me[1]),Zt(me[2]))}return(ve=qt.get($))?J(ve.r,ve.g,ve.b):($==null||$.charAt(0)!=="#"||isNaN(ve=parseInt($.slice(1),16))||($.length===4?(De=(3840&ve)>>4,De|=De>>4,Ee=240&ve,Ee|=Ee>>4,Ne=15&ve,Ne|=Ne<<4):$.length===7&&(De=(16711680&ve)>>16,Ee=(65280&ve)>>8,Ne=255&ve)),J(De,Ee,Ne))}function $t($,J,oe){var fe,me,ve=Math.min($/=255,J/=255,oe/=255),De=Math.max($,J,oe),Ee=De-ve,Ne=(De+ve)/2;return Ee?(me=Ne<.5?Ee/(De+ve):Ee/(2-De-ve),fe=$==De?(J-oe)/Ee+(J0&&Ne<1?0:fe),new et(fe,me,Ne)}function Bt($,J,oe){var fe=xt((.4124564*($=Xt($))+.3575761*(J=Xt(J))+.1804375*(oe=Xt(oe)))/Yt),me=xt((.2126729*$+.7151522*J+.072175*oe)/Mt);return rt(116*me-16,500*(fe-me),200*(me-xt((.0193339*$+.119192*J+.9503041*oe)/jt)))}function Xt($){return($/=255)<=.04045?$/12.92:Math.pow(($+.055)/1.055,2.4)}function Zt($){var J=parseFloat($);return $.charAt($.length-1)==="%"?Math.round(2.55*J):J}Ot.brighter=function($){$=Math.pow(.7,arguments.length?$:1);var J=this.r,oe=this.g,fe=this.b,me=30;return J||oe||fe?(J&&J=200&&Je<300||Je===304){try{Ve=oe.call(me,Ee)}catch(at){return void ve.error.call(me,at)}ve.load.call(me,Ve)}else ve.error.call(me,Ee)}return self.XDomainRequest&&!("withCredentials"in Ee)&&/^(http(s)?:)?\/\//.test($)&&(Ee=new XDomainRequest),"onload"in Ee?Ee.onload=Ee.onerror=je:Ee.onreadystatechange=function(){Ee.readyState>3&&je()},Ee.onprogress=function(Ve){var Je=c.event;c.event=Ve;try{ve.progress.call(me,Ee)}finally{c.event=Je}},me.header=function(Ve,Je){return Ve=(Ve+"").toLowerCase(),arguments.length<2?De[Ve]:(Je==null?delete De[Ve]:De[Ve]=Je+"",me)},me.mimeType=function(Ve){return arguments.length?(J=Ve==null?null:Ve+"",me):J},me.responseType=function(Ve){return arguments.length?(Ne=Ve,me):Ne},me.response=function(Ve){return oe=Ve,me},["get","post"].forEach(function(Ve){me[Ve]=function(){return me.send.apply(me,[Ve].concat(f(arguments)))}}),me.send=function(Ve,Je,at){if(arguments.length===2&&typeof Je=="function"&&(at=Je,Je=null),Ee.open(Ve,$,!0),J==null||"accept"in De||(De.accept=J+",*/*"),Ee.setRequestHeader)for(var bt in De)Ee.setRequestHeader(bt,De[bt]);return J!=null&&Ee.overrideMimeType&&Ee.overrideMimeType(J),Ne!=null&&(Ee.responseType=Ne),at!=null&&me.on("error",at).on("load",function(Pt){at(null,Pt)}),ve.beforesend.call(me,Ee),Ee.send(Je??null),me},me.abort=function(){return Ee.abort(),me},c.rebind(me,ve,"on"),fe==null?me:me.get(function(Ve){return Ve.length===1?function(Je,at){Ve(Je==null?at:null)}:Ve}(fe))}qt.forEach(function($,J){qt.set($,zt(J))}),c.functor=Ht,c.xhr=sn(q),c.dsv=function($,J){var oe=new RegExp('["'+$+` ]`),fe=$.charCodeAt(0);function me(je,Ve,Je){arguments.length<3&&(Je=Ve,Ve=null);var at=xn(je,J,Ve==null?ve:De(Ve),Je);return at.row=function(bt){return arguments.length?at.response((Ve=bt)==null?ve:De(bt)):Ve},at}function ve(je){return me.parse(je.responseText)}function De(je){return function(Ve){return me.parse(Ve.responseText,je)}}function Ee(je){return je.map(Ne).join($)}function Ne(je){return oe.test(je)?'"'+je.replace(/\"/g,'""')+'"':je}return me.parse=function(je,Ve){var Je;return me.parseRows(je,function(at,bt){if(Je)return Je(at,bt-1);var Pt=function(pt){for(var wt={},lt=at.length,Dt=0;Dt=wt)return Pt;if(at)return at=!1,bt;var Vt=lt;if(je.charCodeAt(Vt)===34){for(var Gt=Vt;Gt++24?(isFinite(J)&&(clearTimeout(en),en=setTimeout(tn,J)),gn=0):(gn=1,kn(tn))}function Fn(){for(var $=Date.now(),J=mn;J;)$>=J.t&&J.c($-J.t)&&(J.c=null),J=J.n;return $}function Rn(){for(var $,J=mn,oe=1/0;J;)J.c?(J.t1&&(J=$[ve[De-2]],oe=$[ve[De-1]],fe=$[Ee],(oe[0]-J[0])*(fe[1]-J[1])-(oe[1]-J[1])*(fe[0]-J[0])<=0);)--De;ve[De++]=Ee}return ve.slice(0,De)}function gr($,J){return $[0]-J[0]||$[1]-J[1]}c.timer=function(){un.apply(this,arguments)},c.timer.flush=function(){Fn(),Rn()},c.round=function($,J){return J?Math.round($*(J=Math.pow(10,J)))/J:Math.round($)},c.geom={},c.geom.hull=function($){var J=Bn,oe=En;if(arguments.length)return fe($);function fe(me){if(me.length<3)return[];var ve,De=Ht(J),Ee=Ht(oe),Ne=me.length,je=[],Ve=[];for(ve=0;ve=0;--ve)pt.push(me[je[Je[ve]][2]]);for(ve=+bt;veze)Ee=Ee.L;else{if(!((me=ve-Wr(Ee,De))>ze)){fe>-ze?(J=Ee.P,oe=Ee):me>-ze?(J=Ee,oe=Ee.N):J=oe=Ee;break}if(!Ee.R){J=Ee;break}Ee=Ee.R}var Ne=Un($);if(Gr.insert(J,Ne),J||oe){if(J===oe)return Ln(J),oe=Un(J.site),Gr.insert(Ne,oe),Ne.edge=oe.edge=va(J.site,Ne.site),Ya(J),void Ya(oe);if(oe){Ln(J),Ln(oe);var je=J.site,Ve=je.x,Je=je.y,at=$.x-Ve,bt=$.y-Je,Pt=oe.site,pt=Pt.x-Ve,wt=Pt.y-Je,lt=2*(at*wt-bt*pt),Dt=at*at+bt*bt,Tt=pt*pt+wt*wt,ft={x:(wt*Dt-bt*Tt)/lt+Ve,y:(at*Tt-pt*Dt)/lt+Je};hs(oe.edge,je,Pt,ft),Ne.edge=va(je,$,null,ft),oe.edge=va($,Pt,null,ft),Ya(J),Ya(oe)}else Ne.edge=va(J.site,Ne.site)}}function la($,J){var oe=$.site,fe=oe.x,me=oe.y,ve=me-J;if(!ve)return fe;var De=$.P;if(!De)return-1/0;var Ee=(oe=De.site).x,Ne=oe.y,je=Ne-J;if(!je)return Ee;var Ve=Ee-fe,Je=1/ve-1/je,at=Ve/je;return Je?(-at+Math.sqrt(at*at-2*Je*(Ve*Ve/(-2*je)-Ne+je/2+me-ve/2)))/Je+fe:(fe+Ee)/2}function Wr($,J){var oe=$.N;if(oe)return la(oe,J);var fe=$.site;return fe.y===J?fe.x:1/0}function Yr($){this.site=$,this.edges=[]}function ii($,J){return J.angle-$.angle}function ko(){Zi(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ya($){var J=$.P,oe=$.N;if(J&&oe){var fe=J.site,me=$.site,ve=oe.site;if(fe!==ve){var De=me.x,Ee=me.y,Ne=fe.x-De,je=fe.y-Ee,Ve=ve.x-De,Je=2*(Ne*(wt=ve.y-Ee)-je*Ve);if(!(Je>=-tt)){var at=Ne*Ne+je*je,bt=Ve*Ve+wt*wt,Pt=(wt*at-je*bt)/Je,pt=(Ne*bt-Ve*at)/Je,wt=pt+Ee,lt=Xn.pop()||new ko;lt.arc=$,lt.site=me,lt.x=Pt+De,lt.y=wt+Math.sqrt(Pt*Pt+pt*pt),lt.cy=wt,$.circle=lt;for(var Dt=null,Tt=jn._;Tt;)if(lt.y=Ee)return;if(at>Pt){if(ve){if(ve.y>=je)return}else ve={x:wt,y:Ne};oe={x:wt,y:je}}else{if(ve){if(ve.y1)if(at>Pt){if(ve){if(ve.y>=je)return}else ve={x:(Ne-me)/fe,y:Ne};oe={x:(je-me)/fe,y:je}}else{if(ve){if(ve.y=Ee)return}else ve={x:De,y:fe*De+me};oe={x:Ee,y:fe*Ee+me}}else{if(ve){if(ve.x0)){if(lt/=nn,nn<0){if(lt0){if(lt>rn)return;lt>Gt&&(Gt=lt)}if(lt=Je-ft,nn||!(lt<0)){if(lt/=nn,nn<0){if(lt>rn)return;lt>Gt&&(Gt=lt)}else if(nn>0){if(lt0)){if(lt/=Sn,Sn<0){if(lt0){if(lt>rn)return;lt>Gt&&(Gt=lt)}if(lt=at-Vt,Sn||!(lt<0)){if(lt/=Sn,Sn<0){if(lt>rn)return;lt>Gt&&(Gt=lt)}else if(Sn>0){if(lt0&&(wt.a={x:ft+Gt*nn,y:Vt+Gt*Sn}),rn<1&&(wt.b={x:ft+rn*nn,y:Vt+rn*Sn}),wt}}}}}),pt=bt.length;pt--;)(!ta(Ne=bt[pt],Ee)||!Pt(Ne)||M(Ne.a.x-Ne.b.x)ze||M(Je-je)>ze)&&(Pt.splice(bt,0,new ms((nn=at.site,Sn=lt,Pn=M(Ve-Dt)ze?{x:Dt,y:M(Ne-Dt)ze?{x:M(je-Vt)ze?{x:Tt,y:M(Ne-Tt)ze?{x:M(je-ft)=Ve&<.x<=at&<.y>=Je&<.y<=bt?[[Ve,bt],[at,bt],[at,Je],[Ve,Je]]:[]).point=Ne[pt]}),je}function Ee(Ne){return Ne.map(function(je,Ve){return{x:Math.round(fe(je,Ve)/ze)*ze,y:Math.round(me(je,Ve)/ze)*ze,i:Ve}})}return De.links=function(Ne){return Oc(Ee(Ne)).edges.filter(function(je){return je.l&&je.r}).map(function(je){return{source:Ne[je.l.i],target:Ne[je.r.i]}})},De.triangles=function(Ne){var je=[];return Oc(Ee(Ne)).cells.forEach(function(Ve,Je){for(var at,bt,Pt,pt,wt=Ve.site,lt=Ve.edges.sort(ii),Dt=-1,Tt=lt.length,ft=lt[Tt-1].edge,Vt=ft.l===wt?ft.r:ft.l;++Dtve&&(me=J.slice(ve,me),Ee[De]?Ee[De]+=me:Ee[++De]=me),(oe=oe[0])===(fe=fe[0])?Ee[De]?Ee[De]+=fe:Ee[++De]=fe:(Ee[++De]=null,Ne.push({i:De,x:Ol(oe,fe)})),ve=T2.lastIndex;return velt&&(lt=Ve.x),Ve.y>Dt&&(Dt=Ve.y),Je.push(Ve.x),at.push(Ve.y);else for(bt=0;btlt&&(lt=Vt),Gt>Dt&&(Dt=Gt),Je.push(Vt),at.push(Gt)}var rn=lt-pt,nn=Dt-wt;function Sn(On,Gn,nr,Dr,an,wn,qn,Hn){if(!isNaN(nr)&&!isNaN(Dr))if(On.leaf){var Jn=On.x,Mr=On.y;if(Jn!=null)if(M(Jn-nr)+M(Mr-Dr)<.01)Pn(On,Gn,nr,Dr,an,wn,qn,Hn);else{var sa=On.point;On.x=On.y=On.point=null,Pn(On,sa,Jn,Mr,an,wn,qn,Hn),Pn(On,Gn,nr,Dr,an,wn,qn,Hn)}else On.x=nr,On.y=Dr,On.point=Gn}else Pn(On,Gn,nr,Dr,an,wn,qn,Hn)}function Pn(On,Gn,nr,Dr,an,wn,qn,Hn){var Jn=.5*(an+qn),Mr=.5*(wn+Hn),sa=nr>=Jn,Xr=Dr>=Mr,Sa=Xr<<1|sa;On.leaf=!1,sa?an=Jn:qn=Jn,Xr?wn=Mr:Hn=Mr,Sn(On=On.nodes[Sa]||(On.nodes[Sa]={leaf:!0,nodes:[],point:null,x:null,y:null}),Gn,nr,Dr,an,wn,qn,Hn)}rn>nn?Dt=wt+rn:lt=pt+nn;var In={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(On){Sn(In,On,+Tt(On,++bt),+ft(On,bt),pt,wt,lt,Dt)}};if(In.visit=function(On){Nf(On,In,pt,wt,lt,Dt)},In.find=function(On){return function(Gn,nr,Dr,an,wn,qn,Hn){var Jn,Mr=1/0;return function sa(Xr,Sa,ua,Ca,ao){if(!(Sa>qn||ua>Hn||Ca=So)<<1|nr>=mo,Al=si+4;si=0&&!(oe=c.interpolators[fe]($,J)););return oe}function kg($,J){var oe,fe=[],me=[],ve=$.length,De=J.length,Ee=Math.min($.length,J.length);for(oe=0;oe=1)return 1;var J=$*$,oe=J*$;return 4*($<.5?oe:3*($-J)+oe-.75)}function OX($){return 1-Math.cos($*ut)}function AX($){return Math.pow(2,10*($-1))}function DX($){return 1-Math.sqrt(1-$*$)}function EX($){return $<.36363636363636365?7.5625*$*$:$<.7272727272727273?7.5625*($-=.5454545454545454)*$+.75:$<.9090909090909091?7.5625*($-=.8181818181818182)*$+.9375:7.5625*($-=.9545454545454546)*$+.984375}function iO($,J){return J-=$,function(oe){return Math.round($+J*oe)}}function lO($){var J,oe,fe,me=[$.a,$.b],ve=[$.c,$.d],De=uO(me),Ee=sO(me,ve),Ne=uO(((J=ve)[0]+=(fe=-Ee)*(oe=me)[0],J[1]+=fe*oe[1],J))||0;me[0]*ve[1]=0?$.slice(0,oe):$,me=oe>=0?$.slice(oe+1):"in";return fe=kX.get(fe)||rO,me=SX.get(me)||q,J=me(fe.apply(null,d.call(arguments,1))),function(ve){return ve<=0?0:ve>=1?1:J(ve)}},c.interpolateHcl=function($,J){$=c.hcl($),J=c.hcl(J);var oe=$.h,fe=$.c,me=$.l,ve=J.h-oe,De=J.c-fe,Ee=J.l-me;return isNaN(De)&&(De=0,fe=isNaN(fe)?J.c:fe),isNaN(ve)?(ve=0,oe=isNaN(oe)?J.h:oe):ve>180?ve-=360:ve<-180&&(ve+=360),function(Ne){return yt(oe+ve*Ne,fe+De*Ne,me+Ee*Ne)+""}},c.interpolateHsl=function($,J){$=c.hsl($),J=c.hsl(J);var oe=$.h,fe=$.s,me=$.l,ve=J.h-oe,De=J.s-fe,Ee=J.l-me;return isNaN(De)&&(De=0,fe=isNaN(fe)?J.s:fe),isNaN(ve)?(ve=0,oe=isNaN(oe)?J.h:oe):ve>180?ve-=360:ve<-180&&(ve+=360),function(Ne){return Ye(oe+ve*Ne,fe+De*Ne,me+Ee*Ne)+""}},c.interpolateLab=function($,J){$=c.lab($),J=c.lab(J);var oe=$.l,fe=$.a,me=$.b,ve=J.l-oe,De=J.a-fe,Ee=J.b-me;return function(Ne){return gt(oe+ve*Ne,fe+De*Ne,me+Ee*Ne)+""}},c.interpolateRound=iO,c.transform=function($){var J=p.createElementNS(c.ns.prefix.svg,"g");return(c.transform=function(oe){if(oe!=null){J.setAttribute("transform",oe);var fe=J.transform.baseVal.consolidate()}return new lO(fe?fe.matrix:RX)})($)},lO.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var RX={a:1,b:0,c:0,d:1,e:0,f:0};function Ac($){return $.length?$.pop()+",":""}function cO($,J){var oe=[],fe=[];return $=c.transform($),J=c.transform(J),function(me,ve,De,Ee){if(me[0]!==ve[0]||me[1]!==ve[1]){var Ne=De.push("translate(",null,",",null,")");Ee.push({i:Ne-4,x:Ol(me[0],ve[0])},{i:Ne-2,x:Ol(me[1],ve[1])})}else(ve[0]||ve[1])&&De.push("translate("+ve+")")}($.translate,J.translate,oe,fe),function(me,ve,De,Ee){me!==ve?(me-ve>180?ve+=360:ve-me>180&&(me+=360),Ee.push({i:De.push(Ac(De)+"rotate(",null,")")-2,x:Ol(me,ve)})):ve&&De.push(Ac(De)+"rotate("+ve+")")}($.rotate,J.rotate,oe,fe),function(me,ve,De,Ee){me!==ve?Ee.push({i:De.push(Ac(De)+"skewX(",null,")")-2,x:Ol(me,ve)}):ve&&De.push(Ac(De)+"skewX("+ve+")")}($.skew,J.skew,oe,fe),function(me,ve,De,Ee){if(me[0]!==ve[0]||me[1]!==ve[1]){var Ne=De.push(Ac(De)+"scale(",null,",",null,")");Ee.push({i:Ne-4,x:Ol(me[0],ve[0])},{i:Ne-2,x:Ol(me[1],ve[1])})}else ve[0]===1&&ve[1]===1||De.push(Ac(De)+"scale("+ve+")")}($.scale,J.scale,oe,fe),$=J=null,function(me){for(var ve,De=-1,Ee=fe.length;++De0?oe=ft:($.c=null,$.t=NaN,$=null,Ee.end({type:"end",alpha:oe=0})):ft>0&&(Ee.start({type:"start",alpha:oe=ft}),$=un(De.tick)),De):oe},De.start=function(){var ft,Vt,Gt,rn=wt.length,nn=lt.length,Sn=Ne[0],Pn=Ne[1];for(ft=0;ft=0;)oe.push(me[fe])}function Qi($,J){for(var oe=[$],fe=[];($=oe.pop())!=null;)if(fe.push($),(ve=$.children)&&(me=ve.length))for(var me,ve,De=-1;++De=0;)De.push(Ve=je[Ne]),Ve.parent=ve,Ve.depth=ve.depth+1;oe&&(ve.value=0),ve.children=je}else oe&&(ve.value=+oe.call(fe,ve,ve.depth)||0),delete ve.children;return Qi(me,function(Je){var at,bt;$&&(at=Je.children)&&at.sort($),oe&&(bt=Je.parent)&&(bt.value+=Je.value)}),Ee}return fe.sort=function(me){return arguments.length?($=me,fe):$},fe.children=function(me){return arguments.length?(J=me,fe):J},fe.value=function(me){return arguments.length?(oe=me,fe):oe},fe.revalue=function(me){return oe&&(jf(me,function(ve){ve.children&&(ve.value=0)}),Qi(me,function(ve){var De;ve.children||(ve.value=+oe.call(fe,ve,ve.depth)||0),(De=ve.parent)&&(De.value+=ve.value)})),me},fe},c.layout.partition=function(){var $=c.layout.hierarchy(),J=[1,1];function oe(ve,De,Ee,Ne){var je=ve.children;if(ve.x=De,ve.y=ve.depth*Ne,ve.dx=Ee,ve.dy=Ne,je&&(Ve=je.length)){var Ve,Je,at,bt=-1;for(Ee=ve.value?Ee/ve.value:0;++btEe&&(Ee=fe),De.push(fe)}for(oe=0;oeme&&(fe=oe,me=J);return fe}function eK($){return $.reduce(tK,0)}function tK($,J){return $+J[1]}function nK($,J){return hO($,Math.ceil(Math.log(J.length)/Math.LN2+1))}function hO($,J){for(var oe=-1,fe=+$[0],me=($[1]-fe)/J,ve=[];++oe<=J;)ve[oe]=me*oe+fe;return ve}function rK($){return[c.min($),c.max($)]}function aK($,J){return $.value-J.value}function C2($,J){var oe=$._pack_next;$._pack_next=J,J._pack_prev=$,J._pack_next=oe,oe._pack_prev=J}function mO($,J){$._pack_next=J,J._pack_prev=$}function gO($,J){var oe=J.x-$.x,fe=J.y-$.y,me=$.r+J.r;return .999*me*me>oe*oe+fe*fe}function vO($){if((J=$.children)&&(Ne=J.length)){var J,oe,fe,me,ve,De,Ee,Ne,je=1/0,Ve=-1/0,Je=1/0,at=-1/0;if(J.forEach(oK),(oe=J[0]).x=-oe.r,oe.y=0,Tt(oe),Ne>1&&((fe=J[1]).x=fe.r,fe.y=0,Tt(fe),Ne>2))for(bO(oe,fe,me=J[2]),Tt(me),C2(oe,me),oe._pack_prev=me,C2(me,fe),fe=oe._pack_next,ve=3;ve0)for(De=-1;++De=Je[0]&&Ne<=Je[1]&&((Ee=je[c.bisect(at,Ne,1,Pt)-1]).y+=pt,Ee.push(ve[De]));return je}return me.value=function(ve){return arguments.length?(J=ve,me):J},me.range=function(ve){return arguments.length?(oe=Ht(ve),me):oe},me.bins=function(ve){return arguments.length?(fe=typeof ve=="number"?function(De){return hO(De,ve)}:Ht(ve),me):fe},me.frequency=function(ve){return arguments.length?($=!!ve,me):$},me},c.layout.pack=function(){var $,J=c.layout.hierarchy().sort(aK),oe=0,fe=[1,1];function me(ve,De){var Ee=J.call(this,ve,De),Ne=Ee[0],je=fe[0],Ve=fe[1],Je=$==null?Math.sqrt:typeof $=="function"?$:function(){return $};if(Ne.x=Ne.y=0,Qi(Ne,function(bt){bt.r=+Je(bt.value)}),Qi(Ne,vO),oe){var at=oe*($?1:Math.max(2*Ne.r/je,2*Ne.r/Ve))/2;Qi(Ne,function(bt){bt.r+=at}),Qi(Ne,vO),Qi(Ne,function(bt){bt.r-=at})}return yO(Ne,je/2,Ve/2,$?1:1/Math.max(2*Ne.r/je,2*Ne.r/Ve)),Ee}return me.size=function(ve){return arguments.length?(fe=ve,me):fe},me.radius=function(ve){return arguments.length?($=ve==null||typeof ve=="function"?ve:+ve,me):$},me.padding=function(ve){return arguments.length?(oe=+ve,me):oe},Ff(me,J)},c.layout.tree=function(){var $=c.layout.hierarchy().sort(null).value(null),J=xO,oe=[1,1],fe=null;function me(Ne,je){var Ve=$.call(this,Ne,je),Je=Ve[0],at=function(Tt){for(var ft,Vt={A:null,children:[Tt]},Gt=[Vt];(ft=Gt.pop())!=null;)for(var rn,nn=ft.children,Sn=0,Pn=nn.length;SnPt.x&&(Pt=Tt),Tt.depth>pt.depth&&(pt=Tt)});var wt=J(bt,Pt)/2-bt.x,lt=oe[0]/(Pt.x+J(Pt,bt)/2+wt),Dt=oe[1]/(pt.depth||1);jf(Je,function(Tt){Tt.x=(Tt.x+wt)*lt,Tt.y=Tt.depth*Dt})}return Ve}function ve(Ne){var je=Ne.children,Ve=Ne.parent.children,Je=Ne.i?Ve[Ne.i-1]:null;if(je.length){(function(bt){for(var Pt,pt=0,wt=0,lt=bt.children,Dt=lt.length;--Dt>=0;)(Pt=lt[Dt]).z+=pt,Pt.m+=pt,pt+=Pt.s+(wt+=Pt.c)})(Ne);var at=(je[0].z+je[je.length-1].z)/2;Je?(Ne.z=Je.z+J(Ne._,Je._),Ne.m=Ne.z-at):Ne.z=at}else Je&&(Ne.z=Je.z+J(Ne._,Je._));Ne.parent.A=function(bt,Pt,pt){if(Pt){for(var wt,lt=bt,Dt=bt,Tt=Pt,ft=lt.parent.children[0],Vt=lt.m,Gt=Dt.m,rn=Tt.m,nn=ft.m;Tt=P2(Tt),lt=M2(lt),Tt&<)ft=M2(ft),(Dt=P2(Dt)).a=bt,(wt=Tt.z+rn-lt.z-Vt+J(Tt._,lt._))>0&&(lK(sK(Tt,bt,pt),bt,wt),Vt+=wt,Gt+=wt),rn+=Tt.m,Vt+=lt.m,nn+=ft.m,Gt+=Dt.m;Tt&&!P2(Dt)&&(Dt.t=Tt,Dt.m+=rn-Gt),lt&&!M2(ft)&&(ft.t=lt,ft.m+=Vt-nn,pt=bt)}return pt}(Ne,Je,Ne.parent.A||Ve[0])}function De(Ne){Ne._.x=Ne.z+Ne.parent.m,Ne.m+=Ne.parent.m}function Ee(Ne){Ne.x*=oe[0],Ne.y=Ne.depth*oe[1]}return me.separation=function(Ne){return arguments.length?(J=Ne,me):J},me.size=function(Ne){return arguments.length?(fe=(oe=Ne)==null?Ee:null,me):fe?null:oe},me.nodeSize=function(Ne){return arguments.length?(fe=(oe=Ne)==null?null:Ee,me):fe?oe:null},Ff(me,$)},c.layout.cluster=function(){var $=c.layout.hierarchy().sort(null).value(null),J=xO,oe=[1,1],fe=!1;function me(ve,De){var Ee,Ne=$.call(this,ve,De),je=Ne[0],Ve=0;Qi(je,function(pt){var wt=pt.children;wt&&wt.length?(pt.x=function(lt){return lt.reduce(function(Dt,Tt){return Dt+Tt.x},0)/lt.length}(wt),pt.y=function(lt){return 1+c.max(lt,function(Dt){return Dt.y})}(wt)):(pt.x=Ee?Ve+=J(pt,Ee):0,pt.y=0,Ee=pt)});var Je=wO(je),at=_O(je),bt=Je.x-J(Je,at)/2,Pt=at.x+J(at,Je)/2;return Qi(je,fe?function(pt){pt.x=(pt.x-je.x)*oe[0],pt.y=(je.y-pt.y)*oe[1]}:function(pt){pt.x=(pt.x-bt)/(Pt-bt)*oe[0],pt.y=(1-(je.y?pt.y/je.y:1))*oe[1]}),Ne}return me.separation=function(ve){return arguments.length?(J=ve,me):J},me.size=function(ve){return arguments.length?(fe=(oe=ve)==null,me):fe?null:oe},me.nodeSize=function(ve){return arguments.length?(fe=(oe=ve)!=null,me):fe?oe:null},Ff(me,$)},c.layout.treemap=function(){var $,J=c.layout.hierarchy(),oe=Math.round,fe=[1,1],me=null,ve=O2,De=!1,Ee="squarify",Ne=.5*(1+Math.sqrt(5));function je(pt,wt){for(var lt,Dt,Tt=-1,ft=pt.length;++Tt0;)Vt.push(lt=Gt[Tt-1]),Vt.area+=lt.area,Ee!=="squarify"||(Dt=at(Vt,nn))<=rn?(Gt.pop(),rn=Dt):(Vt.area-=Vt.pop().area,bt(Vt,nn,ft,!1),nn=Math.min(ft.dx,ft.dy),Vt.length=Vt.area=0,rn=1/0);Vt.length&&(bt(Vt,nn,ft,!0),Vt.length=Vt.area=0),wt.forEach(Ve)}}function Je(pt){var wt=pt.children;if(wt&&wt.length){var lt,Dt=ve(pt),Tt=wt.slice(),ft=[];for(je(Tt,Dt.dx*Dt.dy/pt.value),ft.area=0;lt=Tt.pop();)ft.push(lt),ft.area+=lt.area,lt.z!=null&&(bt(ft,lt.z?Dt.dx:Dt.dy,Dt,!Tt.length),ft.length=ft.area=0);wt.forEach(Je)}}function at(pt,wt){for(var lt,Dt=pt.area,Tt=0,ft=1/0,Vt=-1,Gt=pt.length;++VtTt&&(Tt=lt));return wt*=wt,(Dt*=Dt)?Math.max(wt*Tt*Ne/Dt,Dt/(wt*ft*Ne)):1/0}function bt(pt,wt,lt,Dt){var Tt,ft=-1,Vt=pt.length,Gt=lt.x,rn=lt.y,nn=wt?oe(pt.area/wt):0;if(wt==lt.dx){for((Dt||nn>lt.dy)&&(nn=lt.dy);++ftlt.dx)&&(nn=lt.dx);++ft1);return $+J*fe*Math.sqrt(-2*Math.log(ve)/ve)}},logNormal:function(){var $=c.random.normal.apply(c,arguments);return function(){return Math.exp($())}},bates:function($){var J=c.random.irwinHall($);return function(){return J()/$}},irwinHall:function($){return function(){for(var J=0,oe=0;oe<$;oe++)J+=Math.random();return J}}},c.scale={};var cK={floor:q,ceil:q};function dK($,J,oe,fe){var me=[],ve=[],De=0,Ee=Math.min($.length,J.length)-1;for($[Ee]<$[0]&&($=$.slice().reverse(),J=J.slice().reverse());++De<=Ee;)me.push(oe($[De-1],$[De])),ve.push(fe(J[De-1],J[De]));return function(Ne){var je=c.bisect($,Ne,1,Ee)-1;return ve[je](me[je](Ne))}}function SO($,J,oe,fe){var me,ve;function De(){var Ne=Math.min($.length,J.length)>2?dK:uK,je=fe?IX:LX;return me=Ne($,J,je,oe),ve=Ne(J,$,je,uu),Ee}function Ee(Ne){return me(Ne)}return Ee.invert=function(Ne){return ve(Ne)},Ee.domain=function(Ne){return arguments.length?($=Ne.map(Number),De()):$},Ee.range=function(Ne){return arguments.length?(J=Ne,De()):J},Ee.rangeRound=function(Ne){return Ee.range(Ne).interpolate(iO)},Ee.clamp=function(Ne){return arguments.length?(fe=Ne,De()):fe},Ee.interpolate=function(Ne){return arguments.length?(oe=Ne,De()):oe},Ee.ticks=function(Ne){return E2($,Ne)},Ee.tickFormat=function(Ne,je){return d3_scale_linearTickFormat($,Ne,je)},Ee.nice=function(Ne){return MO($,Ne),De()},Ee.copy=function(){return SO($,J,oe,fe)},De()}function CO($,J){return c.rebind($,J,"range","rangeRound","interpolate","clamp")}function MO($,J){return A2($,kO(D2($,J)[2])),A2($,kO(D2($,J)[2])),$}function D2($,J){J==null&&(J=10);var oe=Sg($),fe=oe[1]-oe[0],me=Math.pow(10,Math.floor(Math.log(fe/J)/Math.LN10)),ve=J/fe*me;return ve<=.15?me*=10:ve<=.35?me*=5:ve<=.75&&(me*=2),oe[0]=Math.ceil(oe[0]/me)*me,oe[1]=Math.floor(oe[1]/me)*me+.5*me,oe[2]=me,oe}function E2($,J){return c.range.apply(c,D2($,J))}function PO($,J,oe,fe){function me(Ee){return(oe?Math.log(Ee<0?0:Ee):-Math.log(Ee>0?0:-Ee))/Math.log(J)}function ve(Ee){return oe?Math.pow(J,Ee):-Math.pow(J,-Ee)}function De(Ee){return $(me(Ee))}return De.invert=function(Ee){return ve($.invert(Ee))},De.domain=function(Ee){return arguments.length?(oe=Ee[0]>=0,$.domain((fe=Ee.map(Number)).map(me)),De):fe},De.base=function(Ee){return arguments.length?(J=+Ee,$.domain(fe.map(me)),De):J},De.nice=function(){var Ee=A2(fe.map(me),oe?Math:fK);return $.domain(Ee),fe=Ee.map(ve),De},De.ticks=function(){var Ee=Sg(fe),Ne=[],je=Ee[0],Ve=Ee[1],Je=Math.floor(me(je)),at=Math.ceil(me(Ve)),bt=J%1?2:J;if(isFinite(at-Je)){if(oe){for(;Je0;Pt--)Ne.push(ve(Je)*Pt);for(Je=0;Ne[Je]Ve;at--);Ne=Ne.slice(Je,at)}return Ne},De.copy=function(){return PO($.copy(),J,oe,fe)},CO(De,$)}c.scale.linear=function(){return SO([0,1],[0,1],uu,!1)},c.scale.log=function(){return PO(c.scale.linear().domain([0,1]),10,!0,[1,10])};var fK={floor:function($){return-Math.ceil(-$)},ceil:function($){return-Math.floor(-$)}};function OO($,J,oe){var fe=Mg(J),me=Mg(1/J);function ve(De){return $(fe(De))}return ve.invert=function(De){return me($.invert(De))},ve.domain=function(De){return arguments.length?($.domain((oe=De.map(Number)).map(fe)),ve):oe},ve.ticks=function(De){return E2(oe,De)},ve.tickFormat=function(De,Ee){return d3_scale_linearTickFormat(oe,De,Ee)},ve.nice=function(De){return ve.domain(MO(oe,De))},ve.exponent=function(De){return arguments.length?(fe=Mg(J=De),me=Mg(1/J),$.domain(oe.map(fe)),ve):J},ve.copy=function(){return OO($.copy(),J,oe)},CO(ve,$)}function Mg($){return function(J){return J<0?-Math.pow(-J,$):Math.pow(J,$)}}function AO($,J){var oe,fe,me;function ve(Ee){return fe[((oe.get(Ee)||(J.t==="range"?oe.set(Ee,$.push(Ee)):NaN))-1)%fe.length]}function De(Ee,Ne){return c.range($.length).map(function(je){return Ee+Ne*je})}return ve.domain=function(Ee){if(!arguments.length)return $;$=[],oe=new D;for(var Ne,je=-1,Ve=Ee.length;++je0?oe[ve-1]:$[0],veat?0:1;if(Ve=Ze)return Ne(Ve,Pt)+(je?Ne(je,1-Pt):"")+"Z";var pt,wt,lt,Dt,Tt,ft,Vt,Gt,rn,nn,Sn,Pn,In=0,On=0,Gn=[];if((Dt=(+De.apply(this,arguments)||0)/2)&&(lt=fe===Pg?Math.sqrt(je*je+Ve*Ve):+fe.apply(this,arguments),Pt||(On*=-1),Ve&&(On=Ct(lt/Ve*Math.sin(Dt))),je&&(In=Ct(lt/je*Math.sin(Dt)))),Ve){Tt=Ve*Math.cos(Je+On),ft=Ve*Math.sin(Je+On),Vt=Ve*Math.cos(at-On),Gt=Ve*Math.sin(at-On);var nr=Math.abs(at-Je-2*On)<=it?0:1;if(On&&Og(Tt,ft,Vt,Gt)===Pt^nr){var Dr=(Je+at)/2;Tt=Ve*Math.cos(Dr),ft=Ve*Math.sin(Dr),Vt=Gt=null}}else Tt=ft=0;if(je){rn=je*Math.cos(at-In),nn=je*Math.sin(at-In),Sn=je*Math.cos(Je+In),Pn=je*Math.sin(Je+In);var an=Math.abs(Je-at+2*In)<=it?0:1;if(In&&Og(rn,nn,Sn,Pn)===1-Pt^an){var wn=(Je+at)/2;rn=je*Math.cos(wn),nn=je*Math.sin(wn),Sn=Pn=null}}else rn=nn=0;if(bt>ze&&(pt=Math.min(Math.abs(Ve-je)/2,+oe.apply(this,arguments)))>.001){wt=je0?0:1}function Ag($,J,oe,fe,me){var ve=$[0]-J[0],De=$[1]-J[1],Ee=(me?fe:-fe)/Math.sqrt(ve*ve+De*De),Ne=Ee*De,je=-Ee*ve,Ve=$[0]+Ne,Je=$[1]+je,at=J[0]+Ne,bt=J[1]+je,Pt=(Ve+at)/2,pt=(Je+bt)/2,wt=at-Ve,lt=bt-Je,Dt=wt*wt+lt*lt,Tt=oe-fe,ft=Ve*bt-at*Je,Vt=(lt<0?-1:1)*Math.sqrt(Math.max(0,Tt*Tt*Dt-ft*ft)),Gt=(ft*lt-wt*Vt)/Dt,rn=(-ft*wt-lt*Vt)/Dt,nn=(ft*lt+wt*Vt)/Dt,Sn=(-ft*wt+lt*Vt)/Dt,Pn=Gt-Pt,In=rn-pt,On=nn-Pt,Gn=Sn-pt;return Pn*Pn+In*In>On*On+Gn*Gn&&(Gt=nn,rn=Sn),[[Gt-Ne,rn-je],[Gt*oe/Tt,rn*oe/Tt]]}function NO(){return!0}function FO($){var J=Bn,oe=En,fe=NO,me=Ei,ve=me.key,De=.7;function Ee(Ne){var je,Ve=[],Je=[],at=-1,bt=Ne.length,Pt=Ht(J),pt=Ht(oe);function wt(){Ve.push("M",me($(Je),De))}for(;++at1&&me.push("H",fe[0]),me.join("")},"step-before":L2,"step-after":I2,basis:zO,"basis-open":function($){if($.length<4)return Ei($);for(var J,oe=[],fe=-1,me=$.length,ve=[0],De=[0];++fe<3;)J=$[fe],ve.push(J[0]),De.push(J[1]);for(oe.push(li(gs,ve)+","+li(gs,De)),--fe;++fe9&&(ve=3*oe/Math.sqrt(ve),Ee[Ne]=ve*fe,Ee[Ne+1]=ve*me);for(Ne=-1;++Ne<=je;)ve=(J[Math.min(je,Ne+1)][0]-J[Math.max(0,Ne-1)][0])/(6*(1+Ee[Ne]*Ee[Ne])),De.push([ve||0,Ee[Ne]*ve||0]);return De}($))}});function Ei($){return $.length>1?$.join("L"):$+"Z"}function jO($){return $.join("L")+"Z"}function L2($){for(var J=0,oe=$.length,fe=$[0],me=[fe[0],",",fe[1]];++J1){Ee=J[1],ve=$[Ne],Ne++,fe+="C"+(me[0]+De[0])+","+(me[1]+De[1])+","+(ve[0]-Ee[0])+","+(ve[1]-Ee[1])+","+ve[0]+","+ve[1];for(var je=2;jeit)+",1 "+Ve}function Ne(je,Ve,Je,at){return"Q 0,0 "+at}return ve.radius=function(je){return arguments.length?(oe=Ht(je),ve):oe},ve.source=function(je){return arguments.length?($=Ht(je),ve):$},ve.target=function(je){return arguments.length?(J=Ht(je),ve):J},ve.startAngle=function(je){return arguments.length?(fe=Ht(je),ve):fe},ve.endAngle=function(je){return arguments.length?(me=Ht(je),ve):me},ve},c.svg.diagonal=function(){var $=HO,J=VO,oe=GO;function fe(me,ve){var De=$.call(this,me,ve),Ee=J.call(this,me,ve),Ne=(De.y+Ee.y)/2,je=[De,{x:De.x,y:Ne},{x:Ee.x,y:Ne},Ee];return"M"+(je=je.map(oe))[0]+"C"+je[1]+" "+je[2]+" "+je[3]}return fe.source=function(me){return arguments.length?($=Ht(me),fe):$},fe.target=function(me){return arguments.length?(J=Ht(me),fe):J},fe.projection=function(me){return arguments.length?(oe=me,fe):oe},fe},c.svg.diagonal.radial=function(){var $=c.svg.diagonal(),J=GO,oe=$.projection;return $.projection=function(fe){return arguments.length?oe(function(me){return function(){var ve=me.apply(this,arguments),De=ve[0],Ee=ve[1]-ut;return[De*Math.cos(Ee),De*Math.sin(Ee)]}}(J=fe)):J},$},c.svg.symbol=function(){var $=TK,J=_K;function oe(fe,me){return(XO.get($.call(this,fe,me))||YO)(J.call(this,fe,me))}return oe.type=function(fe){return arguments.length?($=Ht(fe),oe):$},oe.size=function(fe){return arguments.length?(J=Ht(fe),oe):J},oe};var XO=c.map({circle:YO,cross:function($){var J=Math.sqrt($/5)/2;return"M"+-3*J+","+-J+"H"+-J+"V"+-3*J+"H"+J+"V"+-J+"H"+3*J+"V"+J+"H"+J+"V"+3*J+"H"+-J+"V"+J+"H"+-3*J+"Z"},diamond:function($){var J=Math.sqrt($/(2*KO)),oe=J*KO;return"M0,"+-J+"L"+oe+",0 0,"+J+" "+-oe+",0Z"},square:function($){var J=Math.sqrt($)/2;return"M"+-J+","+-J+"L"+J+","+-J+" "+J+","+J+" "+-J+","+J+"Z"},"triangle-down":function($){var J=Math.sqrt($/Eg),oe=J*Eg/2;return"M0,"+oe+"L"+J+","+-oe+" "+-J+","+-oe+"Z"},"triangle-up":function($){var J=Math.sqrt($/Eg),oe=J*Eg/2;return"M0,"+-oe+"L"+J+","+oe+" "+-J+","+oe+"Z"}});c.svg.symbolTypes=XO.keys();var Eg=Math.sqrt(3),KO=Math.tan(30*ht);se.transition=function($){for(var J,oe,fe=cu||++QO,me=z2($),ve=[],De=Lg||{time:Date.now(),ease:PX,delay:0,duration:250},Ee=-1,Ne=this.length;++Ee0;)je[--lt].call($,wt);if(pt>=1)return Je.event&&Je.event.end.call($,$.__data__,J),--Ve.count?delete Ve[fe]:delete $[oe],1}Je||(ve=me.time,De=un(function(Pt){var pt=Je.delay;if(De.t=pt+ve,pt<=Pt)return at(Pt-pt);De.c=at},0,ve),Je=Ve[fe]={tween:new D,time:ve,timer:De,delay:me.delay,duration:me.duration,ease:me.ease,index:J},me=null,++Ve.count)}ya.call=se.call,ya.empty=se.empty,ya.node=se.node,ya.size=se.size,c.transition=function($,J){return $&&$.transition?cu?$.transition(J):$:c.selection().transition($)},c.transition.prototype=ya,ya.select=function($){var J,oe,fe,me=this.id,ve=this.namespace,De=[];$=he($);for(var Ee=-1,Ne=this.length;++Eerect,.s>rect").attr("width",ve[1]-ve[0])}function bt(pt){pt.select(".extent").attr("y",De[0]),pt.selectAll(".extent,.e>rect,.w>rect").attr("height",De[1]-De[0])}function Pt(){var pt,wt,lt=this,Dt=c.select(c.event.target),Tt=oe.of(lt,arguments),ft=c.select(lt),Vt=Dt.datum(),Gt=!/^(n|s)$/.test(Vt)&&fe,rn=!/^(e|w)$/.test(Vt)&&me,nn=Dt.classed("extent"),Sn=st(lt),Pn=c.mouse(lt),In=c.select(g(lt)).on("keydown.brush",function(){c.event.keyCode==32&&(nn||(pt=null,Pn[0]-=ve[1],Pn[1]-=De[1],nn=2),ee())}).on("keyup.brush",function(){c.event.keyCode==32&&nn==2&&(Pn[0]+=ve[1],Pn[1]+=De[1],nn=0,ee())});if(c.event.changedTouches?In.on("touchmove.brush",nr).on("touchend.brush",an):In.on("mousemove.brush",nr).on("mouseup.brush",an),ft.interrupt().selectAll("*").interrupt(),nn)Pn[0]=ve[0]-Pn[0],Pn[1]=De[0]-Pn[1];else if(Vt){var On=+/w$/.test(Vt),Gn=+/^n/.test(Vt);wt=[ve[1-On]-Pn[0],De[1-Gn]-Pn[1]],Pn[0]=ve[On],Pn[1]=De[Gn]}else c.event.altKey&&(pt=Pn.slice());function nr(){var wn=c.mouse(lt),qn=!1;wt&&(wn[0]+=wt[0],wn[1]+=wt[1]),nn||(c.event.altKey?(pt||(pt=[(ve[0]+ve[1])/2,(De[0]+De[1])/2]),Pn[0]=ve[+(wn[0]24?(isFinite(J)&&(clearTimeout(en),en=setTimeout(tn,J)),gn=0):(gn=1,kn(tn))}function Fn(){for(var $=Date.now(),J=mn;J;)$>=J.t&&J.c($-J.t)&&(J.c=null),J=J.n;return $}function Rn(){for(var $,J=mn,oe=1/0;J;)J.c?(J.t1&&(J=$[ve[De-2]],oe=$[ve[De-1]],fe=$[Ee],(oe[0]-J[0])*(fe[1]-J[1])-(oe[1]-J[1])*(fe[0]-J[0])<=0);)--De;ve[De++]=Ee}return ve.slice(0,De)}function gr($,J){return $[0]-J[0]||$[1]-J[1]}c.timer=function(){un.apply(this,arguments)},c.timer.flush=function(){Fn(),Rn()},c.round=function($,J){return J?Math.round($*(J=Math.pow(10,J)))/J:Math.round($)},c.geom={},c.geom.hull=function($){var J=Bn,oe=En;if(arguments.length)return fe($);function fe(me){if(me.length<3)return[];var ve,De=Ht(J),Ee=Ht(oe),Ne=me.length,je=[],Ve=[];for(ve=0;ve=0;--ve)pt.push(me[je[Je[ve]][2]]);for(ve=+bt;veze)Ee=Ee.L;else{if(!((me=ve-Wr(Ee,De))>ze)){fe>-ze?(J=Ee.P,oe=Ee):me>-ze?(J=Ee,oe=Ee.N):J=oe=Ee;break}if(!Ee.R){J=Ee;break}Ee=Ee.R}var Ne=Un($);if(Gr.insert(J,Ne),J||oe){if(J===oe)return Ln(J),oe=Un(J.site),Gr.insert(Ne,oe),Ne.edge=oe.edge=va(J.site,Ne.site),Ya(J),void Ya(oe);if(oe){Ln(J),Ln(oe);var je=J.site,Ve=je.x,Je=je.y,at=$.x-Ve,bt=$.y-Je,Pt=oe.site,pt=Pt.x-Ve,wt=Pt.y-Je,lt=2*(at*wt-bt*pt),Dt=at*at+bt*bt,Tt=pt*pt+wt*wt,ft={x:(wt*Dt-bt*Tt)/lt+Ve,y:(at*Tt-pt*Dt)/lt+Je};hs(oe.edge,je,Pt,ft),Ne.edge=va(je,$,null,ft),oe.edge=va($,Pt,null,ft),Ya(J),Ya(oe)}else Ne.edge=va(J.site,Ne.site)}}function la($,J){var oe=$.site,fe=oe.x,me=oe.y,ve=me-J;if(!ve)return fe;var De=$.P;if(!De)return-1/0;var Ee=(oe=De.site).x,Ne=oe.y,je=Ne-J;if(!je)return Ee;var Ve=Ee-fe,Je=1/ve-1/je,at=Ve/je;return Je?(-at+Math.sqrt(at*at-2*Je*(Ve*Ve/(-2*je)-Ne+je/2+me-ve/2)))/Je+fe:(fe+Ee)/2}function Wr($,J){var oe=$.N;if(oe)return la(oe,J);var fe=$.site;return fe.y===J?fe.x:1/0}function Yr($){this.site=$,this.edges=[]}function ii($,J){return J.angle-$.angle}function ko(){Zi(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ya($){var J=$.P,oe=$.N;if(J&&oe){var fe=J.site,me=$.site,ve=oe.site;if(fe!==ve){var De=me.x,Ee=me.y,Ne=fe.x-De,je=fe.y-Ee,Ve=ve.x-De,Je=2*(Ne*(wt=ve.y-Ee)-je*Ve);if(!(Je>=-tt)){var at=Ne*Ne+je*je,bt=Ve*Ve+wt*wt,Pt=(wt*at-je*bt)/Je,pt=(Ne*bt-Ve*at)/Je,wt=pt+Ee,lt=Xn.pop()||new ko;lt.arc=$,lt.site=me,lt.x=Pt+De,lt.y=wt+Math.sqrt(Pt*Pt+pt*pt),lt.cy=wt,$.circle=lt;for(var Dt=null,Tt=jn._;Tt;)if(lt.y=Ee)return;if(at>Pt){if(ve){if(ve.y>=je)return}else ve={x:wt,y:Ne};oe={x:wt,y:je}}else{if(ve){if(ve.y1)if(at>Pt){if(ve){if(ve.y>=je)return}else ve={x:(Ne-me)/fe,y:Ne};oe={x:(je-me)/fe,y:je}}else{if(ve){if(ve.y=Ee)return}else ve={x:De,y:fe*De+me};oe={x:Ee,y:fe*Ee+me}}else{if(ve){if(ve.x0)){if(lt/=nn,nn<0){if(lt0){if(lt>rn)return;lt>Gt&&(Gt=lt)}if(lt=Je-ft,nn||!(lt<0)){if(lt/=nn,nn<0){if(lt>rn)return;lt>Gt&&(Gt=lt)}else if(nn>0){if(lt0)){if(lt/=Sn,Sn<0){if(lt0){if(lt>rn)return;lt>Gt&&(Gt=lt)}if(lt=at-Vt,Sn||!(lt<0)){if(lt/=Sn,Sn<0){if(lt>rn)return;lt>Gt&&(Gt=lt)}else if(Sn>0){if(lt0&&(wt.a={x:ft+Gt*nn,y:Vt+Gt*Sn}),rn<1&&(wt.b={x:ft+rn*nn,y:Vt+rn*Sn}),wt}}}}}),pt=bt.length;pt--;)(!ta(Ne=bt[pt],Ee)||!Pt(Ne)||M(Ne.a.x-Ne.b.x)ze||M(Je-je)>ze)&&(Pt.splice(bt,0,new ms((nn=at.site,Sn=lt,Pn=M(Ve-Dt)ze?{x:Dt,y:M(Ne-Dt)ze?{x:M(je-Vt)ze?{x:Tt,y:M(Ne-Tt)ze?{x:M(je-ft)=Ve&<.x<=at&<.y>=Je&<.y<=bt?[[Ve,bt],[at,bt],[at,Je],[Ve,Je]]:[]).point=Ne[pt]}),je}function Ee(Ne){return Ne.map(function(je,Ve){return{x:Math.round(fe(je,Ve)/ze)*ze,y:Math.round(me(je,Ve)/ze)*ze,i:Ve}})}return De.links=function(Ne){return Pc(Ee(Ne)).edges.filter(function(je){return je.l&&je.r}).map(function(je){return{source:Ne[je.l.i],target:Ne[je.r.i]}})},De.triangles=function(Ne){var je=[];return Pc(Ee(Ne)).cells.forEach(function(Ve,Je){for(var at,bt,Pt,pt,wt=Ve.site,lt=Ve.edges.sort(ii),Dt=-1,Tt=lt.length,ft=lt[Tt-1].edge,Vt=ft.l===wt?ft.r:ft.l;++Dtve&&(me=J.slice(ve,me),Ee[De]?Ee[De]+=me:Ee[++De]=me),(oe=oe[0])===(fe=fe[0])?Ee[De]?Ee[De]+=fe:Ee[++De]=fe:(Ee[++De]=null,Ne.push({i:De,x:Ol(oe,fe)})),ve=_2.lastIndex;return velt&&(lt=Ve.x),Ve.y>Dt&&(Dt=Ve.y),Je.push(Ve.x),at.push(Ve.y);else for(bt=0;btlt&&(lt=Vt),Gt>Dt&&(Dt=Gt),Je.push(Vt),at.push(Gt)}var rn=lt-pt,nn=Dt-wt;function Sn(On,Gn,nr,Dr,an,wn,qn,Hn){if(!isNaN(nr)&&!isNaN(Dr))if(On.leaf){var Jn=On.x,Mr=On.y;if(Jn!=null)if(M(Jn-nr)+M(Mr-Dr)<.01)Pn(On,Gn,nr,Dr,an,wn,qn,Hn);else{var sa=On.point;On.x=On.y=On.point=null,Pn(On,sa,Jn,Mr,an,wn,qn,Hn),Pn(On,Gn,nr,Dr,an,wn,qn,Hn)}else On.x=nr,On.y=Dr,On.point=Gn}else Pn(On,Gn,nr,Dr,an,wn,qn,Hn)}function Pn(On,Gn,nr,Dr,an,wn,qn,Hn){var Jn=.5*(an+qn),Mr=.5*(wn+Hn),sa=nr>=Jn,Xr=Dr>=Mr,Sa=Xr<<1|sa;On.leaf=!1,sa?an=Jn:qn=Jn,Xr?wn=Mr:Hn=Mr,Sn(On=On.nodes[Sa]||(On.nodes[Sa]={leaf:!0,nodes:[],point:null,x:null,y:null}),Gn,nr,Dr,an,wn,qn,Hn)}rn>nn?Dt=wt+rn:lt=pt+nn;var In={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(On){Sn(In,On,+Tt(On,++bt),+ft(On,bt),pt,wt,lt,Dt)}};if(In.visit=function(On){$f(On,In,pt,wt,lt,Dt)},In.find=function(On){return function(Gn,nr,Dr,an,wn,qn,Hn){var Jn,Mr=1/0;return function sa(Xr,Sa,ua,Ca,ao){if(!(Sa>qn||ua>Hn||Ca=So)<<1|nr>=mo,Al=si+4;si=0&&!(oe=c.interpolators[fe]($,J)););return oe}function Tg($,J){var oe,fe=[],me=[],ve=$.length,De=J.length,Ee=Math.min($.length,J.length);for(oe=0;oe=1)return 1;var J=$*$,oe=J*$;return 4*($<.5?oe:3*($-J)+oe-.75)}function PX($){return 1-Math.cos($*ut)}function OX($){return Math.pow(2,10*($-1))}function AX($){return 1-Math.sqrt(1-$*$)}function DX($){return $<.36363636363636365?7.5625*$*$:$<.7272727272727273?7.5625*($-=.5454545454545454)*$+.75:$<.9090909090909091?7.5625*($-=.8181818181818182)*$+.9375:7.5625*($-=.9545454545454546)*$+.984375}function iO($,J){return J-=$,function(oe){return Math.round($+J*oe)}}function lO($){var J,oe,fe,me=[$.a,$.b],ve=[$.c,$.d],De=uO(me),Ee=sO(me,ve),Ne=uO(((J=ve)[0]+=(fe=-Ee)*(oe=me)[0],J[1]+=fe*oe[1],J))||0;me[0]*ve[1]=0?$.slice(0,oe):$,me=oe>=0?$.slice(oe+1):"in";return fe=TX.get(fe)||rO,me=kX.get(me)||q,J=me(fe.apply(null,d.call(arguments,1))),function(ve){return ve<=0?0:ve>=1?1:J(ve)}},c.interpolateHcl=function($,J){$=c.hcl($),J=c.hcl(J);var oe=$.h,fe=$.c,me=$.l,ve=J.h-oe,De=J.c-fe,Ee=J.l-me;return isNaN(De)&&(De=0,fe=isNaN(fe)?J.c:fe),isNaN(ve)?(ve=0,oe=isNaN(oe)?J.h:oe):ve>180?ve-=360:ve<-180&&(ve+=360),function(Ne){return yt(oe+ve*Ne,fe+De*Ne,me+Ee*Ne)+""}},c.interpolateHsl=function($,J){$=c.hsl($),J=c.hsl(J);var oe=$.h,fe=$.s,me=$.l,ve=J.h-oe,De=J.s-fe,Ee=J.l-me;return isNaN(De)&&(De=0,fe=isNaN(fe)?J.s:fe),isNaN(ve)?(ve=0,oe=isNaN(oe)?J.h:oe):ve>180?ve-=360:ve<-180&&(ve+=360),function(Ne){return Ye(oe+ve*Ne,fe+De*Ne,me+Ee*Ne)+""}},c.interpolateLab=function($,J){$=c.lab($),J=c.lab(J);var oe=$.l,fe=$.a,me=$.b,ve=J.l-oe,De=J.a-fe,Ee=J.b-me;return function(Ne){return gt(oe+ve*Ne,fe+De*Ne,me+Ee*Ne)+""}},c.interpolateRound=iO,c.transform=function($){var J=p.createElementNS(c.ns.prefix.svg,"g");return(c.transform=function(oe){if(oe!=null){J.setAttribute("transform",oe);var fe=J.transform.baseVal.consolidate()}return new lO(fe?fe.matrix:EX)})($)},lO.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var EX={a:1,b:0,c:0,d:1,e:0,f:0};function Oc($){return $.length?$.pop()+",":""}function cO($,J){var oe=[],fe=[];return $=c.transform($),J=c.transform(J),function(me,ve,De,Ee){if(me[0]!==ve[0]||me[1]!==ve[1]){var Ne=De.push("translate(",null,",",null,")");Ee.push({i:Ne-4,x:Ol(me[0],ve[0])},{i:Ne-2,x:Ol(me[1],ve[1])})}else(ve[0]||ve[1])&&De.push("translate("+ve+")")}($.translate,J.translate,oe,fe),function(me,ve,De,Ee){me!==ve?(me-ve>180?ve+=360:ve-me>180&&(me+=360),Ee.push({i:De.push(Oc(De)+"rotate(",null,")")-2,x:Ol(me,ve)})):ve&&De.push(Oc(De)+"rotate("+ve+")")}($.rotate,J.rotate,oe,fe),function(me,ve,De,Ee){me!==ve?Ee.push({i:De.push(Oc(De)+"skewX(",null,")")-2,x:Ol(me,ve)}):ve&&De.push(Oc(De)+"skewX("+ve+")")}($.skew,J.skew,oe,fe),function(me,ve,De,Ee){if(me[0]!==ve[0]||me[1]!==ve[1]){var Ne=De.push(Oc(De)+"scale(",null,",",null,")");Ee.push({i:Ne-4,x:Ol(me[0],ve[0])},{i:Ne-2,x:Ol(me[1],ve[1])})}else ve[0]===1&&ve[1]===1||De.push(Oc(De)+"scale("+ve+")")}($.scale,J.scale,oe,fe),$=J=null,function(me){for(var ve,De=-1,Ee=fe.length;++De0?oe=ft:($.c=null,$.t=NaN,$=null,Ee.end({type:"end",alpha:oe=0})):ft>0&&(Ee.start({type:"start",alpha:oe=ft}),$=un(De.tick)),De):oe},De.start=function(){var ft,Vt,Gt,rn=wt.length,nn=lt.length,Sn=Ne[0],Pn=Ne[1];for(ft=0;ft=0;)oe.push(me[fe])}function Qi($,J){for(var oe=[$],fe=[];($=oe.pop())!=null;)if(fe.push($),(ve=$.children)&&(me=ve.length))for(var me,ve,De=-1;++De=0;)De.push(Ve=je[Ne]),Ve.parent=ve,Ve.depth=ve.depth+1;oe&&(ve.value=0),ve.children=je}else oe&&(ve.value=+oe.call(fe,ve,ve.depth)||0),delete ve.children;return Qi(me,function(Je){var at,bt;$&&(at=Je.children)&&at.sort($),oe&&(bt=Je.parent)&&(bt.value+=Je.value)}),Ee}return fe.sort=function(me){return arguments.length?($=me,fe):$},fe.children=function(me){return arguments.length?(J=me,fe):J},fe.value=function(me){return arguments.length?(oe=me,fe):oe},fe.revalue=function(me){return oe&&(Ff(me,function(ve){ve.children&&(ve.value=0)}),Qi(me,function(ve){var De;ve.children||(ve.value=+oe.call(fe,ve,ve.depth)||0),(De=ve.parent)&&(De.value+=ve.value)})),me},fe},c.layout.partition=function(){var $=c.layout.hierarchy(),J=[1,1];function oe(ve,De,Ee,Ne){var je=ve.children;if(ve.x=De,ve.y=ve.depth*Ne,ve.dx=Ee,ve.dy=Ne,je&&(Ve=je.length)){var Ve,Je,at,bt=-1;for(Ee=ve.value?Ee/ve.value:0;++btEe&&(Ee=fe),De.push(fe)}for(oe=0;oeme&&(fe=oe,me=J);return fe}function JX($){return $.reduce(eK,0)}function eK($,J){return $+J[1]}function tK($,J){return hO($,Math.ceil(Math.log(J.length)/Math.LN2+1))}function hO($,J){for(var oe=-1,fe=+$[0],me=($[1]-fe)/J,ve=[];++oe<=J;)ve[oe]=me*oe+fe;return ve}function nK($){return[c.min($),c.max($)]}function rK($,J){return $.value-J.value}function S2($,J){var oe=$._pack_next;$._pack_next=J,J._pack_prev=$,J._pack_next=oe,oe._pack_prev=J}function mO($,J){$._pack_next=J,J._pack_prev=$}function gO($,J){var oe=J.x-$.x,fe=J.y-$.y,me=$.r+J.r;return .999*me*me>oe*oe+fe*fe}function vO($){if((J=$.children)&&(Ne=J.length)){var J,oe,fe,me,ve,De,Ee,Ne,je=1/0,Ve=-1/0,Je=1/0,at=-1/0;if(J.forEach(aK),(oe=J[0]).x=-oe.r,oe.y=0,Tt(oe),Ne>1&&((fe=J[1]).x=fe.r,fe.y=0,Tt(fe),Ne>2))for(bO(oe,fe,me=J[2]),Tt(me),S2(oe,me),oe._pack_prev=me,S2(me,fe),fe=oe._pack_next,ve=3;ve0)for(De=-1;++De=Je[0]&&Ne<=Je[1]&&((Ee=je[c.bisect(at,Ne,1,Pt)-1]).y+=pt,Ee.push(ve[De]));return je}return me.value=function(ve){return arguments.length?(J=ve,me):J},me.range=function(ve){return arguments.length?(oe=Ht(ve),me):oe},me.bins=function(ve){return arguments.length?(fe=typeof ve=="number"?function(De){return hO(De,ve)}:Ht(ve),me):fe},me.frequency=function(ve){return arguments.length?($=!!ve,me):$},me},c.layout.pack=function(){var $,J=c.layout.hierarchy().sort(rK),oe=0,fe=[1,1];function me(ve,De){var Ee=J.call(this,ve,De),Ne=Ee[0],je=fe[0],Ve=fe[1],Je=$==null?Math.sqrt:typeof $=="function"?$:function(){return $};if(Ne.x=Ne.y=0,Qi(Ne,function(bt){bt.r=+Je(bt.value)}),Qi(Ne,vO),oe){var at=oe*($?1:Math.max(2*Ne.r/je,2*Ne.r/Ve))/2;Qi(Ne,function(bt){bt.r+=at}),Qi(Ne,vO),Qi(Ne,function(bt){bt.r-=at})}return yO(Ne,je/2,Ve/2,$?1:1/Math.max(2*Ne.r/je,2*Ne.r/Ve)),Ee}return me.size=function(ve){return arguments.length?(fe=ve,me):fe},me.radius=function(ve){return arguments.length?($=ve==null||typeof ve=="function"?ve:+ve,me):$},me.padding=function(ve){return arguments.length?(oe=+ve,me):oe},Nf(me,J)},c.layout.tree=function(){var $=c.layout.hierarchy().sort(null).value(null),J=xO,oe=[1,1],fe=null;function me(Ne,je){var Ve=$.call(this,Ne,je),Je=Ve[0],at=function(Tt){for(var ft,Vt={A:null,children:[Tt]},Gt=[Vt];(ft=Gt.pop())!=null;)for(var rn,nn=ft.children,Sn=0,Pn=nn.length;SnPt.x&&(Pt=Tt),Tt.depth>pt.depth&&(pt=Tt)});var wt=J(bt,Pt)/2-bt.x,lt=oe[0]/(Pt.x+J(Pt,bt)/2+wt),Dt=oe[1]/(pt.depth||1);Ff(Je,function(Tt){Tt.x=(Tt.x+wt)*lt,Tt.y=Tt.depth*Dt})}return Ve}function ve(Ne){var je=Ne.children,Ve=Ne.parent.children,Je=Ne.i?Ve[Ne.i-1]:null;if(je.length){(function(bt){for(var Pt,pt=0,wt=0,lt=bt.children,Dt=lt.length;--Dt>=0;)(Pt=lt[Dt]).z+=pt,Pt.m+=pt,pt+=Pt.s+(wt+=Pt.c)})(Ne);var at=(je[0].z+je[je.length-1].z)/2;Je?(Ne.z=Je.z+J(Ne._,Je._),Ne.m=Ne.z-at):Ne.z=at}else Je&&(Ne.z=Je.z+J(Ne._,Je._));Ne.parent.A=function(bt,Pt,pt){if(Pt){for(var wt,lt=bt,Dt=bt,Tt=Pt,ft=lt.parent.children[0],Vt=lt.m,Gt=Dt.m,rn=Tt.m,nn=ft.m;Tt=M2(Tt),lt=C2(lt),Tt&<)ft=C2(ft),(Dt=M2(Dt)).a=bt,(wt=Tt.z+rn-lt.z-Vt+J(Tt._,lt._))>0&&(iK(lK(Tt,bt,pt),bt,wt),Vt+=wt,Gt+=wt),rn+=Tt.m,Vt+=lt.m,nn+=ft.m,Gt+=Dt.m;Tt&&!M2(Dt)&&(Dt.t=Tt,Dt.m+=rn-Gt),lt&&!C2(ft)&&(ft.t=lt,ft.m+=Vt-nn,pt=bt)}return pt}(Ne,Je,Ne.parent.A||Ve[0])}function De(Ne){Ne._.x=Ne.z+Ne.parent.m,Ne.m+=Ne.parent.m}function Ee(Ne){Ne.x*=oe[0],Ne.y=Ne.depth*oe[1]}return me.separation=function(Ne){return arguments.length?(J=Ne,me):J},me.size=function(Ne){return arguments.length?(fe=(oe=Ne)==null?Ee:null,me):fe?null:oe},me.nodeSize=function(Ne){return arguments.length?(fe=(oe=Ne)==null?null:Ee,me):fe?oe:null},Nf(me,$)},c.layout.cluster=function(){var $=c.layout.hierarchy().sort(null).value(null),J=xO,oe=[1,1],fe=!1;function me(ve,De){var Ee,Ne=$.call(this,ve,De),je=Ne[0],Ve=0;Qi(je,function(pt){var wt=pt.children;wt&&wt.length?(pt.x=function(lt){return lt.reduce(function(Dt,Tt){return Dt+Tt.x},0)/lt.length}(wt),pt.y=function(lt){return 1+c.max(lt,function(Dt){return Dt.y})}(wt)):(pt.x=Ee?Ve+=J(pt,Ee):0,pt.y=0,Ee=pt)});var Je=wO(je),at=_O(je),bt=Je.x-J(Je,at)/2,Pt=at.x+J(at,Je)/2;return Qi(je,fe?function(pt){pt.x=(pt.x-je.x)*oe[0],pt.y=(je.y-pt.y)*oe[1]}:function(pt){pt.x=(pt.x-bt)/(Pt-bt)*oe[0],pt.y=(1-(je.y?pt.y/je.y:1))*oe[1]}),Ne}return me.separation=function(ve){return arguments.length?(J=ve,me):J},me.size=function(ve){return arguments.length?(fe=(oe=ve)==null,me):fe?null:oe},me.nodeSize=function(ve){return arguments.length?(fe=(oe=ve)!=null,me):fe?oe:null},Nf(me,$)},c.layout.treemap=function(){var $,J=c.layout.hierarchy(),oe=Math.round,fe=[1,1],me=null,ve=P2,De=!1,Ee="squarify",Ne=.5*(1+Math.sqrt(5));function je(pt,wt){for(var lt,Dt,Tt=-1,ft=pt.length;++Tt0;)Vt.push(lt=Gt[Tt-1]),Vt.area+=lt.area,Ee!=="squarify"||(Dt=at(Vt,nn))<=rn?(Gt.pop(),rn=Dt):(Vt.area-=Vt.pop().area,bt(Vt,nn,ft,!1),nn=Math.min(ft.dx,ft.dy),Vt.length=Vt.area=0,rn=1/0);Vt.length&&(bt(Vt,nn,ft,!0),Vt.length=Vt.area=0),wt.forEach(Ve)}}function Je(pt){var wt=pt.children;if(wt&&wt.length){var lt,Dt=ve(pt),Tt=wt.slice(),ft=[];for(je(Tt,Dt.dx*Dt.dy/pt.value),ft.area=0;lt=Tt.pop();)ft.push(lt),ft.area+=lt.area,lt.z!=null&&(bt(ft,lt.z?Dt.dx:Dt.dy,Dt,!Tt.length),ft.length=ft.area=0);wt.forEach(Je)}}function at(pt,wt){for(var lt,Dt=pt.area,Tt=0,ft=1/0,Vt=-1,Gt=pt.length;++VtTt&&(Tt=lt));return wt*=wt,(Dt*=Dt)?Math.max(wt*Tt*Ne/Dt,Dt/(wt*ft*Ne)):1/0}function bt(pt,wt,lt,Dt){var Tt,ft=-1,Vt=pt.length,Gt=lt.x,rn=lt.y,nn=wt?oe(pt.area/wt):0;if(wt==lt.dx){for((Dt||nn>lt.dy)&&(nn=lt.dy);++ftlt.dx)&&(nn=lt.dx);++ft1);return $+J*fe*Math.sqrt(-2*Math.log(ve)/ve)}},logNormal:function(){var $=c.random.normal.apply(c,arguments);return function(){return Math.exp($())}},bates:function($){var J=c.random.irwinHall($);return function(){return J()/$}},irwinHall:function($){return function(){for(var J=0,oe=0;oe<$;oe++)J+=Math.random();return J}}},c.scale={};var uK={floor:q,ceil:q};function cK($,J,oe,fe){var me=[],ve=[],De=0,Ee=Math.min($.length,J.length)-1;for($[Ee]<$[0]&&($=$.slice().reverse(),J=J.slice().reverse());++De<=Ee;)me.push(oe($[De-1],$[De])),ve.push(fe(J[De-1],J[De]));return function(Ne){var je=c.bisect($,Ne,1,Ee)-1;return ve[je](me[je](Ne))}}function SO($,J,oe,fe){var me,ve;function De(){var Ne=Math.min($.length,J.length)>2?cK:sK,je=fe?LX:RX;return me=Ne($,J,je,oe),ve=Ne(J,$,je,uu),Ee}function Ee(Ne){return me(Ne)}return Ee.invert=function(Ne){return ve(Ne)},Ee.domain=function(Ne){return arguments.length?($=Ne.map(Number),De()):$},Ee.range=function(Ne){return arguments.length?(J=Ne,De()):J},Ee.rangeRound=function(Ne){return Ee.range(Ne).interpolate(iO)},Ee.clamp=function(Ne){return arguments.length?(fe=Ne,De()):fe},Ee.interpolate=function(Ne){return arguments.length?(oe=Ne,De()):oe},Ee.ticks=function(Ne){return D2($,Ne)},Ee.tickFormat=function(Ne,je){return d3_scale_linearTickFormat($,Ne,je)},Ee.nice=function(Ne){return MO($,Ne),De()},Ee.copy=function(){return SO($,J,oe,fe)},De()}function CO($,J){return c.rebind($,J,"range","rangeRound","interpolate","clamp")}function MO($,J){return O2($,kO(A2($,J)[2])),O2($,kO(A2($,J)[2])),$}function A2($,J){J==null&&(J=10);var oe=kg($),fe=oe[1]-oe[0],me=Math.pow(10,Math.floor(Math.log(fe/J)/Math.LN10)),ve=J/fe*me;return ve<=.15?me*=10:ve<=.35?me*=5:ve<=.75&&(me*=2),oe[0]=Math.ceil(oe[0]/me)*me,oe[1]=Math.floor(oe[1]/me)*me+.5*me,oe[2]=me,oe}function D2($,J){return c.range.apply(c,A2($,J))}function PO($,J,oe,fe){function me(Ee){return(oe?Math.log(Ee<0?0:Ee):-Math.log(Ee>0?0:-Ee))/Math.log(J)}function ve(Ee){return oe?Math.pow(J,Ee):-Math.pow(J,-Ee)}function De(Ee){return $(me(Ee))}return De.invert=function(Ee){return ve($.invert(Ee))},De.domain=function(Ee){return arguments.length?(oe=Ee[0]>=0,$.domain((fe=Ee.map(Number)).map(me)),De):fe},De.base=function(Ee){return arguments.length?(J=+Ee,$.domain(fe.map(me)),De):J},De.nice=function(){var Ee=O2(fe.map(me),oe?Math:dK);return $.domain(Ee),fe=Ee.map(ve),De},De.ticks=function(){var Ee=kg(fe),Ne=[],je=Ee[0],Ve=Ee[1],Je=Math.floor(me(je)),at=Math.ceil(me(Ve)),bt=J%1?2:J;if(isFinite(at-Je)){if(oe){for(;Je0;Pt--)Ne.push(ve(Je)*Pt);for(Je=0;Ne[Je]Ve;at--);Ne=Ne.slice(Je,at)}return Ne},De.copy=function(){return PO($.copy(),J,oe,fe)},CO(De,$)}c.scale.linear=function(){return SO([0,1],[0,1],uu,!1)},c.scale.log=function(){return PO(c.scale.linear().domain([0,1]),10,!0,[1,10])};var dK={floor:function($){return-Math.ceil(-$)},ceil:function($){return-Math.floor(-$)}};function OO($,J,oe){var fe=Cg(J),me=Cg(1/J);function ve(De){return $(fe(De))}return ve.invert=function(De){return me($.invert(De))},ve.domain=function(De){return arguments.length?($.domain((oe=De.map(Number)).map(fe)),ve):oe},ve.ticks=function(De){return D2(oe,De)},ve.tickFormat=function(De,Ee){return d3_scale_linearTickFormat(oe,De,Ee)},ve.nice=function(De){return ve.domain(MO(oe,De))},ve.exponent=function(De){return arguments.length?(fe=Cg(J=De),me=Cg(1/J),$.domain(oe.map(fe)),ve):J},ve.copy=function(){return OO($.copy(),J,oe)},CO(ve,$)}function Cg($){return function(J){return J<0?-Math.pow(-J,$):Math.pow(J,$)}}function AO($,J){var oe,fe,me;function ve(Ee){return fe[((oe.get(Ee)||(J.t==="range"?oe.set(Ee,$.push(Ee)):NaN))-1)%fe.length]}function De(Ee,Ne){return c.range($.length).map(function(je){return Ee+Ne*je})}return ve.domain=function(Ee){if(!arguments.length)return $;$=[],oe=new D;for(var Ne,je=-1,Ve=Ee.length;++je0?oe[ve-1]:$[0],veat?0:1;if(Ve=Ze)return Ne(Ve,Pt)+(je?Ne(je,1-Pt):"")+"Z";var pt,wt,lt,Dt,Tt,ft,Vt,Gt,rn,nn,Sn,Pn,In=0,On=0,Gn=[];if((Dt=(+De.apply(this,arguments)||0)/2)&&(lt=fe===Mg?Math.sqrt(je*je+Ve*Ve):+fe.apply(this,arguments),Pt||(On*=-1),Ve&&(On=Ct(lt/Ve*Math.sin(Dt))),je&&(In=Ct(lt/je*Math.sin(Dt)))),Ve){Tt=Ve*Math.cos(Je+On),ft=Ve*Math.sin(Je+On),Vt=Ve*Math.cos(at-On),Gt=Ve*Math.sin(at-On);var nr=Math.abs(at-Je-2*On)<=it?0:1;if(On&&Pg(Tt,ft,Vt,Gt)===Pt^nr){var Dr=(Je+at)/2;Tt=Ve*Math.cos(Dr),ft=Ve*Math.sin(Dr),Vt=Gt=null}}else Tt=ft=0;if(je){rn=je*Math.cos(at-In),nn=je*Math.sin(at-In),Sn=je*Math.cos(Je+In),Pn=je*Math.sin(Je+In);var an=Math.abs(Je-at+2*In)<=it?0:1;if(In&&Pg(rn,nn,Sn,Pn)===1-Pt^an){var wn=(Je+at)/2;rn=je*Math.cos(wn),nn=je*Math.sin(wn),Sn=Pn=null}}else rn=nn=0;if(bt>ze&&(pt=Math.min(Math.abs(Ve-je)/2,+oe.apply(this,arguments)))>.001){wt=je0?0:1}function Og($,J,oe,fe,me){var ve=$[0]-J[0],De=$[1]-J[1],Ee=(me?fe:-fe)/Math.sqrt(ve*ve+De*De),Ne=Ee*De,je=-Ee*ve,Ve=$[0]+Ne,Je=$[1]+je,at=J[0]+Ne,bt=J[1]+je,Pt=(Ve+at)/2,pt=(Je+bt)/2,wt=at-Ve,lt=bt-Je,Dt=wt*wt+lt*lt,Tt=oe-fe,ft=Ve*bt-at*Je,Vt=(lt<0?-1:1)*Math.sqrt(Math.max(0,Tt*Tt*Dt-ft*ft)),Gt=(ft*lt-wt*Vt)/Dt,rn=(-ft*wt-lt*Vt)/Dt,nn=(ft*lt+wt*Vt)/Dt,Sn=(-ft*wt+lt*Vt)/Dt,Pn=Gt-Pt,In=rn-pt,On=nn-Pt,Gn=Sn-pt;return Pn*Pn+In*In>On*On+Gn*Gn&&(Gt=nn,rn=Sn),[[Gt-Ne,rn-je],[Gt*oe/Tt,rn*oe/Tt]]}function NO(){return!0}function FO($){var J=Bn,oe=En,fe=NO,me=Ei,ve=me.key,De=.7;function Ee(Ne){var je,Ve=[],Je=[],at=-1,bt=Ne.length,Pt=Ht(J),pt=Ht(oe);function wt(){Ve.push("M",me($(Je),De))}for(;++at1&&me.push("H",fe[0]),me.join("")},"step-before":R2,"step-after":L2,basis:zO,"basis-open":function($){if($.length<4)return Ei($);for(var J,oe=[],fe=-1,me=$.length,ve=[0],De=[0];++fe<3;)J=$[fe],ve.push(J[0]),De.push(J[1]);for(oe.push(li(gs,ve)+","+li(gs,De)),--fe;++fe9&&(ve=3*oe/Math.sqrt(ve),Ee[Ne]=ve*fe,Ee[Ne+1]=ve*me);for(Ne=-1;++Ne<=je;)ve=(J[Math.min(je,Ne+1)][0]-J[Math.max(0,Ne-1)][0])/(6*(1+Ee[Ne]*Ee[Ne])),De.push([ve||0,Ee[Ne]*ve||0]);return De}($))}});function Ei($){return $.length>1?$.join("L"):$+"Z"}function jO($){return $.join("L")+"Z"}function R2($){for(var J=0,oe=$.length,fe=$[0],me=[fe[0],",",fe[1]];++J1){Ee=J[1],ve=$[Ne],Ne++,fe+="C"+(me[0]+De[0])+","+(me[1]+De[1])+","+(ve[0]-Ee[0])+","+(ve[1]-Ee[1])+","+ve[0]+","+ve[1];for(var je=2;jeit)+",1 "+Ve}function Ne(je,Ve,Je,at){return"Q 0,0 "+at}return ve.radius=function(je){return arguments.length?(oe=Ht(je),ve):oe},ve.source=function(je){return arguments.length?($=Ht(je),ve):$},ve.target=function(je){return arguments.length?(J=Ht(je),ve):J},ve.startAngle=function(je){return arguments.length?(fe=Ht(je),ve):fe},ve.endAngle=function(je){return arguments.length?(me=Ht(je),ve):me},ve},c.svg.diagonal=function(){var $=HO,J=VO,oe=GO;function fe(me,ve){var De=$.call(this,me,ve),Ee=J.call(this,me,ve),Ne=(De.y+Ee.y)/2,je=[De,{x:De.x,y:Ne},{x:Ee.x,y:Ne},Ee];return"M"+(je=je.map(oe))[0]+"C"+je[1]+" "+je[2]+" "+je[3]}return fe.source=function(me){return arguments.length?($=Ht(me),fe):$},fe.target=function(me){return arguments.length?(J=Ht(me),fe):J},fe.projection=function(me){return arguments.length?(oe=me,fe):oe},fe},c.svg.diagonal.radial=function(){var $=c.svg.diagonal(),J=GO,oe=$.projection;return $.projection=function(fe){return arguments.length?oe(function(me){return function(){var ve=me.apply(this,arguments),De=ve[0],Ee=ve[1]-ut;return[De*Math.cos(Ee),De*Math.sin(Ee)]}}(J=fe)):J},$},c.svg.symbol=function(){var $=_K,J=wK;function oe(fe,me){return(XO.get($.call(this,fe,me))||YO)(J.call(this,fe,me))}return oe.type=function(fe){return arguments.length?($=Ht(fe),oe):$},oe.size=function(fe){return arguments.length?(J=Ht(fe),oe):J},oe};var XO=c.map({circle:YO,cross:function($){var J=Math.sqrt($/5)/2;return"M"+-3*J+","+-J+"H"+-J+"V"+-3*J+"H"+J+"V"+-J+"H"+3*J+"V"+J+"H"+J+"V"+3*J+"H"+-J+"V"+J+"H"+-3*J+"Z"},diamond:function($){var J=Math.sqrt($/(2*KO)),oe=J*KO;return"M0,"+-J+"L"+oe+",0 0,"+J+" "+-oe+",0Z"},square:function($){var J=Math.sqrt($)/2;return"M"+-J+","+-J+"L"+J+","+-J+" "+J+","+J+" "+-J+","+J+"Z"},"triangle-down":function($){var J=Math.sqrt($/Dg),oe=J*Dg/2;return"M0,"+oe+"L"+J+","+-oe+" "+-J+","+-oe+"Z"},"triangle-up":function($){var J=Math.sqrt($/Dg),oe=J*Dg/2;return"M0,"+-oe+"L"+J+","+oe+" "+-J+","+oe+"Z"}});c.svg.symbolTypes=XO.keys();var Dg=Math.sqrt(3),KO=Math.tan(30*ht);se.transition=function($){for(var J,oe,fe=cu||++QO,me=j2($),ve=[],De=Rg||{time:Date.now(),ease:MX,delay:0,duration:250},Ee=-1,Ne=this.length;++Ee0;)je[--lt].call($,wt);if(pt>=1)return Je.event&&Je.event.end.call($,$.__data__,J),--Ve.count?delete Ve[fe]:delete $[oe],1}Je||(ve=me.time,De=un(function(Pt){var pt=Je.delay;if(De.t=pt+ve,pt<=Pt)return at(Pt-pt);De.c=at},0,ve),Je=Ve[fe]={tween:new D,time:ve,timer:De,delay:me.delay,duration:me.duration,ease:me.ease,index:J},me=null,++Ve.count)}ya.call=se.call,ya.empty=se.empty,ya.node=se.node,ya.size=se.size,c.transition=function($,J){return $&&$.transition?cu?$.transition(J):$:c.selection().transition($)},c.transition.prototype=ya,ya.select=function($){var J,oe,fe,me=this.id,ve=this.namespace,De=[];$=he($);for(var Ee=-1,Ne=this.length;++Eerect,.s>rect").attr("width",ve[1]-ve[0])}function bt(pt){pt.select(".extent").attr("y",De[0]),pt.selectAll(".extent,.e>rect,.w>rect").attr("height",De[1]-De[0])}function Pt(){var pt,wt,lt=this,Dt=c.select(c.event.target),Tt=oe.of(lt,arguments),ft=c.select(lt),Vt=Dt.datum(),Gt=!/^(n|s)$/.test(Vt)&&fe,rn=!/^(e|w)$/.test(Vt)&&me,nn=Dt.classed("extent"),Sn=st(lt),Pn=c.mouse(lt),In=c.select(g(lt)).on("keydown.brush",function(){c.event.keyCode==32&&(nn||(pt=null,Pn[0]-=ve[1],Pn[1]-=De[1],nn=2),ee())}).on("keyup.brush",function(){c.event.keyCode==32&&nn==2&&(Pn[0]+=ve[1],Pn[1]+=De[1],nn=0,ee())});if(c.event.changedTouches?In.on("touchmove.brush",nr).on("touchend.brush",an):In.on("mousemove.brush",nr).on("mouseup.brush",an),ft.interrupt().selectAll("*").interrupt(),nn)Pn[0]=ve[0]-Pn[0],Pn[1]=De[0]-Pn[1];else if(Vt){var On=+/w$/.test(Vt),Gn=+/^n/.test(Vt);wt=[ve[1-On]-Pn[0],De[1-Gn]-Pn[1]],Pn[0]=ve[On],Pn[1]=De[Gn]}else c.event.altKey&&(pt=Pn.slice());function nr(){var wn=c.mouse(lt),qn=!1;wt&&(wn[0]+=wt[0],wn[1]+=wt[1]),nn||(c.event.altKey?(pt||(pt=[(ve[0]+ve[1])/2,(De[0]+De[1])/2]),Pn[0]=ve[+(wn[0]1?L-1:0),U=1;U1?L-1:0),U=1;U1?L-1:0),U=1;U1?L-1:0),U=1;U"u"?a.g:globalThis,g=u(),b=c("String.prototype.slice"),v={},h=Object.getPrototypeOf;p&&d&&h&&s(g,function(w){if(typeof m[w]=="function"){var _=new m[w];if(Symbol.toStringTag in _){var x=h(_),T=d(x,Symbol.toStringTag);if(!T){var k=h(x);T=d(k,Symbol.toStringTag)}v[w]=T.get}}});var y=a(9187);i.exports=function(w){return!!y(w)&&(p&&Symbol.toStringTag in w?function(_){var x=!1;return s(v,function(T,k){if(!x)try{var S=T.call(_);S===k&&(x=S)}catch{}}),x}(w):b(f(w),8,-1))}},3961:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(h,y){if(typeof h=="string"){var w=h.match(p);return w?w[0]:""}var _=this._validateYear(h),x=h.month(),T=""+this.toChineseMonth(_,x);return y&&T.length<2&&(T="0"+T),this.isIntercalaryMonth(_,x)&&(T+="i"),T},monthNames:function(h){if(typeof h=="string"){var y=h.match(m);return y?y[0]:""}var w=this._validateYear(h),_=h.month(),x=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(w,_)-1];return this.isIntercalaryMonth(w,_)&&(x="闰"+x),x},monthNamesShort:function(h){if(typeof h=="string"){var y=h.match(g);return y?y[0]:""}var w=this._validateYear(h),_=h.month(),x=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(w,_)-1];return this.isIntercalaryMonth(w,_)&&(x="闰"+x),x},parseMonth:function(h,y){h=this._validateYear(h);var w,_=parseInt(y);if(isNaN(_))y[0]==="闰"&&(w=!0,y=y.substring(1)),y[y.length-1]==="月"&&(y=y.substring(0,y.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(y);else{var x=y[y.length-1];w=x==="i"||x==="I"}return this.toMonthIndex(h,_,w)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(h,y){if(h.year&&(h=h.year()),typeof h!="number"||h<1888||h>2111)throw y.replace(/\{0\}/,this.local.name);return h},toMonthIndex:function(h,y,w){var _=this.intercalaryMonth(h);if(w&&y!==_||y<1||y>12)throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!w&&y<=_?y-1:y:y-1},toChineseMonth:function(h,y){h.year&&(y=(h=h.year()).month());var w=this.intercalaryMonth(h);if(y<0||y>(w?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return w?y>13},isIntercalaryMonth:function(h,y){h.year&&(y=(h=h.year()).month());var w=this.intercalaryMonth(h);return!!w&&w===y},leapYear:function(h){return this.intercalaryMonth(h)!==0},weekOfYear:function(h,y,w){var _,x=this._validateYear(h,s.local.invalidyear),T=v[x-v[0]],k=T>>9&4095,S=T>>5&15,C=31&T;(_=c.newDate(k,S,C)).add(4-(_.dayOfWeek()||7),"d");var M=this.toJD(h,y,w)-_.toJD();return 1+Math.floor(M/7)},monthsInYear:function(h){return this.leapYear(h)?13:12},daysInMonth:function(h,y){h.year&&(y=h.month(),h=h.year()),h=this._validateYear(h);var w=b[h-b[0]];if(y>(w>>13?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return w&1<<12-y?30:29},weekDay:function(h,y,w){return(this.dayOfWeek(h,y,w)||7)<6},toJD:function(h,y,w){var _=this._validate(h,T,w,s.local.invalidDate);h=this._validateYear(_.year()),y=_.month(),w=_.day();var x=this.isIntercalaryMonth(h,y),T=this.toChineseMonth(h,y),k=function(S,C,M,O,D){var P,E,I;if(typeof S=="object")E=S,P=C||{};else{var A;if(!(typeof S=="number"&&S>=1888&&S<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof C=="number"&&C>=1&&C<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof M=="number"&&M>=1&&M<=30))throw new Error("Lunar day outside range 1 - 30");typeof O=="object"?(A=!1,P=O):(A=!!O,P={}),E={year:S,month:C,day:M,isIntercalary:A}}I=E.day-1;var F,j=b[E.year-b[0]],z=j>>13;F=z&&(E.month>z||E.isIntercalary)?E.month:E.month-1;for(var B=0;B>9&4095,(N>>5&15)-1,(31&N)+I);return P.year=R.getFullYear(),P.month=1+R.getMonth(),P.day=R.getDate(),P}(h,T,w,x);return c.toJD(k.year,k.month,k.day)},fromJD:function(h){var y=c.fromJD(h),w=function(x,T,k,S){var C,M;if(typeof x=="object")C=x,M=T||{};else{if(!(typeof x=="number"&&x>=1888&&x<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof k=="number"&&k>=1&&k<=31))throw new Error("Solar day outside range 1 - 31");C={year:x,month:T,day:k},M={}}var O=v[C.year-v[0]],D=C.year<<9|C.month<<5|C.day;M.year=D>=O?C.year:C.year-1,O=v[M.year-v[0]];var P,E=new Date(O>>9&4095,(O>>5&15)-1,31&O),I=new Date(C.year,C.month-1,C.day);P=Math.round((I-E)/864e5);var A,F=b[M.year-b[0]];for(A=0;A<13;A++){var j=F&1<<12-A?30:29;if(P>13;return!z||A=2&&g<=6},extraInfo:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return{century:d[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=g.year()+(g.year()<0?1:0),p=g.month(),(m=g.day())+(p>1?16:0)+(p>2?32*(p-2):0)+400*(f-1)+this.jdEpoch-1},fromJD:function(f){f=Math.floor(f+.5)-Math.floor(this.jdEpoch)-1;var p=Math.floor(f/400)+1;f-=400*(p-1),f+=f>15?16:0;var m=Math.floor(f/32)+1,g=f-32*(m-1)+1;return this.newDate(p<=0?p-1:p,m,g)}});var d={20:"Fruitbat",21:"Anchovy"};s.calendars.discworld=c},37715:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()+(f.year()<0?1:0))%4==3||d%4==-1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),13},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return(d=m.year())<0&&d++,m.day()+30*(m.month()-1)+365*(d-1)+Math.floor(d/4)+this.jdEpoch-1},fromJD:function(d){var f=Math.floor(d)+.5-this.jdEpoch,p=Math.floor((f-Math.floor((f+366)/1461))/365)+1;p<=0&&p--,f=Math.floor(d)+.5-this.newDate(p,1,1).toJD();var m=Math.floor(f/30)+1,g=f-30*(m-1)+1;return this.newDate(p,m,g)}}),s.calendars.ethiopian=c},99384:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}function d(f,p){return f-p*Math.floor(f/p)}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this._leapYear(p.year())},_leapYear:function(f){return d(7*(f=f<0?f+1:f)+1,19)<7},monthsInYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),this._leapYear(f.year?f.year():f)?13:12},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){return f=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear).year(),this.toJD(f===-1?1:f+1,7,1)-this.toJD(f,7,1)},daysInMonth:function(f,p){return f.year&&(p=f.month(),f=f.year()),this._validate(f,p,this.minDay,s.local.invalidMonth),p===12&&this.leapYear(f)||p===8&&d(this.daysInYear(f),10)===5?30:p===9&&d(this.daysInYear(f),10)===3?29:this.daysPerMonth[p-1]},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==6},extraInfo:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);f=g.year(),p=g.month(),m=g.day();var b=f<=0?f+1:f,v=this.jdEpoch+this._delay1(b)+this._delay2(b)+m+1;if(p<7){for(var h=7;h<=this.monthsInYear(f);h++)v+=this.daysInMonth(f,h);for(h=1;h=this.toJD(p===-1?1:p+1,7,1);)p++;for(var m=fthis.toJD(p,m,this.daysInMonth(p,m));)m++;var g=f-this.toJD(p,m,1)+1;return this.newDate(p,m,g)}}),s.calendars.hebrew=c},43805:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(d){return(11*this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year()+14)%30<11},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){return this.leapYear(d)?355:354},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==5},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return d=m.year(),f=m.month(),d=d<=0?d+1:d,(p=m.day())+Math.ceil(29.5*(f-1))+354*(d-1)+Math.floor((3+11*d)/30)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d)+.5;var f=Math.floor((30*(d-this.jdEpoch)+10646)/10631);f=f<=0?f-1:f;var p=Math.min(12,Math.ceil((d-29-this.toJD(f,1,1))/29.5)+1),m=d-this.toJD(f,p,1)+1;return this.newDate(f,p,m)}}),s.calendars.islamic=c},88874:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()<0?f.year()+1:f.year())%4==0},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(4-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return d=m.year(),f=m.month(),p=m.day(),d<0&&d++,f<=2&&(d--,f+=12),Math.floor(365.25*(d+4716))+Math.floor(30.6001*(f+1))+p-1524.5},fromJD:function(d){var f=Math.floor(d+.5)+1524,p=Math.floor((f-122.1)/365.25),m=Math.floor(365.25*p),g=Math.floor((f-m)/30.6001),b=g-Math.floor(g<14?1:13),v=p-Math.floor(b>2?4716:4715),h=f-m-Math.floor(30.6001*g);return v<=0&&v--,this.newDate(v,b,h)}}),s.calendars.julian=c},83290:function(i,o,a){var s=a(63489),u=a(56131);function c(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}function d(p,m){return p-m*Math.floor(p/m)}function f(p,m){return d(p-1,m)+1}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),!1},formatYear:function(p){p=this._validate(p,this.minMonth,this.minDay,s.local.invalidYear).year();var m=Math.floor(p/400);return p%=400,p+=p<0?400:0,m+"."+Math.floor(p/20)+"."+p%20},forYear:function(p){if((p=p.split(".")).length<3)throw"Invalid Mayan year";for(var m=0,g=0;g19||g>0&&b<0)throw"Invalid Mayan year";m=20*m+b}return m},monthsInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),18},weekOfYear:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate),0},daysInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),360},daysInMonth:function(p,m){return this._validate(p,m,this.minDay,s.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate).day()},weekDay:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate),!0},extraInfo:function(p,m,g){var b=this._validate(p,m,g,s.local.invalidDate).toJD(),v=this._toHaab(b),h=this._toTzolkin(b);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[h[0]-1],tzolkinDay:h[0],tzolkinTrecena:h[1]}},_toHaab:function(p){var m=d(8+(p-=this.jdEpoch)+340,365);return[Math.floor(m/20)+1,d(m,20)]},_toTzolkin:function(p){return[f(20+(p-=this.jdEpoch),20),f(p+4,13)]},toJD:function(p,m,g){var b=this._validate(p,m,g,s.local.invalidDate);return b.day()+20*b.month()+360*b.year()+this.jdEpoch},fromJD:function(p){p=Math.floor(p)+.5-this.jdEpoch;var m=Math.floor(p/360);p%=360,p+=p<0?360:0;var g=Math.floor(p/20),b=p%20;return this.newDate(m,g,b)}}),s.calendars.mayan=c},29108:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar;var d=s.instance("gregorian");u(c.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return d.leapYear(p.year()+(p.year()<1?1:0)+1469)},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidMonth);(f=g.year())<0&&f++;for(var b=g.day(),v=1;v=this.toJD(p+1,1,1);)p++;for(var m=f-Math.floor(this.toJD(p,1,1)+.5)+1,g=1;m>this.daysInMonth(p,g);)m-=this.daysInMonth(p,g),g++;return this.newDate(p,g,m)}}),s.calendars.nanakshahi=c},55422:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(d){return this.daysInYear(d)!==this.daysPerYear},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){if(d=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[d]===void 0)return this.daysPerYear;for(var f=0,p=this.minMonth;p<=12;p++)f+=this.NEPALI_CALENDAR_DATA[d][p];return f},daysInMonth:function(d,f){return d.year&&(f=d.month(),d=d.year()),this._validate(d,f,this.minDay,s.local.invalidMonth),this.NEPALI_CALENDAR_DATA[d]===void 0?this.daysPerMonth[f-1]:this.NEPALI_CALENDAR_DATA[d][f]},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);d=m.year(),f=m.month(),p=m.day();var g=s.instance(),b=0,v=f,h=d;this._createMissingCalendarData(d);var y=d-(v>9||v===9&&p>=this.NEPALI_CALENDAR_DATA[h][0]?56:57);for(f!==9&&(b=p,v--);v!==9;)v<=0&&(v=12,h--),b+=this.NEPALI_CALENDAR_DATA[h][v],v--;return f===9?(b+=p-this.NEPALI_CALENDAR_DATA[h][0])<0&&(b+=g.daysInYear(y)):b+=this.NEPALI_CALENDAR_DATA[h][9]-this.NEPALI_CALENDAR_DATA[h][0],g.newDate(y,1,1).add(b,"d").toJD()},fromJD:function(d){var f=s.instance().fromJD(d),p=f.year(),m=f.dayOfYear(),g=p+56;this._createMissingCalendarData(g);for(var b=9,v=this.NEPALI_CALENDAR_DATA[g][0],h=this.NEPALI_CALENDAR_DATA[g][b]-v+1;m>h;)++b>12&&(b=1,g++),h+=this.NEPALI_CALENDAR_DATA[g][b];var y=this.NEPALI_CALENDAR_DATA[g][b]-(h-m);return this.newDate(g,b,y)},_createMissingCalendarData:function(d){var f=this.daysPerMonth.slice(0);f.unshift(17);for(var p=d-1;p0?474:473))%2820+474+38)%2816<682},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-(g.dayOfWeek()+1)%7,"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==5},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);f=g.year(),p=g.month(),m=g.day();var b=f-(f>=0?474:473),v=474+d(b,2820);return m+(p<=7?31*(p-1):30*(p-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(b/2820)+this.jdEpoch-1},fromJD:function(f){var p=(f=Math.floor(f)+.5)-this.toJD(475,1,1),m=Math.floor(p/1029983),g=d(p,1029983),b=2820;if(g!==1029982){var v=Math.floor(g/366),h=d(g,366);b=Math.floor((2134*v+2816*h+2815)/1028522)+v+1}var y=b+2820*m+474;y=y<=0?y-1:y;var w=f-this.toJD(y,1,1)+1,_=w<=186?Math.ceil(w/31):Math.ceil((w-6)/30),x=f-this.toJD(y,_,1)+1;return this.newDate(y,_,x)}}),s.calendars.persian=c,s.calendars.jalali=c},31320:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,m){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),m=this._g2tYear(p.year());return this.newDate(m,p.month(),p.day())},_t2gYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)},_g2tYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)}}),s.calendars.taiwan=d},51367:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,m){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),m=this._g2tYear(p.year());return this.newDate(m,p.month(),p.day())},_t2gYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)},_g2tYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)}}),s.calendars.thai=d},21457:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this.daysInYear(p.year())===355},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){for(var p=0,m=1;m<=12;m++)p+=this.daysInMonth(f,m);return p},daysInMonth:function(f,p){for(var m=this._validate(f,p,this.minDay,s.local.invalidMonth).toJD()-24e5+.5,g=0,b=0;bm)return d[g]-d[g-1];g++}return 30},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==5},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate),b=12*(g.year()-1)+g.month()-15292;return g.day()+d[b-1]-1+24e5-.5},fromJD:function(f){for(var p=f-24e5+.5,m=0,g=0;gp);g++)m++;var b=m+15292,v=Math.floor((b-1)/12),h=v+1,y=b-12*v,w=p-d[m-1]+1;return this.newDate(h,y,w)},isValid:function(f,p,m){var g=s.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(g=(f=f.year!=null?f.year:f)>=1276&&f<=1500),g},_validate:function(f,p,m,g){var b=s.baseCalendar.prototype._validate.apply(this,arguments);if(b.year<1276||b.year>1500)throw g.replace(/\{0\}/,this.local.name);return b}}),s.calendars.ummalqura=c;var d=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(i,o,a){var s=a(56131);function u(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function c(g,b,v,h){if(this._calendar=g,this._year=b,this._month=v,this._day=h,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function d(g,b){return"000000".substring(0,b-(g=""+g).length)+g}function f(){this.shortYearCutoff="+10"}function p(g){this.local=this.regionalOptions[g]||this.regionalOptions[""]}s(u.prototype,{instance:function(g,b){g=(g||"gregorian").toLowerCase(),b=b||"";var v=this._localCals[g+"-"+b];if(!v&&this.calendars[g]&&(v=new this.calendars[g](b),this._localCals[g+"-"+b]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return v},newDate:function(g,b,v,h,y){return(h=(g!=null&&g.year?g.calendar():typeof h=="string"?this.instance(h,y):h)||this.instance()).newDate(g,b,v)},substituteDigits:function(g){return function(b){return(b+"").replace(/[0-9]/g,function(v){return g[v]})}},substituteChineseDigits:function(g,b){return function(v){for(var h="",y=0;v>0;){var w=v%10;h=(w===0?"":g[w]+b[y])+h,y++,v=Math.floor(v/10)}return h.indexOf(g[1]+b[1])===0&&(h=h.substr(1)),h||g[0]}}}),s(c.prototype,{newDate:function(g,b,v){return this._calendar.newDate(g??this,b,v)},year:function(g){return arguments.length===0?this._year:this.set(g,"y")},month:function(g){return arguments.length===0?this._month:this.set(g,"m")},day:function(g){return arguments.length===0?this._day:this.set(g,"d")},date:function(g,b,v){if(!this._calendar.isValid(g,b,v))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,this._month=b,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(g,b){return this._calendar.add(this,g,b)},set:function(g,b){return this._calendar.set(this,g,b)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(m.local.differentCalendars||m.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var b=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return b===0?0:b<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(g){return this._calendar.fromJD(g)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(g){return this._calendar.fromJSDate(g)},toString:function(){return(this.year()<0?"-":"")+d(Math.abs(this.year()),4)+"-"+d(this.month(),2)+"-"+d(this.day(),2)}}),s(f.prototype,{_validateLevel:0,newDate:function(g,b,v){return g==null?this.today():(g.year&&(this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),v=g.day(),b=g.month(),g=g.year()),new c(this,g,b,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){return this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return(b.year()<0?"-":"")+d(Math.abs(b.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),12},monthOfYear:function(g,b){var v=this._validate(g,b,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(g,b){var v=(b+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,v,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth),v},daysInYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return this.leapYear(b)?366:365},dayOfYear:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate);return h.toJD()-this.newDate(h.year(),this.fromMonthOfYear(h.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(h))+2)%this.daysInWeek()},extraInfo:function(g,b,v){return this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),{}},add:function(g,b,v){return this._validate(g,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,b,v),b,v)},_add:function(g,b,v){if(this._validateLevel++,v==="d"||v==="w"){var h=g.toJD()+b*(v==="w"?this.daysInWeek():1),y=g.calendar().fromJD(h);return this._validateLevel--,[y.year(),y.month(),y.day()]}try{var w=g.year()+(v==="y"?b:0),_=g.monthOfYear()+(v==="m"?b:0);y=g.day(),v==="y"?(g.month()!==this.fromMonthOfYear(w,_)&&(_=this.newDate(w,g.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(w)),y=Math.min(y,this.daysInMonth(w,this.fromMonthOfYear(w,_)))):v==="m"&&(function(T){for(;_k-1+T.minMonth;)w++,_-=k,k=T.monthsInYear(w)}(this),y=Math.min(y,this.daysInMonth(w,this.fromMonthOfYear(w,_))));var x=[w,this.fromMonthOfYear(w,_),y];return this._validateLevel--,x}catch(T){throw this._validateLevel--,T}},_correctAdd:function(g,b,v,h){if(!(this.hasYearZero||h!=="y"&&h!=="m"||b[0]!==0&&g.year()>0==b[0]>0)){var y={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[h],w=v<0?-1:1;b=this._add(g,v*y[0]+w*y[1],y[2])}return g.date(b[0],b[1],b[2])},set:function(g,b,v){this._validate(g,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate);var h=v==="y"?b:g.year(),y=v==="m"?b:g.month(),w=v==="d"?b:g.day();return v!=="y"&&v!=="m"||(w=Math.min(w,this.daysInMonth(h,y))),g.date(h,y,w)},isValid:function(g,b,v){this._validateLevel++;var h=this.hasYearZero||g!==0;if(h){var y=this.newDate(g,b,this.minDay);h=b>=this.minMonth&&b-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),k=y-(T>2.5?4716:4715);return k<=0&&k--,this.newDate(k,T,x)},toJSDate:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),y=new Date(h.year(),h.month()-1,h.day());return y.setHours(0),y.setMinutes(0),y.setSeconds(0),y.setMilliseconds(0),y.setHours(y.getHours()>12?y.getHours()+2:0),y},fromJSDate:function(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.getDate())}});var m=i.exports=new u;m.cdate=c,m.baseCalendar=f,m.calendars.gregorian=p},94338:function(i,o,a){var s=a(56131),u=a(63489);s(u.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),u.local=u.regionalOptions[""],s(u.cdate.prototype,{formatDate:function(c,d){return typeof c!="string"&&(d=c,c=""),this._calendar.formatDate(c||"",this,d)}}),s(u.baseCalendar.prototype,{UNIX_EPOCH:u.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:u.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(c,d,f){if(typeof c!="string"&&(f=d,d=c,c=""),!d)return"";if(d.calendar()!==this)throw u.local.invalidFormat||u.regionalOptions[""].invalidFormat;c=c||this.local.dateFormat;for(var p,m,g,b=(f=f||{}).dayNamesShort||this.local.dayNamesShort,v=f.dayNames||this.local.dayNames,h=f.monthNumbers||this.local.monthNumbers,y=f.monthNamesShort||this.local.monthNamesShort,w=f.monthNames||this.local.monthNames,_=(f.calculateWeek||this.local.calculateWeek,function(E,I){for(var A=1;P+A1}),x=function(E,I,A,F){var j=""+I;if(_(E,F))for(;j.length1},O=function(N,R){var q=M(N,R),Y=[2,3,q?4:2,q?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+Y+"}"),W=d.substring(F).match(L);if(!W)throw(u.local.missingNumberAt||u.regionalOptions[""].missingNumberAt).replace(/\{0\}/,F);return F+=W[0].length,parseInt(W[0],10)},D=this,P=function(){if(typeof v=="function"){M("m");var N=v.call(D,d.substring(F));return F+=N.length,N}return O("m")},E=function(N,R,q,Y){for(var L=M(N,Y)?q:R,W=0;W-1){x=1,T=k;for(var B=this.daysInMonth(_,x);T>B;B=this.daysInMonth(_,x))x++,T-=B}return w>-1?this.fromJD(w):this.newDate(_,x,T)},determineDate:function(c,d,f,p,m){f&&typeof f!="object"&&(m=p,p=f,f=null),typeof p!="string"&&(m=p,p="");var g=this;return d=d?d.newDate():null,c==null?d:typeof c=="string"?function(b){try{return g.parseDate(p,b,m)}catch{}for(var v=((b=b.toLowerCase()).match(/^c/)&&f?f.newDate():null)||g.today(),h=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,y=h.exec(b);y;)v.add(parseInt(y[1],10),y[2]||"d"),y=h.exec(b);return v}(c):typeof c=="number"?isNaN(c)||c===1/0||c===-1/0?d:g.today().add(c,"d"):g.newDate(c)}})},69862:function(){},40964:function(){},72077:function(i,o,a){var s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],u=typeof globalThis>"u"?a.g:globalThis;i.exports=function(){for(var c=[],d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(_){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(T){return T.__proto__||Object.getPrototypeOf(T)},b(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],h=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],y=typeof window<"u";function w(_){var x=function(T){c(S,T);var k=f(S);function S(C){var M;return a(this,S),M=k.call(this,C),M.p=Promise.resolve(),M.resizeHandler=null,M.handlers={},M.syncWindowResize=M.syncWindowResize.bind(m(M)),M.syncEventHandlers=M.syncEventHandlers.bind(m(M)),M.attachUpdateEvents=M.attachUpdateEvents.bind(m(M)),M.getRef=M.getRef.bind(m(M)),M.handleUpdate=M.handleUpdate.bind(m(M)),M.figureCallback=M.figureCallback.bind(m(M)),M.updatePlotly=M.updatePlotly.bind(m(M)),M}return u(S,[{key:"updatePlotly",value:function(M,O,D){var P=this;this.p=this.p.then(function(){if(!P.unmounting){if(!P.el)throw new Error("Missing element reference");return _.react(P.el,{data:P.props.data,layout:P.props.layout,config:P.props.config,frames:P.props.frames})}}).then(function(){P.unmounting||(P.syncWindowResize(M),P.syncEventHandlers(),P.figureCallback(O),D&&P.attachUpdateEvents())}).catch(function(E){P.props.onError&&P.props.onError(E)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(M){this.unmounting=!1;var O=M.frames&&M.frames.length?M.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,P=!(M.layout===this.props.layout&&M.data===this.props.data&&M.config===this.props.config&&D===O),E=M.revision!==void 0,I=M.revision!==this.props.revision;!P&&(!E||E&&!I)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&y&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||h.forEach(function(O){M.el.on(O,M.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||h.forEach(function(O){M.el.removeListener(O,M.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(M){if(typeof M=="function"){var O=this.el,D=O.data,P=O.layout,E=this.el._transitionData?this.el._transitionData._frames:null,I={data:D,layout:P,frames:E};M(I,this.el)}}},{key:"syncWindowResize",value:function(M){var O=this;y&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(O.el)},window.addEventListener("resize",this.resizeHandler),M&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(M){this.el=M,this.props.debug&&y&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var M=this;v.forEach(function(O){var D=M.props["on"+O],P=M.handlers[O],E=!!P;D&&!E?M.addEventHandler(O,D):!D&&E?M.removeEventHandler(O):D&&E&&D!==P&&(M.removeEventHandler(O),M.addEventHandler(O,D))})}},{key:"addEventHandler",value:function(M,O){this.handlers[M]=O,this.el.on(this.getPlotlyEventName(M),this.handlers[M])}},{key:"removeEventHandler",value:function(M){this.el.removeListener(this.getPlotlyEventName(M),this.handlers[M]),delete this.handlers[M]}},{key:"getPlotlyEventName",value:function(M){return"plotly_"+M.toLowerCase()}},{key:"render",value:function(){return n.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),S}(n.Component);return x.propTypes={data:r.default.arrayOf(r.default.object),config:r.default.object,layout:r.default.object,frames:r.default.arrayOf(r.default.object),revision:r.default.number,onInitialized:r.default.func,onPurge:r.default.func,onError:r.default.func,onUpdate:r.default.func,debug:r.default.bool,style:r.default.object,className:r.default.string,useResizeHandler:r.default.bool,divId:r.default.string},v.forEach(function(T){x.propTypes["on"+T]=r.default.func}),x.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},x}})(Wz);const Gpe=lr(Wz),qz=Gpe(Vpe),Ype=Qe.createContext(null),Uz=()=>ge.useContext(Ype),cb=e=>{var n;const t=Uz();return ke.jsx("div",{children:ke.jsx(qz,{data:e.data,layout:{...e.layout,title:void 0,xaxis:{...(n=e.layout)==null?void 0:n.xaxis,type:t!=null&&t.isXaxisAsCategorical?"category":void 0}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}})})};class Hz extends Qe.Component{render(){return ke.jsx(cr,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}const Vz=()=>ke.jsx("div",{children:"Not implemented"}),Xpe=e=>{const t=e.activeTab===-1?0:e.activeTab;return ke.jsxs("div",{children:[ke.jsx(Fz,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map((n,r)=>ke.jsx(ek,{disabled:n.disabled??!1,label:ke.jsx(Ia,{className:e.tabStyle,children:ke.jsxs(Ia,{display:"flex",sx:{fontSize:"0.875rem"},children:[ke.jsx("span",{children:n.icon}),n.title]})})},r))}),ke.jsx(Ia,{children:e.tabs.map((n,r)=>ke.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==r,children:(e.activeTab===-1?0:e.activeTab)!==r?ke.jsx("div",{}):n.tab},r))})]})},EM=e=>{const[t,n]=ge.useState({activeTab:0});return ke.jsx(Qe.Fragment,{children:ke.jsx(Xpe,{activeTab:t.activeTab,onNewTabSelected:(r,l)=>n(i=>({...i,activeTab:l})),tabs:e.tabs})})},Kpe=e=>ke.jsx(EM,{tabs:e.graphs.map(t=>({title:t.title,tab:ke.jsx(cb,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),Zpe=e=>ke.jsx(ife,{children:ke.jsxs(PM,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[ke.jsx(AM,{children:ke.jsxs(hm,{children:[ke.jsx(gi,{children:e.header[0]},-1),e.header.slice(1).map((t,n)=>ke.jsx(gi,{align:"right",children:t},n))]})}),ke.jsx(OM,{children:e.data.map(t=>ke.jsxs(hm,{children:[ke.jsx(gi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map((n,r)=>ke.jsx(gi,{align:"right",children:n},r))]},t[0]))})]})});var Gz={},Yz={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Yz);var Cn=Yz.exports,Sw={exports:{}},iD;function Ir(){return iD||(iD=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r{let t;const n=new Set,r=(s,u)=>{const c=typeof s=="function"?s(t):s;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},l=()=>t,a={setState:r,getState:l,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(the?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,l,a),a},Zz=e=>e?fD(e):fD;var Qz={exports:{}},Jz={},eB={exports:{}},tB={};/** +`)):U=B.stylize("[Circular]","special")),S(W)){if(L&&Y.match(/^\d+$/))return U;(W=JSON.stringify(""+Y)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(W=W.slice(1,-1),W=B.stylize(W,"name")):(W=W.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),W=B.stylize(W,"string"))}return W+": "+U}function w(B){return Array.isArray(B)}function _(B){return typeof B=="boolean"}function x(B){return B===null}function T(B){return typeof B=="number"}function k(B){return typeof B=="string"}function S(B){return B===void 0}function C(B){return M(B)&&E(B)==="[object RegExp]"}function M(B){return typeof B=="object"&&B!==null}function O(B){return M(B)&&E(B)==="[object Date]"}function D(B){return M(B)&&(E(B)==="[object Error]"||B instanceof Error)}function P(B){return typeof B=="function"}function E(B){return Object.prototype.toString.call(B)}function I(B){return B<10?"0"+B.toString(10):B.toString(10)}o.debuglog=function(B){if(B=B.toUpperCase(),!d[B])if(f.test(B)){var N=s.pid;d[B]=function(){var R=o.format.apply(o,arguments);console.error("%s %d: %s",B,N,R)}}else d[B]=function(){};return d[B]},o.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},o.types=a(4936),o.isArray=w,o.isBoolean=_,o.isNull=x,o.isNullOrUndefined=function(B){return B==null},o.isNumber=T,o.isString=k,o.isSymbol=function(B){return typeof B=="symbol"},o.isUndefined=S,o.isRegExp=C,o.types.isRegExp=C,o.isObject=M,o.isDate=O,o.types.isDate=O,o.isError=D,o.types.isNativeError=D,o.isFunction=P,o.isPrimitive=function(B){return B===null||typeof B=="boolean"||typeof B=="number"||typeof B=="string"||typeof B=="symbol"||B===void 0},o.isBuffer=a(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(B,N){return Object.prototype.hasOwnProperty.call(B,N)}o.log=function(){var B,N;console.log("%s - %s",(N=[I((B=new Date).getHours()),I(B.getMinutes()),I(B.getSeconds())].join(":"),[B.getDate(),A[B.getMonth()],N].join(" ")),o.format.apply(o,arguments))},o.inherits=a(42018),o._extend=function(B,N){if(!N||!M(N))return B;for(var R=Object.keys(N),q=R.length;q--;)B[R[q]]=N[R[q]];return B};var j=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function z(B,N){if(!B){var R=new Error("Promise was rejected with a falsy value");R.reason=B,B=R}return N(B)}o.promisify=function(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');if(j&&B[j]){var N;if(typeof(N=B[j])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,j,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var R,q,Y=new Promise(function(U,V){R=U,q=V}),L=[],W=0;W"u"?a.g:globalThis,g=u(),b=c("String.prototype.slice"),v={},h=Object.getPrototypeOf;p&&d&&h&&s(g,function(w){if(typeof m[w]=="function"){var _=new m[w];if(Symbol.toStringTag in _){var x=h(_),T=d(x,Symbol.toStringTag);if(!T){var k=h(x);T=d(k,Symbol.toStringTag)}v[w]=T.get}}});var y=a(9187);i.exports=function(w){return!!y(w)&&(p&&Symbol.toStringTag in w?function(_){var x=!1;return s(v,function(T,k){if(!x)try{var S=T.call(_);S===k&&(x=S)}catch{}}),x}(w):b(f(w),8,-1))}},3961:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(h,y){if(typeof h=="string"){var w=h.match(p);return w?w[0]:""}var _=this._validateYear(h),x=h.month(),T=""+this.toChineseMonth(_,x);return y&&T.length<2&&(T="0"+T),this.isIntercalaryMonth(_,x)&&(T+="i"),T},monthNames:function(h){if(typeof h=="string"){var y=h.match(m);return y?y[0]:""}var w=this._validateYear(h),_=h.month(),x=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(w,_)-1];return this.isIntercalaryMonth(w,_)&&(x="闰"+x),x},monthNamesShort:function(h){if(typeof h=="string"){var y=h.match(g);return y?y[0]:""}var w=this._validateYear(h),_=h.month(),x=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(w,_)-1];return this.isIntercalaryMonth(w,_)&&(x="闰"+x),x},parseMonth:function(h,y){h=this._validateYear(h);var w,_=parseInt(y);if(isNaN(_))y[0]==="闰"&&(w=!0,y=y.substring(1)),y[y.length-1]==="月"&&(y=y.substring(0,y.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(y);else{var x=y[y.length-1];w=x==="i"||x==="I"}return this.toMonthIndex(h,_,w)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(h,y){if(h.year&&(h=h.year()),typeof h!="number"||h<1888||h>2111)throw y.replace(/\{0\}/,this.local.name);return h},toMonthIndex:function(h,y,w){var _=this.intercalaryMonth(h);if(w&&y!==_||y<1||y>12)throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!w&&y<=_?y-1:y:y-1},toChineseMonth:function(h,y){h.year&&(y=(h=h.year()).month());var w=this.intercalaryMonth(h);if(y<0||y>(w?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return w?y>13},isIntercalaryMonth:function(h,y){h.year&&(y=(h=h.year()).month());var w=this.intercalaryMonth(h);return!!w&&w===y},leapYear:function(h){return this.intercalaryMonth(h)!==0},weekOfYear:function(h,y,w){var _,x=this._validateYear(h,s.local.invalidyear),T=v[x-v[0]],k=T>>9&4095,S=T>>5&15,C=31&T;(_=c.newDate(k,S,C)).add(4-(_.dayOfWeek()||7),"d");var M=this.toJD(h,y,w)-_.toJD();return 1+Math.floor(M/7)},monthsInYear:function(h){return this.leapYear(h)?13:12},daysInMonth:function(h,y){h.year&&(y=h.month(),h=h.year()),h=this._validateYear(h);var w=b[h-b[0]];if(y>(w>>13?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return w&1<<12-y?30:29},weekDay:function(h,y,w){return(this.dayOfWeek(h,y,w)||7)<6},toJD:function(h,y,w){var _=this._validate(h,T,w,s.local.invalidDate);h=this._validateYear(_.year()),y=_.month(),w=_.day();var x=this.isIntercalaryMonth(h,y),T=this.toChineseMonth(h,y),k=function(S,C,M,O,D){var P,E,I;if(typeof S=="object")E=S,P=C||{};else{var A;if(!(typeof S=="number"&&S>=1888&&S<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof C=="number"&&C>=1&&C<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof M=="number"&&M>=1&&M<=30))throw new Error("Lunar day outside range 1 - 30");typeof O=="object"?(A=!1,P=O):(A=!!O,P={}),E={year:S,month:C,day:M,isIntercalary:A}}I=E.day-1;var F,j=b[E.year-b[0]],z=j>>13;F=z&&(E.month>z||E.isIntercalary)?E.month:E.month-1;for(var B=0;B>9&4095,(N>>5&15)-1,(31&N)+I);return P.year=R.getFullYear(),P.month=1+R.getMonth(),P.day=R.getDate(),P}(h,T,w,x);return c.toJD(k.year,k.month,k.day)},fromJD:function(h){var y=c.fromJD(h),w=function(x,T,k,S){var C,M;if(typeof x=="object")C=x,M=T||{};else{if(!(typeof x=="number"&&x>=1888&&x<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof k=="number"&&k>=1&&k<=31))throw new Error("Solar day outside range 1 - 31");C={year:x,month:T,day:k},M={}}var O=v[C.year-v[0]],D=C.year<<9|C.month<<5|C.day;M.year=D>=O?C.year:C.year-1,O=v[M.year-v[0]];var P,E=new Date(O>>9&4095,(O>>5&15)-1,31&O),I=new Date(C.year,C.month-1,C.day);P=Math.round((I-E)/864e5);var A,F=b[M.year-b[0]];for(A=0;A<13;A++){var j=F&1<<12-A?30:29;if(P>13;return!z||A=2&&g<=6},extraInfo:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return{century:d[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=g.year()+(g.year()<0?1:0),p=g.month(),(m=g.day())+(p>1?16:0)+(p>2?32*(p-2):0)+400*(f-1)+this.jdEpoch-1},fromJD:function(f){f=Math.floor(f+.5)-Math.floor(this.jdEpoch)-1;var p=Math.floor(f/400)+1;f-=400*(p-1),f+=f>15?16:0;var m=Math.floor(f/32)+1,g=f-32*(m-1)+1;return this.newDate(p<=0?p-1:p,m,g)}});var d={20:"Fruitbat",21:"Anchovy"};s.calendars.discworld=c},37715:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()+(f.year()<0?1:0))%4==3||d%4==-1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),13},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return(d=m.year())<0&&d++,m.day()+30*(m.month()-1)+365*(d-1)+Math.floor(d/4)+this.jdEpoch-1},fromJD:function(d){var f=Math.floor(d)+.5-this.jdEpoch,p=Math.floor((f-Math.floor((f+366)/1461))/365)+1;p<=0&&p--,f=Math.floor(d)+.5-this.newDate(p,1,1).toJD();var m=Math.floor(f/30)+1,g=f-30*(m-1)+1;return this.newDate(p,m,g)}}),s.calendars.ethiopian=c},99384:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}function d(f,p){return f-p*Math.floor(f/p)}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this._leapYear(p.year())},_leapYear:function(f){return d(7*(f=f<0?f+1:f)+1,19)<7},monthsInYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),this._leapYear(f.year?f.year():f)?13:12},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){return f=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear).year(),this.toJD(f===-1?1:f+1,7,1)-this.toJD(f,7,1)},daysInMonth:function(f,p){return f.year&&(p=f.month(),f=f.year()),this._validate(f,p,this.minDay,s.local.invalidMonth),p===12&&this.leapYear(f)||p===8&&d(this.daysInYear(f),10)===5?30:p===9&&d(this.daysInYear(f),10)===3?29:this.daysPerMonth[p-1]},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==6},extraInfo:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);f=g.year(),p=g.month(),m=g.day();var b=f<=0?f+1:f,v=this.jdEpoch+this._delay1(b)+this._delay2(b)+m+1;if(p<7){for(var h=7;h<=this.monthsInYear(f);h++)v+=this.daysInMonth(f,h);for(h=1;h=this.toJD(p===-1?1:p+1,7,1);)p++;for(var m=fthis.toJD(p,m,this.daysInMonth(p,m));)m++;var g=f-this.toJD(p,m,1)+1;return this.newDate(p,m,g)}}),s.calendars.hebrew=c},43805:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(d){return(11*this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year()+14)%30<11},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){return this.leapYear(d)?355:354},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==5},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return d=m.year(),f=m.month(),d=d<=0?d+1:d,(p=m.day())+Math.ceil(29.5*(f-1))+354*(d-1)+Math.floor((3+11*d)/30)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d)+.5;var f=Math.floor((30*(d-this.jdEpoch)+10646)/10631);f=f<=0?f-1:f;var p=Math.min(12,Math.ceil((d-29-this.toJD(f,1,1))/29.5)+1),m=d-this.toJD(f,p,1)+1;return this.newDate(f,p,m)}}),s.calendars.islamic=c},88874:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()<0?f.year()+1:f.year())%4==0},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(4-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return d=m.year(),f=m.month(),p=m.day(),d<0&&d++,f<=2&&(d--,f+=12),Math.floor(365.25*(d+4716))+Math.floor(30.6001*(f+1))+p-1524.5},fromJD:function(d){var f=Math.floor(d+.5)+1524,p=Math.floor((f-122.1)/365.25),m=Math.floor(365.25*p),g=Math.floor((f-m)/30.6001),b=g-Math.floor(g<14?1:13),v=p-Math.floor(b>2?4716:4715),h=f-m-Math.floor(30.6001*g);return v<=0&&v--,this.newDate(v,b,h)}}),s.calendars.julian=c},83290:function(i,o,a){var s=a(63489),u=a(56131);function c(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}function d(p,m){return p-m*Math.floor(p/m)}function f(p,m){return d(p-1,m)+1}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),!1},formatYear:function(p){p=this._validate(p,this.minMonth,this.minDay,s.local.invalidYear).year();var m=Math.floor(p/400);return p%=400,p+=p<0?400:0,m+"."+Math.floor(p/20)+"."+p%20},forYear:function(p){if((p=p.split(".")).length<3)throw"Invalid Mayan year";for(var m=0,g=0;g19||g>0&&b<0)throw"Invalid Mayan year";m=20*m+b}return m},monthsInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),18},weekOfYear:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate),0},daysInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),360},daysInMonth:function(p,m){return this._validate(p,m,this.minDay,s.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate).day()},weekDay:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate),!0},extraInfo:function(p,m,g){var b=this._validate(p,m,g,s.local.invalidDate).toJD(),v=this._toHaab(b),h=this._toTzolkin(b);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[h[0]-1],tzolkinDay:h[0],tzolkinTrecena:h[1]}},_toHaab:function(p){var m=d(8+(p-=this.jdEpoch)+340,365);return[Math.floor(m/20)+1,d(m,20)]},_toTzolkin:function(p){return[f(20+(p-=this.jdEpoch),20),f(p+4,13)]},toJD:function(p,m,g){var b=this._validate(p,m,g,s.local.invalidDate);return b.day()+20*b.month()+360*b.year()+this.jdEpoch},fromJD:function(p){p=Math.floor(p)+.5-this.jdEpoch;var m=Math.floor(p/360);p%=360,p+=p<0?360:0;var g=Math.floor(p/20),b=p%20;return this.newDate(m,g,b)}}),s.calendars.mayan=c},29108:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar;var d=s.instance("gregorian");u(c.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return d.leapYear(p.year()+(p.year()<1?1:0)+1469)},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidMonth);(f=g.year())<0&&f++;for(var b=g.day(),v=1;v=this.toJD(p+1,1,1);)p++;for(var m=f-Math.floor(this.toJD(p,1,1)+.5)+1,g=1;m>this.daysInMonth(p,g);)m-=this.daysInMonth(p,g),g++;return this.newDate(p,g,m)}}),s.calendars.nanakshahi=c},55422:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(d){return this.daysInYear(d)!==this.daysPerYear},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){if(d=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[d]===void 0)return this.daysPerYear;for(var f=0,p=this.minMonth;p<=12;p++)f+=this.NEPALI_CALENDAR_DATA[d][p];return f},daysInMonth:function(d,f){return d.year&&(f=d.month(),d=d.year()),this._validate(d,f,this.minDay,s.local.invalidMonth),this.NEPALI_CALENDAR_DATA[d]===void 0?this.daysPerMonth[f-1]:this.NEPALI_CALENDAR_DATA[d][f]},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);d=m.year(),f=m.month(),p=m.day();var g=s.instance(),b=0,v=f,h=d;this._createMissingCalendarData(d);var y=d-(v>9||v===9&&p>=this.NEPALI_CALENDAR_DATA[h][0]?56:57);for(f!==9&&(b=p,v--);v!==9;)v<=0&&(v=12,h--),b+=this.NEPALI_CALENDAR_DATA[h][v],v--;return f===9?(b+=p-this.NEPALI_CALENDAR_DATA[h][0])<0&&(b+=g.daysInYear(y)):b+=this.NEPALI_CALENDAR_DATA[h][9]-this.NEPALI_CALENDAR_DATA[h][0],g.newDate(y,1,1).add(b,"d").toJD()},fromJD:function(d){var f=s.instance().fromJD(d),p=f.year(),m=f.dayOfYear(),g=p+56;this._createMissingCalendarData(g);for(var b=9,v=this.NEPALI_CALENDAR_DATA[g][0],h=this.NEPALI_CALENDAR_DATA[g][b]-v+1;m>h;)++b>12&&(b=1,g++),h+=this.NEPALI_CALENDAR_DATA[g][b];var y=this.NEPALI_CALENDAR_DATA[g][b]-(h-m);return this.newDate(g,b,y)},_createMissingCalendarData:function(d){var f=this.daysPerMonth.slice(0);f.unshift(17);for(var p=d-1;p0?474:473))%2820+474+38)%2816<682},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-(g.dayOfWeek()+1)%7,"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==5},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);f=g.year(),p=g.month(),m=g.day();var b=f-(f>=0?474:473),v=474+d(b,2820);return m+(p<=7?31*(p-1):30*(p-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(b/2820)+this.jdEpoch-1},fromJD:function(f){var p=(f=Math.floor(f)+.5)-this.toJD(475,1,1),m=Math.floor(p/1029983),g=d(p,1029983),b=2820;if(g!==1029982){var v=Math.floor(g/366),h=d(g,366);b=Math.floor((2134*v+2816*h+2815)/1028522)+v+1}var y=b+2820*m+474;y=y<=0?y-1:y;var w=f-this.toJD(y,1,1)+1,_=w<=186?Math.ceil(w/31):Math.ceil((w-6)/30),x=f-this.toJD(y,_,1)+1;return this.newDate(y,_,x)}}),s.calendars.persian=c,s.calendars.jalali=c},31320:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,m){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),m=this._g2tYear(p.year());return this.newDate(m,p.month(),p.day())},_t2gYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)},_g2tYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)}}),s.calendars.taiwan=d},51367:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,m){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),m=this._g2tYear(p.year());return this.newDate(m,p.month(),p.day())},_t2gYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)},_g2tYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)}}),s.calendars.thai=d},21457:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this.daysInYear(p.year())===355},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){for(var p=0,m=1;m<=12;m++)p+=this.daysInMonth(f,m);return p},daysInMonth:function(f,p){for(var m=this._validate(f,p,this.minDay,s.local.invalidMonth).toJD()-24e5+.5,g=0,b=0;bm)return d[g]-d[g-1];g++}return 30},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==5},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate),b=12*(g.year()-1)+g.month()-15292;return g.day()+d[b-1]-1+24e5-.5},fromJD:function(f){for(var p=f-24e5+.5,m=0,g=0;gp);g++)m++;var b=m+15292,v=Math.floor((b-1)/12),h=v+1,y=b-12*v,w=p-d[m-1]+1;return this.newDate(h,y,w)},isValid:function(f,p,m){var g=s.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(g=(f=f.year!=null?f.year:f)>=1276&&f<=1500),g},_validate:function(f,p,m,g){var b=s.baseCalendar.prototype._validate.apply(this,arguments);if(b.year<1276||b.year>1500)throw g.replace(/\{0\}/,this.local.name);return b}}),s.calendars.ummalqura=c;var d=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(i,o,a){var s=a(56131);function u(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function c(g,b,v,h){if(this._calendar=g,this._year=b,this._month=v,this._day=h,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function d(g,b){return"000000".substring(0,b-(g=""+g).length)+g}function f(){this.shortYearCutoff="+10"}function p(g){this.local=this.regionalOptions[g]||this.regionalOptions[""]}s(u.prototype,{instance:function(g,b){g=(g||"gregorian").toLowerCase(),b=b||"";var v=this._localCals[g+"-"+b];if(!v&&this.calendars[g]&&(v=new this.calendars[g](b),this._localCals[g+"-"+b]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return v},newDate:function(g,b,v,h,y){return(h=(g!=null&&g.year?g.calendar():typeof h=="string"?this.instance(h,y):h)||this.instance()).newDate(g,b,v)},substituteDigits:function(g){return function(b){return(b+"").replace(/[0-9]/g,function(v){return g[v]})}},substituteChineseDigits:function(g,b){return function(v){for(var h="",y=0;v>0;){var w=v%10;h=(w===0?"":g[w]+b[y])+h,y++,v=Math.floor(v/10)}return h.indexOf(g[1]+b[1])===0&&(h=h.substr(1)),h||g[0]}}}),s(c.prototype,{newDate:function(g,b,v){return this._calendar.newDate(g??this,b,v)},year:function(g){return arguments.length===0?this._year:this.set(g,"y")},month:function(g){return arguments.length===0?this._month:this.set(g,"m")},day:function(g){return arguments.length===0?this._day:this.set(g,"d")},date:function(g,b,v){if(!this._calendar.isValid(g,b,v))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,this._month=b,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(g,b){return this._calendar.add(this,g,b)},set:function(g,b){return this._calendar.set(this,g,b)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(m.local.differentCalendars||m.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var b=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return b===0?0:b<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(g){return this._calendar.fromJD(g)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(g){return this._calendar.fromJSDate(g)},toString:function(){return(this.year()<0?"-":"")+d(Math.abs(this.year()),4)+"-"+d(this.month(),2)+"-"+d(this.day(),2)}}),s(f.prototype,{_validateLevel:0,newDate:function(g,b,v){return g==null?this.today():(g.year&&(this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),v=g.day(),b=g.month(),g=g.year()),new c(this,g,b,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){return this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return(b.year()<0?"-":"")+d(Math.abs(b.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),12},monthOfYear:function(g,b){var v=this._validate(g,b,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(g,b){var v=(b+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,v,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth),v},daysInYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return this.leapYear(b)?366:365},dayOfYear:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate);return h.toJD()-this.newDate(h.year(),this.fromMonthOfYear(h.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(h))+2)%this.daysInWeek()},extraInfo:function(g,b,v){return this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),{}},add:function(g,b,v){return this._validate(g,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,b,v),b,v)},_add:function(g,b,v){if(this._validateLevel++,v==="d"||v==="w"){var h=g.toJD()+b*(v==="w"?this.daysInWeek():1),y=g.calendar().fromJD(h);return this._validateLevel--,[y.year(),y.month(),y.day()]}try{var w=g.year()+(v==="y"?b:0),_=g.monthOfYear()+(v==="m"?b:0);y=g.day(),v==="y"?(g.month()!==this.fromMonthOfYear(w,_)&&(_=this.newDate(w,g.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(w)),y=Math.min(y,this.daysInMonth(w,this.fromMonthOfYear(w,_)))):v==="m"&&(function(T){for(;_k-1+T.minMonth;)w++,_-=k,k=T.monthsInYear(w)}(this),y=Math.min(y,this.daysInMonth(w,this.fromMonthOfYear(w,_))));var x=[w,this.fromMonthOfYear(w,_),y];return this._validateLevel--,x}catch(T){throw this._validateLevel--,T}},_correctAdd:function(g,b,v,h){if(!(this.hasYearZero||h!=="y"&&h!=="m"||b[0]!==0&&g.year()>0==b[0]>0)){var y={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[h],w=v<0?-1:1;b=this._add(g,v*y[0]+w*y[1],y[2])}return g.date(b[0],b[1],b[2])},set:function(g,b,v){this._validate(g,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate);var h=v==="y"?b:g.year(),y=v==="m"?b:g.month(),w=v==="d"?b:g.day();return v!=="y"&&v!=="m"||(w=Math.min(w,this.daysInMonth(h,y))),g.date(h,y,w)},isValid:function(g,b,v){this._validateLevel++;var h=this.hasYearZero||g!==0;if(h){var y=this.newDate(g,b,this.minDay);h=b>=this.minMonth&&b-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),k=y-(T>2.5?4716:4715);return k<=0&&k--,this.newDate(k,T,x)},toJSDate:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),y=new Date(h.year(),h.month()-1,h.day());return y.setHours(0),y.setMinutes(0),y.setSeconds(0),y.setMilliseconds(0),y.setHours(y.getHours()>12?y.getHours()+2:0),y},fromJSDate:function(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.getDate())}});var m=i.exports=new u;m.cdate=c,m.baseCalendar=f,m.calendars.gregorian=p},94338:function(i,o,a){var s=a(56131),u=a(63489);s(u.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),u.local=u.regionalOptions[""],s(u.cdate.prototype,{formatDate:function(c,d){return typeof c!="string"&&(d=c,c=""),this._calendar.formatDate(c||"",this,d)}}),s(u.baseCalendar.prototype,{UNIX_EPOCH:u.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:u.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(c,d,f){if(typeof c!="string"&&(f=d,d=c,c=""),!d)return"";if(d.calendar()!==this)throw u.local.invalidFormat||u.regionalOptions[""].invalidFormat;c=c||this.local.dateFormat;for(var p,m,g,b=(f=f||{}).dayNamesShort||this.local.dayNamesShort,v=f.dayNames||this.local.dayNames,h=f.monthNumbers||this.local.monthNumbers,y=f.monthNamesShort||this.local.monthNamesShort,w=f.monthNames||this.local.monthNames,_=(f.calculateWeek||this.local.calculateWeek,function(E,I){for(var A=1;P+A1}),x=function(E,I,A,F){var j=""+I;if(_(E,F))for(;j.length1},O=function(N,R){var q=M(N,R),Y=[2,3,q?4:2,q?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+Y+"}"),W=d.substring(F).match(L);if(!W)throw(u.local.missingNumberAt||u.regionalOptions[""].missingNumberAt).replace(/\{0\}/,F);return F+=W[0].length,parseInt(W[0],10)},D=this,P=function(){if(typeof v=="function"){M("m");var N=v.call(D,d.substring(F));return F+=N.length,N}return O("m")},E=function(N,R,q,Y){for(var L=M(N,Y)?q:R,W=0;W-1){x=1,T=k;for(var B=this.daysInMonth(_,x);T>B;B=this.daysInMonth(_,x))x++,T-=B}return w>-1?this.fromJD(w):this.newDate(_,x,T)},determineDate:function(c,d,f,p,m){f&&typeof f!="object"&&(m=p,p=f,f=null),typeof p!="string"&&(m=p,p="");var g=this;return d=d?d.newDate():null,c==null?d:typeof c=="string"?function(b){try{return g.parseDate(p,b,m)}catch{}for(var v=((b=b.toLowerCase()).match(/^c/)&&f?f.newDate():null)||g.today(),h=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,y=h.exec(b);y;)v.add(parseInt(y[1],10),y[2]||"d"),y=h.exec(b);return v}(c):typeof c=="number"?isNaN(c)||c===1/0||c===-1/0?d:g.today().add(c,"d"):g.newDate(c)}})},69862:function(){},40964:function(){},72077:function(i,o,a){var s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],u=typeof globalThis>"u"?a.g:globalThis;i.exports=function(){for(var c=[],d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(_){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(T){return T.__proto__||Object.getPrototypeOf(T)},b(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],h=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],y=typeof window<"u";function w(_){var x=function(T){c(S,T);var k=f(S);function S(C){var M;return a(this,S),M=k.call(this,C),M.p=Promise.resolve(),M.resizeHandler=null,M.handlers={},M.syncWindowResize=M.syncWindowResize.bind(m(M)),M.syncEventHandlers=M.syncEventHandlers.bind(m(M)),M.attachUpdateEvents=M.attachUpdateEvents.bind(m(M)),M.getRef=M.getRef.bind(m(M)),M.handleUpdate=M.handleUpdate.bind(m(M)),M.figureCallback=M.figureCallback.bind(m(M)),M.updatePlotly=M.updatePlotly.bind(m(M)),M}return u(S,[{key:"updatePlotly",value:function(M,O,D){var P=this;this.p=this.p.then(function(){if(!P.unmounting){if(!P.el)throw new Error("Missing element reference");return _.react(P.el,{data:P.props.data,layout:P.props.layout,config:P.props.config,frames:P.props.frames})}}).then(function(){P.unmounting||(P.syncWindowResize(M),P.syncEventHandlers(),P.figureCallback(O),D&&P.attachUpdateEvents())}).catch(function(E){P.props.onError&&P.props.onError(E)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(M){this.unmounting=!1;var O=M.frames&&M.frames.length?M.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,P=!(M.layout===this.props.layout&&M.data===this.props.data&&M.config===this.props.config&&D===O),E=M.revision!==void 0,I=M.revision!==this.props.revision;!P&&(!E||E&&!I)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&y&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||h.forEach(function(O){M.el.on(O,M.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||h.forEach(function(O){M.el.removeListener(O,M.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(M){if(typeof M=="function"){var O=this.el,D=O.data,P=O.layout,E=this.el._transitionData?this.el._transitionData._frames:null,I={data:D,layout:P,frames:E};M(I,this.el)}}},{key:"syncWindowResize",value:function(M){var O=this;y&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(O.el)},window.addEventListener("resize",this.resizeHandler),M&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(M){this.el=M,this.props.debug&&y&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var M=this;v.forEach(function(O){var D=M.props["on"+O],P=M.handlers[O],E=!!P;D&&!E?M.addEventHandler(O,D):!D&&E?M.removeEventHandler(O):D&&E&&D!==P&&(M.removeEventHandler(O),M.addEventHandler(O,D))})}},{key:"addEventHandler",value:function(M,O){this.handlers[M]=O,this.el.on(this.getPlotlyEventName(M),this.handlers[M])}},{key:"removeEventHandler",value:function(M){this.el.removeListener(this.getPlotlyEventName(M),this.handlers[M]),delete this.handlers[M]}},{key:"getPlotlyEventName",value:function(M){return"plotly_"+M.toLowerCase()}},{key:"render",value:function(){return n.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),S}(n.Component);return x.propTypes={data:r.default.arrayOf(r.default.object),config:r.default.object,layout:r.default.object,frames:r.default.arrayOf(r.default.object),revision:r.default.number,onInitialized:r.default.func,onPurge:r.default.func,onError:r.default.func,onUpdate:r.default.func,debug:r.default.bool,style:r.default.object,className:r.default.string,useResizeHandler:r.default.bool,divId:r.default.string},v.forEach(function(T){x.propTypes["on"+T]=r.default.func}),x.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},x}})(Bz);const Upe=lr(Bz),Wz=Upe(qpe),Hpe=Qe.createContext(null),qz=()=>ge.useContext(Hpe),ub=e=>{var n;const t=qz();return ke.jsx("div",{children:ke.jsx(Wz,{data:e.data,layout:{...e.layout,title:void 0,xaxis:{...(n=e.layout)==null?void 0:n.xaxis,type:t!=null&&t.isXaxisAsCategorical?"category":void 0}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}})})};class Uz extends Qe.Component{render(){return ke.jsx(cr,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}const Hz=()=>ke.jsx("div",{children:"Not implemented"}),Vpe=e=>{const t=e.activeTab===-1?0:e.activeTab;return ke.jsxs("div",{children:[ke.jsx(Nz,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map((n,r)=>ke.jsx(J3,{disabled:n.disabled??!1,label:ke.jsx(Ia,{className:e.tabStyle,children:ke.jsxs(Ia,{display:"flex",sx:{fontSize:"0.875rem"},children:[ke.jsx("span",{children:n.icon}),n.title]})})},r))}),ke.jsx(Ia,{children:e.tabs.map((n,r)=>ke.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==r,children:(e.activeTab===-1?0:e.activeTab)!==r?ke.jsx("div",{}):n.tab},r))})]})},EM=e=>{const[t,n]=ge.useState({activeTab:0});return ke.jsx(Qe.Fragment,{children:ke.jsx(Vpe,{activeTab:t.activeTab,onNewTabSelected:(r,l)=>n(i=>({...i,activeTab:l})),tabs:e.tabs})})},Gpe=e=>ke.jsx(EM,{tabs:e.graphs.map(t=>({title:t.title,tab:ke.jsx(ub,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),Ype=e=>ke.jsx(rfe,{children:ke.jsxs(PM,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[ke.jsx(AM,{children:ke.jsxs(pm,{children:[ke.jsx(gi,{children:e.header[0]},-1),e.header.slice(1).map((t,n)=>ke.jsx(gi,{align:"right",children:t},n))]})}),ke.jsx(OM,{children:e.data.map(t=>ke.jsxs(pm,{children:[ke.jsx(gi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map((n,r)=>ke.jsx(gi,{align:"right",children:n},r))]},t[0]))})]})});var Vz={},Gz={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Gz);var Cn=Gz.exports,kw={exports:{}},iD;function Ir(){return iD||(iD=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r{let t;const n=new Set,r=(s,u)=>{const c=typeof s=="function"?s(t):s;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},l=()=>t,a={setState:r,getState:l,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(Qpe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,l,a),a},Kz=e=>e?fD(e):fD;var Zz={exports:{}},Qz={},Jz={exports:{}},eB={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -359,7 +359,7 @@ should equal * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Wd=ge;function nhe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rhe=typeof Object.is=="function"?Object.is:nhe,ahe=Wd.useState,ohe=Wd.useEffect,ihe=Wd.useLayoutEffect,lhe=Wd.useDebugValue;function she(e,t){var n=t(),r=ahe({inst:{value:n,getSnapshot:t}}),l=r[0].inst,i=r[1];return ihe(function(){l.value=n,l.getSnapshot=t,Iw(l)&&i({inst:l})},[e,n,t]),ohe(function(){return Iw(l)&&i({inst:l}),e(function(){Iw(l)&&i({inst:l})})},[e]),lhe(n),n}function Iw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rhe(e,n)}catch{return!0}}function uhe(e,t){return t()}var che=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?uhe:she;tB.useSyncExternalStore=Wd.useSyncExternalStore!==void 0?Wd.useSyncExternalStore:che;eB.exports=tB;var nB=eB.exports;/** + */var Bd=ge;function Jpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ehe=typeof Object.is=="function"?Object.is:Jpe,the=Bd.useState,nhe=Bd.useEffect,rhe=Bd.useLayoutEffect,ahe=Bd.useDebugValue;function ohe(e,t){var n=t(),r=the({inst:{value:n,getSnapshot:t}}),l=r[0].inst,i=r[1];return rhe(function(){l.value=n,l.getSnapshot=t,Lw(l)&&i({inst:l})},[e,n,t]),nhe(function(){return Lw(l)&&i({inst:l}),e(function(){Lw(l)&&i({inst:l})})},[e]),ahe(n),n}function Lw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ehe(e,n)}catch{return!0}}function ihe(e,t){return t()}var lhe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ihe:ohe;eB.useSyncExternalStore=Bd.useSyncExternalStore!==void 0?Bd.useSyncExternalStore:lhe;Jz.exports=eB;var tB=Jz.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -367,11 +367,11 @@ should equal * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var db=ge,dhe=nB;function fhe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var phe=typeof Object.is=="function"?Object.is:fhe,hhe=dhe.useSyncExternalStore,mhe=db.useRef,ghe=db.useEffect,vhe=db.useMemo,yhe=db.useDebugValue;Jz.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var i=mhe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=vhe(function(){function s(p){if(!u){if(u=!0,c=p,p=r(p),l!==void 0&&o.hasValue){var m=o.value;if(l(m,p))return d=m}return d=p}if(m=d,phe(c,p))return m;var g=r(p);return l!==void 0&&l(m,g)?m:(c=p,d=g)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return s(t())},f===null?void 0:function(){return s(f())}]},[t,n,r,l]);var a=hhe(e,i[0],i[1]);return ghe(function(){o.hasValue=!0,o.value=a},[a]),yhe(a),a};Qz.exports=Jz;var bhe=Qz.exports;const xhe=lr(bhe),{useSyncExternalStoreWithSelector:whe}=xhe;function rB(e,t=e.getState,n){const r=whe(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return ge.useDebugValue(r),r}const pD=e=>{const t=typeof e=="function"?Zz(e):e,n=(r,l)=>rB(t,r,l);return Object.assign(n,t),n},aB=e=>e?pD(e):pD;var _he=e=>aB(e);const The=Object.freeze(Object.defineProperty({__proto__:null,create:aB,createStore:Zz,default:_he,useStore:rB},Symbol.toStringTag,{value:"Module"})),khe=Qn(The);var u0={exports:{}},$w={exports:{}},hD;function She(){return hD||(hD=1,function(e,t){(function(n,r){e.exports=r()})(Oo,function(){var n=typeof Promise=="function",r=typeof self=="object"?self:Oo,l=typeof Symbol<"u",i=typeof Map<"u",o=typeof Set<"u",a=typeof WeakMap<"u",s=typeof WeakSet<"u",u=typeof DataView<"u",c=l&&typeof Symbol.iterator<"u",d=l&&typeof Symbol.toStringTag<"u",f=o&&typeof Set.prototype.entries=="function",p=i&&typeof Map.prototype.entries=="function",m=f&&Object.getPrototypeOf(new Set().entries()),g=p&&Object.getPrototypeOf(new Map().entries()),b=c&&typeof Array.prototype[Symbol.iterator]=="function",v=b&&Object.getPrototypeOf([][Symbol.iterator]()),h=c&&typeof String.prototype[Symbol.iterator]=="function",y=h&&Object.getPrototypeOf(""[Symbol.iterator]()),w=8,_=-1;function x(T){var k=typeof T;if(k!=="object")return k;if(T===null)return"null";if(T===r)return"global";if(Array.isArray(T)&&(d===!1||!(Symbol.toStringTag in T)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&T===window.location)return"Location";if(typeof window.document=="object"&&T===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&T===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&T===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&T instanceof window.HTMLElement){if(T.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(T.tagName==="TD")return"HTMLTableDataCellElement";if(T.tagName==="TH")return"HTMLTableHeaderCellElement"}}var S=d&&T[Symbol.toStringTag];if(typeof S=="string")return S;var C=Object.getPrototypeOf(T);return C===RegExp.prototype?"RegExp":C===Date.prototype?"Date":n&&C===Promise.prototype?"Promise":o&&C===Set.prototype?"Set":i&&C===Map.prototype?"Map":s&&C===WeakSet.prototype?"WeakSet":a&&C===WeakMap.prototype?"WeakMap":u&&C===DataView.prototype?"DataView":i&&C===g?"Map Iterator":o&&C===m?"Set Iterator":b&&C===v?"Array Iterator":h&&C===y?"String Iterator":C===null?"Object":Object.prototype.toString.call(T).slice(w,_)}return x})}($w)),$w.exports}var mD;function oB(){if(mD)return u0.exports;mD=1;/*! + */var cb=ge,she=tB;function uhe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var che=typeof Object.is=="function"?Object.is:uhe,dhe=she.useSyncExternalStore,fhe=cb.useRef,phe=cb.useEffect,hhe=cb.useMemo,mhe=cb.useDebugValue;Qz.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var i=fhe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=hhe(function(){function s(p){if(!u){if(u=!0,c=p,p=r(p),l!==void 0&&o.hasValue){var m=o.value;if(l(m,p))return d=m}return d=p}if(m=d,che(c,p))return m;var g=r(p);return l!==void 0&&l(m,g)?m:(c=p,d=g)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return s(t())},f===null?void 0:function(){return s(f())}]},[t,n,r,l]);var a=dhe(e,i[0],i[1]);return phe(function(){o.hasValue=!0,o.value=a},[a]),mhe(a),a};Zz.exports=Qz;var ghe=Zz.exports;const vhe=lr(ghe),{useSyncExternalStoreWithSelector:yhe}=vhe;function nB(e,t=e.getState,n){const r=yhe(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return ge.useDebugValue(r),r}const pD=e=>{const t=typeof e=="function"?Kz(e):e,n=(r,l)=>nB(t,r,l);return Object.assign(n,t),n},rB=e=>e?pD(e):pD;var bhe=e=>rB(e);const xhe=Object.freeze(Object.defineProperty({__proto__:null,create:rB,createStore:Kz,default:bhe,useStore:nB},Symbol.toStringTag,{value:"Module"})),whe=Qn(xhe);var u0={exports:{}},Iw={exports:{}},hD;function _he(){return hD||(hD=1,function(e,t){(function(n,r){e.exports=r()})(Oo,function(){var n=typeof Promise=="function",r=typeof self=="object"?self:Oo,l=typeof Symbol<"u",i=typeof Map<"u",o=typeof Set<"u",a=typeof WeakMap<"u",s=typeof WeakSet<"u",u=typeof DataView<"u",c=l&&typeof Symbol.iterator<"u",d=l&&typeof Symbol.toStringTag<"u",f=o&&typeof Set.prototype.entries=="function",p=i&&typeof Map.prototype.entries=="function",m=f&&Object.getPrototypeOf(new Set().entries()),g=p&&Object.getPrototypeOf(new Map().entries()),b=c&&typeof Array.prototype[Symbol.iterator]=="function",v=b&&Object.getPrototypeOf([][Symbol.iterator]()),h=c&&typeof String.prototype[Symbol.iterator]=="function",y=h&&Object.getPrototypeOf(""[Symbol.iterator]()),w=8,_=-1;function x(T){var k=typeof T;if(k!=="object")return k;if(T===null)return"null";if(T===r)return"global";if(Array.isArray(T)&&(d===!1||!(Symbol.toStringTag in T)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&T===window.location)return"Location";if(typeof window.document=="object"&&T===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&T===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&T===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&T instanceof window.HTMLElement){if(T.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(T.tagName==="TD")return"HTMLTableDataCellElement";if(T.tagName==="TH")return"HTMLTableHeaderCellElement"}}var S=d&&T[Symbol.toStringTag];if(typeof S=="string")return S;var C=Object.getPrototypeOf(T);return C===RegExp.prototype?"RegExp":C===Date.prototype?"Date":n&&C===Promise.prototype?"Promise":o&&C===Set.prototype?"Set":i&&C===Map.prototype?"Map":s&&C===WeakSet.prototype?"WeakSet":a&&C===WeakMap.prototype?"WeakMap":u&&C===DataView.prototype?"DataView":i&&C===g?"Map Iterator":o&&C===m?"Set Iterator":b&&C===v?"Array Iterator":h&&C===y?"String Iterator":C===null?"Object":Object.prototype.toString.call(T).slice(w,_)}return x})}(Iw)),Iw.exports}var mD;function aB(){if(mD)return u0.exports;mD=1;/*! * deep-eql * Copyright(c) 2013 Jake Luer * MIT Licensed - */var e=She();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(T){return T[this._key]},set:function(T,k){Object.isExtensible(T)&&Object.defineProperty(T,this._key,{value:k,configurable:!0})}};var n=typeof WeakMap=="function"?WeakMap:t;/*! + */var e=_he();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(T){return T[this._key]},set:function(T,k){Object.isExtensible(T)&&Object.defineProperty(T,this._key,{value:k,configurable:!0})}};var n=typeof WeakMap=="function"?WeakMap:t;/*! * Check to see if the MemoizeMap has recorded a result of the two operands * * @param {Mixed} leftHandOperand @@ -471,24 +471,24 @@ should equal * * @param {Mixed} value * @return {Boolean} result - */function w(x){return x===null||typeof x!="object"}function _(x){return x.map(function(k){return typeof k=="symbol"?k.toString():k})}return u0.exports}var Nw={},gD;function iB(){return gD||(gD=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={error:"Data could not be retrieved",grouping:{groupedBy:"Grouped By:",placeholder:"Drag headers here to group by"},pagination:{labelDisplayedRows:"{from}-{to} of {count}",labelRowsPerPage:"Rows per page:",labelRows:"rows",firstAriaLabel:"First Page",firstTooltip:"First Page",previousAriaLabel:"Previous Page",previousTooltip:"Previous Page",nextAriaLabel:"Next Page",nextTooltip:"Next Page",lastAriaLabel:"Last Page",lastTooltip:"Last Page"},toolbar:{addRemoveColumns:"Add or remove columns",nRowsSelected:"{0} row(s) selected",showColumnsTitle:"Show Columns",showColumnsAriaLabel:"Show Columns",exportTitle:"Export",exportAriaLabel:"Export",searchTooltip:"Search",searchPlaceholder:"Search",searchAriaLabel:"Search",clearSearchAriaLabel:"Clear Search"},header:{actions:"Actions"},body:{emptyDataSourceMessage:"No records to display",editRow:{saveTooltip:"Save",cancelTooltip:"Cancel",deleteText:"Are you sure you want to delete this row?"},filterRow:{},dateTimePickerLocalization:"Filter",addTooltip:"Add",deleteTooltip:"Delete",editTooltip:"Edit",bulkEditTooltip:"Edit All",bulkEditApprove:"Save all changes",bulkEditCancel:"Discard all changes"}};e.default=t}(Nw)),Nw}var Fw={},vD;function lB(){return vD||(vD=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={idSynonym:"id",actionsColumnIndex:0,addRowPosition:"last",columnsButton:!1,detailPanelType:"multiple",debounceInterval:200,doubleHorizontalScroll:!1,emptyRowsWhenPaging:!0,exportAllData:!1,exportMenu:[],filtering:!1,groupTitle:!1,header:!0,headerSelectionProps:{},hideFilterIcons:!1,loadingType:"overlay",padding:"normal",searchAutoFocus:!1,paging:!0,pageSize:5,pageSizeOptions:[5,10,20],paginationType:"normal",paginationPosition:"bottom",showEmptyDataSourceMessage:!0,showFirstLastPageButtons:!0,showSelectAllCheckbox:!0,showSelectGroupCheckbox:!0,search:!0,showTitle:!0,showTextRowsSelected:!0,showDetailPanelIcon:!0,tableLayout:"auto",tableWidth:"full",toolbarButtonAlignment:"right",searchFieldAlignment:"right",searchFieldStyle:{},searchFieldVariant:"standard",selection:!1,selectionProps:{},maxColumnSort:1,clientSorting:!0,groupChipProps:{},defaultOrderByCollection:[],showColumnSortOrder:!1,keepSortDirectionOnColumnSwitch:!0,toolbar:!0,defaultExpanded:!1,detailPanelColumnAlignment:"left",detailPanelOffset:{left:0,right:0},thirdSortClick:!0,overflowY:"auto",numberOfPagesAround:1,actionsHeaderIndex:0,draggable:!0};e.default=t}(Fw)),Fw}var jw={},rp={},zw={};const Che=Qn(gre);var yD;function Ta(){return yD||(yD=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Che}(zw)),zw}var bD;function Mhe(){if(bD)return rp;bD=1;var e=Cn;Object.defineProperty(rp,"__esModule",{value:!0}),rp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");return rp.default=r,rp}var ap={},xD;function Phe(){if(xD)return ap;xD=1;var e=Cn;Object.defineProperty(ap,"__esModule",{value:!0}),ap.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove");return ap.default=r,ap}var op={},wD;function Ohe(){if(wD)return op;wD=1;var e=Cn;Object.defineProperty(op,"__esModule",{value:!0}),op.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");return op.default=r,op}var ip={},_D;function Ahe(){if(_D)return ip;_D=1;var e=Cn;Object.defineProperty(ip,"__esModule",{value:!0}),ip.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.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 19l-4.99-5zm-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 14z"}),"Search");return ip.default=r,ip}var lp={},TD;function Dhe(){if(TD)return lp;TD=1;var e=Cn;Object.defineProperty(lp,"__esModule",{value:!0}),lp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");return lp.default=r,lp}const RM=Qn(Tue);var sp={},kD;function Ehe(){if(kD)return sp;kD=1;var e=Cn;Object.defineProperty(sp,"__esModule",{value:!0}),sp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");return sp.default=r,sp}var up={},SD;function Rhe(){if(SD)return up;SD=1;var e=Cn;Object.defineProperty(up,"__esModule",{value:!0}),up.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");return up.default=r,up}var cp={},CD;function Lhe(){if(CD)return cp;CD=1;var e=Cn;Object.defineProperty(cp,"__esModule",{value:!0}),cp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");return cp.default=r,cp}var dp={},MD;function Ihe(){if(MD)return dp;MD=1;var e=Cn;Object.defineProperty(dp,"__esModule",{value:!0}),dp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList");return dp.default=r,dp}var fp={},PD;function $he(){if(PD)return fp;PD=1;var e=Cn;Object.defineProperty(fp,"__esModule",{value:!0}),fp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");return fp.default=r,fp}var pp={},OD;function Nhe(){if(OD)return pp;OD=1;var e=Cn;Object.defineProperty(pp,"__esModule",{value:!0}),pp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");return pp.default=r,pp}var hp={},AD;function Fhe(){if(AD)return hp;AD=1;var e=Cn;Object.defineProperty(hp,"__esModule",{value:!0}),hp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");return hp.default=r,hp}var mp={},DD;function jhe(){if(DD)return mp;DD=1;var e=Cn;Object.defineProperty(mp,"__esModule",{value:!0}),mp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");return mp.default=r,mp}var gp={},ED;function zhe(){if(ED)return gp;ED=1;var e=Cn;Object.defineProperty(gp,"__esModule",{value:!0}),gp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.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"}),"Clear");return gp.default=r,gp}var vp={},RD;function Bhe(){if(RD)return vp;RD=1;var e=Cn;Object.defineProperty(vp,"__esModule",{value:!0}),vp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");return vp.default=r,vp}var yp={},LD;function Whe(){if(LD)return yp;LD=1;var e=Cn;Object.defineProperty(yp,"__esModule",{value:!0}),yp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddBox");return yp.default=r,yp}var ID;function sB(){return ID||(ID=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Mhe()),l=t(Phe()),i=t(Ohe()),o=t(Ahe()),a=t(Dhe()),s=t(RM),u=t(Ehe()),c=t(Rhe()),d=t(Lhe()),f=t(Ihe()),p=t($he()),m=t(Nhe()),g=t(Fhe()),b=t(jhe()),v=t(zhe()),h=t(Bhe()),y=t(Whe()),w=t(Ir()),_=T(ge);function x(S){if(typeof WeakMap!="function")return null;var C=new WeakMap,M=new WeakMap;return(x=function(D){return D?M:C})(S)}function T(S,C){if(S&&S.__esModule)return S;if(S===null||n(S)!=="object"&&typeof S!="function")return{default:S};var M=x(C);if(M&&M.has(S))return M.get(S);var O={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in S)if(P!=="default"&&Object.prototype.hasOwnProperty.call(S,P)){var E=D?Object.getOwnPropertyDescriptor(S,P):null;E&&(E.get||E.set)?Object.defineProperty(O,P,E):O[P]=S[P]}return O.default=S,M&&M.set(S,O),O}var k={Add:(0,_.forwardRef)(function(S,C){return _.default.createElement(y.default,(0,w.default)({},S,{ref:C,"data-testid":"add_box"}))}),Check:(0,_.forwardRef)(function(S,C){return _.default.createElement(h.default,(0,w.default)({},S,{ref:C,"data-testid":"check"}))}),Clear:(0,_.forwardRef)(function(S,C){return _.default.createElement(v.default,(0,w.default)({},S,{ref:C,"data-testid":"clear"}))}),Delete:(0,_.forwardRef)(function(S,C){return _.default.createElement(b.default,(0,w.default)({},S,{ref:C,"data-testid":"delete_outline"}))}),DetailPanel:(0,_.forwardRef)(function(S,C){return _.default.createElement(g.default,(0,w.default)({},S,{ref:C,"data-testid":"chevron_right"}))}),Edit:(0,_.forwardRef)(function(S,C){return _.default.createElement(m.default,(0,w.default)({},S,{ref:C,"data-testid":"edit"}))}),Export:(0,_.forwardRef)(function(S,C){return _.default.createElement(p.default,(0,w.default)({},S,{ref:C,"data-testid":"save_alt"}))}),Filter:(0,_.forwardRef)(function(S,C){return _.default.createElement(f.default,(0,w.default)({},S,{ref:C,"data-testid":"filter_list"}))}),FirstPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(d.default,(0,w.default)({},S,{ref:C,"data-testid":"first_page"}))}),LastPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(c.default,(0,w.default)({},S,{ref:C,"data-testid":"last_page"}))}),NextPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(g.default,(0,w.default)({},S,{ref:C,"data-testid":"chevron_right"}))}),PreviousPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(u.default,(0,w.default)({},S,{ref:C,"data-testid":"chevron_left"}))}),ResetSearch:(0,_.forwardRef)(function(S,C){return _.default.createElement(v.default,(0,w.default)({},S,{ref:C,"data-testid":"clear"}))}),Resize:(0,_.forwardRef)(function(S,C){return _.default.createElement(s.default,(0,w.default)({},S,{ref:C,"data-testid":"drag_handle"}),"|")}),Retry:(0,_.forwardRef)(function(S,C){return _.default.createElement(a.default,(0,w.default)({},S,{ref:C,"data-testid":"replay"}))}),Search:(0,_.forwardRef)(function(S,C){return _.default.createElement(o.default,(0,w.default)({},S,{ref:C,"data-testid":"search"}))}),SortArrow:(0,_.forwardRef)(function(S,C){return _.default.createElement(i.default,(0,w.default)({},S,{ref:C,"data-testid":"arrow_downward"}))}),ThirdStateCheck:(0,_.forwardRef)(function(S,C){return _.default.createElement(l.default,(0,w.default)({},S,{ref:C,"data-testid":"remove"}))}),ViewColumn:(0,_.forwardRef)(function(S,C){return _.default.createElement(r.default,(0,w.default)({},S,{ref:C,"data-testid":"view_column"}))})};e.default=k}(jw)),jw}var Bw,$D;function qhe(){if($D)return Bw;$D=1;var e=function(h){return t(h)&&!n(h)};function t(v){return!!v&&typeof v=="object"}function n(v){var h=Object.prototype.toString.call(v);return h==="[object RegExp]"||h==="[object Date]"||i(v)}var r=typeof Symbol=="function"&&Symbol.for,l=r?Symbol.for("react.element"):60103;function i(v){return v.$$typeof===l}function o(v){return Array.isArray(v)?[]:{}}function a(v,h){return h.clone!==!1&&h.isMergeableObject(v)?g(o(v),v,h):v}function s(v,h,y){return v.concat(h).map(function(w){return a(w,y)})}function u(v,h){if(!h.customMerge)return g;var y=h.customMerge(v);return typeof y=="function"?y:g}function c(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(h){return Object.propertyIsEnumerable.call(v,h)}):[]}function d(v){return Object.keys(v).concat(c(v))}function f(v,h){try{return h in v}catch{return!1}}function p(v,h){return f(v,h)&&!(Object.hasOwnProperty.call(v,h)&&Object.propertyIsEnumerable.call(v,h))}function m(v,h,y){var w={};return y.isMergeableObject(v)&&d(v).forEach(function(_){w[_]=a(v[_],y)}),d(h).forEach(function(_){p(v,_)||(f(v,_)&&y.isMergeableObject(h[_])?w[_]=u(_,y)(v[_],h[_],y):w[_]=a(h[_],y))}),w}function g(v,h,y){y=y||{},y.arrayMerge=y.arrayMerge||s,y.isMergeableObject=y.isMergeableObject||e,y.cloneUnlessOtherwiseSpecified=a;var w=Array.isArray(h),_=Array.isArray(v),x=w===_;return x?w?y.arrayMerge(v,h,y):m(v,h,y):a(h,y)}g.all=function(h,y){if(!Array.isArray(h))throw new Error("first argument should be an array");return h.reduce(function(w,_){return g(w,_,y)},{})};var b=g;return Bw=b,Bw}var ND;function tg(){if(ND)return Ii;ND=1;var e=Cn;Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.useLocalizationStore=Ii.useIconStore=void 0,Ii.useMergeProps=v,Ii.useOptionStore=void 0,Ii.withContext=h;var t=e($a()),n=khe,r=e(ge),l=e(oB()),i=e(iB()),o=e(lB()),a=e(sB()),s=e(Vq());function u(y,w){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(y);w&&(x=x.filter(function(T){return Object.getOwnPropertyDescriptor(y,T).enumerable})),_.push.apply(_,x)}return _}function c(y){for(var w=1;w=0)&&(l[o]=n[o]);return l}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Uw)),Uw.exports}var BD;function cf(){return BD||(BD=1,function(e){var t=Vhe();function n(r,l){if(r==null)return{};var i=t(r,l),o,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(i[o]=r[o])}return i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(qw)),qw.exports}var WD;function Ghe(){return WD||(WD=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Hhe),r=t(Ir()),l=t(cf()),i=t(ge),o=["forwardedRef"];function a(u){var c=u.forwardedRef,d=(0,l.default)(u,o);return i.default.createElement(n.default,(0,r.default)({elevation:2},d,{ref:c}))}var s=i.default.forwardRef(function(c,d){return i.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(Ww)),Ww}var Hw={};const pc=Qn(Vie);var Vw={exports:{}},qD;function Yhe(){return qD||(qD=1,function(e,t){(function(r,l){e.exports=l(ge)})(Oo,function(n){return function(r){var l={};function i(o){if(l[o])return l[o].exports;var a=l[o]={exports:{},id:o,loaded:!1};return r[o].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}return i.m=r,i.c=l,i.p="",i(0)}([function(r,l,i){Object.defineProperty(l,"__esModule",{value:!0});var o=function(){function m(g,b){for(var v=0;vn.length)&&(r=n.length);for(var l=0,i=new Array(r);l0&&E++,g.hasDetailPanel&&E++,g.isTreeData&&E++,s.default.createElement(o.default,{style:{height:P*(v.paging&&v.emptyRowsWhenPaging?g.pageSize:1)},key:"empty-0"},s.default.createElement(a.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:g.columns.reduce(function(I,A){return A.hidden?I:I+1},E),key:"empty-"},b.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return s.default.createElement(s.default.Fragment,null,(0,i.default)(Array(O)).map(function(I,A){return s.default.createElement(o.default,{style:{height:P},key:"empty-"+A})}),O>0&&s.default.createElement(o.default,{style:{height:1},key:"empty-last1"}))}function _(O){return O.map(function(D,P){if(D.tableData.editing||g.bulkEditOpen)return s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:D,errorState:g.errorState,icons:h,localization:b.editRow,key:"row-"+D.tableData.uuid,mode:g.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:g.isTreeData,detailPanel:g.detailPanel,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,bulkEditChangedRows:g.bulkEditChangedRows,getFieldValue:g.getFieldValue,onBulkEditRowChanged:g.onBulkEditRowChanged,scrollWidth:g.scrollWidth});var E=g.isTreeData?[D.tableData.uuid]:[P+g.pageSize*g.currentPage];return s.default.createElement(g.components.Row,{components:g.components,data:D,index:P,errorState:g.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:g.onRowSelected,actions:g.actions,columns:g.columns,getFieldValue:g.getFieldValue,detailPanel:g.detailPanel,path:E,onToggleDetailPanel:g.onToggleDetailPanel,onRowClick:g.onRowClick,onRowDoubleClick:g.onRowDoubleClick,isTreeData:g.isTreeData,onTreeExpandChanged:g.onTreeExpandChanged,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,hasAnyEditingRow:g.hasAnyEditingRow,treeDataMaxLevel:g.treeDataMaxLevel,cellEditable:g.cellEditable,onCellEditStarted:g.onCellEditStarted,onCellEditFinished:g.onCellEditFinished,onRowEditStarted:g.onRowEditStarted,scrollWidth:g.scrollWidth})})}function x(O,D){return D.map(function(P,E){return s.default.createElement(g.components.GroupRow,{actions:g.actions,cellEditable:g.cellEditable,columns:g.columns,components:g.components,detailPanel:g.detailPanel,getFieldValue:g.getFieldValue,groupData:P,groups:O,hasAnyEditingRow:g.hasAnyEditingRow,icons:h,isTreeData:g.isTreeData,key:P.value==null?""+E:P.value,level:0,localization:b.editRow,onBulkEditRowChanged:g.onBulkEditRowChanged,onCellEditFinished:g.onCellEditFinished,onCellEditStarted:g.onCellEditStarted,onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,onGroupExpandChanged:g.onGroupExpandChanged,onRowClick:g.onRowClick,onGroupSelected:g.onGroupSelected,onRowSelected:g.onRowSelected,onToggleDetailPanel:g.onToggleDetailPanel,onTreeExpandChanged:g.onTreeExpandChanged,path:[E+g.pageSize*g.currentPage],scrollWidth:g.scrollWidth,treeDataMaxLevel:g.treeDataMaxLevel})})}function T(){return g.showAddRow&&s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:g.initialFormData,detailPanel:g.detailPanel,errorState:g.errorState,getFieldValue:g.getFieldValue,icons:h,isTreeData:g.isTreeData,key:"key-add-row",localization:b.editRow,mode:"add",onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,scrollWidth:g.scrollWidth})}var k=g.renderData,S=g.columns.filter(function(O){return O.tableData.groupOrder>-1}).sort(function(O,D){return O.tableData.groupOrder-D.tableData.groupOrder}),C=0;v.paging&&g.pageSize>k.length&&(C=g.pageSize-k.length);var M=s.default.useMemo(function(){return g.renderSummaryRow?function(O){return g.renderSummaryRow(f(f({},O),{},{data:g.data,currentData:g.currentData}))}:void 0},[g.data]);return s.default.createElement(r.default,{ref:g.forwardedRef},v.filtering&&s.default.createElement(g.components.FilterRow,{columns:y,icons:h,hasActions:g.actions.some(function(O){return O.position==="row"||typeof O=="function"}),onFilterChanged:g.onFilterChanged,localization:b.filterRow,hasDetailPanel:!!g.detailPanel,isTreeData:g.isTreeData,scrollWidth:g.scrollWidth,hideFilterIcons:g.options.hideFilterIcons}),v.addRowPosition==="first"&&T(),S.length>0?x(S,k):_(k),v.addRowPosition==="last"&&T(),s.default.createElement(g.components.SummaryRow,{columns:y,renderSummaryRow:M,rowProps:g}),w(C,k))}p.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},p.propTypes={actions:u.default.array,bulkEditChangedRows:u.default.object,bulkEditOpen:u.default.bool,cellEditable:u.default.object,columns:u.default.array.isRequired,components:u.default.object.isRequired,currentPage:u.default.number,data:u.default.array,detailPanel:u.default.oneOfType([u.default.func,u.default.arrayOf(u.default.oneOfType([u.default.object,u.default.func]))]),errorState:u.default.oneOfType([u.default.object,u.default.bool]),forwardedRef:u.default.oneOfType([u.default.func,u.default.object]),getFieldValue:u.default.func.isRequired,hasAnyEditingRow:u.default.bool,hasDetailPanel:u.default.bool.isRequired,initialFormData:u.default.object,isTreeData:u.default.bool.isRequired,onBulkEditRowChanged:u.default.func,onCellEditFinished:u.default.func,onCellEditStarted:u.default.func,onEditingApproved:u.default.func,onEditingCanceled:u.default.func,onFilterChanged:u.default.func,onGroupExpandChanged:u.default.func,onRowClick:u.default.func,onRowDoubleClick:u.default.func,onGroupSelected:u.default.func,onRowSelected:u.default.func,onToggleDetailPanel:u.default.func.isRequired,onTreeExpandChanged:u.default.func.isRequired,pageSize:u.default.number,renderData:u.default.array,renderSummaryRow:u.default.func,scrollWidth:u.default.number.isRequired,selection:u.default.bool.isRequired,showAddRow:u.default.bool,treeDataMaxLevel:u.default.number};var m=s.default.forwardRef(function(b,v){return s.default.createElement(p,(0,n.default)({},b,{forwardedRef:v}))});e.default=m}(Gw)),Gw}var e_={},t_={exports:{}},QD;function fb(){return QD||(QD=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(t_)),t_.exports}var n_={exports:{}},JD;function pb(){return JD||(JD=1,function(e){var t=Kz();function n(l,i){for(var o=0;o1?"s":"")+" required, but only "+t.length+" present")}function Tn(e){_n(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ns(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ok(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function mb(e,t){_n(2,arguments);var n=Tn(e).getTime(),r=kr(t);return new Date(n+r)}function ame(e,t){_n(2,arguments);var n=kr(t);return mb(e,n*1e3)}var ome=6e4;function ime(e,t){_n(2,arguments);var n=kr(t);return mb(e,n*ome)}var lme=36e5;function sme(e,t){_n(2,arguments);var n=kr(t);return mb(e,n*lme)}function ume(e,t){_n(2,arguments);var n=kr(t),r=n*7;return ok(e,r)}function av(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var l=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return l>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),l),n)}function o7(e,t){_n(2,arguments);var n=kr(t);return av(e,n*12)}function cme(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getFullYear()-r.getFullYear()}function Ih(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=n.getTime()-r.getTime();return l<0?-1:l>0?1:l}function dme(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=Ih(n,r),i=Math.abs(cme(n,r));n.setFullYear(1584),r.setFullYear(1584);var o=Ih(n,r)===-l,a=l*(i-Number(o));return a===0?0:a}function fme(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return l*12+i}function ik(e){_n(1,arguments);var t=Tn(e);return t.setHours(23,59,59,999),t}function lk(e){_n(1,arguments);var t=Tn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function pme(e){_n(1,arguments);var t=Tn(e);return ik(t).getTime()===lk(t).getTime()}function hB(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=Ih(n,r),i=Math.abs(fme(n,r)),o;if(i<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-l*i);var a=Ih(n,r)===-l;pme(Tn(e))&&i===1&&Ih(e,r)===1&&(a=!1),o=l*(i-Number(a))}return o===0?0:o}var i7={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},hme="trunc";function ng(e){return e?i7[e]:i7[hme]}function mme(e,t,n){_n(2,arguments);var r=hB(e,t)/3;return ng(void 0)(r)}function iy(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function qd(e){_n(1,arguments);var t=Tn(e);return t.setHours(0,0,0,0),t}var gme=864e5;function vme(e,t){_n(2,arguments);var n=qd(e),r=qd(t),l=n.getTime()-iy(n),i=r.getTime()-iy(r);return Math.round((l-i)/gme)}function l7(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function mB(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=l7(n,r),i=Math.abs(vme(n,r));n.setDate(n.getDate()-l*i);var o=+(l7(n,r)===-l),a=l*(i-o);return a===0?0:a}function yme(e,t,n){_n(2,arguments);var r=mB(e,t)/7;return ng(void 0)(r)}var gb=6e4,vb=36e5,bme=1e3;function yb(e,t){return _n(2,arguments),Tn(e).getTime()-Tn(t).getTime()}function xme(e,t,n){_n(2,arguments);var r=yb(e,t)/vb;return ng(void 0)(r)}function wme(e,t,n){_n(2,arguments);var r=yb(e,t)/gb;return ng(void 0)(r)}function _me(e,t,n){_n(2,arguments);var r=yb(e,t)/1e3;return ng(void 0)(r)}function Tme(e,t){var n;_n(1,arguments);var r=e||{},l=Tn(r.start),i=Tn(r.end),o=i.getTime();if(!(l.getTime()<=o))throw new RangeError("Invalid interval");var a=[],s=l;s.setHours(0,0,0,0);var u=Number((n=void 0)!==null&&n!==void 0?n:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=o;)a.push(Tn(s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return a}var kme={};function ou(){return kme}function s_(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getDay(),m=(p=l.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Pme(e){_n(1,arguments);var t=yB(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ud(n);return r}var Ome=6048e5;function bB(e){_n(1,arguments);var t=Tn(e),n=Ud(t).getTime()-Pme(t).getTime();return Math.round(n/Ome)+1}function Ku(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getUTCDay(),m=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var g=Ku(m,t),b=new Date(0);b.setUTCFullYear(d,0,p),b.setUTCHours(0,0,0,0);var v=Ku(b,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function Ame(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&l!==void 0?l:c.firstWeekContainsDate)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=jM(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var m=Ku(p,t);return m}var Dme=6048e5;function xB(e,t){_n(1,arguments);var n=Tn(e),r=Ku(n,t).getTime()-Ame(n,t).getTime();return Math.round(r/Dme)+1}function tr(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return tr(n==="yy"?l%100:l,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):tr(r+1,2)},d:function(t,n){return tr(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return tr(t.getUTCHours()%12||12,n.length)},H:function(t,n){return tr(t.getUTCHours(),n.length)},m:function(t,n){return tr(t.getUTCMinutes(),n.length)},s:function(t,n){return tr(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,l=t.getUTCMilliseconds(),i=Math.floor(l*Math.pow(10,r-3));return tr(i,n.length)}},zc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Eme={G:function(t,n,r){var l=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(l,{width:"abbreviated"});case"GGGGG":return r.era(l,{width:"narrow"});case"GGGG":default:return r.era(l,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var l=t.getUTCFullYear(),i=l>0?l:1-l;return r.ordinalNumber(i,{unit:"year"})}return _s.y(t,n)},Y:function(t,n,r,l){var i=jM(t,l),o=i>0?i:1-i;if(n==="YY"){var a=o%100;return tr(a,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):tr(o,n.length)},R:function(t,n){var r=yB(t);return tr(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return tr(r,n.length)},Q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(l);case"QQ":return tr(l,2);case"Qo":return r.ordinalNumber(l,{unit:"quarter"});case"QQQ":return r.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(l,{width:"wide",context:"formatting"})}},q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(l);case"qq":return tr(l,2);case"qo":return r.ordinalNumber(l,{unit:"quarter"});case"qqq":return r.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(l,{width:"wide",context:"standalone"})}},M:function(t,n,r){var l=t.getUTCMonth();switch(n){case"M":case"MM":return _s.M(t,n);case"Mo":return r.ordinalNumber(l+1,{unit:"month"});case"MMM":return r.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(l,{width:"wide",context:"formatting"})}},L:function(t,n,r){var l=t.getUTCMonth();switch(n){case"L":return String(l+1);case"LL":return tr(l+1,2);case"Lo":return r.ordinalNumber(l+1,{unit:"month"});case"LLL":return r.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(l,{width:"wide",context:"standalone"})}},w:function(t,n,r,l){var i=xB(t,l);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):tr(i,n.length)},I:function(t,n,r){var l=bB(t);return n==="Io"?r.ordinalNumber(l,{unit:"week"}):tr(l,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):_s.d(t,n)},D:function(t,n,r){var l=Mme(t);return n==="Do"?r.ordinalNumber(l,{unit:"dayOfYear"}):tr(l,n.length)},E:function(t,n,r){var l=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(l,{width:"short",context:"formatting"});case"EEEE":default:return r.day(l,{width:"wide",context:"formatting"})}},e:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return tr(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return tr(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var l=t.getUTCDay(),i=l===0?7:l;switch(n){case"i":return String(i);case"ii":return tr(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(l,{width:"short",context:"formatting"});case"iiii":default:return r.day(l,{width:"wide",context:"formatting"})}},a:function(t,n,r){var l=t.getUTCHours(),i=l/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var l=t.getUTCHours(),i;switch(l===12?i=zc.noon:l===0?i=zc.midnight:i=l/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var l=t.getUTCHours(),i;switch(l>=17?i=zc.evening:l>=12?i=zc.afternoon:l>=4?i=zc.morning:i=zc.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var l=t.getUTCHours()%12;return l===0&&(l=12),r.ordinalNumber(l,{unit:"hour"})}return _s.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):_s.H(t,n)},K:function(t,n,r){var l=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(l,{unit:"hour"}):tr(l,n.length)},k:function(t,n,r){var l=t.getUTCHours();return l===0&&(l=24),n==="ko"?r.ordinalNumber(l,{unit:"hour"}):tr(l,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):_s.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):_s.s(t,n)},S:function(t,n){return _s.S(t,n)},X:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return u7(o);case"XXXX":case"XX":return _u(o);case"XXXXX":case"XXX":default:return _u(o,":")}},x:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"x":return u7(o);case"xxxx":case"xx":return _u(o);case"xxxxx":case"xxx":default:return _u(o,":")}},O:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+s7(o,":");case"OOOO":default:return"GMT"+_u(o,":")}},z:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+s7(o,":");case"zzzz":default:return"GMT"+_u(o,":")}},t:function(t,n,r,l){var i=l._originalDate||t,o=Math.floor(i.getTime()/1e3);return tr(o,n.length)},T:function(t,n,r,l){var i=l._originalDate||t,o=i.getTime();return tr(o,n.length)}};function s7(e,t){var n=e>0?"-":"+",r=Math.abs(e),l=Math.floor(r/60),i=r%60;if(i===0)return n+String(l);var o=t;return n+String(l)+o+tr(i,2)}function u7(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tr(Math.abs(e)/60,2)}return _u(e,t)}function _u(e,t){var n=t||"",r=e>0?"-":"+",l=Math.abs(e),i=tr(Math.floor(l/60),2),o=tr(l%60,2);return r+i+n+o}var c7=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},wB=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Rme=function(t,n){var r=t.match(/(P+)(p+)?/)||[],l=r[1],i=r[2];if(!i)return c7(t,n);var o;switch(l){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",c7(l,n)).replace("{{time}}",wB(i,n))},sk={p:wB,P:Rme},Lme=["D","DD"],Ime=["YY","YYYY"];function _B(e){return Lme.indexOf(e)!==-1}function TB(e){return Ime.indexOf(e)!==-1}function ly(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var $me={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Nme=function(t,n,r){var l,i=$me[t];return typeof i=="string"?l=i:n===1?l=i.one:l=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+l:l+" ago":l};function c_(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Fme={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jme={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zme={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Bme={date:c_({formats:Fme,defaultWidth:"full"}),time:c_({formats:jme,defaultWidth:"full"}),dateTime:c_({formats:zme,defaultWidth:"full"})},Wme={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qme=function(t,n,r,l){return Wme[t]};function bp(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",l;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;l=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;l=e.values[s]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return l[u]}}var Ume={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Hme={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Vme={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Gme={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Yme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Xme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Kme=function(t,n){var r=Number(t),l=r%100;if(l>20||l<10)switch(l%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Zme={ordinalNumber:Kme,era:bp({values:Ume,defaultWidth:"wide"}),quarter:bp({values:Hme,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:bp({values:Vme,defaultWidth:"wide"}),day:bp({values:Gme,defaultWidth:"wide"}),dayPeriod:bp({values:Yme,defaultWidth:"wide",formattingValues:Xme,defaultFormattingWidth:"wide"})};function xp(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,l=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(l);if(!i)return null;var o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?Jme(a,function(d){return d.test(o)}):Qme(a,function(d){return d.test(o)}),u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(o.length);return{value:u,rest:c}}}function Qme(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Jme(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var l=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var a=t.slice(l.length);return{value:o,rest:a}}}var tge=/^(\d+)(th|st|nd|rd)?/i,nge=/\d+/i,rge={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},age={any:[/^b/i,/^(a|c)/i]},oge={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ige={any:[/1/i,/2/i,/3/i,/4/i]},lge={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},sge={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},uge={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},cge={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},dge={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},fge={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},pge={ordinalNumber:ege({matchPattern:tge,parsePattern:nge,valueCallback:function(t){return parseInt(t,10)}}),era:xp({matchPatterns:rge,defaultMatchWidth:"wide",parsePatterns:age,defaultParseWidth:"any"}),quarter:xp({matchPatterns:oge,defaultMatchWidth:"wide",parsePatterns:ige,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:xp({matchPatterns:lge,defaultMatchWidth:"wide",parsePatterns:sge,defaultParseWidth:"any"}),day:xp({matchPatterns:uge,defaultMatchWidth:"wide",parsePatterns:cge,defaultParseWidth:"any"}),dayPeriod:xp({matchPatterns:dge,defaultMatchWidth:"any",parsePatterns:fge,defaultParseWidth:"any"})},bb={code:"en-US",formatDistance:Nme,formatLong:Bme,formatRelative:qme,localize:Zme,match:pge,options:{weekStartsOn:0,firstWeekContainsDate:1}},hge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mge=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gge=/^'([^]*?)'?$/,vge=/''/g,yge=/[a-zA-Z]/;function kB(e,t,n){var r,l,i,o,a,s,u,c,d,f,p,m,g,b,v,h,y,w;_n(2,arguments);var _=String(t),x=ou(),T=(r=(l=n==null?void 0:n.locale)!==null&&l!==void 0?l:x.locale)!==null&&r!==void 0?r:bb,k=kr((i=(o=(a=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(u=n.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:x.firstWeekContainsDate)!==null&&o!==void 0?o:(d=x.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=kr((p=(m=(g=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(v=n.locale)===null||v===void 0||(h=v.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&g!==void 0?g:x.weekStartsOn)!==null&&m!==void 0?m:(y=x.locale)===null||y===void 0||(w=y.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var C=Tn(e);if(!gB(C))throw new RangeError("Invalid time value");var M=iy(C),O=vB(C,M),D={firstWeekContainsDate:k,weekStartsOn:S,locale:T,_originalDate:C},P=_.match(mge).map(function(E){var I=E[0];if(I==="p"||I==="P"){var A=sk[I];return A(E,T.formatLong)}return E}).join("").match(hge).map(function(E){if(E==="''")return"'";var I=E[0];if(I==="'")return bge(E);var A=Eme[I];if(A)return!(n!=null&&n.useAdditionalWeekYearTokens)&&TB(E)&&ly(E,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&_B(E)&&ly(E,t,String(e)),A(O,E,T.localize,D);if(I.match(yge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return E}).join("");return P}function bge(e){var t=e.match(gge);return t?t[1].replace(vge,"'"):e}const xge=Object.freeze(Object.defineProperty({__proto__:null,default:kB},Symbol.toStringTag,{value:"Module"}));function wge(e){_n(1,arguments);var t=Tn(e),n=t.getDate();return n}function _ge(e){_n(1,arguments);var t=Tn(e),n=t.getDay();return n}function SB(e){_n(1,arguments);var t=Tn(e),n=t.getFullYear(),r=t.getMonth(),l=new Date(0);return l.setFullYear(n,r+1,0),l.setHours(0,0,0,0),l.getDate()}function Tge(e){_n(1,arguments);var t=Tn(e),n=t.getHours();return n}function kge(e){_n(1,arguments);var t=Tn(e),n=t.getMinutes();return n}function Sge(e){_n(1,arguments);var t=Tn(e),n=t.getMonth();return n}function Cge(e){_n(1,arguments);var t=Tn(e),n=t.getSeconds();return n}function Mge(e){return _n(1,arguments),Tn(e).getFullYear()}function c0(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getTime()>r.getTime()}function Bc(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getTime()e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}}}function Lge(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function hr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jv(e,t)}function sy(e){return sy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sy(e)}function Ige(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $ge(e,t){if(t&&(ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return An(e)}function mr(e){var t=Ige();return function(){var r=sy(e),l;if(t){var i=sy(this).constructor;l=Reflect.construct(r,arguments,i)}else l=r.apply(this,arguments);return $ge(this,l)}}function sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nge(e,t){if(ns(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ns(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CB(e){var t=Nge(e,"string");return ns(t)==="symbol"?t:String(t)}function Fge(e,t){for(var n=0;n0,r=n?t:1-t,l;if(r<=50)l=e||100;else{var i=r+50,o=Math.floor(i/100)*100,a=e>=i%100;l=e+o-(a?100:0)}return n?l:1-l}function AB(e){return e%400===0||e%4===0&&e%100!==0}var qge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o){var a=l.getUTCFullYear();if(o.isTwoDigitYear){var s=OB(o.year,a);return l.setUTCFullYear(s,0,1),l.setUTCHours(0,0,0,0),l}var u=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(u,0,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Uge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o,a){var s=jM(l,a);if(o.isTwoDigitYear){var u=OB(o.year,s);return l.setUTCFullYear(u,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),Ku(l,a)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(c,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),Ku(l,a)}}]),n}(_r),Hge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Yge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Xge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Kge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function Zge(e,t,n){_n(2,arguments);var r=Tn(e),l=kr(t),i=xB(r,n)-l;return r.setUTCDate(r.getUTCDate()-i*7),r}var Qge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o,a){return Ku(Zge(l,o,a),a)}}]),n}(_r);function Jge(e,t){_n(2,arguments);var n=Tn(e),r=kr(t),l=bB(n)-r;return n.setUTCDate(n.getUTCDate()-l*7),n}var e0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o){return Ud(Jge(l,o))}}]),n}(_r),t0e=[31,28,31,30,31,30,31,31,30,31,30,31],n0e=[31,29,31,30,31,30,31,31,30,31,30,31],r0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=n0e[s]:i>=1&&i<=t0e[s]}},{key:"set",value:function(l,i,o){return l.setUTCDate(o),l.setUTCHours(0,0,0,0),l}}]),n}(_r),a0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(l,i,o){return l.setUTCMonth(0,o),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function BM(e,t,n){var r,l,i,o,a,s,u,c;_n(2,arguments);var d=ou(),f=kr((r=(l=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(a=n.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&l!==void 0?l:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Tn(e),m=kr(t),g=p.getUTCDay(),b=m%7,v=(b+7)%7,h=(v=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=BM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r),i0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=BM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r),l0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=BM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function s0e(e,t){_n(2,arguments);var n=kr(t);n%7===0&&(n=n-7);var r=1,l=Tn(e),i=l.getUTCDay(),o=n%7,a=(o+7)%7,s=(a=1&&i<=7}},{key:"set",value:function(l,i,o){return l=s0e(l,o),l.setUTCHours(0,0,0,0),l}}]),n}(_r),c0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=12}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):!a&&o===12?l.setUTCHours(0,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(_r),h0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=23}},{key:"set",value:function(l,i,o){return l.setUTCHours(o,0,0,0),l}}]),n}(_r),m0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(_r),g0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=24}},{key:"set",value:function(l,i,o){var a=o<=24?o%24:o;return l.setUTCHours(a,0,0,0),l}}]),n}(_r),v0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCMinutes(o,0,0),l}}]),n}(_r),y0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCSeconds(o,0),l}}]),n}(_r),b0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=kr((m=(g=(b=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(h=r.locale)===null||h===void 0||(y=h.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&g!==void 0?g:(w=k.locale)===null||w===void 0||(_=w.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return x===""?Tn(n):new Date(NaN);var O={firstWeekContainsDate:C,weekStartsOn:M,locale:S},D=[new Bge],P=T.match(C0e).map(function(U){var V=U[0];if(V in sk){var te=sk[V];return te(U,S.formatLong)}return U}).join("").match(S0e),E=[],I=p7(P),A;try{var F=function(){var V=A.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&TB(V)&&ly(V,T,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&_B(V)&&ly(V,T,e);var te=V[0],ee=k0e[te];if(ee){var H=ee.incompatibleTokens;if(Array.isArray(H)){var Z=E.find(function(X){return H.includes(X.token)||X.token===te});if(Z)throw new RangeError("The format string mustn't contain `".concat(Z.fullToken,"` and `").concat(V,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&E.length>0)throw new RangeError("The format string mustn't contain `".concat(V,"` and any other token at the same time"));E.push({token:te,fullToken:V});var G=ee.run(x,V,S.match,O);if(!G)return{v:new Date(NaN)};D.push(G.setter),x=G.rest}else{if(te.match(A0e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(V==="''"?V="'":te==="'"&&(V=E0e(V)),x.indexOf(V)===0)x=x.slice(V.length);else return{v:new Date(NaN)}}};for(I.s();!(A=I.n()).done;){var j=F();if(ns(j)==="object")return j.v}}catch(U){I.e(U)}finally{I.f()}if(x.length>0&&O0e.test(x))return new Date(NaN);var z=D.map(function(U){return U.priority}).sort(function(U,V){return V-U}).filter(function(U,V,te){return te.indexOf(U)===V}).map(function(U){return D.filter(function(V){return V.priority===U}).sort(function(V,te){return te.subPriority-V.subPriority})}).map(function(U){return U[0]}),B=Tn(n);if(isNaN(B.getTime()))return new Date(NaN);var N=vB(B,iy(B)),R={},q=p7(z),Y;try{for(q.s();!(Y=q.n()).done;){var L=Y.value;if(!L.validate(N,O))return new Date(NaN);var W=L.set(N,R,O);Array.isArray(W)?(N=W[0],Lge(R,W[1])):N=W}}catch(U){q.e(U)}finally{q.f()}return N}function E0e(e){return e.match(M0e)[1].replace(P0e,"'")}function R0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setDate(r),n}function L0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setHours(r),n}function I0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setMinutes(r),n}function $0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t),l=n.getFullYear(),i=n.getDate(),o=new Date(0);o.setFullYear(l,r,15),o.setHours(0,0,0,0);var a=SB(o);return n.setMonth(r,Math.min(i,a)),n}function N0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setSeconds(r),n}function F0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function d0(e){_n(1,arguments);var t=Tn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function d_(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getDay(),m=(p2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],p0.timeZoneDelimiter.test(t.date)&&(t.date=e.split(p0.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var l=p0.timezone.exec(r);l?(t.time=r.replace(l[1],""),t.timezone=l[1]):t.time=r}return t}function q0e(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var l=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?l:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function U0e(e,t){if(t===null)return new Date(NaN);var n=e.match(j0e);if(!n)return new Date(NaN);var r=!!n[4],l=wp(n[1]),i=wp(n[2])-1,o=wp(n[3]),a=wp(n[4]),s=wp(n[5])-1;if(r)return Z0e(t,a,s)?G0e(t,a,s):new Date(NaN);var u=new Date(0);return!X0e(t,i,o)||!K0e(t,l)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(l,o)),u)}function wp(e){return e?parseInt(e):1}function H0e(e){var t=e.match(z0e);if(!t)return NaN;var n=f_(t[1]),r=f_(t[2]),l=f_(t[3]);return Q0e(n,r,l)?n*vb+r*gb+l*1e3:NaN}function f_(e){return e&&parseFloat(e.replace(",","."))||0}function V0e(e){if(e==="Z")return 0;var t=e.match(B0e);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),l=t[3]&&parseInt(t[3])||0;return J0e(r,l)?n*(r*vb+l*gb):NaN}function G0e(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var l=r.getUTCDay()||7,i=(t-1)*7+n+1-l;return r.setUTCDate(r.getUTCDate()+i),r}var Y0e=[31,null,31,30,31,30,31,31,30,31,30,31];function EB(e){return e%400===0||e%4===0&&e%100!==0}function X0e(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Y0e[t]||(EB(e)?29:28))}function K0e(e,t){return t>=1&&t<=(EB(e)?366:365)}function Z0e(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Q0e(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function J0e(e,t){return t>=0&&t<=59}const eve=Object.freeze(Object.defineProperty({__proto__:null,default:DB},Symbol.toStringTag,{value:"Module"}));function tve(e,t){var n,r;_n(1,arguments);var l=Tn(e);if(isNaN(l.getTime()))throw new RangeError("Invalid time value");var i=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),o=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(i!=="extended"&&i!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",s="",u=i==="extended"?"-":"",c=i==="extended"?":":"";if(o!=="time"){var d=tr(l.getDate(),2),f=tr(l.getMonth()+1,2),p=tr(l.getFullYear(),4);a="".concat(p).concat(u).concat(f).concat(u).concat(d)}if(o!=="date"){var m=l.getTimezoneOffset();if(m!==0){var g=Math.abs(m),b=tr(Math.floor(g/60),2),v=tr(g%60,2),h=m<0?"+":"-";s="".concat(h).concat(b,":").concat(v)}else s="Z";var y=tr(l.getHours(),2),w=tr(l.getMinutes(),2),_=tr(l.getSeconds(),2),x=a===""?"":"T",T=[y,w,_].join(c);a="".concat(a).concat(x).concat(T).concat(s)}return a}function nve(e,t){_n(2,arguments);var n=Tn(e).getTime(),r=Tn(t.start).getTime(),l=Tn(t.end).getTime();if(!(r<=l))throw new RangeError("Invalid interval");return n>=r&&n<=l}var uk={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,u){switch(s){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(s,u){switch(s){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},l=function(s,u){var c=s.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return n(s,u);var p;switch(d){case"P":p=u.dateTime({width:"short"});break;case"PP":p=u.dateTime({width:"medium"});break;case"PPP":p=u.dateTime({width:"long"});break;case"PPPP":default:p=u.dateTime({width:"full"});break}return p.replace("{{date}}",n(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:l},o=i;t.default=o,e.exports=t.default})(uk,uk.exports);var rve=uk.exports;const RB=lr(rve),ave={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class ove{constructor({locale:t,formats:n}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var r;return this.locale?/a/.test((r=this.locale.formatLong)===null||r===void 0?void 0:r.time()):!0},this.getFormatHelperText=r=>{var l,i;const o=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,a=this.locale||bb;return(i=(l=r.match(o))===null||l===void 0?void 0:l.map(s=>{const u=s[0];if(u==="p"||u==="P"){const c=RB[u];return c(s,a.formatLong,{})}return s}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&i!==void 0?i:r},this.parseISO=r=>DB(r),this.toISO=r=>tve(r,{format:"extended"}),this.getCurrentLocaleCode=()=>{var r;return((r=this.locale)===null||r===void 0?void 0:r.code)||"en-US"},this.addSeconds=(r,l)=>ame(r,l),this.addMinutes=(r,l)=>ime(r,l),this.addHours=(r,l)=>sme(r,l),this.addDays=(r,l)=>ok(r,l),this.addWeeks=(r,l)=>ume(r,l),this.addMonths=(r,l)=>av(r,l),this.addYears=(r,l)=>o7(r,l),this.isValid=r=>gB(this.date(r)),this.getDiff=(r,l,i)=>{var o;const a=(o=this.date(l))!==null&&o!==void 0?o:r;if(!this.isValid(a))return 0;switch(i){case"years":return dme(r,a);case"quarters":return mme(r,a);case"months":return hB(r,a);case"weeks":return yme(r,a);case"days":return mB(r,a);case"hours":return xme(r,a);case"minutes":return wme(r,a);case"seconds":return _me(r,a);default:return yb(r,a)}},this.isAfter=(r,l)=>c0(r,l),this.isBefore=(r,l)=>Bc(r,l),this.startOfDay=r=>qd(r),this.endOfDay=r=>ik(r),this.getHours=r=>Tge(r),this.setHours=(r,l)=>L0e(r,l),this.setMinutes=(r,l)=>I0e(r,l),this.getSeconds=r=>Cge(r),this.setSeconds=(r,l)=>N0e(r,l),this.isSameDay=(r,l)=>Oge(r,l),this.isSameMonth=(r,l)=>Dge(r,l),this.isSameYear=(r,l)=>Age(r,l),this.isSameHour=(r,l)=>Ege(r,l),this.startOfYear=r=>f0(r),this.endOfYear=r=>u_(r),this.startOfMonth=r=>d0(r),this.endOfMonth=r=>lk(r),this.startOfWeek=r=>d_(r,{locale:this.locale}),this.endOfWeek=r=>s_(r,{locale:this.locale}),this.getYear=r=>Mge(r),this.setYear=(r,l)=>F0e(r,l),this.date=r=>typeof r>"u"?new Date:r===null?null:new Date(r),this.toJsDate=r=>r,this.parse=(r,l)=>r===""?null:D0e(r,l,new Date,{locale:this.locale}),this.format=(r,l)=>this.formatByString(r,this.formats[l]),this.formatByString=(r,l)=>kB(r,l,{locale:this.locale}),this.isEqual=(r,l)=>r===null&&l===null?!0:Pge(r,l),this.isNull=r=>r===null,this.isAfterDay=(r,l)=>c0(r,ik(l)),this.isBeforeDay=(r,l)=>Bc(r,qd(l)),this.isBeforeYear=(r,l)=>Bc(r,f0(l)),this.isAfterYear=(r,l)=>c0(r,u_(l)),this.isWithinRange=(r,[l,i])=>nve(r,{start:l,end:i}),this.formatNumber=r=>r,this.getMinutes=r=>kge(r),this.getDate=r=>wge(r),this.setDate=(r,l)=>R0e(r,l),this.getMonth=r=>Sge(r),this.getDaysInMonth=r=>SB(r),this.setMonth=(r,l)=>$0e(r,l),this.getMeridiemText=r=>r==="am"?"AM":"PM",this.getNextMonth=r=>av(r,1),this.getPreviousMonth=r=>av(r,-1),this.getMonthArray=r=>{const i=[f0(r)];for(;i.length<12;){const o=i[i.length-1];i.push(this.getNextMonth(o))}return i},this.mergeDateAndTime=(r,l)=>this.setSeconds(this.setMinutes(this.setHours(r,this.getHours(l)),this.getMinutes(l)),this.getSeconds(l)),this.getWeekdays=()=>{const r=new Date;return Tme({start:d_(r,{locale:this.locale}),end:s_(r,{locale:this.locale})}).map(l=>this.formatByString(l,"EEEEEE"))},this.getWeekArray=r=>{const l=d_(d0(r),{locale:this.locale}),i=s_(lk(r),{locale:this.locale});let o=0,a=l;const s=[];let u=null;for(;Bc(a,i);){const c=Math.floor(o/7);s[c]=s[c]||[];const d=_ge(a);u!==d&&(u=d,s[c].push(a),o+=1),a=ok(a,1)}return s},this.getYearRange=(r,l)=>{const i=f0(r),o=u_(l),a=[];let s=i;for(;Bc(s,o);)a.push(s),s=o7(s,1);return a},this.locale=t,this.formats=Object.assign({},ave,n)}isBeforeMonth(t,n){return Bc(t,d0(n))}isAfterMonth(t,n){return c0(t,d0(n))}}const ive={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class lve extends ove{constructor(...t){super(...t),this.formatTokenMap=ive,this.expandFormat=n=>{const r=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(r).map(l=>{const i=l[0];if(i==="p"||i==="P"){const o=RB[i],a=this.locale||bb;return o(l,a.formatLong,{})}return l}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const sve=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:lve},Symbol.toStringTag,{value:"Module"})),LB=Qn(sve);function IB(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(n)!==-1):e.indexOf(t)!==-1}const $B=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},NB=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?NB(t.shadowRoot):t:null};function uve(e){return yn("PrivatePickersMonth",e)}const ck=hn("PrivatePickersMonth",["root","selected"]),cve=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],dve=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},uve,t)},fve=Et(pr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${ck.selected}`]:t.selected}]})(({theme:e})=>Ie({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${ck.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),h7=()=>{},pve=e=>{const{disabled:t,onSelect:n,selected:r,value:l,tabIndex:i,hasFocus:o,onFocus:a=h7,onBlur:s=h7}=e,u=Kt(e,cve),c=dve(e),d=()=>{n(l)},f=ge.useRef(null);return no(()=>{if(o){var p;(p=f.current)==null||p.focus()}},[o]),ke.jsx(fve,Ie({ref:f,component:"button",type:"button",className:c.root,tabIndex:i,onClick:d,onKeyDown:$B(d),color:r?"primary":void 0,variant:r?"h5":"subtitle1",disabled:t,onFocus:p=>a(p,l),onBlur:p=>s(p,l)},u))},ia=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Ie({},e)}}}}),hve={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,n)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},mve=ia(hve),gve={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},vve=ia(gve),yve={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,n)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},bve=ia(yve),xve={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,n)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},wve=ia(xve),h0={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},m7={calendar:"Kalenderansicht",clock:"Uhransicht"},_ve={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${m7[t]} wechseln`:`${m7[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,n)=>{var r;return`${(r=h0[e])!=null?r:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${h0.hours}`,minutesClockNumberText:e=>`${e} ${h0.minutes}`,secondsClockNumberText:e=>`${e} ${h0.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},Tve=ia(_ve),kve={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},Sve={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,n)=>`Seleccione ${kve[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},Cve=ia(Sve),Mve={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${n.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},Pve=ia(Mve),Ove={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},g7={calendar:"kalenteri",clock:"kello"},Ave={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${g7[t]}näkymään`:`${g7[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,n)=>`Valitse ${Ove[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},Dve=ia(Ave),Eve={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},v7={calendar:"kalendáře",clock:"času"},Rve={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${v7[t]}`:`Zobrazení ${v7[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,n)=>{var r;return`${(r=Eve[e])!=null?r:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},Lve=ia(Rve),Ive={hours:"heures",minutes:"minutes",seconds:"secondes"},y7={calendar:"calendrier",clock:"horloge"},$ve={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${y7[t]}`:`passer du ${y7[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,n)=>`Choix des ${Ive[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},Nve=ia($ve),m0={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},b7={calendar:"naptár",clock:"óra"},Fve={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${b7[t]} nézetre`:`${b7[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,n)=>{var r;return`${(r=m0[e])!=null?r:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${m0.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${m0.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${m0.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},jve=ia(Fve),FB={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",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},jB=FB,zve=ia(FB),Bve={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,n)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},Wve=ia(Bve),qve={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},Uve=ia(qve),Hve={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},Vve={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,n)=>`Seleziona ${Hve[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},Gve=ia(Vve),Yve={hours:"小时",minutes:"分钟",seconds:"秒"},Xve={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,n)=>`Select ${Yve[e]}. ${t===null?"未选择时间":`已选择${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},Kve=ia(Xve),Zve={hours:"시간을",minutes:"분을",seconds:"초를"},Qve={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,n)=>`${Zve[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${n.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},Jve=ia(Qve),eye={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const n=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${n}skoðun`:`${n}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},tye=ia(eye),g0={hours:"時間",minutes:"分",seconds:"秒"},x7={calendar:"カレンダー表示",clock:"時計表示"},nye={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${x7[t]}に切り替える`:`${x7[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,n)=>{var r;return`${(r=g0[e])!=null?r:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${n.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${g0.hours}`,minutesClockNumberText:e=>`${e} ${g0.minutes}`,secondsClockNumberText:e=>`${e} ${g0.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},rye=ia(nye),aye={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},oye=ia(aye),iye={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,n)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},lye=ia(iye),p_={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},sye={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${p_[t]}`:`Выгляд ${p_[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,n)=>`Абярыце ${p_[e]}. ${t===null?"Час не абраны":`Абраны час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},uye=ia(sye),cye={hours:"часы",minutes:"минуты",seconds:"секунды"},w7={calendar:"календарный",clock:"часовой"},dye={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${w7[t]} вид`:`Открыт ${w7[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,n)=>`Выбрать ${cye[e]}. ${t===null?"Время не выбрано":`Выбрано время ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},fye=ia(dye),WM=ge.createContext(null);function pye(e){const t=pn({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:l,dateLibInstance:i,locale:o,adapterLocale:a,localeText:s}=t,u=ge.useMemo(()=>new r({locale:a??o,formats:l,instance:i}),[r,o,a,l,i]),c=ge.useMemo(()=>({minDate:u.date("1900-01-01T00:00:00.000"),maxDate:u.date("2099-12-31T00:00:00.000")}),[u]),d=ge.useMemo(()=>({utils:u,defaultDates:c,localeText:Ie({},jB,s??{})}),[c,u,s]);return ke.jsx(WM.Provider,{value:d,children:n})}const rg=()=>{const e=ge.useContext(WM);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},Br=()=>rg().utils,ag=()=>rg().defaultDates,Xi=()=>rg().localeText,og=()=>{const e=Br();return ge.useRef(e.date()).current};function zB(e){return yn("MuiMonthPicker",e)}const hye=hn("MuiMonthPicker",["root"]),$h=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:l,isDateDisabled:i,utils:o})=>{const a=o.startOfDay(o.date());n&&o.isBefore(l,a)&&(l=a),t&&o.isAfter(r,a)&&(r=a);let s=e,u=e;for(o.isBefore(e,l)&&(s=o.date(l),u=null),o.isAfter(e,r)&&(u&&(u=o.date(r)),s=null);s||u;){if(s&&o.isAfter(s,r)&&(s=null),u&&o.isBefore(u,l)&&(u=null),s){if(!i(s))return s;s=o.addDays(s,1)}if(u){if(!i(u))return u;u=o.addDays(u,-1)}}return null},qM=(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},Ci=(e,t,n)=>{if(t==null)return n;const r=e.date(t);return e.isValid(r)?r:n},mye=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],gye=e=>{const{classes:t}=e;return vn({root:["root"]},zB,t)};function vye(e,t){const n=Br(),r=ag(),l=pn({props:e,name:t});return Ie({disableFuture:!1,disablePast:!1},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const yye=Et("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),BB=ge.forwardRef(function(t,n){const r=Br(),l=og(),i=vye(t,"MuiMonthPicker"),{className:o,date:a,disabled:s,disableFuture:u,disablePast:c,maxDate:d,minDate:f,onChange:p,shouldDisableMonth:m,readOnly:g,disableHighlightToday:b,autoFocus:v=!1,onMonthFocus:h,hasFocus:y,onFocusedViewChange:w}=i,_=Kt(i,mye),x=i,T=gye(x),k=Xm(),S=ge.useMemo(()=>a??r.startOfMonth(l),[l,r,a]),C=ge.useMemo(()=>a!=null?r.getMonth(a):b?null:r.getMonth(l),[l,a,r,b]),[M,O]=ge.useState(()=>C||r.getMonth(l)),D=ge.useCallback(R=>{const q=r.startOfMonth(c&&r.isAfter(l,f)?l:f),Y=r.startOfMonth(u&&r.isBefore(l,d)?l:d);return r.isBefore(R,q)||r.isAfter(R,Y)?!0:m?m(R):!1},[u,c,d,f,l,m,r]),P=R=>{if(g)return;const q=r.setMonth(S,R);p(q,"finish")},[E,I]=Zl({name:"MonthPicker",state:"hasFocus",controlled:y,default:v}),A=ge.useCallback(R=>{I(R),w&&w(R)},[I,w]),F=ge.useCallback(R=>{D(r.setMonth(S,R))||(O(R),A(!0),h&&h(R))},[D,r,S,A,h]);ge.useEffect(()=>{O(R=>C!==null&&R!==C?C:R)},[C]);const j=yo(R=>{switch(R.key){case"ArrowUp":F((12+M-3)%12),R.preventDefault();break;case"ArrowDown":F((12+M+3)%12),R.preventDefault();break;case"ArrowLeft":F((12+M+(k.direction==="ltr"?-1:1))%12),R.preventDefault();break;case"ArrowRight":F((12+M+(k.direction==="ltr"?1:-1))%12),R.preventDefault();break}}),z=ge.useCallback((R,q)=>{F(q)},[F]),B=ge.useCallback(()=>{A(!1)},[A]),N=r.getMonth(l);return ke.jsx(yye,Ie({ref:n,className:ma(T.root,o),ownerState:x,onKeyDown:j},_,{children:r.getMonthArray(S).map(R=>{const q=r.getMonth(R),Y=r.format(R,"monthShort"),L=s||D(R);return ke.jsx(pve,{value:q,selected:q===C,tabIndex:q===M&&!L?0:-1,hasFocus:E&&q===M,onSelect:P,onFocus:z,onBlur:B,disabled:L,"aria-current":N===q?"date":void 0,children:Y},Y)})}))});function UM(e,t,n){const{value:r,onError:l}=e,i=rg(),o=ge.useRef(null),a=t({adapter:i,value:r,props:e});return ge.useEffect(()=>{l&&!n(a,o.current)&&l(a,r),o.current=a},[n,l,o,a,r]),a}const HM=({props:e,value:t,adapter:n})=>{const r=n.utils.date(),l=n.utils.date(t),i=Ci(n.utils,e.minDate,n.defaultDates.minDate),o=Ci(n.utils,e.maxDate,n.defaultDates.maxDate);if(l===null)return null;switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(l)):return"shouldDisableDate";case!!(e.disableFuture&&n.utils.isAfterDay(l,r)):return"disableFuture";case!!(e.disablePast&&n.utils.isBeforeDay(l,r)):return"disablePast";case!!(i&&n.utils.isBeforeDay(l,i)):return"minDate";case!!(o&&n.utils.isAfterDay(l,o)):return"maxDate";default:return null}},WB=({shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l})=>{const i=rg();return ge.useCallback(o=>HM({adapter:i,value:o,props:{shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l}})!==null,[i,e,t,n,r,l])},bye=(e,t)=>e===t,VM=e=>UM(e,HM,bye),xye=(e,t,n)=>(r,l)=>{switch(l.type){case"changeMonth":return Ie({},r,{slideDirection:l.direction,currentMonth:l.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Ie({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&l.focusedDay!=null&&n.isSameDay(l.focusedDay,r.focusedDay))return r;const i=l.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,l.focusedDay);return Ie({},r,{focusedDay:l.focusedDay,isMonthSwitchingAnimating:i&&!e&&!l.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(l.focusedDay):r.currentMonth,slideDirection:l.focusedDay!=null&&n.isAfterDay(l.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},wye=({date:e,defaultCalendarMonth:t,disableFuture:n,disablePast:r,disableSwitchToMonthOnDayFocus:l=!1,maxDate:i,minDate:o,onMonthChange:a,reduceAnimations:s,shouldDisableDate:u})=>{var c;const d=og(),f=Br(),p=ge.useRef(xye(!!s,l,f)).current,[m,g]=ge.useReducer(p,{isMonthSwitchingAnimating:!1,focusedDay:e||d,currentMonth:f.startOfMonth((c=e??t)!=null?c:d),slideDirection:"left"}),b=ge.useCallback(_=>{g(Ie({type:"changeMonth"},_)),a&&a(_.newMonth)},[a]),v=ge.useCallback(_=>{const x=_??d;f.isSameMonth(x,m.currentMonth)||b({newMonth:f.startOfMonth(x),direction:f.isAfterDay(x,m.currentMonth)?"left":"right"})},[m.currentMonth,b,d,f]),h=WB({shouldDisableDate:u,minDate:o,maxDate:i,disableFuture:n,disablePast:r}),y=ge.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),w=ge.useCallback((_,x)=>{h(_)||g({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:x})},[h]);return{calendarState:m,changeMonth:v,changeFocusedDay:w,isDateDisabled:h,onMonthSwitchingAnimationEnd:y,handleChangeMonth:b}},_ye=e=>yn("MuiPickersFadeTransitionGroup",e),Tye=hn("MuiPickersFadeTransitionGroup",["root"]),kye=e=>{const{classes:t}=e;return vn({root:["root"]},_ye,t)},_7=500,Sye=Et(Zm,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function qB(e){const t=pn({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:l,transKey:i}=t,o=kye(t);return l?n:ke.jsx(Sye,{className:ma(o.root,r),children:ke.jsx(lb,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:_7,enter:_7/2,exit:0},children:n},i)})}const mm=36,ig=2,GM=320,Cye=358;function UB(e){return yn("MuiPickersDay",e)}const mh=hn("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Mye=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],Pye=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:l,disabled:i,outsideCurrentMonth:o,showDaysOutsideCurrentMonth:a,classes:s}=e;return vn({root:["root",t&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&l&&"today",o&&a&&"dayOutsideMonth",o&&!a&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},UB,s)},HB=({theme:e,ownerState:t})=>Ie({},e.typography.caption,{width:mm,height:mm,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${mh.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${mh.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${mh.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${ig}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${mh.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),VB=(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]},Oye=Et(Tl,{name:"MuiPickersDay",slot:"Root",overridesResolver:VB})(HB),Aye=Et("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:VB})(({theme:e,ownerState:t})=>Ie({},HB({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),h_=()=>{},Dye=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersDay"}),{autoFocus:l=!1,className:i,day:o,disabled:a=!1,disableHighlightToday:s=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:f,onFocus:p=h_,onBlur:m=h_,onKeyDown:g=h_,onMouseDown:b,outsideCurrentMonth:v,selected:h=!1,showDaysOutsideCurrentMonth:y=!1,children:w,today:_=!1}=r,x=Kt(r,Mye),T=Ie({},r,{autoFocus:l,disabled:a,disableHighlightToday:s,disableMargin:u,selected:h,showDaysOutsideCurrentMonth:y,today:_}),k=Pye(T),S=Br(),C=ge.useRef(null),M=Lr(C,n);no(()=>{l&&!a&&!c&&!v&&C.current.focus()},[l,a,c,v]);const O=P=>{b&&b(P),v&&P.preventDefault()},D=P=>{a||f(o,"finish"),v&&P.currentTarget.focus(),d&&d(P)};return v&&!y?ke.jsx(Aye,{className:ma(k.root,k.hiddenDaySpacingFiller,i),ownerState:T,role:x.role}):ke.jsx(Oye,Ie({className:ma(k.root,i),ownerState:T,ref:M,centerRipple:!0,disabled:a,tabIndex:h?0:-1,onKeyDown:P=>g(P,o),onFocus:P=>p(P,o),onBlur:P=>m(P,o),onClick:D,onMouseDown:O},x,{children:w||S.format(o,"dayOfMonth")}))}),Eye=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,GB=ge.memo(Dye,Eye),Rye=e=>yn("PrivatePickersSlideTransition",e),Ka=hn("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Lye=["children","className","reduceAnimations","slideDirection","transKey"],Iye=e=>{const{classes:t}=e;return vn({root:["root"]},Rye,t)},YB=350,$ye=Et(Zm,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ka["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ka["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ka.slideEnterActive}`]:t.slideEnterActive},{[`.${Ka.slideExit}`]:t.slideExit},{[`.${Ka["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ka["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:YB,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},[`& .${Ka["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ka["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ka.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ka.slideExit}`]:{transform:"translate(0%)"},[`& .${Ka["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ka["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),Nye=e=>{const{children:t,className:n,reduceAnimations:r,slideDirection:l,transKey:i}=e,o=Kt(e,Lye),a=Iye(e);if(r)return ke.jsx("div",{className:ma(a.root,n),children:t});const s={exit:Ka.slideExit,enterActive:Ka.slideEnterActive,enter:Ka[`slideEnter-${l}`],exitActive:Ka[`slideExitActiveLeft-${l}`]};return ke.jsx($ye,{className:ma(a.root,n),childFactory:u=>ge.cloneElement(u,{classNames:s}),role:"presentation",children:ke.jsx(sM,Ie({mountOnEnter:!0,unmountOnExit:!0,timeout:YB,classNames:s},o,{children:t}),i)})},Fye=e=>yn("MuiDayPicker",e),jye=hn("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),zye=e=>{const{classes:t}=e;return vn({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},Fye,t)},Bye=e=>e.charAt(0).toUpperCase(),XB=(mm+ig*2)*6,Wye=Et("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),qye=Et(pr,{name:"MuiDayPicker",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.palette.text.secondary})),Uye=Et("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:XB}),Hye=Et(Nye,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:XB}),Vye=Et("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Gye=Et("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${ig}px 0`,display:"flex",justifyContent:"center"});function Yye(e){const t=og(),n=Br(),r=pn({props:e,name:"MuiDayPicker"}),l=zye(r),{onFocusedDayChange:i,className:o,currentMonth:a,selectedDays:s,disabled:u,disableHighlightToday:c,focusedDay:d,isMonthSwitchingAnimating:f,loading:p,onSelectedDaysChange:m,onMonthSwitchingAnimationEnd:g,readOnly:b,reduceAnimations:v,renderDay:h,renderLoading:y=()=>ke.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:w,slideDirection:_,TransitionProps:x,disablePast:T,disableFuture:k,minDate:S,maxDate:C,shouldDisableDate:M,dayOfWeekFormatter:O=Bye,hasFocus:D,onFocusedViewChange:P,gridLabelId:E}=r,I=WB({shouldDisableDate:M,minDate:S,maxDate:C,disablePast:T,disableFuture:k}),[A,F]=ge.useState(()=>d||t),j=ge.useCallback(H=>{P&&P(H)},[P]),z=ge.useCallback((H,Z="finish")=>{b||m(H,Z)},[m,b]),B=ge.useCallback(H=>{I(H)||(i(H),F(H),j(!0))},[I,i,j]),N=po();function R(H,Z){switch(H.key){case"ArrowUp":B(n.addDays(Z,-7)),H.preventDefault();break;case"ArrowDown":B(n.addDays(Z,7)),H.preventDefault();break;case"ArrowLeft":{const G=n.addDays(Z,N.direction==="ltr"?-1:1),X=N.direction==="ltr"?n.getPreviousMonth(Z):n.getNextMonth(Z),Q=$h({utils:n,date:G,minDate:N.direction==="ltr"?n.startOfMonth(X):G,maxDate:N.direction==="ltr"?G:n.endOfMonth(X),isDateDisabled:I});B(Q||G),H.preventDefault();break}case"ArrowRight":{const G=n.addDays(Z,N.direction==="ltr"?1:-1),X=N.direction==="ltr"?n.getNextMonth(Z):n.getPreviousMonth(Z),Q=$h({utils:n,date:G,minDate:N.direction==="ltr"?G:n.startOfMonth(X),maxDate:N.direction==="ltr"?n.endOfMonth(X):G,isDateDisabled:I});B(Q||G),H.preventDefault();break}case"Home":B(n.startOfWeek(Z)),H.preventDefault();break;case"End":B(n.endOfWeek(Z)),H.preventDefault();break;case"PageUp":B(n.getNextMonth(Z)),H.preventDefault();break;case"PageDown":B(n.getPreviousMonth(Z)),H.preventDefault();break}}function q(H,Z){B(Z)}function Y(H,Z){D&&n.isSameDay(A,Z)&&j(!1)}const L=n.getMonth(a),W=s.filter(H=>!!H).map(H=>n.startOfDay(H)),U=L,V=ge.useMemo(()=>ge.createRef(),[U]),te=n.startOfWeek(t),ee=ge.useMemo(()=>{const H=n.startOfMonth(a),Z=n.endOfMonth(a);return I(A)||n.isAfterDay(A,Z)||n.isBeforeDay(A,H)?$h({utils:n,date:A,minDate:H,maxDate:Z,disablePast:T,disableFuture:k,isDateDisabled:I}):A},[a,k,T,A,I,n]);return ke.jsxs("div",{role:"grid","aria-labelledby":E,children:[ke.jsx(Wye,{role:"row",className:l.header,children:n.getWeekdays().map((H,Z)=>{var G;return ke.jsx(qye,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(te,Z),"weekday"),className:l.weekDayLabel,children:(G=O==null?void 0:O(H))!=null?G:H},H+Z.toString())})}),p?ke.jsx(Uye,{className:l.loadingContainer,children:y()}):ke.jsx(Hye,Ie({transKey:U,onExited:g,reduceAnimations:v,slideDirection:_,className:ma(o,l.slideTransition)},x,{nodeRef:V,children:ke.jsx(Vye,{ref:V,role:"rowgroup",className:l.monthContainer,children:n.getWeekArray(a).map(H=>ke.jsx(Gye,{role:"row",className:l.weekContainer,children:H.map(Z=>{const G=ee!==null&&n.isSameDay(Z,ee),X=W.some(ae=>n.isSameDay(ae,Z)),Q=n.isSameDay(Z,t),re={key:Z==null?void 0:Z.toString(),day:Z,isAnimating:f,disabled:u||I(Z),autoFocus:D&&G,today:Q,outsideCurrentMonth:n.getMonth(Z)!==L,selected:X,disableHighlightToday:c,showDaysOutsideCurrentMonth:w,onKeyDown:R,onFocus:q,onBlur:Y,onDaySelect:z,tabIndex:G?0:-1,role:"gridcell","aria-selected":X};return Q&&(re["aria-current"]="date"),h?h(Z,W,re):ge.createElement(GB,Ie({},re,{key:re.key}))})},`week-${H[0]}`))})}))]})}function YM({onChange:e,onViewChange:t,openTo:n,view:r,views:l}){var i,o;const[a,s]=Zl({name:"Picker",state:"view",controlled:r,default:n&&Cu(l,n)?n:l[0]}),u=(i=l[l.indexOf(a)-1])!=null?i:null,c=(o=l[l.indexOf(a)+1])!=null?o:null,d=ge.useCallback(m=>{s(m),t&&t(m)},[s,t]),f=ge.useCallback(()=>{c&&d(c)},[c,d]);return{handleChangeAndOpenNext:ge.useCallback((m,g)=>{const b=g==="finish";e(m,b&&c?"partial":g),b&&f()},[c,e,f]),nextView:c,previousView:u,openNext:f,openView:a,setOpenView:d}}const Xye=Qr(ke.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Kye=Qr(ke.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Zye=Qr(ke.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),KB=Qr(ke.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"}),"Calendar"),ZB=Qr(ke.jsxs(ge.Fragment,{children:[ke.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"}),ke.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Qye=Qr(ke.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"}),"DateRange"),Jye=Qr(ke.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),e1e=Qr(ke.jsxs(ge.Fragment,{children:[ke.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"}),ke.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function t1e(e){return yn("MuiPickersArrowSwitcher",e)}hn("MuiPickersArrowSwitcher",["root","spacer","button"]);const n1e=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],r1e=e=>{const{classes:t}=e;return vn({root:["root"],spacer:["spacer"],button:["button"]},t1e,t)},a1e=Et("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),o1e=Et("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),T7=Et(mi,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Ie({},e.hidden&&{visibility:"hidden"})),QB=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersArrowSwitcher"}),{children:l,className:i,components:o,componentsProps:a,isLeftDisabled:s,isLeftHidden:u,isRightDisabled:c,isRightHidden:d,leftArrowButtonText:f,onLeftClick:p,onRightClick:m,rightArrowButtonText:g}=r,b=Kt(r,n1e),h=po().direction==="rtl",y=(a==null?void 0:a.leftArrowButton)||{},w=(o==null?void 0:o.LeftArrowIcon)||Kye,_=(a==null?void 0:a.rightArrowButton)||{},x=(o==null?void 0:o.RightArrowIcon)||Zye,T=r,k=r1e(T);return ke.jsxs(a1e,Ie({ref:n,className:ma(k.root,i),ownerState:T},b,{children:[ke.jsx(T7,Ie({as:o==null?void 0:o.LeftArrowButton,size:"small","aria-label":f,title:f,disabled:s,edge:"end",onClick:p},y,{className:ma(k.button,y.className),ownerState:Ie({},T,y,{hidden:u}),children:h?ke.jsx(x,{}):ke.jsx(w,{})})),l?ke.jsx(pr,{variant:"subtitle1",component:"span",children:l}):ke.jsx(o1e,{className:k.spacer,ownerState:T}),ke.jsx(T7,Ie({as:o==null?void 0:o.RightArrowButton,size:"small","aria-label":g,title:g,edge:"start",disabled:c,onClick:m},_,{className:ma(k.button,_.className),ownerState:Ie({},T,_,{hidden:d}),children:h?ke.jsx(w,{}):ke.jsx(x,{})}))]}))}),i1e=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,dk=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,l1e=(e,t,n,r)=>{const l=dk(r.getHours(e),t,n);return r.setHours(e,l)},k7=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),JB=(e=!1,t)=>(n,r)=>e?t.isAfter(n,r):k7(n,t)>k7(r,t);function s1e(e,{disableFuture:t,maxDate:n}){const r=Br();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isBefore(l,n)?l:n);return!r.isAfter(i,e)},[t,n,e,r])}function u1e(e,{disablePast:t,minDate:n}){const r=Br();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isAfter(l,n)?l:n);return!r.isBefore(i,e)},[t,n,e,r])}function eW(e,t,n){const r=Br(),l=i1e(e,r),i=ge.useCallback(o=>{const a=e==null?null:l1e(e,o,!!t,r);n(a,"partial")},[t,e,n,r]);return{meridiemMode:l,handleMeridiemChange:i}}const tW=e=>()=>{},c1e=e=>yn("MuiPickersCalendarHeader",e),d1e=hn("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),f1e=e=>{const{classes:t}=e;return vn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},c1e,t)},p1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),h1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Ie({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),m1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),g1e=Et(mi,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),v1e=Et(Xye,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>Ie({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),y1e=tW();function b1e(e){const t=pn({props:e,name:"MuiPickersCalendarHeader"}),{components:n={},componentsProps:r={},currentMonth:l,disabled:i,disableFuture:o,disablePast:a,getViewSwitchingButtonText:s,leftArrowButtonText:u,maxDate:c,minDate:d,onMonthChange:f,onViewChange:p,openView:m,reduceAnimations:g,rightArrowButtonText:b,views:v,labelId:h}=t;y1e({leftArrowButtonText:u,rightArrowButtonText:b,getViewSwitchingButtonText:s});const y=Xi(),w=u??y.previousMonth,_=b??y.nextMonth,x=s??y.calendarViewSwitchingButtonAriaLabel,T=Br(),k=f1e(t),S=r.switchViewButton||{},C=()=>f(T.getNextMonth(l),"left"),M=()=>f(T.getPreviousMonth(l),"right"),O=s1e(l,{disableFuture:o,maxDate:c}),D=u1e(l,{disablePast:a,minDate:d}),P=()=>{if(!(v.length===1||!p||i))if(v.length===2)p(v.find(I=>I!==m)||v[0]);else{const I=v.indexOf(m)!==0?0:1;p(v[I])}};if(v.length===1&&v[0]==="year")return null;const E=t;return ke.jsxs(p1e,{ownerState:E,className:k.root,children:[ke.jsxs(h1e,{role:"presentation",onClick:P,ownerState:E,"aria-live":"polite",className:k.labelContainer,children:[ke.jsx(qB,{reduceAnimations:g,transKey:T.format(l,"monthAndYear"),children:ke.jsx(m1e,{id:h,ownerState:E,className:k.label,children:T.format(l,"monthAndYear")})}),v.length>1&&!i&&ke.jsx(g1e,Ie({size:"small",as:n.SwitchViewButton,"aria-label":x(m),className:k.switchViewButton},S,{children:ke.jsx(v1e,{as:n.SwitchViewIcon,ownerState:E,className:k.switchViewIcon})}))]}),ke.jsx(lb,{in:m==="day",children:ke.jsx(QB,{leftArrowButtonText:w,rightArrowButtonText:_,components:n,componentsProps:r,onLeftClick:M,onRightClick:C,isLeftDisabled:D,isRightDisabled:O})})]})}const ss=ge.createContext(null);function x1e(e){return yn("PrivatePickersYear",e)}const Ru=hn("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),w1e=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],_1e=e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:l}=e,i={root:["root",t&&`mode${Jt(t)}`],yearButton:["yearButton",n&&"disabled",r&&"selected"]};return vn(i,x1e,l)},T1e=Et("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Ru.modeDesktop}`]:t.modeDesktop},{[`&.${Ru.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Ie({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),k1e=Et("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Ru.disabled}`]:t.disabled},{[`&.${Ru.selected}`]:t.selected}]})(({theme:e})=>Ie({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${Ru.disabled}`]:{color:e.palette.text.secondary},[`&.${Ru.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),S7=()=>{},S1e=ge.forwardRef(function(t,n){const{autoFocus:r,className:l,children:i,disabled:o,onClick:a,onKeyDown:s,value:u,tabIndex:c,onFocus:d=S7,onBlur:f=S7}=t,p=Kt(t,w1e),m=ge.useRef(null),g=Lr(m,n),b=ge.useContext(ss),v=Ie({},t,{wrapperVariant:b}),h=_1e(v);return ge.useEffect(()=>{r&&m.current.focus()},[r]),ke.jsx(T1e,{className:ma(h.root,l),ownerState:v,children:ke.jsx(k1e,Ie({ref:g,disabled:o,type:"button",tabIndex:o?-1:c,onClick:y=>a(y,u),onKeyDown:y=>s(y,u),onFocus:y=>d(y,u),onBlur:y=>f(y,u),className:h.yearButton,ownerState:v},p,{children:i}))})});function nW(e){return yn("MuiYearPicker",e)}const C1e=hn("MuiYearPicker",["root"]),M1e=e=>{const{classes:t}=e;return vn({root:["root"]},nW,t)};function P1e(e,t){const n=Br(),r=ag(),l=pn({props:e,name:t});return Ie({disablePast:!1,disableFuture:!1},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const O1e=Et("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),rW=ge.forwardRef(function(t,n){const r=og(),l=po(),i=Br(),o=P1e(t,"MuiYearPicker"),{autoFocus:a,className:s,date:u,disabled:c,disableFuture:d,disablePast:f,maxDate:p,minDate:m,onChange:g,readOnly:b,shouldDisableYear:v,disableHighlightToday:h,onYearFocus:y,hasFocus:w,onFocusedViewChange:_}=o,x=o,T=M1e(x),k=ge.useMemo(()=>u??i.startOfYear(r),[r,i,u]),S=ge.useMemo(()=>u!=null?i.getYear(u):h?null:i.getYear(r),[r,u,i,h]),C=ge.useContext(ss),M=ge.useRef(null),[O,D]=ge.useState(()=>S||i.getYear(r)),[P,E]=Zl({name:"YearPicker",state:"hasFocus",controlled:w,default:a}),I=ge.useCallback(W=>{E(W),_&&_(W)},[E,_]),A=ge.useCallback(W=>!!(f&&i.isBeforeYear(W,r)||d&&i.isAfterYear(W,r)||m&&i.isBeforeYear(W,m)||p&&i.isAfterYear(W,p)||v&&v(W)),[d,f,p,m,r,v,i]),F=(W,U,V="finish")=>{if(b)return;const te=i.setYear(k,U);g(te,V)},j=ge.useCallback(W=>{A(i.setYear(k,W))||(D(W),I(!0),y==null||y(W))},[A,i,k,I,y]);ge.useEffect(()=>{D(W=>S!==null&&W!==S?S:W)},[S]);const z=C==="desktop"?4:3,B=ge.useCallback((W,U)=>{switch(W.key){case"ArrowUp":j(U-z),W.preventDefault();break;case"ArrowDown":j(U+z),W.preventDefault();break;case"ArrowLeft":j(U+(l.direction==="ltr"?-1:1)),W.preventDefault();break;case"ArrowRight":j(U+(l.direction==="ltr"?1:-1)),W.preventDefault();break}},[j,l.direction,z]),N=ge.useCallback((W,U)=>{j(U)},[j]),R=ge.useCallback((W,U)=>{O===U&&I(!1)},[O,I]),q=i.getYear(r),Y=ge.useRef(null),L=Lr(n,Y);return ge.useEffect(()=>{if(a||Y.current===null)return;const W=Y.current.querySelector('[tabindex="0"]');if(!W)return;const U=W.offsetHeight,V=W.offsetTop,te=Y.current.clientHeight,ee=Y.current.scrollTop,H=V+U;U>te||V{const U=i.getYear(W),V=U===S;return ke.jsx(S1e,{selected:V,value:U,onClick:F,onKeyDown:B,autoFocus:P&&U===O,ref:V?M:void 0,disabled:c||A(W),tabIndex:U===O?0:-1,onFocus:N,onBlur:R,"aria-current":q===U?"date":void 0,children:i.format(W,"year")},i.format(W,"year"))})})}),XM=Et("div")({overflowX:"hidden",width:GM,maxHeight:Cye,display:"flex",flexDirection:"column",margin:"0 auto"}),A1e=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),aW=e=>yn("MuiCalendarPicker",e),D1e=hn("MuiCalendarPicker",["root","viewTransitionContainer"]),E1e=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],R1e=e=>{const{classes:t}=e;return vn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},aW,t)};function L1e(e,t){const n=Br(),r=ag(),l=pn({props:e,name:t});return Ie({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:A1e,renderLoading:()=>ke.jsx("span",{children:"..."})},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const I1e=Et(XM,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),$1e=Et(qB,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),oW=ge.forwardRef(function(t,n){const r=Br(),l=Kl(),i=L1e(t,"MuiCalendarPicker"),{autoFocus:o,onViewChange:a,date:s,disableFuture:u,disablePast:c,defaultCalendarMonth:d,onChange:f,onYearChange:p,onMonthChange:m,reduceAnimations:g,shouldDisableDate:b,shouldDisableMonth:v,shouldDisableYear:h,view:y,views:w,openTo:_,className:x,disabled:T,readOnly:k,minDate:S,maxDate:C,disableHighlightToday:M,focusedView:O,onFocusedViewChange:D}=i,P=Kt(i,E1e),{openView:E,setOpenView:I,openNext:A}=YM({view:y,views:w,openTo:_,onChange:f,onViewChange:a}),{calendarState:F,changeFocusedDay:j,changeMonth:z,handleChangeMonth:B,isDateDisabled:N,onMonthSwitchingAnimationEnd:R}=wye({date:s,defaultCalendarMonth:d,reduceAnimations:g,onMonthChange:m,minDate:S,maxDate:C,shouldDisableDate:b,disablePast:c,disableFuture:u}),q=ge.useCallback((ie,se)=>{const he=r.startOfMonth(ie),Se=r.endOfMonth(ie),Oe=N(ie)?$h({utils:r,date:ie,minDate:r.isBefore(S,he)?he:S,maxDate:r.isAfter(C,Se)?Se:C,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Oe?(f(Oe,se),m==null||m(he)):(A(),z(he)),j(Oe,!0)},[j,u,c,N,C,S,f,m,z,A,r]),Y=ge.useCallback((ie,se)=>{const he=r.startOfYear(ie),Se=r.endOfYear(ie),Oe=N(ie)?$h({utils:r,date:ie,minDate:r.isBefore(S,he)?he:S,maxDate:r.isAfter(C,Se)?Se:C,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Oe?(f(Oe,se),p==null||p(Oe)):(A(),z(he)),j(Oe,!0)},[j,u,c,N,C,S,f,p,A,r,z]),L=ge.useCallback((ie,se)=>f(s&&ie?r.mergeDateAndTime(ie,s):ie,se),[r,s,f]);ge.useEffect(()=>{s&&z(s)},[s]);const W=i,U=R1e(W),V={disablePast:c,disableFuture:u,maxDate:C,minDate:S},te=T&&s||S,ee=T&&s||C,H={disableHighlightToday:M,readOnly:k,disabled:T},Z=`${l}-grid-label`,[G,X]=Zl({name:"DayPicker",state:"focusedView",controlled:O,default:o?E:null}),Q=G!==null,re=yo(ie=>se=>{if(D){D(ie)(se);return}X(se?ie:he=>he===ie?null:he)}),ae=ge.useRef(E);return ge.useEffect(()=>{ae.current!==E&&(ae.current=E,re(E)(!0))},[E,re]),ke.jsxs(I1e,{ref:n,className:ma(U.root,x),ownerState:W,children:[ke.jsx(b1e,Ie({},P,{views:w,openView:E,currentMonth:F.currentMonth,onViewChange:I,onMonthChange:(ie,se)=>B({newMonth:ie,direction:se}),minDate:te,maxDate:ee,disabled:T,disablePast:c,disableFuture:u,reduceAnimations:g,labelId:Z})),ke.jsx($1e,{reduceAnimations:g,className:U.viewTransitionContainer,transKey:E,ownerState:W,children:ke.jsxs("div",{children:[E==="year"&&ke.jsx(rW,Ie({},P,V,H,{autoFocus:o,date:s,onChange:Y,shouldDisableYear:h,hasFocus:Q,onFocusedViewChange:re("year")})),E==="month"&&ke.jsx(BB,Ie({},V,H,{autoFocus:o,hasFocus:Q,className:x,date:s,onChange:q,shouldDisableMonth:v,onFocusedViewChange:re("month")})),E==="day"&&ke.jsx(Yye,Ie({},P,F,V,H,{autoFocus:o,onMonthSwitchingAnimationEnd:R,onFocusedDayChange:j,reduceAnimations:g,selectedDays:[s],onSelectedDaysChange:L,shouldDisableDate:b,hasFocus:Q,onFocusedViewChange:re("day"),gridLabelId:Z}))]})})]})}),iW=e=>yn("MuiCalendarPickerSkeleton",e),N1e=hn("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),F1e=["className"],j1e=e=>{const{classes:t}=e;return vn({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},iW,t)},z1e=Et("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),B1e=Et("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${ig}px 0`,display:"flex",justifyContent:"center"}),lW=Et(xde,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Ie({margin:`0 ${ig}px`},e.day===0&&{visibility:"hidden"}));lW.propTypes={ownerState:le.shape({day:le.number.isRequired}).isRequired};const W1e=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function q1e(e){const t=pn({props:e,name:"MuiCalendarPickerSkeleton"}),{className:n}=t,r=Kt(t,F1e),l=j1e(r);return ke.jsx(z1e,Ie({className:ma(l.root,n)},r,{children:W1e.map((i,o)=>ke.jsx(B1e,{className:l.week,children:i.map((a,s)=>ke.jsx(lW,{variant:"circular",width:mm,height:mm,className:l.daySkeleton,ownerState:{day:a}},s))},o))}))}const Hd=220,Ws=36,gm={x:Hd/2,y:Hd/2},sW={x:gm.x,y:0},U1e=sW.x-gm.x,H1e=sW.y-gm.y,V1e=e=>e*(180/Math.PI),uW=(e,t,n)=>{const r=t-gm.x,l=n-gm.y,i=Math.atan2(U1e,H1e)-Math.atan2(r,l);let o=V1e(i);o=Math.round(o/e)*e,o%=360;const a=Math.floor(o/e)||0,s=r**2+l**2,u=Math.sqrt(s);return{value:a,distance:u}},G1e=(e,t,n=1)=>{const r=n*6;let{value:l}=uW(r,e,t);return l=l*n%60,l},Y1e=(e,t,n)=>{const{value:r,distance:l}=uW(30,e,t);let i=r||12;return n?i%=12:l{const{classes:t}=e;return vn({root:["root"],thumb:["thumb"]},X1e,t)},J1e=Et("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Ie({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),ebe=Et("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Ie({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ws/2}px)`,border:`${(Ws-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function tbe(e){const t=pn({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:l,value:i}=t,o=Kt(t,Z1e),a=ge.useRef(l);ge.useEffect(()=>{a.current=l},[l]);const s=Ie({},t,{shouldAnimate:a.current!==l}),u=Q1e(s),c=()=>{let f=360/(l==="hours"?12:60)*i;return l==="hours"&&i>12&&(f-=360),{height:Math.round((r?.26:.4)*Hd),transform:`rotateZ(${f}deg)`}};return ke.jsx(J1e,Ie({style:c(),className:ma(n,u.root),ownerState:s},o,{children:ke.jsx(ebe,{ownerState:s,className:u.thumb})}))}function nbe(e){return yn("MuiClock",e)}const rbe=hn("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),abe=e=>{const{classes:t}=e;return vn({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},nbe,t)},obe=Et("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),ibe=Et("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),lbe=Et("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),sbe=Et("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Ie({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),ube=Et("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),cbe=Et(mi,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Ie({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),dbe=Et(mi,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Ie({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function fbe(e){const t=pn({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:l,children:i,date:o,getClockLabelText:a,handleMeridiemChange:s,isTimeDisabled:u,meridiemMode:c,minutesStep:d=1,onChange:f,selectedId:p,type:m,value:g,disabled:b,readOnly:v,className:h}=t,y=t,w=Br(),_=ge.useContext(ss),x=ge.useRef(!1),T=abe(y),k=u(g,m),S=!n&&m==="hours"&&(g<1||g>12),C=(z,B)=>{b||v||u(z,m)||f(z,B)},M=(z,B)=>{let{offsetX:N,offsetY:R}=z;if(N===void 0){const Y=z.target.getBoundingClientRect();N=z.changedTouches[0].clientX-Y.left,R=z.changedTouches[0].clientY-Y.top}const q=m==="seconds"||m==="minutes"?G1e(N,R,d):Y1e(N,R,!!n);C(q,B)},O=z=>{x.current=!0,M(z,"shallow")},D=z=>{x.current&&(M(z,"finish"),x.current=!1)},P=z=>{z.buttons>0&&M(z.nativeEvent,"shallow")},E=z=>{x.current&&(x.current=!1),M(z.nativeEvent,"finish")},I=ge.useMemo(()=>m==="hours"?!0:g%5===0,[m,g]),A=m==="minutes"?d:1,F=ge.useRef(null);no(()=>{l&&F.current.focus()},[l]);const j=z=>{if(!x.current)switch(z.key){case"Home":C(0,"partial"),z.preventDefault();break;case"End":C(m==="minutes"?59:23,"partial"),z.preventDefault();break;case"ArrowUp":C(g+A,"partial"),z.preventDefault();break;case"ArrowDown":C(g-A,"partial"),z.preventDefault();break}};return ke.jsxs(obe,{className:ma(h,T.root),children:[ke.jsxs(ibe,{className:T.clock,children:[ke.jsx(sbe,{onTouchMove:O,onTouchEnd:D,onMouseUp:E,onMouseMove:P,ownerState:{disabled:b},className:T.squareMask}),!k&&ke.jsxs(ge.Fragment,{children:[ke.jsx(ube,{className:T.pin}),o&&ke.jsx(tbe,{type:m,value:g,isInner:S,hasSelected:I})]}),ke.jsx(lbe,{"aria-activedescendant":p,"aria-label":a(m,o,w),ref:F,role:"listbox",onKeyDown:j,tabIndex:0,className:T.wrapper,children:i})]}),n&&(_==="desktop"||r)&&ke.jsxs(ge.Fragment,{children:[ke.jsx(cbe,{onClick:v?void 0:()=>s("am"),disabled:b||c===null,ownerState:y,className:T.amButton,children:ke.jsx(pr,{variant:"caption",children:"AM"})}),ke.jsx(dbe,{disabled:b||c===null,onClick:v?void 0:()=>s("pm"),ownerState:y,className:T.pmButton,children:ke.jsx(pr,{variant:"caption",children:"PM"})})]})]})}function pbe(e){return yn("MuiClockNumber",e)}const gh=hn("MuiClockNumber",["root","selected","disabled"]),hbe=["className","disabled","index","inner","label","selected"],mbe=e=>{const{classes:t,selected:n,disabled:r}=e;return vn({root:["root",n&&"selected",r&&"disabled"]},pbe,t)},gbe=Et("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${gh.disabled}`]:t.disabled},{[`&.${gh.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Ie({height:Ws,width:Ws,position:"absolute",left:`calc((100% - ${Ws}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${gh.selected}`]:{color:e.palette.primary.contrastText},[`&.${gh.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Ie({},e.typography.body2,{color:e.palette.text.secondary})));function cW(e){const t=pn({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:l,inner:i,label:o,selected:a}=t,s=Kt(t,hbe),u=t,c=mbe(u),d=l%12/12*Math.PI*2-Math.PI/2,f=(Hd-Ws-2)/2*(i?.65:1),p=Math.round(Math.cos(d)*f),m=Math.round(Math.sin(d)*f);return ke.jsx(gbe,Ie({className:ma(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":a?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${m+(Hd-Ws)/2}px`},ownerState:u},s,{children:o}))}const vbe=({ampm:e,date:t,getClockNumberText:n,isDisabled:r,selectedId:l,utils:i})=>{const o=t?i.getHours(t):null,a=[],s=e?1:0,u=e?12:23,c=d=>o===null?!1:e?d===12?o===12||o===0:o===d||o-12===d:o===d;for(let d=s;d<=u;d+=1){let f=d.toString();d===0&&(f="00");const p=!e&&(d===0||d>12);f=i.formatNumber(f);const m=c(d);a.push(ke.jsx(cW,{id:m?l:void 0,index:d,inner:p,selected:m,disabled:r(d),label:f,"aria-label":n(f)},d))}return a},C7=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:l})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([o,a],s)=>{const u=o===t;return ke.jsx(cW,{label:a,id:u?l:void 0,index:s+1,inner:!1,disabled:n(o),selected:u,"aria-label":r(a)},o)})};function dW(e){return yn("MuiClockPicker",e)}const ybe=hn("MuiClockPicker",["root","arrowSwitcher"]),bbe=e=>{const{classes:t}=e;return vn({root:["root"],arrowSwitcher:["arrowSwitcher"]},dW,t)},xbe=Et(XM,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),wbe=Et(QB,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),_be=tW(),fW=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiClockPicker"}),{ampm:l=!1,ampmInClock:i=!1,autoFocus:o,components:a,componentsProps:s,date:u,disableIgnoringDatePartForTimeValidation:c,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:m,leftArrowButtonText:g,maxTime:b,minTime:v,minutesStep:h=1,rightArrowButtonText:y,shouldDisableTime:w,showViewSwitcher:_,onChange:x,view:T,views:k=["hours","minutes"],openTo:S,onViewChange:C,className:M,disabled:O,readOnly:D}=r;_be({leftArrowButtonText:g,rightArrowButtonText:y,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:m});const P=Xi(),E=g??P.openPreviousView,I=y??P.openNextView,A=d??P.clockLabelText,F=f??P.hoursClockNumberText,j=p??P.minutesClockNumberText,z=m??P.secondsClockNumberText,{openView:B,setOpenView:N,nextView:R,previousView:q,handleChangeAndOpenNext:Y}=YM({view:T,views:k,openTo:S,onViewChange:C,onChange:x}),L=og(),W=Br(),U=ge.useMemo(()=>u||W.setSeconds(W.setMinutes(W.setHours(L,0),0),0),[u,L,W]),{meridiemMode:V,handleMeridiemChange:te}=eW(U,l,Y),ee=ge.useCallback((Q,re)=>{const ae=JB(c,W),ie=({start:he,end:Se})=>!(v&&ae(v,Se)||b&&ae(he,b)),se=(he,Se=1)=>he%Se!==0?!1:w?!w(he,re):!0;switch(re){case"hours":{const he=dk(Q,V,l),Se=W.setHours(U,he),Oe=W.setSeconds(W.setMinutes(Se,0),0),Pe=W.setSeconds(W.setMinutes(Se,59),59);return!ie({start:Oe,end:Pe})||!se(he)}case"minutes":{const he=W.setMinutes(U,Q),Se=W.setSeconds(he,0),Oe=W.setSeconds(he,59);return!ie({start:Se,end:Oe})||!se(Q,h)}case"seconds":{const he=W.setSeconds(U,Q);return!ie({start:he,end:he})||!se(Q)}default:throw new Error("not supported")}},[l,U,c,b,V,v,h,w,W]),H=Kl(),Z=ge.useMemo(()=>{switch(B){case"hours":{const Q=(re,ae)=>{const ie=dk(re,V,l);Y(W.setHours(U,ie),ae)};return{onChange:Q,value:W.getHours(U),children:vbe({date:u,utils:W,ampm:l,onChange:Q,getClockNumberText:F,isDisabled:re=>O||ee(re,"hours"),selectedId:H})}}case"minutes":{const Q=W.getMinutes(U),re=(ae,ie)=>{Y(W.setMinutes(U,ae),ie)};return{value:Q,onChange:re,children:C7({utils:W,value:Q,onChange:re,getClockNumberText:j,isDisabled:ae=>O||ee(ae,"minutes"),selectedId:H})}}case"seconds":{const Q=W.getSeconds(U),re=(ae,ie)=>{Y(W.setSeconds(U,ae),ie)};return{value:Q,onChange:re,children:C7({utils:W,value:Q,onChange:re,getClockNumberText:z,isDisabled:ae=>O||ee(ae,"seconds"),selectedId:H})}}default:throw new Error("You must provide the type for ClockView")}},[B,W,u,l,F,j,z,V,Y,U,ee,H,O]),G=r,X=bbe(G);return ke.jsxs(xbe,{ref:n,className:ma(X.root,M),ownerState:G,children:[_&&ke.jsx(wbe,{className:X.arrowSwitcher,leftArrowButtonText:E,rightArrowButtonText:I,components:a,componentsProps:s,onLeftClick:()=>N(q),onRightClick:()=>N(R),isLeftDisabled:!q,isRightDisabled:!R,ownerState:G}),ke.jsx(fbe,Ie({autoFocus:o,date:u,ampmInClock:i,type:B,ampm:l,getClockLabelText:A,minutesStep:h,isTimeDisabled:ee,meridiemMode:V,handleMeridiemChange:te,selectedId:H,disabled:O,readOnly:D},Z))]})}),pW=e=>e.length===1&&e[0]==="year",hW=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,Tbe=(e,t)=>pW(e)?{inputFormat:t.formats.year}:hW(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function KM(e,t){var n;const r=Br(),l=ag(),i=pn({props:e,name:t}),o=(n=i.views)!=null?n:["year","day"];return Ie({openTo:"day",disableFuture:!1,disablePast:!1},Tbe(o,r),i,{views:o,minDate:Ci(r,i.minDate,l.minDate),maxDate:Ci(r,i.maxDate,l.maxDate)})}const ZM={emptyValue:null,getTodayValue:e=>e.date(),parseInput:qM,areValuesEqual:(e,t,n)=>e.isEqual(t,n)};function mW(e){return yn("MuiPickersToolbar",e)}const QM=hn("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),kbe=e=>{const{classes:t,isLandscape:n}=e;return vn({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},mW,t)},Sbe=Et("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Ie({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),Cbe=Et(cr,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Ie({flex:1},!e.isLandscape&&{alignItems:"center"})),Mbe=Et(mi,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${QM.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),Pbe=e=>e==="clock"?ke.jsx(ZB,{color:"inherit"}):ke.jsx(KB,{color:"inherit"}),JM=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersToolbar"}),{children:l,className:i,getMobileKeyboardInputViewButtonText:o,isLandscape:a,isMobileKeyboardViewOpen:s,landscapeDirection:u="column",toggleMobileKeyboardView:c,toolbarTitle:d,viewType:f="calendar"}=r,p=r,m=Xi(),g=kbe(p);return ke.jsxs(Sbe,{ref:n,className:ma(g.root,i),ownerState:p,children:[ke.jsx(pr,{color:"text.secondary",variant:"overline",children:d}),ke.jsxs(Cbe,{container:!0,justifyContent:"space-between",className:g.content,ownerState:p,direction:a?u:"row",alignItems:a?"flex-start":"flex-end",children:[l,ke.jsx(Mbe,{onClick:c,className:g.penIconButton,ownerState:p,color:"inherit","aria-label":o?o(s,f):m.inputModeToggleButtonAriaLabel(s,f),children:s?Pbe(f):ke.jsx(Jye,{color:"inherit"})})]})]})});function Obe(e){return yn("MuiDatePickerToolbar",e)}const Abe=hn("MuiDatePickerToolbar",["root","title"]),Dbe=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],Ebe=e=>{const{classes:t}=e;return vn({root:["root"],title:["title"]},Obe,t)},Rbe=Et(JM,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lbe=Et(pr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Ie({},e.isLandscape&&{margin:"auto 16px auto auto"})),e5=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=r,f=Kt(r,Dbe),p=Br(),m=Xi(),g=Ebe(r),b=c??m.datePickerDefaultToolbarTitle,v=ge.useMemo(()=>l?s?p.formatByString(l,s):pW(d)?p.format(l,"year"):hW(d)?p.format(l,"month"):/en/.test(p.getCurrentLocaleCode())?p.format(l,"normalDateWithWeekday"):p.format(l,"normalDate"):u,[l,s,u,p,d]),h=r;return ke.jsx(Rbe,Ie({ref:n,toolbarTitle:b,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,isLandscape:i,className:g.root},f,{children:ke.jsx(Lbe,{variant:"h4",align:i?"left":"center",ownerState:h,className:g.title,children:v})}))}),Ibe=["onAccept","onClear","onCancel","onSetToday","actions"],t5=e=>{const{onAccept:t,onClear:n,onCancel:r,onSetToday:l,actions:i}=e,o=Kt(e,Ibe),a=ge.useContext(ss),s=Xi(),u=typeof i=="function"?i(a):i;if(u==null||u.length===0)return null;const c=u==null?void 0:u.map(d=>{switch(d){case"clear":return ke.jsx(ji,{onClick:n,children:s.clearButtonLabel},d);case"cancel":return ke.jsx(ji,{onClick:r,children:s.cancelButtonLabel},d);case"accept":return ke.jsx(ji,{onClick:t,children:s.okButtonLabel},d);case"today":return ke.jsx(ji,{onClick:l,children:s.todayButtonLabel},d);default:return null}});return ke.jsx(lse,Ie({},o,{children:c}))};function $be(e){return yn("MuiPickersPopper",e)}hn("MuiPickersPopper",["root","paper"]);const Nbe=["onClick","onTouchStart"],Fbe=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"]},$be,t)},jbe=Et(bM,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),zbe=Et(nu,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Ie({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function Bbe(e,t){return t.documentElement.clientWidth{if(!e)return;function s(){i.current=!0}return document.addEventListener("mousedown",s,!0),document.addEventListener("touchstart",s,!0),()=>{document.removeEventListener("mousedown",s,!0),document.removeEventListener("touchstart",s,!0),i.current=!1}},[e]);const o=yo(s=>{if(!i.current)return;const u=r.current;r.current=!1;const c=Aa(l.current);if(!l.current||"clientX"in s&&Bbe(s,c))return;if(n.current){n.current=!1;return}let d;s.composedPath?d=s.composedPath().indexOf(l.current)>-1:d=!c.documentElement.contains(s.target)||l.current.contains(s.target),!d&&!u&&t(s)}),a=()=>{r.current=!0};return ge.useEffect(()=>{if(e){const s=Aa(l.current),u=()=>{n.current=!0};return s.addEventListener("touchstart",o),s.addEventListener("touchmove",u),()=>{s.removeEventListener("touchstart",o),s.removeEventListener("touchmove",u)}}},[e,o]),ge.useEffect(()=>{if(e){const s=Aa(l.current);return s.addEventListener("click",o),()=>{s.removeEventListener("click",o),r.current=!1}}},[e,o]),[l,a,a]}function qbe(e){var t;const n=pn({props:e,name:"MuiPickersPopper"}),{anchorEl:r,children:l,containerRef:i=null,onBlur:o,onClose:a,onClear:s,onAccept:u,onCancel:c,onSetToday:d,open:f,PopperProps:p,role:m,TransitionComponent:g=fm,TrapFocusProps:b,PaperProps:v={},components:h,componentsProps:y}=n;ge.useEffect(()=>{function j(z){f&&(z.key==="Escape"||z.key==="Esc")&&a()}return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[a,f]);const w=ge.useRef(null);ge.useEffect(()=>{m!=="tooltip"&&(f?w.current=NB(document):w.current&&w.current instanceof HTMLElement&&setTimeout(()=>{w.current instanceof HTMLElement&&w.current.focus()}))},[f,m]);const[_,x,T]=Wbe(f,o??a),k=ge.useRef(null),S=Lr(k,i),C=Lr(S,_),M=n,O=Fbe(M),{onClick:D,onTouchStart:P}=v,E=Kt(v,Nbe),I=j=>{j.key==="Escape"&&(j.stopPropagation(),a())},A=(t=h==null?void 0:h.ActionBar)!=null?t:t5,F=(h==null?void 0:h.PaperContent)||ge.Fragment;return ke.jsx(jbe,Ie({transition:!0,role:m,open:f,anchorEl:r,onKeyDown:I,className:O.root},p,{children:({TransitionProps:j,placement:z})=>ke.jsx(Rj,Ie({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},b,{children:ke.jsx(g,Ie({},j,{children:ke.jsx(zbe,Ie({tabIndex:-1,elevation:8,ref:C,onClick:B=>{x(B),D&&D(B)},onTouchStart:B=>{T(B),P&&P(B)},ownerState:Ie({},M,{placement:z}),className:O.paper},E,{children:ke.jsxs(F,Ie({},y==null?void 0:y.paperContent,{children:[l,ke.jsx(A,Ie({onAccept:u,onClear:s,onCancel:c,onSetToday:d,actions:[]},y==null?void 0:y.actionBar))]}))}))}))}))}))}function n5(e){const{children:t,DateInputProps:n,KeyboardDateInputComponent:r,onClear:l,onDismiss:i,onCancel:o,onAccept:a,onSetToday:s,open:u,PopperProps:c,PaperProps:d,TransitionComponent:f,components:p,componentsProps:m}=e,g=ge.useRef(null),b=Lr(n.inputRef,g);return ke.jsxs(ss.Provider,{value:"desktop",children:[ke.jsx(r,Ie({},n,{inputRef:b})),ke.jsx(qbe,{role:"dialog",open:u,anchorEl:g.current,TransitionComponent:f,PopperProps:c,PaperProps:d,onClose:i,onCancel:o,onClear:l,onAccept:a,onSetToday:s,components:p,componentsProps:m,children:t})]})}const Ube=e=>{const[,t]=ge.useReducer(s=>s+1,0),n=ge.useRef(null),{replace:r,append:l}=e,i=r?r(e.format(e.value)):e.format(e.value),o=ge.useRef(!1),a=s=>{const u=s.target.value;n.current=[u,s.target,u.length>i.length,o.current,i===e.format(u)],t()};return ge.useLayoutEffect(()=>{if(n.current==null)return;let[s,u,c,d,f]=n.current;n.current=null;const p=d&&f,g=s.slice(u.selectionStart).search(e.accept||/\d/g),b=g!==-1?g:0,v=x=>(x.match(e.accept||/\d/g)||[]).join(""),h=v(s.substr(0,u.selectionStart)),y=x=>{let T=0,k=0;for(let S=0;S!==h.length;++S){let C=x.indexOf(h[S],T)+1,M=v(x).indexOf(h[S],k)+1;M-k>1&&(C=T,M=k),k=Math.max(M,k),T=Math.max(T,C)}return T};if(e.mask===!0&&c&&!f){let x=y(s);const T=v(s.substr(x))[0];x=s.indexOf(T,x),s=`${s.substr(0,x)}${s.substr(x+1)}`}let w=e.format(s);l!=null&&u.selectionStart===s.length&&!f&&(c?w=l(w):v(w.slice(-1))===""&&(w=w.slice(0,-1)));const _=r?r(w):w;return i===_?t():e.onChange(_),()=>{let x=y(w);if(e.mask!=null&&(c||d&&!p))for(;w[x]&&v(w[x])==="";)x+=1;u.selectionStart=u.selectionEnd=x+(p?1+b:0)}}),ge.useEffect(()=>{const s=c=>{c.code==="Delete"&&(o.current=!0)},u=c=>{c.code==="Delete"&&(o.current=!1)};return document.addEventListener("keydown",s),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",s),document.removeEventListener("keyup",u)}},[]),{value:n.current!=null?n.current[0]:i,onChange:a}},fk=(e,t,n)=>{const r=e.date(t);return t===null?"":e.isValid(r)?e.formatByString(r,n):""},cy="_",gW="2019-11-21T22:30:00.000",vW="2019-01-01T09:00:00.000";function Hbe(e,t,n,r){if(e)return e;const i=r.formatByString(r.date(vW),t).replace(n,cy),o=r.formatByString(r.date(gW),t).replace(n,"_");return i===o?i:""}function Vbe(e,t,n,r){if(!e)return!1;const i=r.formatByString(r.date(vW),t).replace(n,cy),o=r.formatByString(r.date(gW),t).replace(n,"_"),a=o===i&&e===o;return!a&&r.lib,a}const Gbe=(e,t)=>n=>{let r=0;return n.split("").map((l,i)=>{if(t.lastIndex=0,r>e.length-1)return"";const o=e[r],a=e[r+1],s=t.test(l)?l:"",u=o===cy?s:o+s;return r+=u.length,i===n.length-1&&a&&a!==cy?u?u+a:"":u}).join("")},Ybe=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:n,ignoreInvalidInputs:r,inputFormat:l,inputProps:i,label:o,mask:a,onChange:s,rawValue:u,readOnly:c,rifmFormatter:d,TextFieldProps:f,validationError:p})=>{const m=Br(),g=m.getFormatHelperText(l),{shouldUseMaskedInput:b,maskToUse:v}=ge.useMemo(()=>{if(n)return{shouldUseMaskedInput:!1,maskToUse:""};const P=Hbe(a,l,e,m);return{shouldUseMaskedInput:Vbe(P,l,e,m),maskToUse:P}},[e,n,l,a,m]),h=ge.useMemo(()=>b&&v?Gbe(v,e):P=>P,[e,v,b]),y=u===null?null:m.date(u),[w,_]=ge.useState(y),[x,T]=ge.useState(fk(m,u,l)),k=ge.useRef(),S=ge.useRef(m.locale),C=ge.useRef(l);ge.useEffect(()=>{const P=u!==k.current,E=m.locale!==S.current,I=l!==C.current;if(k.current=u,S.current=m.locale,C.current=l,!P&&!E&&!I)return;const A=u===null?null:m.date(u),F=u===null||m.isValid(A);let j=w===null&&A===null;if(w!==null&&A!==null){const B=m.isEqual(w,A);if(B)j=!0;else{const N=Math.abs(m.getDiff(w,A));j=N===0?B:N<1e3}}if(!E&&!I&&(!F||j))return;const z=fk(m,u,l);_(A),T(z)},[m,u,l,w]);const M=P=>{const E=P===""||P===a?"":P;T(E);const I=E===null?null:m.parse(E,l);r&&!m.isValid(I)||(_(I),s(I,E||void 0))},O=Ube({value:x,onChange:M,format:d||h});return Ie({label:o,disabled:t,error:p,inputProps:Ie({},b?O:{value:x,onChange:P=>{M(P.currentTarget.value)}},{disabled:t,placeholder:g,readOnly:c,type:b?"tel":"text"},i)},f)},Xbe=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],xb=ge.forwardRef(function(t,n){const{className:r,components:l={},disableOpenPicker:i,getOpenDialogAriaText:o,InputAdornmentProps:a,InputProps:s,inputRef:u,openPicker:c,OpenPickerButtonProps:d,renderInput:f}=t,p=Kt(t,Xbe),m=Xi(),g=o??m.openDatePickerDialogue,b=Br(),v=Ybe(p),h=(a==null?void 0:a.position)||"end",y=l.OpenPickerIcon||KB;return f(Ie({ref:n,inputRef:u,className:r},v,{InputProps:Ie({},s,{[`${h}Adornment`]:i?void 0:ke.jsx(uz,Ie({position:h},a,{children:ke.jsx(mi,Ie({edge:h,disabled:p.disabled||p.readOnly,"aria-label":g(p.rawValue,b)},d,{onClick:c,children:ke.jsx(y,{})}))}))})}))});function M7(){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 Kbe=(e,t)=>{const[n,r]=ge.useState(M7);return no(()=>{const i=()=>{r(M7())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),Cu(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Zbe=({autoFocus:e,openView:t})=>{const[n,r]=ge.useState(e?t:null),l=ge.useCallback(i=>o=>{r(o?i:a=>i===a?null:a)},[]);return{focusedView:n,setFocusedView:l}};function Qbe(e){return yn("MuiCalendarOrClockPicker",e)}hn("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const Jbe=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],exe=e=>{const{classes:t}=e;return vn({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},Qbe,t)},txe=Et("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),nxe=Et("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Ie({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),rxe={fullWidth:!0},P7=e=>e==="year"||e==="month"||e==="day",O7=e=>e==="hours"||e==="minutes"||e==="seconds";function us(e){var t,n;const r=pn({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:l,parsedValue:i,DateInputProps:o,isMobileKeyboardViewOpen:a,onDateChange:s,onViewChange:u,openTo:c,orientation:d,showToolbar:f,toggleMobileKeyboardView:p,ToolbarComponent:m=()=>null,toolbarFormat:g,toolbarPlaceholder:b,toolbarTitle:v,views:h,dateRangeIcon:y,timeIcon:w,hideTabs:_}=r,x=Kt(r,Jbe),T=(t=x.components)==null?void 0:t.Tabs,k=Kbe(h,d),S=ge.useContext(ss),C=exe(r),M=f??S!=="desktop",O=!_&&typeof window<"u"&&window.innerHeight>667,D=ge.useCallback((z,B)=>{s(z,S,B)},[s,S]),P=ge.useCallback(z=>{a&&p(),u&&u(z)},[a,u,p]),{openView:E,setOpenView:I,handleChangeAndOpenNext:A}=YM({view:void 0,views:h,openTo:c,onChange:D,onViewChange:P}),{focusedView:F,setFocusedView:j}=Zbe({autoFocus:l,openView:E});return ke.jsxs(nxe,{ownerState:{isLandscape:k},className:C.root,children:[M&&ke.jsx(m,Ie({},x,{views:h,isLandscape:k,parsedValue:i,onChange:D,setOpenView:I,openView:E,toolbarTitle:v,toolbarFormat:g,toolbarPlaceholder:b,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:p})),O&&!!T&&ke.jsx(T,Ie({dateRangeIcon:y,timeIcon:w,view:E,onChange:I},(n=x.componentsProps)==null?void 0:n.tabs)),ke.jsx(XM,{children:a?ke.jsx(txe,{className:C.mobileKeyboardInputView,children:ke.jsx(xb,Ie({},o,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:rxe}))}):ke.jsxs(ge.Fragment,{children:[P7(E)&&ke.jsx(oW,Ie({autoFocus:l,date:i,onViewChange:I,onChange:A,view:E,views:h.filter(P7),focusedView:F,onFocusedViewChange:j},x)),O7(E)&&ke.jsx(fW,Ie({},x,{autoFocus:l,date:i,view:E,views:h.filter(O7),onChange:A,onViewChange:I,showViewSwitcher:S==="desktop"}))]})})]})}const axe=({open:e,onOpen:t,onClose:n})=>{const r=ge.useRef(typeof e=="boolean").current,[l,i]=ge.useState(!1);ge.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const o=ge.useCallback(a=>{r||i(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:l,setIsOpen:o}},cs=(e,t)=>{const{onAccept:n,onChange:r,value:l,closeOnSelect:i}=e,o=Br(),{isOpen:a,setIsOpen:s}=axe(e),u=ge.useMemo(()=>t.parseInput(o,l),[t,o,l]),[c,d]=ge.useState(u),[f,p]=ge.useState(()=>({committed:u,draft:u,resetFallback:u})),m=ge.useCallback(x=>{p(T=>{switch(x.action){case"setAll":case"acceptAndClose":return{draft:x.value,committed:x.value,resetFallback:x.value};case"setCommitted":return Ie({},T,{draft:x.value,committed:x.value});case"setDraft":return Ie({},T,{draft:x.value});default:return T}}),(x.forceOnChangeCall||!x.skipOnChangeCall&&!t.areValuesEqual(o,f.committed,x.value))&&r(x.value),x.action==="acceptAndClose"&&(s(!1),n&&!t.areValuesEqual(o,f.resetFallback,x.value)&&n(x.value))},[n,r,s,f,o,t]);ge.useEffect(()=>{o.isValid(u)&&d(u)},[o,u]),ge.useEffect(()=>{a&&m({action:"setAll",value:u,skipOnChangeCall:!0})},[a]),t.areValuesEqual(o,f.committed,u)||m({action:"setCommitted",value:u,skipOnChangeCall:!0});const g=ge.useMemo(()=>({open:a,onClear:()=>{m({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,t.emptyValue)})},onAccept:()=>{m({value:f.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,u)})},onDismiss:()=>{m({value:f.committed,action:"acceptAndClose"})},onCancel:()=>{m({value:f.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{m({value:t.getTodayValue(o),action:"acceptAndClose"})}}),[m,a,o,f,t,l,u]),[b,v]=ge.useState(!1),h=ge.useMemo(()=>({parsedValue:f.draft,isMobileKeyboardViewOpen:b,toggleMobileKeyboardView:()=>v(!b),onDateChange:(x,T,k="partial")=>{switch(k){case"shallow":return m({action:"setDraft",value:x,skipOnChangeCall:!0});case"partial":return m({action:"setDraft",value:x});case"finish":return m(i??T==="desktop"?{value:x,action:"acceptAndClose"}:{value:x,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[m,b,f.draft,i]),y=ge.useCallback((x,T)=>{const k=t.valueReducer?t.valueReducer(o,c,x):x;r(k,T)},[r,t,c,o]),w=ge.useMemo(()=>({onChange:y,open:a,rawValue:l,openPicker:()=>s(!0)}),[y,a,l,s]),_={pickerProps:h,inputProps:w,wrapperProps:g};return ge.useDebugValue(_,()=>({MuiPickerState:{dateState:f,other:_}})),_},oxe=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],yW=ge.forwardRef(function(t,n){const r=KM(t,"MuiDesktopDatePicker"),l=VM(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,ZM),{PopperProps:s,PaperProps:u,ToolbarComponent:c=e5,TransitionComponent:d,components:f,componentsProps:p}=r,m=Kt(r,oxe),g=Ie({},o,m,{components:f,componentsProps:p,ref:n,validationError:l});return ke.jsx(n5,Ie({},a,{DateInputProps:g,KeyboardDateInputComponent:xb,PopperProps:s,PaperProps:u,TransitionComponent:d,components:f,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},m))}))}),ixe=Et(nse)({[`& .${Rh.container}`]:{outline:0},[`& .${Rh.paper}`]:{outline:0,minWidth:GM}}),lxe=Et(pse)({"&:first-of-type":{padding:0}}),sxe=e=>{var t;const{children:n,DialogProps:r={},onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:c,componentsProps:d}=e,f=(t=c==null?void 0:c.ActionBar)!=null?t:t5;return ke.jsxs(ixe,Ie({open:u,onClose:o},r,{children:[ke.jsx(lxe,{children:n}),ke.jsx(f,Ie({onAccept:l,onClear:i,onCancel:a,onSetToday:s,actions:["cancel","accept"]},d==null?void 0:d.actionBar))]}))},uxe=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function r5(e){const{children:t,DateInputProps:n,DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,PureDateInputComponent:c,components:d,componentsProps:f}=e,p=Kt(e,uxe);return ke.jsxs(ss.Provider,{value:"mobile",children:[ke.jsx(c,Ie({components:d},p,n)),ke.jsx(sxe,{DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:d,componentsProps:f,children:t})]})}const a5=ge.forwardRef(function(t,n){const{disabled:r,getOpenDialogAriaText:l,inputFormat:i,InputProps:o,inputRef:a,label:s,openPicker:u,rawValue:c,renderInput:d,TextFieldProps:f={},validationError:p,className:m}=t,g=Xi(),b=l??g.openDatePickerDialogue,v=Br(),h=ge.useMemo(()=>Ie({},o,{readOnly:!0}),[o]),y=fk(v,c,i),w=yo(_=>{_.stopPropagation(),u()});return d(Ie({label:s,disabled:r,ref:n,inputRef:a,error:p,InputProps:h,className:m},!t.readOnly&&!t.disabled&&{onClick:w},{inputProps:Ie({disabled:r,readOnly:!0,"aria-readonly":!0,"aria-label":b(c,v),value:y},!t.readOnly&&{onClick:w},{onKeyDown:$B(u)})},f))}),cxe=["ToolbarComponent","value","onChange","components","componentsProps"],bW=ge.forwardRef(function(t,n){const r=KM(t,"MuiMobileDatePicker"),l=VM(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,ZM),{ToolbarComponent:s=e5,components:u,componentsProps:c}=r,d=Kt(r,cxe),f=Ie({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return ke.jsx(r5,Ie({},d,a,{DateInputProps:f,PureDateInputComponent:a5,components:u,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))}),dxe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],fxe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,dxe);return wM(l,{defaultMatches:!0})?ke.jsx(yW,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(bW,Ie({ref:n,DialogProps:i},s))});function o5(e,t){var n,r,l,i,o;const a=pn({props:e,name:t}),s=Br(),u=ag(),c=(n=a.ampm)!=null?n:s.is12HourCycleInCurrentLocale();if(a.orientation!=null&&a.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Ie({ampm:c,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:c?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:c?s.formats.keyboardDateTime12h:s.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(a.minDateTime||a.maxDateTime),disablePast:!1,disableFuture:!1},a,{minDate:Ci(s,(r=a.minDateTime)!=null?r:a.minDate,u.minDate),maxDate:Ci(s,(l=a.maxDateTime)!=null?l:a.maxDate,u.maxDate),minTime:(i=a.minDateTime)!=null?i:a.minTime,maxTime:(o=a.maxDateTime)!=null?o:a.maxTime})}const i5={emptyValue:null,getTodayValue:e=>e.date(),parseInput:qM,areValuesEqual:(e,t,n)=>e.isEqual(t,n)},pxe=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function hxe(e){return yn("PrivatePickersToolbarText",e)}const A7=hn("PrivatePickersToolbarText",["root","selected"]),mxe=["className","selected","value"],gxe=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},hxe,t)},vxe=Et(pr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${A7.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${A7.selected}`]:{color:e.palette.text.primary}})),l5=ge.forwardRef(function(t,n){const{className:r,value:l}=t,i=Kt(t,mxe),o=gxe(t);return ke.jsx(vxe,Ie({ref:n,className:ma(r,o.root),component:"span"},i,{children:l}))}),yxe=["align","className","selected","typographyClassName","value","variant"],bxe=e=>{const{classes:t}=e;return vn({root:["root"]},mW,t)},xxe=Et(ji,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),dl=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersToolbarButton"}),{align:l,className:i,selected:o,typographyClassName:a,value:s,variant:u}=r,c=Kt(r,yxe),d=bxe(r);return ke.jsx(xxe,Ie({variant:"text",ref:n,className:ma(i,d.root)},c,{children:ke.jsx(l5,{align:l,className:a,variant:u,value:s,selected:o})}))});function wxe(e){return yn("MuiDateTimePickerToolbar",e)}const _xe=hn("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),Txe=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],kxe=e=>{const{classes:t}=e;return vn({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},wxe,t)},Sxe=Et(JM,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${QM.penIconButton}`]:Ie({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),Cxe=Et("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Mxe=Et("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),D7=Et(l5,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function s5(e){const t=pn({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,parsedValue:r,isMobileKeyboardViewOpen:l,openView:i,setOpenView:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=t,f=Kt(t,Txe),p=t,m=Br(),g=Xi(),b=kxe(p),v=c??g.dateTimePickerDefaultToolbarTitle,h=w=>n?m.format(w,"hours12h"):m.format(w,"hours24h"),y=ge.useMemo(()=>r?s?m.formatByString(r,s):m.format(r,"shortDate"):u,[r,s,u,m]);return ke.jsxs(Sxe,Ie({toolbarTitle:v,isMobileKeyboardViewOpen:l,toggleMobileKeyboardView:a,className:b.root,viewType:pxe(i)},f,{isLandscape:!1,ownerState:p,children:[ke.jsxs(Cxe,{className:b.dateContainer,ownerState:p,children:[d.includes("year")&&ke.jsx(dl,{tabIndex:-1,variant:"subtitle1",onClick:()=>o("year"),selected:i==="year",value:r?m.format(r,"year"):"–"}),d.includes("day")&&ke.jsx(dl,{tabIndex:-1,variant:"h4",onClick:()=>o("day"),selected:i==="day",value:y})]}),ke.jsxs(Mxe,{className:b.timeContainer,ownerState:p,children:[d.includes("hours")&&ke.jsx(dl,{variant:"h3",onClick:()=>o("hours"),selected:i==="hours",value:r?h(r):"--"}),d.includes("minutes")&&ke.jsxs(ge.Fragment,{children:[ke.jsx(D7,{variant:"h3",value:":",className:b.separator,ownerState:p}),ke.jsx(dl,{variant:"h3",onClick:()=>o("minutes"),selected:i==="minutes",value:r?m.format(r,"minutes"):"--"})]}),d.includes("seconds")&&ke.jsxs(ge.Fragment,{children:[ke.jsx(D7,{variant:"h3",value:":",className:b.separator,ownerState:p}),ke.jsx(dl,{variant:"h3",onClick:()=>o("seconds"),selected:i==="seconds",value:r?m.format(r,"seconds"):"--"})]})]})]}))}const xW=({adapter:e,value:t,props:n})=>{const{minTime:r,maxTime:l,minutesStep:i,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:a}=n,s=e.utils.date(t),u=JB(a,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&u(r,s)):return"minTime";case!!(l&&u(s,l)):return"maxTime";case!!(o&&o(e.utils.getHours(s),"hours")):return"shouldDisableTime-hours";case!!(o&&o(e.utils.getMinutes(s),"minutes")):return"shouldDisableTime-minutes";case!!(o&&o(e.utils.getSeconds(s),"seconds")):return"shouldDisableTime-seconds";case!!(i&&e.utils.getMinutes(s)%i!==0):return"minutesStep";default:return null}},Pxe=(e,t)=>e===t,u5=e=>UM(e,xW,Pxe),Oxe=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],Axe=({props:e,value:t,adapter:n})=>{const{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}=e,s=Kt(e,Oxe),u=HM({adapter:n,value:t,props:{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}});return u!==null?u:xW({adapter:n,value:t,props:s})},Dxe=(e,t)=>e===t;function c5(e){return UM(e,Axe,Dxe)}function Exe(e){return yn("MuiDateTimePickerTabs",e)}const Rxe=hn("MuiDateTimePickerTabs",["root"]),Lxe=e=>["day","month","year"].includes(e)?"date":"time",Ixe=e=>e==="date"?"day":"hours",$xe=e=>{const{classes:t}=e;return vn({root:["root"]},Exe,t)},Nxe=Et(Fz,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>Ie({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${nv.indicator}`]:{bottom:"auto",top:0}})),wb=function(t){const n=pn({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:r=ke.jsx(Qye,{}),onChange:l,timeIcon:i=ke.jsx(e1e,{}),view:o}=n,a=Xi(),s=ge.useContext(ss),u=Ie({},n,{wrapperVariant:s}),c=$xe(u),d=(f,p)=>{l(Ixe(p))};return ke.jsxs(Nxe,{ownerState:u,variant:"fullWidth",value:Lxe(o),onChange:d,className:c.root,children:[ke.jsx(ek,{value:"date","aria-label":a.dateTableLabel,icon:ke.jsx(ge.Fragment,{children:r})}),ke.jsx(ek,{value:"time","aria-label":a.timeTableLabel,icon:ke.jsx(ge.Fragment,{children:i})})]})},Fxe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],wW=ge.forwardRef(function(t,n){const r=o5(t,"MuiDesktopDateTimePicker"),l=c5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,i5),{PaperProps:s,PopperProps:u,ToolbarComponent:c=s5,TransitionComponent:d,components:f,componentsProps:p,hideTabs:m=!0}=r,g=Kt(r,Fxe),b=ge.useMemo(()=>Ie({Tabs:wb},f),[f]),v=Ie({},o,g,{components:b,componentsProps:p,ref:n,validationError:l});return ke.jsx(n5,Ie({},a,{DateInputProps:v,KeyboardDateInputComponent:xb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:b,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:v,components:b,componentsProps:p,hideTabs:m},g))}))}),jxe=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],_W=ge.forwardRef(function(t,n){const r=o5(t,"MuiMobileDateTimePicker"),l=c5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,i5),{ToolbarComponent:s=s5,components:u,componentsProps:c,hideTabs:d=!1}=r,f=Kt(r,jxe),p=ge.useMemo(()=>Ie({Tabs:wb},u),[u]),m=Ie({},o,f,{components:p,componentsProps:c,ref:n,validationError:l});return ke.jsx(r5,Ie({},f,a,{DateInputProps:m,PureDateInputComponent:a5,components:p,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:p,componentsProps:c,hideTabs:d},f))}))}),zxe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Bxe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,zxe);return wM(l,{defaultMatches:!0})?ke.jsx(wW,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(_W,Ie({ref:n,DialogProps:i},s))});function d5(e,t){var n;const r=pn({props:e,name:t}),l=Br(),i=(n=r.ampm)!=null?n:l.is12HourCycleInCurrentLocale(),a=Xi().openTimePickerDialogue;return Ie({ampm:i,openTo:"hours",views:["hours","minutes"],acceptRegex:i?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:a,inputFormat:i?l.formats.fullTime12h:l.formats.fullTime24h},r,{components:Ie({OpenPickerIcon:ZB},r.components)})}const f5={emptyValue:null,parseInput:qM,getTodayValue:e=>e.date(),areValuesEqual:(e,t,n)=>e.isEqual(t,n),valueReducer:(e,t,n)=>!t||!e.isValid(n)?n:e.mergeDateAndTime(t,n)};function Wxe(e){return yn("MuiTimePickerToolbar",e)}const Td=hn("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),qxe=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],Uxe=e=>{const{theme:t,isLandscape:n,classes:r}=e,l={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return vn(l,Wxe,r)},Hxe=Et(JM,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${QM.penIconButtonLandscape}`]:{marginTop:"auto"}}),Vxe=Et(l5,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Gxe=Et("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Td.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Td.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>Ie({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),Yxe=Et("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Td.ampmLabel}`]:t.ampmLabel},{[`&.${Td.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Ie({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Td.ampmLabel}`]:{fontSize:17}}));function p5(e){const t=pn({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,onChange:a,openView:s,setOpenView:u,toggleMobileKeyboardView:c,toolbarTitle:d,views:f,disabled:p,readOnly:m}=t,g=Kt(t,qxe),b=Br(),v=Xi(),h=d??v.timePickerDefaultToolbarTitle,y=po(),w=!!(n&&!r),{meridiemMode:_,handleMeridiemChange:x}=eW(l,n,a),T=M=>n?b.format(M,"hours12h"):b.format(M,"hours24h"),k=t,S=Uxe(Ie({},k,{theme:y})),C=ke.jsx(Vxe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:S.separator});return ke.jsxs(Hxe,Ie({viewType:"clock",landscapeDirection:"row",toolbarTitle:h,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:c,ownerState:k,className:S.root},g,{children:[ke.jsxs(Gxe,{className:S.hourMinuteLabel,ownerState:k,children:[Cu(f,"hours")&&ke.jsx(dl,{tabIndex:-1,variant:"h3",onClick:()=>u("hours"),selected:s==="hours",value:l?T(l):"--"}),Cu(f,["hours","minutes"])&&C,Cu(f,"minutes")&&ke.jsx(dl,{tabIndex:-1,variant:"h3",onClick:()=>u("minutes"),selected:s==="minutes",value:l?b.format(l,"minutes"):"--"}),Cu(f,["minutes","seconds"])&&C,Cu(f,"seconds")&&ke.jsx(dl,{variant:"h3",onClick:()=>u("seconds"),selected:s==="seconds",value:l?b.format(l,"seconds"):"--"})]}),w&&ke.jsxs(Yxe,{className:S.ampmSelection,ownerState:k,children:[ke.jsx(dl,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:S.ampmLabel,value:b.getMeridiemText("am"),onClick:m?void 0:()=>x("am"),disabled:p}),ke.jsx(dl,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:S.ampmLabel,value:b.getMeridiemText("pm"),onClick:m?void 0:()=>x("pm"),disabled:p})]})]}))}const Xxe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],TW=ge.forwardRef(function(t,n){const r=d5(t,"MuiDesktopTimePicker"),l=u5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,f5),{PaperProps:s,PopperProps:u,ToolbarComponent:c=p5,TransitionComponent:d,components:f,componentsProps:p}=r,m=Kt(r,Xxe),g=Ie({},o,m,{components:f,componentsProps:p,ref:n,validationError:l});return ke.jsx(n5,Ie({},a,{DateInputProps:g,KeyboardDateInputComponent:xb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:f,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},m))}))}),Kxe=["ToolbarComponent","value","onChange","components","componentsProps"],kW=ge.forwardRef(function(t,n){const r=d5(t,"MuiMobileTimePicker"),l=u5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,f5),{ToolbarComponent:s=p5,components:u,componentsProps:c}=r,d=Kt(r,Kxe),f=Ie({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return ke.jsx(r5,Ie({},d,a,{DateInputProps:f,PureDateInputComponent:a5,components:u,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))});function Zxe(e){return yn("MuiPickerStaticWrapper",e)}hn("MuiPickerStaticWrapper",["root","content"]);const Qxe=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],Jxe=e=>{const{classes:t}=e;return vn({root:["root"],content:["content"]},Zxe,t)},e2e=Et("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),t2e=Et("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:GM,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function _b(e){var t;const n=pn({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:r,onAccept:l,onClear:i,onCancel:o,onSetToday:a,children:s,components:u,componentsProps:c,className:d}=n,f=Kt(n,Qxe),p=Jxe(n),m=(t=u==null?void 0:u.ActionBar)!=null?t:t5,g=(u==null?void 0:u.PaperContent)||ge.Fragment;return ke.jsx(ss.Provider,{value:r,children:ke.jsxs(e2e,Ie({className:ma(p.root,d)},f,{children:[ke.jsx(t2e,{className:p.content,children:ke.jsx(g,Ie({},c==null?void 0:c.paperContent,{children:s}))}),ke.jsx(m,Ie({onAccept:l,onClear:i,onCancel:o,onSetToday:a,actions:r==="desktop"?[]:["cancel","accept"]},c==null?void 0:c.actionBar))]}))})}const n2e=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],r2e=ge.forwardRef(function(t,n){const r=KM(t,"MuiStaticDatePicker"),{ToolbarComponent:l=e5,displayStaticWrapperAs:i="mobile",components:o,componentsProps:a,className:s}=r,u=Kt(r,n2e),{pickerProps:c,inputProps:d,wrapperProps:f}=cs(r,ZM),p=VM(r)!==null,m=Ie({},d,u,{ref:n,validationError:p,components:o});return ke.jsx(_b,Ie({displayStaticWrapperAs:i,components:o,componentsProps:a,className:s},f,{children:ke.jsx(us,Ie({},c,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:l,DateInputProps:m,components:o,componentsProps:a},u))}))}),a2e=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],o2e=ge.forwardRef(function(t,n){const r=o5(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=s5,components:o,componentsProps:a,hideTabs:s=l==="desktop",className:u}=r,c=Kt(r,a2e),{pickerProps:d,inputProps:f,wrapperProps:p}=cs(r,i5),m=c5(r)!==null,g=ge.useMemo(()=>Ie({Tabs:wb},o),[o]),b=Ie({},f,c,{ref:n,validationError:m,components:g,componentsProps:a});return ke.jsx(_b,Ie({displayStaticWrapperAs:l,components:g,componentsProps:a,className:u},p,{children:ke.jsx(us,Ie({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:b,components:g,componentsProps:a,hideTabs:s},c))}))}),i2e=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],l2e=ge.forwardRef(function(t,n){const r=d5(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=p5,components:o,componentsProps:a,className:s}=r,u=Kt(r,i2e),c=u5(r)!==null,{pickerProps:d,inputProps:f,wrapperProps:p}=cs(r,f5),m=Ie({},f,u,{ref:n,validationError:c,components:o,componentsProps:a});return ke.jsx(_b,Ie({displayStaticWrapperAs:l,components:o,componentsProps:a,className:s},p,{children:ke.jsx(us,Ie({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:m,components:o,componentsProps:a},u))}))}),s2e=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],u2e=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,s2e);return wM(l,{defaultMatches:!0})?ke.jsx(TW,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(kW,Ie({ref:n,DialogProps:i},s))});/** @license MUI X v5.0.20 + */function w(x){return x===null||typeof x!="object"}function _(x){return x.map(function(k){return typeof k=="symbol"?k.toString():k})}return u0.exports}var $w={},gD;function oB(){return gD||(gD=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={error:"Data could not be retrieved",grouping:{groupedBy:"Grouped By:",placeholder:"Drag headers here to group by"},pagination:{labelDisplayedRows:"{from}-{to} of {count}",labelRowsPerPage:"Rows per page:",labelRows:"rows",firstAriaLabel:"First Page",firstTooltip:"First Page",previousAriaLabel:"Previous Page",previousTooltip:"Previous Page",nextAriaLabel:"Next Page",nextTooltip:"Next Page",lastAriaLabel:"Last Page",lastTooltip:"Last Page"},toolbar:{addRemoveColumns:"Add or remove columns",nRowsSelected:"{0} row(s) selected",showColumnsTitle:"Show Columns",showColumnsAriaLabel:"Show Columns",exportTitle:"Export",exportAriaLabel:"Export",searchTooltip:"Search",searchPlaceholder:"Search",searchAriaLabel:"Search",clearSearchAriaLabel:"Clear Search"},header:{actions:"Actions"},body:{emptyDataSourceMessage:"No records to display",editRow:{saveTooltip:"Save",cancelTooltip:"Cancel",deleteText:"Are you sure you want to delete this row?"},filterRow:{},dateTimePickerLocalization:"Filter",addTooltip:"Add",deleteTooltip:"Delete",editTooltip:"Edit",bulkEditTooltip:"Edit All",bulkEditApprove:"Save all changes",bulkEditCancel:"Discard all changes"}};e.default=t}($w)),$w}var Nw={},vD;function iB(){return vD||(vD=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={idSynonym:"id",actionsColumnIndex:0,addRowPosition:"last",columnsButton:!1,detailPanelType:"multiple",debounceInterval:200,doubleHorizontalScroll:!1,emptyRowsWhenPaging:!0,exportAllData:!1,exportMenu:[],filtering:!1,groupTitle:!1,header:!0,headerSelectionProps:{},hideFilterIcons:!1,loadingType:"overlay",padding:"normal",searchAutoFocus:!1,paging:!0,pageSize:5,pageSizeOptions:[5,10,20],paginationType:"normal",paginationPosition:"bottom",showEmptyDataSourceMessage:!0,showFirstLastPageButtons:!0,showSelectAllCheckbox:!0,showSelectGroupCheckbox:!0,search:!0,showTitle:!0,showTextRowsSelected:!0,showDetailPanelIcon:!0,tableLayout:"auto",tableWidth:"full",toolbarButtonAlignment:"right",searchFieldAlignment:"right",searchFieldStyle:{},searchFieldVariant:"standard",selection:!1,selectionProps:{},maxColumnSort:1,clientSorting:!0,groupChipProps:{},defaultOrderByCollection:[],showColumnSortOrder:!1,keepSortDirectionOnColumnSwitch:!0,toolbar:!0,defaultExpanded:!1,detailPanelColumnAlignment:"left",detailPanelOffset:{left:0,right:0},thirdSortClick:!0,overflowY:"auto",numberOfPagesAround:1,actionsHeaderIndex:0,draggable:!0};e.default=t}(Nw)),Nw}var Fw={},np={},jw={};const The=Qn(pre);var yD;function Ta(){return yD||(yD=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=The}(jw)),jw}var bD;function khe(){if(bD)return np;bD=1;var e=Cn;Object.defineProperty(np,"__esModule",{value:!0}),np.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");return np.default=r,np}var rp={},xD;function She(){if(xD)return rp;xD=1;var e=Cn;Object.defineProperty(rp,"__esModule",{value:!0}),rp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove");return rp.default=r,rp}var ap={},wD;function Che(){if(wD)return ap;wD=1;var e=Cn;Object.defineProperty(ap,"__esModule",{value:!0}),ap.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");return ap.default=r,ap}var op={},_D;function Mhe(){if(_D)return op;_D=1;var e=Cn;Object.defineProperty(op,"__esModule",{value:!0}),op.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.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 19l-4.99-5zm-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 14z"}),"Search");return op.default=r,op}var ip={},TD;function Phe(){if(TD)return ip;TD=1;var e=Cn;Object.defineProperty(ip,"__esModule",{value:!0}),ip.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");return ip.default=r,ip}const RM=Qn(xue);var lp={},kD;function Ohe(){if(kD)return lp;kD=1;var e=Cn;Object.defineProperty(lp,"__esModule",{value:!0}),lp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");return lp.default=r,lp}var sp={},SD;function Ahe(){if(SD)return sp;SD=1;var e=Cn;Object.defineProperty(sp,"__esModule",{value:!0}),sp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");return sp.default=r,sp}var up={},CD;function Dhe(){if(CD)return up;CD=1;var e=Cn;Object.defineProperty(up,"__esModule",{value:!0}),up.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");return up.default=r,up}var cp={},MD;function Ehe(){if(MD)return cp;MD=1;var e=Cn;Object.defineProperty(cp,"__esModule",{value:!0}),cp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList");return cp.default=r,cp}var dp={},PD;function Rhe(){if(PD)return dp;PD=1;var e=Cn;Object.defineProperty(dp,"__esModule",{value:!0}),dp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");return dp.default=r,dp}var fp={},OD;function Lhe(){if(OD)return fp;OD=1;var e=Cn;Object.defineProperty(fp,"__esModule",{value:!0}),fp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");return fp.default=r,fp}var pp={},AD;function Ihe(){if(AD)return pp;AD=1;var e=Cn;Object.defineProperty(pp,"__esModule",{value:!0}),pp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");return pp.default=r,pp}var hp={},DD;function $he(){if(DD)return hp;DD=1;var e=Cn;Object.defineProperty(hp,"__esModule",{value:!0}),hp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");return hp.default=r,hp}var mp={},ED;function Nhe(){if(ED)return mp;ED=1;var e=Cn;Object.defineProperty(mp,"__esModule",{value:!0}),mp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.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"}),"Clear");return mp.default=r,mp}var gp={},RD;function Fhe(){if(RD)return gp;RD=1;var e=Cn;Object.defineProperty(gp,"__esModule",{value:!0}),gp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");return gp.default=r,gp}var vp={},LD;function jhe(){if(LD)return vp;LD=1;var e=Cn;Object.defineProperty(vp,"__esModule",{value:!0}),vp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddBox");return vp.default=r,vp}var ID;function lB(){return ID||(ID=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(khe()),l=t(She()),i=t(Che()),o=t(Mhe()),a=t(Phe()),s=t(RM),u=t(Ohe()),c=t(Ahe()),d=t(Dhe()),f=t(Ehe()),p=t(Rhe()),m=t(Lhe()),g=t(Ihe()),b=t($he()),v=t(Nhe()),h=t(Fhe()),y=t(jhe()),w=t(Ir()),_=T(ge);function x(S){if(typeof WeakMap!="function")return null;var C=new WeakMap,M=new WeakMap;return(x=function(D){return D?M:C})(S)}function T(S,C){if(S&&S.__esModule)return S;if(S===null||n(S)!=="object"&&typeof S!="function")return{default:S};var M=x(C);if(M&&M.has(S))return M.get(S);var O={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in S)if(P!=="default"&&Object.prototype.hasOwnProperty.call(S,P)){var E=D?Object.getOwnPropertyDescriptor(S,P):null;E&&(E.get||E.set)?Object.defineProperty(O,P,E):O[P]=S[P]}return O.default=S,M&&M.set(S,O),O}var k={Add:(0,_.forwardRef)(function(S,C){return _.default.createElement(y.default,(0,w.default)({},S,{ref:C,"data-testid":"add_box"}))}),Check:(0,_.forwardRef)(function(S,C){return _.default.createElement(h.default,(0,w.default)({},S,{ref:C,"data-testid":"check"}))}),Clear:(0,_.forwardRef)(function(S,C){return _.default.createElement(v.default,(0,w.default)({},S,{ref:C,"data-testid":"clear"}))}),Delete:(0,_.forwardRef)(function(S,C){return _.default.createElement(b.default,(0,w.default)({},S,{ref:C,"data-testid":"delete_outline"}))}),DetailPanel:(0,_.forwardRef)(function(S,C){return _.default.createElement(g.default,(0,w.default)({},S,{ref:C,"data-testid":"chevron_right"}))}),Edit:(0,_.forwardRef)(function(S,C){return _.default.createElement(m.default,(0,w.default)({},S,{ref:C,"data-testid":"edit"}))}),Export:(0,_.forwardRef)(function(S,C){return _.default.createElement(p.default,(0,w.default)({},S,{ref:C,"data-testid":"save_alt"}))}),Filter:(0,_.forwardRef)(function(S,C){return _.default.createElement(f.default,(0,w.default)({},S,{ref:C,"data-testid":"filter_list"}))}),FirstPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(d.default,(0,w.default)({},S,{ref:C,"data-testid":"first_page"}))}),LastPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(c.default,(0,w.default)({},S,{ref:C,"data-testid":"last_page"}))}),NextPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(g.default,(0,w.default)({},S,{ref:C,"data-testid":"chevron_right"}))}),PreviousPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(u.default,(0,w.default)({},S,{ref:C,"data-testid":"chevron_left"}))}),ResetSearch:(0,_.forwardRef)(function(S,C){return _.default.createElement(v.default,(0,w.default)({},S,{ref:C,"data-testid":"clear"}))}),Resize:(0,_.forwardRef)(function(S,C){return _.default.createElement(s.default,(0,w.default)({},S,{ref:C,"data-testid":"drag_handle"}),"|")}),Retry:(0,_.forwardRef)(function(S,C){return _.default.createElement(a.default,(0,w.default)({},S,{ref:C,"data-testid":"replay"}))}),Search:(0,_.forwardRef)(function(S,C){return _.default.createElement(o.default,(0,w.default)({},S,{ref:C,"data-testid":"search"}))}),SortArrow:(0,_.forwardRef)(function(S,C){return _.default.createElement(i.default,(0,w.default)({},S,{ref:C,"data-testid":"arrow_downward"}))}),ThirdStateCheck:(0,_.forwardRef)(function(S,C){return _.default.createElement(l.default,(0,w.default)({},S,{ref:C,"data-testid":"remove"}))}),ViewColumn:(0,_.forwardRef)(function(S,C){return _.default.createElement(r.default,(0,w.default)({},S,{ref:C,"data-testid":"view_column"}))})};e.default=k}(Fw)),Fw}var zw,$D;function zhe(){if($D)return zw;$D=1;var e=function(h){return t(h)&&!n(h)};function t(v){return!!v&&typeof v=="object"}function n(v){var h=Object.prototype.toString.call(v);return h==="[object RegExp]"||h==="[object Date]"||i(v)}var r=typeof Symbol=="function"&&Symbol.for,l=r?Symbol.for("react.element"):60103;function i(v){return v.$$typeof===l}function o(v){return Array.isArray(v)?[]:{}}function a(v,h){return h.clone!==!1&&h.isMergeableObject(v)?g(o(v),v,h):v}function s(v,h,y){return v.concat(h).map(function(w){return a(w,y)})}function u(v,h){if(!h.customMerge)return g;var y=h.customMerge(v);return typeof y=="function"?y:g}function c(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(h){return Object.propertyIsEnumerable.call(v,h)}):[]}function d(v){return Object.keys(v).concat(c(v))}function f(v,h){try{return h in v}catch{return!1}}function p(v,h){return f(v,h)&&!(Object.hasOwnProperty.call(v,h)&&Object.propertyIsEnumerable.call(v,h))}function m(v,h,y){var w={};return y.isMergeableObject(v)&&d(v).forEach(function(_){w[_]=a(v[_],y)}),d(h).forEach(function(_){p(v,_)||(f(v,_)&&y.isMergeableObject(h[_])?w[_]=u(_,y)(v[_],h[_],y):w[_]=a(h[_],y))}),w}function g(v,h,y){y=y||{},y.arrayMerge=y.arrayMerge||s,y.isMergeableObject=y.isMergeableObject||e,y.cloneUnlessOtherwiseSpecified=a;var w=Array.isArray(h),_=Array.isArray(v),x=w===_;return x?w?y.arrayMerge(v,h,y):m(v,h,y):a(h,y)}g.all=function(h,y){if(!Array.isArray(h))throw new Error("first argument should be an array");return h.reduce(function(w,_){return g(w,_,y)},{})};var b=g;return zw=b,zw}var ND;function eg(){if(ND)return Ii;ND=1;var e=Cn;Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.useLocalizationStore=Ii.useIconStore=void 0,Ii.useMergeProps=v,Ii.useOptionStore=void 0,Ii.withContext=h;var t=e($a()),n=whe,r=e(ge),l=e(aB()),i=e(oB()),o=e(iB()),a=e(lB()),s=e(Hq());function u(y,w){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(y);w&&(x=x.filter(function(T){return Object.getOwnPropertyDescriptor(y,T).enumerable})),_.push.apply(_,x)}return _}function c(y){for(var w=1;w=0)&&(l[o]=n[o]);return l}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(qw)),qw.exports}var BD;function uf(){return BD||(BD=1,function(e){var t=qhe();function n(r,l){if(r==null)return{};var i=t(r,l),o,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(i[o]=r[o])}return i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Ww)),Ww.exports}var WD;function Uhe(){return WD||(WD=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Whe),r=t(Ir()),l=t(uf()),i=t(ge),o=["forwardedRef"];function a(u){var c=u.forwardedRef,d=(0,l.default)(u,o);return i.default.createElement(n.default,(0,r.default)({elevation:2},d,{ref:c}))}var s=i.default.forwardRef(function(c,d){return i.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(Bw)),Bw}var Uw={};const fc=Qn(qie);var Hw={exports:{}},qD;function Hhe(){return qD||(qD=1,function(e,t){(function(r,l){e.exports=l(ge)})(Oo,function(n){return function(r){var l={};function i(o){if(l[o])return l[o].exports;var a=l[o]={exports:{},id:o,loaded:!1};return r[o].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}return i.m=r,i.c=l,i.p="",i(0)}([function(r,l,i){Object.defineProperty(l,"__esModule",{value:!0});var o=function(){function m(g,b){for(var v=0;vn.length)&&(r=n.length);for(var l=0,i=new Array(r);l0&&E++,g.hasDetailPanel&&E++,g.isTreeData&&E++,s.default.createElement(o.default,{style:{height:P*(v.paging&&v.emptyRowsWhenPaging?g.pageSize:1)},key:"empty-0"},s.default.createElement(a.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:g.columns.reduce(function(I,A){return A.hidden?I:I+1},E),key:"empty-"},b.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return s.default.createElement(s.default.Fragment,null,(0,i.default)(Array(O)).map(function(I,A){return s.default.createElement(o.default,{style:{height:P},key:"empty-"+A})}),O>0&&s.default.createElement(o.default,{style:{height:1},key:"empty-last1"}))}function _(O){return O.map(function(D,P){if(D.tableData.editing||g.bulkEditOpen)return s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:D,errorState:g.errorState,icons:h,localization:b.editRow,key:"row-"+D.tableData.uuid,mode:g.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:g.isTreeData,detailPanel:g.detailPanel,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,bulkEditChangedRows:g.bulkEditChangedRows,getFieldValue:g.getFieldValue,onBulkEditRowChanged:g.onBulkEditRowChanged,scrollWidth:g.scrollWidth});var E=g.isTreeData?[D.tableData.uuid]:[P+g.pageSize*g.currentPage];return s.default.createElement(g.components.Row,{components:g.components,data:D,index:P,errorState:g.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:g.onRowSelected,actions:g.actions,columns:g.columns,getFieldValue:g.getFieldValue,detailPanel:g.detailPanel,path:E,onToggleDetailPanel:g.onToggleDetailPanel,onRowClick:g.onRowClick,onRowDoubleClick:g.onRowDoubleClick,isTreeData:g.isTreeData,onTreeExpandChanged:g.onTreeExpandChanged,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,hasAnyEditingRow:g.hasAnyEditingRow,treeDataMaxLevel:g.treeDataMaxLevel,cellEditable:g.cellEditable,onCellEditStarted:g.onCellEditStarted,onCellEditFinished:g.onCellEditFinished,onRowEditStarted:g.onRowEditStarted,scrollWidth:g.scrollWidth})})}function x(O,D){return D.map(function(P,E){return s.default.createElement(g.components.GroupRow,{actions:g.actions,cellEditable:g.cellEditable,columns:g.columns,components:g.components,detailPanel:g.detailPanel,getFieldValue:g.getFieldValue,groupData:P,groups:O,hasAnyEditingRow:g.hasAnyEditingRow,icons:h,isTreeData:g.isTreeData,key:P.value==null?""+E:P.value,level:0,localization:b.editRow,onBulkEditRowChanged:g.onBulkEditRowChanged,onCellEditFinished:g.onCellEditFinished,onCellEditStarted:g.onCellEditStarted,onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,onGroupExpandChanged:g.onGroupExpandChanged,onRowClick:g.onRowClick,onGroupSelected:g.onGroupSelected,onRowSelected:g.onRowSelected,onToggleDetailPanel:g.onToggleDetailPanel,onTreeExpandChanged:g.onTreeExpandChanged,path:[E+g.pageSize*g.currentPage],scrollWidth:g.scrollWidth,treeDataMaxLevel:g.treeDataMaxLevel})})}function T(){return g.showAddRow&&s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:g.initialFormData,detailPanel:g.detailPanel,errorState:g.errorState,getFieldValue:g.getFieldValue,icons:h,isTreeData:g.isTreeData,key:"key-add-row",localization:b.editRow,mode:"add",onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,scrollWidth:g.scrollWidth})}var k=g.renderData,S=g.columns.filter(function(O){return O.tableData.groupOrder>-1}).sort(function(O,D){return O.tableData.groupOrder-D.tableData.groupOrder}),C=0;v.paging&&g.pageSize>k.length&&(C=g.pageSize-k.length);var M=s.default.useMemo(function(){return g.renderSummaryRow?function(O){return g.renderSummaryRow(f(f({},O),{},{data:g.data,currentData:g.currentData}))}:void 0},[g.data]);return s.default.createElement(r.default,{ref:g.forwardedRef},v.filtering&&s.default.createElement(g.components.FilterRow,{columns:y,icons:h,hasActions:g.actions.some(function(O){return O.position==="row"||typeof O=="function"}),onFilterChanged:g.onFilterChanged,localization:b.filterRow,hasDetailPanel:!!g.detailPanel,isTreeData:g.isTreeData,scrollWidth:g.scrollWidth,hideFilterIcons:g.options.hideFilterIcons}),v.addRowPosition==="first"&&T(),S.length>0?x(S,k):_(k),v.addRowPosition==="last"&&T(),s.default.createElement(g.components.SummaryRow,{columns:y,renderSummaryRow:M,rowProps:g}),w(C,k))}p.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},p.propTypes={actions:u.default.array,bulkEditChangedRows:u.default.object,bulkEditOpen:u.default.bool,cellEditable:u.default.object,columns:u.default.array.isRequired,components:u.default.object.isRequired,currentPage:u.default.number,data:u.default.array,detailPanel:u.default.oneOfType([u.default.func,u.default.arrayOf(u.default.oneOfType([u.default.object,u.default.func]))]),errorState:u.default.oneOfType([u.default.object,u.default.bool]),forwardedRef:u.default.oneOfType([u.default.func,u.default.object]),getFieldValue:u.default.func.isRequired,hasAnyEditingRow:u.default.bool,hasDetailPanel:u.default.bool.isRequired,initialFormData:u.default.object,isTreeData:u.default.bool.isRequired,onBulkEditRowChanged:u.default.func,onCellEditFinished:u.default.func,onCellEditStarted:u.default.func,onEditingApproved:u.default.func,onEditingCanceled:u.default.func,onFilterChanged:u.default.func,onGroupExpandChanged:u.default.func,onRowClick:u.default.func,onRowDoubleClick:u.default.func,onGroupSelected:u.default.func,onRowSelected:u.default.func,onToggleDetailPanel:u.default.func.isRequired,onTreeExpandChanged:u.default.func.isRequired,pageSize:u.default.number,renderData:u.default.array,renderSummaryRow:u.default.func,scrollWidth:u.default.number.isRequired,selection:u.default.bool.isRequired,showAddRow:u.default.bool,treeDataMaxLevel:u.default.number};var m=s.default.forwardRef(function(b,v){return s.default.createElement(p,(0,n.default)({},b,{forwardedRef:v}))});e.default=m}(Vw)),Vw}var Jw={},e_={exports:{}},QD;function db(){return QD||(QD=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(e_)),e_.exports}var t_={exports:{}},JD;function fb(){return JD||(JD=1,function(e){var t=Xz();function n(l,i){for(var o=0;o1?"s":"")+" required, but only "+t.length+" present")}function Tn(e){_n(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ns(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ak(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function hb(e,t){_n(2,arguments);var n=Tn(e).getTime(),r=kr(t);return new Date(n+r)}function tme(e,t){_n(2,arguments);var n=kr(t);return hb(e,n*1e3)}var nme=6e4;function rme(e,t){_n(2,arguments);var n=kr(t);return hb(e,n*nme)}var ame=36e5;function ome(e,t){_n(2,arguments);var n=kr(t);return hb(e,n*ame)}function ime(e,t){_n(2,arguments);var n=kr(t),r=n*7;return ak(e,r)}function av(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var l=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return l>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),l),n)}function o7(e,t){_n(2,arguments);var n=kr(t);return av(e,n*12)}function lme(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getFullYear()-r.getFullYear()}function Lh(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=n.getTime()-r.getTime();return l<0?-1:l>0?1:l}function sme(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=Lh(n,r),i=Math.abs(lme(n,r));n.setFullYear(1584),r.setFullYear(1584);var o=Lh(n,r)===-l,a=l*(i-Number(o));return a===0?0:a}function ume(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return l*12+i}function ok(e){_n(1,arguments);var t=Tn(e);return t.setHours(23,59,59,999),t}function ik(e){_n(1,arguments);var t=Tn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function cme(e){_n(1,arguments);var t=Tn(e);return ok(t).getTime()===ik(t).getTime()}function pB(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=Lh(n,r),i=Math.abs(ume(n,r)),o;if(i<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-l*i);var a=Lh(n,r)===-l;cme(Tn(e))&&i===1&&Lh(e,r)===1&&(a=!1),o=l*(i-Number(a))}return o===0?0:o}var i7={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},dme="trunc";function tg(e){return e?i7[e]:i7[dme]}function fme(e,t,n){_n(2,arguments);var r=pB(e,t)/3;return tg(void 0)(r)}function oy(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Wd(e){_n(1,arguments);var t=Tn(e);return t.setHours(0,0,0,0),t}var pme=864e5;function hme(e,t){_n(2,arguments);var n=Wd(e),r=Wd(t),l=n.getTime()-oy(n),i=r.getTime()-oy(r);return Math.round((l-i)/pme)}function l7(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function hB(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=l7(n,r),i=Math.abs(hme(n,r));n.setDate(n.getDate()-l*i);var o=+(l7(n,r)===-l),a=l*(i-o);return a===0?0:a}function mme(e,t,n){_n(2,arguments);var r=hB(e,t)/7;return tg(void 0)(r)}var mb=6e4,gb=36e5,gme=1e3;function vb(e,t){return _n(2,arguments),Tn(e).getTime()-Tn(t).getTime()}function vme(e,t,n){_n(2,arguments);var r=vb(e,t)/gb;return tg(void 0)(r)}function yme(e,t,n){_n(2,arguments);var r=vb(e,t)/mb;return tg(void 0)(r)}function bme(e,t,n){_n(2,arguments);var r=vb(e,t)/1e3;return tg(void 0)(r)}function xme(e,t){var n;_n(1,arguments);var r=e||{},l=Tn(r.start),i=Tn(r.end),o=i.getTime();if(!(l.getTime()<=o))throw new RangeError("Invalid interval");var a=[],s=l;s.setHours(0,0,0,0);var u=Number((n=void 0)!==null&&n!==void 0?n:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=o;)a.push(Tn(s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return a}var wme={};function ou(){return wme}function l_(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getDay(),m=(p=l.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Sme(e){_n(1,arguments);var t=vB(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=qd(n);return r}var Cme=6048e5;function yB(e){_n(1,arguments);var t=Tn(e),n=qd(t).getTime()-Sme(t).getTime();return Math.round(n/Cme)+1}function Xu(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getUTCDay(),m=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var g=Xu(m,t),b=new Date(0);b.setUTCFullYear(d,0,p),b.setUTCHours(0,0,0,0);var v=Xu(b,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function Mme(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&l!==void 0?l:c.firstWeekContainsDate)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=jM(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var m=Xu(p,t);return m}var Pme=6048e5;function bB(e,t){_n(1,arguments);var n=Tn(e),r=Xu(n,t).getTime()-Mme(n,t).getTime();return Math.round(r/Pme)+1}function tr(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return tr(n==="yy"?l%100:l,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):tr(r+1,2)},d:function(t,n){return tr(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return tr(t.getUTCHours()%12||12,n.length)},H:function(t,n){return tr(t.getUTCHours(),n.length)},m:function(t,n){return tr(t.getUTCMinutes(),n.length)},s:function(t,n){return tr(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,l=t.getUTCMilliseconds(),i=Math.floor(l*Math.pow(10,r-3));return tr(i,n.length)}},jc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ome={G:function(t,n,r){var l=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(l,{width:"abbreviated"});case"GGGGG":return r.era(l,{width:"narrow"});case"GGGG":default:return r.era(l,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var l=t.getUTCFullYear(),i=l>0?l:1-l;return r.ordinalNumber(i,{unit:"year"})}return _s.y(t,n)},Y:function(t,n,r,l){var i=jM(t,l),o=i>0?i:1-i;if(n==="YY"){var a=o%100;return tr(a,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):tr(o,n.length)},R:function(t,n){var r=vB(t);return tr(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return tr(r,n.length)},Q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(l);case"QQ":return tr(l,2);case"Qo":return r.ordinalNumber(l,{unit:"quarter"});case"QQQ":return r.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(l,{width:"wide",context:"formatting"})}},q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(l);case"qq":return tr(l,2);case"qo":return r.ordinalNumber(l,{unit:"quarter"});case"qqq":return r.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(l,{width:"wide",context:"standalone"})}},M:function(t,n,r){var l=t.getUTCMonth();switch(n){case"M":case"MM":return _s.M(t,n);case"Mo":return r.ordinalNumber(l+1,{unit:"month"});case"MMM":return r.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(l,{width:"wide",context:"formatting"})}},L:function(t,n,r){var l=t.getUTCMonth();switch(n){case"L":return String(l+1);case"LL":return tr(l+1,2);case"Lo":return r.ordinalNumber(l+1,{unit:"month"});case"LLL":return r.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(l,{width:"wide",context:"standalone"})}},w:function(t,n,r,l){var i=bB(t,l);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):tr(i,n.length)},I:function(t,n,r){var l=yB(t);return n==="Io"?r.ordinalNumber(l,{unit:"week"}):tr(l,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):_s.d(t,n)},D:function(t,n,r){var l=kme(t);return n==="Do"?r.ordinalNumber(l,{unit:"dayOfYear"}):tr(l,n.length)},E:function(t,n,r){var l=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(l,{width:"short",context:"formatting"});case"EEEE":default:return r.day(l,{width:"wide",context:"formatting"})}},e:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return tr(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return tr(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var l=t.getUTCDay(),i=l===0?7:l;switch(n){case"i":return String(i);case"ii":return tr(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(l,{width:"short",context:"formatting"});case"iiii":default:return r.day(l,{width:"wide",context:"formatting"})}},a:function(t,n,r){var l=t.getUTCHours(),i=l/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var l=t.getUTCHours(),i;switch(l===12?i=jc.noon:l===0?i=jc.midnight:i=l/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var l=t.getUTCHours(),i;switch(l>=17?i=jc.evening:l>=12?i=jc.afternoon:l>=4?i=jc.morning:i=jc.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var l=t.getUTCHours()%12;return l===0&&(l=12),r.ordinalNumber(l,{unit:"hour"})}return _s.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):_s.H(t,n)},K:function(t,n,r){var l=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(l,{unit:"hour"}):tr(l,n.length)},k:function(t,n,r){var l=t.getUTCHours();return l===0&&(l=24),n==="ko"?r.ordinalNumber(l,{unit:"hour"}):tr(l,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):_s.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):_s.s(t,n)},S:function(t,n){return _s.S(t,n)},X:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return u7(o);case"XXXX":case"XX":return wu(o);case"XXXXX":case"XXX":default:return wu(o,":")}},x:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"x":return u7(o);case"xxxx":case"xx":return wu(o);case"xxxxx":case"xxx":default:return wu(o,":")}},O:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+s7(o,":");case"OOOO":default:return"GMT"+wu(o,":")}},z:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+s7(o,":");case"zzzz":default:return"GMT"+wu(o,":")}},t:function(t,n,r,l){var i=l._originalDate||t,o=Math.floor(i.getTime()/1e3);return tr(o,n.length)},T:function(t,n,r,l){var i=l._originalDate||t,o=i.getTime();return tr(o,n.length)}};function s7(e,t){var n=e>0?"-":"+",r=Math.abs(e),l=Math.floor(r/60),i=r%60;if(i===0)return n+String(l);var o=t;return n+String(l)+o+tr(i,2)}function u7(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tr(Math.abs(e)/60,2)}return wu(e,t)}function wu(e,t){var n=t||"",r=e>0?"-":"+",l=Math.abs(e),i=tr(Math.floor(l/60),2),o=tr(l%60,2);return r+i+n+o}var c7=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},xB=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Ame=function(t,n){var r=t.match(/(P+)(p+)?/)||[],l=r[1],i=r[2];if(!i)return c7(t,n);var o;switch(l){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",c7(l,n)).replace("{{time}}",xB(i,n))},lk={p:xB,P:Ame},Dme=["D","DD"],Eme=["YY","YYYY"];function wB(e){return Dme.indexOf(e)!==-1}function _B(e){return Eme.indexOf(e)!==-1}function iy(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Rme={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Lme=function(t,n,r){var l,i=Rme[t];return typeof i=="string"?l=i:n===1?l=i.one:l=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+l:l+" ago":l};function u_(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Ime={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$me={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Nme={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fme={date:u_({formats:Ime,defaultWidth:"full"}),time:u_({formats:$me,defaultWidth:"full"}),dateTime:u_({formats:Nme,defaultWidth:"full"})},jme={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zme=function(t,n,r,l){return jme[t]};function yp(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",l;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;l=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;l=e.values[s]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return l[u]}}var Bme={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Wme={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},qme={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ume={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Hme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Vme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Gme=function(t,n){var r=Number(t),l=r%100;if(l>20||l<10)switch(l%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Yme={ordinalNumber:Gme,era:yp({values:Bme,defaultWidth:"wide"}),quarter:yp({values:Wme,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:yp({values:qme,defaultWidth:"wide"}),day:yp({values:Ume,defaultWidth:"wide"}),dayPeriod:yp({values:Hme,defaultWidth:"wide",formattingValues:Vme,defaultFormattingWidth:"wide"})};function bp(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,l=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(l);if(!i)return null;var o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?Kme(a,function(d){return d.test(o)}):Xme(a,function(d){return d.test(o)}),u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(o.length);return{value:u,rest:c}}}function Xme(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Kme(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var l=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var a=t.slice(l.length);return{value:o,rest:a}}}var Qme=/^(\d+)(th|st|nd|rd)?/i,Jme=/\d+/i,ege={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},tge={any:[/^b/i,/^(a|c)/i]},nge={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rge={any:[/1/i,/2/i,/3/i,/4/i]},age={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},oge={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ige={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},lge={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},sge={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},uge={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cge={ordinalNumber:Zme({matchPattern:Qme,parsePattern:Jme,valueCallback:function(t){return parseInt(t,10)}}),era:bp({matchPatterns:ege,defaultMatchWidth:"wide",parsePatterns:tge,defaultParseWidth:"any"}),quarter:bp({matchPatterns:nge,defaultMatchWidth:"wide",parsePatterns:rge,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:bp({matchPatterns:age,defaultMatchWidth:"wide",parsePatterns:oge,defaultParseWidth:"any"}),day:bp({matchPatterns:ige,defaultMatchWidth:"wide",parsePatterns:lge,defaultParseWidth:"any"}),dayPeriod:bp({matchPatterns:sge,defaultMatchWidth:"any",parsePatterns:uge,defaultParseWidth:"any"})},yb={code:"en-US",formatDistance:Lme,formatLong:Fme,formatRelative:zme,localize:Yme,match:cge,options:{weekStartsOn:0,firstWeekContainsDate:1}},dge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fge=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pge=/^'([^]*?)'?$/,hge=/''/g,mge=/[a-zA-Z]/;function TB(e,t,n){var r,l,i,o,a,s,u,c,d,f,p,m,g,b,v,h,y,w;_n(2,arguments);var _=String(t),x=ou(),T=(r=(l=n==null?void 0:n.locale)!==null&&l!==void 0?l:x.locale)!==null&&r!==void 0?r:yb,k=kr((i=(o=(a=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(u=n.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:x.firstWeekContainsDate)!==null&&o!==void 0?o:(d=x.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=kr((p=(m=(g=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(v=n.locale)===null||v===void 0||(h=v.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&g!==void 0?g:x.weekStartsOn)!==null&&m!==void 0?m:(y=x.locale)===null||y===void 0||(w=y.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var C=Tn(e);if(!mB(C))throw new RangeError("Invalid time value");var M=oy(C),O=gB(C,M),D={firstWeekContainsDate:k,weekStartsOn:S,locale:T,_originalDate:C},P=_.match(fge).map(function(E){var I=E[0];if(I==="p"||I==="P"){var A=lk[I];return A(E,T.formatLong)}return E}).join("").match(dge).map(function(E){if(E==="''")return"'";var I=E[0];if(I==="'")return gge(E);var A=Ome[I];if(A)return!(n!=null&&n.useAdditionalWeekYearTokens)&&_B(E)&&iy(E,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&wB(E)&&iy(E,t,String(e)),A(O,E,T.localize,D);if(I.match(mge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return E}).join("");return P}function gge(e){var t=e.match(pge);return t?t[1].replace(hge,"'"):e}const vge=Object.freeze(Object.defineProperty({__proto__:null,default:TB},Symbol.toStringTag,{value:"Module"}));function yge(e){_n(1,arguments);var t=Tn(e),n=t.getDate();return n}function bge(e){_n(1,arguments);var t=Tn(e),n=t.getDay();return n}function kB(e){_n(1,arguments);var t=Tn(e),n=t.getFullYear(),r=t.getMonth(),l=new Date(0);return l.setFullYear(n,r+1,0),l.setHours(0,0,0,0),l.getDate()}function xge(e){_n(1,arguments);var t=Tn(e),n=t.getHours();return n}function wge(e){_n(1,arguments);var t=Tn(e),n=t.getMinutes();return n}function _ge(e){_n(1,arguments);var t=Tn(e),n=t.getMonth();return n}function Tge(e){_n(1,arguments);var t=Tn(e),n=t.getSeconds();return n}function kge(e){return _n(1,arguments),Tn(e).getFullYear()}function c0(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getTime()>r.getTime()}function zc(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getTime()e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}}}function Dge(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function hr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jv(e,t)}function ly(e){return ly=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ly(e)}function Ege(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rge(e,t){if(t&&(ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return An(e)}function mr(e){var t=Ege();return function(){var r=ly(e),l;if(t){var i=ly(this).constructor;l=Reflect.construct(r,arguments,i)}else l=r.apply(this,arguments);return Rge(this,l)}}function sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lge(e,t){if(ns(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ns(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SB(e){var t=Lge(e,"string");return ns(t)==="symbol"?t:String(t)}function Ige(e,t){for(var n=0;n0,r=n?t:1-t,l;if(r<=50)l=e||100;else{var i=r+50,o=Math.floor(i/100)*100,a=e>=i%100;l=e+o-(a?100:0)}return n?l:1-l}function OB(e){return e%400===0||e%4===0&&e%100!==0}var zge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o){var a=l.getUTCFullYear();if(o.isTwoDigitYear){var s=PB(o.year,a);return l.setUTCFullYear(s,0,1),l.setUTCHours(0,0,0,0),l}var u=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(u,0,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Bge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o,a){var s=jM(l,a);if(o.isTwoDigitYear){var u=PB(o.year,s);return l.setUTCFullYear(u,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),Xu(l,a)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(c,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),Xu(l,a)}}]),n}(_r),Wge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Hge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Vge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Gge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function Yge(e,t,n){_n(2,arguments);var r=Tn(e),l=kr(t),i=bB(r,n)-l;return r.setUTCDate(r.getUTCDate()-i*7),r}var Xge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o,a){return Xu(Yge(l,o,a),a)}}]),n}(_r);function Kge(e,t){_n(2,arguments);var n=Tn(e),r=kr(t),l=yB(n)-r;return n.setUTCDate(n.getUTCDate()-l*7),n}var Zge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o){return qd(Kge(l,o))}}]),n}(_r),Qge=[31,28,31,30,31,30,31,31,30,31,30,31],Jge=[31,29,31,30,31,30,31,31,30,31,30,31],e0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=Jge[s]:i>=1&&i<=Qge[s]}},{key:"set",value:function(l,i,o){return l.setUTCDate(o),l.setUTCHours(0,0,0,0),l}}]),n}(_r),t0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(l,i,o){return l.setUTCMonth(0,o),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function BM(e,t,n){var r,l,i,o,a,s,u,c;_n(2,arguments);var d=ou(),f=kr((r=(l=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(a=n.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&l!==void 0?l:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Tn(e),m=kr(t),g=p.getUTCDay(),b=m%7,v=(b+7)%7,h=(v=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=BM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r),r0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=BM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r),a0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=BM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function o0e(e,t){_n(2,arguments);var n=kr(t);n%7===0&&(n=n-7);var r=1,l=Tn(e),i=l.getUTCDay(),o=n%7,a=(o+7)%7,s=(a=1&&i<=7}},{key:"set",value:function(l,i,o){return l=o0e(l,o),l.setUTCHours(0,0,0,0),l}}]),n}(_r),l0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=12}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):!a&&o===12?l.setUTCHours(0,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(_r),d0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=23}},{key:"set",value:function(l,i,o){return l.setUTCHours(o,0,0,0),l}}]),n}(_r),f0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(_r),p0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=24}},{key:"set",value:function(l,i,o){var a=o<=24?o%24:o;return l.setUTCHours(a,0,0,0),l}}]),n}(_r),h0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCMinutes(o,0,0),l}}]),n}(_r),m0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCSeconds(o,0),l}}]),n}(_r),g0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=kr((m=(g=(b=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(h=r.locale)===null||h===void 0||(y=h.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&g!==void 0?g:(w=k.locale)===null||w===void 0||(_=w.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return x===""?Tn(n):new Date(NaN);var O={firstWeekContainsDate:C,weekStartsOn:M,locale:S},D=[new Fge],P=T.match(T0e).map(function(U){var V=U[0];if(V in lk){var te=lk[V];return te(U,S.formatLong)}return U}).join("").match(_0e),E=[],I=p7(P),A;try{var F=function(){var V=A.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&_B(V)&&iy(V,T,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&wB(V)&&iy(V,T,e);var te=V[0],ee=w0e[te];if(ee){var H=ee.incompatibleTokens;if(Array.isArray(H)){var Z=E.find(function(X){return H.includes(X.token)||X.token===te});if(Z)throw new RangeError("The format string mustn't contain `".concat(Z.fullToken,"` and `").concat(V,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&E.length>0)throw new RangeError("The format string mustn't contain `".concat(V,"` and any other token at the same time"));E.push({token:te,fullToken:V});var G=ee.run(x,V,S.match,O);if(!G)return{v:new Date(NaN)};D.push(G.setter),x=G.rest}else{if(te.match(M0e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(V==="''"?V="'":te==="'"&&(V=O0e(V)),x.indexOf(V)===0)x=x.slice(V.length);else return{v:new Date(NaN)}}};for(I.s();!(A=I.n()).done;){var j=F();if(ns(j)==="object")return j.v}}catch(U){I.e(U)}finally{I.f()}if(x.length>0&&C0e.test(x))return new Date(NaN);var z=D.map(function(U){return U.priority}).sort(function(U,V){return V-U}).filter(function(U,V,te){return te.indexOf(U)===V}).map(function(U){return D.filter(function(V){return V.priority===U}).sort(function(V,te){return te.subPriority-V.subPriority})}).map(function(U){return U[0]}),B=Tn(n);if(isNaN(B.getTime()))return new Date(NaN);var N=gB(B,oy(B)),R={},q=p7(z),Y;try{for(q.s();!(Y=q.n()).done;){var L=Y.value;if(!L.validate(N,O))return new Date(NaN);var W=L.set(N,R,O);Array.isArray(W)?(N=W[0],Dge(R,W[1])):N=W}}catch(U){q.e(U)}finally{q.f()}return N}function O0e(e){return e.match(k0e)[1].replace(S0e,"'")}function A0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setDate(r),n}function D0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setHours(r),n}function E0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setMinutes(r),n}function R0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t),l=n.getFullYear(),i=n.getDate(),o=new Date(0);o.setFullYear(l,r,15),o.setHours(0,0,0,0);var a=kB(o);return n.setMonth(r,Math.min(i,a)),n}function L0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setSeconds(r),n}function I0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function d0(e){_n(1,arguments);var t=Tn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function c_(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getDay(),m=(p2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],p0.timeZoneDelimiter.test(t.date)&&(t.date=e.split(p0.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var l=p0.timezone.exec(r);l?(t.time=r.replace(l[1],""),t.timezone=l[1]):t.time=r}return t}function z0e(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var l=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?l:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function B0e(e,t){if(t===null)return new Date(NaN);var n=e.match($0e);if(!n)return new Date(NaN);var r=!!n[4],l=xp(n[1]),i=xp(n[2])-1,o=xp(n[3]),a=xp(n[4]),s=xp(n[5])-1;if(r)return Y0e(t,a,s)?U0e(t,a,s):new Date(NaN);var u=new Date(0);return!V0e(t,i,o)||!G0e(t,l)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(l,o)),u)}function xp(e){return e?parseInt(e):1}function W0e(e){var t=e.match(N0e);if(!t)return NaN;var n=d_(t[1]),r=d_(t[2]),l=d_(t[3]);return X0e(n,r,l)?n*gb+r*mb+l*1e3:NaN}function d_(e){return e&&parseFloat(e.replace(",","."))||0}function q0e(e){if(e==="Z")return 0;var t=e.match(F0e);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),l=t[3]&&parseInt(t[3])||0;return K0e(r,l)?n*(r*gb+l*mb):NaN}function U0e(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var l=r.getUTCDay()||7,i=(t-1)*7+n+1-l;return r.setUTCDate(r.getUTCDate()+i),r}var H0e=[31,null,31,30,31,30,31,31,30,31,30,31];function DB(e){return e%400===0||e%4===0&&e%100!==0}function V0e(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(H0e[t]||(DB(e)?29:28))}function G0e(e,t){return t>=1&&t<=(DB(e)?366:365)}function Y0e(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function X0e(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function K0e(e,t){return t>=0&&t<=59}const Z0e=Object.freeze(Object.defineProperty({__proto__:null,default:AB},Symbol.toStringTag,{value:"Module"}));function Q0e(e,t){var n,r;_n(1,arguments);var l=Tn(e);if(isNaN(l.getTime()))throw new RangeError("Invalid time value");var i=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),o=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(i!=="extended"&&i!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",s="",u=i==="extended"?"-":"",c=i==="extended"?":":"";if(o!=="time"){var d=tr(l.getDate(),2),f=tr(l.getMonth()+1,2),p=tr(l.getFullYear(),4);a="".concat(p).concat(u).concat(f).concat(u).concat(d)}if(o!=="date"){var m=l.getTimezoneOffset();if(m!==0){var g=Math.abs(m),b=tr(Math.floor(g/60),2),v=tr(g%60,2),h=m<0?"+":"-";s="".concat(h).concat(b,":").concat(v)}else s="Z";var y=tr(l.getHours(),2),w=tr(l.getMinutes(),2),_=tr(l.getSeconds(),2),x=a===""?"":"T",T=[y,w,_].join(c);a="".concat(a).concat(x).concat(T).concat(s)}return a}function J0e(e,t){_n(2,arguments);var n=Tn(e).getTime(),r=Tn(t.start).getTime(),l=Tn(t.end).getTime();if(!(r<=l))throw new RangeError("Invalid interval");return n>=r&&n<=l}var sk={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,u){switch(s){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(s,u){switch(s){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},l=function(s,u){var c=s.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return n(s,u);var p;switch(d){case"P":p=u.dateTime({width:"short"});break;case"PP":p=u.dateTime({width:"medium"});break;case"PPP":p=u.dateTime({width:"long"});break;case"PPPP":default:p=u.dateTime({width:"full"});break}return p.replace("{{date}}",n(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:l},o=i;t.default=o,e.exports=t.default})(sk,sk.exports);var eve=sk.exports;const EB=lr(eve),tve={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class nve{constructor({locale:t,formats:n}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var r;return this.locale?/a/.test((r=this.locale.formatLong)===null||r===void 0?void 0:r.time()):!0},this.getFormatHelperText=r=>{var l,i;const o=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,a=this.locale||yb;return(i=(l=r.match(o))===null||l===void 0?void 0:l.map(s=>{const u=s[0];if(u==="p"||u==="P"){const c=EB[u];return c(s,a.formatLong,{})}return s}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&i!==void 0?i:r},this.parseISO=r=>AB(r),this.toISO=r=>Q0e(r,{format:"extended"}),this.getCurrentLocaleCode=()=>{var r;return((r=this.locale)===null||r===void 0?void 0:r.code)||"en-US"},this.addSeconds=(r,l)=>tme(r,l),this.addMinutes=(r,l)=>rme(r,l),this.addHours=(r,l)=>ome(r,l),this.addDays=(r,l)=>ak(r,l),this.addWeeks=(r,l)=>ime(r,l),this.addMonths=(r,l)=>av(r,l),this.addYears=(r,l)=>o7(r,l),this.isValid=r=>mB(this.date(r)),this.getDiff=(r,l,i)=>{var o;const a=(o=this.date(l))!==null&&o!==void 0?o:r;if(!this.isValid(a))return 0;switch(i){case"years":return sme(r,a);case"quarters":return fme(r,a);case"months":return pB(r,a);case"weeks":return mme(r,a);case"days":return hB(r,a);case"hours":return vme(r,a);case"minutes":return yme(r,a);case"seconds":return bme(r,a);default:return vb(r,a)}},this.isAfter=(r,l)=>c0(r,l),this.isBefore=(r,l)=>zc(r,l),this.startOfDay=r=>Wd(r),this.endOfDay=r=>ok(r),this.getHours=r=>xge(r),this.setHours=(r,l)=>D0e(r,l),this.setMinutes=(r,l)=>E0e(r,l),this.getSeconds=r=>Tge(r),this.setSeconds=(r,l)=>L0e(r,l),this.isSameDay=(r,l)=>Cge(r,l),this.isSameMonth=(r,l)=>Pge(r,l),this.isSameYear=(r,l)=>Mge(r,l),this.isSameHour=(r,l)=>Oge(r,l),this.startOfYear=r=>f0(r),this.endOfYear=r=>s_(r),this.startOfMonth=r=>d0(r),this.endOfMonth=r=>ik(r),this.startOfWeek=r=>c_(r,{locale:this.locale}),this.endOfWeek=r=>l_(r,{locale:this.locale}),this.getYear=r=>kge(r),this.setYear=(r,l)=>I0e(r,l),this.date=r=>typeof r>"u"?new Date:r===null?null:new Date(r),this.toJsDate=r=>r,this.parse=(r,l)=>r===""?null:P0e(r,l,new Date,{locale:this.locale}),this.format=(r,l)=>this.formatByString(r,this.formats[l]),this.formatByString=(r,l)=>TB(r,l,{locale:this.locale}),this.isEqual=(r,l)=>r===null&&l===null?!0:Sge(r,l),this.isNull=r=>r===null,this.isAfterDay=(r,l)=>c0(r,ok(l)),this.isBeforeDay=(r,l)=>zc(r,Wd(l)),this.isBeforeYear=(r,l)=>zc(r,f0(l)),this.isAfterYear=(r,l)=>c0(r,s_(l)),this.isWithinRange=(r,[l,i])=>J0e(r,{start:l,end:i}),this.formatNumber=r=>r,this.getMinutes=r=>wge(r),this.getDate=r=>yge(r),this.setDate=(r,l)=>A0e(r,l),this.getMonth=r=>_ge(r),this.getDaysInMonth=r=>kB(r),this.setMonth=(r,l)=>R0e(r,l),this.getMeridiemText=r=>r==="am"?"AM":"PM",this.getNextMonth=r=>av(r,1),this.getPreviousMonth=r=>av(r,-1),this.getMonthArray=r=>{const i=[f0(r)];for(;i.length<12;){const o=i[i.length-1];i.push(this.getNextMonth(o))}return i},this.mergeDateAndTime=(r,l)=>this.setSeconds(this.setMinutes(this.setHours(r,this.getHours(l)),this.getMinutes(l)),this.getSeconds(l)),this.getWeekdays=()=>{const r=new Date;return xme({start:c_(r,{locale:this.locale}),end:l_(r,{locale:this.locale})}).map(l=>this.formatByString(l,"EEEEEE"))},this.getWeekArray=r=>{const l=c_(d0(r),{locale:this.locale}),i=l_(ik(r),{locale:this.locale});let o=0,a=l;const s=[];let u=null;for(;zc(a,i);){const c=Math.floor(o/7);s[c]=s[c]||[];const d=bge(a);u!==d&&(u=d,s[c].push(a),o+=1),a=ak(a,1)}return s},this.getYearRange=(r,l)=>{const i=f0(r),o=s_(l),a=[];let s=i;for(;zc(s,o);)a.push(s),s=o7(s,1);return a},this.locale=t,this.formats=Object.assign({},tve,n)}isBeforeMonth(t,n){return zc(t,d0(n))}isAfterMonth(t,n){return c0(t,d0(n))}}const rve={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class ave extends nve{constructor(...t){super(...t),this.formatTokenMap=rve,this.expandFormat=n=>{const r=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(r).map(l=>{const i=l[0];if(i==="p"||i==="P"){const o=EB[i],a=this.locale||yb;return o(l,a.formatLong,{})}return l}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const ove=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:ave},Symbol.toStringTag,{value:"Module"})),RB=Qn(ove);function LB(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(n)!==-1):e.indexOf(t)!==-1}const IB=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},$B=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?$B(t.shadowRoot):t:null};function ive(e){return yn("PrivatePickersMonth",e)}const uk=hn("PrivatePickersMonth",["root","selected"]),lve=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],sve=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},ive,t)},uve=Et(pr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${uk.selected}`]:t.selected}]})(({theme:e})=>Ie({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${uk.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),h7=()=>{},cve=e=>{const{disabled:t,onSelect:n,selected:r,value:l,tabIndex:i,hasFocus:o,onFocus:a=h7,onBlur:s=h7}=e,u=Kt(e,lve),c=sve(e),d=()=>{n(l)},f=ge.useRef(null);return no(()=>{if(o){var p;(p=f.current)==null||p.focus()}},[o]),ke.jsx(uve,Ie({ref:f,component:"button",type:"button",className:c.root,tabIndex:i,onClick:d,onKeyDown:IB(d),color:r?"primary":void 0,variant:r?"h5":"subtitle1",disabled:t,onFocus:p=>a(p,l),onBlur:p=>s(p,l)},u))},ia=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Ie({},e)}}}}),dve={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,n)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},fve=ia(dve),pve={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},hve=ia(pve),mve={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,n)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},gve=ia(mve),vve={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,n)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},yve=ia(vve),h0={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},m7={calendar:"Kalenderansicht",clock:"Uhransicht"},bve={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${m7[t]} wechseln`:`${m7[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,n)=>{var r;return`${(r=h0[e])!=null?r:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${h0.hours}`,minutesClockNumberText:e=>`${e} ${h0.minutes}`,secondsClockNumberText:e=>`${e} ${h0.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},xve=ia(bve),wve={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},_ve={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,n)=>`Seleccione ${wve[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},Tve=ia(_ve),kve={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${n.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},Sve=ia(kve),Cve={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},g7={calendar:"kalenteri",clock:"kello"},Mve={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${g7[t]}näkymään`:`${g7[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,n)=>`Valitse ${Cve[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},Pve=ia(Mve),Ove={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},v7={calendar:"kalendáře",clock:"času"},Ave={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${v7[t]}`:`Zobrazení ${v7[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,n)=>{var r;return`${(r=Ove[e])!=null?r:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},Dve=ia(Ave),Eve={hours:"heures",minutes:"minutes",seconds:"secondes"},y7={calendar:"calendrier",clock:"horloge"},Rve={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${y7[t]}`:`passer du ${y7[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,n)=>`Choix des ${Eve[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},Lve=ia(Rve),m0={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},b7={calendar:"naptár",clock:"óra"},Ive={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${b7[t]} nézetre`:`${b7[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,n)=>{var r;return`${(r=m0[e])!=null?r:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${m0.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${m0.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${m0.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},$ve=ia(Ive),NB={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",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},FB=NB,Nve=ia(NB),Fve={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,n)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},jve=ia(Fve),zve={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},Bve=ia(zve),Wve={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},qve={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,n)=>`Seleziona ${Wve[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},Uve=ia(qve),Hve={hours:"小时",minutes:"分钟",seconds:"秒"},Vve={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,n)=>`Select ${Hve[e]}. ${t===null?"未选择时间":`已选择${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},Gve=ia(Vve),Yve={hours:"시간을",minutes:"분을",seconds:"초를"},Xve={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,n)=>`${Yve[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${n.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},Kve=ia(Xve),Zve={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const n=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${n}skoðun`:`${n}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},Qve=ia(Zve),g0={hours:"時間",minutes:"分",seconds:"秒"},x7={calendar:"カレンダー表示",clock:"時計表示"},Jve={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${x7[t]}に切り替える`:`${x7[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,n)=>{var r;return`${(r=g0[e])!=null?r:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${n.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${g0.hours}`,minutesClockNumberText:e=>`${e} ${g0.minutes}`,secondsClockNumberText:e=>`${e} ${g0.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},eye=ia(Jve),tye={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},nye=ia(tye),rye={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,n)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},aye=ia(rye),f_={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},oye={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${f_[t]}`:`Выгляд ${f_[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,n)=>`Абярыце ${f_[e]}. ${t===null?"Час не абраны":`Абраны час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},iye=ia(oye),lye={hours:"часы",minutes:"минуты",seconds:"секунды"},w7={calendar:"календарный",clock:"часовой"},sye={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${w7[t]} вид`:`Открыт ${w7[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,n)=>`Выбрать ${lye[e]}. ${t===null?"Время не выбрано":`Выбрано время ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},uye=ia(sye),WM=ge.createContext(null);function cye(e){const t=pn({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:l,dateLibInstance:i,locale:o,adapterLocale:a,localeText:s}=t,u=ge.useMemo(()=>new r({locale:a??o,formats:l,instance:i}),[r,o,a,l,i]),c=ge.useMemo(()=>({minDate:u.date("1900-01-01T00:00:00.000"),maxDate:u.date("2099-12-31T00:00:00.000")}),[u]),d=ge.useMemo(()=>({utils:u,defaultDates:c,localeText:Ie({},FB,s??{})}),[c,u,s]);return ke.jsx(WM.Provider,{value:d,children:n})}const ng=()=>{const e=ge.useContext(WM);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},Br=()=>ng().utils,rg=()=>ng().defaultDates,Xi=()=>ng().localeText,ag=()=>{const e=Br();return ge.useRef(e.date()).current};function jB(e){return yn("MuiMonthPicker",e)}const dye=hn("MuiMonthPicker",["root"]),Ih=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:l,isDateDisabled:i,utils:o})=>{const a=o.startOfDay(o.date());n&&o.isBefore(l,a)&&(l=a),t&&o.isAfter(r,a)&&(r=a);let s=e,u=e;for(o.isBefore(e,l)&&(s=o.date(l),u=null),o.isAfter(e,r)&&(u&&(u=o.date(r)),s=null);s||u;){if(s&&o.isAfter(s,r)&&(s=null),u&&o.isBefore(u,l)&&(u=null),s){if(!i(s))return s;s=o.addDays(s,1)}if(u){if(!i(u))return u;u=o.addDays(u,-1)}}return null},qM=(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},Ci=(e,t,n)=>{if(t==null)return n;const r=e.date(t);return e.isValid(r)?r:n},fye=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],pye=e=>{const{classes:t}=e;return vn({root:["root"]},jB,t)};function hye(e,t){const n=Br(),r=rg(),l=pn({props:e,name:t});return Ie({disableFuture:!1,disablePast:!1},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const mye=Et("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),zB=ge.forwardRef(function(t,n){const r=Br(),l=ag(),i=hye(t,"MuiMonthPicker"),{className:o,date:a,disabled:s,disableFuture:u,disablePast:c,maxDate:d,minDate:f,onChange:p,shouldDisableMonth:m,readOnly:g,disableHighlightToday:b,autoFocus:v=!1,onMonthFocus:h,hasFocus:y,onFocusedViewChange:w}=i,_=Kt(i,fye),x=i,T=pye(x),k=Ym(),S=ge.useMemo(()=>a??r.startOfMonth(l),[l,r,a]),C=ge.useMemo(()=>a!=null?r.getMonth(a):b?null:r.getMonth(l),[l,a,r,b]),[M,O]=ge.useState(()=>C||r.getMonth(l)),D=ge.useCallback(R=>{const q=r.startOfMonth(c&&r.isAfter(l,f)?l:f),Y=r.startOfMonth(u&&r.isBefore(l,d)?l:d);return r.isBefore(R,q)||r.isAfter(R,Y)?!0:m?m(R):!1},[u,c,d,f,l,m,r]),P=R=>{if(g)return;const q=r.setMonth(S,R);p(q,"finish")},[E,I]=Zl({name:"MonthPicker",state:"hasFocus",controlled:y,default:v}),A=ge.useCallback(R=>{I(R),w&&w(R)},[I,w]),F=ge.useCallback(R=>{D(r.setMonth(S,R))||(O(R),A(!0),h&&h(R))},[D,r,S,A,h]);ge.useEffect(()=>{O(R=>C!==null&&R!==C?C:R)},[C]);const j=yo(R=>{switch(R.key){case"ArrowUp":F((12+M-3)%12),R.preventDefault();break;case"ArrowDown":F((12+M+3)%12),R.preventDefault();break;case"ArrowLeft":F((12+M+(k.direction==="ltr"?-1:1))%12),R.preventDefault();break;case"ArrowRight":F((12+M+(k.direction==="ltr"?1:-1))%12),R.preventDefault();break}}),z=ge.useCallback((R,q)=>{F(q)},[F]),B=ge.useCallback(()=>{A(!1)},[A]),N=r.getMonth(l);return ke.jsx(mye,Ie({ref:n,className:ma(T.root,o),ownerState:x,onKeyDown:j},_,{children:r.getMonthArray(S).map(R=>{const q=r.getMonth(R),Y=r.format(R,"monthShort"),L=s||D(R);return ke.jsx(cve,{value:q,selected:q===C,tabIndex:q===M&&!L?0:-1,hasFocus:E&&q===M,onSelect:P,onFocus:z,onBlur:B,disabled:L,"aria-current":N===q?"date":void 0,children:Y},Y)})}))});function UM(e,t,n){const{value:r,onError:l}=e,i=ng(),o=ge.useRef(null),a=t({adapter:i,value:r,props:e});return ge.useEffect(()=>{l&&!n(a,o.current)&&l(a,r),o.current=a},[n,l,o,a,r]),a}const HM=({props:e,value:t,adapter:n})=>{const r=n.utils.date(),l=n.utils.date(t),i=Ci(n.utils,e.minDate,n.defaultDates.minDate),o=Ci(n.utils,e.maxDate,n.defaultDates.maxDate);if(l===null)return null;switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(l)):return"shouldDisableDate";case!!(e.disableFuture&&n.utils.isAfterDay(l,r)):return"disableFuture";case!!(e.disablePast&&n.utils.isBeforeDay(l,r)):return"disablePast";case!!(i&&n.utils.isBeforeDay(l,i)):return"minDate";case!!(o&&n.utils.isAfterDay(l,o)):return"maxDate";default:return null}},BB=({shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l})=>{const i=ng();return ge.useCallback(o=>HM({adapter:i,value:o,props:{shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l}})!==null,[i,e,t,n,r,l])},gye=(e,t)=>e===t,VM=e=>UM(e,HM,gye),vye=(e,t,n)=>(r,l)=>{switch(l.type){case"changeMonth":return Ie({},r,{slideDirection:l.direction,currentMonth:l.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Ie({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&l.focusedDay!=null&&n.isSameDay(l.focusedDay,r.focusedDay))return r;const i=l.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,l.focusedDay);return Ie({},r,{focusedDay:l.focusedDay,isMonthSwitchingAnimating:i&&!e&&!l.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(l.focusedDay):r.currentMonth,slideDirection:l.focusedDay!=null&&n.isAfterDay(l.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},yye=({date:e,defaultCalendarMonth:t,disableFuture:n,disablePast:r,disableSwitchToMonthOnDayFocus:l=!1,maxDate:i,minDate:o,onMonthChange:a,reduceAnimations:s,shouldDisableDate:u})=>{var c;const d=ag(),f=Br(),p=ge.useRef(vye(!!s,l,f)).current,[m,g]=ge.useReducer(p,{isMonthSwitchingAnimating:!1,focusedDay:e||d,currentMonth:f.startOfMonth((c=e??t)!=null?c:d),slideDirection:"left"}),b=ge.useCallback(_=>{g(Ie({type:"changeMonth"},_)),a&&a(_.newMonth)},[a]),v=ge.useCallback(_=>{const x=_??d;f.isSameMonth(x,m.currentMonth)||b({newMonth:f.startOfMonth(x),direction:f.isAfterDay(x,m.currentMonth)?"left":"right"})},[m.currentMonth,b,d,f]),h=BB({shouldDisableDate:u,minDate:o,maxDate:i,disableFuture:n,disablePast:r}),y=ge.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),w=ge.useCallback((_,x)=>{h(_)||g({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:x})},[h]);return{calendarState:m,changeMonth:v,changeFocusedDay:w,isDateDisabled:h,onMonthSwitchingAnimationEnd:y,handleChangeMonth:b}},bye=e=>yn("MuiPickersFadeTransitionGroup",e),xye=hn("MuiPickersFadeTransitionGroup",["root"]),wye=e=>{const{classes:t}=e;return vn({root:["root"]},bye,t)},_7=500,_ye=Et(Km,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function WB(e){const t=pn({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:l,transKey:i}=t,o=wye(t);return l?n:ke.jsx(_ye,{className:ma(o.root,r),children:ke.jsx(ib,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:_7,enter:_7/2,exit:0},children:n},i)})}const hm=36,og=2,GM=320,Tye=358;function qB(e){return yn("MuiPickersDay",e)}const hh=hn("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),kye=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],Sye=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:l,disabled:i,outsideCurrentMonth:o,showDaysOutsideCurrentMonth:a,classes:s}=e;return vn({root:["root",t&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&l&&"today",o&&a&&"dayOutsideMonth",o&&!a&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},qB,s)},UB=({theme:e,ownerState:t})=>Ie({},e.typography.caption,{width:hm,height:hm,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${hh.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${hh.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${hh.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${og}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${hh.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),HB=(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]},Cye=Et(Tl,{name:"MuiPickersDay",slot:"Root",overridesResolver:HB})(UB),Mye=Et("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:HB})(({theme:e,ownerState:t})=>Ie({},UB({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),p_=()=>{},Pye=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersDay"}),{autoFocus:l=!1,className:i,day:o,disabled:a=!1,disableHighlightToday:s=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:f,onFocus:p=p_,onBlur:m=p_,onKeyDown:g=p_,onMouseDown:b,outsideCurrentMonth:v,selected:h=!1,showDaysOutsideCurrentMonth:y=!1,children:w,today:_=!1}=r,x=Kt(r,kye),T=Ie({},r,{autoFocus:l,disabled:a,disableHighlightToday:s,disableMargin:u,selected:h,showDaysOutsideCurrentMonth:y,today:_}),k=Sye(T),S=Br(),C=ge.useRef(null),M=Lr(C,n);no(()=>{l&&!a&&!c&&!v&&C.current.focus()},[l,a,c,v]);const O=P=>{b&&b(P),v&&P.preventDefault()},D=P=>{a||f(o,"finish"),v&&P.currentTarget.focus(),d&&d(P)};return v&&!y?ke.jsx(Mye,{className:ma(k.root,k.hiddenDaySpacingFiller,i),ownerState:T,role:x.role}):ke.jsx(Cye,Ie({className:ma(k.root,i),ownerState:T,ref:M,centerRipple:!0,disabled:a,tabIndex:h?0:-1,onKeyDown:P=>g(P,o),onFocus:P=>p(P,o),onBlur:P=>m(P,o),onClick:D,onMouseDown:O},x,{children:w||S.format(o,"dayOfMonth")}))}),Oye=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,VB=ge.memo(Pye,Oye),Aye=e=>yn("PrivatePickersSlideTransition",e),Ka=hn("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Dye=["children","className","reduceAnimations","slideDirection","transKey"],Eye=e=>{const{classes:t}=e;return vn({root:["root"]},Aye,t)},GB=350,Rye=Et(Km,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ka["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ka["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ka.slideEnterActive}`]:t.slideEnterActive},{[`.${Ka.slideExit}`]:t.slideExit},{[`.${Ka["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ka["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:GB,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},[`& .${Ka["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ka["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ka.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ka.slideExit}`]:{transform:"translate(0%)"},[`& .${Ka["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ka["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),Lye=e=>{const{children:t,className:n,reduceAnimations:r,slideDirection:l,transKey:i}=e,o=Kt(e,Dye),a=Eye(e);if(r)return ke.jsx("div",{className:ma(a.root,n),children:t});const s={exit:Ka.slideExit,enterActive:Ka.slideEnterActive,enter:Ka[`slideEnter-${l}`],exitActive:Ka[`slideExitActiveLeft-${l}`]};return ke.jsx(Rye,{className:ma(a.root,n),childFactory:u=>ge.cloneElement(u,{classNames:s}),role:"presentation",children:ke.jsx(sM,Ie({mountOnEnter:!0,unmountOnExit:!0,timeout:GB,classNames:s},o,{children:t}),i)})},Iye=e=>yn("MuiDayPicker",e),$ye=hn("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),Nye=e=>{const{classes:t}=e;return vn({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},Iye,t)},Fye=e=>e.charAt(0).toUpperCase(),YB=(hm+og*2)*6,jye=Et("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),zye=Et(pr,{name:"MuiDayPicker",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.palette.text.secondary})),Bye=Et("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:YB}),Wye=Et(Lye,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:YB}),qye=Et("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Uye=Et("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${og}px 0`,display:"flex",justifyContent:"center"});function Hye(e){const t=ag(),n=Br(),r=pn({props:e,name:"MuiDayPicker"}),l=Nye(r),{onFocusedDayChange:i,className:o,currentMonth:a,selectedDays:s,disabled:u,disableHighlightToday:c,focusedDay:d,isMonthSwitchingAnimating:f,loading:p,onSelectedDaysChange:m,onMonthSwitchingAnimationEnd:g,readOnly:b,reduceAnimations:v,renderDay:h,renderLoading:y=()=>ke.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:w,slideDirection:_,TransitionProps:x,disablePast:T,disableFuture:k,minDate:S,maxDate:C,shouldDisableDate:M,dayOfWeekFormatter:O=Fye,hasFocus:D,onFocusedViewChange:P,gridLabelId:E}=r,I=BB({shouldDisableDate:M,minDate:S,maxDate:C,disablePast:T,disableFuture:k}),[A,F]=ge.useState(()=>d||t),j=ge.useCallback(H=>{P&&P(H)},[P]),z=ge.useCallback((H,Z="finish")=>{b||m(H,Z)},[m,b]),B=ge.useCallback(H=>{I(H)||(i(H),F(H),j(!0))},[I,i,j]),N=po();function R(H,Z){switch(H.key){case"ArrowUp":B(n.addDays(Z,-7)),H.preventDefault();break;case"ArrowDown":B(n.addDays(Z,7)),H.preventDefault();break;case"ArrowLeft":{const G=n.addDays(Z,N.direction==="ltr"?-1:1),X=N.direction==="ltr"?n.getPreviousMonth(Z):n.getNextMonth(Z),Q=Ih({utils:n,date:G,minDate:N.direction==="ltr"?n.startOfMonth(X):G,maxDate:N.direction==="ltr"?G:n.endOfMonth(X),isDateDisabled:I});B(Q||G),H.preventDefault();break}case"ArrowRight":{const G=n.addDays(Z,N.direction==="ltr"?1:-1),X=N.direction==="ltr"?n.getNextMonth(Z):n.getPreviousMonth(Z),Q=Ih({utils:n,date:G,minDate:N.direction==="ltr"?G:n.startOfMonth(X),maxDate:N.direction==="ltr"?n.endOfMonth(X):G,isDateDisabled:I});B(Q||G),H.preventDefault();break}case"Home":B(n.startOfWeek(Z)),H.preventDefault();break;case"End":B(n.endOfWeek(Z)),H.preventDefault();break;case"PageUp":B(n.getNextMonth(Z)),H.preventDefault();break;case"PageDown":B(n.getPreviousMonth(Z)),H.preventDefault();break}}function q(H,Z){B(Z)}function Y(H,Z){D&&n.isSameDay(A,Z)&&j(!1)}const L=n.getMonth(a),W=s.filter(H=>!!H).map(H=>n.startOfDay(H)),U=L,V=ge.useMemo(()=>ge.createRef(),[U]),te=n.startOfWeek(t),ee=ge.useMemo(()=>{const H=n.startOfMonth(a),Z=n.endOfMonth(a);return I(A)||n.isAfterDay(A,Z)||n.isBeforeDay(A,H)?Ih({utils:n,date:A,minDate:H,maxDate:Z,disablePast:T,disableFuture:k,isDateDisabled:I}):A},[a,k,T,A,I,n]);return ke.jsxs("div",{role:"grid","aria-labelledby":E,children:[ke.jsx(jye,{role:"row",className:l.header,children:n.getWeekdays().map((H,Z)=>{var G;return ke.jsx(zye,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(te,Z),"weekday"),className:l.weekDayLabel,children:(G=O==null?void 0:O(H))!=null?G:H},H+Z.toString())})}),p?ke.jsx(Bye,{className:l.loadingContainer,children:y()}):ke.jsx(Wye,Ie({transKey:U,onExited:g,reduceAnimations:v,slideDirection:_,className:ma(o,l.slideTransition)},x,{nodeRef:V,children:ke.jsx(qye,{ref:V,role:"rowgroup",className:l.monthContainer,children:n.getWeekArray(a).map(H=>ke.jsx(Uye,{role:"row",className:l.weekContainer,children:H.map(Z=>{const G=ee!==null&&n.isSameDay(Z,ee),X=W.some(ae=>n.isSameDay(ae,Z)),Q=n.isSameDay(Z,t),re={key:Z==null?void 0:Z.toString(),day:Z,isAnimating:f,disabled:u||I(Z),autoFocus:D&&G,today:Q,outsideCurrentMonth:n.getMonth(Z)!==L,selected:X,disableHighlightToday:c,showDaysOutsideCurrentMonth:w,onKeyDown:R,onFocus:q,onBlur:Y,onDaySelect:z,tabIndex:G?0:-1,role:"gridcell","aria-selected":X};return Q&&(re["aria-current"]="date"),h?h(Z,W,re):ge.createElement(VB,Ie({},re,{key:re.key}))})},`week-${H[0]}`))})}))]})}function YM({onChange:e,onViewChange:t,openTo:n,view:r,views:l}){var i,o;const[a,s]=Zl({name:"Picker",state:"view",controlled:r,default:n&&Su(l,n)?n:l[0]}),u=(i=l[l.indexOf(a)-1])!=null?i:null,c=(o=l[l.indexOf(a)+1])!=null?o:null,d=ge.useCallback(m=>{s(m),t&&t(m)},[s,t]),f=ge.useCallback(()=>{c&&d(c)},[c,d]);return{handleChangeAndOpenNext:ge.useCallback((m,g)=>{const b=g==="finish";e(m,b&&c?"partial":g),b&&f()},[c,e,f]),nextView:c,previousView:u,openNext:f,openView:a,setOpenView:d}}const Vye=Qr(ke.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Gye=Qr(ke.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Yye=Qr(ke.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),XB=Qr(ke.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"}),"Calendar"),KB=Qr(ke.jsxs(ge.Fragment,{children:[ke.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"}),ke.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Xye=Qr(ke.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"}),"DateRange"),Kye=Qr(ke.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),Zye=Qr(ke.jsxs(ge.Fragment,{children:[ke.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"}),ke.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function Qye(e){return yn("MuiPickersArrowSwitcher",e)}hn("MuiPickersArrowSwitcher",["root","spacer","button"]);const Jye=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],e1e=e=>{const{classes:t}=e;return vn({root:["root"],spacer:["spacer"],button:["button"]},Qye,t)},t1e=Et("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),n1e=Et("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),T7=Et(mi,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Ie({},e.hidden&&{visibility:"hidden"})),ZB=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersArrowSwitcher"}),{children:l,className:i,components:o,componentsProps:a,isLeftDisabled:s,isLeftHidden:u,isRightDisabled:c,isRightHidden:d,leftArrowButtonText:f,onLeftClick:p,onRightClick:m,rightArrowButtonText:g}=r,b=Kt(r,Jye),h=po().direction==="rtl",y=(a==null?void 0:a.leftArrowButton)||{},w=(o==null?void 0:o.LeftArrowIcon)||Gye,_=(a==null?void 0:a.rightArrowButton)||{},x=(o==null?void 0:o.RightArrowIcon)||Yye,T=r,k=e1e(T);return ke.jsxs(t1e,Ie({ref:n,className:ma(k.root,i),ownerState:T},b,{children:[ke.jsx(T7,Ie({as:o==null?void 0:o.LeftArrowButton,size:"small","aria-label":f,title:f,disabled:s,edge:"end",onClick:p},y,{className:ma(k.button,y.className),ownerState:Ie({},T,y,{hidden:u}),children:h?ke.jsx(x,{}):ke.jsx(w,{})})),l?ke.jsx(pr,{variant:"subtitle1",component:"span",children:l}):ke.jsx(n1e,{className:k.spacer,ownerState:T}),ke.jsx(T7,Ie({as:o==null?void 0:o.RightArrowButton,size:"small","aria-label":g,title:g,edge:"start",disabled:c,onClick:m},_,{className:ma(k.button,_.className),ownerState:Ie({},T,_,{hidden:d}),children:h?ke.jsx(w,{}):ke.jsx(x,{})}))]}))}),r1e=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,ck=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,a1e=(e,t,n,r)=>{const l=ck(r.getHours(e),t,n);return r.setHours(e,l)},k7=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),QB=(e=!1,t)=>(n,r)=>e?t.isAfter(n,r):k7(n,t)>k7(r,t);function o1e(e,{disableFuture:t,maxDate:n}){const r=Br();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isBefore(l,n)?l:n);return!r.isAfter(i,e)},[t,n,e,r])}function i1e(e,{disablePast:t,minDate:n}){const r=Br();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isAfter(l,n)?l:n);return!r.isBefore(i,e)},[t,n,e,r])}function JB(e,t,n){const r=Br(),l=r1e(e,r),i=ge.useCallback(o=>{const a=e==null?null:a1e(e,o,!!t,r);n(a,"partial")},[t,e,n,r]);return{meridiemMode:l,handleMeridiemChange:i}}const eW=e=>()=>{},l1e=e=>yn("MuiPickersCalendarHeader",e),s1e=hn("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),u1e=e=>{const{classes:t}=e;return vn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},l1e,t)},c1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),d1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Ie({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),f1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),p1e=Et(mi,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),h1e=Et(Vye,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>Ie({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),m1e=eW();function g1e(e){const t=pn({props:e,name:"MuiPickersCalendarHeader"}),{components:n={},componentsProps:r={},currentMonth:l,disabled:i,disableFuture:o,disablePast:a,getViewSwitchingButtonText:s,leftArrowButtonText:u,maxDate:c,minDate:d,onMonthChange:f,onViewChange:p,openView:m,reduceAnimations:g,rightArrowButtonText:b,views:v,labelId:h}=t;m1e({leftArrowButtonText:u,rightArrowButtonText:b,getViewSwitchingButtonText:s});const y=Xi(),w=u??y.previousMonth,_=b??y.nextMonth,x=s??y.calendarViewSwitchingButtonAriaLabel,T=Br(),k=u1e(t),S=r.switchViewButton||{},C=()=>f(T.getNextMonth(l),"left"),M=()=>f(T.getPreviousMonth(l),"right"),O=o1e(l,{disableFuture:o,maxDate:c}),D=i1e(l,{disablePast:a,minDate:d}),P=()=>{if(!(v.length===1||!p||i))if(v.length===2)p(v.find(I=>I!==m)||v[0]);else{const I=v.indexOf(m)!==0?0:1;p(v[I])}};if(v.length===1&&v[0]==="year")return null;const E=t;return ke.jsxs(c1e,{ownerState:E,className:k.root,children:[ke.jsxs(d1e,{role:"presentation",onClick:P,ownerState:E,"aria-live":"polite",className:k.labelContainer,children:[ke.jsx(WB,{reduceAnimations:g,transKey:T.format(l,"monthAndYear"),children:ke.jsx(f1e,{id:h,ownerState:E,className:k.label,children:T.format(l,"monthAndYear")})}),v.length>1&&!i&&ke.jsx(p1e,Ie({size:"small",as:n.SwitchViewButton,"aria-label":x(m),className:k.switchViewButton},S,{children:ke.jsx(h1e,{as:n.SwitchViewIcon,ownerState:E,className:k.switchViewIcon})}))]}),ke.jsx(ib,{in:m==="day",children:ke.jsx(ZB,{leftArrowButtonText:w,rightArrowButtonText:_,components:n,componentsProps:r,onLeftClick:M,onRightClick:C,isLeftDisabled:D,isRightDisabled:O})})]})}const ss=ge.createContext(null);function v1e(e){return yn("PrivatePickersYear",e)}const Eu=hn("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),y1e=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],b1e=e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:l}=e,i={root:["root",t&&`mode${Jt(t)}`],yearButton:["yearButton",n&&"disabled",r&&"selected"]};return vn(i,v1e,l)},x1e=Et("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Eu.modeDesktop}`]:t.modeDesktop},{[`&.${Eu.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Ie({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),w1e=Et("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Eu.disabled}`]:t.disabled},{[`&.${Eu.selected}`]:t.selected}]})(({theme:e})=>Ie({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${Eu.disabled}`]:{color:e.palette.text.secondary},[`&.${Eu.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),S7=()=>{},_1e=ge.forwardRef(function(t,n){const{autoFocus:r,className:l,children:i,disabled:o,onClick:a,onKeyDown:s,value:u,tabIndex:c,onFocus:d=S7,onBlur:f=S7}=t,p=Kt(t,y1e),m=ge.useRef(null),g=Lr(m,n),b=ge.useContext(ss),v=Ie({},t,{wrapperVariant:b}),h=b1e(v);return ge.useEffect(()=>{r&&m.current.focus()},[r]),ke.jsx(x1e,{className:ma(h.root,l),ownerState:v,children:ke.jsx(w1e,Ie({ref:g,disabled:o,type:"button",tabIndex:o?-1:c,onClick:y=>a(y,u),onKeyDown:y=>s(y,u),onFocus:y=>d(y,u),onBlur:y=>f(y,u),className:h.yearButton,ownerState:v},p,{children:i}))})});function tW(e){return yn("MuiYearPicker",e)}const T1e=hn("MuiYearPicker",["root"]),k1e=e=>{const{classes:t}=e;return vn({root:["root"]},tW,t)};function S1e(e,t){const n=Br(),r=rg(),l=pn({props:e,name:t});return Ie({disablePast:!1,disableFuture:!1},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const C1e=Et("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),nW=ge.forwardRef(function(t,n){const r=ag(),l=po(),i=Br(),o=S1e(t,"MuiYearPicker"),{autoFocus:a,className:s,date:u,disabled:c,disableFuture:d,disablePast:f,maxDate:p,minDate:m,onChange:g,readOnly:b,shouldDisableYear:v,disableHighlightToday:h,onYearFocus:y,hasFocus:w,onFocusedViewChange:_}=o,x=o,T=k1e(x),k=ge.useMemo(()=>u??i.startOfYear(r),[r,i,u]),S=ge.useMemo(()=>u!=null?i.getYear(u):h?null:i.getYear(r),[r,u,i,h]),C=ge.useContext(ss),M=ge.useRef(null),[O,D]=ge.useState(()=>S||i.getYear(r)),[P,E]=Zl({name:"YearPicker",state:"hasFocus",controlled:w,default:a}),I=ge.useCallback(W=>{E(W),_&&_(W)},[E,_]),A=ge.useCallback(W=>!!(f&&i.isBeforeYear(W,r)||d&&i.isAfterYear(W,r)||m&&i.isBeforeYear(W,m)||p&&i.isAfterYear(W,p)||v&&v(W)),[d,f,p,m,r,v,i]),F=(W,U,V="finish")=>{if(b)return;const te=i.setYear(k,U);g(te,V)},j=ge.useCallback(W=>{A(i.setYear(k,W))||(D(W),I(!0),y==null||y(W))},[A,i,k,I,y]);ge.useEffect(()=>{D(W=>S!==null&&W!==S?S:W)},[S]);const z=C==="desktop"?4:3,B=ge.useCallback((W,U)=>{switch(W.key){case"ArrowUp":j(U-z),W.preventDefault();break;case"ArrowDown":j(U+z),W.preventDefault();break;case"ArrowLeft":j(U+(l.direction==="ltr"?-1:1)),W.preventDefault();break;case"ArrowRight":j(U+(l.direction==="ltr"?1:-1)),W.preventDefault();break}},[j,l.direction,z]),N=ge.useCallback((W,U)=>{j(U)},[j]),R=ge.useCallback((W,U)=>{O===U&&I(!1)},[O,I]),q=i.getYear(r),Y=ge.useRef(null),L=Lr(n,Y);return ge.useEffect(()=>{if(a||Y.current===null)return;const W=Y.current.querySelector('[tabindex="0"]');if(!W)return;const U=W.offsetHeight,V=W.offsetTop,te=Y.current.clientHeight,ee=Y.current.scrollTop,H=V+U;U>te||V{const U=i.getYear(W),V=U===S;return ke.jsx(_1e,{selected:V,value:U,onClick:F,onKeyDown:B,autoFocus:P&&U===O,ref:V?M:void 0,disabled:c||A(W),tabIndex:U===O?0:-1,onFocus:N,onBlur:R,"aria-current":q===U?"date":void 0,children:i.format(W,"year")},i.format(W,"year"))})})}),XM=Et("div")({overflowX:"hidden",width:GM,maxHeight:Tye,display:"flex",flexDirection:"column",margin:"0 auto"}),M1e=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),rW=e=>yn("MuiCalendarPicker",e),P1e=hn("MuiCalendarPicker",["root","viewTransitionContainer"]),O1e=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],A1e=e=>{const{classes:t}=e;return vn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},rW,t)};function D1e(e,t){const n=Br(),r=rg(),l=pn({props:e,name:t});return Ie({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:M1e,renderLoading:()=>ke.jsx("span",{children:"..."})},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const E1e=Et(XM,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),R1e=Et(WB,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),aW=ge.forwardRef(function(t,n){const r=Br(),l=Kl(),i=D1e(t,"MuiCalendarPicker"),{autoFocus:o,onViewChange:a,date:s,disableFuture:u,disablePast:c,defaultCalendarMonth:d,onChange:f,onYearChange:p,onMonthChange:m,reduceAnimations:g,shouldDisableDate:b,shouldDisableMonth:v,shouldDisableYear:h,view:y,views:w,openTo:_,className:x,disabled:T,readOnly:k,minDate:S,maxDate:C,disableHighlightToday:M,focusedView:O,onFocusedViewChange:D}=i,P=Kt(i,O1e),{openView:E,setOpenView:I,openNext:A}=YM({view:y,views:w,openTo:_,onChange:f,onViewChange:a}),{calendarState:F,changeFocusedDay:j,changeMonth:z,handleChangeMonth:B,isDateDisabled:N,onMonthSwitchingAnimationEnd:R}=yye({date:s,defaultCalendarMonth:d,reduceAnimations:g,onMonthChange:m,minDate:S,maxDate:C,shouldDisableDate:b,disablePast:c,disableFuture:u}),q=ge.useCallback((ie,se)=>{const he=r.startOfMonth(ie),Se=r.endOfMonth(ie),Oe=N(ie)?Ih({utils:r,date:ie,minDate:r.isBefore(S,he)?he:S,maxDate:r.isAfter(C,Se)?Se:C,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Oe?(f(Oe,se),m==null||m(he)):(A(),z(he)),j(Oe,!0)},[j,u,c,N,C,S,f,m,z,A,r]),Y=ge.useCallback((ie,se)=>{const he=r.startOfYear(ie),Se=r.endOfYear(ie),Oe=N(ie)?Ih({utils:r,date:ie,minDate:r.isBefore(S,he)?he:S,maxDate:r.isAfter(C,Se)?Se:C,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Oe?(f(Oe,se),p==null||p(Oe)):(A(),z(he)),j(Oe,!0)},[j,u,c,N,C,S,f,p,A,r,z]),L=ge.useCallback((ie,se)=>f(s&&ie?r.mergeDateAndTime(ie,s):ie,se),[r,s,f]);ge.useEffect(()=>{s&&z(s)},[s]);const W=i,U=A1e(W),V={disablePast:c,disableFuture:u,maxDate:C,minDate:S},te=T&&s||S,ee=T&&s||C,H={disableHighlightToday:M,readOnly:k,disabled:T},Z=`${l}-grid-label`,[G,X]=Zl({name:"DayPicker",state:"focusedView",controlled:O,default:o?E:null}),Q=G!==null,re=yo(ie=>se=>{if(D){D(ie)(se);return}X(se?ie:he=>he===ie?null:he)}),ae=ge.useRef(E);return ge.useEffect(()=>{ae.current!==E&&(ae.current=E,re(E)(!0))},[E,re]),ke.jsxs(E1e,{ref:n,className:ma(U.root,x),ownerState:W,children:[ke.jsx(g1e,Ie({},P,{views:w,openView:E,currentMonth:F.currentMonth,onViewChange:I,onMonthChange:(ie,se)=>B({newMonth:ie,direction:se}),minDate:te,maxDate:ee,disabled:T,disablePast:c,disableFuture:u,reduceAnimations:g,labelId:Z})),ke.jsx(R1e,{reduceAnimations:g,className:U.viewTransitionContainer,transKey:E,ownerState:W,children:ke.jsxs("div",{children:[E==="year"&&ke.jsx(nW,Ie({},P,V,H,{autoFocus:o,date:s,onChange:Y,shouldDisableYear:h,hasFocus:Q,onFocusedViewChange:re("year")})),E==="month"&&ke.jsx(zB,Ie({},V,H,{autoFocus:o,hasFocus:Q,className:x,date:s,onChange:q,shouldDisableMonth:v,onFocusedViewChange:re("month")})),E==="day"&&ke.jsx(Hye,Ie({},P,F,V,H,{autoFocus:o,onMonthSwitchingAnimationEnd:R,onFocusedDayChange:j,reduceAnimations:g,selectedDays:[s],onSelectedDaysChange:L,shouldDisableDate:b,hasFocus:Q,onFocusedViewChange:re("day"),gridLabelId:Z}))]})})]})}),oW=e=>yn("MuiCalendarPickerSkeleton",e),L1e=hn("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),I1e=["className"],$1e=e=>{const{classes:t}=e;return vn({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},oW,t)},N1e=Et("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),F1e=Et("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${og}px 0`,display:"flex",justifyContent:"center"}),iW=Et(vde,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Ie({margin:`0 ${og}px`},e.day===0&&{visibility:"hidden"}));iW.propTypes={ownerState:le.shape({day:le.number.isRequired}).isRequired};const j1e=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function z1e(e){const t=pn({props:e,name:"MuiCalendarPickerSkeleton"}),{className:n}=t,r=Kt(t,I1e),l=$1e(r);return ke.jsx(N1e,Ie({className:ma(l.root,n)},r,{children:j1e.map((i,o)=>ke.jsx(F1e,{className:l.week,children:i.map((a,s)=>ke.jsx(iW,{variant:"circular",width:hm,height:hm,className:l.daySkeleton,ownerState:{day:a}},s))},o))}))}const Ud=220,Ws=36,mm={x:Ud/2,y:Ud/2},lW={x:mm.x,y:0},B1e=lW.x-mm.x,W1e=lW.y-mm.y,q1e=e=>e*(180/Math.PI),sW=(e,t,n)=>{const r=t-mm.x,l=n-mm.y,i=Math.atan2(B1e,W1e)-Math.atan2(r,l);let o=q1e(i);o=Math.round(o/e)*e,o%=360;const a=Math.floor(o/e)||0,s=r**2+l**2,u=Math.sqrt(s);return{value:a,distance:u}},U1e=(e,t,n=1)=>{const r=n*6;let{value:l}=sW(r,e,t);return l=l*n%60,l},H1e=(e,t,n)=>{const{value:r,distance:l}=sW(30,e,t);let i=r||12;return n?i%=12:l{const{classes:t}=e;return vn({root:["root"],thumb:["thumb"]},V1e,t)},K1e=Et("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Ie({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),Z1e=Et("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Ie({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ws/2}px)`,border:`${(Ws-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function Q1e(e){const t=pn({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:l,value:i}=t,o=Kt(t,Y1e),a=ge.useRef(l);ge.useEffect(()=>{a.current=l},[l]);const s=Ie({},t,{shouldAnimate:a.current!==l}),u=X1e(s),c=()=>{let f=360/(l==="hours"?12:60)*i;return l==="hours"&&i>12&&(f-=360),{height:Math.round((r?.26:.4)*Ud),transform:`rotateZ(${f}deg)`}};return ke.jsx(K1e,Ie({style:c(),className:ma(n,u.root),ownerState:s},o,{children:ke.jsx(Z1e,{ownerState:s,className:u.thumb})}))}function J1e(e){return yn("MuiClock",e)}const ebe=hn("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),tbe=e=>{const{classes:t}=e;return vn({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},J1e,t)},nbe=Et("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),rbe=Et("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),abe=Et("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),obe=Et("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Ie({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),ibe=Et("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),lbe=Et(mi,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Ie({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),sbe=Et(mi,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Ie({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function ube(e){const t=pn({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:l,children:i,date:o,getClockLabelText:a,handleMeridiemChange:s,isTimeDisabled:u,meridiemMode:c,minutesStep:d=1,onChange:f,selectedId:p,type:m,value:g,disabled:b,readOnly:v,className:h}=t,y=t,w=Br(),_=ge.useContext(ss),x=ge.useRef(!1),T=tbe(y),k=u(g,m),S=!n&&m==="hours"&&(g<1||g>12),C=(z,B)=>{b||v||u(z,m)||f(z,B)},M=(z,B)=>{let{offsetX:N,offsetY:R}=z;if(N===void 0){const Y=z.target.getBoundingClientRect();N=z.changedTouches[0].clientX-Y.left,R=z.changedTouches[0].clientY-Y.top}const q=m==="seconds"||m==="minutes"?U1e(N,R,d):H1e(N,R,!!n);C(q,B)},O=z=>{x.current=!0,M(z,"shallow")},D=z=>{x.current&&(M(z,"finish"),x.current=!1)},P=z=>{z.buttons>0&&M(z.nativeEvent,"shallow")},E=z=>{x.current&&(x.current=!1),M(z.nativeEvent,"finish")},I=ge.useMemo(()=>m==="hours"?!0:g%5===0,[m,g]),A=m==="minutes"?d:1,F=ge.useRef(null);no(()=>{l&&F.current.focus()},[l]);const j=z=>{if(!x.current)switch(z.key){case"Home":C(0,"partial"),z.preventDefault();break;case"End":C(m==="minutes"?59:23,"partial"),z.preventDefault();break;case"ArrowUp":C(g+A,"partial"),z.preventDefault();break;case"ArrowDown":C(g-A,"partial"),z.preventDefault();break}};return ke.jsxs(nbe,{className:ma(h,T.root),children:[ke.jsxs(rbe,{className:T.clock,children:[ke.jsx(obe,{onTouchMove:O,onTouchEnd:D,onMouseUp:E,onMouseMove:P,ownerState:{disabled:b},className:T.squareMask}),!k&&ke.jsxs(ge.Fragment,{children:[ke.jsx(ibe,{className:T.pin}),o&&ke.jsx(Q1e,{type:m,value:g,isInner:S,hasSelected:I})]}),ke.jsx(abe,{"aria-activedescendant":p,"aria-label":a(m,o,w),ref:F,role:"listbox",onKeyDown:j,tabIndex:0,className:T.wrapper,children:i})]}),n&&(_==="desktop"||r)&&ke.jsxs(ge.Fragment,{children:[ke.jsx(lbe,{onClick:v?void 0:()=>s("am"),disabled:b||c===null,ownerState:y,className:T.amButton,children:ke.jsx(pr,{variant:"caption",children:"AM"})}),ke.jsx(sbe,{disabled:b||c===null,onClick:v?void 0:()=>s("pm"),ownerState:y,className:T.pmButton,children:ke.jsx(pr,{variant:"caption",children:"PM"})})]})]})}function cbe(e){return yn("MuiClockNumber",e)}const mh=hn("MuiClockNumber",["root","selected","disabled"]),dbe=["className","disabled","index","inner","label","selected"],fbe=e=>{const{classes:t,selected:n,disabled:r}=e;return vn({root:["root",n&&"selected",r&&"disabled"]},cbe,t)},pbe=Et("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${mh.disabled}`]:t.disabled},{[`&.${mh.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Ie({height:Ws,width:Ws,position:"absolute",left:`calc((100% - ${Ws}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${mh.selected}`]:{color:e.palette.primary.contrastText},[`&.${mh.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Ie({},e.typography.body2,{color:e.palette.text.secondary})));function uW(e){const t=pn({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:l,inner:i,label:o,selected:a}=t,s=Kt(t,dbe),u=t,c=fbe(u),d=l%12/12*Math.PI*2-Math.PI/2,f=(Ud-Ws-2)/2*(i?.65:1),p=Math.round(Math.cos(d)*f),m=Math.round(Math.sin(d)*f);return ke.jsx(pbe,Ie({className:ma(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":a?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${m+(Ud-Ws)/2}px`},ownerState:u},s,{children:o}))}const hbe=({ampm:e,date:t,getClockNumberText:n,isDisabled:r,selectedId:l,utils:i})=>{const o=t?i.getHours(t):null,a=[],s=e?1:0,u=e?12:23,c=d=>o===null?!1:e?d===12?o===12||o===0:o===d||o-12===d:o===d;for(let d=s;d<=u;d+=1){let f=d.toString();d===0&&(f="00");const p=!e&&(d===0||d>12);f=i.formatNumber(f);const m=c(d);a.push(ke.jsx(uW,{id:m?l:void 0,index:d,inner:p,selected:m,disabled:r(d),label:f,"aria-label":n(f)},d))}return a},C7=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:l})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([o,a],s)=>{const u=o===t;return ke.jsx(uW,{label:a,id:u?l:void 0,index:s+1,inner:!1,disabled:n(o),selected:u,"aria-label":r(a)},o)})};function cW(e){return yn("MuiClockPicker",e)}const mbe=hn("MuiClockPicker",["root","arrowSwitcher"]),gbe=e=>{const{classes:t}=e;return vn({root:["root"],arrowSwitcher:["arrowSwitcher"]},cW,t)},vbe=Et(XM,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),ybe=Et(ZB,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),bbe=eW(),dW=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiClockPicker"}),{ampm:l=!1,ampmInClock:i=!1,autoFocus:o,components:a,componentsProps:s,date:u,disableIgnoringDatePartForTimeValidation:c,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:m,leftArrowButtonText:g,maxTime:b,minTime:v,minutesStep:h=1,rightArrowButtonText:y,shouldDisableTime:w,showViewSwitcher:_,onChange:x,view:T,views:k=["hours","minutes"],openTo:S,onViewChange:C,className:M,disabled:O,readOnly:D}=r;bbe({leftArrowButtonText:g,rightArrowButtonText:y,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:m});const P=Xi(),E=g??P.openPreviousView,I=y??P.openNextView,A=d??P.clockLabelText,F=f??P.hoursClockNumberText,j=p??P.minutesClockNumberText,z=m??P.secondsClockNumberText,{openView:B,setOpenView:N,nextView:R,previousView:q,handleChangeAndOpenNext:Y}=YM({view:T,views:k,openTo:S,onViewChange:C,onChange:x}),L=ag(),W=Br(),U=ge.useMemo(()=>u||W.setSeconds(W.setMinutes(W.setHours(L,0),0),0),[u,L,W]),{meridiemMode:V,handleMeridiemChange:te}=JB(U,l,Y),ee=ge.useCallback((Q,re)=>{const ae=QB(c,W),ie=({start:he,end:Se})=>!(v&&ae(v,Se)||b&&ae(he,b)),se=(he,Se=1)=>he%Se!==0?!1:w?!w(he,re):!0;switch(re){case"hours":{const he=ck(Q,V,l),Se=W.setHours(U,he),Oe=W.setSeconds(W.setMinutes(Se,0),0),Pe=W.setSeconds(W.setMinutes(Se,59),59);return!ie({start:Oe,end:Pe})||!se(he)}case"minutes":{const he=W.setMinutes(U,Q),Se=W.setSeconds(he,0),Oe=W.setSeconds(he,59);return!ie({start:Se,end:Oe})||!se(Q,h)}case"seconds":{const he=W.setSeconds(U,Q);return!ie({start:he,end:he})||!se(Q)}default:throw new Error("not supported")}},[l,U,c,b,V,v,h,w,W]),H=Kl(),Z=ge.useMemo(()=>{switch(B){case"hours":{const Q=(re,ae)=>{const ie=ck(re,V,l);Y(W.setHours(U,ie),ae)};return{onChange:Q,value:W.getHours(U),children:hbe({date:u,utils:W,ampm:l,onChange:Q,getClockNumberText:F,isDisabled:re=>O||ee(re,"hours"),selectedId:H})}}case"minutes":{const Q=W.getMinutes(U),re=(ae,ie)=>{Y(W.setMinutes(U,ae),ie)};return{value:Q,onChange:re,children:C7({utils:W,value:Q,onChange:re,getClockNumberText:j,isDisabled:ae=>O||ee(ae,"minutes"),selectedId:H})}}case"seconds":{const Q=W.getSeconds(U),re=(ae,ie)=>{Y(W.setSeconds(U,ae),ie)};return{value:Q,onChange:re,children:C7({utils:W,value:Q,onChange:re,getClockNumberText:z,isDisabled:ae=>O||ee(ae,"seconds"),selectedId:H})}}default:throw new Error("You must provide the type for ClockView")}},[B,W,u,l,F,j,z,V,Y,U,ee,H,O]),G=r,X=gbe(G);return ke.jsxs(vbe,{ref:n,className:ma(X.root,M),ownerState:G,children:[_&&ke.jsx(ybe,{className:X.arrowSwitcher,leftArrowButtonText:E,rightArrowButtonText:I,components:a,componentsProps:s,onLeftClick:()=>N(q),onRightClick:()=>N(R),isLeftDisabled:!q,isRightDisabled:!R,ownerState:G}),ke.jsx(ube,Ie({autoFocus:o,date:u,ampmInClock:i,type:B,ampm:l,getClockLabelText:A,minutesStep:h,isTimeDisabled:ee,meridiemMode:V,handleMeridiemChange:te,selectedId:H,disabled:O,readOnly:D},Z))]})}),fW=e=>e.length===1&&e[0]==="year",pW=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,xbe=(e,t)=>fW(e)?{inputFormat:t.formats.year}:pW(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function KM(e,t){var n;const r=Br(),l=rg(),i=pn({props:e,name:t}),o=(n=i.views)!=null?n:["year","day"];return Ie({openTo:"day",disableFuture:!1,disablePast:!1},xbe(o,r),i,{views:o,minDate:Ci(r,i.minDate,l.minDate),maxDate:Ci(r,i.maxDate,l.maxDate)})}const ZM={emptyValue:null,getTodayValue:e=>e.date(),parseInput:qM,areValuesEqual:(e,t,n)=>e.isEqual(t,n)};function hW(e){return yn("MuiPickersToolbar",e)}const QM=hn("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),wbe=e=>{const{classes:t,isLandscape:n}=e;return vn({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},hW,t)},_be=Et("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Ie({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),Tbe=Et(cr,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Ie({flex:1},!e.isLandscape&&{alignItems:"center"})),kbe=Et(mi,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${QM.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),Sbe=e=>e==="clock"?ke.jsx(KB,{color:"inherit"}):ke.jsx(XB,{color:"inherit"}),JM=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersToolbar"}),{children:l,className:i,getMobileKeyboardInputViewButtonText:o,isLandscape:a,isMobileKeyboardViewOpen:s,landscapeDirection:u="column",toggleMobileKeyboardView:c,toolbarTitle:d,viewType:f="calendar"}=r,p=r,m=Xi(),g=wbe(p);return ke.jsxs(_be,{ref:n,className:ma(g.root,i),ownerState:p,children:[ke.jsx(pr,{color:"text.secondary",variant:"overline",children:d}),ke.jsxs(Tbe,{container:!0,justifyContent:"space-between",className:g.content,ownerState:p,direction:a?u:"row",alignItems:a?"flex-start":"flex-end",children:[l,ke.jsx(kbe,{onClick:c,className:g.penIconButton,ownerState:p,color:"inherit","aria-label":o?o(s,f):m.inputModeToggleButtonAriaLabel(s,f),children:s?Sbe(f):ke.jsx(Kye,{color:"inherit"})})]})]})});function Cbe(e){return yn("MuiDatePickerToolbar",e)}const Mbe=hn("MuiDatePickerToolbar",["root","title"]),Pbe=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],Obe=e=>{const{classes:t}=e;return vn({root:["root"],title:["title"]},Cbe,t)},Abe=Et(JM,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dbe=Et(pr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Ie({},e.isLandscape&&{margin:"auto 16px auto auto"})),e5=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=r,f=Kt(r,Pbe),p=Br(),m=Xi(),g=Obe(r),b=c??m.datePickerDefaultToolbarTitle,v=ge.useMemo(()=>l?s?p.formatByString(l,s):fW(d)?p.format(l,"year"):pW(d)?p.format(l,"month"):/en/.test(p.getCurrentLocaleCode())?p.format(l,"normalDateWithWeekday"):p.format(l,"normalDate"):u,[l,s,u,p,d]),h=r;return ke.jsx(Abe,Ie({ref:n,toolbarTitle:b,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,isLandscape:i,className:g.root},f,{children:ke.jsx(Dbe,{variant:"h4",align:i?"left":"center",ownerState:h,className:g.title,children:v})}))}),Ebe=["onAccept","onClear","onCancel","onSetToday","actions"],t5=e=>{const{onAccept:t,onClear:n,onCancel:r,onSetToday:l,actions:i}=e,o=Kt(e,Ebe),a=ge.useContext(ss),s=Xi(),u=typeof i=="function"?i(a):i;if(u==null||u.length===0)return null;const c=u==null?void 0:u.map(d=>{switch(d){case"clear":return ke.jsx(ji,{onClick:n,children:s.clearButtonLabel},d);case"cancel":return ke.jsx(ji,{onClick:r,children:s.cancelButtonLabel},d);case"accept":return ke.jsx(ji,{onClick:t,children:s.okButtonLabel},d);case"today":return ke.jsx(ji,{onClick:l,children:s.todayButtonLabel},d);default:return null}});return ke.jsx(ase,Ie({},o,{children:c}))};function Rbe(e){return yn("MuiPickersPopper",e)}hn("MuiPickersPopper",["root","paper"]);const Lbe=["onClick","onTouchStart"],Ibe=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"]},Rbe,t)},$be=Et(bM,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Nbe=Et(nu,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Ie({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function Fbe(e,t){return t.documentElement.clientWidth{if(!e)return;function s(){i.current=!0}return document.addEventListener("mousedown",s,!0),document.addEventListener("touchstart",s,!0),()=>{document.removeEventListener("mousedown",s,!0),document.removeEventListener("touchstart",s,!0),i.current=!1}},[e]);const o=yo(s=>{if(!i.current)return;const u=r.current;r.current=!1;const c=Aa(l.current);if(!l.current||"clientX"in s&&Fbe(s,c))return;if(n.current){n.current=!1;return}let d;s.composedPath?d=s.composedPath().indexOf(l.current)>-1:d=!c.documentElement.contains(s.target)||l.current.contains(s.target),!d&&!u&&t(s)}),a=()=>{r.current=!0};return ge.useEffect(()=>{if(e){const s=Aa(l.current),u=()=>{n.current=!0};return s.addEventListener("touchstart",o),s.addEventListener("touchmove",u),()=>{s.removeEventListener("touchstart",o),s.removeEventListener("touchmove",u)}}},[e,o]),ge.useEffect(()=>{if(e){const s=Aa(l.current);return s.addEventListener("click",o),()=>{s.removeEventListener("click",o),r.current=!1}}},[e,o]),[l,a,a]}function zbe(e){var t;const n=pn({props:e,name:"MuiPickersPopper"}),{anchorEl:r,children:l,containerRef:i=null,onBlur:o,onClose:a,onClear:s,onAccept:u,onCancel:c,onSetToday:d,open:f,PopperProps:p,role:m,TransitionComponent:g=dm,TrapFocusProps:b,PaperProps:v={},components:h,componentsProps:y}=n;ge.useEffect(()=>{function j(z){f&&(z.key==="Escape"||z.key==="Esc")&&a()}return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[a,f]);const w=ge.useRef(null);ge.useEffect(()=>{m!=="tooltip"&&(f?w.current=$B(document):w.current&&w.current instanceof HTMLElement&&setTimeout(()=>{w.current instanceof HTMLElement&&w.current.focus()}))},[f,m]);const[_,x,T]=jbe(f,o??a),k=ge.useRef(null),S=Lr(k,i),C=Lr(S,_),M=n,O=Ibe(M),{onClick:D,onTouchStart:P}=v,E=Kt(v,Lbe),I=j=>{j.key==="Escape"&&(j.stopPropagation(),a())},A=(t=h==null?void 0:h.ActionBar)!=null?t:t5,F=(h==null?void 0:h.PaperContent)||ge.Fragment;return ke.jsx($be,Ie({transition:!0,role:m,open:f,anchorEl:r,onKeyDown:I,className:O.root},p,{children:({TransitionProps:j,placement:z})=>ke.jsx(Ej,Ie({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},b,{children:ke.jsx(g,Ie({},j,{children:ke.jsx(Nbe,Ie({tabIndex:-1,elevation:8,ref:C,onClick:B=>{x(B),D&&D(B)},onTouchStart:B=>{T(B),P&&P(B)},ownerState:Ie({},M,{placement:z}),className:O.paper},E,{children:ke.jsxs(F,Ie({},y==null?void 0:y.paperContent,{children:[l,ke.jsx(A,Ie({onAccept:u,onClear:s,onCancel:c,onSetToday:d,actions:[]},y==null?void 0:y.actionBar))]}))}))}))}))}))}function n5(e){const{children:t,DateInputProps:n,KeyboardDateInputComponent:r,onClear:l,onDismiss:i,onCancel:o,onAccept:a,onSetToday:s,open:u,PopperProps:c,PaperProps:d,TransitionComponent:f,components:p,componentsProps:m}=e,g=ge.useRef(null),b=Lr(n.inputRef,g);return ke.jsxs(ss.Provider,{value:"desktop",children:[ke.jsx(r,Ie({},n,{inputRef:b})),ke.jsx(zbe,{role:"dialog",open:u,anchorEl:g.current,TransitionComponent:f,PopperProps:c,PaperProps:d,onClose:i,onCancel:o,onClear:l,onAccept:a,onSetToday:s,components:p,componentsProps:m,children:t})]})}const Bbe=e=>{const[,t]=ge.useReducer(s=>s+1,0),n=ge.useRef(null),{replace:r,append:l}=e,i=r?r(e.format(e.value)):e.format(e.value),o=ge.useRef(!1),a=s=>{const u=s.target.value;n.current=[u,s.target,u.length>i.length,o.current,i===e.format(u)],t()};return ge.useLayoutEffect(()=>{if(n.current==null)return;let[s,u,c,d,f]=n.current;n.current=null;const p=d&&f,g=s.slice(u.selectionStart).search(e.accept||/\d/g),b=g!==-1?g:0,v=x=>(x.match(e.accept||/\d/g)||[]).join(""),h=v(s.substr(0,u.selectionStart)),y=x=>{let T=0,k=0;for(let S=0;S!==h.length;++S){let C=x.indexOf(h[S],T)+1,M=v(x).indexOf(h[S],k)+1;M-k>1&&(C=T,M=k),k=Math.max(M,k),T=Math.max(T,C)}return T};if(e.mask===!0&&c&&!f){let x=y(s);const T=v(s.substr(x))[0];x=s.indexOf(T,x),s=`${s.substr(0,x)}${s.substr(x+1)}`}let w=e.format(s);l!=null&&u.selectionStart===s.length&&!f&&(c?w=l(w):v(w.slice(-1))===""&&(w=w.slice(0,-1)));const _=r?r(w):w;return i===_?t():e.onChange(_),()=>{let x=y(w);if(e.mask!=null&&(c||d&&!p))for(;w[x]&&v(w[x])==="";)x+=1;u.selectionStart=u.selectionEnd=x+(p?1+b:0)}}),ge.useEffect(()=>{const s=c=>{c.code==="Delete"&&(o.current=!0)},u=c=>{c.code==="Delete"&&(o.current=!1)};return document.addEventListener("keydown",s),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",s),document.removeEventListener("keyup",u)}},[]),{value:n.current!=null?n.current[0]:i,onChange:a}},dk=(e,t,n)=>{const r=e.date(t);return t===null?"":e.isValid(r)?e.formatByString(r,n):""},uy="_",mW="2019-11-21T22:30:00.000",gW="2019-01-01T09:00:00.000";function Wbe(e,t,n,r){if(e)return e;const i=r.formatByString(r.date(gW),t).replace(n,uy),o=r.formatByString(r.date(mW),t).replace(n,"_");return i===o?i:""}function qbe(e,t,n,r){if(!e)return!1;const i=r.formatByString(r.date(gW),t).replace(n,uy),o=r.formatByString(r.date(mW),t).replace(n,"_"),a=o===i&&e===o;return!a&&r.lib,a}const Ube=(e,t)=>n=>{let r=0;return n.split("").map((l,i)=>{if(t.lastIndex=0,r>e.length-1)return"";const o=e[r],a=e[r+1],s=t.test(l)?l:"",u=o===uy?s:o+s;return r+=u.length,i===n.length-1&&a&&a!==uy?u?u+a:"":u}).join("")},Hbe=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:n,ignoreInvalidInputs:r,inputFormat:l,inputProps:i,label:o,mask:a,onChange:s,rawValue:u,readOnly:c,rifmFormatter:d,TextFieldProps:f,validationError:p})=>{const m=Br(),g=m.getFormatHelperText(l),{shouldUseMaskedInput:b,maskToUse:v}=ge.useMemo(()=>{if(n)return{shouldUseMaskedInput:!1,maskToUse:""};const P=Wbe(a,l,e,m);return{shouldUseMaskedInput:qbe(P,l,e,m),maskToUse:P}},[e,n,l,a,m]),h=ge.useMemo(()=>b&&v?Ube(v,e):P=>P,[e,v,b]),y=u===null?null:m.date(u),[w,_]=ge.useState(y),[x,T]=ge.useState(dk(m,u,l)),k=ge.useRef(),S=ge.useRef(m.locale),C=ge.useRef(l);ge.useEffect(()=>{const P=u!==k.current,E=m.locale!==S.current,I=l!==C.current;if(k.current=u,S.current=m.locale,C.current=l,!P&&!E&&!I)return;const A=u===null?null:m.date(u),F=u===null||m.isValid(A);let j=w===null&&A===null;if(w!==null&&A!==null){const B=m.isEqual(w,A);if(B)j=!0;else{const N=Math.abs(m.getDiff(w,A));j=N===0?B:N<1e3}}if(!E&&!I&&(!F||j))return;const z=dk(m,u,l);_(A),T(z)},[m,u,l,w]);const M=P=>{const E=P===""||P===a?"":P;T(E);const I=E===null?null:m.parse(E,l);r&&!m.isValid(I)||(_(I),s(I,E||void 0))},O=Bbe({value:x,onChange:M,format:d||h});return Ie({label:o,disabled:t,error:p,inputProps:Ie({},b?O:{value:x,onChange:P=>{M(P.currentTarget.value)}},{disabled:t,placeholder:g,readOnly:c,type:b?"tel":"text"},i)},f)},Vbe=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],bb=ge.forwardRef(function(t,n){const{className:r,components:l={},disableOpenPicker:i,getOpenDialogAriaText:o,InputAdornmentProps:a,InputProps:s,inputRef:u,openPicker:c,OpenPickerButtonProps:d,renderInput:f}=t,p=Kt(t,Vbe),m=Xi(),g=o??m.openDatePickerDialogue,b=Br(),v=Hbe(p),h=(a==null?void 0:a.position)||"end",y=l.OpenPickerIcon||XB;return f(Ie({ref:n,inputRef:u,className:r},v,{InputProps:Ie({},s,{[`${h}Adornment`]:i?void 0:ke.jsx(sz,Ie({position:h},a,{children:ke.jsx(mi,Ie({edge:h,disabled:p.disabled||p.readOnly,"aria-label":g(p.rawValue,b)},d,{onClick:c,children:ke.jsx(y,{})}))}))})}))});function M7(){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 Gbe=(e,t)=>{const[n,r]=ge.useState(M7);return no(()=>{const i=()=>{r(M7())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),Su(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Ybe=({autoFocus:e,openView:t})=>{const[n,r]=ge.useState(e?t:null),l=ge.useCallback(i=>o=>{r(o?i:a=>i===a?null:a)},[]);return{focusedView:n,setFocusedView:l}};function Xbe(e){return yn("MuiCalendarOrClockPicker",e)}hn("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const Kbe=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],Zbe=e=>{const{classes:t}=e;return vn({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},Xbe,t)},Qbe=Et("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),Jbe=Et("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Ie({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),exe={fullWidth:!0},P7=e=>e==="year"||e==="month"||e==="day",O7=e=>e==="hours"||e==="minutes"||e==="seconds";function us(e){var t,n;const r=pn({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:l,parsedValue:i,DateInputProps:o,isMobileKeyboardViewOpen:a,onDateChange:s,onViewChange:u,openTo:c,orientation:d,showToolbar:f,toggleMobileKeyboardView:p,ToolbarComponent:m=()=>null,toolbarFormat:g,toolbarPlaceholder:b,toolbarTitle:v,views:h,dateRangeIcon:y,timeIcon:w,hideTabs:_}=r,x=Kt(r,Kbe),T=(t=x.components)==null?void 0:t.Tabs,k=Gbe(h,d),S=ge.useContext(ss),C=Zbe(r),M=f??S!=="desktop",O=!_&&typeof window<"u"&&window.innerHeight>667,D=ge.useCallback((z,B)=>{s(z,S,B)},[s,S]),P=ge.useCallback(z=>{a&&p(),u&&u(z)},[a,u,p]),{openView:E,setOpenView:I,handleChangeAndOpenNext:A}=YM({view:void 0,views:h,openTo:c,onChange:D,onViewChange:P}),{focusedView:F,setFocusedView:j}=Ybe({autoFocus:l,openView:E});return ke.jsxs(Jbe,{ownerState:{isLandscape:k},className:C.root,children:[M&&ke.jsx(m,Ie({},x,{views:h,isLandscape:k,parsedValue:i,onChange:D,setOpenView:I,openView:E,toolbarTitle:v,toolbarFormat:g,toolbarPlaceholder:b,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:p})),O&&!!T&&ke.jsx(T,Ie({dateRangeIcon:y,timeIcon:w,view:E,onChange:I},(n=x.componentsProps)==null?void 0:n.tabs)),ke.jsx(XM,{children:a?ke.jsx(Qbe,{className:C.mobileKeyboardInputView,children:ke.jsx(bb,Ie({},o,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:exe}))}):ke.jsxs(ge.Fragment,{children:[P7(E)&&ke.jsx(aW,Ie({autoFocus:l,date:i,onViewChange:I,onChange:A,view:E,views:h.filter(P7),focusedView:F,onFocusedViewChange:j},x)),O7(E)&&ke.jsx(dW,Ie({},x,{autoFocus:l,date:i,view:E,views:h.filter(O7),onChange:A,onViewChange:I,showViewSwitcher:S==="desktop"}))]})})]})}const txe=({open:e,onOpen:t,onClose:n})=>{const r=ge.useRef(typeof e=="boolean").current,[l,i]=ge.useState(!1);ge.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const o=ge.useCallback(a=>{r||i(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:l,setIsOpen:o}},cs=(e,t)=>{const{onAccept:n,onChange:r,value:l,closeOnSelect:i}=e,o=Br(),{isOpen:a,setIsOpen:s}=txe(e),u=ge.useMemo(()=>t.parseInput(o,l),[t,o,l]),[c,d]=ge.useState(u),[f,p]=ge.useState(()=>({committed:u,draft:u,resetFallback:u})),m=ge.useCallback(x=>{p(T=>{switch(x.action){case"setAll":case"acceptAndClose":return{draft:x.value,committed:x.value,resetFallback:x.value};case"setCommitted":return Ie({},T,{draft:x.value,committed:x.value});case"setDraft":return Ie({},T,{draft:x.value});default:return T}}),(x.forceOnChangeCall||!x.skipOnChangeCall&&!t.areValuesEqual(o,f.committed,x.value))&&r(x.value),x.action==="acceptAndClose"&&(s(!1),n&&!t.areValuesEqual(o,f.resetFallback,x.value)&&n(x.value))},[n,r,s,f,o,t]);ge.useEffect(()=>{o.isValid(u)&&d(u)},[o,u]),ge.useEffect(()=>{a&&m({action:"setAll",value:u,skipOnChangeCall:!0})},[a]),t.areValuesEqual(o,f.committed,u)||m({action:"setCommitted",value:u,skipOnChangeCall:!0});const g=ge.useMemo(()=>({open:a,onClear:()=>{m({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,t.emptyValue)})},onAccept:()=>{m({value:f.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,u)})},onDismiss:()=>{m({value:f.committed,action:"acceptAndClose"})},onCancel:()=>{m({value:f.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{m({value:t.getTodayValue(o),action:"acceptAndClose"})}}),[m,a,o,f,t,l,u]),[b,v]=ge.useState(!1),h=ge.useMemo(()=>({parsedValue:f.draft,isMobileKeyboardViewOpen:b,toggleMobileKeyboardView:()=>v(!b),onDateChange:(x,T,k="partial")=>{switch(k){case"shallow":return m({action:"setDraft",value:x,skipOnChangeCall:!0});case"partial":return m({action:"setDraft",value:x});case"finish":return m(i??T==="desktop"?{value:x,action:"acceptAndClose"}:{value:x,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[m,b,f.draft,i]),y=ge.useCallback((x,T)=>{const k=t.valueReducer?t.valueReducer(o,c,x):x;r(k,T)},[r,t,c,o]),w=ge.useMemo(()=>({onChange:y,open:a,rawValue:l,openPicker:()=>s(!0)}),[y,a,l,s]),_={pickerProps:h,inputProps:w,wrapperProps:g};return ge.useDebugValue(_,()=>({MuiPickerState:{dateState:f,other:_}})),_},nxe=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],vW=ge.forwardRef(function(t,n){const r=KM(t,"MuiDesktopDatePicker"),l=VM(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,ZM),{PopperProps:s,PaperProps:u,ToolbarComponent:c=e5,TransitionComponent:d,components:f,componentsProps:p}=r,m=Kt(r,nxe),g=Ie({},o,m,{components:f,componentsProps:p,ref:n,validationError:l});return ke.jsx(n5,Ie({},a,{DateInputProps:g,KeyboardDateInputComponent:bb,PopperProps:s,PaperProps:u,TransitionComponent:d,components:f,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},m))}))}),rxe=Et(Jle)({[`& .${Eh.container}`]:{outline:0},[`& .${Eh.paper}`]:{outline:0,minWidth:GM}}),axe=Et(cse)({"&:first-of-type":{padding:0}}),oxe=e=>{var t;const{children:n,DialogProps:r={},onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:c,componentsProps:d}=e,f=(t=c==null?void 0:c.ActionBar)!=null?t:t5;return ke.jsxs(rxe,Ie({open:u,onClose:o},r,{children:[ke.jsx(axe,{children:n}),ke.jsx(f,Ie({onAccept:l,onClear:i,onCancel:a,onSetToday:s,actions:["cancel","accept"]},d==null?void 0:d.actionBar))]}))},ixe=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function r5(e){const{children:t,DateInputProps:n,DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,PureDateInputComponent:c,components:d,componentsProps:f}=e,p=Kt(e,ixe);return ke.jsxs(ss.Provider,{value:"mobile",children:[ke.jsx(c,Ie({components:d},p,n)),ke.jsx(oxe,{DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:d,componentsProps:f,children:t})]})}const a5=ge.forwardRef(function(t,n){const{disabled:r,getOpenDialogAriaText:l,inputFormat:i,InputProps:o,inputRef:a,label:s,openPicker:u,rawValue:c,renderInput:d,TextFieldProps:f={},validationError:p,className:m}=t,g=Xi(),b=l??g.openDatePickerDialogue,v=Br(),h=ge.useMemo(()=>Ie({},o,{readOnly:!0}),[o]),y=dk(v,c,i),w=yo(_=>{_.stopPropagation(),u()});return d(Ie({label:s,disabled:r,ref:n,inputRef:a,error:p,InputProps:h,className:m},!t.readOnly&&!t.disabled&&{onClick:w},{inputProps:Ie({disabled:r,readOnly:!0,"aria-readonly":!0,"aria-label":b(c,v),value:y},!t.readOnly&&{onClick:w},{onKeyDown:IB(u)})},f))}),lxe=["ToolbarComponent","value","onChange","components","componentsProps"],yW=ge.forwardRef(function(t,n){const r=KM(t,"MuiMobileDatePicker"),l=VM(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,ZM),{ToolbarComponent:s=e5,components:u,componentsProps:c}=r,d=Kt(r,lxe),f=Ie({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return ke.jsx(r5,Ie({},d,a,{DateInputProps:f,PureDateInputComponent:a5,components:u,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))}),sxe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],uxe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,sxe);return wM(l,{defaultMatches:!0})?ke.jsx(vW,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(yW,Ie({ref:n,DialogProps:i},s))});function o5(e,t){var n,r,l,i,o;const a=pn({props:e,name:t}),s=Br(),u=rg(),c=(n=a.ampm)!=null?n:s.is12HourCycleInCurrentLocale();if(a.orientation!=null&&a.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Ie({ampm:c,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:c?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:c?s.formats.keyboardDateTime12h:s.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(a.minDateTime||a.maxDateTime),disablePast:!1,disableFuture:!1},a,{minDate:Ci(s,(r=a.minDateTime)!=null?r:a.minDate,u.minDate),maxDate:Ci(s,(l=a.maxDateTime)!=null?l:a.maxDate,u.maxDate),minTime:(i=a.minDateTime)!=null?i:a.minTime,maxTime:(o=a.maxDateTime)!=null?o:a.maxTime})}const i5={emptyValue:null,getTodayValue:e=>e.date(),parseInput:qM,areValuesEqual:(e,t,n)=>e.isEqual(t,n)},cxe=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function dxe(e){return yn("PrivatePickersToolbarText",e)}const A7=hn("PrivatePickersToolbarText",["root","selected"]),fxe=["className","selected","value"],pxe=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},dxe,t)},hxe=Et(pr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${A7.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${A7.selected}`]:{color:e.palette.text.primary}})),l5=ge.forwardRef(function(t,n){const{className:r,value:l}=t,i=Kt(t,fxe),o=pxe(t);return ke.jsx(hxe,Ie({ref:n,className:ma(r,o.root),component:"span"},i,{children:l}))}),mxe=["align","className","selected","typographyClassName","value","variant"],gxe=e=>{const{classes:t}=e;return vn({root:["root"]},hW,t)},vxe=Et(ji,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),dl=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersToolbarButton"}),{align:l,className:i,selected:o,typographyClassName:a,value:s,variant:u}=r,c=Kt(r,mxe),d=gxe(r);return ke.jsx(vxe,Ie({variant:"text",ref:n,className:ma(i,d.root)},c,{children:ke.jsx(l5,{align:l,className:a,variant:u,value:s,selected:o})}))});function yxe(e){return yn("MuiDateTimePickerToolbar",e)}const bxe=hn("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),xxe=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],wxe=e=>{const{classes:t}=e;return vn({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},yxe,t)},_xe=Et(JM,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${QM.penIconButton}`]:Ie({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),Txe=Et("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),kxe=Et("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),D7=Et(l5,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function s5(e){const t=pn({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,parsedValue:r,isMobileKeyboardViewOpen:l,openView:i,setOpenView:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=t,f=Kt(t,xxe),p=t,m=Br(),g=Xi(),b=wxe(p),v=c??g.dateTimePickerDefaultToolbarTitle,h=w=>n?m.format(w,"hours12h"):m.format(w,"hours24h"),y=ge.useMemo(()=>r?s?m.formatByString(r,s):m.format(r,"shortDate"):u,[r,s,u,m]);return ke.jsxs(_xe,Ie({toolbarTitle:v,isMobileKeyboardViewOpen:l,toggleMobileKeyboardView:a,className:b.root,viewType:cxe(i)},f,{isLandscape:!1,ownerState:p,children:[ke.jsxs(Txe,{className:b.dateContainer,ownerState:p,children:[d.includes("year")&&ke.jsx(dl,{tabIndex:-1,variant:"subtitle1",onClick:()=>o("year"),selected:i==="year",value:r?m.format(r,"year"):"–"}),d.includes("day")&&ke.jsx(dl,{tabIndex:-1,variant:"h4",onClick:()=>o("day"),selected:i==="day",value:y})]}),ke.jsxs(kxe,{className:b.timeContainer,ownerState:p,children:[d.includes("hours")&&ke.jsx(dl,{variant:"h3",onClick:()=>o("hours"),selected:i==="hours",value:r?h(r):"--"}),d.includes("minutes")&&ke.jsxs(ge.Fragment,{children:[ke.jsx(D7,{variant:"h3",value:":",className:b.separator,ownerState:p}),ke.jsx(dl,{variant:"h3",onClick:()=>o("minutes"),selected:i==="minutes",value:r?m.format(r,"minutes"):"--"})]}),d.includes("seconds")&&ke.jsxs(ge.Fragment,{children:[ke.jsx(D7,{variant:"h3",value:":",className:b.separator,ownerState:p}),ke.jsx(dl,{variant:"h3",onClick:()=>o("seconds"),selected:i==="seconds",value:r?m.format(r,"seconds"):"--"})]})]})]}))}const bW=({adapter:e,value:t,props:n})=>{const{minTime:r,maxTime:l,minutesStep:i,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:a}=n,s=e.utils.date(t),u=QB(a,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&u(r,s)):return"minTime";case!!(l&&u(s,l)):return"maxTime";case!!(o&&o(e.utils.getHours(s),"hours")):return"shouldDisableTime-hours";case!!(o&&o(e.utils.getMinutes(s),"minutes")):return"shouldDisableTime-minutes";case!!(o&&o(e.utils.getSeconds(s),"seconds")):return"shouldDisableTime-seconds";case!!(i&&e.utils.getMinutes(s)%i!==0):return"minutesStep";default:return null}},Sxe=(e,t)=>e===t,u5=e=>UM(e,bW,Sxe),Cxe=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],Mxe=({props:e,value:t,adapter:n})=>{const{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}=e,s=Kt(e,Cxe),u=HM({adapter:n,value:t,props:{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}});return u!==null?u:bW({adapter:n,value:t,props:s})},Pxe=(e,t)=>e===t;function c5(e){return UM(e,Mxe,Pxe)}function Oxe(e){return yn("MuiDateTimePickerTabs",e)}const Axe=hn("MuiDateTimePickerTabs",["root"]),Dxe=e=>["day","month","year"].includes(e)?"date":"time",Exe=e=>e==="date"?"day":"hours",Rxe=e=>{const{classes:t}=e;return vn({root:["root"]},Oxe,t)},Lxe=Et(Nz,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>Ie({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${nv.indicator}`]:{bottom:"auto",top:0}})),xb=function(t){const n=pn({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:r=ke.jsx(Xye,{}),onChange:l,timeIcon:i=ke.jsx(Zye,{}),view:o}=n,a=Xi(),s=ge.useContext(ss),u=Ie({},n,{wrapperVariant:s}),c=Rxe(u),d=(f,p)=>{l(Exe(p))};return ke.jsxs(Lxe,{ownerState:u,variant:"fullWidth",value:Dxe(o),onChange:d,className:c.root,children:[ke.jsx(J3,{value:"date","aria-label":a.dateTableLabel,icon:ke.jsx(ge.Fragment,{children:r})}),ke.jsx(J3,{value:"time","aria-label":a.timeTableLabel,icon:ke.jsx(ge.Fragment,{children:i})})]})},Ixe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],xW=ge.forwardRef(function(t,n){const r=o5(t,"MuiDesktopDateTimePicker"),l=c5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,i5),{PaperProps:s,PopperProps:u,ToolbarComponent:c=s5,TransitionComponent:d,components:f,componentsProps:p,hideTabs:m=!0}=r,g=Kt(r,Ixe),b=ge.useMemo(()=>Ie({Tabs:xb},f),[f]),v=Ie({},o,g,{components:b,componentsProps:p,ref:n,validationError:l});return ke.jsx(n5,Ie({},a,{DateInputProps:v,KeyboardDateInputComponent:bb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:b,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:v,components:b,componentsProps:p,hideTabs:m},g))}))}),$xe=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],wW=ge.forwardRef(function(t,n){const r=o5(t,"MuiMobileDateTimePicker"),l=c5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,i5),{ToolbarComponent:s=s5,components:u,componentsProps:c,hideTabs:d=!1}=r,f=Kt(r,$xe),p=ge.useMemo(()=>Ie({Tabs:xb},u),[u]),m=Ie({},o,f,{components:p,componentsProps:c,ref:n,validationError:l});return ke.jsx(r5,Ie({},f,a,{DateInputProps:m,PureDateInputComponent:a5,components:p,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:p,componentsProps:c,hideTabs:d},f))}))}),Nxe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Fxe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,Nxe);return wM(l,{defaultMatches:!0})?ke.jsx(xW,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(wW,Ie({ref:n,DialogProps:i},s))});function d5(e,t){var n;const r=pn({props:e,name:t}),l=Br(),i=(n=r.ampm)!=null?n:l.is12HourCycleInCurrentLocale(),a=Xi().openTimePickerDialogue;return Ie({ampm:i,openTo:"hours",views:["hours","minutes"],acceptRegex:i?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:a,inputFormat:i?l.formats.fullTime12h:l.formats.fullTime24h},r,{components:Ie({OpenPickerIcon:KB},r.components)})}const f5={emptyValue:null,parseInput:qM,getTodayValue:e=>e.date(),areValuesEqual:(e,t,n)=>e.isEqual(t,n),valueReducer:(e,t,n)=>!t||!e.isValid(n)?n:e.mergeDateAndTime(t,n)};function jxe(e){return yn("MuiTimePickerToolbar",e)}const _d=hn("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),zxe=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],Bxe=e=>{const{theme:t,isLandscape:n,classes:r}=e,l={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return vn(l,jxe,r)},Wxe=Et(JM,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${QM.penIconButtonLandscape}`]:{marginTop:"auto"}}),qxe=Et(l5,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Uxe=Et("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${_d.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${_d.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>Ie({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),Hxe=Et("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${_d.ampmLabel}`]:t.ampmLabel},{[`&.${_d.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Ie({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${_d.ampmLabel}`]:{fontSize:17}}));function p5(e){const t=pn({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,onChange:a,openView:s,setOpenView:u,toggleMobileKeyboardView:c,toolbarTitle:d,views:f,disabled:p,readOnly:m}=t,g=Kt(t,zxe),b=Br(),v=Xi(),h=d??v.timePickerDefaultToolbarTitle,y=po(),w=!!(n&&!r),{meridiemMode:_,handleMeridiemChange:x}=JB(l,n,a),T=M=>n?b.format(M,"hours12h"):b.format(M,"hours24h"),k=t,S=Bxe(Ie({},k,{theme:y})),C=ke.jsx(qxe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:S.separator});return ke.jsxs(Wxe,Ie({viewType:"clock",landscapeDirection:"row",toolbarTitle:h,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:c,ownerState:k,className:S.root},g,{children:[ke.jsxs(Uxe,{className:S.hourMinuteLabel,ownerState:k,children:[Su(f,"hours")&&ke.jsx(dl,{tabIndex:-1,variant:"h3",onClick:()=>u("hours"),selected:s==="hours",value:l?T(l):"--"}),Su(f,["hours","minutes"])&&C,Su(f,"minutes")&&ke.jsx(dl,{tabIndex:-1,variant:"h3",onClick:()=>u("minutes"),selected:s==="minutes",value:l?b.format(l,"minutes"):"--"}),Su(f,["minutes","seconds"])&&C,Su(f,"seconds")&&ke.jsx(dl,{variant:"h3",onClick:()=>u("seconds"),selected:s==="seconds",value:l?b.format(l,"seconds"):"--"})]}),w&&ke.jsxs(Hxe,{className:S.ampmSelection,ownerState:k,children:[ke.jsx(dl,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:S.ampmLabel,value:b.getMeridiemText("am"),onClick:m?void 0:()=>x("am"),disabled:p}),ke.jsx(dl,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:S.ampmLabel,value:b.getMeridiemText("pm"),onClick:m?void 0:()=>x("pm"),disabled:p})]})]}))}const Vxe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],_W=ge.forwardRef(function(t,n){const r=d5(t,"MuiDesktopTimePicker"),l=u5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,f5),{PaperProps:s,PopperProps:u,ToolbarComponent:c=p5,TransitionComponent:d,components:f,componentsProps:p}=r,m=Kt(r,Vxe),g=Ie({},o,m,{components:f,componentsProps:p,ref:n,validationError:l});return ke.jsx(n5,Ie({},a,{DateInputProps:g,KeyboardDateInputComponent:bb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:f,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},m))}))}),Gxe=["ToolbarComponent","value","onChange","components","componentsProps"],TW=ge.forwardRef(function(t,n){const r=d5(t,"MuiMobileTimePicker"),l=u5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,f5),{ToolbarComponent:s=p5,components:u,componentsProps:c}=r,d=Kt(r,Gxe),f=Ie({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return ke.jsx(r5,Ie({},d,a,{DateInputProps:f,PureDateInputComponent:a5,components:u,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))});function Yxe(e){return yn("MuiPickerStaticWrapper",e)}hn("MuiPickerStaticWrapper",["root","content"]);const Xxe=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],Kxe=e=>{const{classes:t}=e;return vn({root:["root"],content:["content"]},Yxe,t)},Zxe=Et("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),Qxe=Et("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:GM,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function wb(e){var t;const n=pn({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:r,onAccept:l,onClear:i,onCancel:o,onSetToday:a,children:s,components:u,componentsProps:c,className:d}=n,f=Kt(n,Xxe),p=Kxe(n),m=(t=u==null?void 0:u.ActionBar)!=null?t:t5,g=(u==null?void 0:u.PaperContent)||ge.Fragment;return ke.jsx(ss.Provider,{value:r,children:ke.jsxs(Zxe,Ie({className:ma(p.root,d)},f,{children:[ke.jsx(Qxe,{className:p.content,children:ke.jsx(g,Ie({},c==null?void 0:c.paperContent,{children:s}))}),ke.jsx(m,Ie({onAccept:l,onClear:i,onCancel:o,onSetToday:a,actions:r==="desktop"?[]:["cancel","accept"]},c==null?void 0:c.actionBar))]}))})}const Jxe=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],e2e=ge.forwardRef(function(t,n){const r=KM(t,"MuiStaticDatePicker"),{ToolbarComponent:l=e5,displayStaticWrapperAs:i="mobile",components:o,componentsProps:a,className:s}=r,u=Kt(r,Jxe),{pickerProps:c,inputProps:d,wrapperProps:f}=cs(r,ZM),p=VM(r)!==null,m=Ie({},d,u,{ref:n,validationError:p,components:o});return ke.jsx(wb,Ie({displayStaticWrapperAs:i,components:o,componentsProps:a,className:s},f,{children:ke.jsx(us,Ie({},c,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:l,DateInputProps:m,components:o,componentsProps:a},u))}))}),t2e=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],n2e=ge.forwardRef(function(t,n){const r=o5(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=s5,components:o,componentsProps:a,hideTabs:s=l==="desktop",className:u}=r,c=Kt(r,t2e),{pickerProps:d,inputProps:f,wrapperProps:p}=cs(r,i5),m=c5(r)!==null,g=ge.useMemo(()=>Ie({Tabs:xb},o),[o]),b=Ie({},f,c,{ref:n,validationError:m,components:g,componentsProps:a});return ke.jsx(wb,Ie({displayStaticWrapperAs:l,components:g,componentsProps:a,className:u},p,{children:ke.jsx(us,Ie({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:b,components:g,componentsProps:a,hideTabs:s},c))}))}),r2e=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],a2e=ge.forwardRef(function(t,n){const r=d5(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=p5,components:o,componentsProps:a,className:s}=r,u=Kt(r,r2e),c=u5(r)!==null,{pickerProps:d,inputProps:f,wrapperProps:p}=cs(r,f5),m=Ie({},f,u,{ref:n,validationError:c,components:o,componentsProps:a});return ke.jsx(wb,Ie({displayStaticWrapperAs:l,components:o,componentsProps:a,className:s},p,{children:ke.jsx(us,Ie({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:m,components:o,componentsProps:a},u))}))}),o2e=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],i2e=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,o2e);return wM(l,{defaultMatches:!0})?ke.jsx(_W,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(TW,Ie({ref:n,DialogProps:i},s))});/** @license MUI X v5.0.20 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */const c2e=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:oW,CalendarPickerSkeleton:q1e,ClockPicker:fW,DEFAULT_LOCALE:jB,DatePicker:fxe,DateTimePicker:Bxe,DateTimePickerTabs:wb,DesktopDatePicker:yW,DesktopDateTimePicker:wW,DesktopTimePicker:TW,LocalizationProvider:pye,MobileDatePicker:bW,MobileDateTimePicker:_W,MobileTimePicker:kW,MonthPicker:BB,MuiPickersAdapterContext:WM,PickerStaticWrapper:_b,PickersDay:GB,StaticDatePicker:r2e,StaticDateTimePicker:o2e,StaticTimePicker:l2e,TimePicker:u2e,YearPicker:rW,beBY:uye,calendarPickerClasses:D1e,calendarPickerSkeletonClasses:N1e,clockClasses:rbe,clockNumberClasses:gh,clockPickerClasses:ybe,clockPointerClasses:K1e,csCZ:Lve,datePickerToolbarClasses:Abe,dateTimePickerTabsClasses:Rxe,dateTimePickerToolbarClasses:_xe,dayPickerClasses:jye,deDE:Tve,enUS:zve,esES:Cve,faIR:Pve,fiFI:Dve,frFR:Nve,getCalendarPickerSkeletonUtilityClass:iW,getCalendarPickerUtilityClass:aW,getClockPickerUtilityClass:dW,getMonthPickerUtilityClass:zB,getPickersDayUtilityClass:UB,getYearPickerUtilityClass:nW,huHU:jve,isIS:tye,itIT:Gve,jaJP:rye,koKR:Jve,monthPickerClasses:hye,nbNO:Wve,nlNL:mve,pickersCalendarHeaderClasses:d1e,pickersDayClasses:mh,pickersFadeTransitionGroupClasses:Tye,pickersMonthClasses:ck,pickersSlideTransitionClasses:Ka,pickersYearClasses:Ru,plPL:vve,ptBR:bve,ruRU:fye,svSE:Uve,timePickerToolbarClasses:Td,trTR:wve,ukUA:oye,urPK:lye,yearPickerClasses:C1e,zhCN:Kve},Symbol.toStringTag,{value:"Module"})),SW=Qn(c2e);var E7;function d2e(){return E7||(E7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(cf()),l=t(fb()),i=t(pb()),o=t(LM()),a=t($M()),s=t(NM()),u=t(ge),c=t(hb),d=t(hc),f=t(fB),p=t(FM),m=t(pB),g=t(tme),b=t(nme),v=t(rme),h=LB,y=SW,w=t(Vr),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],x=["helperText","error"],T=["helperText","error"];function k(O){var D=S();return function(){var E=(0,s.default)(O),I;if(D){var A=(0,s.default)(this).constructor;I=Reflect.construct(E,arguments,A)}else I=E.apply(this,arguments);return(0,a.default)(this,I)}}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var C=function(O){(0,o.default)(P,O);var D=k(P);function P(){return(0,l.default)(this,P),D.apply(this,arguments)}return(0,i.default)(P,[{key:"getProps",value:function(){var I=this.props;I.columnDef,I.rowData,I.onRowDataChange,I.errorState,I.autoFocus,I.onBulkEditRowChanged,I.scrollWidth;var A=(0,r.default)(I,_);return A}},{key:"renderLookupField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,z=(0,r.default)(A,x);return u.default.createElement(m.default,{error:!!j},u.default.createElement(f.default,(0,n.default)({},z,{value:this.props.value===void 0?"":this.props.value,onChange:function(N){return I.props.onChange(N.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(B){return u.default.createElement(p.default,{key:B,value:B},I.props.columnDef.lookup[B])})),!!F&&u.default.createElement(g.default,null,F))}},{key:"renderBooleanField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,z=(0,r.default)(A,T);return u.default.createElement(m.default,{error:!!j,component:"fieldset"},u.default.createElement(b.default,null,u.default.createElement(v.default,{label:"",control:u.default.createElement(d.default,(0,n.default)({},z,{value:String(this.props.value),checked:!!this.props.value,onChange:function(N){return I.props.onChange(N.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),u.default.createElement(g.default,null,F))}},{key:"renderDateField",value:function(){var I=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DatePicker,(0,n.default)({},this.getProps(),{renderInput:function(F){return u.default.createElement(c.default,F)},format:I,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.TimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DateTimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(F){return I.props.onChange(I.props.columnDef.type==="numeric"?F.target.valueAsNumber:F.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(F){var j=F.target.valueAsNumber;return!j&&j!==0&&(j=void 0),I.props.onChange(j)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var I="ok";return this.props.columnDef.editComponent?I=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?I=this.renderLookupField():this.props.columnDef.type==="boolean"?I=this.renderBooleanField():this.props.columnDef.type==="date"?I=this.renderDateField():this.props.columnDef.type==="time"?I=this.renderTimeField():this.props.columnDef.type==="datetime"?I=this.renderDateTimeField():this.props.columnDef.type==="currency"?I=this.renderCurrencyField():I=this.renderTextField(),I}}]),P}(u.default.Component);C.propTypes={value:w.default.any,onChange:w.default.func.isRequired,columnDef:w.default.object.isRequired,locale:w.default.object,rowData:w.default.object,onRowDataChange:w.default.func,errorState:w.default.func,autoFocus:w.default.bool,onBulkEditRowChanged:w.default.func,scrollWidth:w.default.number,onKeyDown:w.default.func};var M=C;e.default=M}(e_)),e_}var m_={},v0={},R7;function CW(){if(R7)return v0;R7=1;var e=Cn;Object.defineProperty(v0,"__esModule",{value:!0}),v0.validateInput=i;var t=e($a()),n=e(_a());function r(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);a&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),s.push.apply(s,u)}return s}function l(o){for(var a=1;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var h=function(w){(0,i.default)(x,w);var _=b(x);function x(T){var k;return(0,n.default)(this,x),k=_.call(this,T),(0,s.default)((0,l.default)(k),"getStyle",function(){var S={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:k.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof k.props.columnDef.cellStyle=="function"?S=g(g({},S),k.props.columnDef.cellStyle(k.state.value,k.props.rowData)):S=g(g({},S),k.props.columnDef.cellStyle),typeof k.props.cellEditable.cellStyle=="function"?S=g(g({},S),k.props.cellEditable.cellStyle(k.state.value,k.props.rowData,k.props.columnDef)):S=g(g({},S),k.props.cellEditable.cellStyle),S}),(0,s.default)((0,l.default)(k),"handleKeyDown",function(S){S.keyCode===13?k.onApprove():S.keyCode===27&&k.onCancel()}),(0,s.default)((0,l.default)(k),"onApprove",function(){var S=(0,p.validateInput)(k.props.columnDef,k.state.value).isValid;S&&k.setState({isLoading:!0},function(){k.props.cellEditable.onCellEditApproved(k.state.value,k.props.getFieldValue(k.props.rowData,k.props.columnDef),k.props.rowData,k.props.columnDef).then(function(){k.setState({isLoading:!1}),k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}).catch(function(C){k.setState({isLoading:!1})})})}),(0,s.default)((0,l.default)(k),"onCancel",function(){k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}),k.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:T.getFieldValue(k.props.rowData,k.props.columnDef,!1)},k}return(0,r.default)(x,[{key:"renderActions",value:function(){if(this.state.isLoading)return u.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},u.default.createElement(f.default,{size:20}));var k=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return u.default.createElement(this.props.components.Actions,{actions:k,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(k){var S=(0,p.validateInput)(this.props.columnDef,k);this.setState({errorState:S,value:k})}},{key:"render",value:function(){var k=this;return u.default.createElement(d.default,{size:this.props.size,style:this.getStyle(),padding:"none"},u.default.createElement("div",{style:{display:"flex",alignItems:"center"}},u.default.createElement("div",{style:{flex:1,marginRight:4}},u.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(C){return k.handleChange(C)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),x}(u.default.Component);h.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},h.propTypes={cellEditable:c.default.object.isRequired,columnDef:c.default.object.isRequired,components:c.default.object.isRequired,errorState:c.default.oneOfType([c.default.object,c.default.bool]),icons:c.default.object.isRequired,localization:c.default.object.isRequired,onCellEditFinished:c.default.func.isRequired,rowData:c.default.object.isRequired,size:c.default.string,getFieldValue:c.default.func.isRequired};var y=h;e.default=y}(m_)),m_}var g_={},v_={exports:{}},y_={exports:{}},I7;function p2e(){return I7||(I7=1,function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(y_)),y_.exports}var b_={exports:{}},$7;function h2e(){return $7||($7=1,function(e){function t(n,r){var l=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(l!=null){var i,o,a,s,u=[],c=!0,d=!1;try{if(a=(l=l.call(n)).next,r===0){if(Object(l)!==l)return;c=!1}else for(;!(c=(i=a.call(l)).done)&&(u.push(i.value),u.length!==r);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&l.return!=null&&(s=l.return(),Object(s)!==s))return}finally{if(d)throw o}}return u}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(b_)),b_.exports}var x_={exports:{}},N7;function m2e(){return N7||(N7=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(x_)),x_.exports}var F7;function iu(){return F7||(F7=1,function(e){var t=p2e(),n=h2e(),r=cB(),l=m2e();function i(o,a){return t(o)||n(o,a)||r(o,a)||l()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(v_)),v_.exports}const ff=Qn(lae),mc=Qn(Ade);var j7;function g2e(){return j7||(j7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t($a()),l=t(_a()),i=t(iu()),o=t(ge),a=t(Vr),s=t(RM),u=t(ff),c=t(mc);function d(g,b){var v=Object.keys(g);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(g);b&&(h=h.filter(function(y){return Object.getOwnPropertyDescriptor(g,y).enumerable})),v.push.apply(v,h)}return v}function f(g){for(var b=1;b0&&i.default.createElement(r.default,{colSpan:a.options.detailPanelOffset.left}),i.default.createElement(r.default,{size:a.size,colSpan:a.renderColumns.length-a.options.detailPanelOffset.left-a.options.detailPanelOffset.right,padding:"none"},i.default.createElement(n.default,{in:d,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){b.current=void 0,g()}},h({rowData:a.data}))))}return y0}var Ea={},W7;function ds(){if(W7)return Ea;W7=1;var e=Cn;Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.widthToNumber=Ea.selectionMaxWidth=Ea.rowActions=Ea.reducePercentsInCalc=Ea.parseFirstLastPageButtons=Ea.elementSize=Ea.baseIconSize=Ea.actionsColumnWidth=void 0;var t=e($a()),n=e(_a());function r(p,m){var g=Object.keys(p);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(p);m&&(b=b.filter(function(v){return Object.getOwnPropertyDescriptor(p,v).enumerable})),g.push.apply(g,b)}return g}function l(p){for(var m=1;m1){var v=b[1];return m.replace(/\d*%/,"".concat(g*(v/100),"px"))}return m.replace(/\d*%/,"".concat(g,"px"))};Ea.reducePercentsInCalc=c;var d=function(m){return typeof m=="number"?m:!m||!m.match(/^\s*\d+(px)?\s*$/)?NaN:Number(m.replace(/px$/,""))};Ea.widthToNumber=d;var f=function(m,g){var b={first:!0,last:!0};return typeof m=="boolean"?b={first:m,last:m}:(0,n.default)(m)==="object"&&(b=l(l({},b),m)),g&&(b={first:b.last,last:b.first}),b};return Ea.parseFirstLastPageButtons=f,Ea}var b0={},q7;function x2e(){if(q7)return b0;q7=1;var e=Cn;Object.defineProperty(b0,"__esModule",{value:!0}),b0.useDoubleClick=n;var t=e(ge);function n(r,l){var i=t.default.useRef(0),o=t.default.useRef(null),a=t.default.useRef(null),s=t.default.useRef(null);t.default.useEffect(function(){a.current=l,s.current=r});var u=function(){clearTimeout(o.current),o.current=null,i.current=0},c=t.default.useCallback(function(d){var f=i.current+1===2,p=o.current;if(p&&f&&(u(),a.current&&a.current(d)),!p){i.current=i.current+1;var m=function(){u(),s.current&&s.current(d)};if(a.current){var g=setTimeout(m,250);o.current=g}else m()}},[]);return c}return b0}var U7;function w2e(){return U7||(U7=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(df()),l=t(ls),i=t(mc),o=t(ff),a=t(hc),s=t(Ir()),u=t(Cl),c=t($a()),d=t(cf()),f=t(ge),p=t(Vr),m=b2e(),g=x(ds()),b=x2e(),v=Eb(),h=Yi(),y=["forwardedRef"],w=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(M){if(typeof WeakMap!="function")return null;var O=new WeakMap,D=new WeakMap;return(_=function(E){return E?D:O})(M)}function x(M,O){if(M&&M.__esModule)return M;if(M===null||n(M)!=="object"&&typeof M!="function")return{default:M};var D=_(O);if(D&&D.has(M))return D.get(M);var P={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in M)if(I!=="default"&&Object.prototype.hasOwnProperty.call(M,I)){var A=E?Object.getOwnPropertyDescriptor(M,I):null;A&&(A.get||A.set)?Object.defineProperty(P,I,A):P[I]=M[I]}return P.default=M,D&&D.set(M,P),P}function T(M,O){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(M);O&&(P=P.filter(function(E){return Object.getOwnPropertyDescriptor(M,E).enumerable})),D.push.apply(D,P)}return D}function k(M){for(var O=1;O-1)}).sort(function(Ae,Re){return Ae.tableData.columnOrder-Re.tableData.columnOrder}).map(function(Ae){var Re=D.getFieldValue(D.data,Ae);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Fe){return Fe.tableData.id===Ae.tableData.id}))return f.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:I,localization:P,columnDef:Ae,size:Pe,key:"cell-"+D.data.tableData.id+"-"+Ae.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:H});var Le=Ae.editable!=="never"&&!!D.cellEditable;Le&&D.cellEditable.isCellEditable&&(Le=D.cellEditable.isCellEditable(D.data,Ae));var $e="cell-".concat(D.data.tableData.id,"-").concat(Ae.tableData.id);return f.default.createElement(D.components.Cell,{size:Pe,errorState:D.errorState,columnDef:k({cellStyle:E.cellStyle},Ae),value:Re,key:$e,rowData:D.data,cellEditable:Le,onCellEditStarted:D.onCellEditStarted,scrollWidth:H})});return Te},Pe=g.elementSize(A),Me=W.length*g.baseIconSize(A),ce=function(Te){return f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-actions-column",style:k({width:Me,padding:"0px 5px",boxSizing:"border-box"},E.actionsCellStyle)},f.default.createElement(D.components.Actions,{data:D.data,actions:Te,components:D.components,size:Pe,disabled:D.hasAnyEditingRow}))},we=function(){var Te=E.selectionProps||{};typeof Te=="function"&&(Te=Te(D.data));var Ae=g.selectionMaxWidth(A,D.treeDataMaxLevel)||0,Re=Pe!=="medium"?{padding:"4px"}:void 0;return f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-selection-column",style:{width:Ae}},f.default.createElement(a.default,(0,s.default)({size:Pe,checked:D.data.tableData.checked===!0,onClick:function($e){return $e.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function($e){D.onRowSelected($e,D.path,D.data)},style:Re},Te)))},K=function(Te){return{transform:Te?"rotate(90deg)":"none"}},ne=function(){return E.showDetailPanelIcon?typeof D.detailPanel=="function"?f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-detail-panel-column",style:k({width:42,textAlign:"center"},E.detailPanelColumnStyle)},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,style:k({transition:"all ease 200ms"},K(D.data.tableData.showDetailPanel)),onClick:function(Ae){D.onToggleDetailPanel(D.path,D.detailPanel),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-detail-panel-column"},f.default.createElement("div",{style:k({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},E.detailPanelColumnStyle)},D.detailPanel.map(function(Te,Ae){typeof Te=="function"&&(Te=Te(D.data));var Re=(D.data.tableData.showDetailPanel||"").toString()===Te.render.toString(),Le=f.default.createElement(I.DetailPanel,null),$e=!0;return Re?Te.openIcon?(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.openIcon,iconProps:Te.iconProps}),$e=!1):Te.icon&&(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.icon,iconProps:Te.iconProps})):Te.icon&&(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.icon,iconProps:Te.iconProps}),$e=!1),Le=f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,key:"key-detail-panel-"+Ae,style:k({transition:"all ease 200ms"},K($e&&Re)),disabled:Te.disabled,onClick:function(Be){D.onToggleDetailPanel(D.path,Te.render),Be.stopPropagation()}},Le),Te.tooltip&&(Le=f.default.createElement(i.default,{key:"key-detail-panel-"+Ae,title:Te.tooltip},Le)),Le}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,style:k({transition:"all ease 200ms",marginLeft:D.level*9},K(D.data.tableData.isTreeExpanded)),onClick:function(Ae){D.onTreeExpandChanged(D.path,D.data),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{padding:"none",key:"key-tree-data-column"})},_e=function(Te,Ae){var Re={};return typeof E.rowStyle=="function"?Re=k(k({},Re),E.rowStyle(D.data,Te,Ae,D.hasAnyEditingRow)):E.rowStyle&&(Re=k(k({},Re),E.rowStyle)),(Z||G)&&(Re.cursor="pointer"),D.hasAnyEditingRow&&(Re.opacity=Re.opacity?Re.opacity:.2),Re},ue=Oe();E.selection&&ue.splice(0,0,we());var pe=g.rowActions(D);if(pe.length>0){if(E.actionsColumnIndex===-1)ue.push(ce(pe));else if(E.actionsColumnIndex>=0){var xe=0;E.selection&&(xe=1),ue.splice(E.actionsColumnIndex+xe,0,ce(pe))}}return D.detailPanel&&(E.detailPanelColumnAlignment==="right"?ue.push(ne()):ue.splice(0,0,ne())),D.isTreeData&&ue.splice(0,0,de()),D.columns.filter(function(ye){return ye.tableData.groupOrder>-1}).forEach(function(ye){ue.splice(0,0,f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-group-cell"+ye.tableData.id}))}),f.default.createElement(f.default.Fragment,null,f.default.createElement(l.default,(0,s.default)({ref:O,selected:q},Q,{onClick:function(Te){ee&&Te.persist(),!q&&Se(Te)},hover:!!(Z||G),style:_e(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),f.default.createElement(m.MTableDetailPanel,{options:E,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Pe}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(ye,Te){return ye.tableData.editing?f.default.createElement(D.components.EditRow,{columns:re,components:D.components,data:ye,icons:I,localization:P,getFieldValue:D.getFieldValue,key:Te,mode:ye.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:N,onEditingApproved:R,errorState:D.errorState}):f.default.createElement(D.components.Row,(0,s.default)({},D,{data:ye,index:Te,key:Te,level:D.level+1,path:[].concat((0,r.default)(D.path),[ye.tableData.uuid]),onEditingCanceled:N,onEditingApproved:R,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:Y,errorState:D.errorState,cellEditable:U,onCellEditStarted:V,onCellEditFinished:te}))}))}S.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},S.propTypes={forwardedRef:p.default.element,actions:p.default.array,index:p.default.number.isRequired,data:p.default.object.isRequired,detailPanel:p.default.oneOfType([p.default.func,p.default.arrayOf(p.default.oneOfType([p.default.object,p.default.func]))]),hasAnyEditingRow:p.default.bool,onRowSelected:p.default.func,path:p.default.arrayOf(p.default.oneOfType([p.default.string,p.default.number])),persistEvents:p.default.bool,treeDataMaxLevel:p.default.number,getFieldValue:p.default.func.isRequired,columns:p.default.array,onToggleDetailPanel:p.default.func.isRequired,onRowClick:p.default.func,onRowDoubleClick:p.default.func,onEditingApproved:p.default.func,onEditingCanceled:p.default.func,errorState:p.default.oneOfType([p.default.object,p.default.bool])};var C=f.default.forwardRef(function(O,D){return f.default.createElement(S,(0,s.default)({},O,{forwardedRef:D}))});e.default=C}(__)),__}var T_={},Ts={};const _2e=Qn(eve);var H7;function T2e(){if(H7)return Ts;H7=1;var e=Cn;Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.getCurrencyValue=i,Ts.getEmptyValue=l,Ts.getRenderValue=o,Ts.isoDateRegex=void 0;var t=e(ge),n=e(_2e),r=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;Ts.isoDateRegex=r;function l(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof a=="function"?s.columnDef.emptyValue(s.rowData):a}function i(a,s){return a!==void 0?new Intl.NumberFormat(a.locale!==void 0?a.locale:"en-US",{style:"currency",currency:a.currencyCode!==void 0?a.currencyCode:"USD",minimumFractionDigits:a.minimumFractionDigits!==void 0?a.minimumFractionDigits:2,maximumFractionDigits:a.maximumFractionDigits!==void 0?a.maximumFractionDigits:2}).format(s!==void 0?s:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(s!==void 0?s:0)}function o(a,s,u){var c=a.columnDef.dateSetting&&a.columnDef.dateSetting.locale?a.columnDef.dateSetting.locale:void 0;if(a.columnDef.emptyValue!==void 0&&(a.value===void 0||a.value===null))return l(a.columnDef.emptyValue,a);if(a.rowData===void 0&&a.value&&a.columnDef.groupRender)return a.columnDef.groupRender(a.value);if(a.columnDef.render&&a.rowData)return a.columnDef.render(a.rowData);if(a.columnDef.type==="boolean"){var d={textAlign:"left",verticalAlign:"middle",width:48};return a.value?t.default.createElement(s.Check,{style:d}):t.default.createElement(s.ThirdStateCheck,{style:d})}else{if(a.columnDef.type==="date")return a.value instanceof Date?a.value.toLocaleDateString(c):r.exec(a.value)?(0,n.default)(a.value).toLocaleDateString(c):a.value;if(a.columnDef.type==="time")return a.value instanceof Date?a.value.toLocaleTimeString():r.exec(a.value)?(0,n.default)(a.value).toLocaleTimeString(c):a.value;if(a.columnDef.type==="datetime")return a.value instanceof Date?a.value.toLocaleString():r.exec(a.value)?(0,n.default)(a.value).toLocaleString(c):a.value;if(a.columnDef.type==="currency")return i(a.columnDef.currencySetting,a.value);if(typeof a.value=="boolean")return a.value.toString()}return a.value}return Ts}var ks={},V7;function Tb(){if(V7)return ks;V7=1;var e=Cn,t=_a();Object.defineProperty(ks,"__esModule",{value:!0}),ks.getStyle=c,ks.setObjectByKey=ks.selectFromObject=void 0;var n=e($a()),r=i(ds());function l(d){if(typeof WeakMap!="function")return null;var f=new WeakMap,p=new WeakMap;return(l=function(g){return g?p:f})(d)}function i(d,f){if(d&&d.__esModule)return d;if(d===null||t(d)!=="object"&&typeof d!="function")return{default:d};var p=l(f);if(p&&p.has(d))return p.get(d);var m={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in d)if(b!=="default"&&Object.prototype.hasOwnProperty.call(d,b)){var v=g?Object.getOwnPropertyDescriptor(d,b):null;v&&(v.get||v.set)?Object.defineProperty(m,b,v):m[b]=d[b]}return m.default=d,p&&p.set(d,m),m}function o(d,f){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);f&&(m=m.filter(function(g){return Object.getOwnPropertyDescriptor(d,g).enumerable})),p.push.apply(p,m)}return p}function a(d){for(var f=1;f-1)}).sort(function(H,Z){return H.tableData.columnOrder-Z.tableData.columnOrder}).map(function(H,Z){var G=k.getFieldValue(D.data,H,!1),X=function(Oe,Pe){var Me={color:"inherit"};return typeof Oe.cellStyle=="function"?Me=_(_({},Me),Oe.cellStyle(Pe,k.data)):Me=_(_({},Me),Oe.cellStyle),Oe.disableClick&&(Me.cursor="default"),_({},Me)};Z===0&&24+k.level*20;var Q=!1;if(H.editable===void 0&&(Q=!0),H.editable==="always"&&(Q=!0),H.editable==="onAdd"&&k.mode==="add"&&(Q=!0),H.editable==="onUpdate"&&k.mode==="update"&&(Q=!0),typeof H.editable=="function"&&(Q=H.editable(H,k.data)),!H.field||!Q){var re=k.getFieldValue(D.data,H);return a.default.createElement(k.components.Cell,{size:V,icons:S,columnDef:H,value:re,key:H.tableData.id,rowData:k.data,style:X(H,G)})}else{var ae=H.editComponent,ie=(0,l.default)(H,b),se=ae||k.components.EditField,he=(0,g.validateInput)(H,D.data);return te===-1&&(te=Z),a.default.createElement(s.default,{size:V,key:H.tableData.id,align:["numeric"].indexOf(H.type)!==-1?"right":"left",style:X(H,G)},a.default.createElement(se,{key:H.tableData.id,columnDef:ie,autoFocus:te===Z,value:G,error:!he.isValid,helperText:he.helperText,locale:k.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Oe){var Pe=_({},D.data);(0,f.setObjectByKey)(Pe,H.field,Oe),P({data:Pe}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Pe)},onRowDataChange:function(Oe){P({data:Oe}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Oe)}}))}});return ee}var I=k.columns.every(function(V){var te=(0,g.validateInput)(V,D.data);return te.isValid}),A=function(){I&&k.onEditingApproved(k.mode,D.data,k.data)};function F(){if(k.mode!=="bulk"){var V=m.elementSize(k),te=[{icon:S.Check,tooltip:k.localization.saveTooltip,disabled:!I,onClick:A},{icon:S.Clear,tooltip:k.localization.cancelTooltip,onClick:function(){k.onEditingCanceled(k.mode,k.data)}}];return a.default.createElement(s.default,{size:V,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},C.editCellStyle)},a.default.createElement(k.components.Actions,{data:k.data,actions:te,components:k.components,size:V}))}}function j(){var V={borderBottom:"1px solid red"};return V}var z=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?A():te.keyCode===27&&k.onEditingCanceled(k.mode,k.data)},B=m.elementSize(k),N;if(k.mode==="add"||k.mode==="update"||k.mode==="bulk")N=E();else{var R=k.columns.filter(function(V){return!V.hidden&&!(V.tableData.groupOrder>-1)}).length;N=[a.default.createElement(s.default,{size:B,padding:C.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:R},a.default.createElement(c.default,{variant:"h6"},k.localization.deleteText))]}if(C.selection&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-selection-cell"})),k.isTreeData&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-tree-data-cell"})),C.actionsColumnIndex===-1)N.push(F());else if(C.actionsColumnIndex>=0){var q=0;C.selection&&(q=1),k.isTreeData&&(q=1,C.selection&&N.splice(1,1)),N.splice(C.actionsColumnIndex+q,0,F())}if(k.detailPanel&&C.showDetailPanelIcon!==!1&&k.mode!=="bulk"){var Y=C.detailPanelColumnAlignment,L=Y==="left"?0:N.length;N.splice(L,0,a.default.createElement(s.default,{padding:"none",key:"key-detail-panel-cell"}))}k.columns.filter(function(V){return V.tableData.groupOrder>-1}).forEach(function(V){N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-group-cell"+V.tableData.id}))}),k.detailPanel,k.isTreeData,k.onRowClick,k.onRowSelected,k.onTreeExpandChanged,k.onToggleDetailPanel,k.onEditingApproved,k.onEditingCanceled,k.getFieldValue,k.components,k.columns,k.errorState,k.onBulkEditRowChanged,k.bulkEditChangedRows,k.scrollWidth;var W=k.forwardedRef,U=(0,l.default)(k,v);return a.default.createElement(u.default,(0,r.default)({onKeyDown:z},U,{ref:W,style:j()}),N)}x.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},x.propTypes={actions:d.default.array,index:d.default.number.isRequired,data:d.default.object,detailPanel:d.default.oneOfType([d.default.func,d.default.arrayOf(d.default.oneOfType([d.default.object,d.default.func]))]),onRowSelected:d.default.func,path:d.default.arrayOf(d.default.number),columns:d.default.array,onRowClick:d.default.func,onEditingApproved:d.default.func,onEditingCanceled:d.default.func,localization:d.default.object,getFieldValue:d.default.func,errorState:d.default.oneOfType([d.default.object,d.default.bool]),onBulkEditRowChanged:d.default.func};var T=a.default.forwardRef(function(S,C){return a.default.createElement(x,(0,r.default)({},S,{forwardedRef:C}))});e.default=T}(S_)),S_}var C_={},M_={},hu={},K7;function h5(){if(K7)return hu;K7=1;var e=Cn;Object.defineProperty(hu,"__esModule",{value:!0}),hu.getLocalizedFilterPlaceHolder=hu.getLocalizationData=void 0;var t=e($a()),n=PW();function r(a,s){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);s&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),u.push.apply(u,c)}return u}function l(a){for(var s=1;s-1}),d.default.createElement(a.default,{primary:_.lookup[D]}))})))}var y=d.default.forwardRef(function(_,x){return d.default.createElement(h,(0,r.default)({},_,{forwardedRef:x}))});e.default=y}(P_)),P_}var O_={};const MW=Qn(Lue);var J7;function D2e(){return J7||(J7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(hb),l=t(MW),i=t(mc),o=t(ge),a=h5();function s(c){var d,f,p=c.columnDef,m=c.icons,g=c.localization,b=c.hideFilterIcons,v=c.onFilterChanged,h=c.forwardedRef,y=(0,a.getLocalizationData)(g),w=m.Filter;return o.default.createElement(r.default,{ref:h,style:p.type==="numeric"?{float:(d=p.align)!==null&&d!==void 0?d:"right"}:{float:(f=p.align)!==null&&f!==void 0?f:"left"},type:p.type==="numeric"?"number":"search",value:p.tableData.filterValue||"",placeholder:(0,a.getLocalizedFilterPlaceHolder)(p,g),onChange:function(x){v(p.tableData.id,x.target.value)},inputProps:{"aria-label":"filter data by ".concat(p.title)},InputProps:b||p.hideFilterIcon?void 0:{startAdornment:o.default.createElement(l.default,{position:"start"},o.default.createElement(i.default,{title:y.filterTooltip},o.default.createElement(w,null)))}})}var u=o.default.forwardRef(function(d,f){return o.default.createElement(s,(0,n.default)({},d,{forwardedRef:f}))});e.default=u}(O_)),O_}var A_={},eE;function E2e(){return eE||(eE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(hc),l=t(ge);function i(a){var s=a.forwardedRef,u=a.columnDef,c=a.onFilterChanged;return l.default.createElement(r.default,{ref:s,inputProps:{"aria-label":"Filter of ".concat(u.title)},indeterminate:u.tableData.filterValue===void 0,checked:u.tableData.filterValue==="checked",onChange:function(){var f;u.tableData.filterValue===void 0?f="checked":u.tableData.filterValue==="checked"&&(f="unchecked"),c(u.tableData.id,f)}})}var o=l.default.forwardRef(function(s,u){return l.default.createElement(i,(0,n.default)({},s,{forwardedRef:u}))});e.default=o}(A_)),A_}var D_={},tE;function R2e(){return tE||(tE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=o(ge);function i(u){if(typeof WeakMap!="function")return null;var c=new WeakMap,d=new WeakMap;return(i=function(p){return p?d:c})(u)}function o(u,c){if(u&&u.__esModule)return u;if(u===null||n(u)!=="object"&&typeof u!="function")return{default:u};var d=i(c);if(d&&d.has(u))return d.get(u);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in u)if(m!=="default"&&Object.prototype.hasOwnProperty.call(u,m)){var g=p?Object.getOwnPropertyDescriptor(u,m):null;g&&(g.get||g.set)?Object.defineProperty(f,m,g):f[m]=u[m]}return f.default=u,d&&d.set(u,f),f}function a(u){var c=u.columnDef,d=u.onFilterChanged,f=u.forwardedRef;return(0,l.createElement)(c.filterComponent,{columnDef:c,onFilterChanged:d,forwardedRef:f})}var s=l.default.forwardRef(function(c,d){return l.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(D_)),D_}var nE;function PW(){return nE||(nE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=b,e.default=void 0;var n=t(ls),r=t(Cl),l=t($a()),i=t(Ir()),o=t(ge),a=t(Vr),s=t(M2e()),u=t(A2e()),c=t(D2e()),d=t(E2e()),f=t(R2e()),p=tg();function m(h,y){var w=Object.keys(h);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(h);y&&(_=_.filter(function(x){return Object.getOwnPropertyDescriptor(h,x).enumerable})),w.push.apply(w,_)}return w}function g(h){for(var y=1;y-1)}).sort(function(k,S){return k.tableData.columnOrder-S.tableData.columnOrder}).map(function(k){return o.default.createElement(r.default,{key:k.tableData.id,style:g(g({},y.filterCellStyle),k.filterCellStyle)},w(k))});if(y.selection&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-selection-column"})),h.hasActions)if(y.actionsColumnIndex===-1)_.push(o.default.createElement(r.default,{key:"key-action-column"}));else{var x=0;h.selection&&(x=1),_.splice(y.actionsColumnIndex+x,0,o.default.createElement(r.default,{key:"key-action-column"}))}if(h.hasDetailPanel&&y.showDetailPanelIcon){var T=y.detailPanelColumnAlignment==="left"?0:_.length;_.splice(T,0,o.default.createElement(r.default,{padding:"none",key:"key-detail-panel-column"}))}return h.isTreeData>0&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-tree-data-filter"})),h.columns.filter(function(k){return k.tableData.groupOrder>-1}).forEach(function(k){_.splice(0,0,o.default.createElement(r.default,{padding:"checkbox",key:"key-group-filter"+k.tableData.id}))}),o.default.createElement(n.default,{id:"m--table--filter--row",ref:h.forwardedRef,style:g({height:10},y.filterRowStyle)},_)}b.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},b.propTypes={columns:a.default.array.isRequired,hasDetailPanel:a.default.bool.isRequired,isTreeData:a.default.bool.isRequired,onFilterChanged:a.default.func.isRequired,hasActions:a.default.bool,localization:a.default.object};var v=o.default.forwardRef(function(y,w){return o.default.createElement(b,(0,i.default)({},y,{forwardedRef:w}))});e.default=v}(C_)),C_}var E_={};const OW=Qn(Afe),L2e=Qn(Mie);function rE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function aE(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Mo(1));return n(AW)(e,t)}if(typeof e!="function")throw new Error(Mo(2));var l=e,i=t,o=[],a=o,s=!1;function u(){a===o&&(a=o.slice())}function c(){if(s)throw new Error(Mo(3));return i}function d(g){if(typeof g!="function")throw new Error(Mo(4));if(s)throw new Error(Mo(5));var b=!0;return u(),a.push(g),function(){if(b){if(s)throw new Error(Mo(6));b=!1,u();var h=a.indexOf(g);a.splice(h,1),o=null}}}function f(g){if(!I2e(g))throw new Error(Mo(7));if(typeof g.type>"u")throw new Error(Mo(8));if(s)throw new Error(Mo(9));try{s=!0,i=l(i,g)}finally{s=!1}for(var b=o=a,v=0;vEW=e,j2e=()=>EW,uE=Symbol.for("react-redux-context"),cE=typeof globalThis<"u"?globalThis:{};function z2e(){var e;if(!ge.createContext)return{};const t=(e=cE[uE])!=null?e:cE[uE]=new Map;let n=t.get(ge.createContext);return n||(n=ge.createContext(null),t.set(ge.createContext,n)),n}const RW=z2e(),B2e=()=>{throw new Error("uSES not initialized!")},W2e=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function q2e(e,t,n,r,{areStatesEqual:l,areOwnPropsEqual:i,areStatePropsEqual:o}){let a=!1,s,u,c,d,f;function p(h,y){return s=h,u=y,c=e(s,u),d=t(r,u),f=n(c,d,u),a=!0,f}function m(){return c=e(s,u),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function g(){return e.dependsOnOwnProps&&(c=e(s,u)),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function b(){const h=e(s,u),y=!o(h,c);return c=h,y&&(f=n(c,d,u)),f}function v(h,y){const w=!i(y,u),_=!l(h,s,y,u);return s=h,u=y,w&&_?m():w?g():_?b():f}return function(y,w){return a?v(y,w):p(y,w)}}function U2e(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:l}=t,i=Kt(t,W2e);const o=n(e,i),a=r(e,i),s=l(e,i);return q2e(o,a,s,e,i)}function H2e(e,t){const n={};for(const r in e){const l=e[r];typeof l=="function"&&(n[r]=(...i)=>t(l(...i)))}return n}function pk(e){return function(n){const r=e(n);function l(){return r}return l.dependsOnOwnProps=!1,l}}function dE(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function LW(e,t){return function(r,{displayName:l}){const i=function(a,s){return i.dependsOnOwnProps?i.mapToProps(a,s):i.mapToProps(a,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(a,s){i.mapToProps=e,i.dependsOnOwnProps=dE(e);let u=i(a,s);return typeof u=="function"&&(i.mapToProps=u,i.dependsOnOwnProps=dE(u),u=i(a,s)),u},i}}function m5(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function V2e(e){return e&&typeof e=="object"?pk(t=>H2e(e,t)):e?typeof e=="function"?LW(e):m5(e,"mapDispatchToProps"):pk(t=>({dispatch:t}))}function G2e(e){return e?typeof e=="function"?LW(e):m5(e,"mapStateToProps"):pk(()=>({}))}function Y2e(e,t,n){return Ie({},n,e,t)}function X2e(e){return function(n,{displayName:r,areMergedPropsEqual:l}){let i=!1,o;return function(s,u,c){const d=e(s,u,c);return i?l(d,o)||(o=d):(i=!0,o=d),o}}}function K2e(e){return e?typeof e=="function"?X2e(e):m5(e,"mergeProps"):()=>Y2e}function Z2e(){const e=j2e();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],l=t;for(;l;)r.push(l),l=l.next;return r},subscribe(r){let l=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!l||t===null||(l=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const fE={notify(){},get:()=>[]};function IW(e,t){let n,r=fE,l=0,i=!1;function o(g){c();const b=r.subscribe(g);let v=!1;return()=>{v||(v=!0,b(),d())}}function a(){r.notify()}function s(){m.onStateChange&&m.onStateChange()}function u(){return i}function c(){l++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=Z2e())}function d(){l--,n&&l===0&&(n(),n=void 0,r.clear(),r=fE)}function f(){i||(i=!0,c())}function p(){i&&(i=!1,d())}const m={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:u,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}const Q2e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dy=Q2e?ge.useLayoutEffect:ge.useEffect;function pE(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function L_(e,t){if(pE(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let l=0;l{$W=e},twe=[null,null];function nwe(e,t,n){dy(()=>e(...t),n)}function rwe(e,t,n,r,l,i){e.current=r,n.current=!1,l.current&&(l.current=null,i())}function awe(e,t,n,r,l,i,o,a,s,u,c){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!a.current)return;const g=t.getState();let b,v;try{b=r(g,l.current)}catch(h){v=h,f=h}v||(f=null),b===i.current?o.current||u():(i.current=b,s.current=b,o.current=!0,c())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function owe(e,t){return e===t}function NW(e,t,n,{pure:r,areStatesEqual:l=owe,areOwnPropsEqual:i=L_,areStatePropsEqual:o=L_,areMergedPropsEqual:a=L_,forwardRef:s=!1,context:u=RW}={}){const c=u,d=G2e(e),f=V2e(t),p=K2e(n),m=!!e;return b=>{const v=b.displayName||b.name||"Component",h=`Connect(${v})`,y={shouldHandleStateChanges:m,displayName:h,wrappedComponentName:v,WrappedComponent:b,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:l,areStatePropsEqual:o,areOwnPropsEqual:i,areMergedPropsEqual:a};function w(T){const[k,S,C]=ge.useMemo(()=>{const{reactReduxForwardedRef:H}=T,Z=Kt(T,J2e);return[T.context,H,Z]},[T]),M=ge.useMemo(()=>k&&k.Consumer&&fJ.isContextConsumer(ge.createElement(k.Consumer,null))?k:c,[k,c]),O=ge.useContext(M),D=!!T.store&&!!T.store.getState&&!!T.store.dispatch,P=!!O&&!!O.store,E=D?T.store:O.store,I=P?O.getServerState:E.getState,A=ge.useMemo(()=>U2e(E.dispatch,y),[E]),[F,j]=ge.useMemo(()=>{if(!m)return twe;const H=IW(E,D?void 0:O.subscription),Z=H.notifyNestedSubs.bind(H);return[H,Z]},[E,D,O]),z=ge.useMemo(()=>D?O:Ie({},O,{subscription:F}),[D,O,F]),B=ge.useRef(),N=ge.useRef(C),R=ge.useRef(),q=ge.useRef(!1);ge.useRef(!1);const Y=ge.useRef(!1),L=ge.useRef();dy(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const W=ge.useMemo(()=>()=>R.current&&C===N.current?R.current:A(E.getState(),C),[E,C]),U=ge.useMemo(()=>Z=>F?awe(m,E,F,A,N,B,q,Y,R,j,Z):()=>{},[F]);nwe(rwe,[N,B,q,C,R,j]);let V;try{V=$W(U,W,I?()=>A(I(),C):W)}catch(H){throw L.current&&(H.message+=` + */const l2e=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:aW,CalendarPickerSkeleton:z1e,ClockPicker:dW,DEFAULT_LOCALE:FB,DatePicker:uxe,DateTimePicker:Fxe,DateTimePickerTabs:xb,DesktopDatePicker:vW,DesktopDateTimePicker:xW,DesktopTimePicker:_W,LocalizationProvider:cye,MobileDatePicker:yW,MobileDateTimePicker:wW,MobileTimePicker:TW,MonthPicker:zB,MuiPickersAdapterContext:WM,PickerStaticWrapper:wb,PickersDay:VB,StaticDatePicker:e2e,StaticDateTimePicker:n2e,StaticTimePicker:a2e,TimePicker:i2e,YearPicker:nW,beBY:iye,calendarPickerClasses:P1e,calendarPickerSkeletonClasses:L1e,clockClasses:ebe,clockNumberClasses:mh,clockPickerClasses:mbe,clockPointerClasses:G1e,csCZ:Dve,datePickerToolbarClasses:Mbe,dateTimePickerTabsClasses:Axe,dateTimePickerToolbarClasses:bxe,dayPickerClasses:$ye,deDE:xve,enUS:Nve,esES:Tve,faIR:Sve,fiFI:Pve,frFR:Lve,getCalendarPickerSkeletonUtilityClass:oW,getCalendarPickerUtilityClass:rW,getClockPickerUtilityClass:cW,getMonthPickerUtilityClass:jB,getPickersDayUtilityClass:qB,getYearPickerUtilityClass:tW,huHU:$ve,isIS:Qve,itIT:Uve,jaJP:eye,koKR:Kve,monthPickerClasses:dye,nbNO:jve,nlNL:fve,pickersCalendarHeaderClasses:s1e,pickersDayClasses:hh,pickersFadeTransitionGroupClasses:xye,pickersMonthClasses:uk,pickersSlideTransitionClasses:Ka,pickersYearClasses:Eu,plPL:hve,ptBR:gve,ruRU:uye,svSE:Bve,timePickerToolbarClasses:_d,trTR:yve,ukUA:nye,urPK:aye,yearPickerClasses:T1e,zhCN:Gve},Symbol.toStringTag,{value:"Module"})),kW=Qn(l2e);var E7;function s2e(){return E7||(E7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(uf()),l=t(db()),i=t(fb()),o=t(LM()),a=t($M()),s=t(NM()),u=t(ge),c=t(pb),d=t(pc),f=t(dB),p=t(FM),m=t(fB),g=t(Qhe),b=t(Jhe),v=t(eme),h=RB,y=kW,w=t(Vr),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],x=["helperText","error"],T=["helperText","error"];function k(O){var D=S();return function(){var E=(0,s.default)(O),I;if(D){var A=(0,s.default)(this).constructor;I=Reflect.construct(E,arguments,A)}else I=E.apply(this,arguments);return(0,a.default)(this,I)}}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var C=function(O){(0,o.default)(P,O);var D=k(P);function P(){return(0,l.default)(this,P),D.apply(this,arguments)}return(0,i.default)(P,[{key:"getProps",value:function(){var I=this.props;I.columnDef,I.rowData,I.onRowDataChange,I.errorState,I.autoFocus,I.onBulkEditRowChanged,I.scrollWidth;var A=(0,r.default)(I,_);return A}},{key:"renderLookupField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,z=(0,r.default)(A,x);return u.default.createElement(m.default,{error:!!j},u.default.createElement(f.default,(0,n.default)({},z,{value:this.props.value===void 0?"":this.props.value,onChange:function(N){return I.props.onChange(N.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(B){return u.default.createElement(p.default,{key:B,value:B},I.props.columnDef.lookup[B])})),!!F&&u.default.createElement(g.default,null,F))}},{key:"renderBooleanField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,z=(0,r.default)(A,T);return u.default.createElement(m.default,{error:!!j,component:"fieldset"},u.default.createElement(b.default,null,u.default.createElement(v.default,{label:"",control:u.default.createElement(d.default,(0,n.default)({},z,{value:String(this.props.value),checked:!!this.props.value,onChange:function(N){return I.props.onChange(N.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),u.default.createElement(g.default,null,F))}},{key:"renderDateField",value:function(){var I=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DatePicker,(0,n.default)({},this.getProps(),{renderInput:function(F){return u.default.createElement(c.default,F)},format:I,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.TimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DateTimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(F){return I.props.onChange(I.props.columnDef.type==="numeric"?F.target.valueAsNumber:F.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(F){var j=F.target.valueAsNumber;return!j&&j!==0&&(j=void 0),I.props.onChange(j)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var I="ok";return this.props.columnDef.editComponent?I=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?I=this.renderLookupField():this.props.columnDef.type==="boolean"?I=this.renderBooleanField():this.props.columnDef.type==="date"?I=this.renderDateField():this.props.columnDef.type==="time"?I=this.renderTimeField():this.props.columnDef.type==="datetime"?I=this.renderDateTimeField():this.props.columnDef.type==="currency"?I=this.renderCurrencyField():I=this.renderTextField(),I}}]),P}(u.default.Component);C.propTypes={value:w.default.any,onChange:w.default.func.isRequired,columnDef:w.default.object.isRequired,locale:w.default.object,rowData:w.default.object,onRowDataChange:w.default.func,errorState:w.default.func,autoFocus:w.default.bool,onBulkEditRowChanged:w.default.func,scrollWidth:w.default.number,onKeyDown:w.default.func};var M=C;e.default=M}(Jw)),Jw}var h_={},v0={},R7;function SW(){if(R7)return v0;R7=1;var e=Cn;Object.defineProperty(v0,"__esModule",{value:!0}),v0.validateInput=i;var t=e($a()),n=e(_a());function r(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);a&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),s.push.apply(s,u)}return s}function l(o){for(var a=1;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var h=function(w){(0,i.default)(x,w);var _=b(x);function x(T){var k;return(0,n.default)(this,x),k=_.call(this,T),(0,s.default)((0,l.default)(k),"getStyle",function(){var S={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:k.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof k.props.columnDef.cellStyle=="function"?S=g(g({},S),k.props.columnDef.cellStyle(k.state.value,k.props.rowData)):S=g(g({},S),k.props.columnDef.cellStyle),typeof k.props.cellEditable.cellStyle=="function"?S=g(g({},S),k.props.cellEditable.cellStyle(k.state.value,k.props.rowData,k.props.columnDef)):S=g(g({},S),k.props.cellEditable.cellStyle),S}),(0,s.default)((0,l.default)(k),"handleKeyDown",function(S){S.keyCode===13?k.onApprove():S.keyCode===27&&k.onCancel()}),(0,s.default)((0,l.default)(k),"onApprove",function(){var S=(0,p.validateInput)(k.props.columnDef,k.state.value).isValid;S&&k.setState({isLoading:!0},function(){k.props.cellEditable.onCellEditApproved(k.state.value,k.props.getFieldValue(k.props.rowData,k.props.columnDef),k.props.rowData,k.props.columnDef).then(function(){k.setState({isLoading:!1}),k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}).catch(function(C){k.setState({isLoading:!1})})})}),(0,s.default)((0,l.default)(k),"onCancel",function(){k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}),k.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:T.getFieldValue(k.props.rowData,k.props.columnDef,!1)},k}return(0,r.default)(x,[{key:"renderActions",value:function(){if(this.state.isLoading)return u.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},u.default.createElement(f.default,{size:20}));var k=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return u.default.createElement(this.props.components.Actions,{actions:k,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(k){var S=(0,p.validateInput)(this.props.columnDef,k);this.setState({errorState:S,value:k})}},{key:"render",value:function(){var k=this;return u.default.createElement(d.default,{size:this.props.size,style:this.getStyle(),padding:"none"},u.default.createElement("div",{style:{display:"flex",alignItems:"center"}},u.default.createElement("div",{style:{flex:1,marginRight:4}},u.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(C){return k.handleChange(C)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),x}(u.default.Component);h.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},h.propTypes={cellEditable:c.default.object.isRequired,columnDef:c.default.object.isRequired,components:c.default.object.isRequired,errorState:c.default.oneOfType([c.default.object,c.default.bool]),icons:c.default.object.isRequired,localization:c.default.object.isRequired,onCellEditFinished:c.default.func.isRequired,rowData:c.default.object.isRequired,size:c.default.string,getFieldValue:c.default.func.isRequired};var y=h;e.default=y}(h_)),h_}var m_={},g_={exports:{}},v_={exports:{}},I7;function c2e(){return I7||(I7=1,function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(v_)),v_.exports}var y_={exports:{}},$7;function d2e(){return $7||($7=1,function(e){function t(n,r){var l=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(l!=null){var i,o,a,s,u=[],c=!0,d=!1;try{if(a=(l=l.call(n)).next,r===0){if(Object(l)!==l)return;c=!1}else for(;!(c=(i=a.call(l)).done)&&(u.push(i.value),u.length!==r);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&l.return!=null&&(s=l.return(),Object(s)!==s))return}finally{if(d)throw o}}return u}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(y_)),y_.exports}var b_={exports:{}},N7;function f2e(){return N7||(N7=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(b_)),b_.exports}var F7;function iu(){return F7||(F7=1,function(e){var t=c2e(),n=d2e(),r=uB(),l=f2e();function i(o,a){return t(o)||n(o,a)||r(o,a)||l()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(g_)),g_.exports}const df=Qn(aae),hc=Qn(Mde);var j7;function p2e(){return j7||(j7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t($a()),l=t(_a()),i=t(iu()),o=t(ge),a=t(Vr),s=t(RM),u=t(df),c=t(hc);function d(g,b){var v=Object.keys(g);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(g);b&&(h=h.filter(function(y){return Object.getOwnPropertyDescriptor(g,y).enumerable})),v.push.apply(v,h)}return v}function f(g){for(var b=1;b0&&i.default.createElement(r.default,{colSpan:a.options.detailPanelOffset.left}),i.default.createElement(r.default,{size:a.size,colSpan:a.renderColumns.length-a.options.detailPanelOffset.left-a.options.detailPanelOffset.right,padding:"none"},i.default.createElement(n.default,{in:d,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){b.current=void 0,g()}},h({rowData:a.data}))))}return y0}var Ea={},W7;function ds(){if(W7)return Ea;W7=1;var e=Cn;Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.widthToNumber=Ea.selectionMaxWidth=Ea.rowActions=Ea.reducePercentsInCalc=Ea.parseFirstLastPageButtons=Ea.elementSize=Ea.baseIconSize=Ea.actionsColumnWidth=void 0;var t=e($a()),n=e(_a());function r(p,m){var g=Object.keys(p);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(p);m&&(b=b.filter(function(v){return Object.getOwnPropertyDescriptor(p,v).enumerable})),g.push.apply(g,b)}return g}function l(p){for(var m=1;m1){var v=b[1];return m.replace(/\d*%/,"".concat(g*(v/100),"px"))}return m.replace(/\d*%/,"".concat(g,"px"))};Ea.reducePercentsInCalc=c;var d=function(m){return typeof m=="number"?m:!m||!m.match(/^\s*\d+(px)?\s*$/)?NaN:Number(m.replace(/px$/,""))};Ea.widthToNumber=d;var f=function(m,g){var b={first:!0,last:!0};return typeof m=="boolean"?b={first:m,last:m}:(0,n.default)(m)==="object"&&(b=l(l({},b),m)),g&&(b={first:b.last,last:b.first}),b};return Ea.parseFirstLastPageButtons=f,Ea}var b0={},q7;function v2e(){if(q7)return b0;q7=1;var e=Cn;Object.defineProperty(b0,"__esModule",{value:!0}),b0.useDoubleClick=n;var t=e(ge);function n(r,l){var i=t.default.useRef(0),o=t.default.useRef(null),a=t.default.useRef(null),s=t.default.useRef(null);t.default.useEffect(function(){a.current=l,s.current=r});var u=function(){clearTimeout(o.current),o.current=null,i.current=0},c=t.default.useCallback(function(d){var f=i.current+1===2,p=o.current;if(p&&f&&(u(),a.current&&a.current(d)),!p){i.current=i.current+1;var m=function(){u(),s.current&&s.current(d)};if(a.current){var g=setTimeout(m,250);o.current=g}else m()}},[]);return c}return b0}var U7;function y2e(){return U7||(U7=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(cf()),l=t(ls),i=t(hc),o=t(df),a=t(pc),s=t(Ir()),u=t(Cl),c=t($a()),d=t(uf()),f=t(ge),p=t(Vr),m=g2e(),g=x(ds()),b=v2e(),v=Db(),h=Yi(),y=["forwardedRef"],w=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(M){if(typeof WeakMap!="function")return null;var O=new WeakMap,D=new WeakMap;return(_=function(E){return E?D:O})(M)}function x(M,O){if(M&&M.__esModule)return M;if(M===null||n(M)!=="object"&&typeof M!="function")return{default:M};var D=_(O);if(D&&D.has(M))return D.get(M);var P={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in M)if(I!=="default"&&Object.prototype.hasOwnProperty.call(M,I)){var A=E?Object.getOwnPropertyDescriptor(M,I):null;A&&(A.get||A.set)?Object.defineProperty(P,I,A):P[I]=M[I]}return P.default=M,D&&D.set(M,P),P}function T(M,O){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(M);O&&(P=P.filter(function(E){return Object.getOwnPropertyDescriptor(M,E).enumerable})),D.push.apply(D,P)}return D}function k(M){for(var O=1;O-1)}).sort(function(Ae,Re){return Ae.tableData.columnOrder-Re.tableData.columnOrder}).map(function(Ae){var Re=D.getFieldValue(D.data,Ae);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Fe){return Fe.tableData.id===Ae.tableData.id}))return f.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:I,localization:P,columnDef:Ae,size:Pe,key:"cell-"+D.data.tableData.id+"-"+Ae.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:H});var Le=Ae.editable!=="never"&&!!D.cellEditable;Le&&D.cellEditable.isCellEditable&&(Le=D.cellEditable.isCellEditable(D.data,Ae));var $e="cell-".concat(D.data.tableData.id,"-").concat(Ae.tableData.id);return f.default.createElement(D.components.Cell,{size:Pe,errorState:D.errorState,columnDef:k({cellStyle:E.cellStyle},Ae),value:Re,key:$e,rowData:D.data,cellEditable:Le,onCellEditStarted:D.onCellEditStarted,scrollWidth:H})});return Te},Pe=g.elementSize(A),Me=W.length*g.baseIconSize(A),ce=function(Te){return f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-actions-column",style:k({width:Me,padding:"0px 5px",boxSizing:"border-box"},E.actionsCellStyle)},f.default.createElement(D.components.Actions,{data:D.data,actions:Te,components:D.components,size:Pe,disabled:D.hasAnyEditingRow}))},we=function(){var Te=E.selectionProps||{};typeof Te=="function"&&(Te=Te(D.data));var Ae=g.selectionMaxWidth(A,D.treeDataMaxLevel)||0,Re=Pe!=="medium"?{padding:"4px"}:void 0;return f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-selection-column",style:{width:Ae}},f.default.createElement(a.default,(0,s.default)({size:Pe,checked:D.data.tableData.checked===!0,onClick:function($e){return $e.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function($e){D.onRowSelected($e,D.path,D.data)},style:Re},Te)))},K=function(Te){return{transform:Te?"rotate(90deg)":"none"}},ne=function(){return E.showDetailPanelIcon?typeof D.detailPanel=="function"?f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-detail-panel-column",style:k({width:42,textAlign:"center"},E.detailPanelColumnStyle)},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,style:k({transition:"all ease 200ms"},K(D.data.tableData.showDetailPanel)),onClick:function(Ae){D.onToggleDetailPanel(D.path,D.detailPanel),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-detail-panel-column"},f.default.createElement("div",{style:k({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},E.detailPanelColumnStyle)},D.detailPanel.map(function(Te,Ae){typeof Te=="function"&&(Te=Te(D.data));var Re=(D.data.tableData.showDetailPanel||"").toString()===Te.render.toString(),Le=f.default.createElement(I.DetailPanel,null),$e=!0;return Re?Te.openIcon?(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.openIcon,iconProps:Te.iconProps}),$e=!1):Te.icon&&(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.icon,iconProps:Te.iconProps})):Te.icon&&(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.icon,iconProps:Te.iconProps}),$e=!1),Le=f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,key:"key-detail-panel-"+Ae,style:k({transition:"all ease 200ms"},K($e&&Re)),disabled:Te.disabled,onClick:function(Be){D.onToggleDetailPanel(D.path,Te.render),Be.stopPropagation()}},Le),Te.tooltip&&(Le=f.default.createElement(i.default,{key:"key-detail-panel-"+Ae,title:Te.tooltip},Le)),Le}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,style:k({transition:"all ease 200ms",marginLeft:D.level*9},K(D.data.tableData.isTreeExpanded)),onClick:function(Ae){D.onTreeExpandChanged(D.path,D.data),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{padding:"none",key:"key-tree-data-column"})},_e=function(Te,Ae){var Re={};return typeof E.rowStyle=="function"?Re=k(k({},Re),E.rowStyle(D.data,Te,Ae,D.hasAnyEditingRow)):E.rowStyle&&(Re=k(k({},Re),E.rowStyle)),(Z||G)&&(Re.cursor="pointer"),D.hasAnyEditingRow&&(Re.opacity=Re.opacity?Re.opacity:.2),Re},ue=Oe();E.selection&&ue.splice(0,0,we());var pe=g.rowActions(D);if(pe.length>0){if(E.actionsColumnIndex===-1)ue.push(ce(pe));else if(E.actionsColumnIndex>=0){var xe=0;E.selection&&(xe=1),ue.splice(E.actionsColumnIndex+xe,0,ce(pe))}}return D.detailPanel&&(E.detailPanelColumnAlignment==="right"?ue.push(ne()):ue.splice(0,0,ne())),D.isTreeData&&ue.splice(0,0,de()),D.columns.filter(function(ye){return ye.tableData.groupOrder>-1}).forEach(function(ye){ue.splice(0,0,f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-group-cell"+ye.tableData.id}))}),f.default.createElement(f.default.Fragment,null,f.default.createElement(l.default,(0,s.default)({ref:O,selected:q},Q,{onClick:function(Te){ee&&Te.persist(),!q&&Se(Te)},hover:!!(Z||G),style:_e(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),f.default.createElement(m.MTableDetailPanel,{options:E,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Pe}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(ye,Te){return ye.tableData.editing?f.default.createElement(D.components.EditRow,{columns:re,components:D.components,data:ye,icons:I,localization:P,getFieldValue:D.getFieldValue,key:Te,mode:ye.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:N,onEditingApproved:R,errorState:D.errorState}):f.default.createElement(D.components.Row,(0,s.default)({},D,{data:ye,index:Te,key:Te,level:D.level+1,path:[].concat((0,r.default)(D.path),[ye.tableData.uuid]),onEditingCanceled:N,onEditingApproved:R,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:Y,errorState:D.errorState,cellEditable:U,onCellEditStarted:V,onCellEditFinished:te}))}))}S.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},S.propTypes={forwardedRef:p.default.element,actions:p.default.array,index:p.default.number.isRequired,data:p.default.object.isRequired,detailPanel:p.default.oneOfType([p.default.func,p.default.arrayOf(p.default.oneOfType([p.default.object,p.default.func]))]),hasAnyEditingRow:p.default.bool,onRowSelected:p.default.func,path:p.default.arrayOf(p.default.oneOfType([p.default.string,p.default.number])),persistEvents:p.default.bool,treeDataMaxLevel:p.default.number,getFieldValue:p.default.func.isRequired,columns:p.default.array,onToggleDetailPanel:p.default.func.isRequired,onRowClick:p.default.func,onRowDoubleClick:p.default.func,onEditingApproved:p.default.func,onEditingCanceled:p.default.func,errorState:p.default.oneOfType([p.default.object,p.default.bool])};var C=f.default.forwardRef(function(O,D){return f.default.createElement(S,(0,s.default)({},O,{forwardedRef:D}))});e.default=C}(w_)),w_}var __={},Ts={};const b2e=Qn(Z0e);var H7;function x2e(){if(H7)return Ts;H7=1;var e=Cn;Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.getCurrencyValue=i,Ts.getEmptyValue=l,Ts.getRenderValue=o,Ts.isoDateRegex=void 0;var t=e(ge),n=e(b2e),r=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;Ts.isoDateRegex=r;function l(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof a=="function"?s.columnDef.emptyValue(s.rowData):a}function i(a,s){return a!==void 0?new Intl.NumberFormat(a.locale!==void 0?a.locale:"en-US",{style:"currency",currency:a.currencyCode!==void 0?a.currencyCode:"USD",minimumFractionDigits:a.minimumFractionDigits!==void 0?a.minimumFractionDigits:2,maximumFractionDigits:a.maximumFractionDigits!==void 0?a.maximumFractionDigits:2}).format(s!==void 0?s:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(s!==void 0?s:0)}function o(a,s,u){var c=a.columnDef.dateSetting&&a.columnDef.dateSetting.locale?a.columnDef.dateSetting.locale:void 0;if(a.columnDef.emptyValue!==void 0&&(a.value===void 0||a.value===null))return l(a.columnDef.emptyValue,a);if(a.rowData===void 0&&a.value&&a.columnDef.groupRender)return a.columnDef.groupRender(a.value);if(a.columnDef.render&&a.rowData)return a.columnDef.render(a.rowData);if(a.columnDef.type==="boolean"){var d={textAlign:"left",verticalAlign:"middle",width:48};return a.value?t.default.createElement(s.Check,{style:d}):t.default.createElement(s.ThirdStateCheck,{style:d})}else{if(a.columnDef.type==="date")return a.value instanceof Date?a.value.toLocaleDateString(c):r.exec(a.value)?(0,n.default)(a.value).toLocaleDateString(c):a.value;if(a.columnDef.type==="time")return a.value instanceof Date?a.value.toLocaleTimeString():r.exec(a.value)?(0,n.default)(a.value).toLocaleTimeString(c):a.value;if(a.columnDef.type==="datetime")return a.value instanceof Date?a.value.toLocaleString():r.exec(a.value)?(0,n.default)(a.value).toLocaleString(c):a.value;if(a.columnDef.type==="currency")return i(a.columnDef.currencySetting,a.value);if(typeof a.value=="boolean")return a.value.toString()}return a.value}return Ts}var ks={},V7;function _b(){if(V7)return ks;V7=1;var e=Cn,t=_a();Object.defineProperty(ks,"__esModule",{value:!0}),ks.getStyle=c,ks.setObjectByKey=ks.selectFromObject=void 0;var n=e($a()),r=i(ds());function l(d){if(typeof WeakMap!="function")return null;var f=new WeakMap,p=new WeakMap;return(l=function(g){return g?p:f})(d)}function i(d,f){if(d&&d.__esModule)return d;if(d===null||t(d)!=="object"&&typeof d!="function")return{default:d};var p=l(f);if(p&&p.has(d))return p.get(d);var m={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in d)if(b!=="default"&&Object.prototype.hasOwnProperty.call(d,b)){var v=g?Object.getOwnPropertyDescriptor(d,b):null;v&&(v.get||v.set)?Object.defineProperty(m,b,v):m[b]=d[b]}return m.default=d,p&&p.set(d,m),m}function o(d,f){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);f&&(m=m.filter(function(g){return Object.getOwnPropertyDescriptor(d,g).enumerable})),p.push.apply(p,m)}return p}function a(d){for(var f=1;f-1)}).sort(function(H,Z){return H.tableData.columnOrder-Z.tableData.columnOrder}).map(function(H,Z){var G=k.getFieldValue(D.data,H,!1),X=function(Oe,Pe){var Me={color:"inherit"};return typeof Oe.cellStyle=="function"?Me=_(_({},Me),Oe.cellStyle(Pe,k.data)):Me=_(_({},Me),Oe.cellStyle),Oe.disableClick&&(Me.cursor="default"),_({},Me)};Z===0&&24+k.level*20;var Q=!1;if(H.editable===void 0&&(Q=!0),H.editable==="always"&&(Q=!0),H.editable==="onAdd"&&k.mode==="add"&&(Q=!0),H.editable==="onUpdate"&&k.mode==="update"&&(Q=!0),typeof H.editable=="function"&&(Q=H.editable(H,k.data)),!H.field||!Q){var re=k.getFieldValue(D.data,H);return a.default.createElement(k.components.Cell,{size:V,icons:S,columnDef:H,value:re,key:H.tableData.id,rowData:k.data,style:X(H,G)})}else{var ae=H.editComponent,ie=(0,l.default)(H,b),se=ae||k.components.EditField,he=(0,g.validateInput)(H,D.data);return te===-1&&(te=Z),a.default.createElement(s.default,{size:V,key:H.tableData.id,align:["numeric"].indexOf(H.type)!==-1?"right":"left",style:X(H,G)},a.default.createElement(se,{key:H.tableData.id,columnDef:ie,autoFocus:te===Z,value:G,error:!he.isValid,helperText:he.helperText,locale:k.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Oe){var Pe=_({},D.data);(0,f.setObjectByKey)(Pe,H.field,Oe),P({data:Pe}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Pe)},onRowDataChange:function(Oe){P({data:Oe}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Oe)}}))}});return ee}var I=k.columns.every(function(V){var te=(0,g.validateInput)(V,D.data);return te.isValid}),A=function(){I&&k.onEditingApproved(k.mode,D.data,k.data)};function F(){if(k.mode!=="bulk"){var V=m.elementSize(k),te=[{icon:S.Check,tooltip:k.localization.saveTooltip,disabled:!I,onClick:A},{icon:S.Clear,tooltip:k.localization.cancelTooltip,onClick:function(){k.onEditingCanceled(k.mode,k.data)}}];return a.default.createElement(s.default,{size:V,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},C.editCellStyle)},a.default.createElement(k.components.Actions,{data:k.data,actions:te,components:k.components,size:V}))}}function j(){var V={borderBottom:"1px solid red"};return V}var z=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?A():te.keyCode===27&&k.onEditingCanceled(k.mode,k.data)},B=m.elementSize(k),N;if(k.mode==="add"||k.mode==="update"||k.mode==="bulk")N=E();else{var R=k.columns.filter(function(V){return!V.hidden&&!(V.tableData.groupOrder>-1)}).length;N=[a.default.createElement(s.default,{size:B,padding:C.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:R},a.default.createElement(c.default,{variant:"h6"},k.localization.deleteText))]}if(C.selection&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-selection-cell"})),k.isTreeData&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-tree-data-cell"})),C.actionsColumnIndex===-1)N.push(F());else if(C.actionsColumnIndex>=0){var q=0;C.selection&&(q=1),k.isTreeData&&(q=1,C.selection&&N.splice(1,1)),N.splice(C.actionsColumnIndex+q,0,F())}if(k.detailPanel&&C.showDetailPanelIcon!==!1&&k.mode!=="bulk"){var Y=C.detailPanelColumnAlignment,L=Y==="left"?0:N.length;N.splice(L,0,a.default.createElement(s.default,{padding:"none",key:"key-detail-panel-cell"}))}k.columns.filter(function(V){return V.tableData.groupOrder>-1}).forEach(function(V){N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-group-cell"+V.tableData.id}))}),k.detailPanel,k.isTreeData,k.onRowClick,k.onRowSelected,k.onTreeExpandChanged,k.onToggleDetailPanel,k.onEditingApproved,k.onEditingCanceled,k.getFieldValue,k.components,k.columns,k.errorState,k.onBulkEditRowChanged,k.bulkEditChangedRows,k.scrollWidth;var W=k.forwardedRef,U=(0,l.default)(k,v);return a.default.createElement(u.default,(0,r.default)({onKeyDown:z},U,{ref:W,style:j()}),N)}x.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},x.propTypes={actions:d.default.array,index:d.default.number.isRequired,data:d.default.object,detailPanel:d.default.oneOfType([d.default.func,d.default.arrayOf(d.default.oneOfType([d.default.object,d.default.func]))]),onRowSelected:d.default.func,path:d.default.arrayOf(d.default.number),columns:d.default.array,onRowClick:d.default.func,onEditingApproved:d.default.func,onEditingCanceled:d.default.func,localization:d.default.object,getFieldValue:d.default.func,errorState:d.default.oneOfType([d.default.object,d.default.bool]),onBulkEditRowChanged:d.default.func};var T=a.default.forwardRef(function(S,C){return a.default.createElement(x,(0,r.default)({},S,{forwardedRef:C}))});e.default=T}(k_)),k_}var S_={},C_={},pu={},K7;function h5(){if(K7)return pu;K7=1;var e=Cn;Object.defineProperty(pu,"__esModule",{value:!0}),pu.getLocalizedFilterPlaceHolder=pu.getLocalizationData=void 0;var t=e($a()),n=MW();function r(a,s){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);s&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),u.push.apply(u,c)}return u}function l(a){for(var s=1;s-1}),d.default.createElement(a.default,{primary:_.lookup[D]}))})))}var y=d.default.forwardRef(function(_,x){return d.default.createElement(h,(0,r.default)({},_,{forwardedRef:x}))});e.default=y}(M_)),M_}var P_={};const CW=Qn(Due);var J7;function P2e(){return J7||(J7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(pb),l=t(CW),i=t(hc),o=t(ge),a=h5();function s(c){var d,f,p=c.columnDef,m=c.icons,g=c.localization,b=c.hideFilterIcons,v=c.onFilterChanged,h=c.forwardedRef,y=(0,a.getLocalizationData)(g),w=m.Filter;return o.default.createElement(r.default,{ref:h,style:p.type==="numeric"?{float:(d=p.align)!==null&&d!==void 0?d:"right"}:{float:(f=p.align)!==null&&f!==void 0?f:"left"},type:p.type==="numeric"?"number":"search",value:p.tableData.filterValue||"",placeholder:(0,a.getLocalizedFilterPlaceHolder)(p,g),onChange:function(x){v(p.tableData.id,x.target.value)},inputProps:{"aria-label":"filter data by ".concat(p.title)},InputProps:b||p.hideFilterIcon?void 0:{startAdornment:o.default.createElement(l.default,{position:"start"},o.default.createElement(i.default,{title:y.filterTooltip},o.default.createElement(w,null)))}})}var u=o.default.forwardRef(function(d,f){return o.default.createElement(s,(0,n.default)({},d,{forwardedRef:f}))});e.default=u}(P_)),P_}var O_={},eE;function O2e(){return eE||(eE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(pc),l=t(ge);function i(a){var s=a.forwardedRef,u=a.columnDef,c=a.onFilterChanged;return l.default.createElement(r.default,{ref:s,inputProps:{"aria-label":"Filter of ".concat(u.title)},indeterminate:u.tableData.filterValue===void 0,checked:u.tableData.filterValue==="checked",onChange:function(){var f;u.tableData.filterValue===void 0?f="checked":u.tableData.filterValue==="checked"&&(f="unchecked"),c(u.tableData.id,f)}})}var o=l.default.forwardRef(function(s,u){return l.default.createElement(i,(0,n.default)({},s,{forwardedRef:u}))});e.default=o}(O_)),O_}var A_={},tE;function A2e(){return tE||(tE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=o(ge);function i(u){if(typeof WeakMap!="function")return null;var c=new WeakMap,d=new WeakMap;return(i=function(p){return p?d:c})(u)}function o(u,c){if(u&&u.__esModule)return u;if(u===null||n(u)!=="object"&&typeof u!="function")return{default:u};var d=i(c);if(d&&d.has(u))return d.get(u);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in u)if(m!=="default"&&Object.prototype.hasOwnProperty.call(u,m)){var g=p?Object.getOwnPropertyDescriptor(u,m):null;g&&(g.get||g.set)?Object.defineProperty(f,m,g):f[m]=u[m]}return f.default=u,d&&d.set(u,f),f}function a(u){var c=u.columnDef,d=u.onFilterChanged,f=u.forwardedRef;return(0,l.createElement)(c.filterComponent,{columnDef:c,onFilterChanged:d,forwardedRef:f})}var s=l.default.forwardRef(function(c,d){return l.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(A_)),A_}var nE;function MW(){return nE||(nE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=b,e.default=void 0;var n=t(ls),r=t(Cl),l=t($a()),i=t(Ir()),o=t(ge),a=t(Vr),s=t(k2e()),u=t(M2e()),c=t(P2e()),d=t(O2e()),f=t(A2e()),p=eg();function m(h,y){var w=Object.keys(h);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(h);y&&(_=_.filter(function(x){return Object.getOwnPropertyDescriptor(h,x).enumerable})),w.push.apply(w,_)}return w}function g(h){for(var y=1;y-1)}).sort(function(k,S){return k.tableData.columnOrder-S.tableData.columnOrder}).map(function(k){return o.default.createElement(r.default,{key:k.tableData.id,style:g(g({},y.filterCellStyle),k.filterCellStyle)},w(k))});if(y.selection&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-selection-column"})),h.hasActions)if(y.actionsColumnIndex===-1)_.push(o.default.createElement(r.default,{key:"key-action-column"}));else{var x=0;h.selection&&(x=1),_.splice(y.actionsColumnIndex+x,0,o.default.createElement(r.default,{key:"key-action-column"}))}if(h.hasDetailPanel&&y.showDetailPanelIcon){var T=y.detailPanelColumnAlignment==="left"?0:_.length;_.splice(T,0,o.default.createElement(r.default,{padding:"none",key:"key-detail-panel-column"}))}return h.isTreeData>0&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-tree-data-filter"})),h.columns.filter(function(k){return k.tableData.groupOrder>-1}).forEach(function(k){_.splice(0,0,o.default.createElement(r.default,{padding:"checkbox",key:"key-group-filter"+k.tableData.id}))}),o.default.createElement(n.default,{id:"m--table--filter--row",ref:h.forwardedRef,style:g({height:10},y.filterRowStyle)},_)}b.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},b.propTypes={columns:a.default.array.isRequired,hasDetailPanel:a.default.bool.isRequired,isTreeData:a.default.bool.isRequired,onFilterChanged:a.default.func.isRequired,hasActions:a.default.bool,localization:a.default.object};var v=o.default.forwardRef(function(y,w){return o.default.createElement(b,(0,i.default)({},y,{forwardedRef:w}))});e.default=v}(S_)),S_}var D_={};const PW=Qn(Mfe),D2e=Qn(kie);function rE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function aE(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Mo(1));return n(OW)(e,t)}if(typeof e!="function")throw new Error(Mo(2));var l=e,i=t,o=[],a=o,s=!1;function u(){a===o&&(a=o.slice())}function c(){if(s)throw new Error(Mo(3));return i}function d(g){if(typeof g!="function")throw new Error(Mo(4));if(s)throw new Error(Mo(5));var b=!0;return u(),a.push(g),function(){if(b){if(s)throw new Error(Mo(6));b=!1,u();var h=a.indexOf(g);a.splice(h,1),o=null}}}function f(g){if(!E2e(g))throw new Error(Mo(7));if(typeof g.type>"u")throw new Error(Mo(8));if(s)throw new Error(Mo(9));try{s=!0,i=l(i,g)}finally{s=!1}for(var b=o=a,v=0;vDW=e,$2e=()=>DW,uE=Symbol.for("react-redux-context"),cE=typeof globalThis<"u"?globalThis:{};function N2e(){var e;if(!ge.createContext)return{};const t=(e=cE[uE])!=null?e:cE[uE]=new Map;let n=t.get(ge.createContext);return n||(n=ge.createContext(null),t.set(ge.createContext,n)),n}const EW=N2e(),F2e=()=>{throw new Error("uSES not initialized!")},j2e=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function z2e(e,t,n,r,{areStatesEqual:l,areOwnPropsEqual:i,areStatePropsEqual:o}){let a=!1,s,u,c,d,f;function p(h,y){return s=h,u=y,c=e(s,u),d=t(r,u),f=n(c,d,u),a=!0,f}function m(){return c=e(s,u),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function g(){return e.dependsOnOwnProps&&(c=e(s,u)),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function b(){const h=e(s,u),y=!o(h,c);return c=h,y&&(f=n(c,d,u)),f}function v(h,y){const w=!i(y,u),_=!l(h,s,y,u);return s=h,u=y,w&&_?m():w?g():_?b():f}return function(y,w){return a?v(y,w):p(y,w)}}function B2e(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:l}=t,i=Kt(t,j2e);const o=n(e,i),a=r(e,i),s=l(e,i);return z2e(o,a,s,e,i)}function W2e(e,t){const n={};for(const r in e){const l=e[r];typeof l=="function"&&(n[r]=(...i)=>t(l(...i)))}return n}function fk(e){return function(n){const r=e(n);function l(){return r}return l.dependsOnOwnProps=!1,l}}function dE(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function RW(e,t){return function(r,{displayName:l}){const i=function(a,s){return i.dependsOnOwnProps?i.mapToProps(a,s):i.mapToProps(a,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(a,s){i.mapToProps=e,i.dependsOnOwnProps=dE(e);let u=i(a,s);return typeof u=="function"&&(i.mapToProps=u,i.dependsOnOwnProps=dE(u),u=i(a,s)),u},i}}function m5(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function q2e(e){return e&&typeof e=="object"?fk(t=>W2e(e,t)):e?typeof e=="function"?RW(e):m5(e,"mapDispatchToProps"):fk(t=>({dispatch:t}))}function U2e(e){return e?typeof e=="function"?RW(e):m5(e,"mapStateToProps"):fk(()=>({}))}function H2e(e,t,n){return Ie({},n,e,t)}function V2e(e){return function(n,{displayName:r,areMergedPropsEqual:l}){let i=!1,o;return function(s,u,c){const d=e(s,u,c);return i?l(d,o)||(o=d):(i=!0,o=d),o}}}function G2e(e){return e?typeof e=="function"?V2e(e):m5(e,"mergeProps"):()=>H2e}function Y2e(){const e=$2e();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],l=t;for(;l;)r.push(l),l=l.next;return r},subscribe(r){let l=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!l||t===null||(l=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const fE={notify(){},get:()=>[]};function LW(e,t){let n,r=fE,l=0,i=!1;function o(g){c();const b=r.subscribe(g);let v=!1;return()=>{v||(v=!0,b(),d())}}function a(){r.notify()}function s(){m.onStateChange&&m.onStateChange()}function u(){return i}function c(){l++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=Y2e())}function d(){l--,n&&l===0&&(n(),n=void 0,r.clear(),r=fE)}function f(){i||(i=!0,c())}function p(){i&&(i=!1,d())}const m={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:u,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}const X2e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cy=X2e?ge.useLayoutEffect:ge.useEffect;function pE(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function R_(e,t){if(pE(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let l=0;l{IW=e},Q2e=[null,null];function J2e(e,t,n){cy(()=>e(...t),n)}function ewe(e,t,n,r,l,i){e.current=r,n.current=!1,l.current&&(l.current=null,i())}function twe(e,t,n,r,l,i,o,a,s,u,c){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!a.current)return;const g=t.getState();let b,v;try{b=r(g,l.current)}catch(h){v=h,f=h}v||(f=null),b===i.current?o.current||u():(i.current=b,s.current=b,o.current=!0,c())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function nwe(e,t){return e===t}function $W(e,t,n,{pure:r,areStatesEqual:l=nwe,areOwnPropsEqual:i=R_,areStatePropsEqual:o=R_,areMergedPropsEqual:a=R_,forwardRef:s=!1,context:u=EW}={}){const c=u,d=U2e(e),f=q2e(t),p=G2e(n),m=!!e;return b=>{const v=b.displayName||b.name||"Component",h=`Connect(${v})`,y={shouldHandleStateChanges:m,displayName:h,wrappedComponentName:v,WrappedComponent:b,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:l,areStatePropsEqual:o,areOwnPropsEqual:i,areMergedPropsEqual:a};function w(T){const[k,S,C]=ge.useMemo(()=>{const{reactReduxForwardedRef:H}=T,Z=Kt(T,K2e);return[T.context,H,Z]},[T]),M=ge.useMemo(()=>k&&k.Consumer&&uJ.isContextConsumer(ge.createElement(k.Consumer,null))?k:c,[k,c]),O=ge.useContext(M),D=!!T.store&&!!T.store.getState&&!!T.store.dispatch,P=!!O&&!!O.store,E=D?T.store:O.store,I=P?O.getServerState:E.getState,A=ge.useMemo(()=>B2e(E.dispatch,y),[E]),[F,j]=ge.useMemo(()=>{if(!m)return Q2e;const H=LW(E,D?void 0:O.subscription),Z=H.notifyNestedSubs.bind(H);return[H,Z]},[E,D,O]),z=ge.useMemo(()=>D?O:Ie({},O,{subscription:F}),[D,O,F]),B=ge.useRef(),N=ge.useRef(C),R=ge.useRef(),q=ge.useRef(!1);ge.useRef(!1);const Y=ge.useRef(!1),L=ge.useRef();cy(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const W=ge.useMemo(()=>()=>R.current&&C===N.current?R.current:A(E.getState(),C),[E,C]),U=ge.useMemo(()=>Z=>F?twe(m,E,F,A,N,B,q,Y,R,j,Z):()=>{},[F]);J2e(ewe,[N,B,q,C,R,j]);let V;try{V=IW(U,W,I?()=>A(I(),C):W)}catch(H){throw L.current&&(H.message+=` The error may be correlated with this previous error: ${L.current.stack} -`),H}dy(()=>{L.current=void 0,R.current=void 0,B.current=V});const te=ge.useMemo(()=>ge.createElement(b,Ie({},V,{ref:S})),[S,b,V]);return ge.useMemo(()=>m?ge.createElement(M.Provider,{value:z},te):te,[M,te,z])}const x=ge.memo(w);if(x.WrappedComponent=b,x.displayName=w.displayName=h,s){const k=ge.forwardRef(function(C,M){return ge.createElement(x,Ie({},C,{reactReduxForwardedRef:M}))});return k.displayName=h,k.WrappedComponent=b,xA(k,b)}return xA(x,b)}}function iwe({store:e,context:t,children:n,serverState:r,stabilityCheck:l="once",noopCheck:i="once"}){const o=ge.useMemo(()=>{const u=IW(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:l,noopCheck:i}},[e,r,l,i]),a=ge.useMemo(()=>e.getState(),[e]);dy(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,a]);const s=t||RW;return ge.createElement(s.Provider,{value:o},n)}ewe(nB.useSyncExternalStore);F2e(dc.unstable_batchedUpdates);function lwe(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const i=mwe(n,l.options);return e.addEventListener(l.eventName,l.fn,i),function(){e.removeEventListener(l.eventName,l.fn,i)}});return function(){r.forEach(i=>{i()})}}const gwe="Invariant failed";class hy extends Error{}hy.prototype.toString=function(){return this.message};function bn(e,t){throw new hy(gwe)}class vwe extends Qe.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=qs,this.onWindowError=t=>{const n=this.getCallbacks();n.isDragging()&&n.tryAbort(),t.error instanceof hy&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=vi(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof hy){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const ywe=` +`),H}cy(()=>{L.current=void 0,R.current=void 0,B.current=V});const te=ge.useMemo(()=>ge.createElement(b,Ie({},V,{ref:S})),[S,b,V]);return ge.useMemo(()=>m?ge.createElement(M.Provider,{value:z},te):te,[M,te,z])}const x=ge.memo(w);if(x.WrappedComponent=b,x.displayName=w.displayName=h,s){const k=ge.forwardRef(function(C,M){return ge.createElement(x,Ie({},C,{reactReduxForwardedRef:M}))});return k.displayName=h,k.WrappedComponent=b,xA(k,b)}return xA(x,b)}}function rwe({store:e,context:t,children:n,serverState:r,stabilityCheck:l="once",noopCheck:i="once"}){const o=ge.useMemo(()=>{const u=LW(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:l,noopCheck:i}},[e,r,l,i]),a=ge.useMemo(()=>e.getState(),[e]);cy(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,a]);const s=t||EW;return ge.createElement(s.Provider,{value:o},n)}Z2e(tB.useSyncExternalStore);I2e(cc.unstable_batchedUpdates);function awe(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const i=fwe(n,l.options);return e.addEventListener(l.eventName,l.fn,i),function(){e.removeEventListener(l.eventName,l.fn,i)}});return function(){r.forEach(i=>{i()})}}const pwe="Invariant failed";class py extends Error{}py.prototype.toString=function(){return this.message};function bn(e,t){throw new py(pwe)}class hwe extends Qe.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=qs,this.onWindowError=t=>{const n=this.getCallbacks();n.isDragging()&&n.tryAbort(),t.error instanceof py&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=vi(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof py){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const mwe=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key -`,my=e=>e+1,bwe=e=>` - You have lifted an item in position ${my(e.source.index)} -`,WW=(e,t)=>{const n=e.droppableId===t.droppableId,r=my(e.index),l=my(t.index);return n?` +`,hy=e=>e+1,gwe=e=>` + You have lifted an item in position ${hy(e.source.index)} +`,BW=(e,t)=>{const n=e.droppableId===t.droppableId,r=hy(e.index),l=hy(t.index);return n?` You have moved the item from position ${r} to position ${l} `:` @@ -496,38 +496,38 @@ ${L.current.stack} in list ${e.droppableId} to list ${t.droppableId} in position ${l} - `},qW=(e,t,n)=>t.droppableId===n.droppableId?` + `},WW=(e,t,n)=>t.droppableId===n.droppableId?` The item ${e} has been combined with ${n.draggableId}`:` The item ${e} in list ${t.droppableId} has been combined with ${n.draggableId} in list ${n.droppableId} - `,xwe=e=>{const t=e.destination;if(t)return WW(e.source,t);const n=e.combine;return n?qW(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},gE=e=>` + `,vwe=e=>{const t=e.destination;if(t)return BW(e.source,t);const n=e.combine;return n?WW(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},gE=e=>` The item has returned to its starting position - of ${my(e.index)} -`,wwe=e=>{if(e.reason==="CANCEL")return` + of ${hy(e.index)} +`,ywe=e=>{if(e.reason==="CANCEL")return` Movement cancelled. ${gE(e.source)} `;const t=e.destination,n=e.combine;return t?` You have dropped the item. - ${WW(e.source,t)} + ${BW(e.source,t)} `:n?` You have dropped the item. - ${qW(e.draggableId,e.source,n)} + ${WW(e.draggableId,e.source,n)} `:` The item has been dropped while not over a drop area. ${gE(e.source)} - `},_we={dragHandleUsageInstructions:ywe,onDragStart:bwe,onDragUpdate:xwe,onDragEnd:wwe};var ov=_we;const za={x:0,y:0},Ja=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Go=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Us=(e,t)=>e.x===t.x&&e.y===t.y,pf=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Zu=function(e,t,n){return n===void 0&&(n=0),e==="x"?{x:t,y:n}:{x:n,y:t}},ym=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),vE=(e,t)=>Math.min(...t.map(n=>ym(e,n))),UW=e=>t=>({x:e(t.x),y:e(t.y)});var Twe=(e,t)=>{const n=zi({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n};const lg=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),yE=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],kwe={top:0,right:0,bottom:0,left:0},Swe=(e,t)=>t?lg(e,t.scroll.diff.displacement):e,Cwe=(e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e,Mwe=(e,t)=>t&&t.shouldClipSubject?Twe(t.pageMarginBox,e):zi(e);var Vd=e=>{let{page:t,withPlaceholder:n,axis:r,frame:l}=e;const i=Swe(t.marginBox,l),o=Cwe(i,r,n),a=Mwe(o,l);return{page:t,withPlaceholder:n,active:a}},y5=(e,t)=>{e.frame||bn();const n=e.frame,r=Go(t,n.scroll.initial),l=pf(r),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:l},max:n.scroll.max}},o=Vd({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:o}};const HW=ja(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),VW=ja(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),Sb=ja(e=>Object.values(e)),Pwe=ja(e=>Object.values(e));var hf=ja((e,t)=>Pwe(t).filter(r=>e===r.descriptor.droppableId).sort((r,l)=>r.descriptor.index-l.descriptor.index));function b5(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Cb(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Mb=ja((e,t)=>t.filter(n=>n.descriptor.id!==e.descriptor.id)),Owe=e=>{let{isMovingForward:t,draggable:n,destination:r,insideDestination:l,previousImpact:i}=e;if(!r.isCombineEnabled||!b5(i))return null;function a(m){const g={type:"COMBINE",combine:{draggableId:m,droppableId:r.descriptor.id}};return{...i,at:g}}const s=i.displaced.all,u=s.length?s[0]:null;if(t)return u?a(u):null;const c=Mb(n,l);if(!u){if(!c.length)return null;const m=c[c.length-1];return a(m.descriptor.id)}const d=c.findIndex(m=>m.descriptor.id===u);d===-1&&bn();const f=d-1;if(f<0)return null;const p=c[f];return a(p.descriptor.id)},mf=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const GW={point:za,value:0},bm={invisible:{},visible:{},all:[]},Awe={displaced:bm,displacedBy:GW,at:null};var Dwe=Awe,wi=(e,t)=>n=>e<=n&&n<=t,YW=e=>{const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;const s=r.tope.bottom,u=r.lefte.right;return s&&u?!0:s&&o||u&&i}},Ewe=e=>{const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return r=>t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right)};const x5={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},XW={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var Rwe=e=>t=>{const n=wi(t.top,t.bottom),r=wi(t.left,t.right);return l=>e===x5?n(l.top)&&n(l.bottom):r(l.left)&&r(l.right)};const Lwe=(e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:za;return lg(e,n)},Iwe=(e,t,n)=>t.subject.active?n(t.subject.active)(e):!1,$we=(e,t,n)=>n(t)(e),w5=e=>{let{target:t,destination:n,viewport:r,withDroppableDisplacement:l,isVisibleThroughFrameFn:i}=e;const o=l?Lwe(t,n):t;return Iwe(o,n,i)&&$we(o,r,i)},Nwe=e=>w5({...e,isVisibleThroughFrameFn:YW}),KW=e=>w5({...e,isVisibleThroughFrameFn:Ewe}),Fwe=e=>w5({...e,isVisibleThroughFrameFn:Rwe(e.destination.axis)}),jwe=(e,t,n)=>{if(typeof n=="boolean")return n;if(!t)return!0;const{invisible:r,visible:l}=t;if(r[e])return!1;const i=l[e];return i?i.shouldAnimate:!0};function zwe(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return zi(g5(n,r))}function xm(e){let{afterDragging:t,destination:n,displacedBy:r,viewport:l,forceShouldAnimate:i,last:o}=e;return t.reduce(function(s,u){const c=zwe(u,r),d=u.descriptor.id;if(s.all.push(d),!Nwe({target:c,destination:n,viewport:l,withDroppableDisplacement:!0}))return s.invisible[u.descriptor.id]=!0,s;const p=jwe(d,o,i),m={draggableId:d,shouldAnimate:p};return s.visible[d]=m,s},{all:[],visible:{},invisible:{}})}function Bwe(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function bE(e){let{insideDestination:t,inHomeList:n,displacedBy:r,destination:l}=e;const i=Bwe(t,{inHomeList:n});return{displaced:bm,displacedBy:r,at:{type:"REORDER",destination:{droppableId:l.descriptor.id,index:i}}}}function gy(e){let{draggable:t,insideDestination:n,destination:r,viewport:l,displacedBy:i,last:o,index:a,forceShouldAnimate:s}=e;const u=mf(t,r);if(a==null)return bE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const c=n.find(g=>g.descriptor.index===a);if(!c)return bE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const d=Mb(t,n),f=n.indexOf(c),p=d.slice(f);return{displaced:xm({afterDragging:p,destination:r,displacedBy:i,last:o,viewport:l.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function Xs(e,t){return!!t.effected[e]}var Wwe=e=>{let{isMovingForward:t,destination:n,draggables:r,combine:l,afterCritical:i}=e;if(!n.isCombineEnabled)return null;const o=l.draggableId,s=r[o].descriptor.index;return Xs(o,i)?t?s:s-1:t?s+1:s},qwe=e=>{let{isMovingForward:t,isInHomeList:n,insideDestination:r,location:l}=e;if(!r.length)return null;const i=l.index,o=t?i+1:i-1,a=r[0].descriptor.index,s=r[r.length-1].descriptor.index,u=n?s:s+1;return ou?null:o},Uwe=e=>{let{isMovingForward:t,isInHomeList:n,draggable:r,draggables:l,destination:i,insideDestination:o,previousImpact:a,viewport:s,afterCritical:u}=e;const c=a.at;if(c||bn(),c.type==="REORDER"){const f=qwe({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:o});return f==null?null:gy({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:f})}const d=Wwe({isMovingForward:t,destination:i,displaced:a.displaced,draggables:l,combine:c.combine,afterCritical:u});return d==null?null:gy({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:d})},Hwe=e=>{let{displaced:t,afterCritical:n,combineWith:r,displacedBy:l}=e;const i=!!(t.visible[r]||t.invisible[r]);return Xs(r,n)?i?za:pf(l.point):i?l.point:za},Vwe=e=>{let{afterCritical:t,impact:n,draggables:r}=e;const l=Cb(n);l||bn();const i=l.draggableId,o=r[i].page.borderBox.center,a=Hwe({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Ja(o,a)};const ZW=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,Gwe=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,_5=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,xE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return Zu(t.line,n.marginBox[t.end]+ZW(t,r),_5(t,n.marginBox,r))},wE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return Zu(t.line,n.marginBox[t.start]-Gwe(t,r),_5(t,n.marginBox,r))},Ywe=e=>{let{axis:t,moveInto:n,isMoving:r}=e;return Zu(t.line,n.contentBox[t.start]+ZW(t,r),_5(t,n.contentBox,r))};var Xwe=e=>{let{impact:t,draggable:n,draggables:r,droppable:l,afterCritical:i}=e;const o=hf(l.descriptor.id,r),a=n.page,s=l.axis;if(!o.length)return Ywe({axis:s,moveInto:l.page,isMoving:a});const{displaced:u,displacedBy:c}=t,d=u.all[0];if(d){const p=r[d];if(Xs(d,i))return wE({axis:s,moveRelativeTo:p.page,isMoving:a});const m=fy(p.page,c.point);return wE({axis:s,moveRelativeTo:m,isMoving:a})}const f=o[o.length-1];if(f.descriptor.id===n.descriptor.id)return a.borderBox.center;if(Xs(f.descriptor.id,i)){const p=fy(f.page,pf(i.displacedBy.point));return xE({axis:s,moveRelativeTo:p,isMoving:a})}return xE({axis:s,moveRelativeTo:f.page,isMoving:a})},hk=(e,t)=>{const n=e.frame;return n?Ja(t,n.scroll.diff.displacement):t};const Kwe=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,afterCritical:i}=e;const o=n.page.borderBox.center,a=t.at;return!r||!a?o:a.type==="REORDER"?Xwe({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:i}):Vwe({impact:t,draggables:l,afterCritical:i})};var Pb=e=>{const t=Kwe(e),n=e.droppable;return n?hk(n,t):t},QW=(e,t)=>{const n=Go(t,e.scroll.initial),r=pf(n);return{frame:zi({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function _E(e,t){return e.map(n=>t[n])}function Zwe(e,t){for(let n=0;n{let{impact:t,viewport:n,destination:r,draggables:l,maxScrollChange:i}=e;const o=QW(n,Ja(n.scroll.current,i)),a=r.frame?y5(r,Ja(r.frame.scroll.current,i)):r,s=t.displaced,u=xm({afterDragging:_E(s.all,l),destination:r,displacedBy:t.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),c=xm({afterDragging:_E(s.all,l),destination:a,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,u,c];return s.all.forEach(g=>{const b=Zwe(g,p);if(b){f[g]=b;return}d[g]=!0}),{...t,displaced:{all:s.all,invisible:d,visible:f}}},Jwe=(e,t)=>Ja(e.scroll.diff.displacement,t),T5=e=>{let{pageBorderBoxCenter:t,draggable:n,viewport:r}=e;const l=Jwe(r,t),i=Go(l,n.page.borderBox.center);return Ja(n.client.borderBox.center,i)},JW=e=>{let{draggable:t,destination:n,newPageBorderBoxCenter:r,viewport:l,withDroppableDisplacement:i,onlyOnMainAxis:o=!1}=e;const a=Go(r,t.page.borderBox.center),u={target:lg(t.page.borderBox,a),destination:n,withDroppableDisplacement:i,viewport:l};return o?Fwe(u):KW(u)},e_e=e=>{let{isMovingForward:t,draggable:n,destination:r,draggables:l,previousImpact:i,viewport:o,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:u}=e;if(!r.isEnabled)return null;const c=hf(r.descriptor.id,l),d=mf(n,r),f=Owe({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||Uwe({isMovingForward:t,isInHomeList:d,draggable:n,draggables:l,destination:r,insideDestination:c,previousImpact:i,viewport:o,afterCritical:u});if(!f)return null;const p=Pb({impact:f,draggable:n,droppable:r,draggables:l,afterCritical:u});if(JW({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:T5({pageBorderBoxCenter:p,draggable:n,viewport:o}),impact:f,scrollJumpRequest:null};const g=Go(p,a),b=Qwe({impact:f,viewport:o,destination:r,draggables:l,maxScrollChange:g});return{clientSelection:s,impact:b,scrollJumpRequest:g}};const go=e=>{const t=e.subject.active;return t||bn(),t};var t_e=e=>{let{isMovingForward:t,pageBorderBoxCenter:n,source:r,droppables:l,viewport:i}=e;const o=r.subject.active;if(!o)return null;const a=r.axis,s=wi(o[a.start],o[a.end]),u=Sb(l).filter(d=>d!==r).filter(d=>d.isEnabled).filter(d=>!!d.subject.active).filter(d=>YW(i.frame)(go(d))).filter(d=>{const f=go(d);return t?o[a.crossAxisEnd]{const f=go(d),p=wi(f[a.start],f[a.end]);return s(f[a.start])||s(f[a.end])||p(o[a.start])||p(o[a.end])}).sort((d,f)=>{const p=go(d)[a.crossAxisStart],m=go(f)[a.crossAxisStart];return t?p-m:m-p}).filter((d,f,p)=>go(d)[a.crossAxisStart]===go(p[0])[a.crossAxisStart]);if(!u.length)return null;if(u.length===1)return u[0];const c=u.filter(d=>wi(go(d)[a.start],go(d)[a.end])(n[a.line]));return c.length===1?c[0]:c.length>1?c.sort((d,f)=>go(d)[a.start]-go(f)[a.start])[0]:u.sort((d,f)=>{const p=vE(n,yE(go(d))),m=vE(n,yE(go(f)));return p!==m?p-m:go(d)[a.start]-go(f)[a.start]})[0]};const TE=(e,t)=>{const n=e.page.borderBox.center;return Xs(e.descriptor.id,t)?Go(n,t.displacedBy.point):n},n_e=(e,t)=>{const n=e.page.borderBox;return Xs(e.descriptor.id,t)?lg(n,pf(t.displacedBy.point)):n};var r_e=e=>{let{pageBorderBoxCenter:t,viewport:n,destination:r,insideDestination:l,afterCritical:i}=e;return l.filter(a=>KW({target:n_e(a,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})).sort((a,s)=>{const u=ym(t,hk(r,TE(a,i))),c=ym(t,hk(r,TE(s,i)));return u{const r=e.axis;if(e.descriptor.mode==="virtual")return Zu(r.line,t[r.line]);const l=e.subject.page.contentBox[r.size],s=hf(e.descriptor.id,n).reduce((u,c)=>u+c.client.marginBox[r.size],0)+t[r.line]-l;return s<=0?null:Zu(r.line,s)},eq=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),tq=(e,t,n)=>{const r=e.frame;mf(t,e)&&bn(),e.subject.withPlaceholder&&bn();const l=sg(e.axis,t.displaceBy).point,i=a_e(e,l,n),o={placeholderSize:l,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const c=Vd({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return{...e,subject:c}}const a=i?Ja(r.scroll.max,i):r.scroll.max,s=eq(r,a),u=Vd({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:s});return{...e,subject:u,frame:s}},o_e=e=>{const t=e.subject.withPlaceholder;t||bn();const n=e.frame;if(!n){const o=Vd({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:o}}const r=t.oldFrameMaxScroll;r||bn();const l=eq(n,r),i=Vd({page:e.subject.page,axis:e.axis,frame:l,withPlaceholder:null});return{...e,subject:i,frame:l}};var i_e=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:n,insideDestination:r,draggable:l,draggables:i,destination:o,viewport:a,afterCritical:s}=e;if(!n){if(r.length)return null;const f={displaced:bm,displacedBy:GW,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},p=Pb({impact:f,draggable:l,droppable:o,draggables:i,afterCritical:s}),m=mf(l,o)?o:tq(o,l,i);return JW({draggable:l,destination:m,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?f:null}const u=t[o.axis.line]<=n.page.borderBox.center[o.axis.line],c=(()=>{const f=n.descriptor.index;return n.descriptor.id===l.descriptor.id||u?f:f+1})(),d=sg(o.axis,l.displaceBy);return gy({draggable:l,insideDestination:r,destination:o,viewport:a,displacedBy:d,last:bm,index:c})},l_e=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:n,draggable:r,isOver:l,draggables:i,droppables:o,viewport:a,afterCritical:s}=e;const u=t_e({isMovingForward:t,pageBorderBoxCenter:n,source:l,droppables:o,viewport:a});if(!u)return null;const c=hf(u.descriptor.id,i),d=r_e({pageBorderBoxCenter:n,viewport:a,destination:u,insideDestination:c,afterCritical:s}),f=i_e({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:c,viewport:a,afterCritical:s});if(!f)return null;const p=Pb({impact:f,draggable:r,droppable:u,draggables:i,afterCritical:s});return{clientSelection:T5({pageBorderBoxCenter:p,draggable:r,viewport:a}),impact:f,scrollJumpRequest:null}},Qo=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const s_e=(e,t)=>{const n=Qo(e);return n?t[n]:null};var u_e=e=>{let{state:t,type:n}=e;const r=s_e(t.impact,t.dimensions.droppables),l=!!r,i=t.dimensions.droppables[t.critical.droppable.id],o=r||i,a=o.axis.direction,s=a==="vertical"&&(n==="MOVE_UP"||n==="MOVE_DOWN")||a==="horizontal"&&(n==="MOVE_LEFT"||n==="MOVE_RIGHT");if(s&&!l)return null;const u=n==="MOVE_DOWN"||n==="MOVE_RIGHT",c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,{draggables:f,droppables:p}=t.dimensions;return s?e_e({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,destination:o,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):l_e({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,isOver:o,draggables:f,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function Tu(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function nq(e){const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return function(l){return t(l.y)&&n(l.x)}}function c_e(e,t){return e.leftt.left&&e.topt.top}function d_e(e){let{pageBorderBox:t,draggable:n,candidates:r}=e;const l=n.page.borderBox.center,i=r.map(o=>{const a=o.axis,s=Zu(o.axis.line,t.center[a.line],o.page.borderBox.center[a.crossAxisLine]);return{id:o.descriptor.id,distance:ym(l,s)}}).sort((o,a)=>a.distance-o.distance);return i[0]?i[0].id:null}function f_e(e){let{pageBorderBox:t,draggable:n,droppables:r}=e;const l=Sb(r).filter(i=>{if(!i.isEnabled)return!1;const o=i.subject.active;if(!o||!c_e(t,o))return!1;if(nq(o)(t.center))return!0;const a=i.axis,s=o.center[a.crossAxisLine],u=t[a.crossAxisStart],c=t[a.crossAxisEnd],d=wi(o[a.crossAxisStart],o[a.crossAxisEnd]),f=d(u),p=d(c);return!f&&!p?!0:f?us});return l.length?l.length===1?l[0].descriptor.id:d_e({pageBorderBox:t,draggable:n,candidates:l}):null}const rq=(e,t)=>zi(lg(e,t));var p_e=(e,t)=>{const n=e.frame;return n?rq(t,n.scroll.diff.value):t};function aq(e){let{displaced:t,id:n}=e;return!!(t.visible[n]||t.invisible[n])}function h_e(e){let{draggable:t,closest:n,inHomeList:r}=e;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var m_e=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:n,destination:r,insideDestination:l,last:i,viewport:o,afterCritical:a}=e;const s=r.axis,u=sg(r.axis,n.displaceBy),c=u.value,d=t[s.start],f=t[s.end],m=Mb(n,l).find(b=>{const v=b.descriptor.id,h=b.page.borderBox.center[s.line],y=Xs(v,a),w=aq({displaced:i,id:v});return y?w?f<=h:d{let{draggable:t,pageBorderBoxWithDroppableScroll:n,previousImpact:r,destination:l,insideDestination:i,afterCritical:o}=e;if(!l.isCombineEnabled)return null;const a=l.axis,s=sg(l.axis,t.displaceBy),u=s.value,c=n[a.start],d=n[a.end],p=Mb(t,i).find(g=>{const b=g.descriptor.id,v=g.page.borderBox,y=v[a.size]/g_e,w=Xs(b,o),_=aq({displaced:r.displaced,id:b});return w?_?d>v[a.start]+y&&dv[a.start]-u+y&&cv[a.start]+u+y&&dv[a.start]+y&&c{let{pageOffset:t,draggable:n,draggables:r,droppables:l,previousImpact:i,viewport:o,afterCritical:a}=e;const s=rq(n.page.borderBox,t),u=f_e({pageBorderBox:s,draggable:n,droppables:l});if(!u)return Dwe;const c=l[u],d=hf(c.descriptor.id,r),f=p_e(c,s);return v_e({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:c,insideDestination:d,afterCritical:a})||m_e({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:c,insideDestination:d,last:i.displaced,viewport:o,afterCritical:a})},k5=(e,t)=>({...e,[t.descriptor.id]:t});const y_e=e=>{let{previousImpact:t,impact:n,droppables:r}=e;const l=Qo(t),i=Qo(n);if(!l||l===i)return r;const o=r[l];if(!o.subject.withPlaceholder)return r;const a=o_e(o);return k5(r,a)};var b_e=e=>{let{draggable:t,draggables:n,droppables:r,previousImpact:l,impact:i}=e;const o=y_e({previousImpact:l,impact:i,droppables:r}),a=Qo(i);if(!a)return o;const s=r[a];if(mf(t,s)||s.subject.withPlaceholder)return o;const u=tq(s,t,n);return k5(o,u)},Nh=e=>{let{state:t,clientSelection:n,dimensions:r,viewport:l,impact:i,scrollJumpRequest:o}=e;const a=l||t.viewport,s=r||t.dimensions,u=n||t.current.client.selection,c=Go(u,t.initial.client.selection),d={offset:c,selection:u,borderBoxCenter:Ja(t.initial.client.borderBoxCenter,c)},f={selection:Ja(d.selection,a.scroll.current),borderBoxCenter:Ja(d.borderBoxCenter,a.scroll.current),offset:Ja(d.offset,a.scroll.diff.value)},p={client:d,page:f};if(t.phase==="COLLECTING")return{...t,dimensions:s,viewport:a,current:p};const m=s.draggables[t.critical.draggable.id],g=i||oq({pageOffset:f.offset,draggable:m,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:a,afterCritical:t.afterCritical}),b=b_e({draggable:m,impact:g,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return{...t,current:p,dimensions:{draggables:s.draggables,droppables:b},impact:g,viewport:a,scrollJumpRequest:o||null,forceShouldAnimate:o?!1:null}};function x_e(e,t){return e.map(n=>t[n])}var iq=e=>{let{impact:t,viewport:n,draggables:r,destination:l,forceShouldAnimate:i}=e;const o=t.displaced,a=x_e(o.all,r),s=xm({afterDragging:a,destination:l,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:o});return{...t,displaced:s}},lq=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,viewport:i,afterCritical:o}=e;const a=Pb({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:o});return T5({pageBorderBoxCenter:a,draggable:n,viewport:i})},sq=e=>{let{state:t,dimensions:n,viewport:r}=e;t.movementMode!=="SNAP"&&bn();const l=t.impact,i=r||t.viewport,o=n||t.dimensions,{draggables:a,droppables:s}=o,u=a[t.critical.draggable.id],c=Qo(l);c||bn();const d=s[c],f=iq({impact:l,viewport:i,destination:d,draggables:a}),p=lq({impact:f,draggable:u,droppable:d,draggables:a,viewport:i,afterCritical:t.afterCritical});return Nh({impact:f,clientSelection:p,state:t,dimensions:o,viewport:i})},w_e=e=>({index:e.index,droppableId:e.droppableId}),uq=e=>{let{draggable:t,home:n,draggables:r,viewport:l}=e;const i=sg(n.axis,t.displaceBy),o=hf(n.descriptor.id,r),a=o.indexOf(t);a===-1&&bn();const s=o.slice(a+1),u=s.reduce((p,m)=>(p[m.descriptor.id]=!0,p),{}),c={inVirtualList:n.descriptor.mode==="virtual",displacedBy:i,effected:u};return{impact:{displaced:xm({afterDragging:s,destination:n,displacedBy:i,last:null,viewport:l.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:w_e(t.descriptor)}},afterCritical:c}},__e=(e,t)=>({draggables:e.draggables,droppables:k5(e.droppables,t)}),T_e=e=>{let{draggable:t,offset:n,initialWindowScroll:r}=e;const l=fy(t.client,n),i=py(l,r);return{...t,placeholder:{...t.placeholder,client:l},client:l,page:i}},k_e=e=>{const t=e.frame;return t||bn(),t},S_e=e=>{let{additions:t,updatedDroppables:n,viewport:r}=e;const l=r.scroll.diff.value;return t.map(i=>{const o=i.descriptor.droppableId,a=n[o],u=k_e(a).scroll.diff.value,c=Ja(l,u);return T_e({draggable:i,offset:c,initialWindowScroll:r.scroll.initial})})},C_e=e=>{let{state:t,published:n}=e;const r=n.modified.map(h=>{const y=t.dimensions.droppables[h.droppableId];return y5(y,h.scroll)}),l={...t.dimensions.droppables,...HW(r)},i=VW(S_e({additions:n.additions,updatedDroppables:l,viewport:t.viewport})),o={...t.dimensions.draggables,...i};n.removals.forEach(h=>{delete o[h]});const a={droppables:l,draggables:o},s=Qo(t.impact),u=s?a.droppables[s]:null,c=a.draggables[t.critical.draggable.id],d=a.droppables[t.critical.droppable.id],{impact:f,afterCritical:p}=uq({draggable:c,home:d,draggables:o,viewport:t.viewport}),m=u&&u.isCombineEnabled?t.impact:f,g=oq({pageOffset:t.current.page.offset,draggable:a.draggables[t.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:m,viewport:t.viewport,afterCritical:p}),b={...t,phase:"DRAGGING",impact:g,onLiftImpact:f,dimensions:a,afterCritical:p,forceShouldAnimate:!1};return t.phase==="COLLECTING"?b:{...b,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const mk=e=>e.movementMode==="SNAP",$_=(e,t,n)=>{const r=__e(e.dimensions,t);return!mk(e)||n?Nh({state:e,dimensions:r}):sq({state:e,dimensions:r})};function N_(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const kE={phase:"IDLE",completed:null,shouldFlush:!1};var M_e=function(e,t){if(e===void 0&&(e=kE),t.type==="FLUSH")return{...kE,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&bn();const{critical:n,clientSelection:r,viewport:l,dimensions:i,movementMode:o}=t.payload,a=i.draggables[n.draggable.id],s=i.droppables[n.droppable.id],u={selection:r,borderBoxCenter:a.client.borderBox.center,offset:za},c={client:u,page:{selection:Ja(u.selection,l.scroll.initial),borderBoxCenter:Ja(u.selection,l.scroll.initial),offset:Ja(u.selection,l.scroll.diff.value)}},d=Sb(i.droppables).every(g=>!g.isFixedOnPage),{impact:f,afterCritical:p}=uq({draggable:a,home:s,draggables:i.draggables,viewport:l});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:o,dimensions:i,initial:c,current:c,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:l,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&bn(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||bn(),C_e({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Tu(e)||bn();const{client:n}=t.payload;return Us(n,e.current.client.selection)?e:Nh({state:e,clientSelection:n,impact:mk(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return N_(e);Tu(e)||bn();const{id:n,newScroll:r}=t.payload,l=e.dimensions.droppables[n];if(!l)return e;const i=y5(l,r);return $_(e,i,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Tu(e)||bn();const{id:n,isEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||bn(),l.isEnabled===r&&bn();const i={...l,isEnabled:r};return $_(e,i,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Tu(e)||bn();const{id:n,isCombineEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||bn(),l.isCombineEnabled===r&&bn();const i={...l,isCombineEnabled:r};return $_(e,i,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Tu(e)||bn(),e.isWindowScrollAllowed||bn();const n=t.payload.newScroll;if(Us(e.viewport.scroll.current,n))return N_(e);const r=QW(e.viewport,n);return mk(e)?sq({state:e,viewport:r}):Nh({state:e,viewport:r})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Tu(e))return e;const n=t.payload.maxScroll;if(Us(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&bn();const n=u_e({state:e,type:t.type});return n?Nh({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const n=t.payload.reason;return e.phase!=="COLLECTING"&&bn(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if(t.type==="DROP_ANIMATE"){const{completed:n,dropDuration:r,newHomeClientOffset:l}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||bn(),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:l,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:n}=t.payload;return{phase:"IDLE",completed:n,shouldFlush:!1}}return e};const P_e=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),O_e=e=>({type:"LIFT",payload:e}),A_e=e=>({type:"INITIAL_PUBLISH",payload:e}),D_e=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),E_e=()=>({type:"COLLECTION_STARTING",payload:null}),R_e=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),L_e=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),I_e=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),cq=e=>({type:"MOVE",payload:e}),$_e=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),N_e=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),F_e=()=>({type:"MOVE_UP",payload:null}),j_e=()=>({type:"MOVE_DOWN",payload:null}),z_e=()=>({type:"MOVE_RIGHT",payload:null}),B_e=()=>({type:"MOVE_LEFT",payload:null}),S5=()=>({type:"FLUSH",payload:null}),W_e=e=>({type:"DROP_ANIMATE",payload:e}),C5=e=>({type:"DROP_COMPLETE",payload:e}),dq=e=>({type:"DROP",payload:e}),q_e=e=>({type:"DROP_PENDING",payload:e}),fq=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var U_e=e=>t=>{let{getState:n,dispatch:r}=t;return l=>i=>{if(i.type!=="LIFT"){l(i);return}const{id:o,clientSelection:a,movementMode:s}=i.payload,u=n();u.phase==="DROP_ANIMATING"&&r(C5({completed:u.completed})),n().phase!=="IDLE"&&bn(),r(S5()),r(P_e({draggableId:o,movementMode:s}));const d={draggableId:o,scrollOptions:{shouldPublishImmediately:s==="SNAP"}},{critical:f,dimensions:p,viewport:m}=e.startPublishing(d);r(A_e({critical:f,dimensions:p,clientSelection:a,movementMode:s,viewport:m}))}},H_e=e=>()=>t=>n=>{n.type==="INITIAL_PUBLISH"&&e.dragging(),n.type==="DROP_ANIMATE"&&e.dropping(n.payload.completed.result.reason),(n.type==="FLUSH"||n.type==="DROP_COMPLETE")&&e.resting(),t(n)};const M5={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},wm={opacity:{drop:0,combining:.7},scale:{drop:.75}},pq={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},mu=`${pq.outOfTheWay}s ${M5.outOfTheWay}`,Fh={fluid:`opacity ${mu}`,snap:`transform ${mu}, opacity ${mu}`,drop:e=>{const t=`${e}s ${M5.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${mu}`,placeholder:`height ${mu}, width ${mu}, margin ${mu}`},SE=e=>Us(e,za)?void 0:`translate(${e.x}px, ${e.y}px)`,gk={moveTo:SE,drop:(e,t)=>{const n=SE(e);if(n)return t?`${n} scale(${wm.scale.drop})`:n}},{minDropTime:vk,maxDropTime:hq}=pq,V_e=hq-vk,CE=1500,G_e=.6;var Y_e=e=>{let{current:t,destination:n,reason:r}=e;const l=ym(t,n);if(l<=0)return vk;if(l>=CE)return hq;const i=l/CE,o=vk+V_e*i,a=r==="CANCEL"?o*G_e:o;return Number(a.toFixed(2))},X_e=e=>{let{impact:t,draggable:n,dimensions:r,viewport:l,afterCritical:i}=e;const{draggables:o,droppables:a}=r,s=Qo(t),u=s?a[s]:null,c=a[n.descriptor.droppableId],d=lq({impact:t,draggable:n,draggables:o,afterCritical:i,droppable:u||c,viewport:l});return Go(d,n.client.borderBox.center)},K_e=e=>{let{draggables:t,reason:n,lastImpact:r,home:l,viewport:i,onLiftImpact:o}=e;return!r.at||n!=="DROP"?{impact:iq({draggables:t,impact:o,destination:l,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:r.at.type==="REORDER"?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:bm},didDropInsideDroppable:!0}};const Z_e=e=>{let{getState:t,dispatch:n}=e;return r=>l=>{if(l.type!=="DROP"){r(l);return}const i=t(),o=l.payload.reason;if(i.phase==="COLLECTING"){n(q_e({reason:o}));return}if(i.phase==="IDLE")return;i.phase==="DROP_PENDING"&&i.isWaiting&&bn(),i.phase==="DRAGGING"||i.phase==="DROP_PENDING"||bn();const s=i.critical,u=i.dimensions,c=u.draggables[i.critical.draggable.id],{impact:d,didDropInsideDroppable:f}=K_e({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),p=f?b5(d):null,m=f?Cb(d):null,g={index:s.draggable.index,droppableId:s.droppable.id},b={draggableId:c.descriptor.id,type:c.descriptor.type,source:g,reason:o,mode:i.movementMode,destination:p,combine:m},v=X_e({impact:d,draggable:c,dimensions:u,viewport:i.viewport,afterCritical:i.afterCritical}),h={critical:i.critical,afterCritical:i.afterCritical,result:b,impact:d};if(!(!Us(i.current.client.offset,v)||!!b.combine)){n(C5({completed:h}));return}const w=Y_e({current:i.current.client.offset,destination:v,reason:o});n(W_e({newHomeClientOffset:v,dropDuration:w,completed:h}))}};var Q_e=Z_e,mq=()=>({x:window.pageXOffset,y:window.pageYOffset});function J_e(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function eTe(e){let{onWindowScroll:t}=e;function n(){t(mq())}const r=vm(n),l=J_e(r);let i=qs;function o(){return i!==qs}function a(){o()&&bn(),i=vi(window,[l])}function s(){o()||bn(),r.cancel(),i(),i=qs}return{start:a,stop:s,isActive:o}}const tTe=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",nTe=e=>{const t=eTe({onWindowScroll:n=>{e.dispatch($_e({newScroll:n}))}});return n=>r=>{!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&tTe(r)&&t.stop(),n(r)}};var rTe=nTe,aTe=e=>{let t=!1,n=!1;const r=setTimeout(()=>{n=!0}),l=i=>{t||n||(t=!0,e(i),clearTimeout(r))};return l.wasCalled=()=>t,l},oTe=()=>{const e=[],t=l=>{const i=e.findIndex(a=>a.timerId===l);i===-1&&bn();const[o]=e.splice(i,1);o.callback()};return{add:l=>{const i=setTimeout(()=>t(i)),o={timerId:i,callback:l};e.push(o)},flush:()=>{if(!e.length)return;const l=[...e];e.length=0,l.forEach(i=>{clearTimeout(i.timerId),i.callback()})}}};const iTe=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,lTe=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,sTe=(e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r},_p=(e,t)=>{t()},x0=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function F_(e,t,n,r){if(!e){n(r(t));return}const l=aTe(n);e(t,{announce:l}),l.wasCalled()||n(r(t))}var uTe=(e,t)=>{const n=oTe();let r=null;const l=(d,f)=>{r&&bn(),_p("onBeforeCapture",()=>{const p=e().onBeforeCapture;p&&p({draggableId:d,mode:f})})},i=(d,f)=>{r&&bn(),_p("onBeforeDragStart",()=>{const p=e().onBeforeDragStart;p&&p(x0(d,f))})},o=(d,f)=>{r&&bn();const p=x0(d,f);r={mode:f,lastCritical:d,lastLocation:p.source,lastCombine:null},n.add(()=>{_p("onDragStart",()=>F_(e().onDragStart,p,t,ov.onDragStart))})},a=(d,f)=>{const p=b5(f),m=Cb(f);r||bn();const g=!sTe(d,r.lastCritical);g&&(r.lastCritical=d);const b=!iTe(r.lastLocation,p);b&&(r.lastLocation=p);const v=!lTe(r.lastCombine,m);if(v&&(r.lastCombine=m),!g&&!b&&!v)return;const h={...x0(d,r.mode),combine:m,destination:p};n.add(()=>{_p("onDragUpdate",()=>F_(e().onDragUpdate,h,t,ov.onDragUpdate))})},s=()=>{r||bn(),n.flush()},u=d=>{r||bn(),r=null,_p("onDragEnd",()=>F_(e().onDragEnd,d,t,ov.onDragEnd))};return{beforeCapture:l,beforeStart:i,start:o,update:a,flush:s,drop:u,abort:()=>{if(!r)return;const d={...x0(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};u(d)}}},cTe=(e,t)=>{const n=uTe(e,t);return r=>l=>i=>{if(i.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(i.payload.draggableId,i.payload.movementMode);return}if(i.type==="INITIAL_PUBLISH"){const a=i.payload.critical;n.beforeStart(a,i.payload.movementMode),l(i),n.start(a,i.payload.movementMode);return}if(i.type==="DROP_COMPLETE"){const a=i.payload.completed.result;n.flush(),l(i),n.drop(a);return}if(l(i),i.type==="FLUSH"){n.abort();return}const o=r.getState();o.phase==="DRAGGING"&&n.update(o.critical,o.impact)}};const dTe=e=>t=>n=>{if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}const r=e.getState();r.phase!=="DROP_ANIMATING"&&bn(),e.dispatch(C5({completed:r.completed}))};var fTe=dTe;const pTe=e=>{let t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return l=>i=>{if((i.type==="FLUSH"||i.type==="DROP_COMPLETE"||i.type==="DROP_ANIMATION_FINISHED")&&r(),l(i),i.type!=="DROP_ANIMATE")return;const o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(fq())}};n=requestAnimationFrame(()=>{n=null,t=vi(window,[o])})}};var hTe=pTe,mTe=e=>()=>t=>n=>{(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)},gTe=e=>{let t=!1;return()=>n=>r=>{if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;const l=r.payload.completed.result;l.combine&&e.tryShiftRecord(l.draggableId,l.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const vTe=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var yTe=e=>t=>n=>r=>{if(vTe(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);const l=t.getState();l.phase!=="DRAGGING"&&bn(),e.start(l);return}n(r),e.scroll(t.getState())};const bTe=e=>t=>n=>{if(t(n),n.type!=="PUBLISH_WHILE_DRAGGING")return;const r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(dq({reason:r.reason})))};var xTe=bTe;const wTe=DW;var _Te=e=>{let{dimensionMarshal:t,focusMarshal:n,styleMarshal:r,getResponders:l,announce:i,autoScroller:o}=e;return AW(M_e,wTe($2e(H_e(r),mTe(t),U_e(t),Q_e,fTe,hTe,xTe,yTe(o),rTe,gTe(n),cTe(l,i))))};const j_=()=>({additions:{},removals:{},modified:{}});function TTe(e){let{registry:t,callbacks:n}=e,r=j_(),l=null;const i=()=>{l||(n.collectionStarting(),l=requestAnimationFrame(()=>{l=null;const{additions:u,removals:c,modified:d}=r,f=Object.keys(u).map(g=>t.draggable.getById(g).getDimension(za)).sort((g,b)=>g.descriptor.index-b.descriptor.index),p=Object.keys(d).map(g=>{const v=t.droppable.getById(g).callbacks.getScrollWhileDragging();return{droppableId:g,scroll:v}}),m={additions:f,removals:Object.keys(c),modified:p};r=j_(),n.publish(m)}))};return{add:u=>{const c=u.descriptor.id;r.additions[c]=u,r.modified[u.descriptor.droppableId]=!0,r.removals[c]&&delete r.removals[c],i()},remove:u=>{const c=u.descriptor;r.removals[c.id]=!0,r.modified[c.droppableId]=!0,r.additions[c.id]&&delete r.additions[c.id],i()},stop:()=>{l&&(cancelAnimationFrame(l),l=null,r=j_())}}}var gq=e=>{let{scrollHeight:t,scrollWidth:n,height:r,width:l}=e;const i=Go({x:n,y:t},{x:l,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},vq=()=>{const e=document.documentElement;return e||bn(),e},yq=()=>{const e=vq();return gq({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},kTe=()=>{const e=mq(),t=yq(),n=e.y,r=e.x,l=vq(),i=l.clientWidth,o=l.clientHeight,a=r+i,s=n+o;return{frame:zi({top:n,left:r,right:a,bottom:s}),scroll:{initial:e,current:e,max:t,diff:{value:za,displacement:za}}}},STe=e=>{let{critical:t,scrollOptions:n,registry:r}=e;const l=kTe(),i=l.scroll.current,o=t.droppable,a=r.droppable.getAllByType(o.type).map(d=>d.callbacks.getDimensionAndWatchScroll(i,n)),s=r.draggable.getAllByType(t.draggable.type).map(d=>d.getDimension(i));return{dimensions:{draggables:VW(s),droppables:HW(a)},critical:t,viewport:l}};function ME(e,t,n){return!(n.descriptor.id===t.id||n.descriptor.type!==t.type||e.droppable.getById(n.descriptor.droppableId).descriptor.mode!=="virtual")}var CTe=(e,t)=>{let n=null;const r=TTe({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),l=(f,p)=>{e.droppable.exists(f)||bn(),n&&t.updateDroppableIsEnabled({id:f,isEnabled:p})},i=(f,p)=>{n&&(e.droppable.exists(f)||bn(),t.updateDroppableIsCombineEnabled({id:f,isCombineEnabled:p}))},o=(f,p)=>{n&&(e.droppable.exists(f)||bn(),t.updateDroppableScroll({id:f,newScroll:p}))},a=(f,p)=>{n&&e.droppable.getById(f).callbacks.scroll(p)},s=()=>{if(!n)return;r.stop();const f=n.critical.droppable;e.droppable.getAllByType(f.type).forEach(p=>p.callbacks.dragStopped()),n.unsubscribe(),n=null},u=f=>{n||bn();const p=n.critical.draggable;f.type==="ADDITION"&&ME(e,p,f.value)&&r.add(f.value),f.type==="REMOVAL"&&ME(e,p,f.value)&&r.remove(f.value)};return{updateDroppableIsEnabled:l,updateDroppableIsCombineEnabled:i,scrollDroppable:a,updateDroppableScroll:o,startPublishing:f=>{n&&bn();const p=e.draggable.getById(f.draggableId),m=e.droppable.getById(p.descriptor.droppableId),g={draggable:p.descriptor,droppable:m.descriptor},b=e.subscribe(u);return n={critical:g,unsubscribe:b},STe({critical:g,registry:e,scrollOptions:f.scrollOptions})},stopPublishing:s}},bq=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",MTe=e=>{window.scrollBy(e.x,e.y)};const PTe=ja(e=>Sb(e).filter(t=>!(!t.isEnabled||!t.frame))),OTe=(e,t)=>PTe(t).find(r=>(r.frame||bn(),nq(r.frame.pageMarginBox)(e)))||null;var ATe=e=>{let{center:t,destination:n,droppables:r}=e;if(n){const i=r[n];return i.frame?i:null}return OTe(t,r)};const _m={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var DTe=function(e,t,n){n===void 0&&(n=()=>_m);const r=n(),l=e[t.size]*r.startFromPercentage,i=e[t.size]*r.maxScrollAtPercentage;return{startScrollingFrom:l,maxScrollValueAt:i}},xq=e=>{let{startOfRange:t,endOfRange:n,current:r}=e;const l=n-t;return l===0?0:(r-t)/l},P5=1,ETe=function(e,t,n){n===void 0&&(n=()=>_m);const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return P5;const i=1-xq({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=r.maxPixelScroll*r.ease(i);return Math.ceil(o)},RTe=(e,t,n)=>{const r=n(),l=r.durationDampening.accelerateAt,i=r.durationDampening.stopDampeningAt,o=t,a=i,u=Date.now()-o;if(u>=i)return e;if(u{let{distanceToEdge:t,thresholds:n,dragStartTime:r,shouldUseTimeDampening:l,getAutoScrollerOptions:i}=e;const o=ETe(t,n,i);return o===0?0:l?Math.max(RTe(o,r,i),P5):o},OE=e=>{let{container:t,distanceToEdges:n,dragStartTime:r,axis:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=DTe(t,l,o);return n[l.end]{let{container:t,subject:n,proposedScroll:r}=e;const l=n.height>t.height,i=n.width>t.width;return!i&&!l?r:i&&l?null:{x:i?0:r.x,y:l?0:r.y}};const ITe=UW(e=>e===0?0:e);var wq=e=>{let{dragStartTime:t,container:n,subject:r,center:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a={top:l.y-n.top,right:n.right-l.x,bottom:n.bottom-l.y,left:l.x-n.left},s=OE({container:n,distanceToEdges:a,dragStartTime:t,axis:x5,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),u=OE({container:n,distanceToEdges:a,dragStartTime:t,axis:XW,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),c=ITe({x:u,y:s});if(Us(c,za))return null;const d=LTe({container:n,subject:r,proposedScroll:c});return d?Us(d,za)?null:d:null};const $Te=UW(e=>e===0?0:e>0?1:-1),O5=(()=>{const e=(t,n)=>t<0?t:t>n?t-n:0;return t=>{let{current:n,max:r,change:l}=t;const i=Ja(n,l),o={x:e(i.x,r.x),y:e(i.y,r.y)};return Us(o,za)?null:o}})(),_q=e=>{let{max:t,current:n,change:r}=e;const l={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=$Te(r),o=O5({max:l,current:n,change:i});return!o||i.x!==0&&o.x===0||i.y!==0&&o.y===0},A5=(e,t)=>_q({current:e.scroll.current,max:e.scroll.max,change:t}),NTe=(e,t)=>{if(!A5(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return O5({current:r,max:n,change:t})},D5=(e,t)=>{const n=e.frame;return n?_q({current:n.scroll.current,max:n.scroll.max,change:t}):!1},FTe=(e,t)=>{const n=e.frame;return!n||!D5(e,t)?null:O5({current:n.scroll.current,max:n.scroll.max,change:t})};var jTe=e=>{let{viewport:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=wq({dragStartTime:l,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return a&&A5(t,a)?a:null},zTe=e=>{let{droppable:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=t.frame;if(!a)return null;const s=wq({dragStartTime:l,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return s&&D5(t,s)?s:null},AE=e=>{let{state:t,dragStartTime:n,shouldUseTimeDampening:r,scrollWindow:l,scrollDroppable:i,getAutoScrollerOptions:o}=e;const a=t.current.page.borderBoxCenter,u=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const f=t.viewport,p=jTe({dragStartTime:n,viewport:f,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});if(p){l(p);return}}const c=ATe({center:a,destination:Qo(t.impact),droppables:t.dimensions.droppables});if(!c)return;const d=zTe({dragStartTime:n,droppable:c,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});d&&i(c.descriptor.id,d)},BTe=e=>{let{scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:r=()=>_m}=e;const l=vm(t),i=vm(n);let o=null;const a=c=>{o||bn();const{shouldUseTimeDampening:d,dragStartTime:f}=o;AE({state:c,scrollWindow:l,scrollDroppable:i,dragStartTime:f,shouldUseTimeDampening:d,getAutoScrollerOptions:r})};return{start:c=>{o&&bn();const d=Date.now();let f=!1;const p=()=>{f=!0};AE({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:p,scrollDroppable:p,getAutoScrollerOptions:r}),o={dragStartTime:d,shouldUseTimeDampening:f},f&&a(c)},stop:()=>{o&&(l.cancel(),i.cancel(),o=null)},scroll:a}},WTe=e=>{let{move:t,scrollDroppable:n,scrollWindow:r}=e;const l=(s,u)=>{const c=Ja(s.current.client.selection,u);t({client:c})},i=(s,u)=>{if(!D5(s,u))return u;const c=FTe(s,u);if(!c)return n(s.descriptor.id,u),null;const d=Go(u,c);return n(s.descriptor.id,d),Go(u,d)},o=(s,u,c)=>{if(!s||!A5(u,c))return c;const d=NTe(u,c);if(!d)return r(c),null;const f=Go(c,d);return r(f),Go(c,f)};return s=>{const u=s.scrollJumpRequest;if(!u)return;const c=Qo(s.impact);c||bn();const d=i(s.dimensions.droppables[c],u);if(!d)return;const f=s.viewport,p=o(s.isWindowScrollAllowed,f,d);p&&l(s,p)}},qTe=e=>{let{scrollDroppable:t,scrollWindow:n,move:r,getAutoScrollerOptions:l}=e;const i=BTe({scrollWindow:n,scrollDroppable:t,getAutoScrollerOptions:l}),o=WTe({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:u=>{if(!(l().disabled||u.phase!=="DRAGGING")){if(u.movementMode==="FLUID"){i.scroll(u);return}u.scrollJumpRequest&&o(u)}},start:i.start,stop:i.stop}};const Gd="data-rfd",Yd=(()=>{const e=`${Gd}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),yk=(()=>{const e=`${Gd}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),UTe=(()=>{const e=`${Gd}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),DE={contextId:`${Gd}-scroll-container-context-id`},HTe=e=>t=>`[${t}="${e}"]`,Tp=(e,t)=>e.map(n=>{const r=n.styles[t];return r?`${n.selector} { ${r} }`:""}).join(" "),VTe="pointer-events: none;";var GTe=e=>{const t=HTe(e),n=(()=>{const a=` + `},bwe={dragHandleUsageInstructions:mwe,onDragStart:gwe,onDragUpdate:vwe,onDragEnd:ywe};var ov=bwe;const za={x:0,y:0},Ja=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Go=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Us=(e,t)=>e.x===t.x&&e.y===t.y,ff=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Ku=function(e,t,n){return n===void 0&&(n=0),e==="x"?{x:t,y:n}:{x:n,y:t}},vm=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),vE=(e,t)=>Math.min(...t.map(n=>vm(e,n))),qW=e=>t=>({x:e(t.x),y:e(t.y)});var xwe=(e,t)=>{const n=zi({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n};const ig=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),yE=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],wwe={top:0,right:0,bottom:0,left:0},_we=(e,t)=>t?ig(e,t.scroll.diff.displacement):e,Twe=(e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e,kwe=(e,t)=>t&&t.shouldClipSubject?xwe(t.pageMarginBox,e):zi(e);var Hd=e=>{let{page:t,withPlaceholder:n,axis:r,frame:l}=e;const i=_we(t.marginBox,l),o=Twe(i,r,n),a=kwe(o,l);return{page:t,withPlaceholder:n,active:a}},y5=(e,t)=>{e.frame||bn();const n=e.frame,r=Go(t,n.scroll.initial),l=ff(r),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:l},max:n.scroll.max}},o=Hd({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:o}};const UW=ja(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),HW=ja(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),kb=ja(e=>Object.values(e)),Swe=ja(e=>Object.values(e));var pf=ja((e,t)=>Swe(t).filter(r=>e===r.descriptor.droppableId).sort((r,l)=>r.descriptor.index-l.descriptor.index));function b5(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Sb(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Cb=ja((e,t)=>t.filter(n=>n.descriptor.id!==e.descriptor.id)),Cwe=e=>{let{isMovingForward:t,draggable:n,destination:r,insideDestination:l,previousImpact:i}=e;if(!r.isCombineEnabled||!b5(i))return null;function a(m){const g={type:"COMBINE",combine:{draggableId:m,droppableId:r.descriptor.id}};return{...i,at:g}}const s=i.displaced.all,u=s.length?s[0]:null;if(t)return u?a(u):null;const c=Cb(n,l);if(!u){if(!c.length)return null;const m=c[c.length-1];return a(m.descriptor.id)}const d=c.findIndex(m=>m.descriptor.id===u);d===-1&&bn();const f=d-1;if(f<0)return null;const p=c[f];return a(p.descriptor.id)},hf=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const VW={point:za,value:0},ym={invisible:{},visible:{},all:[]},Mwe={displaced:ym,displacedBy:VW,at:null};var Pwe=Mwe,wi=(e,t)=>n=>e<=n&&n<=t,GW=e=>{const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;const s=r.tope.bottom,u=r.lefte.right;return s&&u?!0:s&&o||u&&i}},Owe=e=>{const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return r=>t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right)};const x5={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},YW={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var Awe=e=>t=>{const n=wi(t.top,t.bottom),r=wi(t.left,t.right);return l=>e===x5?n(l.top)&&n(l.bottom):r(l.left)&&r(l.right)};const Dwe=(e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:za;return ig(e,n)},Ewe=(e,t,n)=>t.subject.active?n(t.subject.active)(e):!1,Rwe=(e,t,n)=>n(t)(e),w5=e=>{let{target:t,destination:n,viewport:r,withDroppableDisplacement:l,isVisibleThroughFrameFn:i}=e;const o=l?Dwe(t,n):t;return Ewe(o,n,i)&&Rwe(o,r,i)},Lwe=e=>w5({...e,isVisibleThroughFrameFn:GW}),XW=e=>w5({...e,isVisibleThroughFrameFn:Owe}),Iwe=e=>w5({...e,isVisibleThroughFrameFn:Awe(e.destination.axis)}),$we=(e,t,n)=>{if(typeof n=="boolean")return n;if(!t)return!0;const{invisible:r,visible:l}=t;if(r[e])return!1;const i=l[e];return i?i.shouldAnimate:!0};function Nwe(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return zi(g5(n,r))}function bm(e){let{afterDragging:t,destination:n,displacedBy:r,viewport:l,forceShouldAnimate:i,last:o}=e;return t.reduce(function(s,u){const c=Nwe(u,r),d=u.descriptor.id;if(s.all.push(d),!Lwe({target:c,destination:n,viewport:l,withDroppableDisplacement:!0}))return s.invisible[u.descriptor.id]=!0,s;const p=$we(d,o,i),m={draggableId:d,shouldAnimate:p};return s.visible[d]=m,s},{all:[],visible:{},invisible:{}})}function Fwe(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function bE(e){let{insideDestination:t,inHomeList:n,displacedBy:r,destination:l}=e;const i=Fwe(t,{inHomeList:n});return{displaced:ym,displacedBy:r,at:{type:"REORDER",destination:{droppableId:l.descriptor.id,index:i}}}}function my(e){let{draggable:t,insideDestination:n,destination:r,viewport:l,displacedBy:i,last:o,index:a,forceShouldAnimate:s}=e;const u=hf(t,r);if(a==null)return bE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const c=n.find(g=>g.descriptor.index===a);if(!c)return bE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const d=Cb(t,n),f=n.indexOf(c),p=d.slice(f);return{displaced:bm({afterDragging:p,destination:r,displacedBy:i,last:o,viewport:l.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function Xs(e,t){return!!t.effected[e]}var jwe=e=>{let{isMovingForward:t,destination:n,draggables:r,combine:l,afterCritical:i}=e;if(!n.isCombineEnabled)return null;const o=l.draggableId,s=r[o].descriptor.index;return Xs(o,i)?t?s:s-1:t?s+1:s},zwe=e=>{let{isMovingForward:t,isInHomeList:n,insideDestination:r,location:l}=e;if(!r.length)return null;const i=l.index,o=t?i+1:i-1,a=r[0].descriptor.index,s=r[r.length-1].descriptor.index,u=n?s:s+1;return ou?null:o},Bwe=e=>{let{isMovingForward:t,isInHomeList:n,draggable:r,draggables:l,destination:i,insideDestination:o,previousImpact:a,viewport:s,afterCritical:u}=e;const c=a.at;if(c||bn(),c.type==="REORDER"){const f=zwe({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:o});return f==null?null:my({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:f})}const d=jwe({isMovingForward:t,destination:i,displaced:a.displaced,draggables:l,combine:c.combine,afterCritical:u});return d==null?null:my({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:d})},Wwe=e=>{let{displaced:t,afterCritical:n,combineWith:r,displacedBy:l}=e;const i=!!(t.visible[r]||t.invisible[r]);return Xs(r,n)?i?za:ff(l.point):i?l.point:za},qwe=e=>{let{afterCritical:t,impact:n,draggables:r}=e;const l=Sb(n);l||bn();const i=l.draggableId,o=r[i].page.borderBox.center,a=Wwe({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Ja(o,a)};const KW=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,Uwe=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,_5=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,xE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return Ku(t.line,n.marginBox[t.end]+KW(t,r),_5(t,n.marginBox,r))},wE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return Ku(t.line,n.marginBox[t.start]-Uwe(t,r),_5(t,n.marginBox,r))},Hwe=e=>{let{axis:t,moveInto:n,isMoving:r}=e;return Ku(t.line,n.contentBox[t.start]+KW(t,r),_5(t,n.contentBox,r))};var Vwe=e=>{let{impact:t,draggable:n,draggables:r,droppable:l,afterCritical:i}=e;const o=pf(l.descriptor.id,r),a=n.page,s=l.axis;if(!o.length)return Hwe({axis:s,moveInto:l.page,isMoving:a});const{displaced:u,displacedBy:c}=t,d=u.all[0];if(d){const p=r[d];if(Xs(d,i))return wE({axis:s,moveRelativeTo:p.page,isMoving:a});const m=dy(p.page,c.point);return wE({axis:s,moveRelativeTo:m,isMoving:a})}const f=o[o.length-1];if(f.descriptor.id===n.descriptor.id)return a.borderBox.center;if(Xs(f.descriptor.id,i)){const p=dy(f.page,ff(i.displacedBy.point));return xE({axis:s,moveRelativeTo:p,isMoving:a})}return xE({axis:s,moveRelativeTo:f.page,isMoving:a})},pk=(e,t)=>{const n=e.frame;return n?Ja(t,n.scroll.diff.displacement):t};const Gwe=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,afterCritical:i}=e;const o=n.page.borderBox.center,a=t.at;return!r||!a?o:a.type==="REORDER"?Vwe({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:i}):qwe({impact:t,draggables:l,afterCritical:i})};var Mb=e=>{const t=Gwe(e),n=e.droppable;return n?pk(n,t):t},ZW=(e,t)=>{const n=Go(t,e.scroll.initial),r=ff(n);return{frame:zi({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function _E(e,t){return e.map(n=>t[n])}function Ywe(e,t){for(let n=0;n{let{impact:t,viewport:n,destination:r,draggables:l,maxScrollChange:i}=e;const o=ZW(n,Ja(n.scroll.current,i)),a=r.frame?y5(r,Ja(r.frame.scroll.current,i)):r,s=t.displaced,u=bm({afterDragging:_E(s.all,l),destination:r,displacedBy:t.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),c=bm({afterDragging:_E(s.all,l),destination:a,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,u,c];return s.all.forEach(g=>{const b=Ywe(g,p);if(b){f[g]=b;return}d[g]=!0}),{...t,displaced:{all:s.all,invisible:d,visible:f}}},Kwe=(e,t)=>Ja(e.scroll.diff.displacement,t),T5=e=>{let{pageBorderBoxCenter:t,draggable:n,viewport:r}=e;const l=Kwe(r,t),i=Go(l,n.page.borderBox.center);return Ja(n.client.borderBox.center,i)},QW=e=>{let{draggable:t,destination:n,newPageBorderBoxCenter:r,viewport:l,withDroppableDisplacement:i,onlyOnMainAxis:o=!1}=e;const a=Go(r,t.page.borderBox.center),u={target:ig(t.page.borderBox,a),destination:n,withDroppableDisplacement:i,viewport:l};return o?Iwe(u):XW(u)},Zwe=e=>{let{isMovingForward:t,draggable:n,destination:r,draggables:l,previousImpact:i,viewport:o,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:u}=e;if(!r.isEnabled)return null;const c=pf(r.descriptor.id,l),d=hf(n,r),f=Cwe({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||Bwe({isMovingForward:t,isInHomeList:d,draggable:n,draggables:l,destination:r,insideDestination:c,previousImpact:i,viewport:o,afterCritical:u});if(!f)return null;const p=Mb({impact:f,draggable:n,droppable:r,draggables:l,afterCritical:u});if(QW({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:T5({pageBorderBoxCenter:p,draggable:n,viewport:o}),impact:f,scrollJumpRequest:null};const g=Go(p,a),b=Xwe({impact:f,viewport:o,destination:r,draggables:l,maxScrollChange:g});return{clientSelection:s,impact:b,scrollJumpRequest:g}};const go=e=>{const t=e.subject.active;return t||bn(),t};var Qwe=e=>{let{isMovingForward:t,pageBorderBoxCenter:n,source:r,droppables:l,viewport:i}=e;const o=r.subject.active;if(!o)return null;const a=r.axis,s=wi(o[a.start],o[a.end]),u=kb(l).filter(d=>d!==r).filter(d=>d.isEnabled).filter(d=>!!d.subject.active).filter(d=>GW(i.frame)(go(d))).filter(d=>{const f=go(d);return t?o[a.crossAxisEnd]{const f=go(d),p=wi(f[a.start],f[a.end]);return s(f[a.start])||s(f[a.end])||p(o[a.start])||p(o[a.end])}).sort((d,f)=>{const p=go(d)[a.crossAxisStart],m=go(f)[a.crossAxisStart];return t?p-m:m-p}).filter((d,f,p)=>go(d)[a.crossAxisStart]===go(p[0])[a.crossAxisStart]);if(!u.length)return null;if(u.length===1)return u[0];const c=u.filter(d=>wi(go(d)[a.start],go(d)[a.end])(n[a.line]));return c.length===1?c[0]:c.length>1?c.sort((d,f)=>go(d)[a.start]-go(f)[a.start])[0]:u.sort((d,f)=>{const p=vE(n,yE(go(d))),m=vE(n,yE(go(f)));return p!==m?p-m:go(d)[a.start]-go(f)[a.start]})[0]};const TE=(e,t)=>{const n=e.page.borderBox.center;return Xs(e.descriptor.id,t)?Go(n,t.displacedBy.point):n},Jwe=(e,t)=>{const n=e.page.borderBox;return Xs(e.descriptor.id,t)?ig(n,ff(t.displacedBy.point)):n};var e_e=e=>{let{pageBorderBoxCenter:t,viewport:n,destination:r,insideDestination:l,afterCritical:i}=e;return l.filter(a=>XW({target:Jwe(a,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})).sort((a,s)=>{const u=vm(t,pk(r,TE(a,i))),c=vm(t,pk(r,TE(s,i)));return u{const r=e.axis;if(e.descriptor.mode==="virtual")return Ku(r.line,t[r.line]);const l=e.subject.page.contentBox[r.size],s=pf(e.descriptor.id,n).reduce((u,c)=>u+c.client.marginBox[r.size],0)+t[r.line]-l;return s<=0?null:Ku(r.line,s)},JW=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),eq=(e,t,n)=>{const r=e.frame;hf(t,e)&&bn(),e.subject.withPlaceholder&&bn();const l=lg(e.axis,t.displaceBy).point,i=t_e(e,l,n),o={placeholderSize:l,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const c=Hd({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return{...e,subject:c}}const a=i?Ja(r.scroll.max,i):r.scroll.max,s=JW(r,a),u=Hd({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:s});return{...e,subject:u,frame:s}},n_e=e=>{const t=e.subject.withPlaceholder;t||bn();const n=e.frame;if(!n){const o=Hd({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:o}}const r=t.oldFrameMaxScroll;r||bn();const l=JW(n,r),i=Hd({page:e.subject.page,axis:e.axis,frame:l,withPlaceholder:null});return{...e,subject:i,frame:l}};var r_e=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:n,insideDestination:r,draggable:l,draggables:i,destination:o,viewport:a,afterCritical:s}=e;if(!n){if(r.length)return null;const f={displaced:ym,displacedBy:VW,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},p=Mb({impact:f,draggable:l,droppable:o,draggables:i,afterCritical:s}),m=hf(l,o)?o:eq(o,l,i);return QW({draggable:l,destination:m,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?f:null}const u=t[o.axis.line]<=n.page.borderBox.center[o.axis.line],c=(()=>{const f=n.descriptor.index;return n.descriptor.id===l.descriptor.id||u?f:f+1})(),d=lg(o.axis,l.displaceBy);return my({draggable:l,insideDestination:r,destination:o,viewport:a,displacedBy:d,last:ym,index:c})},a_e=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:n,draggable:r,isOver:l,draggables:i,droppables:o,viewport:a,afterCritical:s}=e;const u=Qwe({isMovingForward:t,pageBorderBoxCenter:n,source:l,droppables:o,viewport:a});if(!u)return null;const c=pf(u.descriptor.id,i),d=e_e({pageBorderBoxCenter:n,viewport:a,destination:u,insideDestination:c,afterCritical:s}),f=r_e({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:c,viewport:a,afterCritical:s});if(!f)return null;const p=Mb({impact:f,draggable:r,droppable:u,draggables:i,afterCritical:s});return{clientSelection:T5({pageBorderBoxCenter:p,draggable:r,viewport:a}),impact:f,scrollJumpRequest:null}},Qo=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const o_e=(e,t)=>{const n=Qo(e);return n?t[n]:null};var i_e=e=>{let{state:t,type:n}=e;const r=o_e(t.impact,t.dimensions.droppables),l=!!r,i=t.dimensions.droppables[t.critical.droppable.id],o=r||i,a=o.axis.direction,s=a==="vertical"&&(n==="MOVE_UP"||n==="MOVE_DOWN")||a==="horizontal"&&(n==="MOVE_LEFT"||n==="MOVE_RIGHT");if(s&&!l)return null;const u=n==="MOVE_DOWN"||n==="MOVE_RIGHT",c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,{draggables:f,droppables:p}=t.dimensions;return s?Zwe({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,destination:o,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):a_e({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,isOver:o,draggables:f,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function _u(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function tq(e){const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return function(l){return t(l.y)&&n(l.x)}}function l_e(e,t){return e.leftt.left&&e.topt.top}function s_e(e){let{pageBorderBox:t,draggable:n,candidates:r}=e;const l=n.page.borderBox.center,i=r.map(o=>{const a=o.axis,s=Ku(o.axis.line,t.center[a.line],o.page.borderBox.center[a.crossAxisLine]);return{id:o.descriptor.id,distance:vm(l,s)}}).sort((o,a)=>a.distance-o.distance);return i[0]?i[0].id:null}function u_e(e){let{pageBorderBox:t,draggable:n,droppables:r}=e;const l=kb(r).filter(i=>{if(!i.isEnabled)return!1;const o=i.subject.active;if(!o||!l_e(t,o))return!1;if(tq(o)(t.center))return!0;const a=i.axis,s=o.center[a.crossAxisLine],u=t[a.crossAxisStart],c=t[a.crossAxisEnd],d=wi(o[a.crossAxisStart],o[a.crossAxisEnd]),f=d(u),p=d(c);return!f&&!p?!0:f?us});return l.length?l.length===1?l[0].descriptor.id:s_e({pageBorderBox:t,draggable:n,candidates:l}):null}const nq=(e,t)=>zi(ig(e,t));var c_e=(e,t)=>{const n=e.frame;return n?nq(t,n.scroll.diff.value):t};function rq(e){let{displaced:t,id:n}=e;return!!(t.visible[n]||t.invisible[n])}function d_e(e){let{draggable:t,closest:n,inHomeList:r}=e;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var f_e=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:n,destination:r,insideDestination:l,last:i,viewport:o,afterCritical:a}=e;const s=r.axis,u=lg(r.axis,n.displaceBy),c=u.value,d=t[s.start],f=t[s.end],m=Cb(n,l).find(b=>{const v=b.descriptor.id,h=b.page.borderBox.center[s.line],y=Xs(v,a),w=rq({displaced:i,id:v});return y?w?f<=h:d{let{draggable:t,pageBorderBoxWithDroppableScroll:n,previousImpact:r,destination:l,insideDestination:i,afterCritical:o}=e;if(!l.isCombineEnabled)return null;const a=l.axis,s=lg(l.axis,t.displaceBy),u=s.value,c=n[a.start],d=n[a.end],p=Cb(t,i).find(g=>{const b=g.descriptor.id,v=g.page.borderBox,y=v[a.size]/p_e,w=Xs(b,o),_=rq({displaced:r.displaced,id:b});return w?_?d>v[a.start]+y&&dv[a.start]-u+y&&cv[a.start]+u+y&&dv[a.start]+y&&c{let{pageOffset:t,draggable:n,draggables:r,droppables:l,previousImpact:i,viewport:o,afterCritical:a}=e;const s=nq(n.page.borderBox,t),u=u_e({pageBorderBox:s,draggable:n,droppables:l});if(!u)return Pwe;const c=l[u],d=pf(c.descriptor.id,r),f=c_e(c,s);return h_e({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:c,insideDestination:d,afterCritical:a})||f_e({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:c,insideDestination:d,last:i.displaced,viewport:o,afterCritical:a})},k5=(e,t)=>({...e,[t.descriptor.id]:t});const m_e=e=>{let{previousImpact:t,impact:n,droppables:r}=e;const l=Qo(t),i=Qo(n);if(!l||l===i)return r;const o=r[l];if(!o.subject.withPlaceholder)return r;const a=n_e(o);return k5(r,a)};var g_e=e=>{let{draggable:t,draggables:n,droppables:r,previousImpact:l,impact:i}=e;const o=m_e({previousImpact:l,impact:i,droppables:r}),a=Qo(i);if(!a)return o;const s=r[a];if(hf(t,s)||s.subject.withPlaceholder)return o;const u=eq(s,t,n);return k5(o,u)},$h=e=>{let{state:t,clientSelection:n,dimensions:r,viewport:l,impact:i,scrollJumpRequest:o}=e;const a=l||t.viewport,s=r||t.dimensions,u=n||t.current.client.selection,c=Go(u,t.initial.client.selection),d={offset:c,selection:u,borderBoxCenter:Ja(t.initial.client.borderBoxCenter,c)},f={selection:Ja(d.selection,a.scroll.current),borderBoxCenter:Ja(d.borderBoxCenter,a.scroll.current),offset:Ja(d.offset,a.scroll.diff.value)},p={client:d,page:f};if(t.phase==="COLLECTING")return{...t,dimensions:s,viewport:a,current:p};const m=s.draggables[t.critical.draggable.id],g=i||aq({pageOffset:f.offset,draggable:m,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:a,afterCritical:t.afterCritical}),b=g_e({draggable:m,impact:g,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return{...t,current:p,dimensions:{draggables:s.draggables,droppables:b},impact:g,viewport:a,scrollJumpRequest:o||null,forceShouldAnimate:o?!1:null}};function v_e(e,t){return e.map(n=>t[n])}var oq=e=>{let{impact:t,viewport:n,draggables:r,destination:l,forceShouldAnimate:i}=e;const o=t.displaced,a=v_e(o.all,r),s=bm({afterDragging:a,destination:l,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:o});return{...t,displaced:s}},iq=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,viewport:i,afterCritical:o}=e;const a=Mb({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:o});return T5({pageBorderBoxCenter:a,draggable:n,viewport:i})},lq=e=>{let{state:t,dimensions:n,viewport:r}=e;t.movementMode!=="SNAP"&&bn();const l=t.impact,i=r||t.viewport,o=n||t.dimensions,{draggables:a,droppables:s}=o,u=a[t.critical.draggable.id],c=Qo(l);c||bn();const d=s[c],f=oq({impact:l,viewport:i,destination:d,draggables:a}),p=iq({impact:f,draggable:u,droppable:d,draggables:a,viewport:i,afterCritical:t.afterCritical});return $h({impact:f,clientSelection:p,state:t,dimensions:o,viewport:i})},y_e=e=>({index:e.index,droppableId:e.droppableId}),sq=e=>{let{draggable:t,home:n,draggables:r,viewport:l}=e;const i=lg(n.axis,t.displaceBy),o=pf(n.descriptor.id,r),a=o.indexOf(t);a===-1&&bn();const s=o.slice(a+1),u=s.reduce((p,m)=>(p[m.descriptor.id]=!0,p),{}),c={inVirtualList:n.descriptor.mode==="virtual",displacedBy:i,effected:u};return{impact:{displaced:bm({afterDragging:s,destination:n,displacedBy:i,last:null,viewport:l.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:y_e(t.descriptor)}},afterCritical:c}},b_e=(e,t)=>({draggables:e.draggables,droppables:k5(e.droppables,t)}),x_e=e=>{let{draggable:t,offset:n,initialWindowScroll:r}=e;const l=dy(t.client,n),i=fy(l,r);return{...t,placeholder:{...t.placeholder,client:l},client:l,page:i}},w_e=e=>{const t=e.frame;return t||bn(),t},__e=e=>{let{additions:t,updatedDroppables:n,viewport:r}=e;const l=r.scroll.diff.value;return t.map(i=>{const o=i.descriptor.droppableId,a=n[o],u=w_e(a).scroll.diff.value,c=Ja(l,u);return x_e({draggable:i,offset:c,initialWindowScroll:r.scroll.initial})})},T_e=e=>{let{state:t,published:n}=e;const r=n.modified.map(h=>{const y=t.dimensions.droppables[h.droppableId];return y5(y,h.scroll)}),l={...t.dimensions.droppables,...UW(r)},i=HW(__e({additions:n.additions,updatedDroppables:l,viewport:t.viewport})),o={...t.dimensions.draggables,...i};n.removals.forEach(h=>{delete o[h]});const a={droppables:l,draggables:o},s=Qo(t.impact),u=s?a.droppables[s]:null,c=a.draggables[t.critical.draggable.id],d=a.droppables[t.critical.droppable.id],{impact:f,afterCritical:p}=sq({draggable:c,home:d,draggables:o,viewport:t.viewport}),m=u&&u.isCombineEnabled?t.impact:f,g=aq({pageOffset:t.current.page.offset,draggable:a.draggables[t.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:m,viewport:t.viewport,afterCritical:p}),b={...t,phase:"DRAGGING",impact:g,onLiftImpact:f,dimensions:a,afterCritical:p,forceShouldAnimate:!1};return t.phase==="COLLECTING"?b:{...b,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const hk=e=>e.movementMode==="SNAP",I_=(e,t,n)=>{const r=b_e(e.dimensions,t);return!hk(e)||n?$h({state:e,dimensions:r}):lq({state:e,dimensions:r})};function $_(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const kE={phase:"IDLE",completed:null,shouldFlush:!1};var k_e=function(e,t){if(e===void 0&&(e=kE),t.type==="FLUSH")return{...kE,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&bn();const{critical:n,clientSelection:r,viewport:l,dimensions:i,movementMode:o}=t.payload,a=i.draggables[n.draggable.id],s=i.droppables[n.droppable.id],u={selection:r,borderBoxCenter:a.client.borderBox.center,offset:za},c={client:u,page:{selection:Ja(u.selection,l.scroll.initial),borderBoxCenter:Ja(u.selection,l.scroll.initial),offset:Ja(u.selection,l.scroll.diff.value)}},d=kb(i.droppables).every(g=>!g.isFixedOnPage),{impact:f,afterCritical:p}=sq({draggable:a,home:s,draggables:i.draggables,viewport:l});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:o,dimensions:i,initial:c,current:c,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:l,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&bn(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||bn(),T_e({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;_u(e)||bn();const{client:n}=t.payload;return Us(n,e.current.client.selection)?e:$h({state:e,clientSelection:n,impact:hk(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return $_(e);_u(e)||bn();const{id:n,newScroll:r}=t.payload,l=e.dimensions.droppables[n];if(!l)return e;const i=y5(l,r);return I_(e,i,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;_u(e)||bn();const{id:n,isEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||bn(),l.isEnabled===r&&bn();const i={...l,isEnabled:r};return I_(e,i,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;_u(e)||bn();const{id:n,isCombineEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||bn(),l.isCombineEnabled===r&&bn();const i={...l,isCombineEnabled:r};return I_(e,i,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;_u(e)||bn(),e.isWindowScrollAllowed||bn();const n=t.payload.newScroll;if(Us(e.viewport.scroll.current,n))return $_(e);const r=ZW(e.viewport,n);return hk(e)?lq({state:e,viewport:r}):$h({state:e,viewport:r})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!_u(e))return e;const n=t.payload.maxScroll;if(Us(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&bn();const n=i_e({state:e,type:t.type});return n?$h({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const n=t.payload.reason;return e.phase!=="COLLECTING"&&bn(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if(t.type==="DROP_ANIMATE"){const{completed:n,dropDuration:r,newHomeClientOffset:l}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||bn(),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:l,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:n}=t.payload;return{phase:"IDLE",completed:n,shouldFlush:!1}}return e};const S_e=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),C_e=e=>({type:"LIFT",payload:e}),M_e=e=>({type:"INITIAL_PUBLISH",payload:e}),P_e=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),O_e=()=>({type:"COLLECTION_STARTING",payload:null}),A_e=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),D_e=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),E_e=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),uq=e=>({type:"MOVE",payload:e}),R_e=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),L_e=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),I_e=()=>({type:"MOVE_UP",payload:null}),$_e=()=>({type:"MOVE_DOWN",payload:null}),N_e=()=>({type:"MOVE_RIGHT",payload:null}),F_e=()=>({type:"MOVE_LEFT",payload:null}),S5=()=>({type:"FLUSH",payload:null}),j_e=e=>({type:"DROP_ANIMATE",payload:e}),C5=e=>({type:"DROP_COMPLETE",payload:e}),cq=e=>({type:"DROP",payload:e}),z_e=e=>({type:"DROP_PENDING",payload:e}),dq=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var B_e=e=>t=>{let{getState:n,dispatch:r}=t;return l=>i=>{if(i.type!=="LIFT"){l(i);return}const{id:o,clientSelection:a,movementMode:s}=i.payload,u=n();u.phase==="DROP_ANIMATING"&&r(C5({completed:u.completed})),n().phase!=="IDLE"&&bn(),r(S5()),r(S_e({draggableId:o,movementMode:s}));const d={draggableId:o,scrollOptions:{shouldPublishImmediately:s==="SNAP"}},{critical:f,dimensions:p,viewport:m}=e.startPublishing(d);r(M_e({critical:f,dimensions:p,clientSelection:a,movementMode:s,viewport:m}))}},W_e=e=>()=>t=>n=>{n.type==="INITIAL_PUBLISH"&&e.dragging(),n.type==="DROP_ANIMATE"&&e.dropping(n.payload.completed.result.reason),(n.type==="FLUSH"||n.type==="DROP_COMPLETE")&&e.resting(),t(n)};const M5={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},xm={opacity:{drop:0,combining:.7},scale:{drop:.75}},fq={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},hu=`${fq.outOfTheWay}s ${M5.outOfTheWay}`,Nh={fluid:`opacity ${hu}`,snap:`transform ${hu}, opacity ${hu}`,drop:e=>{const t=`${e}s ${M5.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${hu}`,placeholder:`height ${hu}, width ${hu}, margin ${hu}`},SE=e=>Us(e,za)?void 0:`translate(${e.x}px, ${e.y}px)`,mk={moveTo:SE,drop:(e,t)=>{const n=SE(e);if(n)return t?`${n} scale(${xm.scale.drop})`:n}},{minDropTime:gk,maxDropTime:pq}=fq,q_e=pq-gk,CE=1500,U_e=.6;var H_e=e=>{let{current:t,destination:n,reason:r}=e;const l=vm(t,n);if(l<=0)return gk;if(l>=CE)return pq;const i=l/CE,o=gk+q_e*i,a=r==="CANCEL"?o*U_e:o;return Number(a.toFixed(2))},V_e=e=>{let{impact:t,draggable:n,dimensions:r,viewport:l,afterCritical:i}=e;const{draggables:o,droppables:a}=r,s=Qo(t),u=s?a[s]:null,c=a[n.descriptor.droppableId],d=iq({impact:t,draggable:n,draggables:o,afterCritical:i,droppable:u||c,viewport:l});return Go(d,n.client.borderBox.center)},G_e=e=>{let{draggables:t,reason:n,lastImpact:r,home:l,viewport:i,onLiftImpact:o}=e;return!r.at||n!=="DROP"?{impact:oq({draggables:t,impact:o,destination:l,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:r.at.type==="REORDER"?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:ym},didDropInsideDroppable:!0}};const Y_e=e=>{let{getState:t,dispatch:n}=e;return r=>l=>{if(l.type!=="DROP"){r(l);return}const i=t(),o=l.payload.reason;if(i.phase==="COLLECTING"){n(z_e({reason:o}));return}if(i.phase==="IDLE")return;i.phase==="DROP_PENDING"&&i.isWaiting&&bn(),i.phase==="DRAGGING"||i.phase==="DROP_PENDING"||bn();const s=i.critical,u=i.dimensions,c=u.draggables[i.critical.draggable.id],{impact:d,didDropInsideDroppable:f}=G_e({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),p=f?b5(d):null,m=f?Sb(d):null,g={index:s.draggable.index,droppableId:s.droppable.id},b={draggableId:c.descriptor.id,type:c.descriptor.type,source:g,reason:o,mode:i.movementMode,destination:p,combine:m},v=V_e({impact:d,draggable:c,dimensions:u,viewport:i.viewport,afterCritical:i.afterCritical}),h={critical:i.critical,afterCritical:i.afterCritical,result:b,impact:d};if(!(!Us(i.current.client.offset,v)||!!b.combine)){n(C5({completed:h}));return}const w=H_e({current:i.current.client.offset,destination:v,reason:o});n(j_e({newHomeClientOffset:v,dropDuration:w,completed:h}))}};var X_e=Y_e,hq=()=>({x:window.pageXOffset,y:window.pageYOffset});function K_e(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function Z_e(e){let{onWindowScroll:t}=e;function n(){t(hq())}const r=gm(n),l=K_e(r);let i=qs;function o(){return i!==qs}function a(){o()&&bn(),i=vi(window,[l])}function s(){o()||bn(),r.cancel(),i(),i=qs}return{start:a,stop:s,isActive:o}}const Q_e=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",J_e=e=>{const t=Z_e({onWindowScroll:n=>{e.dispatch(R_e({newScroll:n}))}});return n=>r=>{!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&Q_e(r)&&t.stop(),n(r)}};var eTe=J_e,tTe=e=>{let t=!1,n=!1;const r=setTimeout(()=>{n=!0}),l=i=>{t||n||(t=!0,e(i),clearTimeout(r))};return l.wasCalled=()=>t,l},nTe=()=>{const e=[],t=l=>{const i=e.findIndex(a=>a.timerId===l);i===-1&&bn();const[o]=e.splice(i,1);o.callback()};return{add:l=>{const i=setTimeout(()=>t(i)),o={timerId:i,callback:l};e.push(o)},flush:()=>{if(!e.length)return;const l=[...e];e.length=0,l.forEach(i=>{clearTimeout(i.timerId),i.callback()})}}};const rTe=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,aTe=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,oTe=(e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r},wp=(e,t)=>{t()},x0=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function N_(e,t,n,r){if(!e){n(r(t));return}const l=tTe(n);e(t,{announce:l}),l.wasCalled()||n(r(t))}var iTe=(e,t)=>{const n=nTe();let r=null;const l=(d,f)=>{r&&bn(),wp("onBeforeCapture",()=>{const p=e().onBeforeCapture;p&&p({draggableId:d,mode:f})})},i=(d,f)=>{r&&bn(),wp("onBeforeDragStart",()=>{const p=e().onBeforeDragStart;p&&p(x0(d,f))})},o=(d,f)=>{r&&bn();const p=x0(d,f);r={mode:f,lastCritical:d,lastLocation:p.source,lastCombine:null},n.add(()=>{wp("onDragStart",()=>N_(e().onDragStart,p,t,ov.onDragStart))})},a=(d,f)=>{const p=b5(f),m=Sb(f);r||bn();const g=!oTe(d,r.lastCritical);g&&(r.lastCritical=d);const b=!rTe(r.lastLocation,p);b&&(r.lastLocation=p);const v=!aTe(r.lastCombine,m);if(v&&(r.lastCombine=m),!g&&!b&&!v)return;const h={...x0(d,r.mode),combine:m,destination:p};n.add(()=>{wp("onDragUpdate",()=>N_(e().onDragUpdate,h,t,ov.onDragUpdate))})},s=()=>{r||bn(),n.flush()},u=d=>{r||bn(),r=null,wp("onDragEnd",()=>N_(e().onDragEnd,d,t,ov.onDragEnd))};return{beforeCapture:l,beforeStart:i,start:o,update:a,flush:s,drop:u,abort:()=>{if(!r)return;const d={...x0(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};u(d)}}},lTe=(e,t)=>{const n=iTe(e,t);return r=>l=>i=>{if(i.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(i.payload.draggableId,i.payload.movementMode);return}if(i.type==="INITIAL_PUBLISH"){const a=i.payload.critical;n.beforeStart(a,i.payload.movementMode),l(i),n.start(a,i.payload.movementMode);return}if(i.type==="DROP_COMPLETE"){const a=i.payload.completed.result;n.flush(),l(i),n.drop(a);return}if(l(i),i.type==="FLUSH"){n.abort();return}const o=r.getState();o.phase==="DRAGGING"&&n.update(o.critical,o.impact)}};const sTe=e=>t=>n=>{if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}const r=e.getState();r.phase!=="DROP_ANIMATING"&&bn(),e.dispatch(C5({completed:r.completed}))};var uTe=sTe;const cTe=e=>{let t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return l=>i=>{if((i.type==="FLUSH"||i.type==="DROP_COMPLETE"||i.type==="DROP_ANIMATION_FINISHED")&&r(),l(i),i.type!=="DROP_ANIMATE")return;const o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(dq())}};n=requestAnimationFrame(()=>{n=null,t=vi(window,[o])})}};var dTe=cTe,fTe=e=>()=>t=>n=>{(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)},pTe=e=>{let t=!1;return()=>n=>r=>{if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;const l=r.payload.completed.result;l.combine&&e.tryShiftRecord(l.draggableId,l.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const hTe=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var mTe=e=>t=>n=>r=>{if(hTe(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);const l=t.getState();l.phase!=="DRAGGING"&&bn(),e.start(l);return}n(r),e.scroll(t.getState())};const gTe=e=>t=>n=>{if(t(n),n.type!=="PUBLISH_WHILE_DRAGGING")return;const r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(cq({reason:r.reason})))};var vTe=gTe;const yTe=AW;var bTe=e=>{let{dimensionMarshal:t,focusMarshal:n,styleMarshal:r,getResponders:l,announce:i,autoScroller:o}=e;return OW(k_e,yTe(R2e(W_e(r),fTe(t),B_e(t),X_e,uTe,dTe,vTe,mTe(o),eTe,pTe(n),lTe(l,i))))};const F_=()=>({additions:{},removals:{},modified:{}});function xTe(e){let{registry:t,callbacks:n}=e,r=F_(),l=null;const i=()=>{l||(n.collectionStarting(),l=requestAnimationFrame(()=>{l=null;const{additions:u,removals:c,modified:d}=r,f=Object.keys(u).map(g=>t.draggable.getById(g).getDimension(za)).sort((g,b)=>g.descriptor.index-b.descriptor.index),p=Object.keys(d).map(g=>{const v=t.droppable.getById(g).callbacks.getScrollWhileDragging();return{droppableId:g,scroll:v}}),m={additions:f,removals:Object.keys(c),modified:p};r=F_(),n.publish(m)}))};return{add:u=>{const c=u.descriptor.id;r.additions[c]=u,r.modified[u.descriptor.droppableId]=!0,r.removals[c]&&delete r.removals[c],i()},remove:u=>{const c=u.descriptor;r.removals[c.id]=!0,r.modified[c.droppableId]=!0,r.additions[c.id]&&delete r.additions[c.id],i()},stop:()=>{l&&(cancelAnimationFrame(l),l=null,r=F_())}}}var mq=e=>{let{scrollHeight:t,scrollWidth:n,height:r,width:l}=e;const i=Go({x:n,y:t},{x:l,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},gq=()=>{const e=document.documentElement;return e||bn(),e},vq=()=>{const e=gq();return mq({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},wTe=()=>{const e=hq(),t=vq(),n=e.y,r=e.x,l=gq(),i=l.clientWidth,o=l.clientHeight,a=r+i,s=n+o;return{frame:zi({top:n,left:r,right:a,bottom:s}),scroll:{initial:e,current:e,max:t,diff:{value:za,displacement:za}}}},_Te=e=>{let{critical:t,scrollOptions:n,registry:r}=e;const l=wTe(),i=l.scroll.current,o=t.droppable,a=r.droppable.getAllByType(o.type).map(d=>d.callbacks.getDimensionAndWatchScroll(i,n)),s=r.draggable.getAllByType(t.draggable.type).map(d=>d.getDimension(i));return{dimensions:{draggables:HW(s),droppables:UW(a)},critical:t,viewport:l}};function ME(e,t,n){return!(n.descriptor.id===t.id||n.descriptor.type!==t.type||e.droppable.getById(n.descriptor.droppableId).descriptor.mode!=="virtual")}var TTe=(e,t)=>{let n=null;const r=xTe({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),l=(f,p)=>{e.droppable.exists(f)||bn(),n&&t.updateDroppableIsEnabled({id:f,isEnabled:p})},i=(f,p)=>{n&&(e.droppable.exists(f)||bn(),t.updateDroppableIsCombineEnabled({id:f,isCombineEnabled:p}))},o=(f,p)=>{n&&(e.droppable.exists(f)||bn(),t.updateDroppableScroll({id:f,newScroll:p}))},a=(f,p)=>{n&&e.droppable.getById(f).callbacks.scroll(p)},s=()=>{if(!n)return;r.stop();const f=n.critical.droppable;e.droppable.getAllByType(f.type).forEach(p=>p.callbacks.dragStopped()),n.unsubscribe(),n=null},u=f=>{n||bn();const p=n.critical.draggable;f.type==="ADDITION"&&ME(e,p,f.value)&&r.add(f.value),f.type==="REMOVAL"&&ME(e,p,f.value)&&r.remove(f.value)};return{updateDroppableIsEnabled:l,updateDroppableIsCombineEnabled:i,scrollDroppable:a,updateDroppableScroll:o,startPublishing:f=>{n&&bn();const p=e.draggable.getById(f.draggableId),m=e.droppable.getById(p.descriptor.droppableId),g={draggable:p.descriptor,droppable:m.descriptor},b=e.subscribe(u);return n={critical:g,unsubscribe:b},_Te({critical:g,registry:e,scrollOptions:f.scrollOptions})},stopPublishing:s}},yq=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",kTe=e=>{window.scrollBy(e.x,e.y)};const STe=ja(e=>kb(e).filter(t=>!(!t.isEnabled||!t.frame))),CTe=(e,t)=>STe(t).find(r=>(r.frame||bn(),tq(r.frame.pageMarginBox)(e)))||null;var MTe=e=>{let{center:t,destination:n,droppables:r}=e;if(n){const i=r[n];return i.frame?i:null}return CTe(t,r)};const wm={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var PTe=function(e,t,n){n===void 0&&(n=()=>wm);const r=n(),l=e[t.size]*r.startFromPercentage,i=e[t.size]*r.maxScrollAtPercentage;return{startScrollingFrom:l,maxScrollValueAt:i}},bq=e=>{let{startOfRange:t,endOfRange:n,current:r}=e;const l=n-t;return l===0?0:(r-t)/l},P5=1,OTe=function(e,t,n){n===void 0&&(n=()=>wm);const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return P5;const i=1-bq({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=r.maxPixelScroll*r.ease(i);return Math.ceil(o)},ATe=(e,t,n)=>{const r=n(),l=r.durationDampening.accelerateAt,i=r.durationDampening.stopDampeningAt,o=t,a=i,u=Date.now()-o;if(u>=i)return e;if(u{let{distanceToEdge:t,thresholds:n,dragStartTime:r,shouldUseTimeDampening:l,getAutoScrollerOptions:i}=e;const o=OTe(t,n,i);return o===0?0:l?Math.max(ATe(o,r,i),P5):o},OE=e=>{let{container:t,distanceToEdges:n,dragStartTime:r,axis:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=PTe(t,l,o);return n[l.end]{let{container:t,subject:n,proposedScroll:r}=e;const l=n.height>t.height,i=n.width>t.width;return!i&&!l?r:i&&l?null:{x:i?0:r.x,y:l?0:r.y}};const ETe=qW(e=>e===0?0:e);var xq=e=>{let{dragStartTime:t,container:n,subject:r,center:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a={top:l.y-n.top,right:n.right-l.x,bottom:n.bottom-l.y,left:l.x-n.left},s=OE({container:n,distanceToEdges:a,dragStartTime:t,axis:x5,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),u=OE({container:n,distanceToEdges:a,dragStartTime:t,axis:YW,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),c=ETe({x:u,y:s});if(Us(c,za))return null;const d=DTe({container:n,subject:r,proposedScroll:c});return d?Us(d,za)?null:d:null};const RTe=qW(e=>e===0?0:e>0?1:-1),O5=(()=>{const e=(t,n)=>t<0?t:t>n?t-n:0;return t=>{let{current:n,max:r,change:l}=t;const i=Ja(n,l),o={x:e(i.x,r.x),y:e(i.y,r.y)};return Us(o,za)?null:o}})(),wq=e=>{let{max:t,current:n,change:r}=e;const l={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=RTe(r),o=O5({max:l,current:n,change:i});return!o||i.x!==0&&o.x===0||i.y!==0&&o.y===0},A5=(e,t)=>wq({current:e.scroll.current,max:e.scroll.max,change:t}),LTe=(e,t)=>{if(!A5(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return O5({current:r,max:n,change:t})},D5=(e,t)=>{const n=e.frame;return n?wq({current:n.scroll.current,max:n.scroll.max,change:t}):!1},ITe=(e,t)=>{const n=e.frame;return!n||!D5(e,t)?null:O5({current:n.scroll.current,max:n.scroll.max,change:t})};var $Te=e=>{let{viewport:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=xq({dragStartTime:l,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return a&&A5(t,a)?a:null},NTe=e=>{let{droppable:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=t.frame;if(!a)return null;const s=xq({dragStartTime:l,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return s&&D5(t,s)?s:null},AE=e=>{let{state:t,dragStartTime:n,shouldUseTimeDampening:r,scrollWindow:l,scrollDroppable:i,getAutoScrollerOptions:o}=e;const a=t.current.page.borderBoxCenter,u=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const f=t.viewport,p=$Te({dragStartTime:n,viewport:f,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});if(p){l(p);return}}const c=MTe({center:a,destination:Qo(t.impact),droppables:t.dimensions.droppables});if(!c)return;const d=NTe({dragStartTime:n,droppable:c,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});d&&i(c.descriptor.id,d)},FTe=e=>{let{scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:r=()=>wm}=e;const l=gm(t),i=gm(n);let o=null;const a=c=>{o||bn();const{shouldUseTimeDampening:d,dragStartTime:f}=o;AE({state:c,scrollWindow:l,scrollDroppable:i,dragStartTime:f,shouldUseTimeDampening:d,getAutoScrollerOptions:r})};return{start:c=>{o&&bn();const d=Date.now();let f=!1;const p=()=>{f=!0};AE({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:p,scrollDroppable:p,getAutoScrollerOptions:r}),o={dragStartTime:d,shouldUseTimeDampening:f},f&&a(c)},stop:()=>{o&&(l.cancel(),i.cancel(),o=null)},scroll:a}},jTe=e=>{let{move:t,scrollDroppable:n,scrollWindow:r}=e;const l=(s,u)=>{const c=Ja(s.current.client.selection,u);t({client:c})},i=(s,u)=>{if(!D5(s,u))return u;const c=ITe(s,u);if(!c)return n(s.descriptor.id,u),null;const d=Go(u,c);return n(s.descriptor.id,d),Go(u,d)},o=(s,u,c)=>{if(!s||!A5(u,c))return c;const d=LTe(u,c);if(!d)return r(c),null;const f=Go(c,d);return r(f),Go(c,f)};return s=>{const u=s.scrollJumpRequest;if(!u)return;const c=Qo(s.impact);c||bn();const d=i(s.dimensions.droppables[c],u);if(!d)return;const f=s.viewport,p=o(s.isWindowScrollAllowed,f,d);p&&l(s,p)}},zTe=e=>{let{scrollDroppable:t,scrollWindow:n,move:r,getAutoScrollerOptions:l}=e;const i=FTe({scrollWindow:n,scrollDroppable:t,getAutoScrollerOptions:l}),o=jTe({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:u=>{if(!(l().disabled||u.phase!=="DRAGGING")){if(u.movementMode==="FLUID"){i.scroll(u);return}u.scrollJumpRequest&&o(u)}},start:i.start,stop:i.stop}};const Vd="data-rfd",Gd=(()=>{const e=`${Vd}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),vk=(()=>{const e=`${Vd}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),BTe=(()=>{const e=`${Vd}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),DE={contextId:`${Vd}-scroll-container-context-id`},WTe=e=>t=>`[${t}="${e}"]`,_p=(e,t)=>e.map(n=>{const r=n.styles[t];return r?`${n.selector} { ${r} }`:""}).join(" "),qTe="pointer-events: none;";var UTe=e=>{const t=WTe(e),n=(()=>{const a=` cursor: -webkit-grab; cursor: grab; - `;return{selector:t(Yd.contextId),styles:{always:` + `;return{selector:t(Gd.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; - `,resting:a,dragging:VTe,dropAnimating:a}}})(),r=(()=>{const a=` - transition: ${Fh.outOfTheWay}; - `;return{selector:t(yk.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}})(),l={selector:t(UTe.contextId),styles:{always:"overflow-anchor: none;"}},o=[r,n,l,{selector:"body",styles:{dragging:` + `,resting:a,dragging:qTe,dropAnimating:a}}})(),r=(()=>{const a=` + transition: ${Nh.outOfTheWay}; + `;return{selector:t(vk.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}})(),l={selector:t(BTe.contextId),styles:{always:"overflow-anchor: none;"}},o=[r,n,l,{selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; @@ -535,8 +535,8 @@ ${L.current.stack} -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}}];return{always:Tp(o,"always"),resting:Tp(o,"resting"),dragging:Tp(o,"dragging"),dropAnimating:Tp(o,"dropAnimating"),userCancel:Tp(o,"userCancel")}};const YTe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ge.useLayoutEffect:ge.useEffect;var Jo=YTe;const z_=()=>{const e=document.querySelector("head");return e||bn(),e},EE=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function XTe(e,t){const n=ir(()=>GTe(e),[e]),r=ge.useRef(null),l=ge.useRef(null),i=Nn(ja(d=>{const f=l.current;f||bn(),f.textContent=d}),[]),o=Nn(d=>{const f=r.current;f||bn(),f.textContent=d},[]);Jo(()=>{!r.current&&!l.current||bn();const d=EE(t),f=EE(t);return r.current=d,l.current=f,d.setAttribute(`${Gd}-always`,e),f.setAttribute(`${Gd}-dynamic`,e),z_().appendChild(d),z_().appendChild(f),o(n.always),i(n.resting),()=>{const p=m=>{const g=m.current;g||bn(),z_().removeChild(g),m.current=null};p(r),p(l)}},[t,o,i,n.always,n.resting,e]);const a=Nn(()=>i(n.dragging),[i,n.dragging]),s=Nn(d=>{if(d==="DROP"){i(n.dropAnimating);return}i(n.userCancel)},[i,n.dropAnimating,n.userCancel]),u=Nn(()=>{l.current&&i(n.resting)},[i,n.resting]);return ir(()=>({dragging:a,dropping:s,resting:u}),[a,s,u])}function Tq(e,t){return Array.from(e.querySelectorAll(t))}var kq=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function Ob(e){return e instanceof kq(e).HTMLElement}function KTe(e,t){const n=`[${Yd.contextId}="${e}"]`,r=Tq(document,n);if(!r.length)return null;const l=r.find(i=>i.getAttribute(Yd.draggableId)===t);return!l||!Ob(l)?null:l}function ZTe(e){const t=ge.useRef({}),n=ge.useRef(null),r=ge.useRef(null),l=ge.useRef(!1),i=Nn(function(f,p){const m={id:f,focus:p};return t.current[f]=m,function(){const b=t.current;b[f]!==m&&delete b[f]}},[]),o=Nn(function(f){const p=KTe(e,f);p&&p!==document.activeElement&&p.focus()},[e]),a=Nn(function(f,p){n.current===f&&(n.current=p)},[]),s=Nn(function(){r.current||l.current&&(r.current=requestAnimationFrame(()=>{r.current=null;const f=n.current;f&&o(f)}))},[o]),u=Nn(function(f){n.current=null;const p=document.activeElement;p&&p.getAttribute(Yd.draggableId)===f&&(n.current=f)},[]);return Jo(()=>(l.current=!0,function(){l.current=!1;const f=r.current;f&&cancelAnimationFrame(f)}),[]),ir(()=>({register:i,tryRecordFocus:u,tryRestoreFocusRecorded:s,tryShiftRecord:a}),[i,u,s,a])}function QTe(){const e={draggables:{},droppables:{}},t=[];function n(d){return t.push(d),function(){const p=t.indexOf(d);p!==-1&&t.splice(p,1)}}function r(d){t.length&&t.forEach(f=>f(d))}function l(d){return e.draggables[d]||null}function i(d){const f=l(d);return f||bn(),f}const o={register:d=>{e.draggables[d.descriptor.id]=d,r({type:"ADDITION",value:d})},update:(d,f)=>{const p=e.draggables[f.descriptor.id];p&&p.uniqueId===d.uniqueId&&(delete e.draggables[f.descriptor.id],e.draggables[d.descriptor.id]=d)},unregister:d=>{const f=d.descriptor.id,p=l(f);p&&d.uniqueId===p.uniqueId&&(delete e.draggables[f],e.droppables[d.descriptor.droppableId]&&r({type:"REMOVAL",value:d}))},getById:i,findById:l,exists:d=>!!l(d),getAllByType:d=>Object.values(e.draggables).filter(f=>f.descriptor.type===d)};function a(d){return e.droppables[d]||null}function s(d){const f=a(d);return f||bn(),f}const u={register:d=>{e.droppables[d.descriptor.id]=d},unregister:d=>{const f=a(d.descriptor.id);f&&d.uniqueId===f.uniqueId&&delete e.droppables[d.descriptor.id]},getById:s,findById:a,exists:d=>!!a(d),getAllByType:d=>Object.values(e.droppables).filter(f=>f.descriptor.type===d)};function c(){e.draggables={},e.droppables={},t.length=0}return{draggable:o,droppable:u,subscribe:n,clean:c}}function JTe(){const e=ir(QTe,[]);return ge.useEffect(()=>function(){Qe.version.startsWith("16")||Qe.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var E5=Qe.createContext(null),vy=()=>{const e=document.body;return e||bn(),e};const e3e={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var t3e=e3e;const n3e=e=>`rfd-announcement-${e}`;function r3e(e){const t=ir(()=>n3e(e),[e]),n=ge.useRef(null);return ge.useEffect(function(){const i=document.createElement("div");return n.current=i,i.id=t,i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true"),Ie(i.style,t3e),vy().appendChild(i),function(){setTimeout(function(){const s=vy();s.contains(i)&&s.removeChild(i),i===n.current&&(n.current=null)})}},[t]),Nn(l=>{const i=n.current;if(i){i.textContent=l;return}},[])}let Sq=0;const Cq={separator:"::"};function a3e(){Sq=0}function o3e(e,t){return t===void 0&&(t=Cq),ir(()=>`${e}${t.separator}${Sq++}`,[t.separator,e])}function i3e(e,t){t===void 0&&(t=Cq);const n=Qe.useId();return ir(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}var R5="useId"in Qe?i3e:o3e;function l3e(e){let{contextId:t,uniqueId:n}=e;return`rfd-hidden-text-${t}-${n}`}function s3e(e){let{contextId:t,text:n}=e;const r=R5("hidden-text",{separator:"-"}),l=ir(()=>l3e({contextId:t,uniqueId:r}),[r,t]);return ge.useEffect(function(){const o=document.createElement("div");return o.id=l,o.textContent=n,o.style.display="none",vy().appendChild(o),function(){const s=vy();s.contains(o)&&s.removeChild(o)}},[l,n]),l}var Ab=Qe.createContext(null);function Mq(e){const t=ge.useRef(e);return ge.useEffect(()=>{t.current=e}),t}function u3e(){let e=null;function t(){return!!e}function n(o){return o===e}function r(o){e&&bn();const a={abandon:o};return e=a,a}function l(){e||bn(),e=null}function i(){e&&(e.abandon(),l())}return{isClaimed:t,isActive:n,claim:r,release:l,tryAbandon:i}}function Tm(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const c3e=9,d3e=13,L5=27,Pq=32,f3e=33,p3e=34,h3e=35,m3e=36,g3e=37,v3e=38,y3e=39,b3e=40,x3e={[d3e]:!0,[c3e]:!0};var Oq=e=>{x3e[e.keyCode]&&e.preventDefault()};const w3e=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(r=>`on${r}`in document)||e})();var Db=w3e;const Aq=0,RE=5;function _3e(e,t){return Math.abs(t.x-e.x)>=RE||Math.abs(t.y-e.y)>=RE}const LE={type:"IDLE"};function T3e(e){let{cancel:t,completed:n,getPhase:r,setPhase:l}=e;return[{eventName:"mousemove",fn:i=>{const{button:o,clientX:a,clientY:s}=i;if(o!==Aq)return;const u={x:a,y:s},c=r();if(c.type==="DRAGGING"){i.preventDefault(),c.actions.move(u);return}c.type!=="PENDING"&&bn();const d=c.point;if(!_3e(d,u))return;i.preventDefault();const f=c.actions.fluidLift(u);l({type:"DRAGGING",actions:f})}},{eventName:"mouseup",fn:i=>{const o=r();if(o.type!=="DRAGGING"){t();return}i.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:i=>{r().type==="DRAGGING"&&i.preventDefault(),t()}},{eventName:"keydown",fn:i=>{if(r().type==="PENDING"){t();return}if(i.keyCode===L5){i.preventDefault(),t();return}Oq(i)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:i=>{const o=r();if(o.type==="IDLE"&&bn(),o.actions.shouldRespectForcePress()){t();return}i.preventDefault()}},{eventName:Db,fn:t}]}function Dq(e){const t=ge.useRef(LE),n=ge.useRef(qs),r=ir(()=>({eventName:"mousedown",fn:function(d){if(d.defaultPrevented||d.button!==Aq||d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)return;const f=e.findClosestDraggableId(d);if(!f)return;const p=e.tryGetLock(f,o,{sourceEvent:d});if(!p)return;d.preventDefault();const m={x:d.clientX,y:d.clientY};n.current(),u(p,m)}}),[e]),l=ir(()=>({eventName:"webkitmouseforcewillbegin",fn:c=>{if(c.defaultPrevented)return;const d=e.findClosestDraggableId(c);if(!d)return;const f=e.findOptionsForDraggable(d);f&&(f.shouldRespectForcePress||e.canGetLock(d)&&c.preventDefault())}}),[e]),i=Nn(function(){const d={passive:!1,capture:!0};n.current=vi(window,[l,r],d)},[l,r]),o=Nn(()=>{t.current.type!=="IDLE"&&(t.current=LE,n.current(),i())},[i]),a=Nn(()=>{const c=t.current;o(),c.type==="DRAGGING"&&c.actions.cancel({shouldBlockNextClick:!0}),c.type==="PENDING"&&c.actions.abort()},[o]),s=Nn(function(){const d={capture:!0,passive:!1},f=T3e({cancel:a,completed:o,getPhase:()=>t.current,setPhase:p=>{t.current=p}});n.current=vi(window,f,d)},[a,o]),u=Nn(function(d,f){t.current.type!=="IDLE"&&bn(),t.current={type:"PENDING",point:f,actions:d},s()},[s]);Jo(function(){return i(),function(){n.current()}},[i])}function k3e(){}const S3e={[p3e]:!0,[f3e]:!0,[m3e]:!0,[h3e]:!0};function C3e(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:l=>{if(l.keyCode===L5){l.preventDefault(),n();return}if(l.keyCode===Pq){l.preventDefault(),r();return}if(l.keyCode===b3e){l.preventDefault(),e.moveDown();return}if(l.keyCode===v3e){l.preventDefault(),e.moveUp();return}if(l.keyCode===y3e){l.preventDefault(),e.moveRight();return}if(l.keyCode===g3e){l.preventDefault(),e.moveLeft();return}if(S3e[l.keyCode]){l.preventDefault();return}Oq(l)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Db,fn:n}]}function Eq(e){const t=ge.useRef(k3e),n=ir(()=>({eventName:"keydown",fn:function(i){if(i.defaultPrevented||i.keyCode!==Pq)return;const o=e.findClosestDraggableId(i);if(!o)return;const a=e.tryGetLock(o,c,{sourceEvent:i});if(!a)return;i.preventDefault();let s=!0;const u=a.snapLift();t.current();function c(){s||bn(),s=!1,t.current(),r()}t.current=vi(window,C3e(u,c),{capture:!0,passive:!1})}}),[e]),r=Nn(function(){const i={passive:!1,capture:!0};t.current=vi(window,[n],i)},[n]);Jo(function(){return r(),function(){t.current()}},[r])}const B_={type:"IDLE"},M3e=120,P3e=.15;function O3e(e){let{cancel:t,getPhase:n}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:r=>{r.preventDefault()}},{eventName:"keydown",fn:r=>{if(n().type!=="DRAGGING"){t();return}r.keyCode===L5&&r.preventDefault(),t()}},{eventName:Db,fn:t}]}function A3e(e){let{cancel:t,completed:n,getPhase:r}=e;return[{eventName:"touchmove",options:{capture:!1},fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}i.hasMoved=!0;const{clientX:o,clientY:a}=l.touches[0],s={x:o,y:a};l.preventDefault(),i.actions.move(s)}},{eventName:"touchend",fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}l.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:l=>{if(r().type!=="DRAGGING"){t();return}l.preventDefault(),t()}},{eventName:"touchforcechange",fn:l=>{const i=r();i.type==="IDLE"&&bn();const o=l.touches[0];if(!o||!(o.force>=P3e))return;const s=i.actions.shouldRespectForcePress();if(i.type==="PENDING"){s&&t();return}if(s){if(i.hasMoved){l.preventDefault();return}t();return}l.preventDefault()}},{eventName:Db,fn:t}]}function Rq(e){const t=ge.useRef(B_),n=ge.useRef(qs),r=Nn(function(){return t.current},[]),l=Nn(function(p){t.current=p},[]),i=ir(()=>({eventName:"touchstart",fn:function(p){if(p.defaultPrevented)return;const m=e.findClosestDraggableId(p);if(!m)return;const g=e.tryGetLock(m,a,{sourceEvent:p});if(!g)return;const b=p.touches[0],{clientX:v,clientY:h}=b,y={x:v,y:h};n.current(),d(g,y)}}),[e]),o=Nn(function(){const p={capture:!0,passive:!1};n.current=vi(window,[i],p)},[i]),a=Nn(()=>{const f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),l(B_),n.current(),o())},[o,l]),s=Nn(()=>{const f=t.current;a(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[a]),u=Nn(function(){const p={capture:!0,passive:!1},m={cancel:s,completed:a,getPhase:r},g=vi(window,A3e(m),p),b=vi(window,O3e(m),p);n.current=function(){g(),b()}},[s,r,a]),c=Nn(function(){const p=r();p.type!=="PENDING"&&bn();const m=p.actions.fluidLift(p.point);l({type:"DRAGGING",actions:m,hasMoved:!1})},[r,l]),d=Nn(function(p,m){r().type!=="IDLE"&&bn();const g=setTimeout(c,M3e);l({type:"PENDING",point:m,actions:p,longPressTimerId:g}),u()},[u,r,l,c]);Jo(function(){return o(),function(){n.current();const m=r();m.type==="PENDING"&&(clearTimeout(m.longPressTimerId),l(B_))}},[r,o,l]),Jo(function(){return vi(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const D3e=["input","button","textarea","select","option","optgroup","video","audio"];function Lq(e,t){if(t==null)return!1;if(D3e.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:Lq(e,t.parentElement)}function E3e(e,t){const n=t.target;return Ob(n)?Lq(e,n):!1}var R3e=e=>zi(e.getBoundingClientRect()).center;function L3e(e){return e instanceof kq(e).Element}const I3e=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(r=>r in Element.prototype)||e})();function Iq(e,t){return e==null?null:e[I3e](t)?e:Iq(e.parentElement,t)}function $3e(e,t){return e.closest?e.closest(t):Iq(e,t)}function N3e(e){return`[${Yd.contextId}="${e}"]`}function F3e(e,t){const n=t.target;if(!L3e(n))return null;const r=N3e(e),l=$3e(n,r);return!l||!Ob(l)?null:l}function j3e(e,t){const n=F3e(e,t);return n?n.getAttribute(Yd.draggableId):null}function z3e(e,t){const n=`[${yk.contextId}="${e}"]`,l=Tq(document,n).find(i=>i.getAttribute(yk.id)===t);return!l||!Ob(l)?null:l}function B3e(e){e.preventDefault()}function w0(e){let{expected:t,phase:n,isLockActive:r,shouldWarn:l}=e;return!(!r()||t!==n)}function $q(e){let{lockAPI:t,store:n,registry:r,draggableId:l}=e;if(t.isClaimed())return!1;const i=r.draggable.findById(l);return!(!i||!i.options.isEnabled||!bq(n.getState(),l))}function W3e(e){let{lockAPI:t,contextId:n,store:r,registry:l,draggableId:i,forceSensorStop:o,sourceEvent:a}=e;if(!$q({lockAPI:t,store:r,registry:l,draggableId:i}))return null;const u=l.draggable.getById(i),c=z3e(n,u.descriptor.id);if(!c||a&&!u.options.canDragInteractiveElements&&E3e(c,a))return null;const d=t.claim(o||qs);let f="PRE_DRAG";function p(){return u.options.shouldRespectForcePress}function m(){return t.isActive(d)}function g(x,T){w0({expected:x,phase:f,isLockActive:m,shouldWarn:!0})&&r.dispatch(T())}const b=g.bind(null,"DRAGGING");function v(x){function T(){t.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(T(),bn()),r.dispatch(O_e(x.liftActionArgs)),f="DRAGGING";function k(S,C){if(C===void 0&&(C={shouldBlockNextClick:!1}),x.cleanup(),C.shouldBlockNextClick){const M=vi(window,[{eventName:"click",fn:B3e,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(M)}T(),r.dispatch(dq({reason:S}))}return{isActive:()=>w0({expected:"DRAGGING",phase:f,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:p,drop:S=>k("DROP",S),cancel:S=>k("CANCEL",S),...x.actions}}function h(x){const T=vm(S=>{b(()=>cq({client:S}))});return{...v({liftActionArgs:{id:i,clientSelection:x,movementMode:"FLUID"},cleanup:()=>T.cancel(),actions:{move:T}}),move:T}}function y(){const x={moveUp:()=>b(F_e),moveRight:()=>b(z_e),moveDown:()=>b(j_e),moveLeft:()=>b(B_e)};return v({liftActionArgs:{id:i,clientSelection:R3e(c),movementMode:"SNAP"},cleanup:qs,actions:x})}function w(){w0({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!0})&&t.release()}return{isActive:()=>w0({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:p,fluidLift:h,snapLift:y,abort:w}}const q3e=[Dq,Eq,Rq];function U3e(e){let{contextId:t,store:n,registry:r,customSensors:l,enableDefaultSensors:i}=e;const o=[...i?q3e:[],...l||[]],a=ge.useState(()=>u3e())[0],s=Nn(function(v,h){Tm(v)&&!Tm(h)&&a.tryAbandon()},[a]);Jo(function(){let v=n.getState();return n.subscribe(()=>{const y=n.getState();s(v,y),v=y})},[a,n,s]),Jo(()=>a.tryAbandon,[a.tryAbandon]);const u=Nn(b=>$q({lockAPI:a,registry:r,store:n,draggableId:b}),[a,r,n]),c=Nn((b,v,h)=>W3e({lockAPI:a,registry:r,contextId:t,store:n,draggableId:b,forceSensorStop:v||null,sourceEvent:h&&h.sourceEvent?h.sourceEvent:null}),[t,a,r,n]),d=Nn(b=>j3e(t,b),[t]),f=Nn(b=>{const v=r.draggable.findById(b);return v?v.options:null},[r.draggable]),p=Nn(function(){a.isClaimed()&&(a.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(S5()))},[a,n]),m=Nn(()=>a.isClaimed(),[a]),g=ir(()=>({canGetLock:u,tryGetLock:c,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:m}),[u,c,d,f,p,m]);for(let b=0;b({onBeforeCapture:t=>{const n=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};Qe.version.startsWith("16")||Qe.version.startsWith("17")?n():dc.flushSync(n)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),V3e=e=>({..._m,...e.autoScrollerOptions,durationDampening:{..._m.durationDampening,...e.autoScrollerOptions}});function kp(e){return e.current||bn(),e.current}function G3e(e){const{contextId:t,setCallbacks:n,sensors:r,nonce:l,dragHandleUsageInstructions:i}=e,o=ge.useRef(null),a=Mq(e),s=Nn(()=>H3e(a.current),[a]),u=Nn(()=>V3e(a.current),[a]),c=r3e(t),d=s3e({contextId:t,text:i}),f=XTe(t,l),p=Nn(C=>{kp(o).dispatch(C)},[]),m=ir(()=>sE({publishWhileDragging:D_e,updateDroppableScroll:R_e,updateDroppableIsEnabled:L_e,updateDroppableIsCombineEnabled:I_e,collectionStarting:E_e},p),[p]),g=JTe(),b=ir(()=>CTe(g,m),[g,m]),v=ir(()=>qTe({scrollWindow:MTe,scrollDroppable:b.scrollDroppable,getAutoScrollerOptions:u,...sE({move:cq},p)}),[b.scrollDroppable,p,u]),h=ZTe(t),y=ir(()=>_Te({announce:c,autoScroller:v,dimensionMarshal:b,focusMarshal:h,getResponders:s,styleMarshal:f}),[c,v,b,h,s,f]);o.current=y;const w=Nn(()=>{const C=kp(o);C.getState().phase!=="IDLE"&&C.dispatch(S5())},[]),_=Nn(()=>{const C=kp(o).getState();return C.phase==="DROP_ANIMATING"?!0:C.phase==="IDLE"?!1:C.isDragging},[]),x=ir(()=>({isDragging:_,tryAbort:w}),[_,w]);n(x);const T=Nn(C=>bq(kp(o).getState(),C),[]),k=Nn(()=>Tu(kp(o).getState()),[]),S=ir(()=>({marshal:b,focus:h,contextId:t,canLift:T,isMovementAllowed:k,dragHandleUsageInstructionsId:d,registry:g}),[t,b,d,h,T,k,g]);return U3e({contextId:t,store:y,registry:g,customSensors:r||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),ge.useEffect(()=>w,[w]),Qe.createElement(Ab.Provider,{value:S},Qe.createElement(iwe,{context:E5,store:y},e.children))}let Nq=0;function Y3e(){Nq=0}function X3e(){return ir(()=>`${Nq++}`,[])}function K3e(){return Qe.useId()}var Z3e="useId"in Qe?K3e:X3e;function Q3e(){"useId"in Qe||(Y3e(),a3e())}function J3e(e){const t=Z3e(),n=e.dragHandleUsageInstructions||ov.dragHandleUsageInstructions;return Qe.createElement(vwe,null,r=>Qe.createElement(G3e,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const IE={dragging:5e3,dropAnimating:4500},eke=(e,t)=>t?Fh.drop(t.duration):e?Fh.snap:Fh.fluid,tke=(e,t)=>{if(e)return t?wm.opacity.drop:wm.opacity.combining},nke=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function rke(e){const n=e.dimension.client,{offset:r,combineWith:l,dropping:i}=e,o=!!l,a=nke(e),s=!!i,u=s?gk.drop(r,o):gk.moveTo(r);return{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:eke(a,i),transform:u,opacity:tke(o,s),zIndex:s?IE.dropAnimating:IE.dragging,pointerEvents:"none"}}function ake(e){return{transform:gk.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function oke(e){return e.type==="DRAGGING"?rke(e):ake(e)}function ike(e,t,n){n===void 0&&(n=za);const r=window.getComputedStyle(t),l=t.getBoundingClientRect(),i=jW(l,r),o=py(i,n),a={client:i,tagName:t.tagName.toLowerCase(),display:r.display},s={x:i.marginBox.width,y:i.marginBox.height};return{descriptor:e,placeholder:a,displaceBy:s,client:i,page:o}}function lke(e){const t=R5("draggable"),{descriptor:n,registry:r,getDraggableRef:l,canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}=e,s=ir(()=>({canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}),[i,a,o]),u=Nn(p=>{const m=l();return m||bn(),ike(n,m,p)},[n,l]),c=ir(()=>({uniqueId:t,descriptor:n,options:s,getDimension:u}),[n,u,s,t]),d=ge.useRef(c),f=ge.useRef(!0);Jo(()=>(r.draggable.register(d.current),()=>r.draggable.unregister(d.current)),[r.draggable]),Jo(()=>{if(f.current){f.current=!1;return}const p=d.current;d.current=c,r.draggable.update(c,p)},[c,r.draggable])}var I5=Qe.createContext(null);function yy(e){const t=ge.useContext(e);return t||bn(),t}function ske(e){e.preventDefault()}const uke=e=>{const t=ge.useRef(null),n=Nn(function(x){x===void 0&&(x=null),t.current=x},[]),r=Nn(()=>t.current,[]),{contextId:l,dragHandleUsageInstructionsId:i,registry:o}=yy(Ab),{type:a,droppableId:s}=yy(I5),u=ir(()=>({id:e.draggableId,index:e.index,type:a,droppableId:s}),[e.draggableId,e.index,a,s]),{children:c,draggableId:d,isEnabled:f,shouldRespectForcePress:p,canDragInteractiveElements:m,isClone:g,mapped:b,dropAnimationFinished:v}=e;if(!g){const x=ir(()=>({descriptor:u,registry:o,getDraggableRef:r,canDragInteractiveElements:m,shouldRespectForcePress:p,isEnabled:f}),[u,o,r,m,p,f]);lke(x)}const h=ir(()=>f?{tabIndex:0,role:"button","aria-describedby":i,"data-rfd-drag-handle-draggable-id":d,"data-rfd-drag-handle-context-id":l,draggable:!1,onDragStart:ske}:null,[l,i,d,f]),y=Nn(x=>{b.type==="DRAGGING"&&b.dropping&&x.propertyName==="transform"&&(Qe.version.startsWith("16")||Qe.version.startsWith("17")?v():dc.flushSync(v))},[v,b]),w=ir(()=>{const x=oke(b),T=b.type==="DRAGGING"&&b.dropping?y:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":l,"data-rfd-draggable-id":d,style:x,onTransitionEnd:T},dragHandleProps:h}},[l,h,d,b,y,n]),_=ir(()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}),[u.droppableId,u.id,u.index,u.type]);return Qe.createElement(Qe.Fragment,null,c(w,b.snapshot,_))};var cke=uke,Fq=(e,t)=>e===t,jq=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};const dke=e=>e.combine?e.combine.draggableId:null,fke=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function pke(){const e=ja((l,i)=>({x:l,y:i})),t=ja(function(l,i,o,a,s){return o===void 0&&(o=null),a===void 0&&(a=null),s===void 0&&(s=null),{isDragging:!0,isClone:i,isDropAnimating:!!s,dropAnimation:s,mode:l,draggingOver:o,combineWith:a,combineTargetFor:null}}),n=ja(function(l,i,o,a,s,u,c){return s===void 0&&(s=null),u===void 0&&(u=null),c===void 0&&(c=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:u,mode:i,offset:l,dimension:o,forceShouldAnimate:c,snapshot:t(i,a,s,u,null)}}});return(l,i)=>{if(Tm(l)){if(l.critical.draggable.id!==i.draggableId)return null;const o=l.current.client.offset,a=l.dimensions.draggables[i.draggableId],s=Qo(l.impact),u=fke(l.impact),c=l.forceShouldAnimate;return n(e(o.x,o.y),l.movementMode,a,i.isClone,s,u,c)}if(l.phase==="DROP_ANIMATING"){const o=l.completed;if(o.result.draggableId!==i.draggableId)return null;const a=i.isClone,s=l.dimensions.draggables[i.draggableId],u=o.result,c=u.mode,d=jq(u),f=dke(u),m={duration:l.dropDuration,curve:M5.drop,moveTo:l.newHomeClientOffset,opacity:f?wm.opacity.drop:null,scale:f?wm.scale.drop:null};return{mapped:{type:"DRAGGING",offset:l.newHomeClientOffset,dimension:s,dropping:m,draggingOver:d,combineWith:f,mode:c,forceShouldAnimate:null,snapshot:t(c,a,d,f,m)}}}return null}}function zq(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const hke={mapped:{type:"SECONDARY",offset:za,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:zq(null)}};function mke(){const e=ja((o,a)=>({x:o,y:a})),t=ja(zq),n=ja(function(o,a,s){return a===void 0&&(a=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:a,shouldAnimateDisplacement:s,snapshot:t(a)}}}),r=o=>o?n(za,o,!0):null,l=(o,a,s,u)=>{const c=s.displaced.visible[o],d=!!(u.inVirtualList&&u.effected[o]),f=Cb(s),p=f&&f.draggableId===o?a:null;if(!c){if(!d)return r(p);if(s.displaced.invisible[o])return null;const b=pf(u.displacedBy.point),v=e(b.x,b.y);return n(v,p,!0)}if(d)return r(p);const m=s.displacedBy.point,g=e(m.x,m.y);return n(g,p,c.shouldAnimate)};return(o,a)=>{if(Tm(o))return o.critical.draggable.id===a.draggableId?null:l(a.draggableId,o.critical.draggable.id,o.impact,o.afterCritical);if(o.phase==="DROP_ANIMATING"){const s=o.completed;return s.result.draggableId===a.draggableId?null:l(a.draggableId,s.result.draggableId,s.impact,s.afterCritical)}return null}}const gke=()=>{const e=pke(),t=mke();return(r,l)=>e(r,l)||t(r,l)||hke},vke={dropAnimationFinished:fq},yke=NW(gke,vke,null,{context:E5,areStatePropsEqual:Fq})(cke);var bke=yke;function Bq(e){return yy(I5).isUsingCloneFor===e.draggableId&&!e.isClone?null:Qe.createElement(bke,e)}function xke(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return Qe.createElement(Bq,Ie({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}const Wq=e=>t=>e===t,wke=Wq("scroll"),_ke=Wq("auto"),$E=(e,t)=>t(e.overflowX)||t(e.overflowY),Tke=e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return $E(n,wke)||$E(n,_ke)},kke=()=>!1,qq=e=>e==null?null:e===document.body?kke()?e:null:e===document.documentElement?null:Tke(e)?e:qq(e.parentElement);var Ske=qq,bk=e=>({x:e.scrollLeft,y:e.scrollTop});const Uq=e=>e?window.getComputedStyle(e).position==="fixed"?!0:Uq(e.parentElement):!1;var Cke=e=>{const t=Ske(e),n=Uq(e);return{closestScrollable:t,isFixedOnPage:n}},Mke=e=>{let{descriptor:t,isEnabled:n,isCombineEnabled:r,isFixedOnPage:l,direction:i,client:o,page:a,closest:s}=e;const u=(()=>{if(!s)return null;const{scrollSize:p,client:m}=s,g=gq({scrollHeight:p.scrollHeight,scrollWidth:p.scrollWidth,height:m.paddingBox.height,width:m.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:m,scrollSize:p,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:g,diff:{value:za,displacement:za}}}})(),c=i==="vertical"?x5:XW,d=Vd({page:a,withPlaceholder:null,axis:c,frame:u});return{descriptor:t,isCombineEnabled:r,isFixedOnPage:l,axis:c,isEnabled:n,client:o,page:a,frame:u,subject:d}};const Pke=(e,t)=>{const n=zW(e);if(!t||e!==t)return n;const r=n.paddingBox.top-t.scrollTop,l=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,o=l+t.scrollWidth,s=g5({top:r,right:o,bottom:i,left:l},n.border);return v5({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})};var Oke=e=>{let{ref:t,descriptor:n,env:r,windowScroll:l,direction:i,isDropDisabled:o,isCombineEnabled:a,shouldClipSubject:s}=e;const u=r.closestScrollable,c=Pke(t,u),d=py(c,l),f=(()=>{if(!u)return null;const m=zW(u),g={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:m,page:py(m,l),scroll:bk(u),scrollSize:g,shouldClipSubject:s}})();return Mke({descriptor:n,isEnabled:!o,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:d,closest:f})};const Ake={passive:!1},Dke={passive:!0};var NE=e=>e.shouldPublishImmediately?Ake:Dke;const _0=e=>e&&e.env.closestScrollable||null;function Eke(e){const t=ge.useRef(null),n=yy(Ab),r=R5("droppable"),{registry:l,marshal:i}=n,o=Mq(e),a=ir(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),s=ge.useRef(a),u=ir(()=>ja((w,_)=>{t.current||bn();const x={x:w,y:_};i.updateDroppableScroll(a.id,x)}),[a.id,i]),c=Nn(()=>{const w=t.current;return!w||!w.env.closestScrollable?za:bk(w.env.closestScrollable)},[]),d=Nn(()=>{const w=c();u(w.x,w.y)},[c,u]),f=ir(()=>vm(d),[d]),p=Nn(()=>{const w=t.current,_=_0(w);if(w&&_||bn(),w.scrollOptions.shouldPublishImmediately){d();return}f()},[f,d]),m=Nn((w,_)=>{t.current&&bn();const x=o.current,T=x.getDroppableRef();T||bn();const k=Cke(T),S={ref:T,descriptor:a,env:k,scrollOptions:_};t.current=S;const C=Oke({ref:T,descriptor:a,env:k,windowScroll:w,direction:x.direction,isDropDisabled:x.isDropDisabled,isCombineEnabled:x.isCombineEnabled,shouldClipSubject:!x.ignoreContainerClipping}),M=k.closestScrollable;return M&&(M.setAttribute(DE.contextId,n.contextId),M.addEventListener("scroll",p,NE(S.scrollOptions))),C},[n.contextId,a,p,o]),g=Nn(()=>{const w=t.current,_=_0(w);return w&&_||bn(),bk(_)},[]),b=Nn(()=>{const w=t.current;w||bn();const _=_0(w);t.current=null,_&&(f.cancel(),_.removeAttribute(DE.contextId),_.removeEventListener("scroll",p,NE(w.scrollOptions)))},[p,f]),v=Nn(w=>{const _=t.current;_||bn();const x=_0(_);x||bn(),x.scrollTop+=w.y,x.scrollLeft+=w.x},[]),h=ir(()=>({getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:b,scroll:v}),[b,m,g,v]),y=ir(()=>({uniqueId:r,descriptor:a,callbacks:h}),[h,a,r]);Jo(()=>(s.current=y.descriptor,l.droppable.register(y),()=>{t.current&&b(),l.droppable.unregister(y)}),[h,a,b,y,i,l.droppable]),Jo(()=>{t.current&&i.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),Jo(()=>{t.current&&i.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}function W_(){}const FE={width:0,height:0,margin:kwe},Rke=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;return t||r==="close"?FE:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},Lke=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;const l=Rke({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:l.width,height:l.height,marginTop:l.margin.top,marginRight:l.margin.right,marginBottom:l.margin.bottom,marginLeft:l.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:r!=="none"?Fh.placeholder:null}},Ike=e=>{const t=ge.useRef(null),n=Nn(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:r,onTransitionEnd:l,onClose:i,contextId:o}=e,[a,s]=ge.useState(e.animate==="open");ge.useEffect(()=>a?r!=="open"?(n(),s(!1),W_):t.current?W_:(t.current=setTimeout(()=>{t.current=null,s(!1)}),n):W_,[r,a,n]);const u=Nn(d=>{d.propertyName==="height"&&(l(),r==="close"&&i())},[r,i,l]),c=Lke({isAnimatingOpenOnMount:a,animate:e.animate,placeholder:e.placeholder});return Qe.createElement(e.placeholder.tagName,{style:c,"data-rfd-placeholder-context-id":o,onTransitionEnd:u,ref:e.innerRef})};var $ke=Qe.memo(Ike);class Nke extends Qe.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,n){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:n.isVisible?{isVisible:!0,data:n.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const Fke=e=>{const t=ge.useContext(Ab);t||bn();const{contextId:n,isMovementAllowed:r}=t,l=ge.useRef(null),i=ge.useRef(null),{children:o,droppableId:a,type:s,mode:u,direction:c,ignoreContainerClipping:d,isDropDisabled:f,isCombineEnabled:p,snapshot:m,useClone:g,updateViewportMaxScroll:b,getContainerForClone:v}=e,h=Nn(()=>l.current,[]),y=Nn(function(M){M===void 0&&(M=null),l.current=M},[]);Nn(()=>i.current,[]);const w=Nn(function(M){M===void 0&&(M=null),i.current=M},[]),_=Nn(()=>{r()&&b({maxScroll:yq()})},[r,b]);Eke({droppableId:a,type:s,mode:u,direction:c,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:h});const x=ir(()=>Qe.createElement(Nke,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},M=>{let{onClose:O,data:D,animate:P}=M;return Qe.createElement($ke,{placeholder:D,onClose:O,innerRef:w,animate:P,contextId:n,onTransitionEnd:_})}),[n,_,e.placeholder,e.shouldAnimatePlaceholder,w]),T=ir(()=>({innerRef:y,placeholder:x,droppableProps:{"data-rfd-droppable-id":a,"data-rfd-droppable-context-id":n}}),[n,a,x,y]),k=g?g.dragging.draggableId:null,S=ir(()=>({droppableId:a,type:s,isUsingCloneFor:k}),[a,k,s]);function C(){if(!g)return null;const{dragging:M,render:O}=g,D=Qe.createElement(Bq,{draggableId:M.draggableId,index:M.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(P,E)=>O(P,E,M));return uh.createPortal(D,v())}return Qe.createElement(I5.Provider,{value:S},o(T,m),C())};var jke=Fke;function zke(){return document.body||bn(),document.body}const jE={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:zke},Hq=e=>{let t={...e},n;for(n in jE)e[n]===void 0&&(t={...t,[n]:jE[n]});return t},q_=(e,t)=>e===t.droppable.type,zE=(e,t)=>t.draggables[e.draggable.id],Bke=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=ja(i=>({draggableId:i.id,type:i.type,source:{index:i.index,droppableId:i.droppableId}})),r=ja((i,o,a,s,u,c)=>{const d=u.descriptor.id;if(u.descriptor.droppableId===i){const m=c?{render:c,dragging:n(u.descriptor)}:null,g={isDraggingOver:a,draggingOverWith:a?d:null,draggingFromThisWith:d,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!1,snapshot:g,useClone:m}}if(!o)return t;if(!s)return e;const p={isDraggingOver:a,draggingOverWith:d,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}});return(i,o)=>{const a=Hq(o),s=a.droppableId,u=a.type,c=!a.isDropDisabled,d=a.renderClone;if(Tm(i)){const f=i.critical;if(!q_(u,f))return t;const p=zE(f,i.dimensions),m=Qo(i.impact)===s;return r(s,c,m,m,p,d)}if(i.phase==="DROP_ANIMATING"){const f=i.completed;if(!q_(u,f.critical))return t;const p=zE(f.critical,i.dimensions);return r(s,c,jq(f.result)===s,Qo(f.impact)===s,p,d)}if(i.phase==="IDLE"&&i.completed&&!i.shouldFlush){const f=i.completed;if(!q_(u,f.critical))return t;const p=Qo(f.impact)===s,m=!!(f.impact.at&&f.impact.at.type==="COMBINE"),g=f.critical.droppable.id===s;return p?m?e:t:g?e:t}return t}},Wke={updateViewportMaxScroll:N_e},qke=NW(Bke,Wke,(e,t,n)=>({...Hq(n),...e,...t}),{context:E5,areStatePropsEqual:Fq})(jke);var Uke=qke;const Hke=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:J3e,Draggable:xke,Droppable:Uke,resetServerContext:Q3e,useKeyboardSensor:Eq,useMouseSensor:Dq,useTouchSensor:Rq},Symbol.toStringTag,{value:"Module"})),$5=Qn(Hke);var BE;function Vke(){return BE||(BE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(pc),i=t($a()),o=t(OW),a=t(L2e),s=t(kb),u=t(Vr),c=g(ge),d=$5,f=Yi(),p=tg();function m(w){if(typeof WeakMap!="function")return null;var _=new WeakMap,x=new WeakMap;return(m=function(k){return k?x:_})(w)}function g(w,_){if(w&&w.__esModule)return w;if(w===null||n(w)!=="object"&&typeof w!="function")return{default:w};var x=m(_);if(x&&x.has(w))return x.get(w);var T={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in w)if(S!=="default"&&Object.prototype.hasOwnProperty.call(w,S)){var C=k?Object.getOwnPropertyDescriptor(w,S):null;C&&(C.get||C.set)?Object.defineProperty(T,S,C):T[S]=w[S]}return T.default=w,x&&x.set(w,T),T}function b(w,_){var x=Object.keys(w);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(w);_&&(T=T.filter(function(k){return Object.getOwnPropertyDescriptor(w,k).enumerable})),x.push.apply(x,T)}return x}function v(w){for(var _=1;_0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.groupedBy),w.groupColumns.map(function(O,D){return c.default.createElement(d.Draggable,{key:O.tableData.id.toString(),draggableId:O.tableData.id.toString(),index:D},function(P,E){var I;return c.default.createElement(l.default,(0,r.default)({ref:P.innerRef},P.draggableProps,P.dragHandleProps,{sx:k(E.isDragging,P.draggableProps.style)}),c.default.createElement(a.default,(0,r.default)({},P.dragHandleProps,T.groupChipProps,{onClick:function(){return w.onSortChanged(O)},label:c.default.createElement(l.default,{sx:{display:"flex",alignItems:"center"}},c.default.createElement(l.default,{sx:{float:"left"}},O.title),O.tableData.groupSort&&c.default.createElement(x.SortArrow,{sx:{transition:"300ms ease all",transform:O.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},(I=T.groupChipProps)!==null&&I!==void 0?I:{}),onDelete:function(){return w.onGroupRemoved(O,D)}})))})}),w.groupColumns.length===0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.placeholder),C.placeholder)}))}h.defaultProps={},h.propTypes={forwardedRef:u.default.element,className:u.default.string,onSortChanged:u.default.func,onGroupRemoved:u.default.func,onGroupChange:u.default.func,persistentGroupingsId:u.default.string};var y=c.default.forwardRef(function(_,x){return c.default.createElement(h,(0,r.default)({},_,{forwardedRef:x}))});e.default=y}(E_)),E_}var U_={},WE;function Gke(){return WE||(WE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t($a()),l=t(iu()),i=t(df()),o=t(Cl),a=t(ls),s=t(ff),u=t(hc),c=t(Vr),d=t(ge),f=Yi();function p(v,h){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);h&&(w=w.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,w)}return y}function m(v){for(var h=1;h0&&_++;var x=v.groups[v.level],T;v.groupData.isExpanded&&(v.groups.length>v.level+1?T=v.groupData.groups.map(function(B,N){return d.default.createElement(v.components.GroupRow,{actions:v.actions,key:B.value||""+N,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:B,groups:v.groups,level:v.level+1,path:[].concat((0,i.default)(v.path),[N]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):T=v.groupData.data.map(function(B,N){return B.tableData.editing?d.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:B,path:[].concat((0,i.default)(v.path),[B.tableData.uuid]),localization:v.localization,key:N,mode:B.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):d.default.createElement(v.components.Row,{actions:v.actions,key:N,columns:v.columns,components:v.components,data:B,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,i.default)(v.path),[B.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var k=[],S=0;S0&&A!==F,checked:A===F,onChange:function(N,R){return v.onGroupSelected&&v.onGroupSelected(R,v.groupData.path)},style:{marginRight:8}}),d.default.createElement("b",null,M,O)))),T)}g.defaultProps={columns:[],groups:[],level:0},g.propTypes={actions:c.default.array,columns:c.default.arrayOf(c.default.object),components:c.default.object,cellEditable:c.default.object,detailPanel:c.default.oneOfType([c.default.func,c.default.arrayOf(c.default.object)]),forwardedRef:c.default.element,getFieldValue:c.default.func,groupData:c.default.object,groups:c.default.arrayOf(c.default.object),hasAnyEditingRow:c.default.bool,icons:c.default.object,isTreeData:c.default.bool.isRequired,level:c.default.number,localization:c.default.object,onBulkEditRowChanged:c.default.func,onCellEditFinished:c.default.func,onCellEditStarted:c.default.func,onEditingApproved:c.default.func,onEditingCanceled:c.default.func,onGroupExpandChanged:c.default.func,onRowClick:c.default.func,onGroupSelected:c.default.func,onRowSelected:c.default.func,onToggleDetailPanel:c.default.func.isRequired,onTreeExpandChanged:c.default.func.isRequired,path:c.default.arrayOf(c.default.number),scrollWidth:c.default.number.isRequired,treeDataMaxLevel:c.default.number};var b=d.default.forwardRef(function(h,y){return d.default.createElement(g,(0,n.default)({},h,{forwardedRef:y}))});e.default=b}(U_)),U_}var H_={};const Yke=Qn(Tfe),Xke=Qn(spe);var qE;function Kke(){return qE||(qE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=k,e.styles=e.default=void 0;var r=t(pc),l=t(mc),i=t(Ir()),o=t($a()),a=t(iu()),s=t(cf()),u=t(ge),c=t(Vr),d=t(Yke),f=t(ls),p=t(Cl),m=t(Xke),g=t(hc),b=$5,v=_(ds()),h=Yi(),y=["onColumnResized","classes","sx","columns"];function w(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(w=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=w(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var z=F?Object.getOwnPropertyDescriptor(P,j):null;z&&(z.get||z.set)?Object.defineProperty(A,j,z):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function x(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function T(P){for(var E=1;E-1)&&!ce.tableData.hiddden}).sort(function(ce,we){return ce.tableData.columnOrder-we.tableData.columnOrder}).map(function(ce,we,K){var ne=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",de=ce.title;if(B.draggable&&ce.draggable!==!1?de=u.default.createElement(b.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:we,style:{zIndex:99}},function(ue,pe){return u.default.createElement("div",(0,i.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:pe.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:ne==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&j.sorting&&j.allowSorting?u.default.createElement(C,{columnDef:ce,keepSortDirectionOnColumnSwitch:B.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:B.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:B.showColumnSortOrder,sortOrderIndicatorStyle:B.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&j.sorting&&j.allowSorting&&(de=u.default.createElement(C,{columnDef:ce,keepSortDirectionOnColumnSwitch:B.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:B.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:B.showColumnSortOrder,sortOrderIndicatorStyle:B.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=u.default.createElement(l.default,{title:ce.tooltip,placement:"bottom"},u.default.createElement("span",null,de))),B.tableLayout==="fixed"&&B.columnResizable&&ce.resizable!==!1&&!(B.tableWidth==="full"&&we===K.length-1)){var _e=N.Resize?N.Resize:function(ue){return u.default.createElement(r.default,(0,i.default)({},ue,{"data-test-id":"drag_handle"}))};de=u.default.createElement(r.default,{sx:M.headerWrap(ne==="right")},u.default.createElement(r.default,{sx:M.headerContent(ne==="right")},de),u.default.createElement("div",null),u.default.createElement(_e,{sx:M.headerResize((W==null?void 0:W.col)&&W.col.tableData.id===ce.tableData.id),onMouseDown:function(pe){return G(pe,ce,we)}}))}return u.default.createElement(p.default,{key:ce.tableData.id,align:ne,sx:M.header,style:ie(ce),size:Me,"aria-label":ce.ariaLabel},de)})}function he(){var Me=v.selectionMaxWidth(T(T({},j),{},{options:B}),j.treeDataMaxLevel);return u.default.createElement(p.default,{padding:"none",key:"key-selection-column",sx:M.header,style:T(T({},B.headerStyle),{},{width:Me})},B.showSelectAllCheckbox&&u.default.createElement(g.default,(0,i.default)({indeterminate:j.selectedCount>0&&j.selectedCount0&&j.selectedCount>=j.dataCount,onChange:function(we,K){return j.onAllSelected&&j.onAllSelected(K)}},B.headerSelectionProps)))}function Se(){return u.default.createElement(p.default,{padding:"none",key:"key-detail-panel-column",sx:M.header,style:B.headerStyle})}var Oe=se();if(B.selection&&Oe.splice(0,0,he()),j.showActionsColumn)if(B.actionsColumnIndex>=0){var Pe=0;B.selection&&(Pe=1),Oe.splice(B.actionsColumnIndex+Pe,0,ae())}else B.actionsColumnIndex===-1&&Oe.push(ae());return j.hasDetailPanel&&B.showDetailPanelIcon&&(B.detailPanelColumnAlignment==="right"?Oe.push(Se()):Oe.splice(0,0,Se())),j.isTreeData>0&&Oe.splice(0,0,u.default.createElement(p.default,{padding:"none",key:"key-tree-data-header",sx:M.header,style:B.headerStyle})),Z.filter(function(Me){return Me.tableData.groupOrder>-1}).forEach(function(Me){Oe.splice(0,0,u.default.createElement(p.default,{padding:"checkbox",key:"key-group-header"+Me.tableData.id,sx:M.header,style:B.headerStyle}))}),u.default.createElement(d.default,{ref:j.forwardedRef,classes:I,sx:A},u.default.createElement(f.default,{sx:M.headerRow},Oe))}var S=function(E,I,A,F,j){return A.tableData.id!==E?j&&I||"asc":I==="asc"?"desc":I==="desc"&&F?"":"asc"};function C(P){var E=P.columnDef,I=P.keepSortDirectionOnColumnSwitch,A=P.icon,F=P.thirdSortClick,j=P.onOrderChange,z=P.children,B=P.orderByCollection,N=P.showColumnSortOrder,R=P.sortOrderIndicatorStyle,q=B.find(function(U){var V=U.orderBy;return V===E.tableData.id}),Y=(q||I)&&q&&q.orderDirection||"asc",L="none";q&&Y==="asc"?L=E.ariaSortAsc||"ascending":q&&Y==="desc"&&(L=E.ariaSortDesc||"descending");var W=q&&q.orderBy;return u.default.createElement(u.default.Fragment,null,u.default.createElement(m.default,{role:"columnheader","aria-sort":L,"aria-label":E.ariaLabel,IconComponent:A,active:!!q,"data-testid":"mtableheader-sortlabel",direction:Y,onClick:function(){var V=S(W,Y,E,F,I);j(E.tableData.id,V,q&&q.sortOrder)}},z),u.default.createElement("span",{style:T(T({},R),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},N&&q?q.sortOrder:""))}k.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},k.propTypes={columns:c.default.array.isRequired,classes:c.default.object,sx:c.default.object,dataCount:c.default.number,hasDetailPanel:c.default.bool.isRequired,selectedCount:c.default.number,onAllSelected:c.default.func,onOrderChange:c.default.func,showActionsColumn:c.default.bool,orderByCollection:c.default.array,showColumnSortOrder:c.default.bool,tooltip:c.default.string,allowSorting:c.default.bool};var M={headerRow:{zIndex:10},header:{top:0},headerWrap:function(E){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(E){return{display:"flex",alignItems:"center",pr:E?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(E){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:E?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(E){return{color:E?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=M;var O=u.default.forwardRef(function(E,I){return u.default.createElement(k,(0,i.default)({},E,{forwardedRef:I}))}),D=u.default.memo(O);e.default=D}(H_)),H_}var V_={};const Zke=Qn(nle);var UE;function Qke(){return UE||(UE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(ff),i=t(mc),o=t(pc),a=t(Zke),s=t(Vr),u=t(ge),c=uf,d=m(ds()),f=Yi();function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y){var w=(0,c.useTheme)(),_=(0,f.useLocalizationStore)().pagination,x=(0,f.useIconStore)(),T=function(Y){y.onPageChange(Y,0)},k=function(Y){y.onPageChange(Y,y.page-1)},S=function(Y){y.onPageChange(Y,y.page+1)},C=function(Y){return function(L){y.onPageChange(L,Y)}},M=function(Y){y.onPageChange(Y,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))};function O(q,Y,L,W){var U=[];W=Math.max(1,Math.min(10,W));for(var V=Math.max(q-W+1,0);V<=Math.min(Y+W-1,L);V++){var te=V===y.page?"contained":"text";U.push(u.default.createElement(a.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:V===y.page,variant:te,onClick:C(V),key:V},V+1))}return u.default.createElement("span",null,U)}var D=y.count,P=y.page,E=y.rowsPerPage,I=y.showFirstLastPageButtons,A=y.numberOfPagesAround,F=Math.ceil(D/E)-1,j=Math.max(P-1,0),z=Math.min(F,P+1),B=d.parseFirstLastPageButtons(I,w.direction==="rtl"),N=B.first,R=B.last;return u.default.createElement(o.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:y.forwardedRef},N&&u.default.createElement(i.default,{title:_.firstTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:T,disabled:P===0,"aria-label":_.firstAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.LastPage,null):u.default.createElement(x.FirstPage,null)))),u.default.createElement(i.default,{title:_.previousTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:k,disabled:P===0,"aria-label":_.previousAriaLabel},u.default.createElement(x.PreviousPage,null)))),u.default.createElement(o.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},O(j,z,F,A)),u.default.createElement(i.default,{title:_.nextTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:S,disabled:P>=F,"aria-label":_.nextAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.PreviousPage,null):u.default.createElement(x.NextPage,null)))),R&&u.default.createElement(i.default,{title:_.lastTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:M,disabled:P>=Math.ceil(D/E)-1,"aria-label":_.lastAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.FirstPage,null):u.default.createElement(x.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,forwardedRef:s.default.func,count:s.default.number,rowsPerPage:s.default.number,numberOfPagesAround:s.default.number,classes:s.default.object,theme:s.default.any,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool])},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(w,_){return u.default.createElement(g,(0,r.default)({},w,{forwardedRef:_}))}),v=b,h=v;e.default=h}(V_)),V_}var G_={},HE;function Jke(){return HE||(HE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(pc),i=t(ff),o=t(mc),a=t(kb),s=t(Vr),u=t(ge),c=uf,d=m(ds()),f=tg();function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y){var w=(0,c.useTheme)(),_=(0,f.useIconStore)(),x=(0,f.useLocalizationStore)().pagination,T=function(j){y.onPageChange(j,0)},k=function(j){y.onPageChange(j,y.page-1)},S=function(j){y.onPageChange(j,y.page+1)},C=function(j){y.onPageChange(j,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))},M=y.count,O=y.page,D=y.rowsPerPage,P=y.showFirstLastPageButtons,E=d.parseFirstLastPageButtons(P,w.direction==="rtl"),I=E.first,A=E.last;return u.default.createElement(l.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:y.forwardedRef},I&&u.default.createElement(o.default,{title:x.firstTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:T,disabled:O===0,"aria-label":x.firstAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(_.LastPage,null):u.default.createElement(_.FirstPage,null)))),u.default.createElement(o.default,{title:x.previousTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:k,disabled:O===0,"aria-label":x.previousAriaLabel},w.direction==="rtl"?u.default.createElement(_.NextPage,null):u.default.createElement(_.PreviousPage,null)))),u.default.createElement(a.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},x.labelDisplayedRows.replace("{from}",y.count===0?0:y.page*y.rowsPerPage+1).replace("{to}",Math.min((y.page+1)*y.rowsPerPage,y.count)).replace("{count}",y.count)),u.default.createElement(o.default,{title:x.nextTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:S,disabled:O>=Math.ceil(M/D)-1,"aria-label":x.nextAriaLabel},w.direction==="rtl"?u.default.createElement(_.PreviousPage,null):u.default.createElement(_.NextPage,null)))),A&&u.default.createElement(o.default,{title:x.lastTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:C,disabled:O>=Math.ceil(M/D)-1,"aria-label":x.lastAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(_.FirstPage,null):u.default.createElement(_.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,count:s.default.number,rowsPerPage:s.default.number,classes:s.default.object,localization:s.default.object,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool]),forwardedRef:s.default.func},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(w,_){return u.default.createElement(g,(0,r.default)({},w,{forwardedRef:_}))}),v=b,h=v;e.default=h}(G_)),G_}var Y_={},VE;function eSe(){return VE||(VE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var r=t(ls),l=t(_a()),i=t(df()),o=t(Cl),a=t($a()),s=m(ge),u=Tb(),c=m(ds()),d=Yi(),f=t(Vr);function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y,w){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(y);w&&(x=x.filter(function(T){return Object.getOwnPropertyDescriptor(y,T).enumerable})),_.push.apply(_,x)}return _}function b(y){for(var w=1;w1&&arguments[1]!==void 0?arguments[1]:1,E=c.elementSize(b(b({},_),{},{options:T})),I=P*c.baseIconSize(b(b({},_),{},{options:T}));return s.createElement(o.default,{key:"placeholder.".concat(D),size:E,padding:"none",style:{width:I,padding:"0px 5px",boxSizing:"border-box"}})}var S=[],C=[],M=0;if(T.selection&&S.push(k(M++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var O=c.rowActions(_).length;T.actionsColumnIndex===-1?C.push(k(M++,O)):T.actionsColumnIndex>=0&&S.push(k(M++,O))}return _.detailPanel&&T.showDetailPanelIcon&&(T.detailPanelColumnAlignment==="right"?C.push(k(M++)):S.push(k(M++))),_.isTreeData&&S.push(k(M++)),s.createElement(r.default,null,S,(0,i.default)(w).sort(function(D,P){return D.tableData.columnOrder-P.tableData.columnOrder}).map(function(D,P){var E=x({index:D.tableData.columnOrder,column:D,columns:w}),I=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",A="",F=(0,u.getStyle)({columnDef:D,scrollWidth:0});return(0,l.default)(E)==="object"&&E!==null?(A=E.value,F=E.style):A=E,s.createElement(o.default,{key:P,style:F,align:I},A)}),C)}v.propTypes={columns:f.default.array,renderSummaryRow:f.default.func};var h=v;e.default=h}(Y_)),Y_}var X_={};const tSe=Qn(Ace);var GE;function nSe(){return GE||(GE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=S,e.default=void 0;var r=t(Ir()),l=t($a()),i=t(pc),o=t(iu()),a=t(hc),s=t(MW),u=t(ff),c=t(tSe),d=t(FM),f=t(hb),p=t(OW),m=t(mc),g=t(kb),b=uf,v=t(Vr),h=_(ge),y=Yi();function w(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(w=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=w(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var z=F?Object.getOwnPropertyDescriptor(P,j):null;z&&(z.get||z.set)?Object.defineProperty(A,j,z):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function x(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function T(P){for(var E=1;EPe.tableData.columnOrder?1:-1}),he=O(P.data()),Se=he.map(function(Oe){return se.reduce(function(Pe,Me){var ce;return typeof Me.customExport=="function"?ce=Me.customExport(Oe):ce=P.getFieldValue(Oe,Me),Pe[Me.field]=ce,Pe},{})});return[se,Se]};function G(){return te.search?h.default.createElement(f.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:C.searchField,value:j,onChange:function(se){return H(se.target.value)},placeholder:I.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:h.default.createElement(s.default,{position:"start"},h.default.createElement(m.default,{title:I.searchTooltip},h.default.createElement(V.Search,{fontSize:"small"}))),endAdornment:h.default.createElement(s.default,{position:"end"},h.default.createElement(u.default,{disabled:!j,onClick:function(){return H("")},"aria-label":I.clearSearchAriaLabel},h.default.createElement(V.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":I.searchAriaLabel}}}):null}function X(ie){var se=ie?"toolbarOnSelect":"toolbar";return h.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!ie&&h.default.createElement("span",null,h.default.createElement(m.default,{title:I.showColumnsTitle},h.default.createElement(u.default,{color:"inherit",onClick:function(Se){return U(Se.currentTarget)},"aria-label":I.showColumnsAriaLabel},h.default.createElement(V.ViewColumn,null))),h.default.createElement(c.default,{anchorEl:W,open:!!W,onClose:function(){return U(null)}},h.default.createElement(d.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},I.addRemoveColumns),P.columns.map(function(he){var Se=he.hiddenByColumnsButton!==void 0?he.hiddenByColumnsButton:P.columnsHiddenInColumnsButton;return Se?null:h.default.createElement("li",{key:he.tableData.id},h.default.createElement(d.default,{sx:C.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(he.tableData.id),disabled:he.removable===!1},h.default.createElement(a.default,{checked:!he.hidden,id:"column-toggle-".concat(he.tableData.id),onChange:function(){return P.onColumnsChanged(he,!he.hidden)}}),h.default.createElement("span",null,he.title)))}))),te.exportMenu.length>0&&h.default.createElement("span",null,h.default.createElement(m.default,{title:I.exportTitle},h.default.createElement(u.default,{color:"inherit",onClick:function(Se){return q(Se.currentTarget)},"aria-label":I.exportAriaLabel},h.default.createElement(V.Export,null))),h.default.createElement(c.default,{anchorEl:R,open:!!R,onClose:function(){return q(null)}},te.exportMenu.map(function(he,Se){var Oe=Z(),Pe=(0,o.default)(Oe,2),Me=Pe[0],ce=Pe[1];return h.default.createElement(d.default,{key:"".concat(he.label).concat(Se),onClick:function(){he.exportFunc(Me,ce,{searchedData:P.dataManager.searchedData,filteredData:P.dataManager.filteredData,groupedData:P.dataManager.groupedData,selectedData:ee}),q(null)}},he.label)}))),h.default.createElement("span",null,h.default.createElement(P.components.Actions,{actions:P.actions&&P.actions.filter(function(he){return he.position===se}),data:ie?ee:void 0,components:P.components})))}function Q(){return h.default.createElement(i.default,{sx:C.actions},h.default.createElement("div",null,X(ee.length>0)))}function re(ie){var se=typeof ie=="string"?h.default.createElement(g.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},ie):ie;return h.default.createElement(i.default,{sx:C.title},se)}var ae=te.showTextRowsSelected&&ee.length>0?typeof I.nRowsSelected=="function"?I.nRowsSelected(ee.length):I.nRowsSelected.replace("{0}",ee.length):te.showTitle?P.title:null;return h.default.createElement(p.default,{ref:P.forwardedRef,className:P.className,sx:T(T({},C.root),te.showTextRowsSelected&&ee.length>0?C.highlight(E):{})},ae&&re(ae),te.searchFieldAlignment==="left"&&G(),te.toolbarButtonAlignment==="left"&&Q(),h.default.createElement(i.default,{sx:C.spacer}),te.searchFieldAlignment==="right"&&G(),te.toolbarButtonAlignment==="right"&&Q())}S.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},S.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var C={root:{paddingRight:1,paddingLeft:2},highlight:function(E){return E.palette.mode==="light"?{color:E.palette.secondary.main,backgroundColor:(0,b.lighten)(E.palette.secondary.light,.85)}:{color:E.palette.text.primary,backgroundColor:E.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},M=h.default.forwardRef(function(E,I){return h.default.createElement(S,(0,r.default)({},E,{forwardedRef:I}))});function O(P){for(var E=P;Array.isArray((I=E)===null||I===void 0||(A=I[0])===null||A===void 0?void 0:A.data);){var I,A;E=E.map(function(F){return F.groups.length!==0?F.groups:F.data}).flat()}return E}var D=h.default.memo(M);e.default=D}(X_)),X_}var YE;function Eb(){return YE||(YE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return n.default}});var n=t(Jpe()),r=t(Uhe()),l=t(Ghe()),i=t(Xhe()),o=t(eme()),a=t(d2e()),s=t(f2e()),u=t(g2e()),c=t(v2e()),d=t(w2e()),f=t(k2e()),p=t(S2e()),m=t(C2e()),g=t(PW()),b=t(Vke()),v=t(Gke()),h=t(Kke()),y=t(Qke()),w=t(Jke()),_=t(eSe()),x=t(nSe())}(Mw)),Mw}var XE;function Vq(){return XE||(XE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Qpe),r=Eb(),l={Action:r.MTableAction,Actions:r.MTableActions,Body:r.MTableBody,Cell:r.MTableCell,Container:r.Container,EditCell:r.MTableEditCell,EditField:r.MTableEditField,EditRow:r.MTableEditRow,FilterRow:r.MTableFilterRow,Groupbar:r.MTableGroupbar,GroupRow:r.MTableGroupRow,Header:r.MTableHeader,OverlayLoading:r.OverlayLoading,OverlayError:r.OverlayError,Pagination:n.default,Row:r.MTableBodyRow,SummaryRow:r.MTableSummaryRow,Toolbar:r.MTableToolbar};e.default=l}(Cw)),Cw}var KE;function rSe(){if(KE)return np;KE=1;var e=Cn;Object.defineProperty(np,"__esModule",{value:!0}),np.defaultProps=void 0;var t=e(Vq()),n=e(sB()),r=e(iB()),l=e(lB()),i={actions:[],classes:{},columns:[],components:t.default,data:[],icons:n.default,isLoading:!1,title:"Table Title",options:l.default,localization:r.default,style:{}};return np.defaultProps=i,np}var Sp={},Cp={},ZE;function N5(){if(ZE)return Cp;ZE=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.ALL_COLUMNS=void 0;var e="all_columns";return Cp.ALL_COLUMNS=e,Cp}var QE;function aSe(){if(QE)return Sp;QE=1;var e=Cn;Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.propTypes=void 0;var t=e(Vr),n=N5(),r=t.default.shape({current:t.default.element}),l=t.default.shape({classes:t.default.object,innerRef:r}),i={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,l]),Actions:t.default.oneOfType([t.default.element,t.default.func,l]),Body:t.default.oneOfType([t.default.element,t.default.func,l]),Cell:t.default.oneOfType([t.default.element,t.default.func,l]),Container:t.default.oneOfType([t.default.element,t.default.func,l]),EditField:t.default.oneOfType([t.default.element,t.default.func,l]),EditRow:t.default.oneOfType([t.default.element,t.default.func,l]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,l]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,l]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,l]),Header:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,l]),Pagination:t.default.oneOfType([t.default.element,t.default.func,l]),Row:t.default.oneOfType([t.default.element,t.default.func,l]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,l])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,r]),Check:t.default.oneOfType([t.default.element,t.default.func,r]),Clear:t.default.oneOfType([t.default.element,t.default.func,r]),Delete:t.default.oneOfType([t.default.element,t.default.func,r]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,r]),Edit:t.default.oneOfType([t.default.element,t.default.func,r]),Export:t.default.oneOfType([t.default.element,t.default.func,r]),Filter:t.default.oneOfType([t.default.element,t.default.func,r]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,r]),LastPage:t.default.oneOfType([t.default.element,t.default.func,r]),NextPage:t.default.oneOfType([t.default.element,t.default.func,r]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,r]),Refresh:t.default.oneOfType([t.default.element,t.default.func,r]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,r]),Search:t.default.oneOfType([t.default.element,t.default.func,r]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,r]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,r]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,r])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,n.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return Sp.propTypes=i,Sp}var K_={};const oSe=Qn(Jue),iSe=Qn(mfe),lSe=Qn(Bde);var Z_,JE;function sSe(){if(JE)return Z_;JE=1;function e(t,n,r){var l,i,o,a,s;n==null&&(n=100);function u(){var d=Date.now()-a;d=0?l=setTimeout(u,n-d):(l=null,r||(s=t.apply(o,i),o=i=null))}var c=function(){o=this,i=arguments,a=Date.now();var d=r&&!l;return l||(l=setTimeout(u,n)),d&&(s=t.apply(o,i),o=i=null),s};return c.clear=function(){l&&(clearTimeout(l),l=null)},c.flush=function(){l&&(s=t.apply(o,i),o=i=null,clearTimeout(l),l=null)},c}return e.debounce=e,Z_=e,Z_}var Q_={};const uSe=Qn(xge);var J_={},Mp={},T0={},eR;function Gq(){if(eR)return T0;eR=1,Object.defineProperty(T0,"__esModule",{value:!0}),T0.default=n;let e;const t=new Uint8Array(16);function n(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return T0}var Wc={},Pp={},Op={},tR;function cSe(){if(tR)return Op;tR=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Op.default=e,Op}var nR;function Rb(){if(nR)return Pp;nR=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.default=void 0;var e=t(cSe());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){return typeof l=="string"&&e.default.test(l)}var r=n;return Pp.default=r,Pp}var rR;function Lb(){if(rR)return Wc;rR=1,Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.default=void 0,Wc.unsafeStringify=r;var e=t(Rb());function t(o){return o&&o.__esModule?o:{default:o}}const n=[];for(let o=0;o<256;++o)n.push((o+256).toString(16).slice(1));function r(o,a=0){return n[o[a+0]]+n[o[a+1]]+n[o[a+2]]+n[o[a+3]]+"-"+n[o[a+4]]+n[o[a+5]]+"-"+n[o[a+6]]+n[o[a+7]]+"-"+n[o[a+8]]+n[o[a+9]]+"-"+n[o[a+10]]+n[o[a+11]]+n[o[a+12]]+n[o[a+13]]+n[o[a+14]]+n[o[a+15]]}function l(o,a=0){const s=r(o,a);if(!(0,e.default)(s))throw TypeError("Stringified UUID is invalid");return s}var i=l;return Wc.default=i,Wc}var aR;function dSe(){if(aR)return Mp;aR=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.default=void 0;var e=n(Gq()),t=Lb();function n(u){return u&&u.__esModule?u:{default:u}}let r,l,i=0,o=0;function a(u,c,d){let f=c&&d||0;const p=c||new Array(16);u=u||{};let m=u.node||r,g=u.clockseq!==void 0?u.clockseq:l;if(m==null||g==null){const _=u.random||(u.rng||e.default)();m==null&&(m=r=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),g==null&&(g=l=(_[6]<<8|_[7])&16383)}let b=u.msecs!==void 0?u.msecs:Date.now(),v=u.nsecs!==void 0?u.nsecs:o+1;const h=b-i+(v-o)/1e4;if(h<0&&u.clockseq===void 0&&(g=g+1&16383),(h<0||b>i)&&u.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=b,o=v,l=g,b+=122192928e5;const y=((b&268435455)*1e4+v)%4294967296;p[f++]=y>>>24&255,p[f++]=y>>>16&255,p[f++]=y>>>8&255,p[f++]=y&255;const w=b/4294967296*1e4&268435455;p[f++]=w>>>8&255,p[f++]=w&255,p[f++]=w>>>24&15|16,p[f++]=w>>>16&255,p[f++]=g>>>8|128,p[f++]=g&255;for(let _=0;_<6;++_)p[f+_]=m[_];return c||(0,t.unsafeStringify)(p)}var s=a;return Mp.default=s,Mp}var Ap={},Ss={},Dp={},oR;function Yq(){if(oR)return Dp;oR=1,Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.default=void 0;var e=t(Rb());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");let i;const o=new Uint8Array(16);return o[0]=(i=parseInt(l.slice(0,8),16))>>>24,o[1]=i>>>16&255,o[2]=i>>>8&255,o[3]=i&255,o[4]=(i=parseInt(l.slice(9,13),16))>>>8,o[5]=i&255,o[6]=(i=parseInt(l.slice(14,18),16))>>>8,o[7]=i&255,o[8]=(i=parseInt(l.slice(19,23),16))>>>8,o[9]=i&255,o[10]=(i=parseInt(l.slice(24,36),16))/1099511627776&255,o[11]=i/4294967296&255,o[12]=i>>>24&255,o[13]=i>>>16&255,o[14]=i>>>8&255,o[15]=i&255,o}var r=n;return Dp.default=r,Dp}var iR;function Xq(){if(iR)return Ss;iR=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.URL=Ss.DNS=void 0,Ss.default=o;var e=Lb(),t=n(Yq());function n(a){return a&&a.__esModule?a:{default:a}}function r(a){a=unescape(encodeURIComponent(a));const s=[];for(let u=0;u>5]>>>v%32&255,y=parseInt(b.charAt(h>>>4&15)+b.charAt(h&15),16);m.push(y)}return m}function n(p){return(p+64>>>9<<4)+14+1}function r(p,m){p[m>>5]|=128<>5]|=(p[b/8]&255)<>16)+(m>>16)+(g>>16)<<16|g&65535}function o(p,m){return p<>>32-m}function a(p,m,g,b,v,h){return i(o(i(i(m,p),i(b,h)),v),g)}function s(p,m,g,b,v,h,y){return a(m&g|~m&b,p,m,v,h,y)}function u(p,m,g,b,v,h,y){return a(m&b|g&~b,p,m,v,h,y)}function c(p,m,g,b,v,h,y){return a(m^g^b,p,m,v,h,y)}function d(p,m,g,b,v,h,y){return a(g^(m|~b),p,m,v,h,y)}var f=e;return Ep.default=f,Ep}var sR;function pSe(){if(sR)return Ap;sR=1,Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.default=void 0;var e=n(Xq()),t=n(fSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v3",48,t.default);return Ap.default=l,Ap}var Rp={},Lp={},uR;function hSe(){if(uR)return Lp;uR=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Lp.default=t,Lp}var cR;function mSe(){if(cR)return Rp;cR=1,Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.default=void 0;var e=r(hSe()),t=r(Gq()),n=Lb();function r(o){return o&&o.__esModule?o:{default:o}}function l(o,a,s){if(e.default.randomUUID&&!a&&!o)return e.default.randomUUID();o=o||{};const u=o.random||(o.rng||t.default)();if(u[6]=u[6]&15|64,u[8]=u[8]&63|128,a){s=s||0;for(let c=0;c<16;++c)a[s+c]=u[c];return a}return(0,n.unsafeStringify)(u)}var i=l;return Rp.default=i,Rp}var Ip={},$p={},dR;function gSe(){if(dR)return $p;dR=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.default=void 0;function e(l,i,o,a){switch(l){case 0:return i&o^~i&a;case 1:return i^o^a;case 2:return i&o^i&a^o&a;case 3:return i^o^a}}function t(l,i){return l<>>32-i}function n(l){const i=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof l=="string"){const c=unescape(encodeURIComponent(l));l=[];for(let d=0;d>>0;b=g,g=m,m=t(p,30)>>>0,p=f,f=y}o[0]=o[0]+f>>>0,o[1]=o[1]+p>>>0,o[2]=o[2]+m>>>0,o[3]=o[3]+g>>>0,o[4]=o[4]+b>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,o[0]&255,o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,o[1]&255,o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,o[2]&255,o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,o[3]&255,o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,o[4]&255]}var r=n;return $p.default=r,$p}var fR;function vSe(){if(fR)return Ip;fR=1,Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.default=void 0;var e=n(Xq()),t=n(gSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v5",80,t.default);return Ip.default=l,Ip}var Np={},pR;function ySe(){if(pR)return Np;pR=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Np.default=e,Np}var Fp={},hR;function bSe(){if(hR)return Fp;hR=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.default=void 0;var e=t(Rb());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");return parseInt(l.slice(14,15),16)}var r=n;return Fp.default=r,Fp}var mR;function xSe(){return mR||(mR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=c(dSe()),n=c(pSe()),r=c(mSe()),l=c(vSe()),i=c(ySe()),o=c(bSe()),a=c(Rb()),s=c(Lb()),u=c(Yq());function c(d){return d&&d.__esModule?d:{default:d}}}(J_)),J_}var gR;function wSe(){return gR||(gR=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(df()),r=t(fb()),l=t(pb()),i=t($a()),o=t(uSe),a=xSe(),s=Tb(),u=ds(),c=N5();function d(v,h){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);h&&(w=w.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,w)}return y}function f(v){for(var h=1;h=v.length?{done:!0}:{done:!1,value:v[w++]}},e:function(C){throw C},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,T=!1,k;return{s:function(){y=y.call(v)},n:function(){var C=y.next();return x=C.done,C},e:function(C){T=!0,k=C},f:function(){try{!x&&y.return!=null&&y.return()}finally{if(T)throw k}}}}function m(v,h){if(v){if(typeof v=="string")return g(v,h);var y=Object.prototype.toString.call(v).slice(8,-1);if(y==="Object"&&v.constructor&&(y=v.constructor.name),y==="Map"||y==="Set")return Array.from(v);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return g(v,h)}}function g(v,h){(h==null||h>v.length)&&(h=v.length);for(var y=0,w=new Array(h);y0?k(C.groups):C.data.forEach(function(M){M.tableData.checked!==y&&(M.tableData.checked=M.tableData.disabled?!1:y,h.selectedCount=h.selectedCount+(y?1:-1))})})};T([_])}),(0,i.default)(this,"getOrderByCollection",function(){return h.orderByCollection.filter(function(y){return y.sortOrder})}),(0,i.default)(this,"sortOrderCollection",function(y){return y.sort(function(w,_){return w.sortOrder?_.sortOrder?w.sortOrder-_.sortOrder:-1:1})}),(0,i.default)(this,"startCellEditable",function(y,w){y.tableData.editCellList=[].concat((0,n.default)(y.tableData.editCellList||[]),[w])}),(0,i.default)(this,"finishCellEditable",function(y,w){if(y.tableData.editCellList){var _=y.tableData.editCellList.findIndex(function(x){return x.tableData.id.toString()===w.tableData.id.toString()});_!==-1&&y.tableData.editCellList.splice(_,1)}}),(0,i.default)(this,"clearBulkEditChangedRows",function(){h.bulkEditChangedRows={}}),(0,i.default)(this,"onBulkEditRowChanged",function(y,w){h.bulkEditChangedRows[y.tableData.id]={oldData:y,newData:w}}),(0,i.default)(this,"expandTreeForNodes",function(y){y.forEach(function(w){for(var _=w;h.parentFunc(_,h.data);){var x=h.parentFunc(_,h.data);x&&(x.tableData.isTreeExpanded=!0),_=x}})}),(0,i.default)(this,"findDataByPath",function(y,w){if(h.isDataType("tree")){var _=w.reduce(function(k,S){return k&&k.tableData&&k.tableData.childRows&&k.tableData.childRows.find(function(C){return C&&C.tableData.uuid===S})},{tableData:{childRows:y}});return _}else{var x={groups:y},T=w.reduce(function(k,S){return k.groups.length>0?k.groups[S]:k.data?k.data[S]||k.data.find(function(C){var M;return((M=C.tableData)===null||M===void 0?void 0:M.uuid)===S}):void 0},x);return T}}),(0,i.default)(this,"getFieldValue",function(y,w){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=typeof y[w.field]<"u"?y[w.field]:(0,s.selectFromObject)(y,w.field);return w.lookup&&_&&(x=w.lookup[x]),x}),(0,i.default)(this,"getRenderState",function(){return h.filtered===!1&&h.filterData(),h.searched===!1&&h.searchData(),h.grouped===!1&&h.isDataType("group")&&h.groupData(),h.treefied===!1&&h.isDataType("tree")&&h.treefyData(),h.sorted===!1&&h.sortData(),h.paged===!1&&h.pageData(),{columns:h.columns,currentPage:h.currentPage,data:h.sortedData,lastEditingRow:h.lastEditingRow,orderByCollection:h.orderByCollection,maxColumnSort:h.maxColumnSort,originalData:(0,n.default)(h.data),pageSize:h.pageSize,renderData:h.pagedData,searchText:h.searchText,selectedCount:h.selectedCount,treefiedDataLength:h.treefiedDataLength,treeDataMaxLevel:h.treeDataMaxLevel,groupedDataLength:h.groupedDataLength,tableStyleWidth:h.tableStyleWidth}}),(0,i.default)(this,"filterData",function(){h.searched=h.grouped=h.treefied=h.sorted=h.paged=!1,h.filteredData=(0,n.default)(h.data),h.applyFilters&&h.columns.filter(function(y){return y.tableData.filterValue!==void 0}).forEach(function(y){var w=y.lookup,_=y.type,x=y.tableData;y.customFilterAndSearch?h.filteredData=h.filteredData.filter(function(T){return!!y.customFilterAndSearch(x.filterValue,T,y)}):w?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y,!1);return!x.filterValue||x.filterValue.length===0||x.filterValue.indexOf(k!=null&&k.toString())>-1}):_==="numeric"?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k+""===x.filterValue}):_==="boolean"&&x.filterValue?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k&&x.filterValue==="checked"||!k&&x.filterValue==="unchecked"}):["date","datetime"].includes(_)?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y),S=k?new Date(k):null;if(S&&S.toString()!=="Invalid Date"){var C=x.filterValue,M="",O="";return _==="date"?(M=(0,o.default)(S,"MM/dd/yyyy"),O=(0,o.default)(C,"MM/dd/yyyy")):_==="datetime"&&(M=(0,o.default)(S,"MM/dd/yyyy - HH:mm"),O=(0,o.default)(C,"MM/dd/yyyy - HH:mm")),M===O}return!0}):_==="time"?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y),S=k||null;if(S){var C=x.filterValue,M=(0,o.default)(C,"HH:mm");return S===M}return!0}):h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k!=null&&k.toString().toUpperCase().includes(x.filterValue.toUpperCase())})}),h.filtered=!0}),(0,i.default)(this,"searchData",function(){if(h.grouped=h.treefied=h.sorted=h.paged=!1,h.searchedData=(0,n.default)(h.filteredData),h.searchText&&h.applySearch){var y=h.searchText.trim();h.searchedData=h.searchedData.filter(function(w){return h.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(y,w,_);if(_.field){var x=h.getFieldValue(w,_);if(x)return x.toString().toUpperCase().includes(y.toUpperCase())}return!1})})}h.searched=!0}),(0,i.default)(this,"clearCriteria",function(){h.changeOrder(-1,""),h.changeSearchText("");var y=p(h.columns),w;try{for(y.s();!(w=y.n()).done;){var _=w.value;h.changeFilterValue(_.tableData.id,"")}}catch(x){y.e(x)}finally{y.f()}h.changeSearchText(""),h.changePaging(0)})}return(0,l.default)(v,[{key:"setData",value:function(y,w){var _=this;this.selectedCount=0;var x={};this.data.length!==0&&this.data[0][w]!==void 0&&(x=this.data.reduce(function(T,k){return T[k.tableData.id]=k.tableData,T},{})),this.data=y.map(function(T,k){var S=x[T[w]]||{},C=f(f({index:k,id:T[w]||k,uuid:T.uuid||(0,a.v4)()},S),T.tableData);C.checked&&_.selectedCount++;var M=f(f({},T),{},{tableData:C});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===S&&(_.lastDetailPanelRow=M),_.lastEditingRow&&_.lastEditingRow.tableData===S&&(_.lastEditingRow=M),M}),this.filtered=!1}},{key:"setTableWidth",value:function(y){this.tableWidth=y}},{key:"setColumns",value:function(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=0,T=[];this.columns=y.map(function(C,M){var O,D=(0,u.widthToNumber)(C.width),P=typeof C.width=="number"?C.width+"px":C.width;P&&(isNaN(D)?T.push(P):x+=D);var E=w.find(function(F){var j=F.id;return j===M}),I=(O=_[C.field])!==null&&O!==void 0?O:{},A=f(f(f(f({columnOrder:M,filterValue:C.defaultFilter,groupOrder:C.defaultGroupOrder,groupSort:C.defaultGroupSort||"asc",width:P,initialWidth:P,widthPx:isNaN(D)?void 0:D,additionalWidth:0},I),E?E.tableData:{}),C.tableData),{},{id:M});return C.tableData=A,C});var k=this.columns.filter(function(C){return C.hidden||C.columnDef&&C.columnDef.tableData&&C.columnDef.tableData.width?!1:C.width===void 0}),S=(x!==0?"".concat(x,"px"):"0px")+(T.length>0?" - "+T.join(" - "):"");k.forEach(function(C){C.tableData.width=C.tableData.initialWidth="calc((100% - ".concat(S,") / ").concat(k.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||k.length>0||T.length>0?"100%":x}},{key:"setDefaultExpanded",value:function(y){this.defaultExpanded=y}},{key:"setClientSorting",value:function(y){this.clientSorting=!!y}},{key:"setMaxColumnSort",value:function(y){var w=this.columns.filter(function(_){return _.sorting!==!1}).length;y===c.ALL_COLUMNS?this.maxColumnSort=w:this.maxColumnSort=Math.min(y,w)}},{key:"setOrderByCollection",value:function(){var y=this.getOrderByCollection(),w=this.columns.map(function(_){var x=_.tableData.id,T=y.find(function(k){return k.orderBy===x});return T?f({},T):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});w=this.sortOrderCollection(w),this.orderByCollection=(0,n.default)(w)}},{key:"setDefaultOrderByCollection",value:function(y){this.defaultOrderByCollection=(0,n.default)(y)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(y){this.applySearch=y,this.searched=!1}},{key:"changeApplyFilters",value:function(y){this.applyFilters=y,this.filtered=!1}},{key:"changeApplySort",value:function(y){this.applySort=y,this.sorted=!1}},{key:"changePaging",value:function(y){this.paging=y,this.paged=!1}},{key:"changeCurrentPage",value:function(y){this.currentPage=y,this.paged=!1}},{key:"changePageSize",value:function(y){this.pageSize=y,this.paged=!1}},{key:"changeParentFunc",value:function(y){this.parentFunc=y}},{key:"changeFilterValue",value:function(y,w){var _=this.columns.find(function(x){return x.tableData.id===y});_.tableData.filterValue=w,this.filtered=!1}},{key:"changeRowSelected",value:function(y,w){var _=this,x=this.findDataByPath(this.sortedData,w);x.tableData.checked=y,this.selectedCount=this.selectedCount+(y?1:-1);var T=function k(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){C.tableData.checked!==y&&(C.tableData.checked=y,_.selectedCount=_.selectedCount+(y?1:-1)),k(C)})};T(x),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(y,w){var _=this.findDataByPath(this.sortedData,y);(_.tableData.showDetailPanel||"").toString()===w.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=w,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(y){var w=this.findDataByPath(this.sortedData,y);w.isExpanded=!w.isExpanded}},{key:"changeSearchText",value:function(y){this.searchText=y,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(y){this.searchDebounceDelay=y}},{key:"changeRowEditing",value:function(y,w){y?(y.tableData.editing=w,this.lastEditingRow&&this.lastEditingRow!==y&&(this.lastEditingRow.tableData.editing=void 0),w?this.lastEditingRow=y:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(y){this.bulkEditOpen=y}},{key:"changeAllSelected",value:function(y,w){var _=0,x=function(C){var M=w instanceof Function?w(C):{disabled:!1};return C.tableData.disabled||M.disabled?!1:y};if(this.isDataType("group")){var T=function S(C){C.forEach(function(M){M.groups.length>0?S(M.groups):M.data.forEach(function(O){O.tableData.checked=x(O),_++})})};T(this.groupedData)}else{var k=function S(C){C.tableData.childRows&&C.tableData.childRows.forEach(function(M){M.tableData.checked=x(C),S(M)})};this.searchedData.forEach(function(S){S.tableData.checked=x(S),k(S)}),_=this.searchedData.length}this.selectedCount=y?_:0}},{key:"changeColumnOrder",value:function(y,w,_){var x=[],T=this.getOrderByCollection();T.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,x=this.orderByCollection.map(function(k){return k.sortOrder?k.sortOrder-=1:k.orderBy===y&&w&&(k.sortOrder=T.length,k.orderDirection=w),k})):x=this.orderByCollection.map(function(k){return k.orderBy===y&&w?(k.orderDirection=w,k.sortOrder=_||T.length+1):!w&&k.orderBy===y?(k.orderDirection=w,k.sortOrder=void 0):!w&&_-1}).sort(function(q,Y){return q.tableData.groupOrder-Y.tableData.groupOrder});if(y.destination.droppableId==="groups"&&y.source.droppableId==="groups"){w=Math.min(y.destination.index,y.source.index);var x=Math.max(y.destination.index,y.source.index);if(_=_.slice(w,x+1),y.destination.index-1})&&(w="group"),y===w}},{key:"sort",value:function(y,w,_){if(_==="numeric")return y-w;if(y!==w){if(!y)return-1;if(!w)return 1}return yw?1:0}},{key:"sortList",value:function(y){if(!this.clientSorting)return y;var w=this.orderByCollection.map(function(S){return S.orderBy}),_=new Map;this.columns.forEach(function(S){var C=S.tableData.id;w.includes(C)&&_.set(C,S)});var x=this.sort,T=this.getFieldValue,k=this.orderByCollection;return y.sort(function S(C,M){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:k,P=D[0],E=P.orderBy,I=P.orderDirection,A=O.get(E),F=0;A.customSort?I==="desc"?F=A.customSort(M,C,"row",I):F=A.customSort(C,M,"row",I):(F=x(T(C,A),T(M,A),A.type),F=I.toLowerCase()==="desc"?F*-1:F);var j=F===0&&D.filter(function(z){return z.sortOrder!==void 0}).length!==1;return j?S(C,M,O,D.slice(1)):F})}},{key:"groupData",value:function(){var y=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var w=(0,n.default)(this.searchedData),_=this.columns.filter(function(T){return T.tableData.groupOrder>-1}).sort(function(T,k){return T.tableData.groupOrder-k.tableData.groupOrder}),x=w.reduce(function(T,k){var S=T;return S=_.reduce(function(C,M){var O=k[M.field]||(0,s.selectFromObject)(k,M.field),D;if(C.groupsIndex[O]!==void 0&&(D=C.groups[C.groupsIndex[O]]),!D){var P=[].concat((0,n.default)(C.path||[]),[O]),E=y.findGroupByGroupPath(y.groupedData,P)||{isExpanded:typeof y.defaultExpanded=="boolean"?y.defaultExpanded:!1};D={value:O,groups:[],groupsIndex:{},data:[],isExpanded:E.isExpanded,path:P},C.groups.push(D),C.groupsIndex[O]=C.groups.length-1}return D},S),S.data.push(k),y.groupedDataLength++,T},{groups:[],groupsIndex:{}});this.groupedData=x.groups,this.grouped=!0,this.rootGroupsIndex=x.groupsIndex}},{key:"treefyData",value:function(){var y=this;this.sorted=this.paged=!1,this.data.forEach(function(k){return k.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(k){return k.tableData.filterValue}))&&(this.data.forEach(function(k){k.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var w=function k(S){S.tableData.markedForTreeRemove=!1;var C=y.parentFunc(S,y.data);C?(C.tableData.childRows=C.tableData.childRows||[],C.tableData.childRows.includes(S)||(C.tableData.childRows.push(S),y.treefiedDataLength++),k(C),S.tableData.path=[].concat((0,n.default)(C.tableData.path),[S.tableData.uuid]),y.treeDataMaxLevel=Math.max(y.treeDataMaxLevel,S.tableData.path.length)):y.treefiedData.includes(S)||(y.treefiedData.push(S),y.treefiedDataLength++,S.tableData.path=[S.tableData.uuid])};this.data.forEach(function(k){w(k)});var _=function(S){var C=y.treefiedData;S.tableData.path.forEach(function(M){C.tableData&&C.tableData.childRows&&(C=C.tableData.childRows),Array.isArray(C)&&(C=C.find(function(O){return O.tableData.uuid===M}))}),C.tableData.markedForTreeRemove=!0},x=function k(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){k(C)}),S.tableData.markedForTreeRemove=!1};this.data.forEach(function(k){if(!y.searchText&&!y.columns.some(function(M){return M.tableData.filterValue})&&k.tableData.isTreeExpanded===void 0){var S=typeof y.defaultExpanded=="boolean"?y.defaultExpanded:y.defaultExpanded(k);k.tableData.isTreeExpanded=S}var C=k.tableData.isTreeExpanded;!C&&y.searchedData.indexOf(k)<0&&_(k)}),this.data.forEach(function(k){y.searchedData.indexOf(k)>-1&&x(k)});var T=function k(S){for(var C=S.length-1;C>=0;C--){var M=S[C];M.tableData.childRows&&k(M.tableData.childRows),M.tableData.markedForTreeRemove&&S.splice(C,1)}};T(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var y=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,n.default)(this.groupedData);var w=this.columns.filter(function(S){return S.tableData.groupOrder>-1}).sort(function(S,C){return S.tableData.groupOrder-C.tableData.groupOrder}),_=function(C,M){return M.customSort?C.sort(M.tableData.groupSort==="desc"?function(O,D){return M.customSort(D.value,O.value,"group",M.tableData.groupSort)}:function(O,D){return M.customSort(O.value,D.value,"group",M.tableData.groupSort)}):C.sort(M.tableData.groupSort==="desc"?function(O,D){return y.sort(D.value,O.value,M.type)}:function(O,D){return y.sort(O.value,D.value,M.type)})};this.sortedData=_(this.sortedData,w[0]);var x=function(C){return C.reduce(function(M,O){return M[O.value]=C.findIndex(function(D){return D.value===O.value}),M},{})},T=function S(C,M){C.forEach(function(O){if(O.groups.length>0){var D=w[M];O.groups=_(O.groups,D),O.groupsIndex=x(O.groups),S(O.groups,M+1)}else y.maxColumnSort>0&&y.getOrderByCollection().length>0?O.data=y.sortList(O.data):y.maxColumnSort>0&&(O.data=O.data.sort(function(P,E){return y.data.findIndex(function(I){return I.tableData.id===P.tableData.id})-y.data.findIndex(function(I){return I.tableData.id===E.tableData.id})}))})};T(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,n.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var k=function S(C){C.forEach(function(M){M.tableData.childRows&&(M.tableData.childRows=y.sortList(M.tableData.childRows),S(M.tableData.childRows))})};k(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,n.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,n.default)(this.sortedData),this.paging){var y=this.currentPage*this.pageSize,w=y+this.pageSize;this.pagedData=this.pagedData.slice(y,w)}this.paged=!0}}]),v}();e.default=b}(Q_)),Q_}var vR;function _Se(){return vR||(vR=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(oSe),l=t(iSe),i=t(ls),o=t(Ir()),a=t(pc),s=t(df()),u=t(lSe),c=t(_a()),d=t(iu()),f=t(fb()),p=t(pb()),m=t(IM()),g=t(LM()),b=t($M()),v=t(NM()),h=t($a()),y=t(ge),w=sSe(),_=t(oB()),x=M(ds()),T=$5,k=t(wSe()),S=Eb();function C(j){if(typeof WeakMap!="function")return null;var z=new WeakMap,B=new WeakMap;return(C=function(R){return R?B:z})(j)}function M(j,z){if(j&&j.__esModule)return j;if(j===null||n(j)!=="object"&&typeof j!="function")return{default:j};var B=C(z);if(B&&B.has(j))return B.get(j);var N={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in j)if(q!=="default"&&Object.prototype.hasOwnProperty.call(j,q)){var Y=R?Object.getOwnPropertyDescriptor(j,q):null;Y&&(Y.get||Y.set)?Object.defineProperty(N,q,Y):N[q]=j[q]}return N.default=j,B&&B.set(j,N),N}function O(j,z){var B=Object.keys(j);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(j);z&&(N=N.filter(function(R){return Object.getOwnPropertyDescriptor(j,R).enumerable})),B.push.apply(B,N)}return B}function D(j){for(var z=1;z"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var I=function(j){(0,g.default)(B,j);var z=P(B);function B(N){var R;(0,f.default)(this,B),R=z.call(this,N),(0,h.default)((0,m.default)(R),"dataManager",new k.default),(0,h.default)((0,m.default)(R),"checkedForFunctions",!1),(0,h.default)((0,m.default)(R),"clearCriteria",function(){R.dataManager.clearCriteria(),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"isRemoteData",function(L){return!Array.isArray((L||R.props).data)}),(0,h.default)((0,m.default)(R),"onAllSelected",function(L){R.dataManager.changeAllSelected(L,R.props.options.selectionProps),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,h.default)((0,m.default)(R),"onGroupSelected",function(L,W){R.dataManager.changeGroupSelected(L,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,h.default)((0,m.default)(R),"onChangeColumnHidden",function(L,W){R.dataManager.changeColumnHidden(L,W),R.setState(R.dataManager.getRenderState(),function(){R.props.onChangeColumnHidden&&R.props.onChangeColumnHidden(L,W)})}),(0,h.default)((0,m.default)(R),"onChangeGroupOrder",function(L){R.dataManager.changeGroupOrder(L.tableData.id),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onChangeOrder",function(L,W,U){R.dataManager.changeColumnOrder(L,W,U);var V=R.dataManager.getOrderByCollection();if(R.isRemoteData()){var te=D({},R.state.query);te.page=0,te.orderBy=R.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=W,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=V,R.onQueryChange(te,function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(V)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(V)})}),(0,h.default)((0,m.default)(R),"onPageChange",function(L,W){if(R.isRemoteData()){var U=D({},R.state.query);U.page=W,R.onQueryChange(U,function(){R.props.onPageChange&&R.props.onPageChange(W,U.pageSize)})}else R.dataManager.changeCurrentPage(W),R.setState(R.dataManager.getRenderState(),function(){R.props.onPageChange&&R.props.onPageChange(W,R.state.pageSize)})}),(0,h.default)((0,m.default)(R),"onRowsPerPageChange",function(L){var W=L.target.value;R.dataManager.changePageSize(W);var U=function(){R.props.onPageChange&&R.props.onPageChange(0,W),R.props.onRowsPerPageChange&&R.props.onRowsPerPageChange(W)};if(R.isRemoteData()){var V=D({},R.state.query);V.pageSize=L.target.value,V.page=0,R.onQueryChange(V,U)}else R.dataManager.changeCurrentPage(0),R.setState(R.dataManager.getRenderState(),U)}),(0,h.default)((0,m.default)(R),"onDragEnd",function(L){!L||!L.source||!L.destination||(R.dataManager.changeByDrag(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&R.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,h.default)((0,m.default)(R),"onGroupExpandChanged",function(L){R.dataManager.changeGroupExpand(L),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onGroupRemoved",function(L,W){var U={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:W,droppableId:"groups"},type:"DEFAULT"};R.dataManager.changeByDrag(U),R.setState(R.dataManager.getRenderState(),function(){R.props.onGroupRemoved&&R.props.onGroupRemoved(L,W)})}),(0,h.default)((0,m.default)(R),"onEditingApproved",function(L,W,U){L==="add"&&R.props.editable&&R.props.editable.onRowAdd?R.setState({isLoading:!0},function(){R.props.editable.onRowAdd(W).then(function(V){R.setState({isLoading:!1,showAddRow:!1},function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"add"};R.setState({isLoading:!1,errorState:te})})}):L==="update"&&R.props.editable&&R.props.editable.onRowUpdate?R.setState({isLoading:!0},function(){R.props.editable.onRowUpdate(W,U).then(function(V){R.dataManager.changeRowEditing(U),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"update"};R.setState({isLoading:!1,errorState:te})})}):L==="delete"&&R.props.editable&&R.props.editable.onRowDelete?R.setState({isLoading:!0},function(){R.props.editable.onRowDelete(Object.entries(U).reduce(function(V,te){var ee=(0,d.default)(te,2),H=ee[0],Z=ee[1];return H!=="tableData"&&(V[H]=Z),V},{})).then(function(V){R.dataManager.changeRowEditing(U),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"delete"};R.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&R.props.editable&&R.props.editable.onBulkUpdate&&R.setState({isLoading:!0},function(){R.props.editable.onBulkUpdate(R.dataManager.bulkEditChangedRows).then(function(V){R.dataManager.changeBulkEditOpen(!1),R.props.onBulkEditOpen&&R.props.onBulkEditOpen(!1),R.dataManager.clearBulkEditChangedRows(),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"bulk edit"};R.setState({isLoading:!1,errorState:te})})})}),(0,h.default)((0,m.default)(R),"onEditingCanceled",function(L,W){L==="add"?(R.props.editable.onRowAddCancelled&&R.props.editable.onRowAddCancelled(),R.setState({showAddRow:!1})):L==="update"?(R.props.editable.onRowUpdateCancelled&&R.props.editable.onRowUpdateCancelled(),R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState())):L==="delete"&&(R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState()))}),(0,h.default)((0,m.default)(R),"retry",function(){R.onQueryChange(R.state.query)}),(0,h.default)((0,m.default)(R),"onQueryChange",function(L,W){L=D(D(D({},R.state.query),L),{},{error:R.state.errorState}),R.setState({isLoading:!0,errorState:void 0},function(){R.props.data(L).then(function(U){L.totalCount=U.totalCount,L.page=U.page;var V=D(D({},L),{},{totalCount:U.totalCount,page:U.page});R.dataManager.setData(U.data,R.props.options.idSynonym),R.setState(D(D({isLoading:!1,errorState:!1},R.dataManager.getRenderState()),{},{query:V}),function(){W&&W()})}).catch(function(U){var V={message:(0,c.default)(U)==="object"?U.message:U!==void 0?U:R.props.localization.error,errorCause:"query"};R.setState(D({isLoading:!1,errorState:V},R.dataManager.getRenderState()))})})}),(0,h.default)((0,m.default)(R),"onRowSelected",function(L,W,U){R.dataManager.changeRowSelected(L.target.checked,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange(U)})}),(0,h.default)((0,m.default)(R),"onSelectionChange",function(L){if(R.props.onSelectionChange){var W=[],U=function(te){te.forEach(function(ee){ee.tableData.checked&&W.push(ee)})};U(R.state.originalData),R.props.onSelectionChange(W,L)}}),(0,h.default)((0,m.default)(R),"onSearchChangeDebounce",(0,w.debounce)(function(L){if(R.isRemoteData()){var W=D({},R.state.query);W.page=0,W.search=L,R.onQueryChange(W,function(){R.props.onSearchChange&&R.props.onSearchChange(L)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onSearchChange&&R.props.onSearchChange(L)})},R.props.options.debounceInterval)),(0,h.default)((0,m.default)(R),"onFilterChange",function(L,W){R.dataManager.changeFilterValue(L,W),R.setState({},R.onFilterChangeDebounce)}),(0,h.default)((0,m.default)(R),"onFilterChangeDebounce",(0,w.debounce)(function(){if(R.isRemoteData()){var L=D({},R.state.query);L.page=0,L.filters=R.state.columns.filter(function(W){return W.tableData.filterValue}).map(function(W){return{column:W,operator:"=",value:W.tableData.filterValue}}),R.onQueryChange(L,function(){R.props.onFilterChange&&R.props.onFilterChange(L.filters)})}else R.setState(R.dataManager.getRenderState(),function(){if(R.props.onFilterChange){var W=R.state.columns.filter(function(U){return U.tableData.filterValue}).map(function(U){return{column:U,operator:"=",value:U.tableData.filterValue}});R.props.onFilterChange(W)}})},R.props.options.debounceInterval)),(0,h.default)((0,m.default)(R),"onTreeExpandChanged",function(L,W){R.dataManager.changeTreeExpand(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onTreeExpandChange&&R.props.onTreeExpandChange(W,W.tableData.isTreeExpanded)})}),(0,h.default)((0,m.default)(R),"onToggleDetailPanel",function(L,W){R.dataManager.changeDetailPanelVisibility(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onCellEditStarted",function(L,W){R.dataManager.startCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onCellEditFinished",function(L,W){R.dataManager.finishCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onEditRowDataChanged",function(L,W){R.dataManager.setEditRowData(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onColumnResized",function(L,W,U,V){var te=function(Z){return D(D(D({field:Z.field,width:Z.tableData.width,widthPx:Z.tableData.widthPx},Z.id&&{id:Z.id}),Z.minWidth&&{minWidth:Z.minWidth}),Z.maxWidth&&{maxWidth:Z.maxWidth})},ee=R.dataManager.onColumnResized(L,W,U,V);R.setState(R.dataManager.getRenderState(),function(){W===0&&R.props.onColumnResized&&ee.length>0&&R.props.onColumnResized(ee.map(function(H){return te(H)}),R.state.columns.map(function(H){return te(H)}))})}),(0,h.default)((0,m.default)(R),"renderTable",function(L){var W;return y.default.createElement(u.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:R.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&y.default.createElement(L.components.Header,{actions:R.state.actions,columns:R.state.columns,selectedCount:R.state.selectedCount,dataCount:L.parentChildData?R.dataManager.searchedData.length:R.state.columns.some(function(U){return U.tableData.groupOrder>-1})?R.state.groupedDataLength:R.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!R.dataManager.bulkEditOpen&&R.state.actions&&R.state.actions.some(function(U){return U.position==="row"||typeof U=="function"}),onAllSelected:R.onAllSelected,onOrderChange:R.onChangeOrder,isTreeData:R.props.parentChildData!==void 0,treeDataMaxLevel:R.state.treeDataMaxLevel,onColumnResized:R.onColumnResized,scrollWidth:R.state.width,sorting:L.options.sorting||R.dataManager.maxColumnSort!==0,allowSorting:R.dataManager.maxColumnSort!==0,orderByCollection:R.dataManager.getOrderByCollection(),tableWidth:(W=L.options.tableWidth)!==null&&W!==void 0?W:"full"}),y.default.createElement(L.components.Body,{actions:R.state.actions,components:R.props.components,renderData:R.state.renderData,data:R.state.data,renderSummaryRow:R.props.renderSummaryRow,currentPage:R.isRemoteData()?0:R.state.currentPage,initialFormData:L.initialFormData,pageSize:R.state.pageSize,columns:R.state.columns,errorState:R.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:R.dataManager.getFieldValue,isTreeData:R.props.parentChildData!==void 0,onFilterChanged:R.onFilterChange,onRowSelected:R.onRowSelected,onGroupSelected:R.onGroupSelected,onToggleDetailPanel:R.onToggleDetailPanel,onGroupExpandChanged:R.onGroupExpandChanged,onTreeExpandChanged:R.onTreeExpandChanged,onEditingCanceled:R.onEditingCanceled,onEditingApproved:R.onEditingApproved,onRowClick:R.props.onRowClick,onRowDoubleClick:R.props.onRowDoubleClick,showAddRow:R.state.showAddRow,hasAnyEditingRow:!!(R.state.lastEditingRow||R.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:R.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:R.onCellEditStarted,onCellEditFinished:R.onCellEditFinished,onRowEditStarted:R.onRowEditStarted,bulkEditOpen:R.dataManager.bulkEditOpen,bulkEditChangedRows:R.dataManager.bulkEditChangedRows,onBulkEditRowChanged:R.dataManager.onBulkEditRowChanged,scrollWidth:R.state.width}))}),(0,h.default)((0,m.default)(R),"onRowEditStarted",function(L){var W;(W=R.props.editable)!==null&&W!==void 0&&W.onRowUpdate&&(R.dataManager.changeRowEditing(L,"update"),R.setState(D(D({},R.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,h.default)((0,m.default)(R),"getColumnsWidth",function(L,W){var U=[],V=x.actionsColumnWidth(L);if(V>0&&(W>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=W)&&U.push(V+"px"),L.options.selection&&W>0){var te=x.selectionMaxWidth(L,R.state.treeDataMaxLevel);U.push(te+"px")}for(var ee=0;ee=0?ee:R.state.columns.length-1-ee];H.tableData&&(typeof H.tableData.width=="number"?U.push(H.tableData.width+"px"):U.push(H.tableData.width))}return"calc("+U.join(" + ")+")"}),(0,h.default)((0,m.default)(R),"getRenderData",function(){return R.props.options.exportAllData?R.state.data:R.state.renderData});var q=R.getProps(N);R.setDataManagerFields(q,!0);var Y=R.dataManager.getRenderState();return R.state=D(D({data:[],errorState:void 0},Y),{},{query:{filters:Y.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:Y.columns.find(function(L){return L.tableData.id===Y.orderBy}),orderDirection:Y.orderDirection,orderByCollection:Y.orderByCollection,page:0,pageSize:q.options.pageSize,search:Y.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:q.actions}),R.tableContainerDiv=y.default.createRef(),R}return(0,p.default)(B,[{key:"componentDidMount",value:function(){var R=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){R.isRemoteData()&&R.onQueryChange(D(D({},R.state.query),{},{page:R.props.options.initialPage||0})),R.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),R.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(R,q,Y){var L,W=this,U={};if(R.options.persistentGroupingsId&&localStorage){var V=localStorage.getItem("material-table-groupings");V&&(V=JSON.parse(V),V[R.options.persistentGroupingsId]&&V[R.options.persistentGroupingsId].forEach(function(Se){U[Se.field]={groupOrder:Se.groupOrder,groupSort:Se.groupSort,columnOrder:Se.columnOrder}}))}this.dataManager.setTableWidth((L=R.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(R.columns,Y,U),this.dataManager.setDefaultExpanded(R.options.defaultExpanded),this.dataManager.changeRowEditing();var te=R.options,ee=te.clientSorting,H=te.grouping,Z=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(H?1:Z),this.dataManager.setOrderByCollection(),this.isRemoteData(R)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(R.data,R.options.idSynonym));var G=this.dataManager.getDefaultOrderByCollection(),X=R.options.defaultOrderByCollection,Q=[],re="",ae="";if(X&&X.length>0)Q=(0,s.default)(X).slice(0,Z),Q=this.dataManager.sortOrderCollection(Q),re=JSON.stringify(Q),ae=JSON.stringify(G),re!==ae&&this.dataManager.setDefaultOrderByCollection(Q);else{var ie=A(R.columns,Y,this.dataManager.maxColumnSort);Q=(0,s.default)(ie[0]),re=JSON.stringify(Q),ae=JSON.stringify((0,s.default)(ie[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),he=q||!this.isRemoteData()&&Q.length&&re!==ae&&re!==se;he&&Q.length>0&&Z>0&&Q.forEach(function(Se){var Oe=Se.orderBy,Pe=Se.orderDirection,Me=Se.sortOrder;return W.dataManager.changeColumnOrder(Oe,Pe,Me)}),q&&this.dataManager.changeSearchText(R.options.searchText||""),q&&this.dataManager.changeSearchDebounce(R.options.searchDebounceDelay),q&&this.dataManager.changeCurrentPage(R.options.initialPage?R.options.initialPage:0),q&&this.dataManager.changePageSize(R.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:R.options.paging),q&&this.dataManager.changeParentFunc(R.parentChildData),this.dataManager.changeDetailPanelType(R.options.detailPanelType)}},{key:"cleanColumns",value:function(R){return R.map(function(q){var Y=D({},q);return delete Y.tableData,Y})}},{key:"componentDidUpdate",value:function(R){var q=this.cleanColumns(R.columns),Y=this.cleanColumns(this.props.columns),L=!(0,_.default)(q,Y),W=L||!(0,_.default)(R.options,this.props.options);if(this.isRemoteData()||(W=W||!(0,_.default)(R.data,this.props.data)),R.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),W){var U=this.getProps(this.props);this.setDataManagerFields(U,!1,R.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:U.actions}))}var V=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;V<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(V/ee)-1))}},{key:"getProps",value:function(R){var q=this,Y=D({},R||this.props),L=this.props.localization.body;if(Y.options.selection?Y.actions=Y.actions.filter(function(U){return U}).map(function(U){return U.position==="auto"||U.isFreeAction===!1||U.position===void 0&&U.isFreeAction===void 0?typeof U=="function"?{action:U,position:"toolbarOnSelect"}:D(D({},U),{},{position:"toolbarOnSelect"}):U.isFreeAction?typeof U=="function"?{action:U,position:"toolbar"}:D(D({},U),{},{position:"toolbar"}):U}):Y.actions=Y.actions.filter(function(U){return U}).map(function(U){return U.position==="auto"||U.isFreeAction===!1||U.position===void 0&&U.isFreeAction===void 0?typeof U=="function"?{action:U,position:"row"}:D(D({},U),{},{position:"row"}):U.isFreeAction?typeof U=="function"?{action:U,position:"toolbar"}:D(D({},U),{},{position:"toolbar"}):U}),Y.editable){var W;Y.editable.onRowAdd&&Y.actions.push({icon:Y.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){q.dataManager.changeRowEditing(),q.state.showAddRow&&q.props.editable.onRowAddCancelled&&q.props.editable.onRowAddCancelled(),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!q.state.showAddRow}))}}),Y.editable.onRowUpdate&&Y.actions.push(function(U){return{icon:Y.icons.Edit,tooltip:Y.editable.editTooltip?Y.editable.editTooltip(U):L.editTooltip,disabled:Y.editable.isEditable&&!Y.editable.isEditable(U),hidden:Y.editable.isEditHidden&&Y.editable.isEditHidden(U),onClick:function(te,ee){q.onRowEditStarted(ee)}}}),Y.editable.onRowDelete&&Y.actions.push(function(U){return{icon:Y.icons.Delete,tooltip:Y.editable.deleteTooltip?Y.editable.deleteTooltip(U):L.deleteTooltip,disabled:Y.editable.isDeletable&&!Y.editable.isDeletable(U),hidden:Y.editable.isDeleteHidden&&Y.editable.isDeleteHidden(U),onClick:function(te,ee){q.dataManager.changeRowEditing(ee,"delete"),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),Y.editable.onBulkUpdate&&(Y.actions.push({icon:Y.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:Y.isBulkEditable&&Y.isBulkEditable(),onClick:function(){q.dataManager.changeBulkEditOpen(!0),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!0),q.setState(q.dataManager.getRenderState())}}),Y.actions.push({icon:Y.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return q.onEditingApproved("bulk")}}),Y.actions.push({icon:Y.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){q.dataManager.changeBulkEditOpen(!1),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!1),q.dataManager.clearBulkEditChangedRows(),q.setState(q.dataManager.getRenderState())}})),(W=this.state)!==null&&W!==void 0&&W.showAddRow&&Y.editable.onRowAdd&&Y.actions.filter(function(U){return U.position==="row"}).length===0&&Y.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return Y}},{key:"renderFooter",value:function(){var R=this.getProps();if(R.options.paging){var q=this.isRemoteData()?Math.min(R.page,Math.floor(R.totalCount/this.state.pageSize)):this.state.currentPage,Y=this.isRemoteData()?R.totalCount:this.state.data.length;return y.default.createElement(u.default,null,y.default.createElement(l.default,{style:{display:"grid"}},y.default.createElement(i.default,{style:{display:"grid"}},y.default.createElement(R.components.Pagination,{sx:{display:"flex",justifyContent:R.options.paginationAlignment?R.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:Y,rowsPerPage:this.state.pageSize,rowsPerPageOptions:R.options.pageSizeOptions,SelectProps:{renderValue:function(W){return y.default.createElement(a.default,{sx:{padding:"0px 5px"}},W+" "+R.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:q,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(W){return R.options.paginationType==="normal"?y.default.createElement(S.MTablePagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons})):y.default.createElement(S.MTableSteppedPagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons,numberOfPagesAround:R.options.numberOfPagesAround}))},labelRowsPerPage:R.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var R=this,q=this.getProps();return y.default.createElement(T.DragDropContext,{onDragEnd:this.onDragEnd,nonce:q.options.cspNonce},y.default.createElement(this.props.components.Container,{style:D({position:"relative"},q.style)},q.options.paginationPosition==="top"||q.options.paginationPosition==="both"?this.renderFooter():null,q.options.toolbar&&y.default.createElement(this.props.components.Toolbar,{actions:q.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:q.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),q.options.grouping&&y.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(Y){return Y.tableData.groupOrder>-1}).sort(function(Y,L){return Y.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:q.options.persistentGroupingsId}),y.default.createElement(S.MTableScrollbar,{double:q.options.doubleHorizontalScroll},y.default.createElement(T.Droppable,{droppableId:"headers",direction:"horizontal"},function(Y,L){var W=R.renderTable(q);return y.default.createElement("div",{ref:Y.innerRef},y.default.createElement("div",{ref:R.tableContainerDiv,style:{maxHeight:q.options.maxBodyHeight,minHeight:q.options.minBodyHeight,overflowY:q.options.overflowY}},R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.right?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,-1*q.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white",transform:"translateX(calc(".concat(R.getColumnsWidth(q,-1*q.options.fixedColumns.right)," - 100%))")}},W)):null,y.default.createElement("div",null,W),R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.left?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,q.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white"},onKeyDown:function(V){V.key==="Tab"&&V.preventDefault()}},W)):null),Y.placeholder)})),(this.state.isLoading||q.isLoading)&&q.options.loadingType==="linear"&&y.default.createElement("div",{style:{position:"relative",width:"100%"}},y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},y.default.createElement(r.default,null))),q.options.paginationPosition==="bottom"||q.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||q.isLoading)&&q.options.loadingType==="overlay"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayLoading,{theme:q.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:q.theme}))))}}]),B}(y.default.Component);e.default=I;function A(j,z,B){var N=[],R=[];return B>0&&(N=F(j,B)),z&&(R=F(z,B)),[N,R]}function F(j,z){var B=j.filter(function(N){return N.defaultSort&&N.sorting!==!1});return B.slice(0,z).map(function(N,R){return{orderBy:N.tableData?N.tableData.id:j.findIndex(function(q){return q.field===N.field}),orderDirection:N.defaultSort,sortOrder:R+1}})}}(K_)),K_}(function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return c.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return u.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return u.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return u.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return u.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return u.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return u.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return u.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return u.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return u.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return u.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return u.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return u.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return u.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return u.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return s.useLocalizationStore}});var n=t(Ir()),r=t(ge),l=rSe(),i=aSe(),o=t(_Se()),a=uf,s=tg(),u=Eb(),c=N5();o.default.defaultProps=l.defaultProps,o.default.propTypes=i.propTypes;var d=(0,s.withContext)(function(f){var p=(0,a.useTheme)(),m=(0,s.useMergeProps)(f),g=m.localization,b=m.options,v=m.components;return r.default.createElement(o.default,(0,n.default)({},f,{theme:p,options:b,components:v,localization:g,ref:f.tableRef}))});e.default=d})(Gz);const TSe=lr(Gz);var F5={},kSe=Cn;Object.defineProperty(F5,"__esModule",{value:!0});var Kq=F5.default=void 0,SSe=kSe(Ta()),CSe=ke,MSe=(0,SSe.default)((0,CSe.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");Kq=F5.default=MSe;const PSe=e=>ke.jsx(DM.Consumer,{children:t=>ke.jsx(oy,{func:()=>t.getAdditionGraphData(e.graphId),children:n=>ke.jsx(cb,{...n,widgetSize:e.widgetSize})})});var Zq=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(l,i){return l[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),l=this.__entries__[r];return l&&l[1]},t.prototype.set=function(n,r){var l=e(this.__entries__,n);~l?this.__entries__[l][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,l=e(r,n);~l&&r.splice(l,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var l=0,i=this.__entries__;l0},e.prototype.connect_=function(){!xk||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),LSe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!xk||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,l=RSe.some(function(i){return!!~r.indexOf(i)});l&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Qq=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Xd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new qSe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Xd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new USe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),eU=typeof WeakMap<"u"?new WeakMap:new Zq,tU=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ISe.getInstance(),r=new HSe(t,n,this);eU.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){tU.prototype[e]=function(){var t;return(t=eU.get(this))[e].apply(t,arguments)}});var VSe=function(){return typeof by.ResizeObserver<"u"?by.ResizeObserver:tU}(),GSe=["client","offset","scroll","bounds","margin"];function bR(e){var t=[];return GSe.forEach(function(n){e[n]&&t.push(n)}),t}function xR(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var l=getComputedStyle(e);n.margin={top:l?parseInt(l.marginTop):0,right:l?parseInt(l.marginRight):0,bottom:l?parseInt(l.marginBottom):0,left:l?parseInt(l.marginLeft):0}}return n}function YSe(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function XSe(e){return function(t){var n,r;return r=n=function(l){Z1(i,l);function i(){for(var a,s=arguments.length,u=new Array(s),c=0;c"u"?Oo:window,k0=["moz","webkit"],kd="AnimationFrame",Kd=Hl["request"+kd],Sm=Hl["cancel"+kd]||Hl["cancelRequest"+kd];for(var jp=0;!Kd&&jpT*10&&(O.accumulatedTime=0),O.accumulatedTime===0){O.animationID=null,O.startAnimationIfNecessary();return}var A=(O.accumulatedTime-Math.floor(O.accumulatedTime/T)*T)/T,F=Math.floor(O.accumulatedTime/T),j={},z={},B={},N={};for(var R in P)if(Object.prototype.hasOwnProperty.call(P,R)){var q=P[R];if(typeof q=="number")B[R]=q,N[R]=0,j[R]=q,z[R]=0;else{for(var Y=O.state.lastIdealStyle[R],L=O.state.lastIdealVelocity[R],W=0;WT*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var F=(D.accumulatedTime-Math.floor(D.accumulatedTime/T)*T)/T,j=Math.floor(D.accumulatedTime/T),z=[],B=[],N=[],R=[],q=0;qo[h])return-1;if(p>s[h]&&bo[h])return 1;if(m>s[h]&&gS*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}for(var R=(A.accumulatedTime-Math.floor(A.accumulatedTime/S)*S)/S,q=Math.floor(A.accumulatedTime/S),Y=O(A.props.willEnter,A.props.willLeave,A.props.didLeave,A.state.mergedPropsStyles,z,A.state.currentStyles,A.state.currentVelocities,A.state.lastIdealStyles,A.state.lastIdealVelocities),L=Y[0],W=Y[1],U=Y[2],V=Y[3],te=Y[4],ee=0;ee-1}var UCe=qCe,HCe=zb;function VCe(e,t){var n=this.__data__,r=HCe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var GCe=VCe,YCe=ACe,XCe=FCe,KCe=BCe,ZCe=UCe,QCe=GCe;function vf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=a4e}var Q5=o4e,i4e=Wb,l4e=Q5;function s4e(e){return e!=null&&l4e(e.length)&&!i4e(e)}var _f=s4e,u4e=_f,c4e=oi;function d4e(e){return c4e(e)&&u4e(e)}var gU=d4e,Ty={exports:{}};function f4e(){return!1}var p4e=f4e;Ty.exports;(function(e,t){var n=zo,r=p4e,l=t&&!t.nodeType&&t,i=l&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===l,a=o?n.Buffer:void 0,s=a?a.isBuffer:void 0,u=s||r;e.exports=u})(Ty,Ty.exports);var Xb=Ty.exports,h4e=fs,m4e=K5,g4e=oi,v4e="[object Object]",y4e=Function.prototype,b4e=Object.prototype,vU=y4e.toString,x4e=b4e.hasOwnProperty,w4e=vU.call(Object);function _4e(e){if(!g4e(e)||h4e(e)!=v4e)return!1;var t=m4e(e);if(t===null)return!0;var n=x4e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vU.call(n)==w4e}var J5=_4e;const Pm=lr(J5);var T4e=fs,k4e=Q5,S4e=oi,C4e="[object Arguments]",M4e="[object Array]",P4e="[object Boolean]",O4e="[object Date]",A4e="[object Error]",D4e="[object Function]",E4e="[object Map]",R4e="[object Number]",L4e="[object Object]",I4e="[object RegExp]",$4e="[object Set]",N4e="[object String]",F4e="[object WeakMap]",j4e="[object ArrayBuffer]",z4e="[object DataView]",B4e="[object Float32Array]",W4e="[object Float64Array]",q4e="[object Int8Array]",U4e="[object Int16Array]",H4e="[object Int32Array]",V4e="[object Uint8Array]",G4e="[object Uint8ClampedArray]",Y4e="[object Uint16Array]",X4e="[object Uint32Array]",Ur={};Ur[B4e]=Ur[W4e]=Ur[q4e]=Ur[U4e]=Ur[H4e]=Ur[V4e]=Ur[G4e]=Ur[Y4e]=Ur[X4e]=!0;Ur[C4e]=Ur[M4e]=Ur[j4e]=Ur[P4e]=Ur[z4e]=Ur[O4e]=Ur[A4e]=Ur[D4e]=Ur[E4e]=Ur[R4e]=Ur[L4e]=Ur[I4e]=Ur[$4e]=Ur[N4e]=Ur[F4e]=!1;function K4e(e){return S4e(e)&&k4e(e.length)&&!!Ur[T4e(e)]}var Z4e=K4e;function Q4e(e){return function(t){return e(t)}}var Tf=Q4e,ky={exports:{}};ky.exports;(function(e,t){var n=aU,r=t&&!t.nodeType&&t,l=r&&!0&&e&&!e.nodeType&&e,i=l&&l.exports===r,o=i&&n.process,a=function(){try{var s=l&&l.require&&l.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a})(ky,ky.exports);var Kb=ky.exports,J4e=Z4e,eOe=Tf,IR=Kb,$R=IR&&IR.isTypedArray,tOe=$R?eOe($R):J4e,eP=tOe;function nOe(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var yU=nOe,rOe=Y5,aOe=cg,oOe=Object.prototype,iOe=oOe.hasOwnProperty;function lOe(e,t,n){var r=e[t];(!(iOe.call(e,t)&&aOe(r,n))||n===void 0&&!(t in e))&&rOe(e,t,n)}var tP=lOe,sOe=tP,uOe=Y5;function cOe(e,t,n,r){var l=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=b6e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var _U=_6e,T6e=y6e,k6e=_U,S6e=k6e(T6e),rP=S6e,C6e=bc,M6e=wU,P6e=rP;function O6e(e,t){return P6e(M6e(e,t,C6e),e+"")}var Zb=O6e,A6e=cg,D6e=_f,E6e=dg,R6e=Oi;function L6e(e,t,n){if(!R6e(n))return!1;var r=typeof t;return(r=="number"?D6e(n)&&E6e(t,n.length):r=="string"&&t in n)?A6e(n[t],e):!1}var aP=L6e,I6e=Zb,$6e=aP;function N6e(e){return I6e(function(t,n){var r=-1,l=n.length,i=l>1?n[l-1]:void 0,o=l>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(l--,i):void 0,o&&$6e(n[0],n[1],o)&&(i=l<3?void 0:i,l=1),t=Object(t);++rt?1:e>=t?0:NaN}function lP(e){let t=e,n=e;e.length===1&&(t=(o,a)=>e(o)-a,n=YAe(e));function r(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)<0?s=c+1:u=c}return s}function l(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)>0?u=c:s=c+1}return s}function i(o,a,s,u){s==null&&(s=0),u==null&&(u=o.length);const c=r(o,a,s,u-1);return c>s&&t(o[c-1],a)>-t(o[c],a)?c-1:c}return{left:r,center:i,right:l}}function YAe(e){return(t,n)=>PU(e(t),n)}function XAe(e){return e===null?NaN:+e}const KAe=lP(PU),ZAe=KAe.right;lP(XAe).center;var Ek=Math.sqrt(50),Rk=Math.sqrt(10),Lk=Math.sqrt(2);function Ik(e,t,n){var r,l=-1,i,o,a;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0){let s=Math.round(e/a),u=Math.round(t/a);for(s*at&&--u,o=new Array(i=u-s+1);++lt&&--u,o=new Array(i=u-s+1);++l=0?(i>=Ek?10:i>=Rk?5:i>=Lk?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(i>=Ek?10:i>=Rk?5:i>=Lk?2:1)}function $k(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),l=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/l;return i>=Ek?l*=10:i>=Rk?l*=5:i>=Lk&&(l*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?C0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?C0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=t8e.exec(e))?new Yo(t[1],t[2],t[3],1):(t=n8e.exec(e))?new Yo(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=r8e.exec(e))?C0(t[1],t[2],t[3],t[4]):(t=a8e.exec(e))?C0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=o8e.exec(e))?e9(t[1],t[2]/100,t[3]/100,1):(t=i8e.exec(e))?e9(t[1],t[2]/100,t[3]/100,t[4]):YR.hasOwnProperty(e)?ZR(YR[e]):e==="transparent"?new Yo(NaN,NaN,NaN,0):null}function ZR(e){return new Yo(e>>16&255,e>>8&255,e&255,1)}function C0(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yo(e,t,n,r)}function s8e(e){return e instanceof hg||(e=Qu(e)),e?(e=e.rgb(),new Yo(e.r,e.g,e.b,e.opacity)):new Yo}function Ju(e,t,n,r){return arguments.length===1?s8e(e):new Yo(e,t,n,r??1)}function Yo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}uP(Yo,Ju,DU(hg,{brighter:function(e){return e=e==null?Sy:Math.pow(Sy,e),new Yo(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Om:Math.pow(Om,e),new Yo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:QR,formatHex:QR,formatRgb:JR,toString:JR}));function QR(){return"#"+nT(this.r)+nT(this.g)+nT(this.b)}function JR(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function nT(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function e9(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fl(e,t,n,r)}function EU(e){if(e instanceof fl)return new fl(e.h,e.s,e.l,e.opacity);if(e instanceof hg||(e=Qu(e)),!e)return new fl;if(e instanceof fl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,l=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,a=i-l,s=(i+l)/2;return a?(t===i?o=(n-r)/a+(n0&&s<1?0:o,new fl(o,a,s,e.opacity)}function u8e(e,t,n,r){return arguments.length===1?EU(e):new fl(e,t,n,r??1)}function fl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}uP(fl,u8e,DU(hg,{brighter:function(e){return e=e==null?Sy:Math.pow(Sy,e),new fl(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Om:Math.pow(Om,e),new fl(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,l=2*n-r;return new Yo(rT(e>=240?e-240:e+120,l,r),rT(e,l,r),rT(e<120?e+240:e-120,l,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function rT(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const cP=e=>()=>e;function c8e(e,t){return function(n){return e+n*t}}function d8e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function f8e(e){return(e=+e)==1?RU:function(t,n){return n-t?d8e(t,n,e):cP(isNaN(t)?n:t)}}function RU(e,t){var n=t-e;return n?c8e(e,n):cP(isNaN(e)?t:e)}const t9=function e(t){var n=f8e(t);function r(l,i){var o=n((l=Ju(l)).r,(i=Ju(i)).r),a=n(l.g,i.g),s=n(l.b,i.b),u=RU(l.opacity,i.opacity);return function(c){return l.r=o(c),l.g=a(c),l.b=s(c),l.opacity=u(c),l+""}}return r.gamma=e,r}(1);function p8e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),l;return function(i){for(l=0;ln&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:Cy(r,l)})),n=aT.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function S8e(e,t,n){var r=e[0],l=e[1],i=t[0],o=t[1];return l2?C8e:S8e,s=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(s||(s=a(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(l((u||(u=a(t,e.map(r),Cy)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,T8e),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=w8e,c()},d.clamp=function(f){return arguments.length?(o=f?!0:dd,c()):o!==dd},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,l=p,c()}}function IU(){return LU()(dd,dd)}function M8e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function My(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Zd(e){return e=My(Math.abs(e)),e?e[1]:NaN}function P8e(e,t){return function(n,r){for(var l=n.length,i=[],o=0,a=e[0],s=0;l>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),i.push(n.substring(l-=a,l+a)),!((s+=a+1)>r));)a=e[o=(o+1)%e.length];return i.reverse().join(t)}}function O8e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var A8e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Py(e){if(!(t=A8e.exec(e)))throw new Error("invalid format: "+e);var t;return new pP({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Py.prototype=pP.prototype;function pP(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}pP.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function D8e(e){e:for(var t=e.length,n=1,r=-1,l;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(l+1):e}var $U;function E8e(e,t){var n=My(e,t);if(!n)return e+"";var r=n[0],l=n[1],i=l-($U=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+My(e,Math.max(0,t+i-1))[0]}function r9(e,t){var n=My(e,t);if(!n)return e+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}const a9={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:M8e,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return r9(e*100,t)},r:r9,s:E8e,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function o9(e){return e}var i9=Array.prototype.map,l9=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function R8e(e){var t=e.grouping===void 0||e.thousands===void 0?o9:P8e(i9.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",l=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?o9:O8e(i9.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Py(d);var f=d.fill,p=d.align,m=d.sign,g=d.symbol,b=d.zero,v=d.width,h=d.comma,y=d.precision,w=d.trim,_=d.type;_==="n"?(h=!0,_="g"):a9[_]||(y===void 0&&(y=12),w=!0,_="g"),(b||f==="0"&&p==="=")&&(b=!0,f="0",p="=");var x=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",T=g==="$"?r:/[%p]/.test(_)?o:"",k=a9[_],S=/[defgprs%]/.test(_);y=y===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function C(M){var O=x,D=T,P,E,I;if(_==="c")D=k(M)+D,M="";else{M=+M;var A=M<0||1/M<0;if(M=isNaN(M)?s:k(Math.abs(M),y),w&&(M=D8e(M)),A&&+M==0&&m!=="+"&&(A=!1),O=(A?m==="("?m:a:m==="-"||m==="("?"":m)+O,D=(_==="s"?l9[8+$U/3]:"")+D+(A&&m==="("?")":""),S){for(P=-1,E=M.length;++PI||I>57){D=(I===46?l+M.slice(P+1):M.slice(P))+D,M=M.slice(0,P);break}}}h&&!b&&(M=t(M,1/0));var F=O.length+M.length+D.length,j=F>1)+O+M+D+j.slice(F);break;default:M=j+O+M+D;break}return i(M)}return C.toString=function(){return d+""},C}function c(d,f){var p=u((d=Py(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(Zd(f)/3)))*3,g=Math.pow(10,-m),b=l9[8+m/3];return function(v){return p(g*v)+b}}return{format:u,formatPrefix:c}}var M0,Of,NU;L8e({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function L8e(e){return M0=R8e(e),Of=M0.format,NU=M0.formatPrefix,M0}function I8e(e){return Math.max(0,-Zd(Math.abs(e)))}function $8e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Zd(t)/3)))*3-Zd(Math.abs(e)))}function N8e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Zd(t)-Zd(e))+1}function F8e(e,t,n,r){var l=$k(e,t,n),i;switch(r=Py(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=$8e(l,o))&&(r.precision=i),NU(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=N8e(l,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=I8e(l))&&(r.precision=i-(r.type==="%")*2);break}}return Of(r)}function j8e(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ik(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var l=t();return F8e(l[0],l[l.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),l=0,i=r.length-1,o=r[l],a=r[i],s,u,c=10;for(a0;){if(u=OU(o,a,n),u===s)return r[l]=o,r[i]=a,t(r);if(u>0)o=Math.floor(o/u)*u,a=Math.ceil(a/u)*u;else if(u<0)o=Math.ceil(o*u)/u,a=Math.floor(a*u)/u;else break;s=u}return e},e}function ec(){var e=IU();return e.copy=function(){return fP(e,ec())},Pf.apply(e,arguments),j8e(e)}function FU(e,t){e=e.slice();var n=0,r=e.length-1,l=e[n],i=e[r],o;return i0){for(;f<=p;++f)for(g=1,m=i(f);gc)break;h.push(b)}}else for(;f<=p;++f)for(g=r-1,m=i(f);g>=1;--g)if(b=m*g,!(bc)break;h.push(b)}h.length*20))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return oT.setTime(+i),iT.setTime(+o),e(oT),e(iT),Math.floor(n(oT,iT))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var Oy=Wa(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Oy.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Wa(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Oy};Oy.range;const Wl=1e3,yi=Wl*60,ql=yi*60,tc=ql*24,hP=tc*7,d9=tc*30,lT=tc*365;var $u=Wa(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Wl)},function(e,t){return(t-e)/Wl},function(e){return e.getUTCSeconds()});$u.range;var mP=Wa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wl)},function(e,t){e.setTime(+e+t*yi)},function(e,t){return(t-e)/yi},function(e){return e.getMinutes()});mP.range;var gP=Wa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wl-e.getMinutes()*yi)},function(e,t){e.setTime(+e+t*ql)},function(e,t){return(t-e)/ql},function(e){return e.getHours()});gP.range;var mg=Wa(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yi)/tc,e=>e.getDate()-1);mg.range;function xc(e){return Wa(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*yi)/hP})}var Jb=xc(0),Ay=xc(1),V8e=xc(2),G8e=xc(3),Qd=xc(4),Y8e=xc(5),X8e=xc(6);Jb.range;Ay.range;V8e.range;G8e.range;Qd.range;Y8e.range;X8e.range;var vP=Wa(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});vP.range;var as=Wa(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});as.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Wa(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};as.range;var yP=Wa(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*yi)},function(e,t){return(t-e)/yi},function(e){return e.getUTCMinutes()});yP.range;var bP=Wa(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ql)},function(e,t){return(t-e)/ql},function(e){return e.getUTCHours()});bP.range;var gg=Wa(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/tc},function(e){return e.getUTCDate()-1});gg.range;function wc(e){return Wa(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/hP})}var ex=wc(0),Dy=wc(1),K8e=wc(2),Z8e=wc(3),Jd=wc(4),Q8e=wc(5),J8e=wc(6);ex.range;Dy.range;K8e.range;Z8e.range;Jd.range;Q8e.range;J8e.range;var xP=Wa(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});xP.range;var os=Wa(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});os.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Wa(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};os.range;function zU(e,t,n,r,l,i){const o=[[$u,1,Wl],[$u,5,5*Wl],[$u,15,15*Wl],[$u,30,30*Wl],[i,1,yi],[i,5,5*yi],[i,15,15*yi],[i,30,30*yi],[l,1,ql],[l,3,3*ql],[l,6,6*ql],[l,12,12*ql],[r,1,tc],[r,2,2*tc],[n,1,hP],[t,1,d9],[t,3,3*d9],[e,1,lT]];function a(u,c,d){const f=cb).right(o,f);if(p===o.length)return e.every($k(u/lT,c/lT,d));if(p===0)return Oy.every(Math.max($k(u,c,d),1));const[m,g]=o[f/o[p-1][2]53)return null;"w"in H||(H.w=1),"Z"in H?(G=uT(Bp(H.y,0,1)),X=G.getUTCDay(),G=X>4||X===0?Dy.ceil(G):Dy(G),G=gg.offset(G,(H.V-1)*7),H.y=G.getUTCFullYear(),H.m=G.getUTCMonth(),H.d=G.getUTCDate()+(H.w+6)%7):(G=sT(Bp(H.y,0,1)),X=G.getDay(),G=X>4||X===0?Ay.ceil(G):Ay(G),G=mg.offset(G,(H.V-1)*7),H.y=G.getFullYear(),H.m=G.getMonth(),H.d=G.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),X="Z"in H?uT(Bp(H.y,0,1)).getUTCDay():sT(Bp(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(X+5)%7:H.w+H.U*7-(X+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,uT(H)):sT(H)}}function k(V,te,ee,H){for(var Z=0,G=te.length,X=ee.length,Q,re;Z=X)return-1;if(Q=te.charCodeAt(Z++),Q===37){if(Q=te.charAt(Z++),re=_[Q in f9?te.charAt(Z++):Q],!re||(H=re(V,ee,H))<0)return-1}else if(Q!=ee.charCodeAt(H++))return-1}return H}function S(V,te,ee){var H=u.exec(te.slice(ee));return H?(V.p=c.get(H[0].toLowerCase()),ee+H[0].length):-1}function C(V,te,ee){var H=p.exec(te.slice(ee));return H?(V.w=m.get(H[0].toLowerCase()),ee+H[0].length):-1}function M(V,te,ee){var H=d.exec(te.slice(ee));return H?(V.w=f.get(H[0].toLowerCase()),ee+H[0].length):-1}function O(V,te,ee){var H=v.exec(te.slice(ee));return H?(V.m=h.get(H[0].toLowerCase()),ee+H[0].length):-1}function D(V,te,ee){var H=g.exec(te.slice(ee));return H?(V.m=b.get(H[0].toLowerCase()),ee+H[0].length):-1}function P(V,te,ee){return k(V,t,te,ee)}function E(V,te,ee){return k(V,n,te,ee)}function I(V,te,ee){return k(V,r,te,ee)}function A(V){return o[V.getDay()]}function F(V){return i[V.getDay()]}function j(V){return s[V.getMonth()]}function z(V){return a[V.getMonth()]}function B(V){return l[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function R(V){return o[V.getUTCDay()]}function q(V){return i[V.getUTCDay()]}function Y(V){return s[V.getUTCMonth()]}function L(V){return a[V.getUTCMonth()]}function W(V){return l[+(V.getUTCHours()>=12)]}function U(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=x(V+="",y);return te.toString=function(){return V},te},parse:function(V){var te=T(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=x(V+="",w);return te.toString=function(){return V},te},utcParse:function(V){var te=T(V+="",!0);return te.toString=function(){return V},te}}}var f9={"-":"",_:" ",0:"0"},qa=/^\s*\d+/,oDe=/^%/,iDe=/[\\^$*+?|[\]().{}]/g;function vr(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i[t.toLowerCase(),n]))}function sDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function uDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function cDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function dDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function fDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function p9(e,t,n){var r=qa.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function h9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function pDe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function hDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function mDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function m9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function gDe(e,t,n){var r=qa.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function g9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function vDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function yDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function bDe(e,t,n){var r=qa.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function xDe(e,t,n){var r=qa.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function wDe(e,t,n){var r=oDe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function _De(e,t,n){var r=qa.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function TDe(e,t,n){var r=qa.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function v9(e,t){return vr(e.getDate(),t,2)}function kDe(e,t){return vr(e.getHours(),t,2)}function SDe(e,t){return vr(e.getHours()%12||12,t,2)}function CDe(e,t){return vr(1+mg.count(as(e),e),t,3)}function BU(e,t){return vr(e.getMilliseconds(),t,3)}function MDe(e,t){return BU(e,t)+"000"}function PDe(e,t){return vr(e.getMonth()+1,t,2)}function ODe(e,t){return vr(e.getMinutes(),t,2)}function ADe(e,t){return vr(e.getSeconds(),t,2)}function DDe(e){var t=e.getDay();return t===0?7:t}function EDe(e,t){return vr(Jb.count(as(e)-1,e),t,2)}function WU(e){var t=e.getDay();return t>=4||t===0?Qd(e):Qd.ceil(e)}function RDe(e,t){return e=WU(e),vr(Qd.count(as(e),e)+(as(e).getDay()===4),t,2)}function LDe(e){return e.getDay()}function IDe(e,t){return vr(Ay.count(as(e)-1,e),t,2)}function $De(e,t){return vr(e.getFullYear()%100,t,2)}function NDe(e,t){return e=WU(e),vr(e.getFullYear()%100,t,2)}function FDe(e,t){return vr(e.getFullYear()%1e4,t,4)}function jDe(e,t){var n=e.getDay();return e=n>=4||n===0?Qd(e):Qd.ceil(e),vr(e.getFullYear()%1e4,t,4)}function zDe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+vr(t/60|0,"0",2)+vr(t%60,"0",2)}function y9(e,t){return vr(e.getUTCDate(),t,2)}function BDe(e,t){return vr(e.getUTCHours(),t,2)}function WDe(e,t){return vr(e.getUTCHours()%12||12,t,2)}function qDe(e,t){return vr(1+gg.count(os(e),e),t,3)}function qU(e,t){return vr(e.getUTCMilliseconds(),t,3)}function UDe(e,t){return qU(e,t)+"000"}function HDe(e,t){return vr(e.getUTCMonth()+1,t,2)}function VDe(e,t){return vr(e.getUTCMinutes(),t,2)}function GDe(e,t){return vr(e.getUTCSeconds(),t,2)}function YDe(e){var t=e.getUTCDay();return t===0?7:t}function XDe(e,t){return vr(ex.count(os(e)-1,e),t,2)}function UU(e){var t=e.getUTCDay();return t>=4||t===0?Jd(e):Jd.ceil(e)}function KDe(e,t){return e=UU(e),vr(Jd.count(os(e),e)+(os(e).getUTCDay()===4),t,2)}function ZDe(e){return e.getUTCDay()}function QDe(e,t){return vr(Dy.count(os(e)-1,e),t,2)}function JDe(e,t){return vr(e.getUTCFullYear()%100,t,2)}function e7e(e,t){return e=UU(e),vr(e.getUTCFullYear()%100,t,2)}function t7e(e,t){return vr(e.getUTCFullYear()%1e4,t,4)}function n7e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Jd(e):Jd.ceil(e),vr(e.getUTCFullYear()%1e4,t,4)}function r7e(){return"+0000"}function b9(){return"%"}function x9(e){return+e}function w9(e){return Math.floor(+e/1e3)}var qc,HU,VU;a7e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function a7e(e){return qc=aDe(e),HU=qc.format,qc.parse,VU=qc.utcFormat,qc.utcParse,qc}function o7e(e){return new Date(e)}function i7e(e){return e instanceof Date?+e:+new Date(+e)}function wP(e,t,n,r,l,i,o,a,s,u){var c=IU(),d=c.invert,f=c.domain,p=u(".%L"),m=u(":%S"),g=u("%I:%M"),b=u("%I %p"),v=u("%a %d"),h=u("%b %d"),y=u("%B"),w=u("%Y");function _(x){return(s(x)=1?(n=1,t-1):Math.floor(n*t),l=e[r],i=e[r+1],o=r>0?e[r-1]:2*l-i,a=rn&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:jk(r,l)})),n=cT.lastIndex;return n-1}var CP=U7e;function H7e(e,t,n){for(var r=-1,l=e==null?0:e.length;++r=J7e&&(i=Q7e,o=!1,t=new G7e(t));e:for(;++lku)if(!(Math.abs(c*a-s*u)>ku)||!l)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-i,p=r-o,m=a*a+s*s,g=f*f+p*p,b=Math.sqrt(m),v=Math.sqrt(d),h=l*Math.tan((Bk-Math.acos((m+d-g)/(2*b*v)))/2),y=h/v,w=h/b;Math.abs(y-1)>ku&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+l+","+l+",0,0,"+ +(c*f>u*p)+","+(this._x1=e+w*a)+","+(this._y1=t+w*s)}},arc:function(e,t,n,r,l,i){e=+e,t=+t,n=+n,i=!!i;var o=n*Math.cos(r),a=n*Math.sin(r),s=e+o,u=t+a,c=1^i,d=i?r-l:l-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+s+","+u:(Math.abs(this._x1-s)>ku||Math.abs(this._y1-u)>ku)&&(this._+="L"+s+","+u),n&&(d<0&&(d=d%Wk+Wk),d>lEe?this._+="A"+n+","+n+",0,1,"+c+","+(e-o)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=u):d>ku&&(this._+="A"+n+","+n+",0,"+ +(d>=Bk)+","+c+","+(this._x1=e+n*Math.cos(l))+","+(this._y1=t+n*Math.sin(l))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function Za(e){return function(){return e}}var T9=1e-12;function aH(e){this._context=e}aH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function OP(e){return new aH(e)}function oH(e){return e[0]}function iH(e){return e[1]}function lH(){var e=oH,t=iH,n=Za(!0),r=null,l=OP,i=null;function o(a){var s,u=a.length,c,d=!1,f;for(r==null&&(i=l(f=PP())),s=0;s<=u;++s)!(s=f;--p)a.point(h[p],y[p]);a.lineEnd(),a.areaEnd()}b&&(h[d]=+e(g,d,c),y[d]=+n(g,d,c),a.point(t?+t(g,d,c):h[d],r?+r(g,d,c):y[d]))}if(v)return a=null,v+""||null}function u(){return lH().defined(l).curve(o).context(i)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Za(+c),t=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Za(+c),s):e},s.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:Za(+c),s):t},s.y=function(c){return arguments.length?(n=typeof c=="function"?c:Za(+c),r=null,s):n},s.y0=function(c){return arguments.length?(n=typeof c=="function"?c:Za(+c),s):n},s.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Za(+c),s):r},s.lineX0=s.lineY0=function(){return u().x(e).y(n)},s.lineY1=function(){return u().x(e).y(r)},s.lineX1=function(){return u().x(t).y(n)},s.defined=function(c){return arguments.length?(l=typeof c=="function"?c:Za(!!c),s):l},s.curve=function(c){return arguments.length?(o=c,i!=null&&(a=o(i)),s):o},s.context=function(c){return arguments.length?(c==null?i=a=null:a=o(i=c),s):i},s}var k9=Array.prototype.slice;function Ks(){}function Ry(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Px(e){this._context=e}Px.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ry(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ry(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function uEe(e){return new Px(e)}function sH(e){this._context=e}sH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ry(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function cEe(e){return new sH(e)}function uH(e){this._context=e}uH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ry(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dEe(e){return new uH(e)}function cH(e,t){this._basis=new Px(e),this._beta=t}cH.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],l=t[0],i=e[n]-r,o=t[n]-l,a=-1,s;++a<=n;)s=a/n,this._basis.point(this._beta*e[a]+(1-this._beta)*(r+s*i),this._beta*t[a]+(1-this._beta)*(l+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const fEe=function e(t){function n(r){return t===1?new Px(r):new cH(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ly(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function AP(e,t){this._context=e,this._k=(1-t)/6}AP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ly(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ly(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pEe=function e(t){function n(r){return new AP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function DP(e,t){this._context=e,this._k=(1-t)/6}DP.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ly(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const hEe=function e(t){function n(r){return new DP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function EP(e,t){this._context=e,this._k=(1-t)/6}EP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ly(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const mEe=function e(t){function n(r){return new EP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function RP(e,t,n){var r=e._x1,l=e._y1,i=e._x2,o=e._y2;if(e._l01_a>T9){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,l=(l*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>T9){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,l,i,o,e._x2,e._y2)}function dH(e,t){this._context=e,this._alpha=t}dH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:RP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const gEe=function e(t){function n(r){return t?new dH(r,t):new AP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function fH(e,t){this._context=e,this._alpha=t}fH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:RP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const vEe=function e(t){function n(r){return t?new fH(r,t):new DP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function pH(e,t){this._context=e,this._alpha=t}pH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:RP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const yEe=function e(t){function n(r){return t?new pH(r,t):new EP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function hH(e){this._context=e}hH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function bEe(e){return new hH(e)}function S9(e){return e<0?-1:1}function C9(e,t,n){var r=e._x1-e._x0,l=t-e._x1,i=(e._y1-e._y0)/(r||l<0&&-0),o=(n-e._y1)/(l||r<0&&-0),a=(i*l+o*r)/(r+l);return(S9(i)+S9(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(a))||0}function M9(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function dT(e,t,n){var r=e._x0,l=e._y0,i=e._x1,o=e._y1,a=(i-r)/3;e._context.bezierCurveTo(r+a,l+a*t,i-a,o-a*n,i,o)}function Iy(e){this._context=e}Iy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:dT(this,this._t0,M9(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,dT(this,M9(this,n=C9(this,e,t)),n);break;default:dT(this,this._t0,n=C9(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function mH(e){this._context=new gH(e)}(mH.prototype=Object.create(Iy.prototype)).point=function(e,t){Iy.prototype.point.call(this,t,e)};function gH(e){this._context=e}gH.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,l,i){this._context.bezierCurveTo(t,e,r,n,i,l)}};function xEe(e){return new Iy(e)}function wEe(e){return new mH(e)}function vH(e){this._context=e}vH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=P9(e),l=P9(t),i=0,o=1;o=0;--t)l[t]=(o[t]-l[t+1])/i[t];for(i[n-1]=(e[n]+l[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function TEe(e){return new Ox(e,.5)}function kEe(e){return new Ox(e,0)}function SEe(e){return new Ox(e,1)}function ef(e,t){if((o=e.length)>1)for(var n=1,r,l,i=e[t[0]],o,a=i.length;n=0;)n[t]=t;return n}function CEe(e,t){return e[t]}function yH(){var e=Za([]),t=tf,n=ef,r=CEe;function l(i){var o=e.apply(this,arguments),a,s=i.length,u=o.length,c=new Array(u),d;for(a=0;a0){for(var n,r,l=0,i=e[0].length,o;l0)for(var n,r=0,l,i,o,a,s,u=e[t[0]].length;r0?(l[0]=o,l[1]=o+=i):i<0?(l[1]=a,l[0]=a+=i):(l[0]=0,l[1]=i)}function PEe(e,t){if((l=e.length)>0){for(var n=0,r=e[t[0]],l,i=r.length;n0)||!((i=(l=e[t[0]]).length)>0))){for(var n=0,r=1,l,i,o;ri&&(i=l,n=t);return n}function bH(e){var t=e.map(xH);return tf(e).sort(function(n,r){return t[n]-t[r]})}function xH(e){for(var t=0,n=-1,r=e.length,l;++nh&&(h=u),x=b*b*_,y=Math.max(h/x,x/v),y>w){b-=u;break}w=y}o.push(s={value:b,dice:p1?r:1)},n}(wH);function $Ee(e,t,n,r,l){var i=e.children,o,a=i.length,s,u=new Array(a+1);for(u[0]=s=o=0;o=f-1){var h=i[d];h.x0=m,h.y0=g,h.x1=b,h.y1=v;return}for(var y=u[d],w=p/2+y,_=d+1,x=f-1;_>>1;u[T]v-g){var C=(m*S+b*k)/p;c(d,_,k,m,g,C,v),c(_,f,S,C,g,b,v)}else{var M=(g*S+v*k)/p;c(d,_,k,m,g,b,M),c(_,f,S,m,M,b,v)}}}function NEe(e,t,n,r,l){(e.depth&1?Dx:Ax)(e,t,n,r,l)}const FEe=function e(t){function n(r,l,i,o,a){if((s=r._squarify)&&s.ratio===t)for(var s,u,c,d,f=-1,p,m=s.length,g=r.value;++f1?r:1)},n}(wH);var fT=new Date,pT=new Date;function Ua(e,t,n,r){function l(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return l.floor=function(i){return e(i=new Date(+i)),i},l.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},l.round=function(i){var o=l(i),a=l.ceil(i);return i-o0))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return fT.setTime(+i),pT.setTime(+o),e(fT),e(pT),Math.floor(n(fT,pT))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var Dm=Ua(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Dm.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ua(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Dm};Dm.range;var $y=1e3,nc=6e4,Ny=36e5,TH=864e5,kH=6048e5,Uk=Ua(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*$y)},function(e,t){return(t-e)/$y},function(e){return e.getUTCSeconds()});Uk.range;var SH=Ua(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*$y)},function(e,t){e.setTime(+e+t*nc)},function(e,t){return(t-e)/nc},function(e){return e.getMinutes()});SH.range;var CH=Ua(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*$y-e.getMinutes()*nc)},function(e,t){e.setTime(+e+t*Ny)},function(e,t){return(t-e)/Ny},function(e){return e.getHours()});CH.range;var Ex=Ua(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*nc)/TH},function(e){return e.getDate()-1});Ex.range;function _c(e){return Ua(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*nc)/kH})}var Fy=_c(0),Em=_c(1),MH=_c(2),PH=_c(3),rc=_c(4),OH=_c(5),AH=_c(6);Fy.range;Em.range;MH.range;PH.range;rc.range;OH.range;AH.range;var DH=Ua(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});DH.range;var Zs=Ua(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Zs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ua(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};Zs.range;var EH=Ua(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*nc)},function(e,t){return(t-e)/nc},function(e){return e.getUTCMinutes()});EH.range;var RH=Ua(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Ny)},function(e,t){return(t-e)/Ny},function(e){return e.getUTCHours()});RH.range;var Rx=Ua(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/TH},function(e){return e.getUTCDate()-1});Rx.range;function Tc(e){return Ua(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/kH})}var jy=Tc(0),Rm=Tc(1),LH=Tc(2),IH=Tc(3),ac=Tc(4),$H=Tc(5),NH=Tc(6);jy.range;Rm.range;LH.range;IH.range;ac.range;$H.range;NH.range;var FH=Ua(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});FH.range;var Qs=Ua(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Qs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ua(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};Qs.range;function hT(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function mT(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Up(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function jEe(e){var t=e.dateTime,n=e.date,r=e.time,l=e.periods,i=e.days,o=e.shortDays,a=e.months,s=e.shortMonths,u=Hp(l),c=Vp(l),d=Hp(i),f=Vp(i),p=Hp(o),m=Vp(o),g=Hp(a),b=Vp(a),v=Hp(s),h=Vp(s),y={a:A,A:F,b:j,B:z,c:null,d:L9,e:L9,f:sRe,g:yRe,G:xRe,H:oRe,I:iRe,j:lRe,L:jH,m:uRe,M:cRe,p:B,q:N,Q:N9,s:F9,S:dRe,u:fRe,U:pRe,V:hRe,w:mRe,W:gRe,x:null,X:null,y:vRe,Y:bRe,Z:wRe,"%":$9},w={a:R,A:q,b:Y,B:L,c:null,d:I9,e:I9,f:SRe,g:IRe,G:NRe,H:_Re,I:TRe,j:kRe,L:BH,m:CRe,M:MRe,p:W,q:U,Q:N9,s:F9,S:PRe,u:ORe,U:ARe,V:DRe,w:ERe,W:RRe,x:null,X:null,y:LRe,Y:$Re,Z:FRe,"%":$9},_={a:C,A:M,b:O,B:D,c:P,d:E9,e:E9,f:tRe,g:D9,G:A9,H:R9,I:R9,j:ZEe,L:eRe,m:KEe,M:QEe,p:S,q:XEe,Q:rRe,s:aRe,S:JEe,u:UEe,U:HEe,V:VEe,w:qEe,W:GEe,x:E,X:I,y:D9,Y:A9,Z:YEe,"%":nRe};y.x=x(n,y),y.X=x(r,y),y.c=x(t,y),w.x=x(n,w),w.X=x(r,w),w.c=x(t,w);function x(V,te){return function(ee){var H=[],Z=-1,G=0,X=V.length,Q,re,ae;for(ee instanceof Date||(ee=new Date(+ee));++Z53)return null;"w"in H||(H.w=1),"Z"in H?(G=mT(Up(H.y,0,1)),X=G.getUTCDay(),G=X>4||X===0?Rm.ceil(G):Rm(G),G=Rx.offset(G,(H.V-1)*7),H.y=G.getUTCFullYear(),H.m=G.getUTCMonth(),H.d=G.getUTCDate()+(H.w+6)%7):(G=hT(Up(H.y,0,1)),X=G.getDay(),G=X>4||X===0?Em.ceil(G):Em(G),G=Ex.offset(G,(H.V-1)*7),H.y=G.getFullYear(),H.m=G.getMonth(),H.d=G.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),X="Z"in H?mT(Up(H.y,0,1)).getUTCDay():hT(Up(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(X+5)%7:H.w+H.U*7-(X+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,mT(H)):hT(H)}}function k(V,te,ee,H){for(var Z=0,G=te.length,X=ee.length,Q,re;Z=X)return-1;if(Q=te.charCodeAt(Z++),Q===37){if(Q=te.charAt(Z++),re=_[Q in O9?te.charAt(Z++):Q],!re||(H=re(V,ee,H))<0)return-1}else if(Q!=ee.charCodeAt(H++))return-1}return H}function S(V,te,ee){var H=u.exec(te.slice(ee));return H?(V.p=c[H[0].toLowerCase()],ee+H[0].length):-1}function C(V,te,ee){var H=p.exec(te.slice(ee));return H?(V.w=m[H[0].toLowerCase()],ee+H[0].length):-1}function M(V,te,ee){var H=d.exec(te.slice(ee));return H?(V.w=f[H[0].toLowerCase()],ee+H[0].length):-1}function O(V,te,ee){var H=v.exec(te.slice(ee));return H?(V.m=h[H[0].toLowerCase()],ee+H[0].length):-1}function D(V,te,ee){var H=g.exec(te.slice(ee));return H?(V.m=b[H[0].toLowerCase()],ee+H[0].length):-1}function P(V,te,ee){return k(V,t,te,ee)}function E(V,te,ee){return k(V,n,te,ee)}function I(V,te,ee){return k(V,r,te,ee)}function A(V){return o[V.getDay()]}function F(V){return i[V.getDay()]}function j(V){return s[V.getMonth()]}function z(V){return a[V.getMonth()]}function B(V){return l[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function R(V){return o[V.getUTCDay()]}function q(V){return i[V.getUTCDay()]}function Y(V){return s[V.getUTCMonth()]}function L(V){return a[V.getUTCMonth()]}function W(V){return l[+(V.getUTCHours()>=12)]}function U(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=x(V+="",y);return te.toString=function(){return V},te},parse:function(V){var te=T(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=x(V+="",w);return te.toString=function(){return V},te},utcParse:function(V){var te=T(V+="",!0);return te.toString=function(){return V},te}}}var O9={"-":"",_:" ",0:"0"},Ha=/^\s*\d+/,zEe=/^%/,BEe=/[\\^$*+?|[\]().{}]/g;function yr(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i68?1900:2e3),n+r[0].length):-1}function YEe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function XEe(e,t,n){var r=Ha.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function KEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function E9(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ZEe(e,t,n){var r=Ha.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function R9(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function QEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function JEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function eRe(e,t,n){var r=Ha.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tRe(e,t,n){var r=Ha.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function nRe(e,t,n){var r=zEe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rRe(e,t,n){var r=Ha.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function aRe(e,t,n){var r=Ha.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function L9(e,t){return yr(e.getDate(),t,2)}function oRe(e,t){return yr(e.getHours(),t,2)}function iRe(e,t){return yr(e.getHours()%12||12,t,2)}function lRe(e,t){return yr(1+Ex.count(Zs(e),e),t,3)}function jH(e,t){return yr(e.getMilliseconds(),t,3)}function sRe(e,t){return jH(e,t)+"000"}function uRe(e,t){return yr(e.getMonth()+1,t,2)}function cRe(e,t){return yr(e.getMinutes(),t,2)}function dRe(e,t){return yr(e.getSeconds(),t,2)}function fRe(e){var t=e.getDay();return t===0?7:t}function pRe(e,t){return yr(Fy.count(Zs(e)-1,e),t,2)}function zH(e){var t=e.getDay();return t>=4||t===0?rc(e):rc.ceil(e)}function hRe(e,t){return e=zH(e),yr(rc.count(Zs(e),e)+(Zs(e).getDay()===4),t,2)}function mRe(e){return e.getDay()}function gRe(e,t){return yr(Em.count(Zs(e)-1,e),t,2)}function vRe(e,t){return yr(e.getFullYear()%100,t,2)}function yRe(e,t){return e=zH(e),yr(e.getFullYear()%100,t,2)}function bRe(e,t){return yr(e.getFullYear()%1e4,t,4)}function xRe(e,t){var n=e.getDay();return e=n>=4||n===0?rc(e):rc.ceil(e),yr(e.getFullYear()%1e4,t,4)}function wRe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yr(t/60|0,"0",2)+yr(t%60,"0",2)}function I9(e,t){return yr(e.getUTCDate(),t,2)}function _Re(e,t){return yr(e.getUTCHours(),t,2)}function TRe(e,t){return yr(e.getUTCHours()%12||12,t,2)}function kRe(e,t){return yr(1+Rx.count(Qs(e),e),t,3)}function BH(e,t){return yr(e.getUTCMilliseconds(),t,3)}function SRe(e,t){return BH(e,t)+"000"}function CRe(e,t){return yr(e.getUTCMonth()+1,t,2)}function MRe(e,t){return yr(e.getUTCMinutes(),t,2)}function PRe(e,t){return yr(e.getUTCSeconds(),t,2)}function ORe(e){var t=e.getUTCDay();return t===0?7:t}function ARe(e,t){return yr(jy.count(Qs(e)-1,e),t,2)}function WH(e){var t=e.getUTCDay();return t>=4||t===0?ac(e):ac.ceil(e)}function DRe(e,t){return e=WH(e),yr(ac.count(Qs(e),e)+(Qs(e).getUTCDay()===4),t,2)}function ERe(e){return e.getUTCDay()}function RRe(e,t){return yr(Rm.count(Qs(e)-1,e),t,2)}function LRe(e,t){return yr(e.getUTCFullYear()%100,t,2)}function IRe(e,t){return e=WH(e),yr(e.getUTCFullYear()%100,t,2)}function $Re(e,t){return yr(e.getUTCFullYear()%1e4,t,4)}function NRe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ac(e):ac.ceil(e),yr(e.getUTCFullYear()%1e4,t,4)}function FRe(){return"+0000"}function $9(){return"%"}function N9(e){return+e}function F9(e){return Math.floor(+e/1e3)}var Uc,IP,qH,UH;jRe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function jRe(e){return Uc=jEe(e),IP=Uc.format,qH=Uc.parse,Uc.utcFormat,UH=Uc.utcParse,Uc}var Gp={},Yp={},j9;function zRe(){if(j9)return Yp;j9=1,Yp.__esModule=!0,Yp.default=void 0;var e=function(r){if(typeof r=="string")return r;if(r)return r.displayName||r.name||"Component"},t=e;return Yp.default=t,Yp}var z9;function Af(){if(z9)return Gp;z9=1;var e=Cn;Gp.__esModule=!0,Gp.default=void 0;var t=e(zRe()),n=function(i,o){return o+"("+(0,t.default)(i)+")"},r=n;return Gp.default=r,Gp}var ps={},Xp={},B9;function HH(){if(B9)return Xp;B9=1,Xp.__esModule=!0,Xp.default=void 0;var e=function(r,l){return function(i){return i[r]=l,i}},t=e;return Xp.default=t,Xp}var BRe=Cn;ps.__esModule=!0;var $P=ps.default=void 0,WRe=BRe(HH()),qRe=function(t){return(0,WRe.default)("displayName",t)},URe=qRe;$P=ps.default=URe;var Kp={},W9;function HRe(){if(W9)return Kp;W9=1;var e=Cn;Kp.__esModule=!0,Kp.default=void 0;var t=ge;e(ps),e(Af());var n=function(i){return function(o){var a=(0,t.createFactory)(o),s=function(c){return a(i(c))};return s}},r=n;return Kp.default=r,Kp}var Lx=Cn;Lx(Ir());Lx(Af());Lx(ps);Lx(HRe());function VRe(e,t){for(var n=-1,r=e==null?0:e.length;++na))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=n&QRe?new YRe:void 0;for(i.set(e,t),i.set(t,e);++d{const e=document.querySelector("head");return e||bn(),e},EE=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function VTe(e,t){const n=ir(()=>UTe(e),[e]),r=ge.useRef(null),l=ge.useRef(null),i=Nn(ja(d=>{const f=l.current;f||bn(),f.textContent=d}),[]),o=Nn(d=>{const f=r.current;f||bn(),f.textContent=d},[]);Jo(()=>{!r.current&&!l.current||bn();const d=EE(t),f=EE(t);return r.current=d,l.current=f,d.setAttribute(`${Vd}-always`,e),f.setAttribute(`${Vd}-dynamic`,e),j_().appendChild(d),j_().appendChild(f),o(n.always),i(n.resting),()=>{const p=m=>{const g=m.current;g||bn(),j_().removeChild(g),m.current=null};p(r),p(l)}},[t,o,i,n.always,n.resting,e]);const a=Nn(()=>i(n.dragging),[i,n.dragging]),s=Nn(d=>{if(d==="DROP"){i(n.dropAnimating);return}i(n.userCancel)},[i,n.dropAnimating,n.userCancel]),u=Nn(()=>{l.current&&i(n.resting)},[i,n.resting]);return ir(()=>({dragging:a,dropping:s,resting:u}),[a,s,u])}function _q(e,t){return Array.from(e.querySelectorAll(t))}var Tq=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function Pb(e){return e instanceof Tq(e).HTMLElement}function GTe(e,t){const n=`[${Gd.contextId}="${e}"]`,r=_q(document,n);if(!r.length)return null;const l=r.find(i=>i.getAttribute(Gd.draggableId)===t);return!l||!Pb(l)?null:l}function YTe(e){const t=ge.useRef({}),n=ge.useRef(null),r=ge.useRef(null),l=ge.useRef(!1),i=Nn(function(f,p){const m={id:f,focus:p};return t.current[f]=m,function(){const b=t.current;b[f]!==m&&delete b[f]}},[]),o=Nn(function(f){const p=GTe(e,f);p&&p!==document.activeElement&&p.focus()},[e]),a=Nn(function(f,p){n.current===f&&(n.current=p)},[]),s=Nn(function(){r.current||l.current&&(r.current=requestAnimationFrame(()=>{r.current=null;const f=n.current;f&&o(f)}))},[o]),u=Nn(function(f){n.current=null;const p=document.activeElement;p&&p.getAttribute(Gd.draggableId)===f&&(n.current=f)},[]);return Jo(()=>(l.current=!0,function(){l.current=!1;const f=r.current;f&&cancelAnimationFrame(f)}),[]),ir(()=>({register:i,tryRecordFocus:u,tryRestoreFocusRecorded:s,tryShiftRecord:a}),[i,u,s,a])}function XTe(){const e={draggables:{},droppables:{}},t=[];function n(d){return t.push(d),function(){const p=t.indexOf(d);p!==-1&&t.splice(p,1)}}function r(d){t.length&&t.forEach(f=>f(d))}function l(d){return e.draggables[d]||null}function i(d){const f=l(d);return f||bn(),f}const o={register:d=>{e.draggables[d.descriptor.id]=d,r({type:"ADDITION",value:d})},update:(d,f)=>{const p=e.draggables[f.descriptor.id];p&&p.uniqueId===d.uniqueId&&(delete e.draggables[f.descriptor.id],e.draggables[d.descriptor.id]=d)},unregister:d=>{const f=d.descriptor.id,p=l(f);p&&d.uniqueId===p.uniqueId&&(delete e.draggables[f],e.droppables[d.descriptor.droppableId]&&r({type:"REMOVAL",value:d}))},getById:i,findById:l,exists:d=>!!l(d),getAllByType:d=>Object.values(e.draggables).filter(f=>f.descriptor.type===d)};function a(d){return e.droppables[d]||null}function s(d){const f=a(d);return f||bn(),f}const u={register:d=>{e.droppables[d.descriptor.id]=d},unregister:d=>{const f=a(d.descriptor.id);f&&d.uniqueId===f.uniqueId&&delete e.droppables[d.descriptor.id]},getById:s,findById:a,exists:d=>!!a(d),getAllByType:d=>Object.values(e.droppables).filter(f=>f.descriptor.type===d)};function c(){e.draggables={},e.droppables={},t.length=0}return{draggable:o,droppable:u,subscribe:n,clean:c}}function KTe(){const e=ir(XTe,[]);return ge.useEffect(()=>function(){Qe.version.startsWith("16")||Qe.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var E5=Qe.createContext(null),gy=()=>{const e=document.body;return e||bn(),e};const ZTe={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var QTe=ZTe;const JTe=e=>`rfd-announcement-${e}`;function e3e(e){const t=ir(()=>JTe(e),[e]),n=ge.useRef(null);return ge.useEffect(function(){const i=document.createElement("div");return n.current=i,i.id=t,i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true"),Ie(i.style,QTe),gy().appendChild(i),function(){setTimeout(function(){const s=gy();s.contains(i)&&s.removeChild(i),i===n.current&&(n.current=null)})}},[t]),Nn(l=>{const i=n.current;if(i){i.textContent=l;return}},[])}let kq=0;const Sq={separator:"::"};function t3e(){kq=0}function n3e(e,t){return t===void 0&&(t=Sq),ir(()=>`${e}${t.separator}${kq++}`,[t.separator,e])}function r3e(e,t){t===void 0&&(t=Sq);const n=Qe.useId();return ir(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}var R5="useId"in Qe?r3e:n3e;function a3e(e){let{contextId:t,uniqueId:n}=e;return`rfd-hidden-text-${t}-${n}`}function o3e(e){let{contextId:t,text:n}=e;const r=R5("hidden-text",{separator:"-"}),l=ir(()=>a3e({contextId:t,uniqueId:r}),[r,t]);return ge.useEffect(function(){const o=document.createElement("div");return o.id=l,o.textContent=n,o.style.display="none",gy().appendChild(o),function(){const s=gy();s.contains(o)&&s.removeChild(o)}},[l,n]),l}var Ob=Qe.createContext(null);function Cq(e){const t=ge.useRef(e);return ge.useEffect(()=>{t.current=e}),t}function i3e(){let e=null;function t(){return!!e}function n(o){return o===e}function r(o){e&&bn();const a={abandon:o};return e=a,a}function l(){e||bn(),e=null}function i(){e&&(e.abandon(),l())}return{isClaimed:t,isActive:n,claim:r,release:l,tryAbandon:i}}function _m(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const l3e=9,s3e=13,L5=27,Mq=32,u3e=33,c3e=34,d3e=35,f3e=36,p3e=37,h3e=38,m3e=39,g3e=40,v3e={[s3e]:!0,[l3e]:!0};var Pq=e=>{v3e[e.keyCode]&&e.preventDefault()};const y3e=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(r=>`on${r}`in document)||e})();var Ab=y3e;const Oq=0,RE=5;function b3e(e,t){return Math.abs(t.x-e.x)>=RE||Math.abs(t.y-e.y)>=RE}const LE={type:"IDLE"};function x3e(e){let{cancel:t,completed:n,getPhase:r,setPhase:l}=e;return[{eventName:"mousemove",fn:i=>{const{button:o,clientX:a,clientY:s}=i;if(o!==Oq)return;const u={x:a,y:s},c=r();if(c.type==="DRAGGING"){i.preventDefault(),c.actions.move(u);return}c.type!=="PENDING"&&bn();const d=c.point;if(!b3e(d,u))return;i.preventDefault();const f=c.actions.fluidLift(u);l({type:"DRAGGING",actions:f})}},{eventName:"mouseup",fn:i=>{const o=r();if(o.type!=="DRAGGING"){t();return}i.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:i=>{r().type==="DRAGGING"&&i.preventDefault(),t()}},{eventName:"keydown",fn:i=>{if(r().type==="PENDING"){t();return}if(i.keyCode===L5){i.preventDefault(),t();return}Pq(i)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:i=>{const o=r();if(o.type==="IDLE"&&bn(),o.actions.shouldRespectForcePress()){t();return}i.preventDefault()}},{eventName:Ab,fn:t}]}function Aq(e){const t=ge.useRef(LE),n=ge.useRef(qs),r=ir(()=>({eventName:"mousedown",fn:function(d){if(d.defaultPrevented||d.button!==Oq||d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)return;const f=e.findClosestDraggableId(d);if(!f)return;const p=e.tryGetLock(f,o,{sourceEvent:d});if(!p)return;d.preventDefault();const m={x:d.clientX,y:d.clientY};n.current(),u(p,m)}}),[e]),l=ir(()=>({eventName:"webkitmouseforcewillbegin",fn:c=>{if(c.defaultPrevented)return;const d=e.findClosestDraggableId(c);if(!d)return;const f=e.findOptionsForDraggable(d);f&&(f.shouldRespectForcePress||e.canGetLock(d)&&c.preventDefault())}}),[e]),i=Nn(function(){const d={passive:!1,capture:!0};n.current=vi(window,[l,r],d)},[l,r]),o=Nn(()=>{t.current.type!=="IDLE"&&(t.current=LE,n.current(),i())},[i]),a=Nn(()=>{const c=t.current;o(),c.type==="DRAGGING"&&c.actions.cancel({shouldBlockNextClick:!0}),c.type==="PENDING"&&c.actions.abort()},[o]),s=Nn(function(){const d={capture:!0,passive:!1},f=x3e({cancel:a,completed:o,getPhase:()=>t.current,setPhase:p=>{t.current=p}});n.current=vi(window,f,d)},[a,o]),u=Nn(function(d,f){t.current.type!=="IDLE"&&bn(),t.current={type:"PENDING",point:f,actions:d},s()},[s]);Jo(function(){return i(),function(){n.current()}},[i])}function w3e(){}const _3e={[c3e]:!0,[u3e]:!0,[f3e]:!0,[d3e]:!0};function T3e(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:l=>{if(l.keyCode===L5){l.preventDefault(),n();return}if(l.keyCode===Mq){l.preventDefault(),r();return}if(l.keyCode===g3e){l.preventDefault(),e.moveDown();return}if(l.keyCode===h3e){l.preventDefault(),e.moveUp();return}if(l.keyCode===m3e){l.preventDefault(),e.moveRight();return}if(l.keyCode===p3e){l.preventDefault(),e.moveLeft();return}if(_3e[l.keyCode]){l.preventDefault();return}Pq(l)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Ab,fn:n}]}function Dq(e){const t=ge.useRef(w3e),n=ir(()=>({eventName:"keydown",fn:function(i){if(i.defaultPrevented||i.keyCode!==Mq)return;const o=e.findClosestDraggableId(i);if(!o)return;const a=e.tryGetLock(o,c,{sourceEvent:i});if(!a)return;i.preventDefault();let s=!0;const u=a.snapLift();t.current();function c(){s||bn(),s=!1,t.current(),r()}t.current=vi(window,T3e(u,c),{capture:!0,passive:!1})}}),[e]),r=Nn(function(){const i={passive:!1,capture:!0};t.current=vi(window,[n],i)},[n]);Jo(function(){return r(),function(){t.current()}},[r])}const z_={type:"IDLE"},k3e=120,S3e=.15;function C3e(e){let{cancel:t,getPhase:n}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:r=>{r.preventDefault()}},{eventName:"keydown",fn:r=>{if(n().type!=="DRAGGING"){t();return}r.keyCode===L5&&r.preventDefault(),t()}},{eventName:Ab,fn:t}]}function M3e(e){let{cancel:t,completed:n,getPhase:r}=e;return[{eventName:"touchmove",options:{capture:!1},fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}i.hasMoved=!0;const{clientX:o,clientY:a}=l.touches[0],s={x:o,y:a};l.preventDefault(),i.actions.move(s)}},{eventName:"touchend",fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}l.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:l=>{if(r().type!=="DRAGGING"){t();return}l.preventDefault(),t()}},{eventName:"touchforcechange",fn:l=>{const i=r();i.type==="IDLE"&&bn();const o=l.touches[0];if(!o||!(o.force>=S3e))return;const s=i.actions.shouldRespectForcePress();if(i.type==="PENDING"){s&&t();return}if(s){if(i.hasMoved){l.preventDefault();return}t();return}l.preventDefault()}},{eventName:Ab,fn:t}]}function Eq(e){const t=ge.useRef(z_),n=ge.useRef(qs),r=Nn(function(){return t.current},[]),l=Nn(function(p){t.current=p},[]),i=ir(()=>({eventName:"touchstart",fn:function(p){if(p.defaultPrevented)return;const m=e.findClosestDraggableId(p);if(!m)return;const g=e.tryGetLock(m,a,{sourceEvent:p});if(!g)return;const b=p.touches[0],{clientX:v,clientY:h}=b,y={x:v,y:h};n.current(),d(g,y)}}),[e]),o=Nn(function(){const p={capture:!0,passive:!1};n.current=vi(window,[i],p)},[i]),a=Nn(()=>{const f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),l(z_),n.current(),o())},[o,l]),s=Nn(()=>{const f=t.current;a(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[a]),u=Nn(function(){const p={capture:!0,passive:!1},m={cancel:s,completed:a,getPhase:r},g=vi(window,M3e(m),p),b=vi(window,C3e(m),p);n.current=function(){g(),b()}},[s,r,a]),c=Nn(function(){const p=r();p.type!=="PENDING"&&bn();const m=p.actions.fluidLift(p.point);l({type:"DRAGGING",actions:m,hasMoved:!1})},[r,l]),d=Nn(function(p,m){r().type!=="IDLE"&&bn();const g=setTimeout(c,k3e);l({type:"PENDING",point:m,actions:p,longPressTimerId:g}),u()},[u,r,l,c]);Jo(function(){return o(),function(){n.current();const m=r();m.type==="PENDING"&&(clearTimeout(m.longPressTimerId),l(z_))}},[r,o,l]),Jo(function(){return vi(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const P3e=["input","button","textarea","select","option","optgroup","video","audio"];function Rq(e,t){if(t==null)return!1;if(P3e.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:Rq(e,t.parentElement)}function O3e(e,t){const n=t.target;return Pb(n)?Rq(e,n):!1}var A3e=e=>zi(e.getBoundingClientRect()).center;function D3e(e){return e instanceof Tq(e).Element}const E3e=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(r=>r in Element.prototype)||e})();function Lq(e,t){return e==null?null:e[E3e](t)?e:Lq(e.parentElement,t)}function R3e(e,t){return e.closest?e.closest(t):Lq(e,t)}function L3e(e){return`[${Gd.contextId}="${e}"]`}function I3e(e,t){const n=t.target;if(!D3e(n))return null;const r=L3e(e),l=R3e(n,r);return!l||!Pb(l)?null:l}function $3e(e,t){const n=I3e(e,t);return n?n.getAttribute(Gd.draggableId):null}function N3e(e,t){const n=`[${vk.contextId}="${e}"]`,l=_q(document,n).find(i=>i.getAttribute(vk.id)===t);return!l||!Pb(l)?null:l}function F3e(e){e.preventDefault()}function w0(e){let{expected:t,phase:n,isLockActive:r,shouldWarn:l}=e;return!(!r()||t!==n)}function Iq(e){let{lockAPI:t,store:n,registry:r,draggableId:l}=e;if(t.isClaimed())return!1;const i=r.draggable.findById(l);return!(!i||!i.options.isEnabled||!yq(n.getState(),l))}function j3e(e){let{lockAPI:t,contextId:n,store:r,registry:l,draggableId:i,forceSensorStop:o,sourceEvent:a}=e;if(!Iq({lockAPI:t,store:r,registry:l,draggableId:i}))return null;const u=l.draggable.getById(i),c=N3e(n,u.descriptor.id);if(!c||a&&!u.options.canDragInteractiveElements&&O3e(c,a))return null;const d=t.claim(o||qs);let f="PRE_DRAG";function p(){return u.options.shouldRespectForcePress}function m(){return t.isActive(d)}function g(x,T){w0({expected:x,phase:f,isLockActive:m,shouldWarn:!0})&&r.dispatch(T())}const b=g.bind(null,"DRAGGING");function v(x){function T(){t.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(T(),bn()),r.dispatch(C_e(x.liftActionArgs)),f="DRAGGING";function k(S,C){if(C===void 0&&(C={shouldBlockNextClick:!1}),x.cleanup(),C.shouldBlockNextClick){const M=vi(window,[{eventName:"click",fn:F3e,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(M)}T(),r.dispatch(cq({reason:S}))}return{isActive:()=>w0({expected:"DRAGGING",phase:f,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:p,drop:S=>k("DROP",S),cancel:S=>k("CANCEL",S),...x.actions}}function h(x){const T=gm(S=>{b(()=>uq({client:S}))});return{...v({liftActionArgs:{id:i,clientSelection:x,movementMode:"FLUID"},cleanup:()=>T.cancel(),actions:{move:T}}),move:T}}function y(){const x={moveUp:()=>b(I_e),moveRight:()=>b(N_e),moveDown:()=>b($_e),moveLeft:()=>b(F_e)};return v({liftActionArgs:{id:i,clientSelection:A3e(c),movementMode:"SNAP"},cleanup:qs,actions:x})}function w(){w0({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!0})&&t.release()}return{isActive:()=>w0({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:p,fluidLift:h,snapLift:y,abort:w}}const z3e=[Aq,Dq,Eq];function B3e(e){let{contextId:t,store:n,registry:r,customSensors:l,enableDefaultSensors:i}=e;const o=[...i?z3e:[],...l||[]],a=ge.useState(()=>i3e())[0],s=Nn(function(v,h){_m(v)&&!_m(h)&&a.tryAbandon()},[a]);Jo(function(){let v=n.getState();return n.subscribe(()=>{const y=n.getState();s(v,y),v=y})},[a,n,s]),Jo(()=>a.tryAbandon,[a.tryAbandon]);const u=Nn(b=>Iq({lockAPI:a,registry:r,store:n,draggableId:b}),[a,r,n]),c=Nn((b,v,h)=>j3e({lockAPI:a,registry:r,contextId:t,store:n,draggableId:b,forceSensorStop:v||null,sourceEvent:h&&h.sourceEvent?h.sourceEvent:null}),[t,a,r,n]),d=Nn(b=>$3e(t,b),[t]),f=Nn(b=>{const v=r.draggable.findById(b);return v?v.options:null},[r.draggable]),p=Nn(function(){a.isClaimed()&&(a.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(S5()))},[a,n]),m=Nn(()=>a.isClaimed(),[a]),g=ir(()=>({canGetLock:u,tryGetLock:c,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:m}),[u,c,d,f,p,m]);for(let b=0;b({onBeforeCapture:t=>{const n=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};Qe.version.startsWith("16")||Qe.version.startsWith("17")?n():cc.flushSync(n)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),q3e=e=>({...wm,...e.autoScrollerOptions,durationDampening:{...wm.durationDampening,...e.autoScrollerOptions}});function Tp(e){return e.current||bn(),e.current}function U3e(e){const{contextId:t,setCallbacks:n,sensors:r,nonce:l,dragHandleUsageInstructions:i}=e,o=ge.useRef(null),a=Cq(e),s=Nn(()=>W3e(a.current),[a]),u=Nn(()=>q3e(a.current),[a]),c=e3e(t),d=o3e({contextId:t,text:i}),f=VTe(t,l),p=Nn(C=>{Tp(o).dispatch(C)},[]),m=ir(()=>sE({publishWhileDragging:P_e,updateDroppableScroll:A_e,updateDroppableIsEnabled:D_e,updateDroppableIsCombineEnabled:E_e,collectionStarting:O_e},p),[p]),g=KTe(),b=ir(()=>TTe(g,m),[g,m]),v=ir(()=>zTe({scrollWindow:kTe,scrollDroppable:b.scrollDroppable,getAutoScrollerOptions:u,...sE({move:uq},p)}),[b.scrollDroppable,p,u]),h=YTe(t),y=ir(()=>bTe({announce:c,autoScroller:v,dimensionMarshal:b,focusMarshal:h,getResponders:s,styleMarshal:f}),[c,v,b,h,s,f]);o.current=y;const w=Nn(()=>{const C=Tp(o);C.getState().phase!=="IDLE"&&C.dispatch(S5())},[]),_=Nn(()=>{const C=Tp(o).getState();return C.phase==="DROP_ANIMATING"?!0:C.phase==="IDLE"?!1:C.isDragging},[]),x=ir(()=>({isDragging:_,tryAbort:w}),[_,w]);n(x);const T=Nn(C=>yq(Tp(o).getState(),C),[]),k=Nn(()=>_u(Tp(o).getState()),[]),S=ir(()=>({marshal:b,focus:h,contextId:t,canLift:T,isMovementAllowed:k,dragHandleUsageInstructionsId:d,registry:g}),[t,b,d,h,T,k,g]);return B3e({contextId:t,store:y,registry:g,customSensors:r||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),ge.useEffect(()=>w,[w]),Qe.createElement(Ob.Provider,{value:S},Qe.createElement(rwe,{context:E5,store:y},e.children))}let $q=0;function H3e(){$q=0}function V3e(){return ir(()=>`${$q++}`,[])}function G3e(){return Qe.useId()}var Y3e="useId"in Qe?G3e:V3e;function X3e(){"useId"in Qe||(H3e(),t3e())}function K3e(e){const t=Y3e(),n=e.dragHandleUsageInstructions||ov.dragHandleUsageInstructions;return Qe.createElement(hwe,null,r=>Qe.createElement(U3e,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const IE={dragging:5e3,dropAnimating:4500},Z3e=(e,t)=>t?Nh.drop(t.duration):e?Nh.snap:Nh.fluid,Q3e=(e,t)=>{if(e)return t?xm.opacity.drop:xm.opacity.combining},J3e=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function eke(e){const n=e.dimension.client,{offset:r,combineWith:l,dropping:i}=e,o=!!l,a=J3e(e),s=!!i,u=s?mk.drop(r,o):mk.moveTo(r);return{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:Z3e(a,i),transform:u,opacity:Q3e(o,s),zIndex:s?IE.dropAnimating:IE.dragging,pointerEvents:"none"}}function tke(e){return{transform:mk.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function nke(e){return e.type==="DRAGGING"?eke(e):tke(e)}function rke(e,t,n){n===void 0&&(n=za);const r=window.getComputedStyle(t),l=t.getBoundingClientRect(),i=FW(l,r),o=fy(i,n),a={client:i,tagName:t.tagName.toLowerCase(),display:r.display},s={x:i.marginBox.width,y:i.marginBox.height};return{descriptor:e,placeholder:a,displaceBy:s,client:i,page:o}}function ake(e){const t=R5("draggable"),{descriptor:n,registry:r,getDraggableRef:l,canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}=e,s=ir(()=>({canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}),[i,a,o]),u=Nn(p=>{const m=l();return m||bn(),rke(n,m,p)},[n,l]),c=ir(()=>({uniqueId:t,descriptor:n,options:s,getDimension:u}),[n,u,s,t]),d=ge.useRef(c),f=ge.useRef(!0);Jo(()=>(r.draggable.register(d.current),()=>r.draggable.unregister(d.current)),[r.draggable]),Jo(()=>{if(f.current){f.current=!1;return}const p=d.current;d.current=c,r.draggable.update(c,p)},[c,r.draggable])}var I5=Qe.createContext(null);function vy(e){const t=ge.useContext(e);return t||bn(),t}function oke(e){e.preventDefault()}const ike=e=>{const t=ge.useRef(null),n=Nn(function(x){x===void 0&&(x=null),t.current=x},[]),r=Nn(()=>t.current,[]),{contextId:l,dragHandleUsageInstructionsId:i,registry:o}=vy(Ob),{type:a,droppableId:s}=vy(I5),u=ir(()=>({id:e.draggableId,index:e.index,type:a,droppableId:s}),[e.draggableId,e.index,a,s]),{children:c,draggableId:d,isEnabled:f,shouldRespectForcePress:p,canDragInteractiveElements:m,isClone:g,mapped:b,dropAnimationFinished:v}=e;if(!g){const x=ir(()=>({descriptor:u,registry:o,getDraggableRef:r,canDragInteractiveElements:m,shouldRespectForcePress:p,isEnabled:f}),[u,o,r,m,p,f]);ake(x)}const h=ir(()=>f?{tabIndex:0,role:"button","aria-describedby":i,"data-rfd-drag-handle-draggable-id":d,"data-rfd-drag-handle-context-id":l,draggable:!1,onDragStart:oke}:null,[l,i,d,f]),y=Nn(x=>{b.type==="DRAGGING"&&b.dropping&&x.propertyName==="transform"&&(Qe.version.startsWith("16")||Qe.version.startsWith("17")?v():cc.flushSync(v))},[v,b]),w=ir(()=>{const x=nke(b),T=b.type==="DRAGGING"&&b.dropping?y:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":l,"data-rfd-draggable-id":d,style:x,onTransitionEnd:T},dragHandleProps:h}},[l,h,d,b,y,n]),_=ir(()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}),[u.droppableId,u.id,u.index,u.type]);return Qe.createElement(Qe.Fragment,null,c(w,b.snapshot,_))};var lke=ike,Nq=(e,t)=>e===t,Fq=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};const ske=e=>e.combine?e.combine.draggableId:null,uke=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function cke(){const e=ja((l,i)=>({x:l,y:i})),t=ja(function(l,i,o,a,s){return o===void 0&&(o=null),a===void 0&&(a=null),s===void 0&&(s=null),{isDragging:!0,isClone:i,isDropAnimating:!!s,dropAnimation:s,mode:l,draggingOver:o,combineWith:a,combineTargetFor:null}}),n=ja(function(l,i,o,a,s,u,c){return s===void 0&&(s=null),u===void 0&&(u=null),c===void 0&&(c=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:u,mode:i,offset:l,dimension:o,forceShouldAnimate:c,snapshot:t(i,a,s,u,null)}}});return(l,i)=>{if(_m(l)){if(l.critical.draggable.id!==i.draggableId)return null;const o=l.current.client.offset,a=l.dimensions.draggables[i.draggableId],s=Qo(l.impact),u=uke(l.impact),c=l.forceShouldAnimate;return n(e(o.x,o.y),l.movementMode,a,i.isClone,s,u,c)}if(l.phase==="DROP_ANIMATING"){const o=l.completed;if(o.result.draggableId!==i.draggableId)return null;const a=i.isClone,s=l.dimensions.draggables[i.draggableId],u=o.result,c=u.mode,d=Fq(u),f=ske(u),m={duration:l.dropDuration,curve:M5.drop,moveTo:l.newHomeClientOffset,opacity:f?xm.opacity.drop:null,scale:f?xm.scale.drop:null};return{mapped:{type:"DRAGGING",offset:l.newHomeClientOffset,dimension:s,dropping:m,draggingOver:d,combineWith:f,mode:c,forceShouldAnimate:null,snapshot:t(c,a,d,f,m)}}}return null}}function jq(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const dke={mapped:{type:"SECONDARY",offset:za,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:jq(null)}};function fke(){const e=ja((o,a)=>({x:o,y:a})),t=ja(jq),n=ja(function(o,a,s){return a===void 0&&(a=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:a,shouldAnimateDisplacement:s,snapshot:t(a)}}}),r=o=>o?n(za,o,!0):null,l=(o,a,s,u)=>{const c=s.displaced.visible[o],d=!!(u.inVirtualList&&u.effected[o]),f=Sb(s),p=f&&f.draggableId===o?a:null;if(!c){if(!d)return r(p);if(s.displaced.invisible[o])return null;const b=ff(u.displacedBy.point),v=e(b.x,b.y);return n(v,p,!0)}if(d)return r(p);const m=s.displacedBy.point,g=e(m.x,m.y);return n(g,p,c.shouldAnimate)};return(o,a)=>{if(_m(o))return o.critical.draggable.id===a.draggableId?null:l(a.draggableId,o.critical.draggable.id,o.impact,o.afterCritical);if(o.phase==="DROP_ANIMATING"){const s=o.completed;return s.result.draggableId===a.draggableId?null:l(a.draggableId,s.result.draggableId,s.impact,s.afterCritical)}return null}}const pke=()=>{const e=cke(),t=fke();return(r,l)=>e(r,l)||t(r,l)||dke},hke={dropAnimationFinished:dq},mke=$W(pke,hke,null,{context:E5,areStatePropsEqual:Nq})(lke);var gke=mke;function zq(e){return vy(I5).isUsingCloneFor===e.draggableId&&!e.isClone?null:Qe.createElement(gke,e)}function vke(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return Qe.createElement(zq,Ie({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}const Bq=e=>t=>e===t,yke=Bq("scroll"),bke=Bq("auto"),$E=(e,t)=>t(e.overflowX)||t(e.overflowY),xke=e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return $E(n,yke)||$E(n,bke)},wke=()=>!1,Wq=e=>e==null?null:e===document.body?wke()?e:null:e===document.documentElement?null:xke(e)?e:Wq(e.parentElement);var _ke=Wq,yk=e=>({x:e.scrollLeft,y:e.scrollTop});const qq=e=>e?window.getComputedStyle(e).position==="fixed"?!0:qq(e.parentElement):!1;var Tke=e=>{const t=_ke(e),n=qq(e);return{closestScrollable:t,isFixedOnPage:n}},kke=e=>{let{descriptor:t,isEnabled:n,isCombineEnabled:r,isFixedOnPage:l,direction:i,client:o,page:a,closest:s}=e;const u=(()=>{if(!s)return null;const{scrollSize:p,client:m}=s,g=mq({scrollHeight:p.scrollHeight,scrollWidth:p.scrollWidth,height:m.paddingBox.height,width:m.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:m,scrollSize:p,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:g,diff:{value:za,displacement:za}}}})(),c=i==="vertical"?x5:YW,d=Hd({page:a,withPlaceholder:null,axis:c,frame:u});return{descriptor:t,isCombineEnabled:r,isFixedOnPage:l,axis:c,isEnabled:n,client:o,page:a,frame:u,subject:d}};const Ske=(e,t)=>{const n=jW(e);if(!t||e!==t)return n;const r=n.paddingBox.top-t.scrollTop,l=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,o=l+t.scrollWidth,s=g5({top:r,right:o,bottom:i,left:l},n.border);return v5({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})};var Cke=e=>{let{ref:t,descriptor:n,env:r,windowScroll:l,direction:i,isDropDisabled:o,isCombineEnabled:a,shouldClipSubject:s}=e;const u=r.closestScrollable,c=Ske(t,u),d=fy(c,l),f=(()=>{if(!u)return null;const m=jW(u),g={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:m,page:fy(m,l),scroll:yk(u),scrollSize:g,shouldClipSubject:s}})();return kke({descriptor:n,isEnabled:!o,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:d,closest:f})};const Mke={passive:!1},Pke={passive:!0};var NE=e=>e.shouldPublishImmediately?Mke:Pke;const _0=e=>e&&e.env.closestScrollable||null;function Oke(e){const t=ge.useRef(null),n=vy(Ob),r=R5("droppable"),{registry:l,marshal:i}=n,o=Cq(e),a=ir(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),s=ge.useRef(a),u=ir(()=>ja((w,_)=>{t.current||bn();const x={x:w,y:_};i.updateDroppableScroll(a.id,x)}),[a.id,i]),c=Nn(()=>{const w=t.current;return!w||!w.env.closestScrollable?za:yk(w.env.closestScrollable)},[]),d=Nn(()=>{const w=c();u(w.x,w.y)},[c,u]),f=ir(()=>gm(d),[d]),p=Nn(()=>{const w=t.current,_=_0(w);if(w&&_||bn(),w.scrollOptions.shouldPublishImmediately){d();return}f()},[f,d]),m=Nn((w,_)=>{t.current&&bn();const x=o.current,T=x.getDroppableRef();T||bn();const k=Tke(T),S={ref:T,descriptor:a,env:k,scrollOptions:_};t.current=S;const C=Cke({ref:T,descriptor:a,env:k,windowScroll:w,direction:x.direction,isDropDisabled:x.isDropDisabled,isCombineEnabled:x.isCombineEnabled,shouldClipSubject:!x.ignoreContainerClipping}),M=k.closestScrollable;return M&&(M.setAttribute(DE.contextId,n.contextId),M.addEventListener("scroll",p,NE(S.scrollOptions))),C},[n.contextId,a,p,o]),g=Nn(()=>{const w=t.current,_=_0(w);return w&&_||bn(),yk(_)},[]),b=Nn(()=>{const w=t.current;w||bn();const _=_0(w);t.current=null,_&&(f.cancel(),_.removeAttribute(DE.contextId),_.removeEventListener("scroll",p,NE(w.scrollOptions)))},[p,f]),v=Nn(w=>{const _=t.current;_||bn();const x=_0(_);x||bn(),x.scrollTop+=w.y,x.scrollLeft+=w.x},[]),h=ir(()=>({getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:b,scroll:v}),[b,m,g,v]),y=ir(()=>({uniqueId:r,descriptor:a,callbacks:h}),[h,a,r]);Jo(()=>(s.current=y.descriptor,l.droppable.register(y),()=>{t.current&&b(),l.droppable.unregister(y)}),[h,a,b,y,i,l.droppable]),Jo(()=>{t.current&&i.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),Jo(()=>{t.current&&i.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}function B_(){}const FE={width:0,height:0,margin:wwe},Ake=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;return t||r==="close"?FE:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},Dke=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;const l=Ake({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:l.width,height:l.height,marginTop:l.margin.top,marginRight:l.margin.right,marginBottom:l.margin.bottom,marginLeft:l.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:r!=="none"?Nh.placeholder:null}},Eke=e=>{const t=ge.useRef(null),n=Nn(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:r,onTransitionEnd:l,onClose:i,contextId:o}=e,[a,s]=ge.useState(e.animate==="open");ge.useEffect(()=>a?r!=="open"?(n(),s(!1),B_):t.current?B_:(t.current=setTimeout(()=>{t.current=null,s(!1)}),n):B_,[r,a,n]);const u=Nn(d=>{d.propertyName==="height"&&(l(),r==="close"&&i())},[r,i,l]),c=Dke({isAnimatingOpenOnMount:a,animate:e.animate,placeholder:e.placeholder});return Qe.createElement(e.placeholder.tagName,{style:c,"data-rfd-placeholder-context-id":o,onTransitionEnd:u,ref:e.innerRef})};var Rke=Qe.memo(Eke);class Lke extends Qe.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,n){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:n.isVisible?{isVisible:!0,data:n.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const Ike=e=>{const t=ge.useContext(Ob);t||bn();const{contextId:n,isMovementAllowed:r}=t,l=ge.useRef(null),i=ge.useRef(null),{children:o,droppableId:a,type:s,mode:u,direction:c,ignoreContainerClipping:d,isDropDisabled:f,isCombineEnabled:p,snapshot:m,useClone:g,updateViewportMaxScroll:b,getContainerForClone:v}=e,h=Nn(()=>l.current,[]),y=Nn(function(M){M===void 0&&(M=null),l.current=M},[]);Nn(()=>i.current,[]);const w=Nn(function(M){M===void 0&&(M=null),i.current=M},[]),_=Nn(()=>{r()&&b({maxScroll:vq()})},[r,b]);Oke({droppableId:a,type:s,mode:u,direction:c,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:h});const x=ir(()=>Qe.createElement(Lke,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},M=>{let{onClose:O,data:D,animate:P}=M;return Qe.createElement(Rke,{placeholder:D,onClose:O,innerRef:w,animate:P,contextId:n,onTransitionEnd:_})}),[n,_,e.placeholder,e.shouldAnimatePlaceholder,w]),T=ir(()=>({innerRef:y,placeholder:x,droppableProps:{"data-rfd-droppable-id":a,"data-rfd-droppable-context-id":n}}),[n,a,x,y]),k=g?g.dragging.draggableId:null,S=ir(()=>({droppableId:a,type:s,isUsingCloneFor:k}),[a,k,s]);function C(){if(!g)return null;const{dragging:M,render:O}=g,D=Qe.createElement(zq,{draggableId:M.draggableId,index:M.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(P,E)=>O(P,E,M));return sh.createPortal(D,v())}return Qe.createElement(I5.Provider,{value:S},o(T,m),C())};var $ke=Ike;function Nke(){return document.body||bn(),document.body}const jE={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Nke},Uq=e=>{let t={...e},n;for(n in jE)e[n]===void 0&&(t={...t,[n]:jE[n]});return t},W_=(e,t)=>e===t.droppable.type,zE=(e,t)=>t.draggables[e.draggable.id],Fke=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=ja(i=>({draggableId:i.id,type:i.type,source:{index:i.index,droppableId:i.droppableId}})),r=ja((i,o,a,s,u,c)=>{const d=u.descriptor.id;if(u.descriptor.droppableId===i){const m=c?{render:c,dragging:n(u.descriptor)}:null,g={isDraggingOver:a,draggingOverWith:a?d:null,draggingFromThisWith:d,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!1,snapshot:g,useClone:m}}if(!o)return t;if(!s)return e;const p={isDraggingOver:a,draggingOverWith:d,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}});return(i,o)=>{const a=Uq(o),s=a.droppableId,u=a.type,c=!a.isDropDisabled,d=a.renderClone;if(_m(i)){const f=i.critical;if(!W_(u,f))return t;const p=zE(f,i.dimensions),m=Qo(i.impact)===s;return r(s,c,m,m,p,d)}if(i.phase==="DROP_ANIMATING"){const f=i.completed;if(!W_(u,f.critical))return t;const p=zE(f.critical,i.dimensions);return r(s,c,Fq(f.result)===s,Qo(f.impact)===s,p,d)}if(i.phase==="IDLE"&&i.completed&&!i.shouldFlush){const f=i.completed;if(!W_(u,f.critical))return t;const p=Qo(f.impact)===s,m=!!(f.impact.at&&f.impact.at.type==="COMBINE"),g=f.critical.droppable.id===s;return p?m?e:t:g?e:t}return t}},jke={updateViewportMaxScroll:L_e},zke=$W(Fke,jke,(e,t,n)=>({...Uq(n),...e,...t}),{context:E5,areStatePropsEqual:Nq})($ke);var Bke=zke;const Wke=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:K3e,Draggable:vke,Droppable:Bke,resetServerContext:X3e,useKeyboardSensor:Dq,useMouseSensor:Aq,useTouchSensor:Eq},Symbol.toStringTag,{value:"Module"})),$5=Qn(Wke);var BE;function qke(){return BE||(BE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(fc),i=t($a()),o=t(PW),a=t(D2e),s=t(Tb),u=t(Vr),c=g(ge),d=$5,f=Yi(),p=eg();function m(w){if(typeof WeakMap!="function")return null;var _=new WeakMap,x=new WeakMap;return(m=function(k){return k?x:_})(w)}function g(w,_){if(w&&w.__esModule)return w;if(w===null||n(w)!=="object"&&typeof w!="function")return{default:w};var x=m(_);if(x&&x.has(w))return x.get(w);var T={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in w)if(S!=="default"&&Object.prototype.hasOwnProperty.call(w,S)){var C=k?Object.getOwnPropertyDescriptor(w,S):null;C&&(C.get||C.set)?Object.defineProperty(T,S,C):T[S]=w[S]}return T.default=w,x&&x.set(w,T),T}function b(w,_){var x=Object.keys(w);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(w);_&&(T=T.filter(function(k){return Object.getOwnPropertyDescriptor(w,k).enumerable})),x.push.apply(x,T)}return x}function v(w){for(var _=1;_0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.groupedBy),w.groupColumns.map(function(O,D){return c.default.createElement(d.Draggable,{key:O.tableData.id.toString(),draggableId:O.tableData.id.toString(),index:D},function(P,E){var I;return c.default.createElement(l.default,(0,r.default)({ref:P.innerRef},P.draggableProps,P.dragHandleProps,{sx:k(E.isDragging,P.draggableProps.style)}),c.default.createElement(a.default,(0,r.default)({},P.dragHandleProps,T.groupChipProps,{onClick:function(){return w.onSortChanged(O)},label:c.default.createElement(l.default,{sx:{display:"flex",alignItems:"center"}},c.default.createElement(l.default,{sx:{float:"left"}},O.title),O.tableData.groupSort&&c.default.createElement(x.SortArrow,{sx:{transition:"300ms ease all",transform:O.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},(I=T.groupChipProps)!==null&&I!==void 0?I:{}),onDelete:function(){return w.onGroupRemoved(O,D)}})))})}),w.groupColumns.length===0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.placeholder),C.placeholder)}))}h.defaultProps={},h.propTypes={forwardedRef:u.default.element,className:u.default.string,onSortChanged:u.default.func,onGroupRemoved:u.default.func,onGroupChange:u.default.func,persistentGroupingsId:u.default.string};var y=c.default.forwardRef(function(_,x){return c.default.createElement(h,(0,r.default)({},_,{forwardedRef:x}))});e.default=y}(D_)),D_}var q_={},WE;function Uke(){return WE||(WE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t($a()),l=t(iu()),i=t(cf()),o=t(Cl),a=t(ls),s=t(df),u=t(pc),c=t(Vr),d=t(ge),f=Yi();function p(v,h){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);h&&(w=w.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,w)}return y}function m(v){for(var h=1;h0&&_++;var x=v.groups[v.level],T;v.groupData.isExpanded&&(v.groups.length>v.level+1?T=v.groupData.groups.map(function(B,N){return d.default.createElement(v.components.GroupRow,{actions:v.actions,key:B.value||""+N,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:B,groups:v.groups,level:v.level+1,path:[].concat((0,i.default)(v.path),[N]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):T=v.groupData.data.map(function(B,N){return B.tableData.editing?d.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:B,path:[].concat((0,i.default)(v.path),[B.tableData.uuid]),localization:v.localization,key:N,mode:B.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):d.default.createElement(v.components.Row,{actions:v.actions,key:N,columns:v.columns,components:v.components,data:B,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,i.default)(v.path),[B.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var k=[],S=0;S0&&A!==F,checked:A===F,onChange:function(N,R){return v.onGroupSelected&&v.onGroupSelected(R,v.groupData.path)},style:{marginRight:8}}),d.default.createElement("b",null,M,O)))),T)}g.defaultProps={columns:[],groups:[],level:0},g.propTypes={actions:c.default.array,columns:c.default.arrayOf(c.default.object),components:c.default.object,cellEditable:c.default.object,detailPanel:c.default.oneOfType([c.default.func,c.default.arrayOf(c.default.object)]),forwardedRef:c.default.element,getFieldValue:c.default.func,groupData:c.default.object,groups:c.default.arrayOf(c.default.object),hasAnyEditingRow:c.default.bool,icons:c.default.object,isTreeData:c.default.bool.isRequired,level:c.default.number,localization:c.default.object,onBulkEditRowChanged:c.default.func,onCellEditFinished:c.default.func,onCellEditStarted:c.default.func,onEditingApproved:c.default.func,onEditingCanceled:c.default.func,onGroupExpandChanged:c.default.func,onRowClick:c.default.func,onGroupSelected:c.default.func,onRowSelected:c.default.func,onToggleDetailPanel:c.default.func.isRequired,onTreeExpandChanged:c.default.func.isRequired,path:c.default.arrayOf(c.default.number),scrollWidth:c.default.number.isRequired,treeDataMaxLevel:c.default.number};var b=d.default.forwardRef(function(h,y){return d.default.createElement(g,(0,n.default)({},h,{forwardedRef:y}))});e.default=b}(q_)),q_}var U_={};const Hke=Qn(xfe),Vke=Qn(ope);var qE;function Gke(){return qE||(qE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=k,e.styles=e.default=void 0;var r=t(fc),l=t(hc),i=t(Ir()),o=t($a()),a=t(iu()),s=t(uf()),u=t(ge),c=t(Vr),d=t(Hke),f=t(ls),p=t(Cl),m=t(Vke),g=t(pc),b=$5,v=_(ds()),h=Yi(),y=["onColumnResized","classes","sx","columns"];function w(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(w=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=w(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var z=F?Object.getOwnPropertyDescriptor(P,j):null;z&&(z.get||z.set)?Object.defineProperty(A,j,z):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function x(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function T(P){for(var E=1;E-1)&&!ce.tableData.hiddden}).sort(function(ce,we){return ce.tableData.columnOrder-we.tableData.columnOrder}).map(function(ce,we,K){var ne=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",de=ce.title;if(B.draggable&&ce.draggable!==!1?de=u.default.createElement(b.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:we,style:{zIndex:99}},function(ue,pe){return u.default.createElement("div",(0,i.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:pe.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:ne==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&j.sorting&&j.allowSorting?u.default.createElement(C,{columnDef:ce,keepSortDirectionOnColumnSwitch:B.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:B.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:B.showColumnSortOrder,sortOrderIndicatorStyle:B.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&j.sorting&&j.allowSorting&&(de=u.default.createElement(C,{columnDef:ce,keepSortDirectionOnColumnSwitch:B.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:B.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:B.showColumnSortOrder,sortOrderIndicatorStyle:B.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=u.default.createElement(l.default,{title:ce.tooltip,placement:"bottom"},u.default.createElement("span",null,de))),B.tableLayout==="fixed"&&B.columnResizable&&ce.resizable!==!1&&!(B.tableWidth==="full"&&we===K.length-1)){var _e=N.Resize?N.Resize:function(ue){return u.default.createElement(r.default,(0,i.default)({},ue,{"data-test-id":"drag_handle"}))};de=u.default.createElement(r.default,{sx:M.headerWrap(ne==="right")},u.default.createElement(r.default,{sx:M.headerContent(ne==="right")},de),u.default.createElement("div",null),u.default.createElement(_e,{sx:M.headerResize((W==null?void 0:W.col)&&W.col.tableData.id===ce.tableData.id),onMouseDown:function(pe){return G(pe,ce,we)}}))}return u.default.createElement(p.default,{key:ce.tableData.id,align:ne,sx:M.header,style:ie(ce),size:Me,"aria-label":ce.ariaLabel},de)})}function he(){var Me=v.selectionMaxWidth(T(T({},j),{},{options:B}),j.treeDataMaxLevel);return u.default.createElement(p.default,{padding:"none",key:"key-selection-column",sx:M.header,style:T(T({},B.headerStyle),{},{width:Me})},B.showSelectAllCheckbox&&u.default.createElement(g.default,(0,i.default)({indeterminate:j.selectedCount>0&&j.selectedCount0&&j.selectedCount>=j.dataCount,onChange:function(we,K){return j.onAllSelected&&j.onAllSelected(K)}},B.headerSelectionProps)))}function Se(){return u.default.createElement(p.default,{padding:"none",key:"key-detail-panel-column",sx:M.header,style:B.headerStyle})}var Oe=se();if(B.selection&&Oe.splice(0,0,he()),j.showActionsColumn)if(B.actionsColumnIndex>=0){var Pe=0;B.selection&&(Pe=1),Oe.splice(B.actionsColumnIndex+Pe,0,ae())}else B.actionsColumnIndex===-1&&Oe.push(ae());return j.hasDetailPanel&&B.showDetailPanelIcon&&(B.detailPanelColumnAlignment==="right"?Oe.push(Se()):Oe.splice(0,0,Se())),j.isTreeData>0&&Oe.splice(0,0,u.default.createElement(p.default,{padding:"none",key:"key-tree-data-header",sx:M.header,style:B.headerStyle})),Z.filter(function(Me){return Me.tableData.groupOrder>-1}).forEach(function(Me){Oe.splice(0,0,u.default.createElement(p.default,{padding:"checkbox",key:"key-group-header"+Me.tableData.id,sx:M.header,style:B.headerStyle}))}),u.default.createElement(d.default,{ref:j.forwardedRef,classes:I,sx:A},u.default.createElement(f.default,{sx:M.headerRow},Oe))}var S=function(E,I,A,F,j){return A.tableData.id!==E?j&&I||"asc":I==="asc"?"desc":I==="desc"&&F?"":"asc"};function C(P){var E=P.columnDef,I=P.keepSortDirectionOnColumnSwitch,A=P.icon,F=P.thirdSortClick,j=P.onOrderChange,z=P.children,B=P.orderByCollection,N=P.showColumnSortOrder,R=P.sortOrderIndicatorStyle,q=B.find(function(U){var V=U.orderBy;return V===E.tableData.id}),Y=(q||I)&&q&&q.orderDirection||"asc",L="none";q&&Y==="asc"?L=E.ariaSortAsc||"ascending":q&&Y==="desc"&&(L=E.ariaSortDesc||"descending");var W=q&&q.orderBy;return u.default.createElement(u.default.Fragment,null,u.default.createElement(m.default,{role:"columnheader","aria-sort":L,"aria-label":E.ariaLabel,IconComponent:A,active:!!q,"data-testid":"mtableheader-sortlabel",direction:Y,onClick:function(){var V=S(W,Y,E,F,I);j(E.tableData.id,V,q&&q.sortOrder)}},z),u.default.createElement("span",{style:T(T({},R),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},N&&q?q.sortOrder:""))}k.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},k.propTypes={columns:c.default.array.isRequired,classes:c.default.object,sx:c.default.object,dataCount:c.default.number,hasDetailPanel:c.default.bool.isRequired,selectedCount:c.default.number,onAllSelected:c.default.func,onOrderChange:c.default.func,showActionsColumn:c.default.bool,orderByCollection:c.default.array,showColumnSortOrder:c.default.bool,tooltip:c.default.string,allowSorting:c.default.bool};var M={headerRow:{zIndex:10},header:{top:0},headerWrap:function(E){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(E){return{display:"flex",alignItems:"center",pr:E?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(E){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:E?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(E){return{color:E?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=M;var O=u.default.forwardRef(function(E,I){return u.default.createElement(k,(0,i.default)({},E,{forwardedRef:I}))}),D=u.default.memo(O);e.default=D}(U_)),U_}var H_={};const Yke=Qn(Jie);var UE;function Xke(){return UE||(UE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(df),i=t(hc),o=t(fc),a=t(Yke),s=t(Vr),u=t(ge),c=sf,d=m(ds()),f=Yi();function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y){var w=(0,c.useTheme)(),_=(0,f.useLocalizationStore)().pagination,x=(0,f.useIconStore)(),T=function(Y){y.onPageChange(Y,0)},k=function(Y){y.onPageChange(Y,y.page-1)},S=function(Y){y.onPageChange(Y,y.page+1)},C=function(Y){return function(L){y.onPageChange(L,Y)}},M=function(Y){y.onPageChange(Y,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))};function O(q,Y,L,W){var U=[];W=Math.max(1,Math.min(10,W));for(var V=Math.max(q-W+1,0);V<=Math.min(Y+W-1,L);V++){var te=V===y.page?"contained":"text";U.push(u.default.createElement(a.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:V===y.page,variant:te,onClick:C(V),key:V},V+1))}return u.default.createElement("span",null,U)}var D=y.count,P=y.page,E=y.rowsPerPage,I=y.showFirstLastPageButtons,A=y.numberOfPagesAround,F=Math.ceil(D/E)-1,j=Math.max(P-1,0),z=Math.min(F,P+1),B=d.parseFirstLastPageButtons(I,w.direction==="rtl"),N=B.first,R=B.last;return u.default.createElement(o.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:y.forwardedRef},N&&u.default.createElement(i.default,{title:_.firstTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:T,disabled:P===0,"aria-label":_.firstAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.LastPage,null):u.default.createElement(x.FirstPage,null)))),u.default.createElement(i.default,{title:_.previousTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:k,disabled:P===0,"aria-label":_.previousAriaLabel},u.default.createElement(x.PreviousPage,null)))),u.default.createElement(o.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},O(j,z,F,A)),u.default.createElement(i.default,{title:_.nextTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:S,disabled:P>=F,"aria-label":_.nextAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.PreviousPage,null):u.default.createElement(x.NextPage,null)))),R&&u.default.createElement(i.default,{title:_.lastTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:M,disabled:P>=Math.ceil(D/E)-1,"aria-label":_.lastAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.FirstPage,null):u.default.createElement(x.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,forwardedRef:s.default.func,count:s.default.number,rowsPerPage:s.default.number,numberOfPagesAround:s.default.number,classes:s.default.object,theme:s.default.any,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool])},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(w,_){return u.default.createElement(g,(0,r.default)({},w,{forwardedRef:_}))}),v=b,h=v;e.default=h}(H_)),H_}var V_={},HE;function Kke(){return HE||(HE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(fc),i=t(df),o=t(hc),a=t(Tb),s=t(Vr),u=t(ge),c=sf,d=m(ds()),f=eg();function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y){var w=(0,c.useTheme)(),_=(0,f.useIconStore)(),x=(0,f.useLocalizationStore)().pagination,T=function(j){y.onPageChange(j,0)},k=function(j){y.onPageChange(j,y.page-1)},S=function(j){y.onPageChange(j,y.page+1)},C=function(j){y.onPageChange(j,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))},M=y.count,O=y.page,D=y.rowsPerPage,P=y.showFirstLastPageButtons,E=d.parseFirstLastPageButtons(P,w.direction==="rtl"),I=E.first,A=E.last;return u.default.createElement(l.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:y.forwardedRef},I&&u.default.createElement(o.default,{title:x.firstTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:T,disabled:O===0,"aria-label":x.firstAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(_.LastPage,null):u.default.createElement(_.FirstPage,null)))),u.default.createElement(o.default,{title:x.previousTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:k,disabled:O===0,"aria-label":x.previousAriaLabel},w.direction==="rtl"?u.default.createElement(_.NextPage,null):u.default.createElement(_.PreviousPage,null)))),u.default.createElement(a.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},x.labelDisplayedRows.replace("{from}",y.count===0?0:y.page*y.rowsPerPage+1).replace("{to}",Math.min((y.page+1)*y.rowsPerPage,y.count)).replace("{count}",y.count)),u.default.createElement(o.default,{title:x.nextTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:S,disabled:O>=Math.ceil(M/D)-1,"aria-label":x.nextAriaLabel},w.direction==="rtl"?u.default.createElement(_.PreviousPage,null):u.default.createElement(_.NextPage,null)))),A&&u.default.createElement(o.default,{title:x.lastTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:C,disabled:O>=Math.ceil(M/D)-1,"aria-label":x.lastAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(_.FirstPage,null):u.default.createElement(_.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,count:s.default.number,rowsPerPage:s.default.number,classes:s.default.object,localization:s.default.object,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool]),forwardedRef:s.default.func},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(w,_){return u.default.createElement(g,(0,r.default)({},w,{forwardedRef:_}))}),v=b,h=v;e.default=h}(V_)),V_}var G_={},VE;function Zke(){return VE||(VE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var r=t(ls),l=t(_a()),i=t(cf()),o=t(Cl),a=t($a()),s=m(ge),u=_b(),c=m(ds()),d=Yi(),f=t(Vr);function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y,w){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(y);w&&(x=x.filter(function(T){return Object.getOwnPropertyDescriptor(y,T).enumerable})),_.push.apply(_,x)}return _}function b(y){for(var w=1;w1&&arguments[1]!==void 0?arguments[1]:1,E=c.elementSize(b(b({},_),{},{options:T})),I=P*c.baseIconSize(b(b({},_),{},{options:T}));return s.createElement(o.default,{key:"placeholder.".concat(D),size:E,padding:"none",style:{width:I,padding:"0px 5px",boxSizing:"border-box"}})}var S=[],C=[],M=0;if(T.selection&&S.push(k(M++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var O=c.rowActions(_).length;T.actionsColumnIndex===-1?C.push(k(M++,O)):T.actionsColumnIndex>=0&&S.push(k(M++,O))}return _.detailPanel&&T.showDetailPanelIcon&&(T.detailPanelColumnAlignment==="right"?C.push(k(M++)):S.push(k(M++))),_.isTreeData&&S.push(k(M++)),s.createElement(r.default,null,S,(0,i.default)(w).sort(function(D,P){return D.tableData.columnOrder-P.tableData.columnOrder}).map(function(D,P){var E=x({index:D.tableData.columnOrder,column:D,columns:w}),I=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",A="",F=(0,u.getStyle)({columnDef:D,scrollWidth:0});return(0,l.default)(E)==="object"&&E!==null?(A=E.value,F=E.style):A=E,s.createElement(o.default,{key:P,style:F,align:I},A)}),C)}v.propTypes={columns:f.default.array,renderSummaryRow:f.default.func};var h=v;e.default=h}(G_)),G_}var Y_={};const Qke=Qn(Mce);var GE;function Jke(){return GE||(GE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=S,e.default=void 0;var r=t(Ir()),l=t($a()),i=t(fc),o=t(iu()),a=t(pc),s=t(CW),u=t(df),c=t(Qke),d=t(FM),f=t(pb),p=t(PW),m=t(hc),g=t(Tb),b=sf,v=t(Vr),h=_(ge),y=Yi();function w(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(w=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=w(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var z=F?Object.getOwnPropertyDescriptor(P,j):null;z&&(z.get||z.set)?Object.defineProperty(A,j,z):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function x(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function T(P){for(var E=1;EPe.tableData.columnOrder?1:-1}),he=O(P.data()),Se=he.map(function(Oe){return se.reduce(function(Pe,Me){var ce;return typeof Me.customExport=="function"?ce=Me.customExport(Oe):ce=P.getFieldValue(Oe,Me),Pe[Me.field]=ce,Pe},{})});return[se,Se]};function G(){return te.search?h.default.createElement(f.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:C.searchField,value:j,onChange:function(se){return H(se.target.value)},placeholder:I.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:h.default.createElement(s.default,{position:"start"},h.default.createElement(m.default,{title:I.searchTooltip},h.default.createElement(V.Search,{fontSize:"small"}))),endAdornment:h.default.createElement(s.default,{position:"end"},h.default.createElement(u.default,{disabled:!j,onClick:function(){return H("")},"aria-label":I.clearSearchAriaLabel},h.default.createElement(V.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":I.searchAriaLabel}}}):null}function X(ie){var se=ie?"toolbarOnSelect":"toolbar";return h.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!ie&&h.default.createElement("span",null,h.default.createElement(m.default,{title:I.showColumnsTitle},h.default.createElement(u.default,{color:"inherit",onClick:function(Se){return U(Se.currentTarget)},"aria-label":I.showColumnsAriaLabel},h.default.createElement(V.ViewColumn,null))),h.default.createElement(c.default,{anchorEl:W,open:!!W,onClose:function(){return U(null)}},h.default.createElement(d.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},I.addRemoveColumns),P.columns.map(function(he){var Se=he.hiddenByColumnsButton!==void 0?he.hiddenByColumnsButton:P.columnsHiddenInColumnsButton;return Se?null:h.default.createElement("li",{key:he.tableData.id},h.default.createElement(d.default,{sx:C.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(he.tableData.id),disabled:he.removable===!1},h.default.createElement(a.default,{checked:!he.hidden,id:"column-toggle-".concat(he.tableData.id),onChange:function(){return P.onColumnsChanged(he,!he.hidden)}}),h.default.createElement("span",null,he.title)))}))),te.exportMenu.length>0&&h.default.createElement("span",null,h.default.createElement(m.default,{title:I.exportTitle},h.default.createElement(u.default,{color:"inherit",onClick:function(Se){return q(Se.currentTarget)},"aria-label":I.exportAriaLabel},h.default.createElement(V.Export,null))),h.default.createElement(c.default,{anchorEl:R,open:!!R,onClose:function(){return q(null)}},te.exportMenu.map(function(he,Se){var Oe=Z(),Pe=(0,o.default)(Oe,2),Me=Pe[0],ce=Pe[1];return h.default.createElement(d.default,{key:"".concat(he.label).concat(Se),onClick:function(){he.exportFunc(Me,ce,{searchedData:P.dataManager.searchedData,filteredData:P.dataManager.filteredData,groupedData:P.dataManager.groupedData,selectedData:ee}),q(null)}},he.label)}))),h.default.createElement("span",null,h.default.createElement(P.components.Actions,{actions:P.actions&&P.actions.filter(function(he){return he.position===se}),data:ie?ee:void 0,components:P.components})))}function Q(){return h.default.createElement(i.default,{sx:C.actions},h.default.createElement("div",null,X(ee.length>0)))}function re(ie){var se=typeof ie=="string"?h.default.createElement(g.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},ie):ie;return h.default.createElement(i.default,{sx:C.title},se)}var ae=te.showTextRowsSelected&&ee.length>0?typeof I.nRowsSelected=="function"?I.nRowsSelected(ee.length):I.nRowsSelected.replace("{0}",ee.length):te.showTitle?P.title:null;return h.default.createElement(p.default,{ref:P.forwardedRef,className:P.className,sx:T(T({},C.root),te.showTextRowsSelected&&ee.length>0?C.highlight(E):{})},ae&&re(ae),te.searchFieldAlignment==="left"&&G(),te.toolbarButtonAlignment==="left"&&Q(),h.default.createElement(i.default,{sx:C.spacer}),te.searchFieldAlignment==="right"&&G(),te.toolbarButtonAlignment==="right"&&Q())}S.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},S.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var C={root:{paddingRight:1,paddingLeft:2},highlight:function(E){return E.palette.mode==="light"?{color:E.palette.secondary.main,backgroundColor:(0,b.lighten)(E.palette.secondary.light,.85)}:{color:E.palette.text.primary,backgroundColor:E.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},M=h.default.forwardRef(function(E,I){return h.default.createElement(S,(0,r.default)({},E,{forwardedRef:I}))});function O(P){for(var E=P;Array.isArray((I=E)===null||I===void 0||(A=I[0])===null||A===void 0?void 0:A.data);){var I,A;E=E.map(function(F){return F.groups.length!==0?F.groups:F.data}).flat()}return E}var D=h.default.memo(M);e.default=D}(Y_)),Y_}var YE;function Db(){return YE||(YE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return n.default}});var n=t(Kpe()),r=t(Bhe()),l=t(Uhe()),i=t(Vhe()),o=t(Zhe()),a=t(s2e()),s=t(u2e()),u=t(p2e()),c=t(h2e()),d=t(y2e()),f=t(w2e()),p=t(_2e()),m=t(T2e()),g=t(MW()),b=t(qke()),v=t(Uke()),h=t(Gke()),y=t(Xke()),w=t(Kke()),_=t(Zke()),x=t(Jke())}(Cw)),Cw}var XE;function Hq(){return XE||(XE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Xpe),r=Db(),l={Action:r.MTableAction,Actions:r.MTableActions,Body:r.MTableBody,Cell:r.MTableCell,Container:r.Container,EditCell:r.MTableEditCell,EditField:r.MTableEditField,EditRow:r.MTableEditRow,FilterRow:r.MTableFilterRow,Groupbar:r.MTableGroupbar,GroupRow:r.MTableGroupRow,Header:r.MTableHeader,OverlayLoading:r.OverlayLoading,OverlayError:r.OverlayError,Pagination:n.default,Row:r.MTableBodyRow,SummaryRow:r.MTableSummaryRow,Toolbar:r.MTableToolbar};e.default=l}(Sw)),Sw}var KE;function eSe(){if(KE)return tp;KE=1;var e=Cn;Object.defineProperty(tp,"__esModule",{value:!0}),tp.defaultProps=void 0;var t=e(Hq()),n=e(lB()),r=e(oB()),l=e(iB()),i={actions:[],classes:{},columns:[],components:t.default,data:[],icons:n.default,isLoading:!1,title:"Table Title",options:l.default,localization:r.default,style:{}};return tp.defaultProps=i,tp}var kp={},Sp={},ZE;function N5(){if(ZE)return Sp;ZE=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.ALL_COLUMNS=void 0;var e="all_columns";return Sp.ALL_COLUMNS=e,Sp}var QE;function tSe(){if(QE)return kp;QE=1;var e=Cn;Object.defineProperty(kp,"__esModule",{value:!0}),kp.propTypes=void 0;var t=e(Vr),n=N5(),r=t.default.shape({current:t.default.element}),l=t.default.shape({classes:t.default.object,innerRef:r}),i={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,l]),Actions:t.default.oneOfType([t.default.element,t.default.func,l]),Body:t.default.oneOfType([t.default.element,t.default.func,l]),Cell:t.default.oneOfType([t.default.element,t.default.func,l]),Container:t.default.oneOfType([t.default.element,t.default.func,l]),EditField:t.default.oneOfType([t.default.element,t.default.func,l]),EditRow:t.default.oneOfType([t.default.element,t.default.func,l]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,l]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,l]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,l]),Header:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,l]),Pagination:t.default.oneOfType([t.default.element,t.default.func,l]),Row:t.default.oneOfType([t.default.element,t.default.func,l]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,l])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,r]),Check:t.default.oneOfType([t.default.element,t.default.func,r]),Clear:t.default.oneOfType([t.default.element,t.default.func,r]),Delete:t.default.oneOfType([t.default.element,t.default.func,r]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,r]),Edit:t.default.oneOfType([t.default.element,t.default.func,r]),Export:t.default.oneOfType([t.default.element,t.default.func,r]),Filter:t.default.oneOfType([t.default.element,t.default.func,r]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,r]),LastPage:t.default.oneOfType([t.default.element,t.default.func,r]),NextPage:t.default.oneOfType([t.default.element,t.default.func,r]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,r]),Refresh:t.default.oneOfType([t.default.element,t.default.func,r]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,r]),Search:t.default.oneOfType([t.default.element,t.default.func,r]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,r]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,r]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,r])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,n.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return kp.propTypes=i,kp}var X_={};const nSe=Qn(Kue),rSe=Qn(ffe),aSe=Qn(Fde);var K_,JE;function oSe(){if(JE)return K_;JE=1;function e(t,n,r){var l,i,o,a,s;n==null&&(n=100);function u(){var d=Date.now()-a;d=0?l=setTimeout(u,n-d):(l=null,r||(s=t.apply(o,i),o=i=null))}var c=function(){o=this,i=arguments,a=Date.now();var d=r&&!l;return l||(l=setTimeout(u,n)),d&&(s=t.apply(o,i),o=i=null),s};return c.clear=function(){l&&(clearTimeout(l),l=null)},c.flush=function(){l&&(s=t.apply(o,i),o=i=null,clearTimeout(l),l=null)},c}return e.debounce=e,K_=e,K_}var Z_={};const iSe=Qn(vge);var Q_={},Cp={},T0={},eR;function Vq(){if(eR)return T0;eR=1,Object.defineProperty(T0,"__esModule",{value:!0}),T0.default=n;let e;const t=new Uint8Array(16);function n(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return T0}var Bc={},Mp={},Pp={},tR;function lSe(){if(tR)return Pp;tR=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Pp.default=e,Pp}var nR;function Eb(){if(nR)return Mp;nR=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.default=void 0;var e=t(lSe());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){return typeof l=="string"&&e.default.test(l)}var r=n;return Mp.default=r,Mp}var rR;function Rb(){if(rR)return Bc;rR=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.default=void 0,Bc.unsafeStringify=r;var e=t(Eb());function t(o){return o&&o.__esModule?o:{default:o}}const n=[];for(let o=0;o<256;++o)n.push((o+256).toString(16).slice(1));function r(o,a=0){return n[o[a+0]]+n[o[a+1]]+n[o[a+2]]+n[o[a+3]]+"-"+n[o[a+4]]+n[o[a+5]]+"-"+n[o[a+6]]+n[o[a+7]]+"-"+n[o[a+8]]+n[o[a+9]]+"-"+n[o[a+10]]+n[o[a+11]]+n[o[a+12]]+n[o[a+13]]+n[o[a+14]]+n[o[a+15]]}function l(o,a=0){const s=r(o,a);if(!(0,e.default)(s))throw TypeError("Stringified UUID is invalid");return s}var i=l;return Bc.default=i,Bc}var aR;function sSe(){if(aR)return Cp;aR=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.default=void 0;var e=n(Vq()),t=Rb();function n(u){return u&&u.__esModule?u:{default:u}}let r,l,i=0,o=0;function a(u,c,d){let f=c&&d||0;const p=c||new Array(16);u=u||{};let m=u.node||r,g=u.clockseq!==void 0?u.clockseq:l;if(m==null||g==null){const _=u.random||(u.rng||e.default)();m==null&&(m=r=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),g==null&&(g=l=(_[6]<<8|_[7])&16383)}let b=u.msecs!==void 0?u.msecs:Date.now(),v=u.nsecs!==void 0?u.nsecs:o+1;const h=b-i+(v-o)/1e4;if(h<0&&u.clockseq===void 0&&(g=g+1&16383),(h<0||b>i)&&u.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=b,o=v,l=g,b+=122192928e5;const y=((b&268435455)*1e4+v)%4294967296;p[f++]=y>>>24&255,p[f++]=y>>>16&255,p[f++]=y>>>8&255,p[f++]=y&255;const w=b/4294967296*1e4&268435455;p[f++]=w>>>8&255,p[f++]=w&255,p[f++]=w>>>24&15|16,p[f++]=w>>>16&255,p[f++]=g>>>8|128,p[f++]=g&255;for(let _=0;_<6;++_)p[f+_]=m[_];return c||(0,t.unsafeStringify)(p)}var s=a;return Cp.default=s,Cp}var Op={},Ss={},Ap={},oR;function Gq(){if(oR)return Ap;oR=1,Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.default=void 0;var e=t(Eb());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");let i;const o=new Uint8Array(16);return o[0]=(i=parseInt(l.slice(0,8),16))>>>24,o[1]=i>>>16&255,o[2]=i>>>8&255,o[3]=i&255,o[4]=(i=parseInt(l.slice(9,13),16))>>>8,o[5]=i&255,o[6]=(i=parseInt(l.slice(14,18),16))>>>8,o[7]=i&255,o[8]=(i=parseInt(l.slice(19,23),16))>>>8,o[9]=i&255,o[10]=(i=parseInt(l.slice(24,36),16))/1099511627776&255,o[11]=i/4294967296&255,o[12]=i>>>24&255,o[13]=i>>>16&255,o[14]=i>>>8&255,o[15]=i&255,o}var r=n;return Ap.default=r,Ap}var iR;function Yq(){if(iR)return Ss;iR=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.URL=Ss.DNS=void 0,Ss.default=o;var e=Rb(),t=n(Gq());function n(a){return a&&a.__esModule?a:{default:a}}function r(a){a=unescape(encodeURIComponent(a));const s=[];for(let u=0;u>5]>>>v%32&255,y=parseInt(b.charAt(h>>>4&15)+b.charAt(h&15),16);m.push(y)}return m}function n(p){return(p+64>>>9<<4)+14+1}function r(p,m){p[m>>5]|=128<>5]|=(p[b/8]&255)<>16)+(m>>16)+(g>>16)<<16|g&65535}function o(p,m){return p<>>32-m}function a(p,m,g,b,v,h){return i(o(i(i(m,p),i(b,h)),v),g)}function s(p,m,g,b,v,h,y){return a(m&g|~m&b,p,m,v,h,y)}function u(p,m,g,b,v,h,y){return a(m&b|g&~b,p,m,v,h,y)}function c(p,m,g,b,v,h,y){return a(m^g^b,p,m,v,h,y)}function d(p,m,g,b,v,h,y){return a(g^(m|~b),p,m,v,h,y)}var f=e;return Dp.default=f,Dp}var sR;function cSe(){if(sR)return Op;sR=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.default=void 0;var e=n(Yq()),t=n(uSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v3",48,t.default);return Op.default=l,Op}var Ep={},Rp={},uR;function dSe(){if(uR)return Rp;uR=1,Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Rp.default=t,Rp}var cR;function fSe(){if(cR)return Ep;cR=1,Object.defineProperty(Ep,"__esModule",{value:!0}),Ep.default=void 0;var e=r(dSe()),t=r(Vq()),n=Rb();function r(o){return o&&o.__esModule?o:{default:o}}function l(o,a,s){if(e.default.randomUUID&&!a&&!o)return e.default.randomUUID();o=o||{};const u=o.random||(o.rng||t.default)();if(u[6]=u[6]&15|64,u[8]=u[8]&63|128,a){s=s||0;for(let c=0;c<16;++c)a[s+c]=u[c];return a}return(0,n.unsafeStringify)(u)}var i=l;return Ep.default=i,Ep}var Lp={},Ip={},dR;function pSe(){if(dR)return Ip;dR=1,Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.default=void 0;function e(l,i,o,a){switch(l){case 0:return i&o^~i&a;case 1:return i^o^a;case 2:return i&o^i&a^o&a;case 3:return i^o^a}}function t(l,i){return l<>>32-i}function n(l){const i=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof l=="string"){const c=unescape(encodeURIComponent(l));l=[];for(let d=0;d>>0;b=g,g=m,m=t(p,30)>>>0,p=f,f=y}o[0]=o[0]+f>>>0,o[1]=o[1]+p>>>0,o[2]=o[2]+m>>>0,o[3]=o[3]+g>>>0,o[4]=o[4]+b>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,o[0]&255,o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,o[1]&255,o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,o[2]&255,o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,o[3]&255,o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,o[4]&255]}var r=n;return Ip.default=r,Ip}var fR;function hSe(){if(fR)return Lp;fR=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.default=void 0;var e=n(Yq()),t=n(pSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v5",80,t.default);return Lp.default=l,Lp}var $p={},pR;function mSe(){if(pR)return $p;pR=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.default=void 0;var e="00000000-0000-0000-0000-000000000000";return $p.default=e,$p}var Np={},hR;function gSe(){if(hR)return Np;hR=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.default=void 0;var e=t(Eb());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");return parseInt(l.slice(14,15),16)}var r=n;return Np.default=r,Np}var mR;function vSe(){return mR||(mR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=c(sSe()),n=c(cSe()),r=c(fSe()),l=c(hSe()),i=c(mSe()),o=c(gSe()),a=c(Eb()),s=c(Rb()),u=c(Gq());function c(d){return d&&d.__esModule?d:{default:d}}}(Q_)),Q_}var gR;function ySe(){return gR||(gR=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cf()),r=t(db()),l=t(fb()),i=t($a()),o=t(iSe),a=vSe(),s=_b(),u=ds(),c=N5();function d(v,h){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);h&&(w=w.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,w)}return y}function f(v){for(var h=1;h=v.length?{done:!0}:{done:!1,value:v[w++]}},e:function(C){throw C},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,T=!1,k;return{s:function(){y=y.call(v)},n:function(){var C=y.next();return x=C.done,C},e:function(C){T=!0,k=C},f:function(){try{!x&&y.return!=null&&y.return()}finally{if(T)throw k}}}}function m(v,h){if(v){if(typeof v=="string")return g(v,h);var y=Object.prototype.toString.call(v).slice(8,-1);if(y==="Object"&&v.constructor&&(y=v.constructor.name),y==="Map"||y==="Set")return Array.from(v);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return g(v,h)}}function g(v,h){(h==null||h>v.length)&&(h=v.length);for(var y=0,w=new Array(h);y0?k(C.groups):C.data.forEach(function(M){M.tableData.checked!==y&&(M.tableData.checked=M.tableData.disabled?!1:y,h.selectedCount=h.selectedCount+(y?1:-1))})})};T([_])}),(0,i.default)(this,"getOrderByCollection",function(){return h.orderByCollection.filter(function(y){return y.sortOrder})}),(0,i.default)(this,"sortOrderCollection",function(y){return y.sort(function(w,_){return w.sortOrder?_.sortOrder?w.sortOrder-_.sortOrder:-1:1})}),(0,i.default)(this,"startCellEditable",function(y,w){y.tableData.editCellList=[].concat((0,n.default)(y.tableData.editCellList||[]),[w])}),(0,i.default)(this,"finishCellEditable",function(y,w){if(y.tableData.editCellList){var _=y.tableData.editCellList.findIndex(function(x){return x.tableData.id.toString()===w.tableData.id.toString()});_!==-1&&y.tableData.editCellList.splice(_,1)}}),(0,i.default)(this,"clearBulkEditChangedRows",function(){h.bulkEditChangedRows={}}),(0,i.default)(this,"onBulkEditRowChanged",function(y,w){h.bulkEditChangedRows[y.tableData.id]={oldData:y,newData:w}}),(0,i.default)(this,"expandTreeForNodes",function(y){y.forEach(function(w){for(var _=w;h.parentFunc(_,h.data);){var x=h.parentFunc(_,h.data);x&&(x.tableData.isTreeExpanded=!0),_=x}})}),(0,i.default)(this,"findDataByPath",function(y,w){if(h.isDataType("tree")){var _=w.reduce(function(k,S){return k&&k.tableData&&k.tableData.childRows&&k.tableData.childRows.find(function(C){return C&&C.tableData.uuid===S})},{tableData:{childRows:y}});return _}else{var x={groups:y},T=w.reduce(function(k,S){return k.groups.length>0?k.groups[S]:k.data?k.data[S]||k.data.find(function(C){var M;return((M=C.tableData)===null||M===void 0?void 0:M.uuid)===S}):void 0},x);return T}}),(0,i.default)(this,"getFieldValue",function(y,w){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=typeof y[w.field]<"u"?y[w.field]:(0,s.selectFromObject)(y,w.field);return w.lookup&&_&&(x=w.lookup[x]),x}),(0,i.default)(this,"getRenderState",function(){return h.filtered===!1&&h.filterData(),h.searched===!1&&h.searchData(),h.grouped===!1&&h.isDataType("group")&&h.groupData(),h.treefied===!1&&h.isDataType("tree")&&h.treefyData(),h.sorted===!1&&h.sortData(),h.paged===!1&&h.pageData(),{columns:h.columns,currentPage:h.currentPage,data:h.sortedData,lastEditingRow:h.lastEditingRow,orderByCollection:h.orderByCollection,maxColumnSort:h.maxColumnSort,originalData:(0,n.default)(h.data),pageSize:h.pageSize,renderData:h.pagedData,searchText:h.searchText,selectedCount:h.selectedCount,treefiedDataLength:h.treefiedDataLength,treeDataMaxLevel:h.treeDataMaxLevel,groupedDataLength:h.groupedDataLength,tableStyleWidth:h.tableStyleWidth}}),(0,i.default)(this,"filterData",function(){h.searched=h.grouped=h.treefied=h.sorted=h.paged=!1,h.filteredData=(0,n.default)(h.data),h.applyFilters&&h.columns.filter(function(y){return y.tableData.filterValue!==void 0}).forEach(function(y){var w=y.lookup,_=y.type,x=y.tableData;y.customFilterAndSearch?h.filteredData=h.filteredData.filter(function(T){return!!y.customFilterAndSearch(x.filterValue,T,y)}):w?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y,!1);return!x.filterValue||x.filterValue.length===0||x.filterValue.indexOf(k!=null&&k.toString())>-1}):_==="numeric"?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k+""===x.filterValue}):_==="boolean"&&x.filterValue?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k&&x.filterValue==="checked"||!k&&x.filterValue==="unchecked"}):["date","datetime"].includes(_)?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y),S=k?new Date(k):null;if(S&&S.toString()!=="Invalid Date"){var C=x.filterValue,M="",O="";return _==="date"?(M=(0,o.default)(S,"MM/dd/yyyy"),O=(0,o.default)(C,"MM/dd/yyyy")):_==="datetime"&&(M=(0,o.default)(S,"MM/dd/yyyy - HH:mm"),O=(0,o.default)(C,"MM/dd/yyyy - HH:mm")),M===O}return!0}):_==="time"?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y),S=k||null;if(S){var C=x.filterValue,M=(0,o.default)(C,"HH:mm");return S===M}return!0}):h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k!=null&&k.toString().toUpperCase().includes(x.filterValue.toUpperCase())})}),h.filtered=!0}),(0,i.default)(this,"searchData",function(){if(h.grouped=h.treefied=h.sorted=h.paged=!1,h.searchedData=(0,n.default)(h.filteredData),h.searchText&&h.applySearch){var y=h.searchText.trim();h.searchedData=h.searchedData.filter(function(w){return h.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(y,w,_);if(_.field){var x=h.getFieldValue(w,_);if(x)return x.toString().toUpperCase().includes(y.toUpperCase())}return!1})})}h.searched=!0}),(0,i.default)(this,"clearCriteria",function(){h.changeOrder(-1,""),h.changeSearchText("");var y=p(h.columns),w;try{for(y.s();!(w=y.n()).done;){var _=w.value;h.changeFilterValue(_.tableData.id,"")}}catch(x){y.e(x)}finally{y.f()}h.changeSearchText(""),h.changePaging(0)})}return(0,l.default)(v,[{key:"setData",value:function(y,w){var _=this;this.selectedCount=0;var x={};this.data.length!==0&&this.data[0][w]!==void 0&&(x=this.data.reduce(function(T,k){return T[k.tableData.id]=k.tableData,T},{})),this.data=y.map(function(T,k){var S=x[T[w]]||{},C=f(f({index:k,id:T[w]||k,uuid:T.uuid||(0,a.v4)()},S),T.tableData);C.checked&&_.selectedCount++;var M=f(f({},T),{},{tableData:C});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===S&&(_.lastDetailPanelRow=M),_.lastEditingRow&&_.lastEditingRow.tableData===S&&(_.lastEditingRow=M),M}),this.filtered=!1}},{key:"setTableWidth",value:function(y){this.tableWidth=y}},{key:"setColumns",value:function(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=0,T=[];this.columns=y.map(function(C,M){var O,D=(0,u.widthToNumber)(C.width),P=typeof C.width=="number"?C.width+"px":C.width;P&&(isNaN(D)?T.push(P):x+=D);var E=w.find(function(F){var j=F.id;return j===M}),I=(O=_[C.field])!==null&&O!==void 0?O:{},A=f(f(f(f({columnOrder:M,filterValue:C.defaultFilter,groupOrder:C.defaultGroupOrder,groupSort:C.defaultGroupSort||"asc",width:P,initialWidth:P,widthPx:isNaN(D)?void 0:D,additionalWidth:0},I),E?E.tableData:{}),C.tableData),{},{id:M});return C.tableData=A,C});var k=this.columns.filter(function(C){return C.hidden||C.columnDef&&C.columnDef.tableData&&C.columnDef.tableData.width?!1:C.width===void 0}),S=(x!==0?"".concat(x,"px"):"0px")+(T.length>0?" - "+T.join(" - "):"");k.forEach(function(C){C.tableData.width=C.tableData.initialWidth="calc((100% - ".concat(S,") / ").concat(k.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||k.length>0||T.length>0?"100%":x}},{key:"setDefaultExpanded",value:function(y){this.defaultExpanded=y}},{key:"setClientSorting",value:function(y){this.clientSorting=!!y}},{key:"setMaxColumnSort",value:function(y){var w=this.columns.filter(function(_){return _.sorting!==!1}).length;y===c.ALL_COLUMNS?this.maxColumnSort=w:this.maxColumnSort=Math.min(y,w)}},{key:"setOrderByCollection",value:function(){var y=this.getOrderByCollection(),w=this.columns.map(function(_){var x=_.tableData.id,T=y.find(function(k){return k.orderBy===x});return T?f({},T):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});w=this.sortOrderCollection(w),this.orderByCollection=(0,n.default)(w)}},{key:"setDefaultOrderByCollection",value:function(y){this.defaultOrderByCollection=(0,n.default)(y)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(y){this.applySearch=y,this.searched=!1}},{key:"changeApplyFilters",value:function(y){this.applyFilters=y,this.filtered=!1}},{key:"changeApplySort",value:function(y){this.applySort=y,this.sorted=!1}},{key:"changePaging",value:function(y){this.paging=y,this.paged=!1}},{key:"changeCurrentPage",value:function(y){this.currentPage=y,this.paged=!1}},{key:"changePageSize",value:function(y){this.pageSize=y,this.paged=!1}},{key:"changeParentFunc",value:function(y){this.parentFunc=y}},{key:"changeFilterValue",value:function(y,w){var _=this.columns.find(function(x){return x.tableData.id===y});_.tableData.filterValue=w,this.filtered=!1}},{key:"changeRowSelected",value:function(y,w){var _=this,x=this.findDataByPath(this.sortedData,w);x.tableData.checked=y,this.selectedCount=this.selectedCount+(y?1:-1);var T=function k(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){C.tableData.checked!==y&&(C.tableData.checked=y,_.selectedCount=_.selectedCount+(y?1:-1)),k(C)})};T(x),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(y,w){var _=this.findDataByPath(this.sortedData,y);(_.tableData.showDetailPanel||"").toString()===w.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=w,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(y){var w=this.findDataByPath(this.sortedData,y);w.isExpanded=!w.isExpanded}},{key:"changeSearchText",value:function(y){this.searchText=y,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(y){this.searchDebounceDelay=y}},{key:"changeRowEditing",value:function(y,w){y?(y.tableData.editing=w,this.lastEditingRow&&this.lastEditingRow!==y&&(this.lastEditingRow.tableData.editing=void 0),w?this.lastEditingRow=y:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(y){this.bulkEditOpen=y}},{key:"changeAllSelected",value:function(y,w){var _=0,x=function(C){var M=w instanceof Function?w(C):{disabled:!1};return C.tableData.disabled||M.disabled?!1:y};if(this.isDataType("group")){var T=function S(C){C.forEach(function(M){M.groups.length>0?S(M.groups):M.data.forEach(function(O){O.tableData.checked=x(O),_++})})};T(this.groupedData)}else{var k=function S(C){C.tableData.childRows&&C.tableData.childRows.forEach(function(M){M.tableData.checked=x(C),S(M)})};this.searchedData.forEach(function(S){S.tableData.checked=x(S),k(S)}),_=this.searchedData.length}this.selectedCount=y?_:0}},{key:"changeColumnOrder",value:function(y,w,_){var x=[],T=this.getOrderByCollection();T.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,x=this.orderByCollection.map(function(k){return k.sortOrder?k.sortOrder-=1:k.orderBy===y&&w&&(k.sortOrder=T.length,k.orderDirection=w),k})):x=this.orderByCollection.map(function(k){return k.orderBy===y&&w?(k.orderDirection=w,k.sortOrder=_||T.length+1):!w&&k.orderBy===y?(k.orderDirection=w,k.sortOrder=void 0):!w&&_-1}).sort(function(q,Y){return q.tableData.groupOrder-Y.tableData.groupOrder});if(y.destination.droppableId==="groups"&&y.source.droppableId==="groups"){w=Math.min(y.destination.index,y.source.index);var x=Math.max(y.destination.index,y.source.index);if(_=_.slice(w,x+1),y.destination.index-1})&&(w="group"),y===w}},{key:"sort",value:function(y,w,_){if(_==="numeric")return y-w;if(y!==w){if(!y)return-1;if(!w)return 1}return yw?1:0}},{key:"sortList",value:function(y){if(!this.clientSorting)return y;var w=this.orderByCollection.map(function(S){return S.orderBy}),_=new Map;this.columns.forEach(function(S){var C=S.tableData.id;w.includes(C)&&_.set(C,S)});var x=this.sort,T=this.getFieldValue,k=this.orderByCollection;return y.sort(function S(C,M){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:k,P=D[0],E=P.orderBy,I=P.orderDirection,A=O.get(E),F=0;A.customSort?I==="desc"?F=A.customSort(M,C,"row",I):F=A.customSort(C,M,"row",I):(F=x(T(C,A),T(M,A),A.type),F=I.toLowerCase()==="desc"?F*-1:F);var j=F===0&&D.filter(function(z){return z.sortOrder!==void 0}).length!==1;return j?S(C,M,O,D.slice(1)):F})}},{key:"groupData",value:function(){var y=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var w=(0,n.default)(this.searchedData),_=this.columns.filter(function(T){return T.tableData.groupOrder>-1}).sort(function(T,k){return T.tableData.groupOrder-k.tableData.groupOrder}),x=w.reduce(function(T,k){var S=T;return S=_.reduce(function(C,M){var O=k[M.field]||(0,s.selectFromObject)(k,M.field),D;if(C.groupsIndex[O]!==void 0&&(D=C.groups[C.groupsIndex[O]]),!D){var P=[].concat((0,n.default)(C.path||[]),[O]),E=y.findGroupByGroupPath(y.groupedData,P)||{isExpanded:typeof y.defaultExpanded=="boolean"?y.defaultExpanded:!1};D={value:O,groups:[],groupsIndex:{},data:[],isExpanded:E.isExpanded,path:P},C.groups.push(D),C.groupsIndex[O]=C.groups.length-1}return D},S),S.data.push(k),y.groupedDataLength++,T},{groups:[],groupsIndex:{}});this.groupedData=x.groups,this.grouped=!0,this.rootGroupsIndex=x.groupsIndex}},{key:"treefyData",value:function(){var y=this;this.sorted=this.paged=!1,this.data.forEach(function(k){return k.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(k){return k.tableData.filterValue}))&&(this.data.forEach(function(k){k.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var w=function k(S){S.tableData.markedForTreeRemove=!1;var C=y.parentFunc(S,y.data);C?(C.tableData.childRows=C.tableData.childRows||[],C.tableData.childRows.includes(S)||(C.tableData.childRows.push(S),y.treefiedDataLength++),k(C),S.tableData.path=[].concat((0,n.default)(C.tableData.path),[S.tableData.uuid]),y.treeDataMaxLevel=Math.max(y.treeDataMaxLevel,S.tableData.path.length)):y.treefiedData.includes(S)||(y.treefiedData.push(S),y.treefiedDataLength++,S.tableData.path=[S.tableData.uuid])};this.data.forEach(function(k){w(k)});var _=function(S){var C=y.treefiedData;S.tableData.path.forEach(function(M){C.tableData&&C.tableData.childRows&&(C=C.tableData.childRows),Array.isArray(C)&&(C=C.find(function(O){return O.tableData.uuid===M}))}),C.tableData.markedForTreeRemove=!0},x=function k(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){k(C)}),S.tableData.markedForTreeRemove=!1};this.data.forEach(function(k){if(!y.searchText&&!y.columns.some(function(M){return M.tableData.filterValue})&&k.tableData.isTreeExpanded===void 0){var S=typeof y.defaultExpanded=="boolean"?y.defaultExpanded:y.defaultExpanded(k);k.tableData.isTreeExpanded=S}var C=k.tableData.isTreeExpanded;!C&&y.searchedData.indexOf(k)<0&&_(k)}),this.data.forEach(function(k){y.searchedData.indexOf(k)>-1&&x(k)});var T=function k(S){for(var C=S.length-1;C>=0;C--){var M=S[C];M.tableData.childRows&&k(M.tableData.childRows),M.tableData.markedForTreeRemove&&S.splice(C,1)}};T(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var y=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,n.default)(this.groupedData);var w=this.columns.filter(function(S){return S.tableData.groupOrder>-1}).sort(function(S,C){return S.tableData.groupOrder-C.tableData.groupOrder}),_=function(C,M){return M.customSort?C.sort(M.tableData.groupSort==="desc"?function(O,D){return M.customSort(D.value,O.value,"group",M.tableData.groupSort)}:function(O,D){return M.customSort(O.value,D.value,"group",M.tableData.groupSort)}):C.sort(M.tableData.groupSort==="desc"?function(O,D){return y.sort(D.value,O.value,M.type)}:function(O,D){return y.sort(O.value,D.value,M.type)})};this.sortedData=_(this.sortedData,w[0]);var x=function(C){return C.reduce(function(M,O){return M[O.value]=C.findIndex(function(D){return D.value===O.value}),M},{})},T=function S(C,M){C.forEach(function(O){if(O.groups.length>0){var D=w[M];O.groups=_(O.groups,D),O.groupsIndex=x(O.groups),S(O.groups,M+1)}else y.maxColumnSort>0&&y.getOrderByCollection().length>0?O.data=y.sortList(O.data):y.maxColumnSort>0&&(O.data=O.data.sort(function(P,E){return y.data.findIndex(function(I){return I.tableData.id===P.tableData.id})-y.data.findIndex(function(I){return I.tableData.id===E.tableData.id})}))})};T(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,n.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var k=function S(C){C.forEach(function(M){M.tableData.childRows&&(M.tableData.childRows=y.sortList(M.tableData.childRows),S(M.tableData.childRows))})};k(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,n.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,n.default)(this.sortedData),this.paging){var y=this.currentPage*this.pageSize,w=y+this.pageSize;this.pagedData=this.pagedData.slice(y,w)}this.paged=!0}}]),v}();e.default=b}(Z_)),Z_}var vR;function bSe(){return vR||(vR=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(nSe),l=t(rSe),i=t(ls),o=t(Ir()),a=t(fc),s=t(cf()),u=t(aSe),c=t(_a()),d=t(iu()),f=t(db()),p=t(fb()),m=t(IM()),g=t(LM()),b=t($M()),v=t(NM()),h=t($a()),y=t(ge),w=oSe(),_=t(aB()),x=M(ds()),T=$5,k=t(ySe()),S=Db();function C(j){if(typeof WeakMap!="function")return null;var z=new WeakMap,B=new WeakMap;return(C=function(R){return R?B:z})(j)}function M(j,z){if(j&&j.__esModule)return j;if(j===null||n(j)!=="object"&&typeof j!="function")return{default:j};var B=C(z);if(B&&B.has(j))return B.get(j);var N={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in j)if(q!=="default"&&Object.prototype.hasOwnProperty.call(j,q)){var Y=R?Object.getOwnPropertyDescriptor(j,q):null;Y&&(Y.get||Y.set)?Object.defineProperty(N,q,Y):N[q]=j[q]}return N.default=j,B&&B.set(j,N),N}function O(j,z){var B=Object.keys(j);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(j);z&&(N=N.filter(function(R){return Object.getOwnPropertyDescriptor(j,R).enumerable})),B.push.apply(B,N)}return B}function D(j){for(var z=1;z"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var I=function(j){(0,g.default)(B,j);var z=P(B);function B(N){var R;(0,f.default)(this,B),R=z.call(this,N),(0,h.default)((0,m.default)(R),"dataManager",new k.default),(0,h.default)((0,m.default)(R),"checkedForFunctions",!1),(0,h.default)((0,m.default)(R),"clearCriteria",function(){R.dataManager.clearCriteria(),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"isRemoteData",function(L){return!Array.isArray((L||R.props).data)}),(0,h.default)((0,m.default)(R),"onAllSelected",function(L){R.dataManager.changeAllSelected(L,R.props.options.selectionProps),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,h.default)((0,m.default)(R),"onGroupSelected",function(L,W){R.dataManager.changeGroupSelected(L,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,h.default)((0,m.default)(R),"onChangeColumnHidden",function(L,W){R.dataManager.changeColumnHidden(L,W),R.setState(R.dataManager.getRenderState(),function(){R.props.onChangeColumnHidden&&R.props.onChangeColumnHidden(L,W)})}),(0,h.default)((0,m.default)(R),"onChangeGroupOrder",function(L){R.dataManager.changeGroupOrder(L.tableData.id),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onChangeOrder",function(L,W,U){R.dataManager.changeColumnOrder(L,W,U);var V=R.dataManager.getOrderByCollection();if(R.isRemoteData()){var te=D({},R.state.query);te.page=0,te.orderBy=R.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=W,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=V,R.onQueryChange(te,function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(V)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(V)})}),(0,h.default)((0,m.default)(R),"onPageChange",function(L,W){if(R.isRemoteData()){var U=D({},R.state.query);U.page=W,R.onQueryChange(U,function(){R.props.onPageChange&&R.props.onPageChange(W,U.pageSize)})}else R.dataManager.changeCurrentPage(W),R.setState(R.dataManager.getRenderState(),function(){R.props.onPageChange&&R.props.onPageChange(W,R.state.pageSize)})}),(0,h.default)((0,m.default)(R),"onRowsPerPageChange",function(L){var W=L.target.value;R.dataManager.changePageSize(W);var U=function(){R.props.onPageChange&&R.props.onPageChange(0,W),R.props.onRowsPerPageChange&&R.props.onRowsPerPageChange(W)};if(R.isRemoteData()){var V=D({},R.state.query);V.pageSize=L.target.value,V.page=0,R.onQueryChange(V,U)}else R.dataManager.changeCurrentPage(0),R.setState(R.dataManager.getRenderState(),U)}),(0,h.default)((0,m.default)(R),"onDragEnd",function(L){!L||!L.source||!L.destination||(R.dataManager.changeByDrag(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&R.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,h.default)((0,m.default)(R),"onGroupExpandChanged",function(L){R.dataManager.changeGroupExpand(L),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onGroupRemoved",function(L,W){var U={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:W,droppableId:"groups"},type:"DEFAULT"};R.dataManager.changeByDrag(U),R.setState(R.dataManager.getRenderState(),function(){R.props.onGroupRemoved&&R.props.onGroupRemoved(L,W)})}),(0,h.default)((0,m.default)(R),"onEditingApproved",function(L,W,U){L==="add"&&R.props.editable&&R.props.editable.onRowAdd?R.setState({isLoading:!0},function(){R.props.editable.onRowAdd(W).then(function(V){R.setState({isLoading:!1,showAddRow:!1},function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"add"};R.setState({isLoading:!1,errorState:te})})}):L==="update"&&R.props.editable&&R.props.editable.onRowUpdate?R.setState({isLoading:!0},function(){R.props.editable.onRowUpdate(W,U).then(function(V){R.dataManager.changeRowEditing(U),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"update"};R.setState({isLoading:!1,errorState:te})})}):L==="delete"&&R.props.editable&&R.props.editable.onRowDelete?R.setState({isLoading:!0},function(){R.props.editable.onRowDelete(Object.entries(U).reduce(function(V,te){var ee=(0,d.default)(te,2),H=ee[0],Z=ee[1];return H!=="tableData"&&(V[H]=Z),V},{})).then(function(V){R.dataManager.changeRowEditing(U),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"delete"};R.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&R.props.editable&&R.props.editable.onBulkUpdate&&R.setState({isLoading:!0},function(){R.props.editable.onBulkUpdate(R.dataManager.bulkEditChangedRows).then(function(V){R.dataManager.changeBulkEditOpen(!1),R.props.onBulkEditOpen&&R.props.onBulkEditOpen(!1),R.dataManager.clearBulkEditChangedRows(),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"bulk edit"};R.setState({isLoading:!1,errorState:te})})})}),(0,h.default)((0,m.default)(R),"onEditingCanceled",function(L,W){L==="add"?(R.props.editable.onRowAddCancelled&&R.props.editable.onRowAddCancelled(),R.setState({showAddRow:!1})):L==="update"?(R.props.editable.onRowUpdateCancelled&&R.props.editable.onRowUpdateCancelled(),R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState())):L==="delete"&&(R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState()))}),(0,h.default)((0,m.default)(R),"retry",function(){R.onQueryChange(R.state.query)}),(0,h.default)((0,m.default)(R),"onQueryChange",function(L,W){L=D(D(D({},R.state.query),L),{},{error:R.state.errorState}),R.setState({isLoading:!0,errorState:void 0},function(){R.props.data(L).then(function(U){L.totalCount=U.totalCount,L.page=U.page;var V=D(D({},L),{},{totalCount:U.totalCount,page:U.page});R.dataManager.setData(U.data,R.props.options.idSynonym),R.setState(D(D({isLoading:!1,errorState:!1},R.dataManager.getRenderState()),{},{query:V}),function(){W&&W()})}).catch(function(U){var V={message:(0,c.default)(U)==="object"?U.message:U!==void 0?U:R.props.localization.error,errorCause:"query"};R.setState(D({isLoading:!1,errorState:V},R.dataManager.getRenderState()))})})}),(0,h.default)((0,m.default)(R),"onRowSelected",function(L,W,U){R.dataManager.changeRowSelected(L.target.checked,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange(U)})}),(0,h.default)((0,m.default)(R),"onSelectionChange",function(L){if(R.props.onSelectionChange){var W=[],U=function(te){te.forEach(function(ee){ee.tableData.checked&&W.push(ee)})};U(R.state.originalData),R.props.onSelectionChange(W,L)}}),(0,h.default)((0,m.default)(R),"onSearchChangeDebounce",(0,w.debounce)(function(L){if(R.isRemoteData()){var W=D({},R.state.query);W.page=0,W.search=L,R.onQueryChange(W,function(){R.props.onSearchChange&&R.props.onSearchChange(L)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onSearchChange&&R.props.onSearchChange(L)})},R.props.options.debounceInterval)),(0,h.default)((0,m.default)(R),"onFilterChange",function(L,W){R.dataManager.changeFilterValue(L,W),R.setState({},R.onFilterChangeDebounce)}),(0,h.default)((0,m.default)(R),"onFilterChangeDebounce",(0,w.debounce)(function(){if(R.isRemoteData()){var L=D({},R.state.query);L.page=0,L.filters=R.state.columns.filter(function(W){return W.tableData.filterValue}).map(function(W){return{column:W,operator:"=",value:W.tableData.filterValue}}),R.onQueryChange(L,function(){R.props.onFilterChange&&R.props.onFilterChange(L.filters)})}else R.setState(R.dataManager.getRenderState(),function(){if(R.props.onFilterChange){var W=R.state.columns.filter(function(U){return U.tableData.filterValue}).map(function(U){return{column:U,operator:"=",value:U.tableData.filterValue}});R.props.onFilterChange(W)}})},R.props.options.debounceInterval)),(0,h.default)((0,m.default)(R),"onTreeExpandChanged",function(L,W){R.dataManager.changeTreeExpand(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onTreeExpandChange&&R.props.onTreeExpandChange(W,W.tableData.isTreeExpanded)})}),(0,h.default)((0,m.default)(R),"onToggleDetailPanel",function(L,W){R.dataManager.changeDetailPanelVisibility(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onCellEditStarted",function(L,W){R.dataManager.startCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onCellEditFinished",function(L,W){R.dataManager.finishCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onEditRowDataChanged",function(L,W){R.dataManager.setEditRowData(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onColumnResized",function(L,W,U,V){var te=function(Z){return D(D(D({field:Z.field,width:Z.tableData.width,widthPx:Z.tableData.widthPx},Z.id&&{id:Z.id}),Z.minWidth&&{minWidth:Z.minWidth}),Z.maxWidth&&{maxWidth:Z.maxWidth})},ee=R.dataManager.onColumnResized(L,W,U,V);R.setState(R.dataManager.getRenderState(),function(){W===0&&R.props.onColumnResized&&ee.length>0&&R.props.onColumnResized(ee.map(function(H){return te(H)}),R.state.columns.map(function(H){return te(H)}))})}),(0,h.default)((0,m.default)(R),"renderTable",function(L){var W;return y.default.createElement(u.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:R.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&y.default.createElement(L.components.Header,{actions:R.state.actions,columns:R.state.columns,selectedCount:R.state.selectedCount,dataCount:L.parentChildData?R.dataManager.searchedData.length:R.state.columns.some(function(U){return U.tableData.groupOrder>-1})?R.state.groupedDataLength:R.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!R.dataManager.bulkEditOpen&&R.state.actions&&R.state.actions.some(function(U){return U.position==="row"||typeof U=="function"}),onAllSelected:R.onAllSelected,onOrderChange:R.onChangeOrder,isTreeData:R.props.parentChildData!==void 0,treeDataMaxLevel:R.state.treeDataMaxLevel,onColumnResized:R.onColumnResized,scrollWidth:R.state.width,sorting:L.options.sorting||R.dataManager.maxColumnSort!==0,allowSorting:R.dataManager.maxColumnSort!==0,orderByCollection:R.dataManager.getOrderByCollection(),tableWidth:(W=L.options.tableWidth)!==null&&W!==void 0?W:"full"}),y.default.createElement(L.components.Body,{actions:R.state.actions,components:R.props.components,renderData:R.state.renderData,data:R.state.data,renderSummaryRow:R.props.renderSummaryRow,currentPage:R.isRemoteData()?0:R.state.currentPage,initialFormData:L.initialFormData,pageSize:R.state.pageSize,columns:R.state.columns,errorState:R.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:R.dataManager.getFieldValue,isTreeData:R.props.parentChildData!==void 0,onFilterChanged:R.onFilterChange,onRowSelected:R.onRowSelected,onGroupSelected:R.onGroupSelected,onToggleDetailPanel:R.onToggleDetailPanel,onGroupExpandChanged:R.onGroupExpandChanged,onTreeExpandChanged:R.onTreeExpandChanged,onEditingCanceled:R.onEditingCanceled,onEditingApproved:R.onEditingApproved,onRowClick:R.props.onRowClick,onRowDoubleClick:R.props.onRowDoubleClick,showAddRow:R.state.showAddRow,hasAnyEditingRow:!!(R.state.lastEditingRow||R.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:R.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:R.onCellEditStarted,onCellEditFinished:R.onCellEditFinished,onRowEditStarted:R.onRowEditStarted,bulkEditOpen:R.dataManager.bulkEditOpen,bulkEditChangedRows:R.dataManager.bulkEditChangedRows,onBulkEditRowChanged:R.dataManager.onBulkEditRowChanged,scrollWidth:R.state.width}))}),(0,h.default)((0,m.default)(R),"onRowEditStarted",function(L){var W;(W=R.props.editable)!==null&&W!==void 0&&W.onRowUpdate&&(R.dataManager.changeRowEditing(L,"update"),R.setState(D(D({},R.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,h.default)((0,m.default)(R),"getColumnsWidth",function(L,W){var U=[],V=x.actionsColumnWidth(L);if(V>0&&(W>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=W)&&U.push(V+"px"),L.options.selection&&W>0){var te=x.selectionMaxWidth(L,R.state.treeDataMaxLevel);U.push(te+"px")}for(var ee=0;ee=0?ee:R.state.columns.length-1-ee];H.tableData&&(typeof H.tableData.width=="number"?U.push(H.tableData.width+"px"):U.push(H.tableData.width))}return"calc("+U.join(" + ")+")"}),(0,h.default)((0,m.default)(R),"getRenderData",function(){return R.props.options.exportAllData?R.state.data:R.state.renderData});var q=R.getProps(N);R.setDataManagerFields(q,!0);var Y=R.dataManager.getRenderState();return R.state=D(D({data:[],errorState:void 0},Y),{},{query:{filters:Y.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:Y.columns.find(function(L){return L.tableData.id===Y.orderBy}),orderDirection:Y.orderDirection,orderByCollection:Y.orderByCollection,page:0,pageSize:q.options.pageSize,search:Y.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:q.actions}),R.tableContainerDiv=y.default.createRef(),R}return(0,p.default)(B,[{key:"componentDidMount",value:function(){var R=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){R.isRemoteData()&&R.onQueryChange(D(D({},R.state.query),{},{page:R.props.options.initialPage||0})),R.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),R.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(R,q,Y){var L,W=this,U={};if(R.options.persistentGroupingsId&&localStorage){var V=localStorage.getItem("material-table-groupings");V&&(V=JSON.parse(V),V[R.options.persistentGroupingsId]&&V[R.options.persistentGroupingsId].forEach(function(Se){U[Se.field]={groupOrder:Se.groupOrder,groupSort:Se.groupSort,columnOrder:Se.columnOrder}}))}this.dataManager.setTableWidth((L=R.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(R.columns,Y,U),this.dataManager.setDefaultExpanded(R.options.defaultExpanded),this.dataManager.changeRowEditing();var te=R.options,ee=te.clientSorting,H=te.grouping,Z=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(H?1:Z),this.dataManager.setOrderByCollection(),this.isRemoteData(R)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(R.data,R.options.idSynonym));var G=this.dataManager.getDefaultOrderByCollection(),X=R.options.defaultOrderByCollection,Q=[],re="",ae="";if(X&&X.length>0)Q=(0,s.default)(X).slice(0,Z),Q=this.dataManager.sortOrderCollection(Q),re=JSON.stringify(Q),ae=JSON.stringify(G),re!==ae&&this.dataManager.setDefaultOrderByCollection(Q);else{var ie=A(R.columns,Y,this.dataManager.maxColumnSort);Q=(0,s.default)(ie[0]),re=JSON.stringify(Q),ae=JSON.stringify((0,s.default)(ie[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),he=q||!this.isRemoteData()&&Q.length&&re!==ae&&re!==se;he&&Q.length>0&&Z>0&&Q.forEach(function(Se){var Oe=Se.orderBy,Pe=Se.orderDirection,Me=Se.sortOrder;return W.dataManager.changeColumnOrder(Oe,Pe,Me)}),q&&this.dataManager.changeSearchText(R.options.searchText||""),q&&this.dataManager.changeSearchDebounce(R.options.searchDebounceDelay),q&&this.dataManager.changeCurrentPage(R.options.initialPage?R.options.initialPage:0),q&&this.dataManager.changePageSize(R.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:R.options.paging),q&&this.dataManager.changeParentFunc(R.parentChildData),this.dataManager.changeDetailPanelType(R.options.detailPanelType)}},{key:"cleanColumns",value:function(R){return R.map(function(q){var Y=D({},q);return delete Y.tableData,Y})}},{key:"componentDidUpdate",value:function(R){var q=this.cleanColumns(R.columns),Y=this.cleanColumns(this.props.columns),L=!(0,_.default)(q,Y),W=L||!(0,_.default)(R.options,this.props.options);if(this.isRemoteData()||(W=W||!(0,_.default)(R.data,this.props.data)),R.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),W){var U=this.getProps(this.props);this.setDataManagerFields(U,!1,R.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:U.actions}))}var V=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;V<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(V/ee)-1))}},{key:"getProps",value:function(R){var q=this,Y=D({},R||this.props),L=this.props.localization.body;if(Y.options.selection?Y.actions=Y.actions.filter(function(U){return U}).map(function(U){return U.position==="auto"||U.isFreeAction===!1||U.position===void 0&&U.isFreeAction===void 0?typeof U=="function"?{action:U,position:"toolbarOnSelect"}:D(D({},U),{},{position:"toolbarOnSelect"}):U.isFreeAction?typeof U=="function"?{action:U,position:"toolbar"}:D(D({},U),{},{position:"toolbar"}):U}):Y.actions=Y.actions.filter(function(U){return U}).map(function(U){return U.position==="auto"||U.isFreeAction===!1||U.position===void 0&&U.isFreeAction===void 0?typeof U=="function"?{action:U,position:"row"}:D(D({},U),{},{position:"row"}):U.isFreeAction?typeof U=="function"?{action:U,position:"toolbar"}:D(D({},U),{},{position:"toolbar"}):U}),Y.editable){var W;Y.editable.onRowAdd&&Y.actions.push({icon:Y.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){q.dataManager.changeRowEditing(),q.state.showAddRow&&q.props.editable.onRowAddCancelled&&q.props.editable.onRowAddCancelled(),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!q.state.showAddRow}))}}),Y.editable.onRowUpdate&&Y.actions.push(function(U){return{icon:Y.icons.Edit,tooltip:Y.editable.editTooltip?Y.editable.editTooltip(U):L.editTooltip,disabled:Y.editable.isEditable&&!Y.editable.isEditable(U),hidden:Y.editable.isEditHidden&&Y.editable.isEditHidden(U),onClick:function(te,ee){q.onRowEditStarted(ee)}}}),Y.editable.onRowDelete&&Y.actions.push(function(U){return{icon:Y.icons.Delete,tooltip:Y.editable.deleteTooltip?Y.editable.deleteTooltip(U):L.deleteTooltip,disabled:Y.editable.isDeletable&&!Y.editable.isDeletable(U),hidden:Y.editable.isDeleteHidden&&Y.editable.isDeleteHidden(U),onClick:function(te,ee){q.dataManager.changeRowEditing(ee,"delete"),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),Y.editable.onBulkUpdate&&(Y.actions.push({icon:Y.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:Y.isBulkEditable&&Y.isBulkEditable(),onClick:function(){q.dataManager.changeBulkEditOpen(!0),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!0),q.setState(q.dataManager.getRenderState())}}),Y.actions.push({icon:Y.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return q.onEditingApproved("bulk")}}),Y.actions.push({icon:Y.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){q.dataManager.changeBulkEditOpen(!1),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!1),q.dataManager.clearBulkEditChangedRows(),q.setState(q.dataManager.getRenderState())}})),(W=this.state)!==null&&W!==void 0&&W.showAddRow&&Y.editable.onRowAdd&&Y.actions.filter(function(U){return U.position==="row"}).length===0&&Y.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return Y}},{key:"renderFooter",value:function(){var R=this.getProps();if(R.options.paging){var q=this.isRemoteData()?Math.min(R.page,Math.floor(R.totalCount/this.state.pageSize)):this.state.currentPage,Y=this.isRemoteData()?R.totalCount:this.state.data.length;return y.default.createElement(u.default,null,y.default.createElement(l.default,{style:{display:"grid"}},y.default.createElement(i.default,{style:{display:"grid"}},y.default.createElement(R.components.Pagination,{sx:{display:"flex",justifyContent:R.options.paginationAlignment?R.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:Y,rowsPerPage:this.state.pageSize,rowsPerPageOptions:R.options.pageSizeOptions,SelectProps:{renderValue:function(W){return y.default.createElement(a.default,{sx:{padding:"0px 5px"}},W+" "+R.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:q,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(W){return R.options.paginationType==="normal"?y.default.createElement(S.MTablePagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons})):y.default.createElement(S.MTableSteppedPagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons,numberOfPagesAround:R.options.numberOfPagesAround}))},labelRowsPerPage:R.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var R=this,q=this.getProps();return y.default.createElement(T.DragDropContext,{onDragEnd:this.onDragEnd,nonce:q.options.cspNonce},y.default.createElement(this.props.components.Container,{style:D({position:"relative"},q.style)},q.options.paginationPosition==="top"||q.options.paginationPosition==="both"?this.renderFooter():null,q.options.toolbar&&y.default.createElement(this.props.components.Toolbar,{actions:q.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:q.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),q.options.grouping&&y.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(Y){return Y.tableData.groupOrder>-1}).sort(function(Y,L){return Y.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:q.options.persistentGroupingsId}),y.default.createElement(S.MTableScrollbar,{double:q.options.doubleHorizontalScroll},y.default.createElement(T.Droppable,{droppableId:"headers",direction:"horizontal"},function(Y,L){var W=R.renderTable(q);return y.default.createElement("div",{ref:Y.innerRef},y.default.createElement("div",{ref:R.tableContainerDiv,style:{maxHeight:q.options.maxBodyHeight,minHeight:q.options.minBodyHeight,overflowY:q.options.overflowY}},R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.right?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,-1*q.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white",transform:"translateX(calc(".concat(R.getColumnsWidth(q,-1*q.options.fixedColumns.right)," - 100%))")}},W)):null,y.default.createElement("div",null,W),R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.left?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,q.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white"},onKeyDown:function(V){V.key==="Tab"&&V.preventDefault()}},W)):null),Y.placeholder)})),(this.state.isLoading||q.isLoading)&&q.options.loadingType==="linear"&&y.default.createElement("div",{style:{position:"relative",width:"100%"}},y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},y.default.createElement(r.default,null))),q.options.paginationPosition==="bottom"||q.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||q.isLoading)&&q.options.loadingType==="overlay"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayLoading,{theme:q.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:q.theme}))))}}]),B}(y.default.Component);e.default=I;function A(j,z,B){var N=[],R=[];return B>0&&(N=F(j,B)),z&&(R=F(z,B)),[N,R]}function F(j,z){var B=j.filter(function(N){return N.defaultSort&&N.sorting!==!1});return B.slice(0,z).map(function(N,R){return{orderBy:N.tableData?N.tableData.id:j.findIndex(function(q){return q.field===N.field}),orderDirection:N.defaultSort,sortOrder:R+1}})}}(X_)),X_}(function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return c.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return u.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return u.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return u.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return u.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return u.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return u.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return u.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return u.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return u.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return u.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return u.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return u.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return u.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return u.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return s.useLocalizationStore}});var n=t(Ir()),r=t(ge),l=eSe(),i=tSe(),o=t(bSe()),a=sf,s=eg(),u=Db(),c=N5();o.default.defaultProps=l.defaultProps,o.default.propTypes=i.propTypes;var d=(0,s.withContext)(function(f){var p=(0,a.useTheme)(),m=(0,s.useMergeProps)(f),g=m.localization,b=m.options,v=m.components;return r.default.createElement(o.default,(0,n.default)({},f,{theme:p,options:b,components:v,localization:g,ref:f.tableRef}))});e.default=d})(Vz);const xSe=lr(Vz);var F5={},wSe=Cn;Object.defineProperty(F5,"__esModule",{value:!0});var Xq=F5.default=void 0,_Se=wSe(Ta()),TSe=ke,kSe=(0,_Se.default)((0,TSe.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");Xq=F5.default=kSe;const bk=e=>{const[t,n]=ge.useState(()=>({status:0}));return ge.useEffect(()=>{n({status:1,func:e.func})},[e.func]),t.status===1&&(n(r=>({...r,status:2})),t.func().then(r=>n(l=>({status:3,func:l.func,result:r})))),ke.jsx(Qe.Fragment,{children:t.status===3?e.children?e.children(t.result):ke.jsx("div",{}):ke.jsx(Ia,{textAlign:"center",children:ke.jsx(Xj,{})})})},SSe=e=>ke.jsx(DM.Consumer,{children:t=>ke.jsx(bk,{func:()=>t.getAdditionGraphData(e.graphId),children:n=>ke.jsx(ub,{...n,widgetSize:e.widgetSize})})});var Kq=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(l,i){return l[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),l=this.__entries__[r];return l&&l[1]},t.prototype.set=function(n,r){var l=e(this.__entries__,n);~l?this.__entries__[l][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,l=e(r,n);~l&&r.splice(l,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var l=0,i=this.__entries__;l0},e.prototype.connect_=function(){!xk||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),DSe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!xk||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,l=ASe.some(function(i){return!!~r.indexOf(i)});l&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Zq=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Yd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new zSe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Yd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new BSe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Jq=typeof WeakMap<"u"?new WeakMap:new Kq,eU=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ESe.getInstance(),r=new WSe(t,n,this);Jq.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){eU.prototype[e]=function(){var t;return(t=Jq.get(this))[e].apply(t,arguments)}});var qSe=function(){return typeof yy.ResizeObserver<"u"?yy.ResizeObserver:eU}(),USe=["client","offset","scroll","bounds","margin"];function bR(e){var t=[];return USe.forEach(function(n){e[n]&&t.push(n)}),t}function xR(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var l=getComputedStyle(e);n.margin={top:l?parseInt(l.marginTop):0,right:l?parseInt(l.marginRight):0,bottom:l?parseInt(l.marginBottom):0,left:l?parseInt(l.marginLeft):0}}return n}function HSe(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function VSe(e){return function(t){var n,r;return r=n=function(l){K1(i,l);function i(){for(var a,s=arguments.length,u=new Array(s),c=0;c"u"?Oo:window,k0=["moz","webkit"],Td="AnimationFrame",Xd=Hl["request"+Td],km=Hl["cancel"+Td]||Hl["cancelRequest"+Td];for(var Fp=0;!Xd&&FpT*10&&(O.accumulatedTime=0),O.accumulatedTime===0){O.animationID=null,O.startAnimationIfNecessary();return}var A=(O.accumulatedTime-Math.floor(O.accumulatedTime/T)*T)/T,F=Math.floor(O.accumulatedTime/T),j={},z={},B={},N={};for(var R in P)if(Object.prototype.hasOwnProperty.call(P,R)){var q=P[R];if(typeof q=="number")B[R]=q,N[R]=0,j[R]=q,z[R]=0;else{for(var Y=O.state.lastIdealStyle[R],L=O.state.lastIdealVelocity[R],W=0;WT*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var F=(D.accumulatedTime-Math.floor(D.accumulatedTime/T)*T)/T,j=Math.floor(D.accumulatedTime/T),z=[],B=[],N=[],R=[],q=0;qo[h])return-1;if(p>s[h]&&bo[h])return 1;if(m>s[h]&&gS*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}for(var R=(A.accumulatedTime-Math.floor(A.accumulatedTime/S)*S)/S,q=Math.floor(A.accumulatedTime/S),Y=O(A.props.willEnter,A.props.willLeave,A.props.didLeave,A.state.mergedPropsStyles,z,A.state.currentStyles,A.state.currentVelocities,A.state.lastIdealStyles,A.state.lastIdealVelocities),L=Y[0],W=Y[1],U=Y[2],V=Y[3],te=Y[4],ee=0;ee-1}var BCe=zCe,WCe=jb;function qCe(e,t){var n=this.__data__,r=WCe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var UCe=qCe,HCe=MCe,VCe=ICe,GCe=FCe,YCe=BCe,XCe=UCe;function gf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=t4e}var Q5=n4e,r4e=Bb,a4e=Q5;function o4e(e){return e!=null&&a4e(e.length)&&!r4e(e)}var wf=o4e,i4e=wf,l4e=oi;function s4e(e){return l4e(e)&&i4e(e)}var mU=s4e,_y={exports:{}};function u4e(){return!1}var c4e=u4e;_y.exports;(function(e,t){var n=zo,r=c4e,l=t&&!t.nodeType&&t,i=l&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===l,a=o?n.Buffer:void 0,s=a?a.isBuffer:void 0,u=s||r;e.exports=u})(_y,_y.exports);var Yb=_y.exports,d4e=fs,f4e=K5,p4e=oi,h4e="[object Object]",m4e=Function.prototype,g4e=Object.prototype,gU=m4e.toString,v4e=g4e.hasOwnProperty,y4e=gU.call(Object);function b4e(e){if(!p4e(e)||d4e(e)!=h4e)return!1;var t=f4e(e);if(t===null)return!0;var n=v4e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&gU.call(n)==y4e}var J5=b4e;const Mm=lr(J5);var x4e=fs,w4e=Q5,_4e=oi,T4e="[object Arguments]",k4e="[object Array]",S4e="[object Boolean]",C4e="[object Date]",M4e="[object Error]",P4e="[object Function]",O4e="[object Map]",A4e="[object Number]",D4e="[object Object]",E4e="[object RegExp]",R4e="[object Set]",L4e="[object String]",I4e="[object WeakMap]",$4e="[object ArrayBuffer]",N4e="[object DataView]",F4e="[object Float32Array]",j4e="[object Float64Array]",z4e="[object Int8Array]",B4e="[object Int16Array]",W4e="[object Int32Array]",q4e="[object Uint8Array]",U4e="[object Uint8ClampedArray]",H4e="[object Uint16Array]",V4e="[object Uint32Array]",Ur={};Ur[F4e]=Ur[j4e]=Ur[z4e]=Ur[B4e]=Ur[W4e]=Ur[q4e]=Ur[U4e]=Ur[H4e]=Ur[V4e]=!0;Ur[T4e]=Ur[k4e]=Ur[$4e]=Ur[S4e]=Ur[N4e]=Ur[C4e]=Ur[M4e]=Ur[P4e]=Ur[O4e]=Ur[A4e]=Ur[D4e]=Ur[E4e]=Ur[R4e]=Ur[L4e]=Ur[I4e]=!1;function G4e(e){return _4e(e)&&w4e(e.length)&&!!Ur[x4e(e)]}var Y4e=G4e;function X4e(e){return function(t){return e(t)}}var _f=X4e,Ty={exports:{}};Ty.exports;(function(e,t){var n=rU,r=t&&!t.nodeType&&t,l=r&&!0&&e&&!e.nodeType&&e,i=l&&l.exports===r,o=i&&n.process,a=function(){try{var s=l&&l.require&&l.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a})(Ty,Ty.exports);var Xb=Ty.exports,K4e=Y4e,Z4e=_f,IR=Xb,$R=IR&&IR.isTypedArray,Q4e=$R?Z4e($R):K4e,eP=Q4e;function J4e(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var vU=J4e,eOe=Y5,tOe=ug,nOe=Object.prototype,rOe=nOe.hasOwnProperty;function aOe(e,t,n){var r=e[t];(!(rOe.call(e,t)&&tOe(r,n))||n===void 0&&!(t in e))&&eOe(e,t,n)}var tP=aOe,oOe=tP,iOe=Y5;function lOe(e,t,n,r){var l=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=g6e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var wU=b6e,x6e=m6e,w6e=wU,_6e=w6e(x6e),rP=_6e,T6e=yc,k6e=xU,S6e=rP;function C6e(e,t){return S6e(k6e(e,t,T6e),e+"")}var Kb=C6e,M6e=ug,P6e=wf,O6e=cg,A6e=Oi;function D6e(e,t,n){if(!A6e(n))return!1;var r=typeof t;return(r=="number"?P6e(n)&&O6e(t,n.length):r=="string"&&t in n)?M6e(n[t],e):!1}var aP=D6e,E6e=Kb,R6e=aP;function L6e(e){return E6e(function(t,n){var r=-1,l=n.length,i=l>1?n[l-1]:void 0,o=l>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(l--,i):void 0,o&&R6e(n[0],n[1],o)&&(i=l<3?void 0:i,l=1),t=Object(t);++rt?1:e>=t?0:NaN}function lP(e){let t=e,n=e;e.length===1&&(t=(o,a)=>e(o)-a,n=HAe(e));function r(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)<0?s=c+1:u=c}return s}function l(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)>0?u=c:s=c+1}return s}function i(o,a,s,u){s==null&&(s=0),u==null&&(u=o.length);const c=r(o,a,s,u-1);return c>s&&t(o[c-1],a)>-t(o[c],a)?c-1:c}return{left:r,center:i,right:l}}function HAe(e){return(t,n)=>MU(e(t),n)}function VAe(e){return e===null?NaN:+e}const GAe=lP(MU),YAe=GAe.right;lP(VAe).center;var Ek=Math.sqrt(50),Rk=Math.sqrt(10),Lk=Math.sqrt(2);function Ik(e,t,n){var r,l=-1,i,o,a;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0){let s=Math.round(e/a),u=Math.round(t/a);for(s*at&&--u,o=new Array(i=u-s+1);++lt&&--u,o=new Array(i=u-s+1);++l=0?(i>=Ek?10:i>=Rk?5:i>=Lk?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(i>=Ek?10:i>=Rk?5:i>=Lk?2:1)}function $k(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),l=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/l;return i>=Ek?l*=10:i>=Rk?l*=5:i>=Lk&&(l*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?C0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?C0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=QAe.exec(e))?new Yo(t[1],t[2],t[3],1):(t=JAe.exec(e))?new Yo(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=e8e.exec(e))?C0(t[1],t[2],t[3],t[4]):(t=t8e.exec(e))?C0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=n8e.exec(e))?e9(t[1],t[2]/100,t[3]/100,1):(t=r8e.exec(e))?e9(t[1],t[2]/100,t[3]/100,t[4]):YR.hasOwnProperty(e)?ZR(YR[e]):e==="transparent"?new Yo(NaN,NaN,NaN,0):null}function ZR(e){return new Yo(e>>16&255,e>>8&255,e&255,1)}function C0(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yo(e,t,n,r)}function o8e(e){return e instanceof pg||(e=Zu(e)),e?(e=e.rgb(),new Yo(e.r,e.g,e.b,e.opacity)):new Yo}function Qu(e,t,n,r){return arguments.length===1?o8e(e):new Yo(e,t,n,r??1)}function Yo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}uP(Yo,Qu,AU(pg,{brighter:function(e){return e=e==null?ky:Math.pow(ky,e),new Yo(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Pm:Math.pow(Pm,e),new Yo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:QR,formatHex:QR,formatRgb:JR,toString:JR}));function QR(){return"#"+tT(this.r)+tT(this.g)+tT(this.b)}function JR(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function tT(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function e9(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fl(e,t,n,r)}function DU(e){if(e instanceof fl)return new fl(e.h,e.s,e.l,e.opacity);if(e instanceof pg||(e=Zu(e)),!e)return new fl;if(e instanceof fl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,l=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,a=i-l,s=(i+l)/2;return a?(t===i?o=(n-r)/a+(n0&&s<1?0:o,new fl(o,a,s,e.opacity)}function i8e(e,t,n,r){return arguments.length===1?DU(e):new fl(e,t,n,r??1)}function fl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}uP(fl,i8e,AU(pg,{brighter:function(e){return e=e==null?ky:Math.pow(ky,e),new fl(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Pm:Math.pow(Pm,e),new fl(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,l=2*n-r;return new Yo(nT(e>=240?e-240:e+120,l,r),nT(e,l,r),nT(e<120?e+240:e-120,l,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function nT(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const cP=e=>()=>e;function l8e(e,t){return function(n){return e+n*t}}function s8e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function u8e(e){return(e=+e)==1?EU:function(t,n){return n-t?s8e(t,n,e):cP(isNaN(t)?n:t)}}function EU(e,t){var n=t-e;return n?l8e(e,n):cP(isNaN(e)?t:e)}const t9=function e(t){var n=u8e(t);function r(l,i){var o=n((l=Qu(l)).r,(i=Qu(i)).r),a=n(l.g,i.g),s=n(l.b,i.b),u=EU(l.opacity,i.opacity);return function(c){return l.r=o(c),l.g=a(c),l.b=s(c),l.opacity=u(c),l+""}}return r.gamma=e,r}(1);function c8e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),l;return function(i){for(l=0;ln&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:Sy(r,l)})),n=rT.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function _8e(e,t,n){var r=e[0],l=e[1],i=t[0],o=t[1];return l2?T8e:_8e,s=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(s||(s=a(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(l((u||(u=a(t,e.map(r),Sy)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,x8e),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=y8e,c()},d.clamp=function(f){return arguments.length?(o=f?!0:cd,c()):o!==cd},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,l=p,c()}}function LU(){return RU()(cd,cd)}function k8e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Cy(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Kd(e){return e=Cy(Math.abs(e)),e?e[1]:NaN}function S8e(e,t){return function(n,r){for(var l=n.length,i=[],o=0,a=e[0],s=0;l>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),i.push(n.substring(l-=a,l+a)),!((s+=a+1)>r));)a=e[o=(o+1)%e.length];return i.reverse().join(t)}}function C8e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var M8e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function My(e){if(!(t=M8e.exec(e)))throw new Error("invalid format: "+e);var t;return new pP({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}My.prototype=pP.prototype;function pP(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}pP.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function P8e(e){e:for(var t=e.length,n=1,r=-1,l;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(l+1):e}var IU;function O8e(e,t){var n=Cy(e,t);if(!n)return e+"";var r=n[0],l=n[1],i=l-(IU=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Cy(e,Math.max(0,t+i-1))[0]}function r9(e,t){var n=Cy(e,t);if(!n)return e+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}const a9={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:k8e,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return r9(e*100,t)},r:r9,s:O8e,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function o9(e){return e}var i9=Array.prototype.map,l9=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function A8e(e){var t=e.grouping===void 0||e.thousands===void 0?o9:S8e(i9.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",l=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?o9:C8e(i9.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(d){d=My(d);var f=d.fill,p=d.align,m=d.sign,g=d.symbol,b=d.zero,v=d.width,h=d.comma,y=d.precision,w=d.trim,_=d.type;_==="n"?(h=!0,_="g"):a9[_]||(y===void 0&&(y=12),w=!0,_="g"),(b||f==="0"&&p==="=")&&(b=!0,f="0",p="=");var x=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",T=g==="$"?r:/[%p]/.test(_)?o:"",k=a9[_],S=/[defgprs%]/.test(_);y=y===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function C(M){var O=x,D=T,P,E,I;if(_==="c")D=k(M)+D,M="";else{M=+M;var A=M<0||1/M<0;if(M=isNaN(M)?s:k(Math.abs(M),y),w&&(M=P8e(M)),A&&+M==0&&m!=="+"&&(A=!1),O=(A?m==="("?m:a:m==="-"||m==="("?"":m)+O,D=(_==="s"?l9[8+IU/3]:"")+D+(A&&m==="("?")":""),S){for(P=-1,E=M.length;++PI||I>57){D=(I===46?l+M.slice(P+1):M.slice(P))+D,M=M.slice(0,P);break}}}h&&!b&&(M=t(M,1/0));var F=O.length+M.length+D.length,j=F>1)+O+M+D+j.slice(F);break;default:M=j+O+M+D;break}return i(M)}return C.toString=function(){return d+""},C}function c(d,f){var p=u((d=My(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(Kd(f)/3)))*3,g=Math.pow(10,-m),b=l9[8+m/3];return function(v){return p(g*v)+b}}return{format:u,formatPrefix:c}}var M0,Pf,$U;D8e({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function D8e(e){return M0=A8e(e),Pf=M0.format,$U=M0.formatPrefix,M0}function E8e(e){return Math.max(0,-Kd(Math.abs(e)))}function R8e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Kd(t)/3)))*3-Kd(Math.abs(e)))}function L8e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Kd(t)-Kd(e))+1}function I8e(e,t,n,r){var l=$k(e,t,n),i;switch(r=My(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=R8e(l,o))&&(r.precision=i),$U(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=L8e(l,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=E8e(l))&&(r.precision=i-(r.type==="%")*2);break}}return Pf(r)}function $8e(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ik(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var l=t();return I8e(l[0],l[l.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),l=0,i=r.length-1,o=r[l],a=r[i],s,u,c=10;for(a0;){if(u=PU(o,a,n),u===s)return r[l]=o,r[i]=a,t(r);if(u>0)o=Math.floor(o/u)*u,a=Math.ceil(a/u)*u;else if(u<0)o=Math.ceil(o*u)/u,a=Math.floor(a*u)/u;else break;s=u}return e},e}function Ju(){var e=LU();return e.copy=function(){return fP(e,Ju())},Mf.apply(e,arguments),$8e(e)}function NU(e,t){e=e.slice();var n=0,r=e.length-1,l=e[n],i=e[r],o;return i0){for(;f<=p;++f)for(g=1,m=i(f);gc)break;h.push(b)}}else for(;f<=p;++f)for(g=r-1,m=i(f);g>=1;--g)if(b=m*g,!(bc)break;h.push(b)}h.length*20))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return aT.setTime(+i),oT.setTime(+o),e(aT),e(oT),Math.floor(n(aT,oT))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var Py=Wa(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Py.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Wa(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Py};Py.range;const Wl=1e3,yi=Wl*60,ql=yi*60,ec=ql*24,hP=ec*7,d9=ec*30,iT=ec*365;var Iu=Wa(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Wl)},function(e,t){return(t-e)/Wl},function(e){return e.getUTCSeconds()});Iu.range;var mP=Wa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wl)},function(e,t){e.setTime(+e+t*yi)},function(e,t){return(t-e)/yi},function(e){return e.getMinutes()});mP.range;var gP=Wa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wl-e.getMinutes()*yi)},function(e,t){e.setTime(+e+t*ql)},function(e,t){return(t-e)/ql},function(e){return e.getHours()});gP.range;var hg=Wa(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yi)/ec,e=>e.getDate()-1);hg.range;function bc(e){return Wa(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*yi)/hP})}var Qb=bc(0),Oy=bc(1),q8e=bc(2),U8e=bc(3),Zd=bc(4),H8e=bc(5),V8e=bc(6);Qb.range;Oy.range;q8e.range;U8e.range;Zd.range;H8e.range;V8e.range;var vP=Wa(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});vP.range;var as=Wa(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});as.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Wa(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};as.range;var yP=Wa(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*yi)},function(e,t){return(t-e)/yi},function(e){return e.getUTCMinutes()});yP.range;var bP=Wa(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ql)},function(e,t){return(t-e)/ql},function(e){return e.getUTCHours()});bP.range;var mg=Wa(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/ec},function(e){return e.getUTCDate()-1});mg.range;function xc(e){return Wa(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/hP})}var Jb=xc(0),Ay=xc(1),G8e=xc(2),Y8e=xc(3),Qd=xc(4),X8e=xc(5),K8e=xc(6);Jb.range;Ay.range;G8e.range;Y8e.range;Qd.range;X8e.range;K8e.range;var xP=Wa(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});xP.range;var os=Wa(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});os.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Wa(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};os.range;function jU(e,t,n,r,l,i){const o=[[Iu,1,Wl],[Iu,5,5*Wl],[Iu,15,15*Wl],[Iu,30,30*Wl],[i,1,yi],[i,5,5*yi],[i,15,15*yi],[i,30,30*yi],[l,1,ql],[l,3,3*ql],[l,6,6*ql],[l,12,12*ql],[r,1,ec],[r,2,2*ec],[n,1,hP],[t,1,d9],[t,3,3*d9],[e,1,iT]];function a(u,c,d){const f=cb).right(o,f);if(p===o.length)return e.every($k(u/iT,c/iT,d));if(p===0)return Py.every(Math.max($k(u,c,d),1));const[m,g]=o[f/o[p-1][2]53)return null;"w"in H||(H.w=1),"Z"in H?(G=sT(zp(H.y,0,1)),X=G.getUTCDay(),G=X>4||X===0?Ay.ceil(G):Ay(G),G=mg.offset(G,(H.V-1)*7),H.y=G.getUTCFullYear(),H.m=G.getUTCMonth(),H.d=G.getUTCDate()+(H.w+6)%7):(G=lT(zp(H.y,0,1)),X=G.getDay(),G=X>4||X===0?Oy.ceil(G):Oy(G),G=hg.offset(G,(H.V-1)*7),H.y=G.getFullYear(),H.m=G.getMonth(),H.d=G.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),X="Z"in H?sT(zp(H.y,0,1)).getUTCDay():lT(zp(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(X+5)%7:H.w+H.U*7-(X+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,sT(H)):lT(H)}}function k(V,te,ee,H){for(var Z=0,G=te.length,X=ee.length,Q,re;Z=X)return-1;if(Q=te.charCodeAt(Z++),Q===37){if(Q=te.charAt(Z++),re=_[Q in f9?te.charAt(Z++):Q],!re||(H=re(V,ee,H))<0)return-1}else if(Q!=ee.charCodeAt(H++))return-1}return H}function S(V,te,ee){var H=u.exec(te.slice(ee));return H?(V.p=c.get(H[0].toLowerCase()),ee+H[0].length):-1}function C(V,te,ee){var H=p.exec(te.slice(ee));return H?(V.w=m.get(H[0].toLowerCase()),ee+H[0].length):-1}function M(V,te,ee){var H=d.exec(te.slice(ee));return H?(V.w=f.get(H[0].toLowerCase()),ee+H[0].length):-1}function O(V,te,ee){var H=v.exec(te.slice(ee));return H?(V.m=h.get(H[0].toLowerCase()),ee+H[0].length):-1}function D(V,te,ee){var H=g.exec(te.slice(ee));return H?(V.m=b.get(H[0].toLowerCase()),ee+H[0].length):-1}function P(V,te,ee){return k(V,t,te,ee)}function E(V,te,ee){return k(V,n,te,ee)}function I(V,te,ee){return k(V,r,te,ee)}function A(V){return o[V.getDay()]}function F(V){return i[V.getDay()]}function j(V){return s[V.getMonth()]}function z(V){return a[V.getMonth()]}function B(V){return l[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function R(V){return o[V.getUTCDay()]}function q(V){return i[V.getUTCDay()]}function Y(V){return s[V.getUTCMonth()]}function L(V){return a[V.getUTCMonth()]}function W(V){return l[+(V.getUTCHours()>=12)]}function U(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=x(V+="",y);return te.toString=function(){return V},te},parse:function(V){var te=T(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=x(V+="",w);return te.toString=function(){return V},te},utcParse:function(V){var te=T(V+="",!0);return te.toString=function(){return V},te}}}var f9={"-":"",_:" ",0:"0"},qa=/^\s*\d+/,nDe=/^%/,rDe=/[\\^$*+?|[\]().{}]/g;function vr(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i[t.toLowerCase(),n]))}function oDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function iDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function lDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function sDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function uDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function p9(e,t,n){var r=qa.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function h9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function cDe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function dDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function fDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function m9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function pDe(e,t,n){var r=qa.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function g9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function hDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function mDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function gDe(e,t,n){var r=qa.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function vDe(e,t,n){var r=qa.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function yDe(e,t,n){var r=nDe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function bDe(e,t,n){var r=qa.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function xDe(e,t,n){var r=qa.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function v9(e,t){return vr(e.getDate(),t,2)}function wDe(e,t){return vr(e.getHours(),t,2)}function _De(e,t){return vr(e.getHours()%12||12,t,2)}function TDe(e,t){return vr(1+hg.count(as(e),e),t,3)}function zU(e,t){return vr(e.getMilliseconds(),t,3)}function kDe(e,t){return zU(e,t)+"000"}function SDe(e,t){return vr(e.getMonth()+1,t,2)}function CDe(e,t){return vr(e.getMinutes(),t,2)}function MDe(e,t){return vr(e.getSeconds(),t,2)}function PDe(e){var t=e.getDay();return t===0?7:t}function ODe(e,t){return vr(Qb.count(as(e)-1,e),t,2)}function BU(e){var t=e.getDay();return t>=4||t===0?Zd(e):Zd.ceil(e)}function ADe(e,t){return e=BU(e),vr(Zd.count(as(e),e)+(as(e).getDay()===4),t,2)}function DDe(e){return e.getDay()}function EDe(e,t){return vr(Oy.count(as(e)-1,e),t,2)}function RDe(e,t){return vr(e.getFullYear()%100,t,2)}function LDe(e,t){return e=BU(e),vr(e.getFullYear()%100,t,2)}function IDe(e,t){return vr(e.getFullYear()%1e4,t,4)}function $De(e,t){var n=e.getDay();return e=n>=4||n===0?Zd(e):Zd.ceil(e),vr(e.getFullYear()%1e4,t,4)}function NDe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+vr(t/60|0,"0",2)+vr(t%60,"0",2)}function y9(e,t){return vr(e.getUTCDate(),t,2)}function FDe(e,t){return vr(e.getUTCHours(),t,2)}function jDe(e,t){return vr(e.getUTCHours()%12||12,t,2)}function zDe(e,t){return vr(1+mg.count(os(e),e),t,3)}function WU(e,t){return vr(e.getUTCMilliseconds(),t,3)}function BDe(e,t){return WU(e,t)+"000"}function WDe(e,t){return vr(e.getUTCMonth()+1,t,2)}function qDe(e,t){return vr(e.getUTCMinutes(),t,2)}function UDe(e,t){return vr(e.getUTCSeconds(),t,2)}function HDe(e){var t=e.getUTCDay();return t===0?7:t}function VDe(e,t){return vr(Jb.count(os(e)-1,e),t,2)}function qU(e){var t=e.getUTCDay();return t>=4||t===0?Qd(e):Qd.ceil(e)}function GDe(e,t){return e=qU(e),vr(Qd.count(os(e),e)+(os(e).getUTCDay()===4),t,2)}function YDe(e){return e.getUTCDay()}function XDe(e,t){return vr(Ay.count(os(e)-1,e),t,2)}function KDe(e,t){return vr(e.getUTCFullYear()%100,t,2)}function ZDe(e,t){return e=qU(e),vr(e.getUTCFullYear()%100,t,2)}function QDe(e,t){return vr(e.getUTCFullYear()%1e4,t,4)}function JDe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Qd(e):Qd.ceil(e),vr(e.getUTCFullYear()%1e4,t,4)}function e7e(){return"+0000"}function b9(){return"%"}function x9(e){return+e}function w9(e){return Math.floor(+e/1e3)}var Wc,UU,HU;t7e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function t7e(e){return Wc=tDe(e),UU=Wc.format,Wc.parse,HU=Wc.utcFormat,Wc.utcParse,Wc}function n7e(e){return new Date(e)}function r7e(e){return e instanceof Date?+e:+new Date(+e)}function wP(e,t,n,r,l,i,o,a,s,u){var c=LU(),d=c.invert,f=c.domain,p=u(".%L"),m=u(":%S"),g=u("%I:%M"),b=u("%I %p"),v=u("%a %d"),h=u("%b %d"),y=u("%B"),w=u("%Y");function _(x){return(s(x)=1?(n=1,t-1):Math.floor(n*t),l=e[r],i=e[r+1],o=r>0?e[r-1]:2*l-i,a=rn&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:jk(r,l)})),n=uT.lastIndex;return n-1}var CP=B7e;function W7e(e,t,n){for(var r=-1,l=e==null?0:e.length;++r=K7e&&(i=X7e,o=!1,t=new U7e(t));e:for(;++lTu)if(!(Math.abs(c*a-s*u)>Tu)||!l)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-i,p=r-o,m=a*a+s*s,g=f*f+p*p,b=Math.sqrt(m),v=Math.sqrt(d),h=l*Math.tan((Bk-Math.acos((m+d-g)/(2*b*v)))/2),y=h/v,w=h/b;Math.abs(y-1)>Tu&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+l+","+l+",0,0,"+ +(c*f>u*p)+","+(this._x1=e+w*a)+","+(this._y1=t+w*s)}},arc:function(e,t,n,r,l,i){e=+e,t=+t,n=+n,i=!!i;var o=n*Math.cos(r),a=n*Math.sin(r),s=e+o,u=t+a,c=1^i,d=i?r-l:l-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+s+","+u:(Math.abs(this._x1-s)>Tu||Math.abs(this._y1-u)>Tu)&&(this._+="L"+s+","+u),n&&(d<0&&(d=d%Wk+Wk),d>aEe?this._+="A"+n+","+n+",0,1,"+c+","+(e-o)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=u):d>Tu&&(this._+="A"+n+","+n+",0,"+ +(d>=Bk)+","+c+","+(this._x1=e+n*Math.cos(l))+","+(this._y1=t+n*Math.sin(l))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function Za(e){return function(){return e}}var T9=1e-12;function rH(e){this._context=e}rH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function OP(e){return new rH(e)}function aH(e){return e[0]}function oH(e){return e[1]}function iH(){var e=aH,t=oH,n=Za(!0),r=null,l=OP,i=null;function o(a){var s,u=a.length,c,d=!1,f;for(r==null&&(i=l(f=PP())),s=0;s<=u;++s)!(s=f;--p)a.point(h[p],y[p]);a.lineEnd(),a.areaEnd()}b&&(h[d]=+e(g,d,c),y[d]=+n(g,d,c),a.point(t?+t(g,d,c):h[d],r?+r(g,d,c):y[d]))}if(v)return a=null,v+""||null}function u(){return iH().defined(l).curve(o).context(i)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Za(+c),t=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Za(+c),s):e},s.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:Za(+c),s):t},s.y=function(c){return arguments.length?(n=typeof c=="function"?c:Za(+c),r=null,s):n},s.y0=function(c){return arguments.length?(n=typeof c=="function"?c:Za(+c),s):n},s.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Za(+c),s):r},s.lineX0=s.lineY0=function(){return u().x(e).y(n)},s.lineY1=function(){return u().x(e).y(r)},s.lineX1=function(){return u().x(t).y(n)},s.defined=function(c){return arguments.length?(l=typeof c=="function"?c:Za(!!c),s):l},s.curve=function(c){return arguments.length?(o=c,i!=null&&(a=o(i)),s):o},s.context=function(c){return arguments.length?(c==null?i=a=null:a=o(i=c),s):i},s}var k9=Array.prototype.slice;function Ks(){}function Ey(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Mx(e){this._context=e}Mx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ey(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iEe(e){return new Mx(e)}function lH(e){this._context=e}lH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lEe(e){return new lH(e)}function sH(e){this._context=e}sH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function sEe(e){return new sH(e)}function uH(e,t){this._basis=new Mx(e),this._beta=t}uH.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],l=t[0],i=e[n]-r,o=t[n]-l,a=-1,s;++a<=n;)s=a/n,this._basis.point(this._beta*e[a]+(1-this._beta)*(r+s*i),this._beta*t[a]+(1-this._beta)*(l+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const uEe=function e(t){function n(r){return t===1?new Mx(r):new uH(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ry(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function AP(e,t){this._context=e,this._k=(1-t)/6}AP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ry(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ry(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const cEe=function e(t){function n(r){return new AP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function DP(e,t){this._context=e,this._k=(1-t)/6}DP.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ry(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const dEe=function e(t){function n(r){return new DP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function EP(e,t){this._context=e,this._k=(1-t)/6}EP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ry(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const fEe=function e(t){function n(r){return new EP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function RP(e,t,n){var r=e._x1,l=e._y1,i=e._x2,o=e._y2;if(e._l01_a>T9){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,l=(l*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>T9){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,l,i,o,e._x2,e._y2)}function cH(e,t){this._context=e,this._alpha=t}cH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:RP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pEe=function e(t){function n(r){return t?new cH(r,t):new AP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function dH(e,t){this._context=e,this._alpha=t}dH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:RP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const hEe=function e(t){function n(r){return t?new dH(r,t):new DP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function fH(e,t){this._context=e,this._alpha=t}fH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:RP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const mEe=function e(t){function n(r){return t?new fH(r,t):new EP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function pH(e){this._context=e}pH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function gEe(e){return new pH(e)}function S9(e){return e<0?-1:1}function C9(e,t,n){var r=e._x1-e._x0,l=t-e._x1,i=(e._y1-e._y0)/(r||l<0&&-0),o=(n-e._y1)/(l||r<0&&-0),a=(i*l+o*r)/(r+l);return(S9(i)+S9(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(a))||0}function M9(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function cT(e,t,n){var r=e._x0,l=e._y0,i=e._x1,o=e._y1,a=(i-r)/3;e._context.bezierCurveTo(r+a,l+a*t,i-a,o-a*n,i,o)}function Ly(e){this._context=e}Ly.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:cT(this,this._t0,M9(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,cT(this,M9(this,n=C9(this,e,t)),n);break;default:cT(this,this._t0,n=C9(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function hH(e){this._context=new mH(e)}(hH.prototype=Object.create(Ly.prototype)).point=function(e,t){Ly.prototype.point.call(this,t,e)};function mH(e){this._context=e}mH.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,l,i){this._context.bezierCurveTo(t,e,r,n,i,l)}};function vEe(e){return new Ly(e)}function yEe(e){return new hH(e)}function gH(e){this._context=e}gH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=P9(e),l=P9(t),i=0,o=1;o=0;--t)l[t]=(o[t]-l[t+1])/i[t];for(i[n-1]=(e[n]+l[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function xEe(e){return new Px(e,.5)}function wEe(e){return new Px(e,0)}function _Ee(e){return new Px(e,1)}function Jd(e,t){if((o=e.length)>1)for(var n=1,r,l,i=e[t[0]],o,a=i.length;n=0;)n[t]=t;return n}function TEe(e,t){return e[t]}function vH(){var e=Za([]),t=ef,n=Jd,r=TEe;function l(i){var o=e.apply(this,arguments),a,s=i.length,u=o.length,c=new Array(u),d;for(a=0;a0){for(var n,r,l=0,i=e[0].length,o;l0)for(var n,r=0,l,i,o,a,s,u=e[t[0]].length;r0?(l[0]=o,l[1]=o+=i):i<0?(l[1]=a,l[0]=a+=i):(l[0]=0,l[1]=i)}function SEe(e,t){if((l=e.length)>0){for(var n=0,r=e[t[0]],l,i=r.length;n0)||!((i=(l=e[t[0]]).length)>0))){for(var n=0,r=1,l,i,o;ri&&(i=l,n=t);return n}function yH(e){var t=e.map(bH);return ef(e).sort(function(n,r){return t[n]-t[r]})}function bH(e){for(var t=0,n=-1,r=e.length,l;++nh&&(h=u),x=b*b*_,y=Math.max(h/x,x/v),y>w){b-=u;break}w=y}o.push(s={value:b,dice:p1?r:1)},n}(xH);function REe(e,t,n,r,l){var i=e.children,o,a=i.length,s,u=new Array(a+1);for(u[0]=s=o=0;o=f-1){var h=i[d];h.x0=m,h.y0=g,h.x1=b,h.y1=v;return}for(var y=u[d],w=p/2+y,_=d+1,x=f-1;_>>1;u[T]v-g){var C=(m*S+b*k)/p;c(d,_,k,m,g,C,v),c(_,f,S,C,g,b,v)}else{var M=(g*S+v*k)/p;c(d,_,k,m,g,b,M),c(_,f,S,m,M,b,v)}}}function LEe(e,t,n,r,l){(e.depth&1?Ax:Ox)(e,t,n,r,l)}const IEe=function e(t){function n(r,l,i,o,a){if((s=r._squarify)&&s.ratio===t)for(var s,u,c,d,f=-1,p,m=s.length,g=r.value;++f1?r:1)},n}(xH);var dT=new Date,fT=new Date;function Ua(e,t,n,r){function l(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return l.floor=function(i){return e(i=new Date(+i)),i},l.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},l.round=function(i){var o=l(i),a=l.ceil(i);return i-o0))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return dT.setTime(+i),fT.setTime(+o),e(dT),e(fT),Math.floor(n(dT,fT))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var Am=Ua(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Am.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ua(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Am};Am.range;var Iy=1e3,tc=6e4,$y=36e5,_H=864e5,TH=6048e5,Uk=Ua(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Iy)},function(e,t){return(t-e)/Iy},function(e){return e.getUTCSeconds()});Uk.range;var kH=Ua(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Iy)},function(e,t){e.setTime(+e+t*tc)},function(e,t){return(t-e)/tc},function(e){return e.getMinutes()});kH.range;var SH=Ua(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Iy-e.getMinutes()*tc)},function(e,t){e.setTime(+e+t*$y)},function(e,t){return(t-e)/$y},function(e){return e.getHours()});SH.range;var Dx=Ua(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tc)/_H},function(e){return e.getDate()-1});Dx.range;function wc(e){return Ua(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*tc)/TH})}var Ny=wc(0),Dm=wc(1),CH=wc(2),MH=wc(3),nc=wc(4),PH=wc(5),OH=wc(6);Ny.range;Dm.range;CH.range;MH.range;nc.range;PH.range;OH.range;var AH=Ua(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});AH.range;var Zs=Ua(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Zs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ua(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};Zs.range;var DH=Ua(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*tc)},function(e,t){return(t-e)/tc},function(e){return e.getUTCMinutes()});DH.range;var EH=Ua(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*$y)},function(e,t){return(t-e)/$y},function(e){return e.getUTCHours()});EH.range;var Ex=Ua(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/_H},function(e){return e.getUTCDate()-1});Ex.range;function _c(e){return Ua(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/TH})}var Fy=_c(0),Em=_c(1),RH=_c(2),LH=_c(3),rc=_c(4),IH=_c(5),$H=_c(6);Fy.range;Em.range;RH.range;LH.range;rc.range;IH.range;$H.range;var NH=Ua(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});NH.range;var Qs=Ua(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Qs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ua(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};Qs.range;function pT(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function hT(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function qp(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function $Ee(e){var t=e.dateTime,n=e.date,r=e.time,l=e.periods,i=e.days,o=e.shortDays,a=e.months,s=e.shortMonths,u=Up(l),c=Hp(l),d=Up(i),f=Hp(i),p=Up(o),m=Hp(o),g=Up(a),b=Hp(a),v=Up(s),h=Hp(s),y={a:A,A:F,b:j,B:z,c:null,d:L9,e:L9,f:oRe,g:mRe,G:vRe,H:nRe,I:rRe,j:aRe,L:FH,m:iRe,M:lRe,p:B,q:N,Q:N9,s:F9,S:sRe,u:uRe,U:cRe,V:dRe,w:fRe,W:pRe,x:null,X:null,y:hRe,Y:gRe,Z:yRe,"%":$9},w={a:R,A:q,b:Y,B:L,c:null,d:I9,e:I9,f:_Re,g:ERe,G:LRe,H:bRe,I:xRe,j:wRe,L:zH,m:TRe,M:kRe,p:W,q:U,Q:N9,s:F9,S:SRe,u:CRe,U:MRe,V:PRe,w:ORe,W:ARe,x:null,X:null,y:DRe,Y:RRe,Z:IRe,"%":$9},_={a:C,A:M,b:O,B:D,c:P,d:E9,e:E9,f:QEe,g:D9,G:A9,H:R9,I:R9,j:YEe,L:ZEe,m:GEe,M:XEe,p:S,q:VEe,Q:eRe,s:tRe,S:KEe,u:BEe,U:WEe,V:qEe,w:zEe,W:UEe,x:E,X:I,y:D9,Y:A9,Z:HEe,"%":JEe};y.x=x(n,y),y.X=x(r,y),y.c=x(t,y),w.x=x(n,w),w.X=x(r,w),w.c=x(t,w);function x(V,te){return function(ee){var H=[],Z=-1,G=0,X=V.length,Q,re,ae;for(ee instanceof Date||(ee=new Date(+ee));++Z53)return null;"w"in H||(H.w=1),"Z"in H?(G=hT(qp(H.y,0,1)),X=G.getUTCDay(),G=X>4||X===0?Em.ceil(G):Em(G),G=Ex.offset(G,(H.V-1)*7),H.y=G.getUTCFullYear(),H.m=G.getUTCMonth(),H.d=G.getUTCDate()+(H.w+6)%7):(G=pT(qp(H.y,0,1)),X=G.getDay(),G=X>4||X===0?Dm.ceil(G):Dm(G),G=Dx.offset(G,(H.V-1)*7),H.y=G.getFullYear(),H.m=G.getMonth(),H.d=G.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),X="Z"in H?hT(qp(H.y,0,1)).getUTCDay():pT(qp(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(X+5)%7:H.w+H.U*7-(X+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,hT(H)):pT(H)}}function k(V,te,ee,H){for(var Z=0,G=te.length,X=ee.length,Q,re;Z=X)return-1;if(Q=te.charCodeAt(Z++),Q===37){if(Q=te.charAt(Z++),re=_[Q in O9?te.charAt(Z++):Q],!re||(H=re(V,ee,H))<0)return-1}else if(Q!=ee.charCodeAt(H++))return-1}return H}function S(V,te,ee){var H=u.exec(te.slice(ee));return H?(V.p=c[H[0].toLowerCase()],ee+H[0].length):-1}function C(V,te,ee){var H=p.exec(te.slice(ee));return H?(V.w=m[H[0].toLowerCase()],ee+H[0].length):-1}function M(V,te,ee){var H=d.exec(te.slice(ee));return H?(V.w=f[H[0].toLowerCase()],ee+H[0].length):-1}function O(V,te,ee){var H=v.exec(te.slice(ee));return H?(V.m=h[H[0].toLowerCase()],ee+H[0].length):-1}function D(V,te,ee){var H=g.exec(te.slice(ee));return H?(V.m=b[H[0].toLowerCase()],ee+H[0].length):-1}function P(V,te,ee){return k(V,t,te,ee)}function E(V,te,ee){return k(V,n,te,ee)}function I(V,te,ee){return k(V,r,te,ee)}function A(V){return o[V.getDay()]}function F(V){return i[V.getDay()]}function j(V){return s[V.getMonth()]}function z(V){return a[V.getMonth()]}function B(V){return l[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function R(V){return o[V.getUTCDay()]}function q(V){return i[V.getUTCDay()]}function Y(V){return s[V.getUTCMonth()]}function L(V){return a[V.getUTCMonth()]}function W(V){return l[+(V.getUTCHours()>=12)]}function U(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=x(V+="",y);return te.toString=function(){return V},te},parse:function(V){var te=T(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=x(V+="",w);return te.toString=function(){return V},te},utcParse:function(V){var te=T(V+="",!0);return te.toString=function(){return V},te}}}var O9={"-":"",_:" ",0:"0"},Ha=/^\s*\d+/,NEe=/^%/,FEe=/[\\^$*+?|[\]().{}]/g;function yr(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i68?1900:2e3),n+r[0].length):-1}function HEe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function VEe(e,t,n){var r=Ha.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function GEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function E9(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function YEe(e,t,n){var r=Ha.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function R9(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function XEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function KEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ZEe(e,t,n){var r=Ha.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function QEe(e,t,n){var r=Ha.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function JEe(e,t,n){var r=NEe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function eRe(e,t,n){var r=Ha.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function tRe(e,t,n){var r=Ha.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function L9(e,t){return yr(e.getDate(),t,2)}function nRe(e,t){return yr(e.getHours(),t,2)}function rRe(e,t){return yr(e.getHours()%12||12,t,2)}function aRe(e,t){return yr(1+Dx.count(Zs(e),e),t,3)}function FH(e,t){return yr(e.getMilliseconds(),t,3)}function oRe(e,t){return FH(e,t)+"000"}function iRe(e,t){return yr(e.getMonth()+1,t,2)}function lRe(e,t){return yr(e.getMinutes(),t,2)}function sRe(e,t){return yr(e.getSeconds(),t,2)}function uRe(e){var t=e.getDay();return t===0?7:t}function cRe(e,t){return yr(Ny.count(Zs(e)-1,e),t,2)}function jH(e){var t=e.getDay();return t>=4||t===0?nc(e):nc.ceil(e)}function dRe(e,t){return e=jH(e),yr(nc.count(Zs(e),e)+(Zs(e).getDay()===4),t,2)}function fRe(e){return e.getDay()}function pRe(e,t){return yr(Dm.count(Zs(e)-1,e),t,2)}function hRe(e,t){return yr(e.getFullYear()%100,t,2)}function mRe(e,t){return e=jH(e),yr(e.getFullYear()%100,t,2)}function gRe(e,t){return yr(e.getFullYear()%1e4,t,4)}function vRe(e,t){var n=e.getDay();return e=n>=4||n===0?nc(e):nc.ceil(e),yr(e.getFullYear()%1e4,t,4)}function yRe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yr(t/60|0,"0",2)+yr(t%60,"0",2)}function I9(e,t){return yr(e.getUTCDate(),t,2)}function bRe(e,t){return yr(e.getUTCHours(),t,2)}function xRe(e,t){return yr(e.getUTCHours()%12||12,t,2)}function wRe(e,t){return yr(1+Ex.count(Qs(e),e),t,3)}function zH(e,t){return yr(e.getUTCMilliseconds(),t,3)}function _Re(e,t){return zH(e,t)+"000"}function TRe(e,t){return yr(e.getUTCMonth()+1,t,2)}function kRe(e,t){return yr(e.getUTCMinutes(),t,2)}function SRe(e,t){return yr(e.getUTCSeconds(),t,2)}function CRe(e){var t=e.getUTCDay();return t===0?7:t}function MRe(e,t){return yr(Fy.count(Qs(e)-1,e),t,2)}function BH(e){var t=e.getUTCDay();return t>=4||t===0?rc(e):rc.ceil(e)}function PRe(e,t){return e=BH(e),yr(rc.count(Qs(e),e)+(Qs(e).getUTCDay()===4),t,2)}function ORe(e){return e.getUTCDay()}function ARe(e,t){return yr(Em.count(Qs(e)-1,e),t,2)}function DRe(e,t){return yr(e.getUTCFullYear()%100,t,2)}function ERe(e,t){return e=BH(e),yr(e.getUTCFullYear()%100,t,2)}function RRe(e,t){return yr(e.getUTCFullYear()%1e4,t,4)}function LRe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?rc(e):rc.ceil(e),yr(e.getUTCFullYear()%1e4,t,4)}function IRe(){return"+0000"}function $9(){return"%"}function N9(e){return+e}function F9(e){return Math.floor(+e/1e3)}var qc,IP,WH,qH;$Re({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function $Re(e){return qc=$Ee(e),IP=qc.format,WH=qc.parse,qc.utcFormat,qH=qc.utcParse,qc}var Vp={},Gp={},j9;function NRe(){if(j9)return Gp;j9=1,Gp.__esModule=!0,Gp.default=void 0;var e=function(r){if(typeof r=="string")return r;if(r)return r.displayName||r.name||"Component"},t=e;return Gp.default=t,Gp}var z9;function Of(){if(z9)return Vp;z9=1;var e=Cn;Vp.__esModule=!0,Vp.default=void 0;var t=e(NRe()),n=function(i,o){return o+"("+(0,t.default)(i)+")"},r=n;return Vp.default=r,Vp}var ps={},Yp={},B9;function UH(){if(B9)return Yp;B9=1,Yp.__esModule=!0,Yp.default=void 0;var e=function(r,l){return function(i){return i[r]=l,i}},t=e;return Yp.default=t,Yp}var FRe=Cn;ps.__esModule=!0;var $P=ps.default=void 0,jRe=FRe(UH()),zRe=function(t){return(0,jRe.default)("displayName",t)},BRe=zRe;$P=ps.default=BRe;var Xp={},W9;function WRe(){if(W9)return Xp;W9=1;var e=Cn;Xp.__esModule=!0,Xp.default=void 0;var t=ge;e(ps),e(Of());var n=function(i){return function(o){var a=(0,t.createFactory)(o),s=function(c){return a(i(c))};return s}},r=n;return Xp.default=r,Xp}var Rx=Cn;Rx(Ir());Rx(Of());Rx(ps);Rx(WRe());function qRe(e,t){for(var n=-1,r=e==null?0:e.length;++na))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=n&XRe?new HRe:void 0;for(i.set(e,t),i.set(t,e);++d1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(r$e,`{ +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=rV,t.componentWillReceiveProps=aV),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=oV;var a=t.componentDidUpdate;t.componentDidUpdate=function(u,c,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;a.call(this,u,c,f)}}return e}const zLe=Object.freeze(Object.defineProperty({__proto__:null,polyfill:jLe},Symbol.toStringTag,{value:"Module"})),BLe=Qn(zLe);var Kp={},lL;function WLe(){if(lL)return Kp;lL=1,Kp.__esModule=!0,Kp.default=void 0;var e=function(r,l){for(var i={},o=0;o1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(e$e,`{ /* [wrapped with `+t+`] */ -`)}var o$e=a$e;function i$e(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&h.reverse(),c&&s0&&n(a)?t>1?kV(a,t-1,n,r,l):IFe(l,a):r||(l[l.length]=a)}return l}var HP=kV,NFe=HP;function FFe(e){var t=e==null?0:e.length;return t?NFe(e,1):[]}var jFe=FFe,zFe=jFe,BFe=wU,WFe=rP;function qFe(e){return WFe(BFe(e,void 0,zFe),e+"")}var SV=qFe,UFe=AFe,HFe=SV,VFe=HFe(function(e,t){return e==null?{}:UFe(e,t)}),GFe=VFe;const YFe=lr(GFe);var Nu=function(){};function oc(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return ge.useMemo(function(){var l=wje({},Zk,r);return{margin:l,innerWidth:t-l.left-l.right,innerHeight:n-l.top-l.bottom,outerWidth:t,outerHeight:n}},[t,n,r.top,r.right,r.bottom,r.left])},Tje=function(t){return ge.useMemo(function(){return PV(MV,t)},[t])},kje=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?IP(t.slice("5")):Of(t):function(n){return n}},Lm=function(t){return ge.useMemo(function(){return kje(t)},[t])},GP=ge.createContext(),Sje={},DV=function(t){var n=t.theme,r=n===void 0?Sje:n,l=t.children,i=Tje(r);return Qe.createElement(GP.Provider,{value:i},l)};DV.propTypes={children:le.node.isRequired,theme:le.object};var ka=function(){return ge.useContext(GP)};function iv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?iv=function(n){return typeof n}:iv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},iv(e)}function Qk(){return Qk=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function Oje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aje(e,t){for(var n=0;n"u"||s[u].value!==this.newInters[u].value)&&(this.newInters[u]=s[u],this.stepValues[u]=this.currentStepValues[u]+1,this.stepInterpolators[u]=this.newInters[u].interpolator(this.oldValues[u],this.newInters[u].value)),s[u]=zn(this.stepValues[u],this.newInters[u].config));return Qe.createElement(rs,Qk({},a,{style:s}),function(c){var d={};for(var f in c)if(r.stepValues[f]){r.currentStepValues[f]=c[f];var p=r.currentStepValues[f]-r.stepValues[f]+1;r.oldValues[f]=d[f]=r.stepInterpolators[f](p)}return o(Cje({},c,d))})}}]),t}(ge.PureComponent);Mu(Bx,"propTypes",{children:le.func.isRequired,style:le.func.isRequired});var EV=ge.createContext(),Wx=function(t){var n=t.children,r=t.animate,l=t.stiffness,i=t.damping,o=ge.useMemo(function(){return{animate:r,springConfig:{stiffness:l,damping:i}}},[r,l,i]);return Qe.createElement(EV.Provider,{value:o},n)};Wx.propTypes={children:le.node.isRequired,animate:le.bool.isRequired,stiffness:le.number.isRequired,damping:le.number.isRequired};Wx.defaultProps={animate:!0,stiffness:90,damping:15};var Bo=function(){return ge.useContext(EV)};function Ije(e){for(var t=1;t0&&o>0;return Qe.createElement(km,{bounds:!0,onResize:function(u){r.setState({dimensions:u.bounds})}},function(s){var u=s.measureRef;return Qe.createElement("div",{ref:u,style:{width:"100%",height:"100%"}},a&&r.props.children({width:i,height:o}))})}}]),t}(ge.Component);LV(Ux,"propTypes",{children:le.func.isRequired});var IV=function(t){var n=t.id,r=t.colors;return Qe.createElement("linearGradient",{id:n,x1:0,x2:0,y1:0,y2:1},r.map(function(l){var i=l.offset,o=l.color,a=l.opacity;return Qe.createElement("stop",{key:i,offset:"".concat(i,"%"),stopColor:o,stopOpacity:a!==void 0?a:1})}))};IV.propTypes={id:le.string.isRequired,colors:le.arrayOf(le.shape({offset:le.number.isRequired,color:le.string.isRequired})).isRequired};var $V={linearGradient:IV},Hx=ge.memo(function(e){var t=e.id,n=e.background,r=e.color,l=e.size,i=e.padding,o=e.stagger,a=l+i,s=l/2,u=i/2;return o===!0&&(a=l*2+i*2),Qe.createElement("pattern",{id:t,width:a,height:a,patternUnits:"userSpaceOnUse"},Qe.createElement("rect",{width:a,height:a,fill:n}),Qe.createElement("circle",{cx:u+s,cy:u+s,r:s,fill:r}),o&&Qe.createElement("circle",{cx:i*1.5+l+s,cy:i*1.5+l+s,r:s,fill:r}))});Hx.displayName="PatternDots";Hx.propTypes={id:le.string.isRequired,color:le.string.isRequired,background:le.string.isRequired,size:le.number.isRequired,padding:le.number.isRequired,stagger:le.bool.isRequired};Hx.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var rS=function(t){return t*Math.PI/180},Yje=function(t){return 180*t/Math.PI},Xje=function(t,n){return{x:Math.cos(t)*n,y:Math.sin(t)*n}},Kje=function(t){var n=t%360;return n<0&&(n+=360),n},Zje={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Vx=ge.memo(function(e){var t=e.id,n=e.spacing,r=e.rotation,l=e.background,i=e.color,o=e.lineWidth,a=Math.round(r)%360,s=Math.abs(n);a>180?a=a-360:a>90?a=a-180:a<-180?a=a+360:a<-90&&(a=a+180);var u=s,c=s,d;return a===0?d=` +`)}var n$e=t$e;function r$e(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&h.reverse(),c&&s0&&n(a)?t>1?TV(a,t-1,n,r,l):EFe(l,a):r||(l[l.length]=a)}return l}var HP=TV,LFe=HP;function IFe(e){var t=e==null?0:e.length;return t?LFe(e,1):[]}var $Fe=IFe,NFe=$Fe,FFe=xU,jFe=rP;function zFe(e){return jFe(FFe(e,void 0,NFe),e+"")}var kV=zFe,BFe=MFe,WFe=kV,qFe=WFe(function(e,t){return e==null?{}:BFe(e,t)}),UFe=qFe;const HFe=lr(UFe);var $u=function(){};function ac(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return ge.useMemo(function(){var l=yje({},Zk,r);return{margin:l,innerWidth:t-l.left-l.right,innerHeight:n-l.top-l.bottom,outerWidth:t,outerHeight:n}},[t,n,r.top,r.right,r.bottom,r.left])},xje=function(t){return ge.useMemo(function(){return MV(CV,t)},[t])},wje=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?IP(t.slice("5")):Pf(t):function(n){return n}},Rm=function(t){return ge.useMemo(function(){return wje(t)},[t])},GP=ge.createContext(),_je={},AV=function(t){var n=t.theme,r=n===void 0?_je:n,l=t.children,i=xje(r);return Qe.createElement(GP.Provider,{value:i},l)};AV.propTypes={children:le.node.isRequired,theme:le.object};var ka=function(){return ge.useContext(GP)};function iv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?iv=function(n){return typeof n}:iv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},iv(e)}function Qk(){return Qk=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function Cje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mje(e,t){for(var n=0;n"u"||s[u].value!==this.newInters[u].value)&&(this.newInters[u]=s[u],this.stepValues[u]=this.currentStepValues[u]+1,this.stepInterpolators[u]=this.newInters[u].interpolator(this.oldValues[u],this.newInters[u].value)),s[u]=zn(this.stepValues[u],this.newInters[u].config));return Qe.createElement(rs,Qk({},a,{style:s}),function(c){var d={};for(var f in c)if(r.stepValues[f]){r.currentStepValues[f]=c[f];var p=r.currentStepValues[f]-r.stepValues[f]+1;r.oldValues[f]=d[f]=r.stepInterpolators[f](p)}return o(Tje({},c,d))})}}]),t}(ge.PureComponent);Cu(zx,"propTypes",{children:le.func.isRequired,style:le.func.isRequired});var DV=ge.createContext(),Bx=function(t){var n=t.children,r=t.animate,l=t.stiffness,i=t.damping,o=ge.useMemo(function(){return{animate:r,springConfig:{stiffness:l,damping:i}}},[r,l,i]);return Qe.createElement(DV.Provider,{value:o},n)};Bx.propTypes={children:le.node.isRequired,animate:le.bool.isRequired,stiffness:le.number.isRequired,damping:le.number.isRequired};Bx.defaultProps={animate:!0,stiffness:90,damping:15};var Bo=function(){return ge.useContext(DV)};function Eje(e){for(var t=1;t0&&o>0;return Qe.createElement(Tm,{bounds:!0,onResize:function(u){r.setState({dimensions:u.bounds})}},function(s){var u=s.measureRef;return Qe.createElement("div",{ref:u,style:{width:"100%",height:"100%"}},a&&r.props.children({width:i,height:o}))})}}]),t}(ge.Component);RV(qx,"propTypes",{children:le.func.isRequired});var LV=function(t){var n=t.id,r=t.colors;return Qe.createElement("linearGradient",{id:n,x1:0,x2:0,y1:0,y2:1},r.map(function(l){var i=l.offset,o=l.color,a=l.opacity;return Qe.createElement("stop",{key:i,offset:"".concat(i,"%"),stopColor:o,stopOpacity:a!==void 0?a:1})}))};LV.propTypes={id:le.string.isRequired,colors:le.arrayOf(le.shape({offset:le.number.isRequired,color:le.string.isRequired})).isRequired};var IV={linearGradient:LV},Ux=ge.memo(function(e){var t=e.id,n=e.background,r=e.color,l=e.size,i=e.padding,o=e.stagger,a=l+i,s=l/2,u=i/2;return o===!0&&(a=l*2+i*2),Qe.createElement("pattern",{id:t,width:a,height:a,patternUnits:"userSpaceOnUse"},Qe.createElement("rect",{width:a,height:a,fill:n}),Qe.createElement("circle",{cx:u+s,cy:u+s,r:s,fill:r}),o&&Qe.createElement("circle",{cx:i*1.5+l+s,cy:i*1.5+l+s,r:s,fill:r}))});Ux.displayName="PatternDots";Ux.propTypes={id:le.string.isRequired,color:le.string.isRequired,background:le.string.isRequired,size:le.number.isRequired,padding:le.number.isRequired,stagger:le.bool.isRequired};Ux.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var rS=function(t){return t*Math.PI/180},Hje=function(t){return 180*t/Math.PI},Vje=function(t,n){return{x:Math.cos(t)*n,y:Math.sin(t)*n}},Gje=function(t){var n=t%360;return n<0&&(n+=360),n},Yje={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Hx=ge.memo(function(e){var t=e.id,n=e.spacing,r=e.rotation,l=e.background,i=e.color,o=e.lineWidth,a=Math.round(r)%360,s=Math.abs(n);a>180?a=a-360:a>90?a=a-180:a<-180?a=a+360:a<-90&&(a=a+180);var u=s,c=s,d;return a===0?d=` M 0 0 L `.concat(u,` 0 M 0 `).concat(c," L ").concat(u," ").concat(c,` `):a===90?d=` @@ -560,29 +560,29 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat M `.concat(-u," ").concat(c," L ").concat(u," ").concat(-c,` M `).concat(-u," ").concat(c*2," L ").concat(u*2," ").concat(-c,` M 0 `).concat(c*2," L ").concat(u*2,` 0 - `)),Qe.createElement("pattern",{id:t,width:u,height:c,patternUnits:"userSpaceOnUse"},Qe.createElement("rect",{width:u,height:c,fill:l,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),Qe.createElement("path",{d,strokeWidth:o,stroke:i,strokeLinecap:"square"}))});Vx.displayName="PatternLines";Vx.propTypes={id:le.string.isRequired,spacing:le.number.isRequired,rotation:le.number.isRequired,background:le.string.isRequired,color:le.string.isRequired,lineWidth:le.number.isRequired};Vx.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var Gx=ge.memo(function(e){var t=e.id,n=e.background,r=e.color,l=e.size,i=e.padding,o=e.stagger,a=l+i,s=i/2;return o===!0&&(a=l*2+i*2),Qe.createElement("pattern",{id:t,width:a,height:a,patternUnits:"userSpaceOnUse"},Qe.createElement("rect",{width:a,height:a,fill:n}),Qe.createElement("rect",{x:s,y:s,width:l,height:l,fill:r}),o&&Qe.createElement("rect",{x:i*1.5+l,y:i*1.5+l,width:l,height:l,fill:r}))});Gx.displayName="PatternSquares";Gx.propTypes={id:le.string.isRequired,color:le.string.isRequired,background:le.string.isRequired,size:le.number.isRequired,padding:le.number.isRequired,stagger:le.bool.isRequired};Gx.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var NV={patternDots:Hx,patternLines:Vx,patternSquares:Gx};function Qje(e,t){if(e==null)return{};var n=Jje(e,t),r,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function FV(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,n=t===void 0?"theme":t,r=e.destKey,l=r===void 0?"theme":r;return kc($x(IL({},n,le.object)),so([n],function(i){return IL({},l,PV(MV,i[n]))}))};function sv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sv=function(n){return typeof n}:sv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sv(e)}function sze(e,t){if(e==null)return{};var n=uze(e,t),r,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uze(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function cze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dze(e,t){for(var n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=l.dataKey,o=l.colorKey,a=o===void 0?"color":o,s=l.targetKey,u=s===void 0?"fill":s,c=[],d={};return t.length&&n.length&&(c=yze(t),n.forEach(function(f){for(var p=function(v){var h=r[v],y=h.id,w=h.match;if(kze(w,f,i)){var _=t.find(function(P){var E=P.id;return E===y});if(_){if(Tze.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var x=Hs(f,a),T=_.background,k=_.color,S=y;_.background==="inherit"&&(S="".concat(S,".bg.").concat(x),T=x),_.color==="inherit"&&(S="".concat(S,".fg.").concat(x),k=x),Lu(f,u,"url(#".concat(S,")")),d[S]||(c.push(kT({},_,{id:S,background:T,color:k})),d[S]=1)}else Lu(f,u,"url(#".concat(y,")"));else if(_ze.includes(_.type)){var C=_.colors.map(function(P){var E=P.color;return E});if(C.includes("inherit")){var M=Hs(f,a),O=y,D=kT({},_,{colors:_.colors.map(function(P,E){return P.color!=="inherit"?P:(O="".concat(O,".").concat(E,".").concat(M),kT({},P,{color:P.color==="inherit"?M:P.color}))})});D.id=O,Lu(f,u,"url(#".concat(O,")")),d[O]||(c.push(D),d[O]=1)}else Lu(f,u,"url(#".concat(y,")"))}}return"break"}},m=0;m-1}function eBe(e,t){var n=this.__data__,r=Xx(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Rf.prototype.clear=Kze;Rf.prototype.delete=Zze;Rf.prototype.get=Qze;Rf.prototype.has=Jze;Rf.prototype.set=eBe;function Cc(e){var t=-1,n=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var s=Iu(uv[t.scheme][t.size||11]),u=function(p){return s(r(p))};return u.scale=s,u}if(zBe(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var c=Iu(uv[t.scheme][t.size||9]),d=function(p){return c(r(p))};return d.scale=c,d}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},sG=function(t,n){return ge.useMemo(function(){return lG(t,n)},[t,n])};function WBe(e,t){return HBe(e)||UBe(e,t)||qBe()}function qBe(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function UBe(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var n=[],r=!0,l=!1,i=void 0;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(s){l=!0,i=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(l)throw i}}return n}}function HBe(e){if(Array.isArray(e))return e}var cv=function(t,n){if(typeof t=="function")return function(f){return t(f)};if(rG(t)){if(t.theme!==void 0){if(n===void 0)throw new Error("Unable to use color from theme as no theme was provided");var r=qy(n,t.theme);if(r===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return r}}if(t.from!==void 0){var l=function(p){return qy(p,t.from)};if(Array.isArray(t.modifiers)){var i=[],o=!0,a=!1,s=void 0;try{for(var u=function(){var p=d.value,m=WBe(p,2),g=m[0],b=m[1];if(g==="brighter")i.push(function(v){return v.brighter(b)});else if(g==="darker")i.push(function(v){return v.darker(b)});else if(g==="opacity")i.push(function(v){return v.opacity=b,v});else throw new Error("Invalid color modifier: '".concat(g,"', must be one of: 'brighter', 'darker', 'opacity'"))},c=t.modifiers[Symbol.iterator](),d;!(o=(d=c.next()).done);o=!0)u()}catch(f){a=!0,s=f}finally{try{!o&&c.return!=null&&c.return()}finally{if(a)throw s}}return i.length===0?l:function(f){return i.reduce(function(p,m){return m(p)},Ju(l(f))).toString()}}return l}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},Uy=function(t,n){return ge.useMemo(function(){return cv(t,n)},[t,n])},n4=le.oneOfType([le.func,le.arrayOf(le.string),le.shape({scheme:le.oneOf(BBe).isRequired,size:le.number}),le.shape({datum:le.string.isRequired}),le.string]),VBe=le.oneOfType([le.func,le.string]),CT=le.oneOfType([le.string,le.func,le.shape({theme:le.string.isRequired}),le.shape({from:le.string.isRequired,modifiers:le.arrayOf(le.array)})]),GBe=fs,YBe=oi,XBe="[object Number]";function KBe(e){return typeof e=="number"||YBe(e)&&GBe(e)==XBe}var ZBe=KBe;const Zx=lr(ZBe);function QBe(e){for(var t=1;t0?(v=f.align.right,h=f.baseline.center):(l==="after"&&s>0||l==="before"&&s<0)&&(v=f.align.left,h=f.baseline.center)):(b=function(_){return{x:0,y:p(_)}},m.lineX=o*(l==="after"?1:-1),g.textX=(o+a)*(l==="after"?1:-1),l==="after"?v=f.align.left:v=f.align.right);var y=d.map(function(w){return QBe({key:w,value:w},b(w),m,g)});return{ticks:y,textAlign:v,textBaseline:h}},pG=function(t,n){if(!t||typeof t=="function")return t;if(n.type==="time"){var r=IP(t);return function(l){return r(new Date(l))}}return Of(t)},sS=function(t){var n=t.width,r=t.height,l=t.scale,i=t.axis,o=t.values,a=Array.isArray(o)?o:void 0,s=Zx(o)?o:void 0,u=a||dG(l,s),c=l.bandwidth?uG(l):l,d;return i==="x"?d=u.map(function(f){return{key:"".concat(f),x1:c(f),x2:c(f),y1:0,y2:r}}):i==="y"&&(d=u.map(function(f){return{key:"".concat(f),x1:0,x2:n,y1:c(f),y2:c(f)}})),d},hG={ticksPosition:le.oneOf(["before","after"]),tickValues:le.oneOfType([le.number,le.arrayOf(le.oneOfType([le.number,le.string,le.instanceOf(Date)])),le.string]),tickSize:le.number,tickPadding:le.number,tickRotation:le.number,format:le.oneOfType([le.func,le.string]),renderTick:le.func,legend:le.node,legendPosition:le.oneOf(["start","middle","end"]),legendOffset:le.number},co=le.shape(hG);function uS(){return uS=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=k.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(r==="x"?u:0,r==="x"?0:u),t.stroke()),C.forEach(function(A){k.axis.ticks.line.strokeWidth>0&&(t.lineWidth=k.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.ticks.line.stroke,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(A.x+A.lineX,A.y+A.lineY),t.stroke());var F=h!==void 0?h(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(WL(v)),t.fillStyle=k.axis.ticks.text.fill,t.fillText(F,0,0),t.restore()}),y!==void 0){var D=0,P=0,E=0,I;r==="y"?(E=-90,D=T,_==="start"?(I="start",P=u):_==="middle"?(I="center",P=u/2):_==="end"&&(I="end")):(P=T,_==="start"?I="start":_==="middle"?(I="center",D=u/2):_==="end"&&(I="end",D=u)),t.translate(D,P),t.rotate(WL(E)),t.font="".concat(k.axis.legend.text.fontWeight?"".concat(k.axis.legend.text.fontWeight," "):"").concat(k.axis.legend.text.fontSize,"px ").concat(k.axis.legend.text.fontFamily),t.fillStyle=k.axis.legend.text.fill,t.textAlign=I,t.textBaseline="middle",t.fillText(y,0,0)}t.restore()},fWe=["top","right","bottom","left"],s4=function(t,n){var r=n.xScale,l=n.yScale,i=n.width,o=n.height,a=n.top,s=n.right,u=n.bottom,c=n.left,d=n.theme,f={top:a,right:s,bottom:u,left:c};fWe.forEach(function(p){var m=f[p];if(!m)return null;var g=p==="top"||p==="bottom",b=p==="top"||p==="left"?"before":"after",v=g?r:l,h=pG(m.format,v);dWe(t,uWe({},m,{axis:g?"x":"y",x:p==="right"?i:0,y:p==="bottom"?o:0,scale:v,format:h,length:g?i:o,ticksPosition:b,theme:d}))})},nf=function(t,n){var r=n.width,l=n.height,i=n.scale,o=n.axis,a=n.values,s=sS({width:r,height:l,scale:i,axis:o,values:a});s.forEach(function(u){t.beginPath(),t.moveTo(u.x1,u.y1),t.lineTo(u.x2,u.y2),t.stroke()})},Qx="row",Jx="column",u4="top",c4="top-right",d4="right",f4="bottom-right",p4="bottom",h4="bottom-left",m4="left",yG="top-left",g4="center",e2="left-to-right",t2="right-to-left",n2="top-to-bottom",r2="bottom-to-top";function pWe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function NV(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,n=t===void 0?"theme":t,r=e.destKey,l=r===void 0?"theme":r;return Tc(Ix(IL({},n,le.object)),so([n],function(i){return IL({},l,MV(CV,i[n]))}))};function sv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sv=function(n){return typeof n}:sv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sv(e)}function oze(e,t){if(e==null)return{};var n=ize(e,t),r,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ize(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function lze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sze(e,t){for(var n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=l.dataKey,o=l.colorKey,a=o===void 0?"color":o,s=l.targetKey,u=s===void 0?"fill":s,c=[],d={};return t.length&&n.length&&(c=mze(t),n.forEach(function(f){for(var p=function(v){var h=r[v],y=h.id,w=h.match;if(wze(w,f,i)){var _=t.find(function(P){var E=P.id;return E===y});if(_){if(xze.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var x=Hs(f,a),T=_.background,k=_.color,S=y;_.background==="inherit"&&(S="".concat(S,".bg.").concat(x),T=x),_.color==="inherit"&&(S="".concat(S,".fg.").concat(x),k=x),Ru(f,u,"url(#".concat(S,")")),d[S]||(c.push(TT({},_,{id:S,background:T,color:k})),d[S]=1)}else Ru(f,u,"url(#".concat(y,")"));else if(bze.includes(_.type)){var C=_.colors.map(function(P){var E=P.color;return E});if(C.includes("inherit")){var M=Hs(f,a),O=y,D=TT({},_,{colors:_.colors.map(function(P,E){return P.color!=="inherit"?P:(O="".concat(O,".").concat(E,".").concat(M),TT({},P,{color:P.color==="inherit"?M:P.color}))})});D.id=O,Ru(f,u,"url(#".concat(O,")")),d[O]||(c.push(D),d[O]=1)}else Ru(f,u,"url(#".concat(y,")"))}}return"break"}},m=0;m-1}function Zze(e,t){var n=this.__data__,r=Yx(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Ef.prototype.clear=Gze;Ef.prototype.delete=Yze;Ef.prototype.get=Xze;Ef.prototype.has=Kze;Ef.prototype.set=Zze;function Sc(e){var t=-1,n=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var s=Lu(uv[t.scheme][t.size||11]),u=function(p){return s(r(p))};return u.scale=s,u}if(NBe(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var c=Lu(uv[t.scheme][t.size||9]),d=function(p){return c(r(p))};return d.scale=c,d}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},lG=function(t,n){return ge.useMemo(function(){return iG(t,n)},[t,n])};function jBe(e,t){return WBe(e)||BBe(e,t)||zBe()}function zBe(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function BBe(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var n=[],r=!0,l=!1,i=void 0;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(s){l=!0,i=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(l)throw i}}return n}}function WBe(e){if(Array.isArray(e))return e}var cv=function(t,n){if(typeof t=="function")return function(f){return t(f)};if(nG(t)){if(t.theme!==void 0){if(n===void 0)throw new Error("Unable to use color from theme as no theme was provided");var r=Wy(n,t.theme);if(r===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return r}}if(t.from!==void 0){var l=function(p){return Wy(p,t.from)};if(Array.isArray(t.modifiers)){var i=[],o=!0,a=!1,s=void 0;try{for(var u=function(){var p=d.value,m=jBe(p,2),g=m[0],b=m[1];if(g==="brighter")i.push(function(v){return v.brighter(b)});else if(g==="darker")i.push(function(v){return v.darker(b)});else if(g==="opacity")i.push(function(v){return v.opacity=b,v});else throw new Error("Invalid color modifier: '".concat(g,"', must be one of: 'brighter', 'darker', 'opacity'"))},c=t.modifiers[Symbol.iterator](),d;!(o=(d=c.next()).done);o=!0)u()}catch(f){a=!0,s=f}finally{try{!o&&c.return!=null&&c.return()}finally{if(a)throw s}}return i.length===0?l:function(f){return i.reduce(function(p,m){return m(p)},Qu(l(f))).toString()}}return l}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},qy=function(t,n){return ge.useMemo(function(){return cv(t,n)},[t,n])},n4=le.oneOfType([le.func,le.arrayOf(le.string),le.shape({scheme:le.oneOf(FBe).isRequired,size:le.number}),le.shape({datum:le.string.isRequired}),le.string]),qBe=le.oneOfType([le.func,le.string]),ST=le.oneOfType([le.string,le.func,le.shape({theme:le.string.isRequired}),le.shape({from:le.string.isRequired,modifiers:le.arrayOf(le.array)})]),UBe=fs,HBe=oi,VBe="[object Number]";function GBe(e){return typeof e=="number"||HBe(e)&&UBe(e)==VBe}var YBe=GBe;const Kx=lr(YBe);function XBe(e){for(var t=1;t0?(v=f.align.right,h=f.baseline.center):(l==="after"&&s>0||l==="before"&&s<0)&&(v=f.align.left,h=f.baseline.center)):(b=function(_){return{x:0,y:p(_)}},m.lineX=o*(l==="after"?1:-1),g.textX=(o+a)*(l==="after"?1:-1),l==="after"?v=f.align.left:v=f.align.right);var y=d.map(function(w){return XBe({key:w,value:w},b(w),m,g)});return{ticks:y,textAlign:v,textBaseline:h}},fG=function(t,n){if(!t||typeof t=="function")return t;if(n.type==="time"){var r=IP(t);return function(l){return r(new Date(l))}}return Pf(t)},sS=function(t){var n=t.width,r=t.height,l=t.scale,i=t.axis,o=t.values,a=Array.isArray(o)?o:void 0,s=Kx(o)?o:void 0,u=a||cG(l,s),c=l.bandwidth?sG(l):l,d;return i==="x"?d=u.map(function(f){return{key:"".concat(f),x1:c(f),x2:c(f),y1:0,y2:r}}):i==="y"&&(d=u.map(function(f){return{key:"".concat(f),x1:0,x2:n,y1:c(f),y2:c(f)}})),d},pG={ticksPosition:le.oneOf(["before","after"]),tickValues:le.oneOfType([le.number,le.arrayOf(le.oneOfType([le.number,le.string,le.instanceOf(Date)])),le.string]),tickSize:le.number,tickPadding:le.number,tickRotation:le.number,format:le.oneOfType([le.func,le.string]),renderTick:le.func,legend:le.node,legendPosition:le.oneOf(["start","middle","end"]),legendOffset:le.number},co=le.shape(pG);function uS(){return uS=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=k.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(r==="x"?u:0,r==="x"?0:u),t.stroke()),C.forEach(function(A){k.axis.ticks.line.strokeWidth>0&&(t.lineWidth=k.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.ticks.line.stroke,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(A.x+A.lineX,A.y+A.lineY),t.stroke());var F=h!==void 0?h(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(WL(v)),t.fillStyle=k.axis.ticks.text.fill,t.fillText(F,0,0),t.restore()}),y!==void 0){var D=0,P=0,E=0,I;r==="y"?(E=-90,D=T,_==="start"?(I="start",P=u):_==="middle"?(I="center",P=u/2):_==="end"&&(I="end")):(P=T,_==="start"?I="start":_==="middle"?(I="center",D=u/2):_==="end"&&(I="end",D=u)),t.translate(D,P),t.rotate(WL(E)),t.font="".concat(k.axis.legend.text.fontWeight?"".concat(k.axis.legend.text.fontWeight," "):"").concat(k.axis.legend.text.fontSize,"px ").concat(k.axis.legend.text.fontFamily),t.fillStyle=k.axis.legend.text.fill,t.textAlign=I,t.textBaseline="middle",t.fillText(y,0,0)}t.restore()},uWe=["top","right","bottom","left"],s4=function(t,n){var r=n.xScale,l=n.yScale,i=n.width,o=n.height,a=n.top,s=n.right,u=n.bottom,c=n.left,d=n.theme,f={top:a,right:s,bottom:u,left:c};uWe.forEach(function(p){var m=f[p];if(!m)return null;var g=p==="top"||p==="bottom",b=p==="top"||p==="left"?"before":"after",v=g?r:l,h=fG(m.format,v);sWe(t,iWe({},m,{axis:g?"x":"y",x:p==="right"?i:0,y:p==="bottom"?o:0,scale:v,format:h,length:g?i:o,ticksPosition:b,theme:d}))})},tf=function(t,n){var r=n.width,l=n.height,i=n.scale,o=n.axis,a=n.values,s=sS({width:r,height:l,scale:i,axis:o,values:a});s.forEach(function(u){t.beginPath(),t.moveTo(u.x1,u.y1),t.lineTo(u.x2,u.y2),t.stroke()})},Zx="row",Qx="column",u4="top",c4="top-right",d4="right",f4="bottom-right",p4="bottom",h4="bottom-left",m4="left",vG="top-left",g4="center",Jx="left-to-right",e2="right-to-left",t2="top-to-bottom",n2="bottom-to-top";function cWe(e){for(var t=1;t0){var R=w.filter(function(Y){var L=Y.on;return L==="hover"}),q=R.reduce(function(Y,L){return mv({},Y,L.style)},{});k(q)}h!==void 0&&h(o,N)},[h,o,w]),O=ge.useCallback(function(){if(w.length>0){var N=w.filter(function(q){var Y=q.on;return Y!=="hover"}),R=N.reduce(function(q,Y){return mv({},q,Y.style)},{});k(R)}y!==void 0&&y(o,event)},[y,o,w]),D=xG({direction:a,justify:s,symbolSize:T.symbolSize||p,symbolSpacing:m,width:l,height:i}),P=D.symbolX,E=D.symbolY,I=D.labelX,A=D.labelY,F=D.labelAnchor,j=D.labelAlignment,z=[v,h,y].some(function(N){return N!==void 0}),B;return Mm(f)?B=f:B=YWe[f],Qe.createElement("g",{transform:"translate(".concat(n,",").concat(r,")"),style:{opacity:T.itemOpacity!==void 0?T.itemOpacity:d}},Qe.createElement("rect",{width:l,height:i,fill:T.itemBackground||c,style:{cursor:z?"pointer":"auto"},onClick:C,onMouseEnter:M,onMouseLeave:O}),Qe.createElement(B,{id:o.id,x:P,y:E,size:T.symbolSize||p,fill:o.fill||o.color,borderWidth:T.symbolBorderWidth!==void 0?T.symbolBorderWidth:g,borderColor:T.symbolBorderColor||b}),Qe.createElement("text",{textAnchor:F,style:mv({},S.legends.text,{fill:T.itemTextColor||u,dominantBaseline:j,pointerEvents:"none",userSelect:"none"}),x:I,y:A},o.label))};Rs.displayName="LegendSvgItem";Rs.propTypes=mv({data:i2.isRequired,x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired,textColor:le.string,background:le.string,opacity:le.number,direction:le.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:le.bool.isRequired},a2,o2);Rs.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function XWe(e){for(var t=1;t=cqe){var u=t?null:sqe(e);if(u)return uqe(u);o=!1,l=lqe,s=new aqe}else s=t?[]:a;e:for(;++rt||i&&o&&s&&!a&&!u||r&&o&&s||!n&&s||!l)return 1;if(!r&&!i&&!u&&e=a)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var DUe=AUe,OT=Qb,EUe=pg,RUe=P4,LUe=kUe,IUe=CUe,$Ue=Tf,NUe=DUe,FUe=bc,jUe=_o;function zUe(e,t,n){t.length?t=OT(t,function(i){return jUe(i)?function(o){return EUe(o,i.length===1?i[0]:i)}:i}):t=[FUe];var r=-1;t=OT(t,$Ue(RUe));var l=LUe(e,function(i,o,a){var s=OT(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return IUe(l,function(i,o){return NUe(i,o,n)})}var BUe=zUe,WUe=HP,qUe=BUe,UUe=Zb,VL=aP,HUe=UUe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&VL(e,t[0],t[1])?t=[]:n>2&&VL(t[0],t[1],t[2])&&(t=[t[0]]),qUe(e,WUe(t,1),[])}),VUe=HUe;const GUe=lr(VUe);var YUe=fs,XUe=oi,KUe="[object Date]";function ZUe(e){return XUe(e)&&YUe(e)==KUe}var QUe=ZUe,JUe=QUe,eHe=Tf,GL=Kb,YL=GL&&GL.isDate,tHe=YL?eHe(YL):JUe,nHe=tHe;const rHe=lr(nHe);var aHe=function(t,n,r,l){var i=t.axis,o=t.min,a=o===void 0?0:o,s=t.max,u=s===void 0?"auto":s,c=t.stacked,d=c===void 0?!1:c,f=t.reverse,p=f===void 0?!1:f,m=n[i],g=i==="x"?r:l,b=a;a==="auto"&&(b=d===!0?m.minStacked:m.min);var v=u;u==="auto"&&(v=d===!0?m.maxStacked:m.max);var h=ec().rangeRound(i==="x"?[0,g]:[g,0]);return p===!0?h.domain([v,b]):h.domain([b,v]),h.type="linear",h.stacked=d,h},oHe={type:le.oneOf(["linear"]).isRequired,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number]),stacked:le.bool,reverse:le.bool},iHe=function(t,n,r,l){var i=t.axis,o=t.base,a=o===void 0?10:o,s=t.min,u=s===void 0?"auto":s,c=t.max,d=c===void 0?"auto":c,f=n[i],p=i==="x"?r:l,m=f.all.some(function(w){return w===0}),g,b=!1;if(f.all.forEach(function(w){b!==!0&&(g===void 0?g=Math.sign(w):Math.sign(w)!==g&&(b=!0))}),m||b)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` -`));var v=u;u==="auto"&&(v=f.min);var h=d;d==="auto"&&(h=f.max);var y=jU().domain([v,h]).rangeRound(i==="x"?[0,p]:[p,0]).base(a).nice();return y.type="log",y},lHe={type:le.oneOf(["log"]).isRequired,base:le.number,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number])},sHe=function(t,n,r,l){var i=t.axis,o=n[i],a=i==="x"?r:l,s=JAe().range([0,a]).domain(o.all);return s.type="point",s},uHe={type:le.oneOf(["point"]).isRequired},El;function vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O4="millisecond",OG="second",AG="minute",DG="hour",EG="day",RG="month",LG="year",cHe=[O4,OG,AG,DG,EG,RG,LG],Hc=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],dHe=(El={},vu(El,O4,[]),vu(El,OG,Hc.slice(0,1)),vu(El,AG,Hc.slice(0,2)),vu(El,DG,Hc.slice(0,3)),vu(El,EG,Hc.slice(0,4)),vu(El,RG,Hc.slice(0,5)),vu(El,LG,Hc.slice(0,6)),El),fHe=function(t){return function(n){return dHe[t].forEach(function(r){r(n)}),n}},IG=function(t){var n=t.format,r=n===void 0?"native":n,l=t.precision,i=l===void 0?"millisecond":l,o=t.useUTC,a=o===void 0?!0:o,s=fHe(i);if(r==="native")return function(c){return s(c)};var u=a?UH(r):qH(r);return function(c){return s(u(c))}},pHe=function(t,n,r,l){var i=t.axis,o=t.format,a=o===void 0?"native":o,s=t.precision,u=s===void 0?O4:s,c=t.min,d=c===void 0?"auto":c,f=t.max,p=f===void 0?"auto":f,m=t.useUTC,g=m===void 0?!0:m,b=n[i],v=i==="x"?r:l,h=IG({format:a,precision:u,useUTC:g}),y=d;d==="auto"?y=b.min:a!=="native"&&(y=h(d));var w=p;p==="auto"?w=b.max:a!=="native"&&(w=h(p));var _=g?s7e():l7e();return _.domain([y,w]).range([0,v]),_.type="time",_.useUTC=g,_},hHe={type:le.oneOf(["time"]).isRequired,format:le.string,precision:le.oneOf(cHe)};function Vy(e){return vHe(e)||gHe(e)||mHe()}function mHe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function gHe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function vHe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},i=l.getValue,o=i===void 0?function(p){return p.data[n]}:i,a=l.setValue,s=a===void 0?function(p,m){p.data[n]=m}:a;if(r.type==="linear")t.forEach(function(p){p.data.forEach(function(m){s(m,o(m)===null?null:parseFloat(o(m)))})});else if(r.type==="time"&&r.format!=="native"){var u=IG(r);t.forEach(function(p){p.data.forEach(function(m){s(m,o(m)===null?null:u(o(m)))})})}var c=[];t.forEach(function(p){p.data.forEach(function(m){c.push(o(m))})});var d,f;return r.type==="linear"?(c=UL(c),c=GUe(c,function(p){return p}),d=Math.min.apply(Math,Vy(c)),f=Math.max.apply(Math,Vy(c))):r.type==="time"?(c=Nm(c,function(p){return p.getTime()}),c=c.slice(0).sort(function(p,m){return m-p}).reverse(),d=c[0],f=$n(c)):(c=UL(c),d=c[0],f=$n(c)),{all:c,min:d,max:f}},NG=function(t,n,r,l){var i=bHe(t),o=[];r[i].all.forEach(function(a){var s=rHe(a)?wHe:xHe,u=[];l.forEach(function(c){var d=c.data.find(function(g){return s(g.data[i],a)}),f=null,p=null;if(d!==void 0){if(f=d.data[t],f!==null){var m=$n(u);m===void 0?p=f:m!==null&&(p=m+f)}d.data["".concat(t,"Stacked")]=p}u.push(p),o.push(p)})}),o=o.filter(function(a){return a!==null}),r[t].minStacked=Math.min.apply(Math,Vy(o)),r[t].maxStacked=Math.max.apply(Math,Vy(o))},THe=function(t,n,r){return NG("x",t,n,r)},kHe=function(t,n,r){return NG("y",t,n,r)},Gy=le.oneOfType([le.shape(oHe),le.shape(uHe),le.shape(hHe),le.shape(lHe)]);const ZL=Math.pow(2,-52),O0=new Uint32Array(512);class Yy{static from(t,n=OHe,r=AHe){const l=t.length,i=new Float64Array(l*2);for(let o=0;o>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:l,_hullHash:i}=this,o=t.length>>1;let a=1/0,s=1/0,u=-1/0,c=-1/0;for(let C=0;Cu&&(u=M),O>c&&(c=O),this._ids[C]=C}const d=(a+u)/2,f=(s+c)/2;let p=1/0,m,g,b;for(let C=0;C0&&(g=C,p=M)}let y=t[2*g],w=t[2*g+1],_=1/0;for(let C=0;CD&&(C[M++]=P,D=this._dists[P])}this.hull=C.subarray(0,M),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(A0(v,h,y,w,x,T)){const C=g,M=y,O=w;g=b,y=x,w=T,b=C,x=M,T=O}const k=PHe(v,h,y,w,x,T);this._cx=k.x,this._cy=k.y;for(let C=0;C0&&Math.abs(P-M)<=ZL&&Math.abs(E-O)<=ZL||(M=P,O=E,D===m||D===g||D===b))continue;let I=0;for(let B=0,N=this._hashKey(P,E);B0?3-n:1+n)/4}function AT(e,t,n,r){const l=e-n,i=t-r;return l*l+i*i}function DT(e,t,n,r,l,i){const o=(r-t)*(l-e),a=(n-e)*(i-t);return Math.abs(o-a)>=33306690738754716e-32*Math.abs(o+a)?o-a:0}function A0(e,t,n,r,l,i){return(DT(l,i,e,t,n,r)||DT(e,t,n,r,l,i)||DT(n,r,l,i,e,t))<0}function CHe(e,t,n,r,l,i,o,a){const s=e-o,u=t-a,c=n-o,d=r-a,f=l-o,p=i-a,m=s*s+u*u,g=c*c+d*d,b=f*f+p*p;return s*(d*b-g*p)-u*(c*b-g*f)+m*(c*p-d*f)<0}function MHe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=(u*c-a*d)*f,m=(o*d-s*c)*f;return p*p+m*m}function PHe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=e+(u*c-a*d)*f,m=t+(o*d-s*c)*f;return{x:p,y:m}}function fd(e,t,n,r){if(r-n<=20)for(let l=n+1;l<=r;l++){const i=e[l],o=t[i];let a=l-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=i}else{const l=n+r>>1;let i=n+1,o=r;th(e,l,i),t[e[n]]>t[e[r]]&&th(e,n,r),t[e[i]]>t[e[r]]&&th(e,i,r),t[e[n]]>t[e[i]]&&th(e,n,i);const a=e[i],s=t[a];for(;;){do i++;while(t[e[i]]s);if(o=o-n?(fd(e,t,i,r),fd(e,t,n,o-1)):(fd(e,t,n,o-1),fd(e,t,i,r))}}function th(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function OHe(e){return e[0]}function AHe(e){return e[1]}const QL=1e-6;class Fu{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const l=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${l},${i}`:(Math.abs(this._x1-l)>QL||Math.abs(this._y1-i)>QL)&&(this._+="L"+l+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=l},${this._y1=i}`)}rect(t,n,r,l){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+l}h${-r}Z`}value(){return this._||null}}class xS{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}let DHe=class{constructor(t,[n,r,l,i]=[0,0,960,500]){if(!((l=+l)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=l,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:l}=this,i=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let p=0,m=0,g=r.length,b,v;p1;)i-=2;for(let o=2;o4)for(let o=0;o0){if(n>=this.ymax)return null;(o=(this.ymax-n)/l)0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)this.xmax?2:0)|(nthis.ymax?8:0)}};const EHe=2*Math.PI,Vc=Math.pow;function RHe(e){return e[0]}function LHe(e){return e[1]}function IHe(e){const{triangles:t,coords:n}=e;for(let r=0;r1e-10)return!1}return!0}function $He(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class u2{static from(t,n=RHe,r=LHe,l){return new u2("length"in t?NHe(t,n,r,l):Float64Array.from(FHe(t,n,r,l)))}constructor(t){this._delaunator=new Yy(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&IHe(t)){this.collinear=Int32Array.from({length:n.length/2},(f,p)=>p).sort((f,p)=>n[2*f]-n[2*p]||n[2*f+1]-n[2*p+1]);const s=this.collinear[0],u=this.collinear[this.collinear.length-1],c=[n[2*s],n[2*s+1],n[2*u],n[2*u+1]],d=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let f=0,p=n.length/2;f0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=l[0],this.triangles[1]=l[1],this.triangles[2]=l[1],o[l[0]]=1,l.length===2&&(o[l[1]]=0))}voronoi(t){return new DHe(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:l,halfedges:i,triangles:o,collinear:a}=this;if(a){const d=a.indexOf(t);d>0&&(yield a[d-1]),d=0&&i!==r&&i!==l;)r=i;return i}_step(t,n,r){const{inedges:l,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:u}=this;if(l[t]===-1||!u.length)return(t+1)%(u.length>>1);let c=t,d=Vc(n-u[t*2],2)+Vc(r-u[t*2+1],2);const f=l[t];let p=f;do{let m=s[p];const g=Vc(n-u[m*2],2)+Vc(r-u[m*2+1],2);if(g0&&(de.lineWidth=U.grid.line.strokeWidth,de.strokeStyle=U.grid.line.stroke,T&&nf(de,{width:q,height:Y,scale:re,axis:"x",values:k}),S&&nf(de,{width:q,height:Y,scale:ae,axis:"y",values:C})),_e==="axes"&&s4(de,{xScale:re,yScale:ae,width:q,height:Y,top:M,right:O,bottom:D,left:P,theme:U}),_e==="areas"&&g===!0&&(de.save(),de.globalAlpha=v,X.context(de),Q.forEach(function(pe){de.fillStyle=pe.color,de.beginPath(),X(pe.data.map(function(xe){return xe.position})),de.fill()}),de.restore()),_e==="lines"&&(G.context(de),Q.forEach(function(pe){de.strokeStyle=pe.color,de.lineWidth=m,de.beginPath(),G(pe.data.map(function(xe){return xe.position})),de.stroke()})),_e==="points"&&h===!0&&y>0&&ie.forEach(function(pe){de.fillStyle=pe.color,de.beginPath(),de.arc(pe.x,pe.y,y/2,0,2*Math.PI),de.fill(),_>0&&(de.strokeStyle=pe.borderColor,de.lineWidth=_,de.stroke())}),_e==="mesh"&&A===!0&&(jG(de,Se),ee&&zG(de,Se,ee.index)),_e==="legends"){var ue=Q.map(function(pe){return{id:pe.id,label:pe.id,color:pe.color}}).reverse();E.forEach(function(pe){M4(de,MVe({},pe,{data:pe.data||ue,containerWidth:q,containerHeight:Y,theme:U}))})}})},[B,L,W,f,U,G,Q,re,ae,T,k,S,C,M,O,D,P,E,ie,h,y,ee]);var Oe=ge.useCallback(function(de){var _e=Im(B.current,de),ue=aI(_e,2),pe=ue[0],xe=ue[1];if(!ZP(R.left,R.top,q,Y,pe,xe))return null;var ye=he.find(pe-R.left,xe-R.top);return ie[ye]},[B,R,q,Y,he]),Pe=gf(),Me=Pe.showTooltipFromEvent,ce=Pe.hideTooltip,we=ge.useCallback(function(de){var _e=Oe(de);H(_e),_e?Me(Qe.createElement(z,{point:_e}),de):ce()},[Oe,H,Me,ce,z]),K=ge.useCallback(function(de){ce(),H(null),ee&&F&&F(ee,de)},[ce,H,F]),ne=ge.useCallback(function(de){if(j){var _e=Oe(de);_e&&j(_e,de)}},[Oe,j]);return Qe.createElement("canvas",{ref:B,width:L*i,height:W*i,style:{width:L,height:W,cursor:I?"auto":"normal"},onMouseEnter:I?we:void 0,onMouseMove:I?we:void 0,onMouseLeave:I?K:void 0,onClick:I?ne:void 0})};R4.propTypes=nVe;R4.defaultProps=rVe;var EVe=Yx(R4);function TS(){return TS=Object.assign||function(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(RVe,{data:[{id:"1",data:e.data[e.xField].map((t,n)=>({x:t,y:e.data[e.yField][n]}))}],margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})}),IVe=LVe;var $Ve=PG;function NVe(e,t){var n=[];return $Ve(e,function(r,l,i){t(r,l,i)&&n.push(r)}),n}var FVe=NVe,jVe=YH,zVe=FVe,BVe=P4,WVe=_o;function qVe(e,t){var n=WVe(e)?jVe:zVe;return n(e,BVe(t))}var UVe=qVe;const HVe=lr(UVe);var VVe=kf,GVe=vg;function YVe(e,t){return e&&VVe(t,GVe(t),e)}var XVe=YVe,KVe=kf,ZVe=fg;function QVe(e,t){return e&&KVe(t,ZVe(t),e)}var JVe=QVe,eGe=kf,tGe=jP;function nGe(e,t){return eGe(e,tGe(e),t)}var rGe=nGe,aGe=FP,oGe=K5,iGe=jP,lGe=XH,sGe=Object.getOwnPropertySymbols,uGe=sGe?function(e){for(var t=[];e;)aGe(t,iGe(e)),e=oGe(e);return t}:lGe,eY=uGe,cGe=kf,dGe=eY;function fGe(e,t){return cGe(e,dGe(e),t)}var pGe=fGe,hGe=GH,mGe=eY,gGe=fg;function vGe(e){return hGe(e,gGe,mGe)}var tY=vGe,yGe=Object.prototype,bGe=yGe.hasOwnProperty;function xGe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&bGe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var wGe=xGe,_Ge=X5;function TGe(e,t){var n=t?_Ge(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var kGe=TGe,SGe=/\w*$/;function CGe(e){var t=new e.constructor(e.source,SGe.exec(e));return t.lastIndex=e.lastIndex,t}var MGe=CGe,oI=yf,iI=oI?oI.prototype:void 0,lI=iI?iI.valueOf:void 0;function PGe(e){return lI?Object(lI.call(e)):{}}var OGe=PGe,AGe=X5,DGe=kGe,EGe=MGe,RGe=OGe,LGe=fU,IGe="[object Boolean]",$Ge="[object Date]",NGe="[object Map]",FGe="[object Number]",jGe="[object RegExp]",zGe="[object Set]",BGe="[object String]",WGe="[object Symbol]",qGe="[object ArrayBuffer]",UGe="[object DataView]",HGe="[object Float32Array]",VGe="[object Float64Array]",GGe="[object Int8Array]",YGe="[object Int16Array]",XGe="[object Int32Array]",KGe="[object Uint8Array]",ZGe="[object Uint8ClampedArray]",QGe="[object Uint16Array]",JGe="[object Uint32Array]";function eYe(e,t,n){var r=e.constructor;switch(t){case qGe:return AGe(e);case IGe:case $Ge:return new r(+e);case UGe:return DGe(e,n);case HGe:case VGe:case GGe:case YGe:case XGe:case KGe:case ZGe:case QGe:case JGe:return LGe(e,n);case NGe:return new r;case FGe:case BGe:return new r(e);case jGe:return EGe(e);case zGe:return new r;case WGe:return RGe(e)}}var tYe=eYe,nYe=Ix,rYe=oi,aYe="[object Map]";function oYe(e){return rYe(e)&&nYe(e)==aYe}var iYe=oYe,lYe=iYe,sYe=Tf,sI=Kb,uI=sI&&sI.isMap,uYe=uI?sYe(uI):lYe,cYe=uYe,dYe=Ix,fYe=oi,pYe="[object Set]";function hYe(e){return fYe(e)&&dYe(e)==pYe}var mYe=hYe,gYe=mYe,vYe=Tf,cI=Kb,dI=cI&&cI.isSet,yYe=dI?vYe(dI):gYe,bYe=yYe,xYe=Hb,wYe=gV,_Ye=tP,TYe=XVe,kYe=JVe,SYe=cU,CYe=Vb,MYe=rGe,PYe=pGe,OYe=KH,AYe=tY,DYe=Ix,EYe=wGe,RYe=tYe,LYe=hU,IYe=_o,$Ye=Xb,NYe=cYe,FYe=Oi,jYe=bYe,zYe=vg,BYe=fg,WYe=1,qYe=2,UYe=4,nY="[object Arguments]",HYe="[object Array]",VYe="[object Boolean]",GYe="[object Date]",YYe="[object Error]",rY="[object Function]",XYe="[object GeneratorFunction]",KYe="[object Map]",ZYe="[object Number]",aY="[object Object]",QYe="[object RegExp]",JYe="[object Set]",eXe="[object String]",tXe="[object Symbol]",nXe="[object WeakMap]",rXe="[object ArrayBuffer]",aXe="[object DataView]",oXe="[object Float32Array]",iXe="[object Float64Array]",lXe="[object Int8Array]",sXe="[object Int16Array]",uXe="[object Int32Array]",cXe="[object Uint8Array]",dXe="[object Uint8ClampedArray]",fXe="[object Uint16Array]",pXe="[object Uint32Array]",Nr={};Nr[nY]=Nr[HYe]=Nr[rXe]=Nr[aXe]=Nr[VYe]=Nr[GYe]=Nr[oXe]=Nr[iXe]=Nr[lXe]=Nr[sXe]=Nr[uXe]=Nr[KYe]=Nr[ZYe]=Nr[aY]=Nr[QYe]=Nr[JYe]=Nr[eXe]=Nr[tXe]=Nr[cXe]=Nr[dXe]=Nr[fXe]=Nr[pXe]=!0;Nr[YYe]=Nr[rY]=Nr[nXe]=!1;function gv(e,t,n,r,l,i){var o,a=t&WYe,s=t&qYe,u=t&UYe;if(n&&(o=l?n(e,r,l,i):n(e)),o!==void 0)return o;if(!FYe(e))return e;var c=IYe(e);if(c){if(o=EYe(e),!a)return CYe(e,o)}else{var d=DYe(e),f=d==rY||d==XYe;if($Ye(e))return SYe(e,a);if(d==aY||d==nY||f&&!l){if(o=s||f?{}:LYe(e),!a)return s?PYe(e,kYe(o,e)):MYe(e,TYe(o,e))}else{if(!Nr[d])return l?e:{};o=RYe(e,d,a)}}i||(i=new xYe);var p=i.get(e);if(p)return p;i.set(e,o),jYe(e)?e.forEach(function(b){o.add(gv(b,t,n,b,e,i))}):NYe(e)&&e.forEach(function(b,v){o.set(v,gv(b,t,n,v,e,i))});var m=u?s?AYe:OYe:s?BYe:zYe,g=c?void 0:m(e);return wYe(g||e,function(b,v){g&&(v=b,b=e[v]),_Ye(o,v,gv(b,t,n,v,e,i))}),o}var hXe=gv;function mXe(e,t,n){var r=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(l);++r1),i}),LXe(e,NXe(e),n),r&&(n=DXe(n,FXe|jXe|zXe,IXe));for(var l=t.length;l--;)EXe(n,t[l]);return n}),WXe=BXe;const oY=lr(WXe);var qXe=le.shape({match:le.oneOfType([le.func,le.object]).isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number,noteTextOffset:le.number,note:le.oneOfType([le.node,le.func]).isRequired,offset:le.number}),Xy={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function UXe(e){for(var t=1;t180?(_-=d,T-=d):T+=d,{points:[[b,v],[m,g],[T,k]],text:[_,x],angle:h+90}},iY=function(t){var n=t.items,r=t.annotations,l=t.getPosition,i=t.getDimensions;return ge.useMemo(function(){return GXe({items:n,annotations:r,getPosition:l,getDimensions:i})},[n,r,l,i])},KXe=function(t){var n=t.type,r=t.containerWidth,l=t.containerHeight,i=t.x,o=t.y,a=t.size,s=t.width,u=t.height,c=t.noteX,d=t.noteY,f=t.noteWidth,p=t.noteTextOffset;return ge.useMemo(function(){return XXe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p})},[n,r,l,i,o,a,s,u,c,d,f,p])};function ZXe(e){for(var t=1;t0&&Qe.createElement("text",{x:n,y:r,style:ZXe({},i.annotations.text,{strokeLinejoin:"round",strokeWidth:i.annotations.text.outlineWidth*2,stroke:i.annotations.text.outlineColor})},l),Qe.createElement("text",{x:n,y:r,style:oY(i.annotations.text,["outlineWidth","outlineColor"])},l))});Fm.displayName="AnnotationNote";Fm.propTypes={datum:le.object.isRequired,x:le.number.isRequired,y:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};Fm.defaultProps={};function JXe(e){for(var t=1;t0&&Qe.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:fI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Qe.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.outline}))}):Qe.createElement(Qe.Fragment,null,l.annotations.outline.outlineWidth>0&&Qe.createElement("circle",{cx:t,cy:n,r:r/2,style:fI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Qe.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.outline}))});L4.displayName="CircleAnnotationOutline";L4.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};function pI(e){for(var t=1;t0&&Qe.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:pI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Qe.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.symbol}))}):Qe.createElement(Qe.Fragment,null,l.annotations.outline.outlineWidth>0&&Qe.createElement("circle",{cx:t,cy:n,r:r/2,style:pI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Qe.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.symbol}))});h2.displayName="DotAnnotationOutline";h2.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};h2.defaultProps={size:4};function hI(e){for(var t=1;t0&&Qe.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:hI({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Qe.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:i.annotations.outline}))}):Qe.createElement(Qe.Fragment,null,i.annotations.outline.outlineWidth>0&&Qe.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:hI({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Qe.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:i.annotations.outline}))});I4.displayName="RectAnnotationOutline";I4.propTypes={x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired};var xg=ge.memo(function(e){var t=e.datum,n=e.type,r=e.containerWidth,l=e.containerHeight,i=e.x,o=e.y,a=e.size,s=e.width,u=e.height,c=e.noteX,d=e.noteY,f=e.noteWidth,p=e.noteTextOffset,m=e.note,g=Bo(),b=g.animate,v=g.springConfig,h=KXe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p});return Qe.createElement(Qe.Fragment,null,Qe.createElement(jm,{points:h.points,isOutline:!0}),n==="circle"&&Qe.createElement(L4,{x:i,y:o,size:a}),n==="dot"&&Qe.createElement(h2,{x:i,y:o,size:a}),n==="rect"&&Qe.createElement(I4,{x:i,y:o,width:s,height:u}),Qe.createElement(jm,{points:h.points}),!b&&Qe.createElement(Fm,{x:h.text[0],y:h.text[1],note:m}),b&&Qe.createElement(rs,{style:{x:zn(h.text[0],v),y:zn(h.text[1],v)}},function(y){return Qe.createElement(Fm,{datum:t,x:y.x,y:y.y,note:m})}))});xg.displayName="Annotation";xg.propTypes={datum:le.object.isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,containerWidth:le.number.isRequired,containerHeight:le.number.isRequired,x:le.number.isRequired,y:le.number.isRequired,size:le.number,width:le.number,height:le.number,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number.isRequired,noteTextOffset:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};xg.defaultProps={noteWidth:Xy.noteWidth,noteTextOffset:Xy.noteTextOffset};function aKe(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(PKe,{data:[{id:"1",data:e.data[e.xField].map((t,n)=>({x:t,y:e.data[e.yField][n]}))}],margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),LKe=RKe;var IKe=Sf;function $Ke(e,t,n){for(var r=-1,l=e.length;++rt}var HKe=UKe,VKe=yY,GKe=HKe,YKe=bc;function XKe(e){return e&&e.length?VKe(e,YKe,GKe):void 0}var KKe=XKe;const xY=lr(KKe);var ZKe=Math.ceil,QKe=Math.max;function JKe(e,t,n,r){for(var l=-1,i=QKe(ZKe((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++l]=e,e+=n;return o}var eZe=JKe,tZe=eZe,nZe=aP,ET=wV;function rZe(e){return function(t,n,r){return r&&typeof r!="number"&&nZe(t,n,r)&&(n=r=void 0),t=ET(t),n===void 0?(n=t,t=0):n=ET(n),r=r===void 0?t0&&(s=0)),ec().rangeRound(i).domain([s,a])},gZe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=v2(n,r,[0,s],f),b=a?[0,u]:[u,0],v=_Y(n,l,i,o,b),h=(g.bandwidth()-m*(l.length-1))/l.length,y=v(0),w=function(k){return k>0?v(k):y},_=function(k,S){return k>0?y-S:v(k)-y};a&&(w=function(k){return k<0?v(k):y},_=function(k,S){return k<0?y-S:v(k)-y});var x=[];return h>0&&l.forEach(function(T,k){wY(g.domain().length).forEach(function(S){var C=g(r(n[S]))+h*k+m*k,M=w(n[S][T]),O=_(n[S][T],M);if(h>0&&O>0){var D={id:T,value:n[S][T],index:S,indexValue:r(n[S]),data:n[S]};x.push({key:"".concat(T,".").concat(D.indexValue),data:D,x:C,y:M,width:h,height:O,color:c(D)})}})}),{xScale:g,yScale:v,bars:x}},vZe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=a?[s,0]:[0,s],b=_Y(n,l,i,o,g),v=v2(n,r,[u,0],f),h=(v.bandwidth()-m*(l.length-1))/l.length,y=b(0),w=function(k){return k>0?y:b(k)},_=function(k,S){return k>0?b(k)-y:y-S};a&&(w=function(k){return k<0?y:b(k)},_=function(k,S){return k<0?b(k)-y:y-S});var x=[];return h>0&&l.forEach(function(T,k){wY(v.domain().length).forEach(function(S){var C=w(n[S][T]),M=v(r(n[S]))+h*k+m*k,O=_(n[S][T],C);if(O>0){var D={id:T,value:n[S][T],index:S,indexValue:r(n[S]),data:n[S]};x.push({key:"".concat(T,".").concat(D.indexValue),data:D,x:C,y:M,width:O,height:h,color:c(D)})}})}),{xScale:b,yScale:v,bars:x}},TY=function(t){return t.layout==="vertical"?gZe(t):vZe(t)},kY=function(t,n,r,l){var i=fZe(t,2),o=n;o==="auto"&&(o=bY(i));var a=r;return a==="auto"&&(a=xY(i)),ec().rangeRound(l).domain([o,a])},yZe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=yH().keys(l).offset(LP)(n),b=v2(n,r,[0,s],f),v=a?[0,u]:[u,0],h=kY(g,i,o,v),y=[],w=b.bandwidth(),_=function(k){return h(k[1])},x=function(k,S){return h(k[0])-S};return a&&(_=function(k){return h(k[0])},x=function(k,S){return h(k[1])-S}),w>0&&g.forEach(function(T){b.domain().forEach(function(k,S){var C=T[S],M=b(r(C.data)),O=_(C),D=x(C,O);if(m>0&&(O+=m*.5,D-=m),D>0){var P={id:T.key,value:C.data[T.key],index:S,indexValue:k,data:C.data};y.push({key:"".concat(T.key,".").concat(k),data:P,x:M,y:O,width:w,height:D,color:c(P)})}})}),{xScale:b,yScale:h,bars:y}},bZe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=yH().keys(l).offset(LP)(n),b=a?[s,0]:[0,s],v=kY(g,i,o,b),h=v2(n,r,[u,0],f),y=[],w=h.bandwidth(),_=function(k){return v(k[0])},x=function(k,S){return v(k[1])-S};return a&&(_=function(k){return v(k[1])},x=function(k,S){return v(k[0])-S}),w>0&&g.forEach(function(T){h.domain().forEach(function(k,S){var C=T[S],M=h(r(C.data)),O={id:T.key,value:C.data[T.key],index:S,indexValue:k,data:C.data},D=_(C),P=x(C,D);m>0&&(D+=m*.5,P-=m),P>0&&y.push({key:"".concat(T.key,".").concat(k),data:O,x:D,y:M,width:P,height:w,color:c(O)})})}),{xScale:v,yScale:h,bars:y}},SY=function(t){return t.layout==="vertical"?yZe(t):bZe(t)},xZe=function(t,n,r,l,i){var o=Nm(t.map(function(a){return{id:a.data.id,label:a.data.id,color:a.color,fill:a.data.fill}}),function(a){var s=a.id;return s});return(n==="vertical"&&l==="stacked"&&r==="column"&&i!==!0||n==="horizontal"&&l==="stacked"&&i===!0)&&o.reverse(),o},wZe=function(t){return Nm(t.map(function(n){return{id:n.data.indexValue,label:n.data.indexValue,color:n.color,fill:n.data.fill}}),function(n){var r=n.id;return r})},_Ze=function(t){var n=t.from,r=t.bars,l=t.layout,i=t.direction,o=t.groupMode,a=t.reverse;return n==="indexes"?wZe(r):xZe(r,l,i,o,a)};function PS(e){for(var t=1;t0&&ce0&&we0&&(this.ctx.lineWidth=S.grid.line.strokeWidth,this.ctx.strokeStyle=S.grid.line.stroke,P&&nf(this.ctx,{width:c,height:d,scale:j.xScale,axis:"x",values:E}),I&&nf(this.ctx,{width:c,height:d,scale:j.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var z=Nm(j.bars.map(function(N){return{id:N.data.id,label:N.data.id,color:N.color,fill:N.data.fill}}).reverse(),function(N){var R=N.id;return R}),B=Nm(j.bars.map(function(N){return{id:N.data.indexValue,label:N.data.indexValue,color:N.color,fill:N.data.fill}}),function(N){var R=N.id;return R});D.forEach(function(N){var R;if(N.dataFrom==="keys"?R=z:N.dataFrom==="indexes"&&(R=B),R===void 0)return null;M4(l.ctx,bI({},N,{data:R,containerWidth:c,containerHeight:d,itemTextColor:"#999",symbolSize:16,theme:S}))}),s4(this.ctx,{xScale:j.xScale,yScale:j.yScale,width:c,height:d,top:_,right:x,bottom:T,left:k,theme:S}),j.bars.forEach(function(N){var R=N.x,q=N.y,Y=N.color,L=N.width,W=N.height;l.ctx.fillStyle=Y,M>0&&(l.ctx.strokeStyle=O(N),l.ctx.lineWidth=M),l.ctx.beginPath(),l.ctx.rect(R,q,L,W),l.ctx.fill(),M>0&&l.ctx.stroke()})}},{key:"render",value:function(){var r=this,l=this.props,i=l.outerWidth,o=l.outerHeight,a=l.pixelRatio,s=l.isInteractive,u=l.theme;return Qe.createElement(qx,{isInteractive:s,theme:u,animate:!1},function(c){var d=c.showTooltip,f=c.hideTooltip;return Qe.createElement("canvas",{ref:function(m){r.surface=m},width:i*a,height:o*a,style:{width:i,height:o},onMouseEnter:r.handleMouseHover(d,f),onMouseMove:r.handleMouseHover(d,f),onMouseLeave:r.handleMouseLeave(f),onClick:r.handleClick})})}}]),t}(ge.Component);DY.propTypes=MY;var BZe=$P("BarCanvas")(PY(DY));function ES(){return ES=Object.assign||function(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(WZe,{data:e.data[e.xField].map((t,n)=>({id:t,x:e.data[e.yField][n]})),margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),UZe=qZe,HZe=e=>e.type??"graph",_I=(e,t,n)=>{switch(HZe(t)){case"graph":{const r=()=>e.getAdditionGraphData(t.id),l=i=>ke.jsx(cb,{...i,widgetSize:n});return ke.jsx(oy,{func:r,children:l})}case"widget":{const r=()=>e.getAdditionWidgetData(t.id),l=i=>Tg(t.id,i);return ke.jsx(oy,{func:r,children:l})}default:return ke.jsx(Vz,{})}},F4=e=>ke.jsx(DM.Consumer,{children:t=>ke.jsxs(Ia,{children:[e.details.parts.length>1?ke.jsx(EM,{tabs:e.details.parts.map(n=>({title:n.title,tab:_I(t,n,e.widgetSize)}))}):_I(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?ke.jsx(ke.Fragment,{}):e.details.insights.map(n=>ke.jsx(zz,{data:n}))]})}),VZe=new Map([["line",(e,t)=>t[e.field]?ke.jsx(IVe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})],["scatter",(e,t)=>t[e.field]?ke.jsx(LKe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})],["histogram",(e,t)=>t[e.field]?ke.jsx(UZe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})]]),TI=e=>e.map(t=>({def:t,gen:VZe.get(t.type??"string")})).map(({def:t,gen:n})=>n?{...t,type:void 0,render:r=>n(t,r)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),GZe=e=>{const[t,n]=ge.useState({open:!1,anchorEl:void 0});return ke.jsxs(Ia,{sx:{width:50},onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),children:[ke.jsx(Kq,{}),ke.jsx(kM,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:ke.jsx(pr,{p:1,children:e.longText})})]})},YZe=e=>{const{columns:t,data:n}=e,r={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return ke.jsx(Qe.Fragment,{children:ke.jsx(TSe,{columns:e.showInfoColumn??!1?[...TI(t),{title:"Info",render:l=>{var i,o,a;return ke.jsx(Qe.Fragment,{children:(i=l.details)!=null&&i.insights?ke.jsx(GZe,{longText:`${(o=l.details)==null?void 0:o.insights[0].title}: ${(a=l.details)==null?void 0:a.insights[0].text}`}):ke.jsx("div",{})})},width:50}]:[...TI(t)],data:n,detailPanel:({rowData:l})=>l.graphId?ke.jsx(PSe,{graphId:l.graphId,widgetSize:e.widgetSize}):l.details?ke.jsx(F4,{details:l.details,widgetSize:e.widgetSize}):null,options:r})})},XZe=e=>ke.jsx(EM,{tabs:e.tabs.map(t=>({title:t.title,tab:Tg(e.id+"1",t.widget)}))});var j4={},KZe=Cn;Object.defineProperty(j4,"__esModule",{value:!0});var EY=j4.default=void 0,ZZe=KZe(Ta()),QZe=ke,JZe=(0,ZZe.default)((0,QZe.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"}),"ExpandLessSharp");EY=j4.default=JZe;var z4={},eQe=Cn;Object.defineProperty(z4,"__esModule",{value:!0});var RY=z4.default=void 0,tQe=eQe(Ta()),nQe=ke,rQe=(0,tQe.default)((0,nQe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"}),"ExpandMoreSharp");RY=z4.default=rQe;const aQe=e=>{var l;const[t,n]=ge.useState(!1),r=Uz();return ke.jsx(Qe.Fragment,{children:ke.jsxs(cr,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[ke.jsxs(cr,{item:!0,xs:2,children:[ke.jsx(pr,{variant:"h5",children:e.header}),ke.jsx(pr,{variant:"subtitle1",children:e.description})]}),ke.jsx(cr,{item:!0,xs:e.graph===void 0?10:5,children:ke.jsxs(PM,{children:[ke.jsx(AM,{children:ke.jsxs(hm,{children:[ke.jsx(gi,{}),e.metricsValuesHeaders.map((i,o)=>ke.jsx(gi,{children:i},i+o))]})}),ke.jsx(OM,{children:e.metrics.map((i,o)=>ke.jsxs(hm,{children:[ke.jsx(gi,{children:i.label}),i.values.map((a,s)=>ke.jsx(gi,{children:a},String(a)+s))]},i.label+o))})]})}),e.graph===void 0?ke.jsx(ke.Fragment,{}):ke.jsx(cr,{item:!0,xs:5,children:ke.jsx(qz,{data:e.graph.data,layout:{...e.graph.layout,title:void 0,xaxis:{...(l=e.graph.layout)==null?void 0:l.xaxis,type:r!=null&&r.isXaxisAsCategorical?"category":void 0}},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?ke.jsx(ke.Fragment,{}):ke.jsxs(ke.Fragment,{children:[ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(ji,{variant:"outlined",startIcon:t?ke.jsx(EY,{}):ke.jsx(RY,{}),onClick:()=>n(i=>!i),children:"Details"})}),ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(Q1,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(F4,{details:e.details,widgetSize:e.widgetSize})})})]})]})})};var B4={},oQe=Cn;Object.defineProperty(B4,"__esModule",{value:!0});var LY=B4.default=void 0,iQe=oQe(Ta()),lQe=ke,sQe=(0,iQe.default)((0,lQe.jsx)("path",{d:"m14 7-5 5 5 5V7z"}),"ArrowLeft");LY=B4.default=sQe;var W4={},uQe=Cn;Object.defineProperty(W4,"__esModule",{value:!0});var IY=W4.default=void 0,cQe=uQe(Ta()),dQe=ke,fQe=(0,cQe.default)((0,dQe.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");IY=W4.default=fQe;const pQe=e=>{const[t,n]=Qe.useState({page:0}),r=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return ke.jsxs(Hz,{children:[r.map((l,i)=>Tg(`wi_${i}`,l)),ke.jsxs(cr,{item:!0,xs:12,children:[ke.jsx(ji,{startIcon:ke.jsx(LY,{}),disabled:t.page===0,onClick:()=>n(l=>({page:l.page-1})),children:"Previous"}),ke.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),ke.jsx(ji,{endIcon:ke.jsx(IY,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>n(l=>({page:l.page+1})),children:"Next"})]})]})};function hQe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const mQe=/[ \t\n\f\r]/g;function gQe(e){return typeof e=="object"?e.type==="text"?kI(e.value):!1:kI(e)}function kI(e){return e.replace(mQe,"")===""}class wg{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}wg.prototype.property={};wg.prototype.normal={};wg.prototype.space=null;function $Y(e,t){const n={},r={};let l=-1;for(;++l4&&n.slice(0,4)==="data"&&wQe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(CI,SQe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!CI.test(i)){let o=i.replace(_Qe,kQe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=q4}return new l(r,t)}function kQe(e){return"-"+e.toLowerCase()}function SQe(e){return e.charAt(1).toUpperCase()}const CQe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},MQe=$Y([jY,FY,WY,qY,bQe],"html"),UY=$Y([jY,FY,WY,qY,xQe],"svg");function PQe(e){return e.join(" ").trim()}var U4={exports:{}},MI=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,OQe=/\n/g,AQe=/^\s*/,DQe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,EQe=/^:\s*/,RQe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,LQe=/^[;\s]*/,IQe=/^\s+|\s+$/g,$Qe=` -`,PI="/",OI="*",Pu="",NQe="comment",FQe="declaration",jQe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function l(m){var g=m.match(OQe);g&&(n+=g.length);var b=m.lastIndexOf($Qe);r=~b?m.length-b:r+m.length}function i(){var m={line:n,column:r};return function(g){return g.position=new o(m),u(),g}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(m){var g=new Error(t.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function s(m){var g=m.exec(e);if(g){var b=g[0];return l(b),e=e.slice(b.length),g}}function u(){s(AQe)}function c(m){var g;for(m=m||[];g=d();)g!==!1&&m.push(g);return m}function d(){var m=i();if(!(PI!=e.charAt(0)||OI!=e.charAt(1))){for(var g=2;Pu!=e.charAt(g)&&(OI!=e.charAt(g)||PI!=e.charAt(g+1));)++g;if(g+=2,Pu===e.charAt(g-1))return a("End of comment missing");var b=e.slice(2,g-2);return r+=2,l(b),e=e.slice(g),r+=2,m({type:NQe,comment:b})}}function f(){var m=i(),g=s(DQe);if(g){if(d(),!s(EQe))return a("property missing ':'");var b=s(RQe),v=m({type:FQe,property:AI(g[0].replace(MI,Pu)),value:b?AI(b[0].replace(MI,Pu)):Pu});return s(LQe),v}}function p(){var m=[];c(m);for(var g;g=f();)g!==!1&&(m.push(g),c(m));return m}return u(),p()};function AI(e){return e?e.replace(IQe,Pu):Pu}var zQe=jQe;function HY(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,l=zQe(e),i=typeof t=="function",o,a,s=0,u=l.length;s0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function qQe(e){const t=H4(e),n=VY(e);if(t&&n)return{start:t,end:n}}function jh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?DI(e.position):"start"in e||"end"in e?DI(e):"line"in e||"column"in e?IS(e):""}function IS(e){return EI(e&&e.line)+":"+EI(e&&e.column)}function DI(e){return IS(e&&e.start)+"-"+IS(e&&e.end)}function EI(e){return e&&typeof e=="number"?e:1}class To extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(o=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=a?a.line:void 0,this.name=jh(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}To.prototype.file="";To.prototype.name="";To.prototype.reason="";To.prototype.message="";To.prototype.stack="";To.prototype.column=void 0;To.prototype.line=void 0;To.prototype.ancestors=void 0;To.prototype.cause=void 0;To.prototype.fatal=void 0;To.prototype.place=void 0;To.prototype.ruleId=void 0;To.prototype.source=void 0;const V4={}.hasOwnProperty,UQe=new Map,HQe=/[A-Z]/g,VQe=/-([a-z])/g,GQe=new Set(["table","tbody","thead","tfoot","tr"]),YQe=new Set(["td","th"]);function XQe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ZQe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=KQe(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?UY:MQe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=YY(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function YY(e,t,n){if(t.type==="element"||t.type==="root"){const r=e.schema;let l=r;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=UY,e.schema=l),e.ancestors.push(t);let i=QQe(e,t);const o=JQe(e,e.ancestors);let a=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(i&&GQe.has(t.tagName)&&(i=i.filter(function(s){return typeof s=="string"?!gQe(s):!0})),V4.call(e.components,t.tagName)){const s=t.tagName;a=e.components[s],typeof a!="string"&&a!==e.Fragment&&e.passNode&&(o.node=t)}else a=t.tagName;if(i.length>0){const s=i.length>1?i:i[0];s&&(o.children=s)}return e.schema=r,e.create(t,a,o,n)}if(t.type==="text")return t.value}function KQe(e,t,n){return r;function r(l,i,o,a){const u=Array.isArray(o.children)?n:t;return a?u(i,o,a):u(i,o)}}function ZQe(e,t){return n;function n(r,l,i,o){const a=Array.isArray(i.children),s=H4(r);return t(l,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function QQe(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:UQe;for(;++r-1&&e.test(String.fromCharCode(n))}}const dJe={'"':"quot","&":"amp","<":"lt",">":"gt"};function fJe(e){return e.replace(/["&<>]/g,t);function t(n){return"&"+dJe[n]+";"}}function pJe(e,t){const n=fJe(Pc(e||""));if(!t)return n;const r=n.indexOf(":"),l=n.indexOf("?"),i=n.indexOf("#"),o=n.indexOf("/");return r<0||o>-1&&r>o||l>-1&&r>l||i>-1&&r>i||t.test(n.slice(0,r))?n:""}function Pc(e){const t=[];let n=-1,r=0,l=0;for(;++n55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(o=String.fromCharCode(i,a),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}const hJe={};function mJe(e,t){const n=hJe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return KY(e,r,l)}function KY(e,t,n){if(gJe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return RI(e.children,t,n)}return Array.isArray(e)?RI(e,t,n):""}function RI(e,t,n){const r=[];let l=-1;for(;++ll?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(Sl(e,e.length,0,t),e):t}const II={}.hasOwnProperty;function vJe(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}function Md(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function zr(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return wr(s)?(e.enter(n),a(s)):t(s)}function a(s){return wr(s)&&i++o))return;const T=t.events.length;let k=T,S,C;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(S){C=t.events[k][1].end;break}S=!0}for(v(r),x=T;xy;){const _=n[w];t.containerState=_[1],_[0].exit.call(t,e)}n.length=y}function h(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function kJe(e,t,n){return zr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function NI(e){if(e===null||$o(e)||cJe(e))return 1;if(uJe(e))return 2}function Y4(e,t,n){const r=[];let l=-1;for(;++l1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);FI(d,-s),FI(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},a.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=pi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=pi(u,[["enter",l,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=pi(u,Y4(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=pi(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=pi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Sl(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&wr(x)?zr(e,h,"linePrefix",i+1)(x):h(x)}function h(x){return x===null||Vn(x)?e.check(jI,g,w)(x):(e.enter("codeFlowValue"),y(x))}function y(x){return x===null||Vn(x)?(e.exit("codeFlowValue"),h(x)):(e.consume(x),y)}function w(x){return e.exit("codeFenced"),t(x)}function _(x,T,k){let S=0;return C;function C(E){return x.enter("lineEnding"),x.consume(E),x.exit("lineEnding"),M}function M(E){return x.enter("codeFencedFence"),wr(E)?zr(x,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):O(E)}function O(E){return E===a?(x.enter("codeFencedFenceSequence"),D(E)):k(E)}function D(E){return E===a?(S++,x.consume(E),D):S>=o?(x.exit("codeFencedFenceSequence"),wr(E)?zr(x,P,"whitespace")(E):P(E)):k(E)}function P(E){return E===null||Vn(E)?(x.exit("codeFencedFence"),T(E)):k(E)}}}function $Je(e,t,n){const r=this;return l;function l(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const IT={name:"codeIndented",tokenize:FJe},NJe={tokenize:jJe,partial:!0};function FJe(e,t,n){const r=this;return l;function l(u){return e.enter("codeIndented"),zr(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):Vn(u)?e.attempt(NJe,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Vn(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function jJe(e,t,n){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?n(o):Vn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):zr(e,i,"linePrefix",5)(o)}function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):Vn(o)?l(o):n(o)}}const zJe={name:"codeText",tokenize:qJe,resolve:BJe,previous:WJe};function BJe(e){let t=e.length-4,n=3,r,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function nX(e,t,n,r,l,i,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(v),e.exit(i),f):v===null||v===32||v===41||$S(v)?n(v):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(v))}function f(v){return v===62?(e.enter(i),e.consume(v),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(a),f(v)):v===null||v===60||Vn(v)?n(v):(e.consume(v),v===92?m:p)}function m(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function g(v){return!c&&(v===null||v===41||$o(v))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(v)):c999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(l),e.consume(p),e.exit(l),e.exit(r),t):Vn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||Vn(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!wr(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function aX(e,t,n,r,l,i){let o;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(l),e.consume(f),e.exit(l),o=f===40?41:f,s):n(f)}function s(f){return f===o?(e.enter(l),e.consume(f),e.exit(l),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),s(o)):f===null?n(f):Vn(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),zr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||Vn(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(e.consume(f),c):c(f)}}function zh(e,t){let n;return r;function r(l){return Vn(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):wr(l)?zr(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const KJe={name:"definition",tokenize:QJe},ZJe={tokenize:JJe,partial:!0};function QJe(e,t,n){const r=this;let l;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return rX.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return l=Md(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return $o(p)?zh(e,u)(p):u(p)}function u(p){return nX(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(ZJe,d,d)(p)}function d(p){return wr(p)?zr(e,f,"whitespace")(p):f(p)}function f(p){return p===null||Vn(p)?(e.exit("definition"),r.parser.defined.push(l),t(p)):n(p)}}function JJe(e,t,n){return r;function r(a){return $o(a)?zh(e,l)(a):n(a)}function l(a){return aX(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return wr(a)?zr(e,o,"whitespace")(a):o(a)}function o(a){return a===null||Vn(a)?t(a):n(a)}}const eet={name:"hardBreakEscape",tokenize:tet};function tet(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return Vn(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const net={name:"headingAtx",tokenize:aet,resolve:ret};function ret(e,t){let n=e.length-2,r=3,l,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Sl(e,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),e}function aet(e,t,n){let r=0;return l;function l(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||$o(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||Vn(c)?(e.exit("atxHeading"),t(c)):wr(c)?zr(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||$o(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const oet=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],BI=["pre","script","style","textarea"],iet={name:"htmlFlow",tokenize:det,resolveTo:cet,concrete:!0},set={tokenize:pet,partial:!0},uet={tokenize:fet,partial:!0};function cet(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function det(e,t,n){const r=this;let l,i,o,a,s;return u;function u(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),f):R===47?(e.consume(R),i=!0,g):R===63?(e.consume(R),l=3,r.interrupt?t:z):pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function f(R){return R===45?(e.consume(R),l=2,p):R===91?(e.consume(R),l=5,a=0,m):pl(R)?(e.consume(R),l=4,r.interrupt?t:z):n(R)}function p(R){return R===45?(e.consume(R),r.interrupt?t:z):n(R)}function m(R){const q="CDATA[";return R===q.charCodeAt(a++)?(e.consume(R),a===q.length?r.interrupt?t:O:m):n(R)}function g(R){return pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function b(R){if(R===null||R===47||R===62||$o(R)){const q=R===47,Y=o.toLowerCase();return!q&&!i&&BI.includes(Y)?(l=1,r.interrupt?t(R):O(R)):oet.includes(o.toLowerCase())?(l=6,q?(e.consume(R),v):r.interrupt?t(R):O(R)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?h(R):y(R))}return R===45||Xo(R)?(e.consume(R),o+=String.fromCharCode(R),b):n(R)}function v(R){return R===62?(e.consume(R),r.interrupt?t:O):n(R)}function h(R){return wr(R)?(e.consume(R),h):C(R)}function y(R){return R===47?(e.consume(R),C):R===58||R===95||pl(R)?(e.consume(R),w):wr(R)?(e.consume(R),y):C(R)}function w(R){return R===45||R===46||R===58||R===95||Xo(R)?(e.consume(R),w):_(R)}function _(R){return R===61?(e.consume(R),x):wr(R)?(e.consume(R),_):y(R)}function x(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),s=R,T):wr(R)?(e.consume(R),x):k(R)}function T(R){return R===s?(e.consume(R),s=null,S):R===null||Vn(R)?n(R):(e.consume(R),T)}function k(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||$o(R)?_(R):(e.consume(R),k)}function S(R){return R===47||R===62||wr(R)?y(R):n(R)}function C(R){return R===62?(e.consume(R),M):n(R)}function M(R){return R===null||Vn(R)?O(R):wr(R)?(e.consume(R),M):n(R)}function O(R){return R===45&&l===2?(e.consume(R),I):R===60&&l===1?(e.consume(R),A):R===62&&l===4?(e.consume(R),B):R===63&&l===3?(e.consume(R),z):R===93&&l===5?(e.consume(R),j):Vn(R)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(set,N,D)(R)):R===null||Vn(R)?(e.exit("htmlFlowData"),D(R)):(e.consume(R),O)}function D(R){return e.check(uet,P,N)(R)}function P(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),E}function E(R){return R===null||Vn(R)?D(R):(e.enter("htmlFlowData"),O(R))}function I(R){return R===45?(e.consume(R),z):O(R)}function A(R){return R===47?(e.consume(R),o="",F):O(R)}function F(R){if(R===62){const q=o.toLowerCase();return BI.includes(q)?(e.consume(R),B):O(R)}return pl(R)&&o.length<8?(e.consume(R),o+=String.fromCharCode(R),F):O(R)}function j(R){return R===93?(e.consume(R),z):O(R)}function z(R){return R===62?(e.consume(R),B):R===45&&l===2?(e.consume(R),z):O(R)}function B(R){return R===null||Vn(R)?(e.exit("htmlFlowData"),N(R)):(e.consume(R),B)}function N(R){return e.exit("htmlFlow"),t(R)}}function fet(e,t,n){const r=this;return l;function l(o){return Vn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function pet(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(y2,t,n)}}const het={name:"htmlText",tokenize:met};function met(e,t,n){const r=this;let l,i,o;return a;function a(z){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(z),s}function s(z){return z===33?(e.consume(z),u):z===47?(e.consume(z),_):z===63?(e.consume(z),y):pl(z)?(e.consume(z),k):n(z)}function u(z){return z===45?(e.consume(z),c):z===91?(e.consume(z),i=0,m):pl(z)?(e.consume(z),h):n(z)}function c(z){return z===45?(e.consume(z),p):n(z)}function d(z){return z===null?n(z):z===45?(e.consume(z),f):Vn(z)?(o=d,A(z)):(e.consume(z),d)}function f(z){return z===45?(e.consume(z),p):d(z)}function p(z){return z===62?I(z):z===45?f(z):d(z)}function m(z){const B="CDATA[";return z===B.charCodeAt(i++)?(e.consume(z),i===B.length?g:m):n(z)}function g(z){return z===null?n(z):z===93?(e.consume(z),b):Vn(z)?(o=g,A(z)):(e.consume(z),g)}function b(z){return z===93?(e.consume(z),v):g(z)}function v(z){return z===62?I(z):z===93?(e.consume(z),v):g(z)}function h(z){return z===null||z===62?I(z):Vn(z)?(o=h,A(z)):(e.consume(z),h)}function y(z){return z===null?n(z):z===63?(e.consume(z),w):Vn(z)?(o=y,A(z)):(e.consume(z),y)}function w(z){return z===62?I(z):y(z)}function _(z){return pl(z)?(e.consume(z),x):n(z)}function x(z){return z===45||Xo(z)?(e.consume(z),x):T(z)}function T(z){return Vn(z)?(o=T,A(z)):wr(z)?(e.consume(z),T):I(z)}function k(z){return z===45||Xo(z)?(e.consume(z),k):z===47||z===62||$o(z)?S(z):n(z)}function S(z){return z===47?(e.consume(z),I):z===58||z===95||pl(z)?(e.consume(z),C):Vn(z)?(o=S,A(z)):wr(z)?(e.consume(z),S):I(z)}function C(z){return z===45||z===46||z===58||z===95||Xo(z)?(e.consume(z),C):M(z)}function M(z){return z===61?(e.consume(z),O):Vn(z)?(o=M,A(z)):wr(z)?(e.consume(z),M):S(z)}function O(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),l=z,D):Vn(z)?(o=O,A(z)):wr(z)?(e.consume(z),O):(e.consume(z),P)}function D(z){return z===l?(e.consume(z),l=void 0,E):z===null?n(z):Vn(z)?(o=D,A(z)):(e.consume(z),D)}function P(z){return z===null||z===34||z===39||z===60||z===61||z===96?n(z):z===47||z===62||$o(z)?S(z):(e.consume(z),P)}function E(z){return z===47||z===62||$o(z)?S(z):n(z)}function I(z){return z===62?(e.consume(z),e.exit("htmlTextData"),e.exit("htmlText"),t):n(z)}function A(z){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),F}function F(z){return wr(z)?zr(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):j(z)}function j(z){return e.enter("htmlTextData"),o(z)}}const X4={name:"labelEnd",tokenize:wet,resolveTo:xet,resolveAll:bet},get={tokenize:_et},vet={tokenize:Tet},yet={tokenize:ket};function bet(e){let t=-1;for(;++t=3&&(u===null||Vn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===l?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),wr(u)?zr(e,a,"whitespace")(u):a(u))}}const Co={name:"list",tokenize:Let,continuation:{tokenize:Iet},exit:Net},Eet={tokenize:Fet,partial:!0},Ret={tokenize:$et,partial:!0};function Let(e,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,o=0;return a;function a(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:NS(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(xv,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return NS(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(y2,r.interrupt?n:c,e.attempt(Eet,f,d))}function c(p){return r.containerState.initialBlankLine=!0,i++,f(p)}function d(p){return wr(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Iet(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(y2,l,i);function l(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,zr(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!wr(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ret,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,zr(e,e.attempt(Co,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function $et(e,t,n){const r=this;return zr(e,l,"listItemIndent",r.containerState.size+1);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function Net(e){e.exit(this.containerState.type)}function Fet(e,t,n){const r=this;return zr(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const o=r.events[r.events.length-1];return!wr(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const WI={name:"setextUnderline",tokenize:zet,resolveTo:jet};function jet(e,t){let n=e.length,r,l,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function zet(e,t,n){const r=this;let l;return i;function i(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),l=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===l?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),wr(u)?zr(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||Vn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Bet={tokenize:Wet};function Wet(e){const t=this,n=e.attempt(y2,r,e.attempt(this.parser.constructs.flowInitial,l,zr(e,e.attempt(this.parser.constructs.flow,l,e.attempt(HJe,l)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const qet={resolveAll:iX()},Uet=oX("string"),Het=oX("text");function oX(e){return{tokenize:t,resolveAll:iX(e==="text"?Vet:void 0)};function t(n){const r=this,l=this.parser.constructs[e],i=n.attempt(l,o,a);return o;function o(c){return u(c)?i(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=l[c];let f=-1;if(d)for(;++f-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}i>0&&o.push(e[l].slice(0,i))}return o}function Xet(e,t){let n=-1;const r=[];let l;for(;++n0){var R=w.filter(function(Y){var L=Y.on;return L==="hover"}),q=R.reduce(function(Y,L){return mv({},Y,L.style)},{});k(q)}h!==void 0&&h(o,N)},[h,o,w]),O=ge.useCallback(function(){if(w.length>0){var N=w.filter(function(q){var Y=q.on;return Y!=="hover"}),R=N.reduce(function(q,Y){return mv({},q,Y.style)},{});k(R)}y!==void 0&&y(o,event)},[y,o,w]),D=bG({direction:a,justify:s,symbolSize:T.symbolSize||p,symbolSpacing:m,width:l,height:i}),P=D.symbolX,E=D.symbolY,I=D.labelX,A=D.labelY,F=D.labelAnchor,j=D.labelAlignment,z=[v,h,y].some(function(N){return N!==void 0}),B;return Cm(f)?B=f:B=HWe[f],Qe.createElement("g",{transform:"translate(".concat(n,",").concat(r,")"),style:{opacity:T.itemOpacity!==void 0?T.itemOpacity:d}},Qe.createElement("rect",{width:l,height:i,fill:T.itemBackground||c,style:{cursor:z?"pointer":"auto"},onClick:C,onMouseEnter:M,onMouseLeave:O}),Qe.createElement(B,{id:o.id,x:P,y:E,size:T.symbolSize||p,fill:o.fill||o.color,borderWidth:T.symbolBorderWidth!==void 0?T.symbolBorderWidth:g,borderColor:T.symbolBorderColor||b}),Qe.createElement("text",{textAnchor:F,style:mv({},S.legends.text,{fill:T.itemTextColor||u,dominantBaseline:j,pointerEvents:"none",userSelect:"none"}),x:I,y:A},o.label))};Rs.displayName="LegendSvgItem";Rs.propTypes=mv({data:o2.isRequired,x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired,textColor:le.string,background:le.string,opacity:le.number,direction:le.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:le.bool.isRequired},r2,a2);Rs.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function VWe(e){for(var t=1;t=lqe){var u=t?null:oqe(e);if(u)return iqe(u);o=!1,l=aqe,s=new tqe}else s=t?[]:a;e:for(;++rt||i&&o&&s&&!a&&!u||r&&o&&s||!n&&s||!l)return 1;if(!r&&!i&&!u&&e=a)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var PUe=MUe,PT=Zb,OUe=fg,AUe=P4,DUe=wUe,EUe=TUe,RUe=_f,LUe=PUe,IUe=yc,$Ue=_o;function NUe(e,t,n){t.length?t=PT(t,function(i){return $Ue(i)?function(o){return OUe(o,i.length===1?i[0]:i)}:i}):t=[IUe];var r=-1;t=PT(t,RUe(AUe));var l=DUe(e,function(i,o,a){var s=PT(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return EUe(l,function(i,o){return LUe(i,o,n)})}var FUe=NUe,jUe=HP,zUe=FUe,BUe=Kb,VL=aP,WUe=BUe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&VL(e,t[0],t[1])?t=[]:n>2&&VL(t[0],t[1],t[2])&&(t=[t[0]]),zUe(e,jUe(t,1),[])}),qUe=WUe;const UUe=lr(qUe);var HUe=fs,VUe=oi,GUe="[object Date]";function YUe(e){return VUe(e)&&HUe(e)==GUe}var XUe=YUe,KUe=XUe,ZUe=_f,GL=Xb,YL=GL&&GL.isDate,QUe=YL?ZUe(YL):KUe,JUe=QUe;const eHe=lr(JUe);var tHe=function(t,n,r,l){var i=t.axis,o=t.min,a=o===void 0?0:o,s=t.max,u=s===void 0?"auto":s,c=t.stacked,d=c===void 0?!1:c,f=t.reverse,p=f===void 0?!1:f,m=n[i],g=i==="x"?r:l,b=a;a==="auto"&&(b=d===!0?m.minStacked:m.min);var v=u;u==="auto"&&(v=d===!0?m.maxStacked:m.max);var h=Ju().rangeRound(i==="x"?[0,g]:[g,0]);return p===!0?h.domain([v,b]):h.domain([b,v]),h.type="linear",h.stacked=d,h},nHe={type:le.oneOf(["linear"]).isRequired,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number]),stacked:le.bool,reverse:le.bool},rHe=function(t,n,r,l){var i=t.axis,o=t.base,a=o===void 0?10:o,s=t.min,u=s===void 0?"auto":s,c=t.max,d=c===void 0?"auto":c,f=n[i],p=i==="x"?r:l,m=f.all.some(function(w){return w===0}),g,b=!1;if(f.all.forEach(function(w){b!==!0&&(g===void 0?g=Math.sign(w):Math.sign(w)!==g&&(b=!0))}),m||b)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` +`));var v=u;u==="auto"&&(v=f.min);var h=d;d==="auto"&&(h=f.max);var y=FU().domain([v,h]).rangeRound(i==="x"?[0,p]:[p,0]).base(a).nice();return y.type="log",y},aHe={type:le.oneOf(["log"]).isRequired,base:le.number,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number])},oHe=function(t,n,r,l){var i=t.axis,o=n[i],a=i==="x"?r:l,s=KAe().range([0,a]).domain(o.all);return s.type="point",s},iHe={type:le.oneOf(["point"]).isRequired},El;function gu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O4="millisecond",PG="second",OG="minute",AG="hour",DG="day",EG="month",RG="year",lHe=[O4,PG,OG,AG,DG,EG,RG],Uc=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],sHe=(El={},gu(El,O4,[]),gu(El,PG,Uc.slice(0,1)),gu(El,OG,Uc.slice(0,2)),gu(El,AG,Uc.slice(0,3)),gu(El,DG,Uc.slice(0,4)),gu(El,EG,Uc.slice(0,5)),gu(El,RG,Uc.slice(0,6)),El),uHe=function(t){return function(n){return sHe[t].forEach(function(r){r(n)}),n}},LG=function(t){var n=t.format,r=n===void 0?"native":n,l=t.precision,i=l===void 0?"millisecond":l,o=t.useUTC,a=o===void 0?!0:o,s=uHe(i);if(r==="native")return function(c){return s(c)};var u=a?qH(r):WH(r);return function(c){return s(u(c))}},cHe=function(t,n,r,l){var i=t.axis,o=t.format,a=o===void 0?"native":o,s=t.precision,u=s===void 0?O4:s,c=t.min,d=c===void 0?"auto":c,f=t.max,p=f===void 0?"auto":f,m=t.useUTC,g=m===void 0?!0:m,b=n[i],v=i==="x"?r:l,h=LG({format:a,precision:u,useUTC:g}),y=d;d==="auto"?y=b.min:a!=="native"&&(y=h(d));var w=p;p==="auto"?w=b.max:a!=="native"&&(w=h(p));var _=g?o7e():a7e();return _.domain([y,w]).range([0,v]),_.type="time",_.useUTC=g,_},dHe={type:le.oneOf(["time"]).isRequired,format:le.string,precision:le.oneOf(lHe)};function Hy(e){return hHe(e)||pHe(e)||fHe()}function fHe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function pHe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function hHe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},i=l.getValue,o=i===void 0?function(p){return p.data[n]}:i,a=l.setValue,s=a===void 0?function(p,m){p.data[n]=m}:a;if(r.type==="linear")t.forEach(function(p){p.data.forEach(function(m){s(m,o(m)===null?null:parseFloat(o(m)))})});else if(r.type==="time"&&r.format!=="native"){var u=LG(r);t.forEach(function(p){p.data.forEach(function(m){s(m,o(m)===null?null:u(o(m)))})})}var c=[];t.forEach(function(p){p.data.forEach(function(m){c.push(o(m))})});var d,f;return r.type==="linear"?(c=UL(c),c=UUe(c,function(p){return p}),d=Math.min.apply(Math,Hy(c)),f=Math.max.apply(Math,Hy(c))):r.type==="time"?(c=$m(c,function(p){return p.getTime()}),c=c.slice(0).sort(function(p,m){return m-p}).reverse(),d=c[0],f=$n(c)):(c=UL(c),d=c[0],f=$n(c)),{all:c,min:d,max:f}},$G=function(t,n,r,l){var i=gHe(t),o=[];r[i].all.forEach(function(a){var s=eHe(a)?yHe:vHe,u=[];l.forEach(function(c){var d=c.data.find(function(g){return s(g.data[i],a)}),f=null,p=null;if(d!==void 0){if(f=d.data[t],f!==null){var m=$n(u);m===void 0?p=f:m!==null&&(p=m+f)}d.data["".concat(t,"Stacked")]=p}u.push(p),o.push(p)})}),o=o.filter(function(a){return a!==null}),r[t].minStacked=Math.min.apply(Math,Hy(o)),r[t].maxStacked=Math.max.apply(Math,Hy(o))},xHe=function(t,n,r){return $G("x",t,n,r)},wHe=function(t,n,r){return $G("y",t,n,r)},Vy=le.oneOfType([le.shape(nHe),le.shape(iHe),le.shape(dHe),le.shape(aHe)]);const ZL=Math.pow(2,-52),O0=new Uint32Array(512);class Gy{static from(t,n=CHe,r=MHe){const l=t.length,i=new Float64Array(l*2);for(let o=0;o>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:l,_hullHash:i}=this,o=t.length>>1;let a=1/0,s=1/0,u=-1/0,c=-1/0;for(let C=0;Cu&&(u=M),O>c&&(c=O),this._ids[C]=C}const d=(a+u)/2,f=(s+c)/2;let p=1/0,m,g,b;for(let C=0;C0&&(g=C,p=M)}let y=t[2*g],w=t[2*g+1],_=1/0;for(let C=0;CD&&(C[M++]=P,D=this._dists[P])}this.hull=C.subarray(0,M),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(A0(v,h,y,w,x,T)){const C=g,M=y,O=w;g=b,y=x,w=T,b=C,x=M,T=O}const k=SHe(v,h,y,w,x,T);this._cx=k.x,this._cy=k.y;for(let C=0;C0&&Math.abs(P-M)<=ZL&&Math.abs(E-O)<=ZL||(M=P,O=E,D===m||D===g||D===b))continue;let I=0;for(let B=0,N=this._hashKey(P,E);B0?3-n:1+n)/4}function OT(e,t,n,r){const l=e-n,i=t-r;return l*l+i*i}function AT(e,t,n,r,l,i){const o=(r-t)*(l-e),a=(n-e)*(i-t);return Math.abs(o-a)>=33306690738754716e-32*Math.abs(o+a)?o-a:0}function A0(e,t,n,r,l,i){return(AT(l,i,e,t,n,r)||AT(e,t,n,r,l,i)||AT(n,r,l,i,e,t))<0}function THe(e,t,n,r,l,i,o,a){const s=e-o,u=t-a,c=n-o,d=r-a,f=l-o,p=i-a,m=s*s+u*u,g=c*c+d*d,b=f*f+p*p;return s*(d*b-g*p)-u*(c*b-g*f)+m*(c*p-d*f)<0}function kHe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=(u*c-a*d)*f,m=(o*d-s*c)*f;return p*p+m*m}function SHe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=e+(u*c-a*d)*f,m=t+(o*d-s*c)*f;return{x:p,y:m}}function dd(e,t,n,r){if(r-n<=20)for(let l=n+1;l<=r;l++){const i=e[l],o=t[i];let a=l-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=i}else{const l=n+r>>1;let i=n+1,o=r;eh(e,l,i),t[e[n]]>t[e[r]]&&eh(e,n,r),t[e[i]]>t[e[r]]&&eh(e,i,r),t[e[n]]>t[e[i]]&&eh(e,n,i);const a=e[i],s=t[a];for(;;){do i++;while(t[e[i]]s);if(o=o-n?(dd(e,t,i,r),dd(e,t,n,o-1)):(dd(e,t,n,o-1),dd(e,t,i,r))}}function eh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function CHe(e){return e[0]}function MHe(e){return e[1]}const QL=1e-6;class Nu{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const l=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${l},${i}`:(Math.abs(this._x1-l)>QL||Math.abs(this._y1-i)>QL)&&(this._+="L"+l+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=l},${this._y1=i}`)}rect(t,n,r,l){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+l}h${-r}Z`}value(){return this._||null}}class xS{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}let PHe=class{constructor(t,[n,r,l,i]=[0,0,960,500]){if(!((l=+l)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=l,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:l}=this,i=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let p=0,m=0,g=r.length,b,v;p1;)i-=2;for(let o=2;o4)for(let o=0;o0){if(n>=this.ymax)return null;(o=(this.ymax-n)/l)0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)this.xmax?2:0)|(nthis.ymax?8:0)}};const OHe=2*Math.PI,Hc=Math.pow;function AHe(e){return e[0]}function DHe(e){return e[1]}function EHe(e){const{triangles:t,coords:n}=e;for(let r=0;r1e-10)return!1}return!0}function RHe(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class s2{static from(t,n=AHe,r=DHe,l){return new s2("length"in t?LHe(t,n,r,l):Float64Array.from(IHe(t,n,r,l)))}constructor(t){this._delaunator=new Gy(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&EHe(t)){this.collinear=Int32Array.from({length:n.length/2},(f,p)=>p).sort((f,p)=>n[2*f]-n[2*p]||n[2*f+1]-n[2*p+1]);const s=this.collinear[0],u=this.collinear[this.collinear.length-1],c=[n[2*s],n[2*s+1],n[2*u],n[2*u+1]],d=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let f=0,p=n.length/2;f0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=l[0],this.triangles[1]=l[1],this.triangles[2]=l[1],o[l[0]]=1,l.length===2&&(o[l[1]]=0))}voronoi(t){return new PHe(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:l,halfedges:i,triangles:o,collinear:a}=this;if(a){const d=a.indexOf(t);d>0&&(yield a[d-1]),d=0&&i!==r&&i!==l;)r=i;return i}_step(t,n,r){const{inedges:l,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:u}=this;if(l[t]===-1||!u.length)return(t+1)%(u.length>>1);let c=t,d=Hc(n-u[t*2],2)+Hc(r-u[t*2+1],2);const f=l[t];let p=f;do{let m=s[p];const g=Hc(n-u[m*2],2)+Hc(r-u[m*2+1],2);if(g0&&(de.lineWidth=U.grid.line.strokeWidth,de.strokeStyle=U.grid.line.stroke,T&&tf(de,{width:q,height:Y,scale:re,axis:"x",values:k}),S&&tf(de,{width:q,height:Y,scale:ae,axis:"y",values:C})),_e==="axes"&&s4(de,{xScale:re,yScale:ae,width:q,height:Y,top:M,right:O,bottom:D,left:P,theme:U}),_e==="areas"&&g===!0&&(de.save(),de.globalAlpha=v,X.context(de),Q.forEach(function(pe){de.fillStyle=pe.color,de.beginPath(),X(pe.data.map(function(xe){return xe.position})),de.fill()}),de.restore()),_e==="lines"&&(G.context(de),Q.forEach(function(pe){de.strokeStyle=pe.color,de.lineWidth=m,de.beginPath(),G(pe.data.map(function(xe){return xe.position})),de.stroke()})),_e==="points"&&h===!0&&y>0&&ie.forEach(function(pe){de.fillStyle=pe.color,de.beginPath(),de.arc(pe.x,pe.y,y/2,0,2*Math.PI),de.fill(),_>0&&(de.strokeStyle=pe.borderColor,de.lineWidth=_,de.stroke())}),_e==="mesh"&&A===!0&&(FG(de,Se),ee&&jG(de,Se,ee.index)),_e==="legends"){var ue=Q.map(function(pe){return{id:pe.id,label:pe.id,color:pe.color}}).reverse();E.forEach(function(pe){M4(de,kVe({},pe,{data:pe.data||ue,containerWidth:q,containerHeight:Y,theme:U}))})}})},[B,L,W,f,U,G,Q,re,ae,T,k,S,C,M,O,D,P,E,ie,h,y,ee]);var Oe=ge.useCallback(function(de){var _e=Lm(B.current,de),ue=aI(_e,2),pe=ue[0],xe=ue[1];if(!ZP(R.left,R.top,q,Y,pe,xe))return null;var ye=he.find(pe-R.left,xe-R.top);return ie[ye]},[B,R,q,Y,he]),Pe=mf(),Me=Pe.showTooltipFromEvent,ce=Pe.hideTooltip,we=ge.useCallback(function(de){var _e=Oe(de);H(_e),_e?Me(Qe.createElement(z,{point:_e}),de):ce()},[Oe,H,Me,ce,z]),K=ge.useCallback(function(de){ce(),H(null),ee&&F&&F(ee,de)},[ce,H,F]),ne=ge.useCallback(function(de){if(j){var _e=Oe(de);_e&&j(_e,de)}},[Oe,j]);return Qe.createElement("canvas",{ref:B,width:L*i,height:W*i,style:{width:L,height:W,cursor:I?"auto":"normal"},onMouseEnter:I?we:void 0,onMouseMove:I?we:void 0,onMouseLeave:I?K:void 0,onClick:I?ne:void 0})};R4.propTypes=JHe;R4.defaultProps=eVe;var OVe=Gx(R4);function TS(){return TS=Object.assign||function(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(AVe,{data:[{id:"1",data:e.data[e.xField].map((t,n)=>({x:t,y:e.data[e.yField][n]}))}],margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})}),EVe=DVe;var RVe=MG;function LVe(e,t){var n=[];return RVe(e,function(r,l,i){t(r,l,i)&&n.push(r)}),n}var IVe=LVe,$Ve=GH,NVe=IVe,FVe=P4,jVe=_o;function zVe(e,t){var n=jVe(e)?$Ve:NVe;return n(e,FVe(t))}var BVe=zVe;const WVe=lr(BVe);var qVe=Tf,UVe=gg;function HVe(e,t){return e&&qVe(t,UVe(t),e)}var VVe=HVe,GVe=Tf,YVe=dg;function XVe(e,t){return e&&GVe(t,YVe(t),e)}var KVe=XVe,ZVe=Tf,QVe=jP;function JVe(e,t){return ZVe(e,QVe(e),t)}var eGe=JVe,tGe=FP,nGe=K5,rGe=jP,aGe=YH,oGe=Object.getOwnPropertySymbols,iGe=oGe?function(e){for(var t=[];e;)tGe(t,rGe(e)),e=nGe(e);return t}:aGe,JG=iGe,lGe=Tf,sGe=JG;function uGe(e,t){return lGe(e,sGe(e),t)}var cGe=uGe,dGe=VH,fGe=JG,pGe=dg;function hGe(e){return dGe(e,pGe,fGe)}var eY=hGe,mGe=Object.prototype,gGe=mGe.hasOwnProperty;function vGe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&gGe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var yGe=vGe,bGe=X5;function xGe(e,t){var n=t?bGe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var wGe=xGe,_Ge=/\w*$/;function TGe(e){var t=new e.constructor(e.source,_Ge.exec(e));return t.lastIndex=e.lastIndex,t}var kGe=TGe,oI=vf,iI=oI?oI.prototype:void 0,lI=iI?iI.valueOf:void 0;function SGe(e){return lI?Object(lI.call(e)):{}}var CGe=SGe,MGe=X5,PGe=wGe,OGe=kGe,AGe=CGe,DGe=dU,EGe="[object Boolean]",RGe="[object Date]",LGe="[object Map]",IGe="[object Number]",$Ge="[object RegExp]",NGe="[object Set]",FGe="[object String]",jGe="[object Symbol]",zGe="[object ArrayBuffer]",BGe="[object DataView]",WGe="[object Float32Array]",qGe="[object Float64Array]",UGe="[object Int8Array]",HGe="[object Int16Array]",VGe="[object Int32Array]",GGe="[object Uint8Array]",YGe="[object Uint8ClampedArray]",XGe="[object Uint16Array]",KGe="[object Uint32Array]";function ZGe(e,t,n){var r=e.constructor;switch(t){case zGe:return MGe(e);case EGe:case RGe:return new r(+e);case BGe:return PGe(e,n);case WGe:case qGe:case UGe:case HGe:case VGe:case GGe:case YGe:case XGe:case KGe:return DGe(e,n);case LGe:return new r;case IGe:case FGe:return new r(e);case $Ge:return OGe(e);case NGe:return new r;case jGe:return AGe(e)}}var QGe=ZGe,JGe=Lx,eYe=oi,tYe="[object Map]";function nYe(e){return eYe(e)&&JGe(e)==tYe}var rYe=nYe,aYe=rYe,oYe=_f,sI=Xb,uI=sI&&sI.isMap,iYe=uI?oYe(uI):aYe,lYe=iYe,sYe=Lx,uYe=oi,cYe="[object Set]";function dYe(e){return uYe(e)&&sYe(e)==cYe}var fYe=dYe,pYe=fYe,hYe=_f,cI=Xb,dI=cI&&cI.isSet,mYe=dI?hYe(dI):pYe,gYe=mYe,vYe=Ub,yYe=mV,bYe=tP,xYe=VVe,wYe=KVe,_Ye=uU,TYe=Hb,kYe=eGe,SYe=cGe,CYe=XH,MYe=eY,PYe=Lx,OYe=yGe,AYe=QGe,DYe=pU,EYe=_o,RYe=Yb,LYe=lYe,IYe=Oi,$Ye=gYe,NYe=gg,FYe=dg,jYe=1,zYe=2,BYe=4,tY="[object Arguments]",WYe="[object Array]",qYe="[object Boolean]",UYe="[object Date]",HYe="[object Error]",nY="[object Function]",VYe="[object GeneratorFunction]",GYe="[object Map]",YYe="[object Number]",rY="[object Object]",XYe="[object RegExp]",KYe="[object Set]",ZYe="[object String]",QYe="[object Symbol]",JYe="[object WeakMap]",eXe="[object ArrayBuffer]",tXe="[object DataView]",nXe="[object Float32Array]",rXe="[object Float64Array]",aXe="[object Int8Array]",oXe="[object Int16Array]",iXe="[object Int32Array]",lXe="[object Uint8Array]",sXe="[object Uint8ClampedArray]",uXe="[object Uint16Array]",cXe="[object Uint32Array]",Nr={};Nr[tY]=Nr[WYe]=Nr[eXe]=Nr[tXe]=Nr[qYe]=Nr[UYe]=Nr[nXe]=Nr[rXe]=Nr[aXe]=Nr[oXe]=Nr[iXe]=Nr[GYe]=Nr[YYe]=Nr[rY]=Nr[XYe]=Nr[KYe]=Nr[ZYe]=Nr[QYe]=Nr[lXe]=Nr[sXe]=Nr[uXe]=Nr[cXe]=!0;Nr[HYe]=Nr[nY]=Nr[JYe]=!1;function gv(e,t,n,r,l,i){var o,a=t&jYe,s=t&zYe,u=t&BYe;if(n&&(o=l?n(e,r,l,i):n(e)),o!==void 0)return o;if(!IYe(e))return e;var c=EYe(e);if(c){if(o=OYe(e),!a)return TYe(e,o)}else{var d=PYe(e),f=d==nY||d==VYe;if(RYe(e))return _Ye(e,a);if(d==rY||d==tY||f&&!l){if(o=s||f?{}:DYe(e),!a)return s?SYe(e,wYe(o,e)):kYe(e,xYe(o,e))}else{if(!Nr[d])return l?e:{};o=AYe(e,d,a)}}i||(i=new vYe);var p=i.get(e);if(p)return p;i.set(e,o),$Ye(e)?e.forEach(function(b){o.add(gv(b,t,n,b,e,i))}):LYe(e)&&e.forEach(function(b,v){o.set(v,gv(b,t,n,v,e,i))});var m=u?s?MYe:CYe:s?FYe:NYe,g=c?void 0:m(e);return yYe(g||e,function(b,v){g&&(v=b,b=e[v]),bYe(o,v,gv(b,t,n,v,e,i))}),o}var dXe=gv;function fXe(e,t,n){var r=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(l);++r1),i}),DXe(e,LXe(e),n),r&&(n=PXe(n,IXe|$Xe|NXe,EXe));for(var l=t.length;l--;)OXe(n,t[l]);return n}),jXe=FXe;const aY=lr(jXe);var zXe=le.shape({match:le.oneOfType([le.func,le.object]).isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number,noteTextOffset:le.number,note:le.oneOfType([le.node,le.func]).isRequired,offset:le.number}),Yy={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function BXe(e){for(var t=1;t180?(_-=d,T-=d):T+=d,{points:[[b,v],[m,g],[T,k]],text:[_,x],angle:h+90}},oY=function(t){var n=t.items,r=t.annotations,l=t.getPosition,i=t.getDimensions;return ge.useMemo(function(){return UXe({items:n,annotations:r,getPosition:l,getDimensions:i})},[n,r,l,i])},GXe=function(t){var n=t.type,r=t.containerWidth,l=t.containerHeight,i=t.x,o=t.y,a=t.size,s=t.width,u=t.height,c=t.noteX,d=t.noteY,f=t.noteWidth,p=t.noteTextOffset;return ge.useMemo(function(){return VXe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p})},[n,r,l,i,o,a,s,u,c,d,f,p])};function YXe(e){for(var t=1;t0&&Qe.createElement("text",{x:n,y:r,style:YXe({},i.annotations.text,{strokeLinejoin:"round",strokeWidth:i.annotations.text.outlineWidth*2,stroke:i.annotations.text.outlineColor})},l),Qe.createElement("text",{x:n,y:r,style:aY(i.annotations.text,["outlineWidth","outlineColor"])},l))});Nm.displayName="AnnotationNote";Nm.propTypes={datum:le.object.isRequired,x:le.number.isRequired,y:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};Nm.defaultProps={};function KXe(e){for(var t=1;t0&&Qe.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:fI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Qe.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.outline}))}):Qe.createElement(Qe.Fragment,null,l.annotations.outline.outlineWidth>0&&Qe.createElement("circle",{cx:t,cy:n,r:r/2,style:fI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Qe.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.outline}))});L4.displayName="CircleAnnotationOutline";L4.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};function pI(e){for(var t=1;t0&&Qe.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:pI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Qe.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.symbol}))}):Qe.createElement(Qe.Fragment,null,l.annotations.outline.outlineWidth>0&&Qe.createElement("circle",{cx:t,cy:n,r:r/2,style:pI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Qe.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.symbol}))});p2.displayName="DotAnnotationOutline";p2.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};p2.defaultProps={size:4};function hI(e){for(var t=1;t0&&Qe.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:hI({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Qe.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:i.annotations.outline}))}):Qe.createElement(Qe.Fragment,null,i.annotations.outline.outlineWidth>0&&Qe.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:hI({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Qe.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:i.annotations.outline}))});I4.displayName="RectAnnotationOutline";I4.propTypes={x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired};var bg=ge.memo(function(e){var t=e.datum,n=e.type,r=e.containerWidth,l=e.containerHeight,i=e.x,o=e.y,a=e.size,s=e.width,u=e.height,c=e.noteX,d=e.noteY,f=e.noteWidth,p=e.noteTextOffset,m=e.note,g=Bo(),b=g.animate,v=g.springConfig,h=GXe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p});return Qe.createElement(Qe.Fragment,null,Qe.createElement(Fm,{points:h.points,isOutline:!0}),n==="circle"&&Qe.createElement(L4,{x:i,y:o,size:a}),n==="dot"&&Qe.createElement(p2,{x:i,y:o,size:a}),n==="rect"&&Qe.createElement(I4,{x:i,y:o,width:s,height:u}),Qe.createElement(Fm,{points:h.points}),!b&&Qe.createElement(Nm,{x:h.text[0],y:h.text[1],note:m}),b&&Qe.createElement(rs,{style:{x:zn(h.text[0],v),y:zn(h.text[1],v)}},function(y){return Qe.createElement(Nm,{datum:t,x:y.x,y:y.y,note:m})}))});bg.displayName="Annotation";bg.propTypes={datum:le.object.isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,containerWidth:le.number.isRequired,containerHeight:le.number.isRequired,x:le.number.isRequired,y:le.number.isRequired,size:le.number,width:le.number,height:le.number,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number.isRequired,noteTextOffset:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};bg.defaultProps={noteWidth:Yy.noteWidth,noteTextOffset:Yy.noteTextOffset};function tKe(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(SKe,{data:[{id:"1",data:e.data[e.xField].map((t,n)=>({x:t,y:e.data[e.yField][n]}))}],margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),DKe=AKe;var EKe=kf;function RKe(e,t,n){for(var r=-1,l=e.length;++rt}var WKe=BKe,qKe=vY,UKe=WKe,HKe=yc;function VKe(e){return e&&e.length?qKe(e,HKe,UKe):void 0}var GKe=VKe;const bY=lr(GKe);var YKe=Math.ceil,XKe=Math.max;function KKe(e,t,n,r){for(var l=-1,i=XKe(YKe((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++l]=e,e+=n;return o}var ZKe=KKe,QKe=ZKe,JKe=aP,DT=xV;function eZe(e){return function(t,n,r){return r&&typeof r!="number"&&JKe(t,n,r)&&(n=r=void 0),t=DT(t),n===void 0?(n=t,t=0):n=DT(n),r=r===void 0?t0&&(s=0)),Ju().rangeRound(i).domain([s,a])},pZe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=g2(n,r,[0,s],f),b=a?[0,u]:[u,0],v=wY(n,l,i,o,b),h=(g.bandwidth()-m*(l.length-1))/l.length,y=v(0),w=function(k){return k>0?v(k):y},_=function(k,S){return k>0?y-S:v(k)-y};a&&(w=function(k){return k<0?v(k):y},_=function(k,S){return k<0?y-S:v(k)-y});var x=[];return h>0&&l.forEach(function(T,k){xY(g.domain().length).forEach(function(S){var C=g(r(n[S]))+h*k+m*k,M=w(n[S][T]),O=_(n[S][T],M);if(h>0&&O>0){var D={id:T,value:n[S][T],index:S,indexValue:r(n[S]),data:n[S]};x.push({key:"".concat(T,".").concat(D.indexValue),data:D,x:C,y:M,width:h,height:O,color:c(D)})}})}),{xScale:g,yScale:v,bars:x}},hZe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=a?[s,0]:[0,s],b=wY(n,l,i,o,g),v=g2(n,r,[u,0],f),h=(v.bandwidth()-m*(l.length-1))/l.length,y=b(0),w=function(k){return k>0?y:b(k)},_=function(k,S){return k>0?b(k)-y:y-S};a&&(w=function(k){return k<0?y:b(k)},_=function(k,S){return k<0?b(k)-y:y-S});var x=[];return h>0&&l.forEach(function(T,k){xY(v.domain().length).forEach(function(S){var C=w(n[S][T]),M=v(r(n[S]))+h*k+m*k,O=_(n[S][T],C);if(O>0){var D={id:T,value:n[S][T],index:S,indexValue:r(n[S]),data:n[S]};x.push({key:"".concat(T,".").concat(D.indexValue),data:D,x:C,y:M,width:O,height:h,color:c(D)})}})}),{xScale:b,yScale:v,bars:x}},_Y=function(t){return t.layout==="vertical"?pZe(t):hZe(t)},TY=function(t,n,r,l){var i=uZe(t,2),o=n;o==="auto"&&(o=yY(i));var a=r;return a==="auto"&&(a=bY(i)),Ju().rangeRound(l).domain([o,a])},mZe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=vH().keys(l).offset(LP)(n),b=g2(n,r,[0,s],f),v=a?[0,u]:[u,0],h=TY(g,i,o,v),y=[],w=b.bandwidth(),_=function(k){return h(k[1])},x=function(k,S){return h(k[0])-S};return a&&(_=function(k){return h(k[0])},x=function(k,S){return h(k[1])-S}),w>0&&g.forEach(function(T){b.domain().forEach(function(k,S){var C=T[S],M=b(r(C.data)),O=_(C),D=x(C,O);if(m>0&&(O+=m*.5,D-=m),D>0){var P={id:T.key,value:C.data[T.key],index:S,indexValue:k,data:C.data};y.push({key:"".concat(T.key,".").concat(k),data:P,x:M,y:O,width:w,height:D,color:c(P)})}})}),{xScale:b,yScale:h,bars:y}},gZe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=vH().keys(l).offset(LP)(n),b=a?[s,0]:[0,s],v=TY(g,i,o,b),h=g2(n,r,[u,0],f),y=[],w=h.bandwidth(),_=function(k){return v(k[0])},x=function(k,S){return v(k[1])-S};return a&&(_=function(k){return v(k[1])},x=function(k,S){return v(k[0])-S}),w>0&&g.forEach(function(T){h.domain().forEach(function(k,S){var C=T[S],M=h(r(C.data)),O={id:T.key,value:C.data[T.key],index:S,indexValue:k,data:C.data},D=_(C),P=x(C,D);m>0&&(D+=m*.5,P-=m),P>0&&y.push({key:"".concat(T.key,".").concat(k),data:O,x:D,y:M,width:P,height:w,color:c(O)})})}),{xScale:v,yScale:h,bars:y}},kY=function(t){return t.layout==="vertical"?mZe(t):gZe(t)},vZe=function(t,n,r,l,i){var o=$m(t.map(function(a){return{id:a.data.id,label:a.data.id,color:a.color,fill:a.data.fill}}),function(a){var s=a.id;return s});return(n==="vertical"&&l==="stacked"&&r==="column"&&i!==!0||n==="horizontal"&&l==="stacked"&&i===!0)&&o.reverse(),o},yZe=function(t){return $m(t.map(function(n){return{id:n.data.indexValue,label:n.data.indexValue,color:n.color,fill:n.data.fill}}),function(n){var r=n.id;return r})},bZe=function(t){var n=t.from,r=t.bars,l=t.layout,i=t.direction,o=t.groupMode,a=t.reverse;return n==="indexes"?yZe(r):vZe(r,l,i,o,a)};function PS(e){for(var t=1;t0&&ce0&&we0&&(this.ctx.lineWidth=S.grid.line.strokeWidth,this.ctx.strokeStyle=S.grid.line.stroke,P&&tf(this.ctx,{width:c,height:d,scale:j.xScale,axis:"x",values:E}),I&&tf(this.ctx,{width:c,height:d,scale:j.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var z=$m(j.bars.map(function(N){return{id:N.data.id,label:N.data.id,color:N.color,fill:N.data.fill}}).reverse(),function(N){var R=N.id;return R}),B=$m(j.bars.map(function(N){return{id:N.data.indexValue,label:N.data.indexValue,color:N.color,fill:N.data.fill}}),function(N){var R=N.id;return R});D.forEach(function(N){var R;if(N.dataFrom==="keys"?R=z:N.dataFrom==="indexes"&&(R=B),R===void 0)return null;M4(l.ctx,bI({},N,{data:R,containerWidth:c,containerHeight:d,itemTextColor:"#999",symbolSize:16,theme:S}))}),s4(this.ctx,{xScale:j.xScale,yScale:j.yScale,width:c,height:d,top:_,right:x,bottom:T,left:k,theme:S}),j.bars.forEach(function(N){var R=N.x,q=N.y,Y=N.color,L=N.width,W=N.height;l.ctx.fillStyle=Y,M>0&&(l.ctx.strokeStyle=O(N),l.ctx.lineWidth=M),l.ctx.beginPath(),l.ctx.rect(R,q,L,W),l.ctx.fill(),M>0&&l.ctx.stroke()})}},{key:"render",value:function(){var r=this,l=this.props,i=l.outerWidth,o=l.outerHeight,a=l.pixelRatio,s=l.isInteractive,u=l.theme;return Qe.createElement(Wx,{isInteractive:s,theme:u,animate:!1},function(c){var d=c.showTooltip,f=c.hideTooltip;return Qe.createElement("canvas",{ref:function(m){r.surface=m},width:i*a,height:o*a,style:{width:i,height:o},onMouseEnter:r.handleMouseHover(d,f),onMouseMove:r.handleMouseHover(d,f),onMouseLeave:r.handleMouseLeave(f),onClick:r.handleClick})})}}]),t}(ge.Component);AY.propTypes=CY;var FZe=$P("BarCanvas")(MY(AY));function ES(){return ES=Object.assign||function(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(jZe,{data:e.data[e.xField].map((t,n)=>({id:t,x:e.data[e.yField][n]})),margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),BZe=zZe,WZe=e=>e.type??"graph",_I=(e,t,n)=>{switch(WZe(t)){case"graph":{const r=()=>e.getAdditionGraphData(t.id),l=i=>ke.jsx(ub,{...i,widgetSize:n});return ke.jsx(bk,{func:r,children:l})}case"widget":{const r=()=>e.getAdditionWidgetData(t.id),l=i=>_g(t.id,i);return ke.jsx(bk,{func:r,children:l})}default:return ke.jsx(Hz,{})}},F4=e=>ke.jsx(DM.Consumer,{children:t=>ke.jsxs(Ia,{children:[e.details.parts.length>1?ke.jsx(EM,{tabs:e.details.parts.map(n=>({title:n.title,tab:_I(t,n,e.widgetSize)}))}):_I(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?ke.jsx(ke.Fragment,{}):e.details.insights.map(n=>ke.jsx(jz,{data:n}))]})}),qZe=new Map([["line",(e,t)=>t[e.field]?ke.jsx(EVe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})],["scatter",(e,t)=>t[e.field]?ke.jsx(DKe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})],["histogram",(e,t)=>t[e.field]?ke.jsx(BZe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})]]),TI=e=>e.map(t=>({def:t,gen:qZe.get(t.type??"string")})).map(({def:t,gen:n})=>n?{...t,type:void 0,render:r=>n(t,r)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),UZe=e=>{const[t,n]=ge.useState({open:!1,anchorEl:void 0});return ke.jsxs(Ia,{sx:{width:50},onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),children:[ke.jsx(Xq,{}),ke.jsx(kM,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:ke.jsx(pr,{p:1,children:e.longText})})]})},HZe=e=>{const{columns:t,data:n}=e,r={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return ke.jsx(Qe.Fragment,{children:ke.jsx(xSe,{columns:e.showInfoColumn??!1?[...TI(t),{title:"Info",render:l=>{var i,o,a;return ke.jsx(Qe.Fragment,{children:(i=l.details)!=null&&i.insights?ke.jsx(UZe,{longText:`${(o=l.details)==null?void 0:o.insights[0].title}: ${(a=l.details)==null?void 0:a.insights[0].text}`}):ke.jsx("div",{})})},width:50}]:[...TI(t)],data:n,detailPanel:({rowData:l})=>l.graphId?ke.jsx(SSe,{graphId:l.graphId,widgetSize:e.widgetSize}):l.details?ke.jsx(F4,{details:l.details,widgetSize:e.widgetSize}):null,options:r})})},VZe=e=>ke.jsx(EM,{tabs:e.tabs.map(t=>({title:t.title,tab:_g(e.id+"1",t.widget)}))});var j4={},GZe=Cn;Object.defineProperty(j4,"__esModule",{value:!0});var DY=j4.default=void 0,YZe=GZe(Ta()),XZe=ke,KZe=(0,YZe.default)((0,XZe.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"}),"ExpandLessSharp");DY=j4.default=KZe;var z4={},ZZe=Cn;Object.defineProperty(z4,"__esModule",{value:!0});var EY=z4.default=void 0,QZe=ZZe(Ta()),JZe=ke,eQe=(0,QZe.default)((0,JZe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"}),"ExpandMoreSharp");EY=z4.default=eQe;const tQe=e=>{var l;const[t,n]=ge.useState(!1),r=qz();return ke.jsx(Qe.Fragment,{children:ke.jsxs(cr,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[ke.jsxs(cr,{item:!0,xs:2,children:[ke.jsx(pr,{variant:"h5",children:e.header}),ke.jsx(pr,{variant:"subtitle1",children:e.description})]}),ke.jsx(cr,{item:!0,xs:e.graph===void 0?10:5,children:ke.jsxs(PM,{children:[ke.jsx(AM,{children:ke.jsxs(pm,{children:[ke.jsx(gi,{}),e.metricsValuesHeaders.map((i,o)=>ke.jsx(gi,{children:i},i+o))]})}),ke.jsx(OM,{children:e.metrics.map((i,o)=>ke.jsxs(pm,{children:[ke.jsx(gi,{children:i.label}),i.values.map((a,s)=>ke.jsx(gi,{children:a},String(a)+s))]},i.label+o))})]})}),e.graph===void 0?ke.jsx(ke.Fragment,{}):ke.jsx(cr,{item:!0,xs:5,children:ke.jsx(Wz,{data:e.graph.data,layout:{...e.graph.layout,title:void 0,xaxis:{...(l=e.graph.layout)==null?void 0:l.xaxis,type:r!=null&&r.isXaxisAsCategorical?"category":void 0}},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?ke.jsx(ke.Fragment,{}):ke.jsxs(ke.Fragment,{children:[ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(ji,{variant:"outlined",startIcon:t?ke.jsx(DY,{}):ke.jsx(EY,{}),onClick:()=>n(i=>!i),children:"Details"})}),ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(Z1,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(F4,{details:e.details,widgetSize:e.widgetSize})})})]})]})})};var B4={},nQe=Cn;Object.defineProperty(B4,"__esModule",{value:!0});var RY=B4.default=void 0,rQe=nQe(Ta()),aQe=ke,oQe=(0,rQe.default)((0,aQe.jsx)("path",{d:"m14 7-5 5 5 5V7z"}),"ArrowLeft");RY=B4.default=oQe;var W4={},iQe=Cn;Object.defineProperty(W4,"__esModule",{value:!0});var LY=W4.default=void 0,lQe=iQe(Ta()),sQe=ke,uQe=(0,lQe.default)((0,sQe.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");LY=W4.default=uQe;const cQe=e=>{const[t,n]=Qe.useState({page:0}),r=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return ke.jsxs(Uz,{children:[r.map((l,i)=>_g(`wi_${i}`,l)),ke.jsxs(cr,{item:!0,xs:12,children:[ke.jsx(ji,{startIcon:ke.jsx(RY,{}),disabled:t.page===0,onClick:()=>n(l=>({page:l.page-1})),children:"Previous"}),ke.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),ke.jsx(ji,{endIcon:ke.jsx(LY,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>n(l=>({page:l.page+1})),children:"Next"})]})]})};function dQe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const fQe=/[ \t\n\f\r]/g;function pQe(e){return typeof e=="object"?e.type==="text"?kI(e.value):!1:kI(e)}function kI(e){return e.replace(fQe,"")===""}class xg{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}xg.prototype.property={};xg.prototype.normal={};xg.prototype.space=null;function IY(e,t){const n={},r={};let l=-1;for(;++l4&&n.slice(0,4)==="data"&&yQe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(CI,_Qe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!CI.test(i)){let o=i.replace(bQe,wQe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=q4}return new l(r,t)}function wQe(e){return"-"+e.toLowerCase()}function _Qe(e){return e.charAt(1).toUpperCase()}const TQe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},kQe=IY([FY,NY,BY,WY,gQe],"html"),qY=IY([FY,NY,BY,WY,vQe],"svg");function SQe(e){return e.join(" ").trim()}var U4={exports:{}},MI=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,CQe=/\n/g,MQe=/^\s*/,PQe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,OQe=/^:\s*/,AQe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,DQe=/^[;\s]*/,EQe=/^\s+|\s+$/g,RQe=` +`,PI="/",OI="*",Mu="",LQe="comment",IQe="declaration",$Qe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function l(m){var g=m.match(CQe);g&&(n+=g.length);var b=m.lastIndexOf(RQe);r=~b?m.length-b:r+m.length}function i(){var m={line:n,column:r};return function(g){return g.position=new o(m),u(),g}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(m){var g=new Error(t.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function s(m){var g=m.exec(e);if(g){var b=g[0];return l(b),e=e.slice(b.length),g}}function u(){s(MQe)}function c(m){var g;for(m=m||[];g=d();)g!==!1&&m.push(g);return m}function d(){var m=i();if(!(PI!=e.charAt(0)||OI!=e.charAt(1))){for(var g=2;Mu!=e.charAt(g)&&(OI!=e.charAt(g)||PI!=e.charAt(g+1));)++g;if(g+=2,Mu===e.charAt(g-1))return a("End of comment missing");var b=e.slice(2,g-2);return r+=2,l(b),e=e.slice(g),r+=2,m({type:LQe,comment:b})}}function f(){var m=i(),g=s(PQe);if(g){if(d(),!s(OQe))return a("property missing ':'");var b=s(AQe),v=m({type:IQe,property:AI(g[0].replace(MI,Mu)),value:b?AI(b[0].replace(MI,Mu)):Mu});return s(DQe),v}}function p(){var m=[];c(m);for(var g;g=f();)g!==!1&&(m.push(g),c(m));return m}return u(),p()};function AI(e){return e?e.replace(EQe,Mu):Mu}var NQe=$Qe;function UY(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,l=NQe(e),i=typeof t=="function",o,a,s=0,u=l.length;s0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function zQe(e){const t=H4(e),n=HY(e);if(t&&n)return{start:t,end:n}}function Fh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?DI(e.position):"start"in e||"end"in e?DI(e):"line"in e||"column"in e?IS(e):""}function IS(e){return EI(e&&e.line)+":"+EI(e&&e.column)}function DI(e){return IS(e&&e.start)+"-"+IS(e&&e.end)}function EI(e){return e&&typeof e=="number"?e:1}class To extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(o=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=a?a.line:void 0,this.name=Fh(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}To.prototype.file="";To.prototype.name="";To.prototype.reason="";To.prototype.message="";To.prototype.stack="";To.prototype.column=void 0;To.prototype.line=void 0;To.prototype.ancestors=void 0;To.prototype.cause=void 0;To.prototype.fatal=void 0;To.prototype.place=void 0;To.prototype.ruleId=void 0;To.prototype.source=void 0;const V4={}.hasOwnProperty,BQe=new Map,WQe=/[A-Z]/g,qQe=/-([a-z])/g,UQe=new Set(["table","tbody","thead","tfoot","tr"]),HQe=new Set(["td","th"]);function VQe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=YQe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=GQe(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?qY:kQe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=GY(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function GY(e,t,n){if(t.type==="element"||t.type==="root"){const r=e.schema;let l=r;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=qY,e.schema=l),e.ancestors.push(t);let i=XQe(e,t);const o=KQe(e,e.ancestors);let a=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(i&&UQe.has(t.tagName)&&(i=i.filter(function(s){return typeof s=="string"?!pQe(s):!0})),V4.call(e.components,t.tagName)){const s=t.tagName;a=e.components[s],typeof a!="string"&&a!==e.Fragment&&e.passNode&&(o.node=t)}else a=t.tagName;if(i.length>0){const s=i.length>1?i:i[0];s&&(o.children=s)}return e.schema=r,e.create(t,a,o,n)}if(t.type==="text")return t.value}function GQe(e,t,n){return r;function r(l,i,o,a){const u=Array.isArray(o.children)?n:t;return a?u(i,o,a):u(i,o)}}function YQe(e,t){return n;function n(r,l,i,o){const a=Array.isArray(i.children),s=H4(r);return t(l,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function XQe(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:BQe;for(;++r-1&&e.test(String.fromCharCode(n))}}const sJe={'"':"quot","&":"amp","<":"lt",">":"gt"};function uJe(e){return e.replace(/["&<>]/g,t);function t(n){return"&"+sJe[n]+";"}}function cJe(e,t){const n=uJe(Mc(e||""));if(!t)return n;const r=n.indexOf(":"),l=n.indexOf("?"),i=n.indexOf("#"),o=n.indexOf("/");return r<0||o>-1&&r>o||l>-1&&r>l||i>-1&&r>i||t.test(n.slice(0,r))?n:""}function Mc(e){const t=[];let n=-1,r=0,l=0;for(;++n55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(o=String.fromCharCode(i,a),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}const dJe={};function fJe(e,t){const n=dJe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return XY(e,r,l)}function XY(e,t,n){if(pJe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return RI(e.children,t,n)}return Array.isArray(e)?RI(e,t,n):""}function RI(e,t,n){const r=[];let l=-1;for(;++ll?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(Sl(e,e.length,0,t),e):t}const II={}.hasOwnProperty;function hJe(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}function Cd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function zr(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return wr(s)?(e.enter(n),a(s)):t(s)}function a(s){return wr(s)&&i++o))return;const T=t.events.length;let k=T,S,C;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(S){C=t.events[k][1].end;break}S=!0}for(v(r),x=T;xy;){const _=n[w];t.containerState=_[1],_[0].exit.call(t,e)}n.length=y}function h(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function wJe(e,t,n){return zr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function NI(e){if(e===null||$o(e)||lJe(e))return 1;if(iJe(e))return 2}function Y4(e,t,n){const r=[];let l=-1;for(;++l1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);FI(d,-s),FI(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},a.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=pi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=pi(u,[["enter",l,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=pi(u,Y4(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=pi(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=pi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Sl(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&wr(x)?zr(e,h,"linePrefix",i+1)(x):h(x)}function h(x){return x===null||Vn(x)?e.check(jI,g,w)(x):(e.enter("codeFlowValue"),y(x))}function y(x){return x===null||Vn(x)?(e.exit("codeFlowValue"),h(x)):(e.consume(x),y)}function w(x){return e.exit("codeFenced"),t(x)}function _(x,T,k){let S=0;return C;function C(E){return x.enter("lineEnding"),x.consume(E),x.exit("lineEnding"),M}function M(E){return x.enter("codeFencedFence"),wr(E)?zr(x,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):O(E)}function O(E){return E===a?(x.enter("codeFencedFenceSequence"),D(E)):k(E)}function D(E){return E===a?(S++,x.consume(E),D):S>=o?(x.exit("codeFencedFenceSequence"),wr(E)?zr(x,P,"whitespace")(E):P(E)):k(E)}function P(E){return E===null||Vn(E)?(x.exit("codeFencedFence"),T(E)):k(E)}}}function RJe(e,t,n){const r=this;return l;function l(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const LT={name:"codeIndented",tokenize:IJe},LJe={tokenize:$Je,partial:!0};function IJe(e,t,n){const r=this;return l;function l(u){return e.enter("codeIndented"),zr(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):Vn(u)?e.attempt(LJe,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Vn(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function $Je(e,t,n){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?n(o):Vn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):zr(e,i,"linePrefix",5)(o)}function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):Vn(o)?l(o):n(o)}}const NJe={name:"codeText",tokenize:zJe,resolve:FJe,previous:jJe};function FJe(e){let t=e.length-4,n=3,r,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function tX(e,t,n,r,l,i,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(v),e.exit(i),f):v===null||v===32||v===41||$S(v)?n(v):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(v))}function f(v){return v===62?(e.enter(i),e.consume(v),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(a),f(v)):v===null||v===60||Vn(v)?n(v):(e.consume(v),v===92?m:p)}function m(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function g(v){return!c&&(v===null||v===41||$o(v))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(v)):c999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(l),e.consume(p),e.exit(l),e.exit(r),t):Vn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||Vn(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!wr(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function rX(e,t,n,r,l,i){let o;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(l),e.consume(f),e.exit(l),o=f===40?41:f,s):n(f)}function s(f){return f===o?(e.enter(l),e.consume(f),e.exit(l),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),s(o)):f===null?n(f):Vn(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),zr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||Vn(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(e.consume(f),c):c(f)}}function jh(e,t){let n;return r;function r(l){return Vn(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):wr(l)?zr(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const GJe={name:"definition",tokenize:XJe},YJe={tokenize:KJe,partial:!0};function XJe(e,t,n){const r=this;let l;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return nX.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return l=Cd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return $o(p)?jh(e,u)(p):u(p)}function u(p){return tX(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(YJe,d,d)(p)}function d(p){return wr(p)?zr(e,f,"whitespace")(p):f(p)}function f(p){return p===null||Vn(p)?(e.exit("definition"),r.parser.defined.push(l),t(p)):n(p)}}function KJe(e,t,n){return r;function r(a){return $o(a)?jh(e,l)(a):n(a)}function l(a){return rX(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return wr(a)?zr(e,o,"whitespace")(a):o(a)}function o(a){return a===null||Vn(a)?t(a):n(a)}}const ZJe={name:"hardBreakEscape",tokenize:QJe};function QJe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return Vn(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const JJe={name:"headingAtx",tokenize:tet,resolve:eet};function eet(e,t){let n=e.length-2,r=3,l,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Sl(e,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),e}function tet(e,t,n){let r=0;return l;function l(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||$o(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||Vn(c)?(e.exit("atxHeading"),t(c)):wr(c)?zr(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||$o(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const net=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],BI=["pre","script","style","textarea"],ret={name:"htmlFlow",tokenize:set,resolveTo:iet,concrete:!0},aet={tokenize:cet,partial:!0},oet={tokenize:uet,partial:!0};function iet(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function set(e,t,n){const r=this;let l,i,o,a,s;return u;function u(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),f):R===47?(e.consume(R),i=!0,g):R===63?(e.consume(R),l=3,r.interrupt?t:z):pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function f(R){return R===45?(e.consume(R),l=2,p):R===91?(e.consume(R),l=5,a=0,m):pl(R)?(e.consume(R),l=4,r.interrupt?t:z):n(R)}function p(R){return R===45?(e.consume(R),r.interrupt?t:z):n(R)}function m(R){const q="CDATA[";return R===q.charCodeAt(a++)?(e.consume(R),a===q.length?r.interrupt?t:O:m):n(R)}function g(R){return pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function b(R){if(R===null||R===47||R===62||$o(R)){const q=R===47,Y=o.toLowerCase();return!q&&!i&&BI.includes(Y)?(l=1,r.interrupt?t(R):O(R)):net.includes(o.toLowerCase())?(l=6,q?(e.consume(R),v):r.interrupt?t(R):O(R)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?h(R):y(R))}return R===45||Xo(R)?(e.consume(R),o+=String.fromCharCode(R),b):n(R)}function v(R){return R===62?(e.consume(R),r.interrupt?t:O):n(R)}function h(R){return wr(R)?(e.consume(R),h):C(R)}function y(R){return R===47?(e.consume(R),C):R===58||R===95||pl(R)?(e.consume(R),w):wr(R)?(e.consume(R),y):C(R)}function w(R){return R===45||R===46||R===58||R===95||Xo(R)?(e.consume(R),w):_(R)}function _(R){return R===61?(e.consume(R),x):wr(R)?(e.consume(R),_):y(R)}function x(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),s=R,T):wr(R)?(e.consume(R),x):k(R)}function T(R){return R===s?(e.consume(R),s=null,S):R===null||Vn(R)?n(R):(e.consume(R),T)}function k(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||$o(R)?_(R):(e.consume(R),k)}function S(R){return R===47||R===62||wr(R)?y(R):n(R)}function C(R){return R===62?(e.consume(R),M):n(R)}function M(R){return R===null||Vn(R)?O(R):wr(R)?(e.consume(R),M):n(R)}function O(R){return R===45&&l===2?(e.consume(R),I):R===60&&l===1?(e.consume(R),A):R===62&&l===4?(e.consume(R),B):R===63&&l===3?(e.consume(R),z):R===93&&l===5?(e.consume(R),j):Vn(R)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(aet,N,D)(R)):R===null||Vn(R)?(e.exit("htmlFlowData"),D(R)):(e.consume(R),O)}function D(R){return e.check(oet,P,N)(R)}function P(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),E}function E(R){return R===null||Vn(R)?D(R):(e.enter("htmlFlowData"),O(R))}function I(R){return R===45?(e.consume(R),z):O(R)}function A(R){return R===47?(e.consume(R),o="",F):O(R)}function F(R){if(R===62){const q=o.toLowerCase();return BI.includes(q)?(e.consume(R),B):O(R)}return pl(R)&&o.length<8?(e.consume(R),o+=String.fromCharCode(R),F):O(R)}function j(R){return R===93?(e.consume(R),z):O(R)}function z(R){return R===62?(e.consume(R),B):R===45&&l===2?(e.consume(R),z):O(R)}function B(R){return R===null||Vn(R)?(e.exit("htmlFlowData"),N(R)):(e.consume(R),B)}function N(R){return e.exit("htmlFlow"),t(R)}}function uet(e,t,n){const r=this;return l;function l(o){return Vn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function cet(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(v2,t,n)}}const det={name:"htmlText",tokenize:fet};function fet(e,t,n){const r=this;let l,i,o;return a;function a(z){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(z),s}function s(z){return z===33?(e.consume(z),u):z===47?(e.consume(z),_):z===63?(e.consume(z),y):pl(z)?(e.consume(z),k):n(z)}function u(z){return z===45?(e.consume(z),c):z===91?(e.consume(z),i=0,m):pl(z)?(e.consume(z),h):n(z)}function c(z){return z===45?(e.consume(z),p):n(z)}function d(z){return z===null?n(z):z===45?(e.consume(z),f):Vn(z)?(o=d,A(z)):(e.consume(z),d)}function f(z){return z===45?(e.consume(z),p):d(z)}function p(z){return z===62?I(z):z===45?f(z):d(z)}function m(z){const B="CDATA[";return z===B.charCodeAt(i++)?(e.consume(z),i===B.length?g:m):n(z)}function g(z){return z===null?n(z):z===93?(e.consume(z),b):Vn(z)?(o=g,A(z)):(e.consume(z),g)}function b(z){return z===93?(e.consume(z),v):g(z)}function v(z){return z===62?I(z):z===93?(e.consume(z),v):g(z)}function h(z){return z===null||z===62?I(z):Vn(z)?(o=h,A(z)):(e.consume(z),h)}function y(z){return z===null?n(z):z===63?(e.consume(z),w):Vn(z)?(o=y,A(z)):(e.consume(z),y)}function w(z){return z===62?I(z):y(z)}function _(z){return pl(z)?(e.consume(z),x):n(z)}function x(z){return z===45||Xo(z)?(e.consume(z),x):T(z)}function T(z){return Vn(z)?(o=T,A(z)):wr(z)?(e.consume(z),T):I(z)}function k(z){return z===45||Xo(z)?(e.consume(z),k):z===47||z===62||$o(z)?S(z):n(z)}function S(z){return z===47?(e.consume(z),I):z===58||z===95||pl(z)?(e.consume(z),C):Vn(z)?(o=S,A(z)):wr(z)?(e.consume(z),S):I(z)}function C(z){return z===45||z===46||z===58||z===95||Xo(z)?(e.consume(z),C):M(z)}function M(z){return z===61?(e.consume(z),O):Vn(z)?(o=M,A(z)):wr(z)?(e.consume(z),M):S(z)}function O(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),l=z,D):Vn(z)?(o=O,A(z)):wr(z)?(e.consume(z),O):(e.consume(z),P)}function D(z){return z===l?(e.consume(z),l=void 0,E):z===null?n(z):Vn(z)?(o=D,A(z)):(e.consume(z),D)}function P(z){return z===null||z===34||z===39||z===60||z===61||z===96?n(z):z===47||z===62||$o(z)?S(z):(e.consume(z),P)}function E(z){return z===47||z===62||$o(z)?S(z):n(z)}function I(z){return z===62?(e.consume(z),e.exit("htmlTextData"),e.exit("htmlText"),t):n(z)}function A(z){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),F}function F(z){return wr(z)?zr(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):j(z)}function j(z){return e.enter("htmlTextData"),o(z)}}const X4={name:"labelEnd",tokenize:yet,resolveTo:vet,resolveAll:get},pet={tokenize:bet},het={tokenize:xet},met={tokenize:wet};function get(e){let t=-1;for(;++t=3&&(u===null||Vn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===l?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),wr(u)?zr(e,a,"whitespace")(u):a(u))}}const Co={name:"list",tokenize:Det,continuation:{tokenize:Eet},exit:Let},Oet={tokenize:Iet,partial:!0},Aet={tokenize:Ret,partial:!0};function Det(e,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,o=0;return a;function a(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:NS(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(xv,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return NS(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(v2,r.interrupt?n:c,e.attempt(Oet,f,d))}function c(p){return r.containerState.initialBlankLine=!0,i++,f(p)}function d(p){return wr(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Eet(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(v2,l,i);function l(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,zr(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!wr(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Aet,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,zr(e,e.attempt(Co,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Ret(e,t,n){const r=this;return zr(e,l,"listItemIndent",r.containerState.size+1);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function Let(e){e.exit(this.containerState.type)}function Iet(e,t,n){const r=this;return zr(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const o=r.events[r.events.length-1];return!wr(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const WI={name:"setextUnderline",tokenize:Net,resolveTo:$et};function $et(e,t){let n=e.length,r,l,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function Net(e,t,n){const r=this;let l;return i;function i(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),l=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===l?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),wr(u)?zr(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||Vn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Fet={tokenize:jet};function jet(e){const t=this,n=e.attempt(v2,r,e.attempt(this.parser.constructs.flowInitial,l,zr(e,e.attempt(this.parser.constructs.flow,l,e.attempt(WJe,l)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const zet={resolveAll:oX()},Bet=aX("string"),Wet=aX("text");function aX(e){return{tokenize:t,resolveAll:oX(e==="text"?qet:void 0)};function t(n){const r=this,l=this.parser.constructs[e],i=n.attempt(l,o,a);return o;function o(c){return u(c)?i(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=l[c];let f=-1;if(d)for(;++f-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}i>0&&o.push(e[l].slice(0,i))}return o}function Vet(e,t){let n=-1;const r=[];let l;for(;++n0){const de=we.tokenStack[we.tokenStack.length-1];(de[1]||UI).call(we,void 0,de[0])}for(ce.position={start:Cs(Me.length>0?Me[0][1].start:{line:1,column:1,offset:0}),end:Cs(Me.length>0?Me[Me.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function _tt(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ttt(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function uX(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=e.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const o=l[l.length-1];return o&&o.type==="text"?o.value+=r:l.push({type:"text",value:r}),l}function ktt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return uX(e,t);const l={src:Pc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)}function Stt(e,t){const n={src:Pc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ctt(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Mtt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return uX(e,t);const l={href:Pc(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Ptt(e,t){const n={href:Pc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ott(e,t,n){const r=e.all(t),l=n?Att(n):cX(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a0){const de=we.tokenStack[we.tokenStack.length-1];(de[1]||UI).call(we,void 0,de[0])}for(ce.position={start:Cs(Me.length>0?Me[0][1].start:{line:1,column:1,offset:0}),end:Cs(Me.length>0?Me[Me.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function btt(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xtt(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function sX(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=e.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const o=l[l.length-1];return o&&o.type==="text"?o.value+=r:l.push({type:"text",value:r}),l}function wtt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return sX(e,t);const l={src:Mc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)}function _tt(e,t){const n={src:Mc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ttt(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ktt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return sX(e,t);const l={href:Mc(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Stt(e,t){const n={href:Mc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ctt(e,t,n){const r=e.all(t),l=n?Mtt(n):uX(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a1}function Dtt(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=H4(t.children[1]),s=VY(t.children[t.children.length-1]);a&&s&&(o.position={start:a,end:s}),l.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)}function $tt(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(GI(t.slice(l),l>0,!1)),i.join("")}function GI(e,t,n){let r=0,l=e.length;if(t){let i=e.codePointAt(r);for(;i===HI||i===VI;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(l-1);for(;i===HI||i===VI;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function jtt(e,t){const n={type:"text",value:Ftt(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function ztt(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Btt={blockquote:gtt,break:vtt,code:ytt,delete:btt,emphasis:xtt,footnoteReference:wtt,heading:_tt,html:Ttt,imageReference:ktt,image:Stt,inlineCode:Ctt,linkReference:Mtt,link:Ptt,listItem:Ott,list:Dtt,paragraph:Ett,root:Rtt,strong:Ltt,table:Itt,tableCell:Ntt,tableRow:$tt,text:jtt,thematicBreak:ztt,toml:E0,yaml:E0,definition:E0,footnoteDefinition:E0};function E0(){}const dX=-1,b2=0,Zy=1,Qy=2,K4=3,Z4=4,Q4=5,J4=6,fX=7,pX=8,YI=typeof self=="object"?self:globalThis,Wtt=(e,t)=>{const n=(l,i)=>(e.set(i,l),l),r=l=>{if(e.has(l))return e.get(l);const[i,o]=t[l];switch(i){case b2:case dX:return n(o,l);case Zy:{const a=n([],l);for(const s of o)a.push(r(s));return a}case Qy:{const a=n({},l);for(const[s,u]of o)a[r(s)]=r(u);return a}case K4:return n(new Date(o),l);case Z4:{const{source:a,flags:s}=o;return n(new RegExp(a,s),l)}case Q4:{const a=n(new Map,l);for(const[s,u]of o)a.set(r(s),r(u));return a}case J4:{const a=n(new Set,l);for(const s of o)a.add(r(s));return a}case fX:{const{name:a,message:s}=o;return n(new YI[a](s),l)}case pX:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l)}return n(new YI[i](o),l)};return r},XI=e=>Wtt(new Map,e)(0),Gc="",{toString:qtt}={},{keys:Utt}=Object,ah=e=>{const t=typeof e;if(t!=="object"||!e)return[b2,t];const n=qtt.call(e).slice(8,-1);switch(n){case"Array":return[Zy,Gc];case"Object":return[Qy,Gc];case"Date":return[K4,Gc];case"RegExp":return[Z4,Gc];case"Map":return[Q4,Gc];case"Set":return[J4,Gc]}return n.includes("Array")?[Zy,n]:n.includes("Error")?[fX,n]:[Qy,n]},R0=([e,t])=>e===b2&&(t==="function"||t==="symbol"),Htt=(e,t,n,r)=>{const l=(o,a)=>{const s=r.push(o)-1;return n.set(a,s),s},i=o=>{if(n.has(o))return n.get(o);let[a,s]=ah(o);switch(a){case b2:{let c=o;switch(s){case"bigint":a=pX,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return l([dX],o)}return l([a,c],o)}case Zy:{if(s)return l([s,[...o]],o);const c=[],d=l([a,c],o);for(const f of o)c.push(i(f));return d}case Qy:{if(s)switch(s){case"BigInt":return l([s,o.toString()],o);case"Boolean":case"Number":case"String":return l([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],d=l([a,c],o);for(const f of Utt(o))(e||!R0(ah(o[f])))&&c.push([i(f),i(o[f])]);return d}case K4:return l([a,o.toISOString()],o);case Z4:{const{source:c,flags:d}=o;return l([a,{source:c,flags:d}],o)}case Q4:{const c=[],d=l([a,c],o);for(const[f,p]of o)(e||!(R0(ah(f))||R0(ah(p))))&&c.push([i(f),i(p)]);return d}case J4:{const c=[],d=l([a,c],o);for(const f of o)(e||!R0(ah(f)))&&c.push(i(f));return d}}const{message:u}=o;return l([a,{name:s,message:u}],o)};return i},KI=(e,{json:t,lossy:n}={})=>{const r=[];return Htt(!(t||n),!!t,new Map,r)(e),r},Jy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?XI(KI(e,t)):structuredClone(e):(e,t)=>XI(KI(e,t));function Vtt(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Gtt(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ytt(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Vtt,r=e.options.footnoteBackLabel||Gtt,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s0&&m.push({type:"text",value:" "});let h=typeof n=="string"?n:n(s,p);typeof h=="string"&&(h={type:"text",value:h}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(h)?h:[h]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const h=b.children[b.children.length-1];h&&h.type==="text"?h.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...m)}else c.push(...m);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Jy(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function Mtt(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function Ptt(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=H4(t.children[1]),s=HY(t.children[t.children.length-1]);a&&s&&(o.position={start:a,end:s}),l.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)}function Rtt(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(GI(t.slice(l),l>0,!1)),i.join("")}function GI(e,t,n){let r=0,l=e.length;if(t){let i=e.codePointAt(r);for(;i===HI||i===VI;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(l-1);for(;i===HI||i===VI;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function $tt(e,t){const n={type:"text",value:Itt(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Ntt(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ftt={blockquote:ptt,break:htt,code:mtt,delete:gtt,emphasis:vtt,footnoteReference:ytt,heading:btt,html:xtt,imageReference:wtt,image:_tt,inlineCode:Ttt,linkReference:ktt,link:Stt,listItem:Ctt,list:Ptt,paragraph:Ott,root:Att,strong:Dtt,table:Ett,tableCell:Ltt,tableRow:Rtt,text:$tt,thematicBreak:Ntt,toml:E0,yaml:E0,definition:E0,footnoteDefinition:E0};function E0(){}const cX=-1,y2=0,Ky=1,Zy=2,K4=3,Z4=4,Q4=5,J4=6,dX=7,fX=8,YI=typeof self=="object"?self:globalThis,jtt=(e,t)=>{const n=(l,i)=>(e.set(i,l),l),r=l=>{if(e.has(l))return e.get(l);const[i,o]=t[l];switch(i){case y2:case cX:return n(o,l);case Ky:{const a=n([],l);for(const s of o)a.push(r(s));return a}case Zy:{const a=n({},l);for(const[s,u]of o)a[r(s)]=r(u);return a}case K4:return n(new Date(o),l);case Z4:{const{source:a,flags:s}=o;return n(new RegExp(a,s),l)}case Q4:{const a=n(new Map,l);for(const[s,u]of o)a.set(r(s),r(u));return a}case J4:{const a=n(new Set,l);for(const s of o)a.add(r(s));return a}case dX:{const{name:a,message:s}=o;return n(new YI[a](s),l)}case fX:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l)}return n(new YI[i](o),l)};return r},XI=e=>jtt(new Map,e)(0),Vc="",{toString:ztt}={},{keys:Btt}=Object,rh=e=>{const t=typeof e;if(t!=="object"||!e)return[y2,t];const n=ztt.call(e).slice(8,-1);switch(n){case"Array":return[Ky,Vc];case"Object":return[Zy,Vc];case"Date":return[K4,Vc];case"RegExp":return[Z4,Vc];case"Map":return[Q4,Vc];case"Set":return[J4,Vc]}return n.includes("Array")?[Ky,n]:n.includes("Error")?[dX,n]:[Zy,n]},R0=([e,t])=>e===y2&&(t==="function"||t==="symbol"),Wtt=(e,t,n,r)=>{const l=(o,a)=>{const s=r.push(o)-1;return n.set(a,s),s},i=o=>{if(n.has(o))return n.get(o);let[a,s]=rh(o);switch(a){case y2:{let c=o;switch(s){case"bigint":a=fX,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return l([cX],o)}return l([a,c],o)}case Ky:{if(s)return l([s,[...o]],o);const c=[],d=l([a,c],o);for(const f of o)c.push(i(f));return d}case Zy:{if(s)switch(s){case"BigInt":return l([s,o.toString()],o);case"Boolean":case"Number":case"String":return l([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],d=l([a,c],o);for(const f of Btt(o))(e||!R0(rh(o[f])))&&c.push([i(f),i(o[f])]);return d}case K4:return l([a,o.toISOString()],o);case Z4:{const{source:c,flags:d}=o;return l([a,{source:c,flags:d}],o)}case Q4:{const c=[],d=l([a,c],o);for(const[f,p]of o)(e||!(R0(rh(f))||R0(rh(p))))&&c.push([i(f),i(p)]);return d}case J4:{const c=[],d=l([a,c],o);for(const f of o)(e||!R0(rh(f)))&&c.push(i(f));return d}}const{message:u}=o;return l([a,{name:s,message:u}],o)};return i},KI=(e,{json:t,lossy:n}={})=>{const r=[];return Wtt(!(t||n),!!t,new Map,r)(e),r},Qy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?XI(KI(e,t)):structuredClone(e):(e,t)=>XI(KI(e,t));function qtt(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Utt(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Htt(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||qtt,r=e.options.footnoteBackLabel||Utt,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s0&&m.push({type:"text",value:" "});let h=typeof n=="string"?n:n(s,p);typeof h=="string"&&(h={type:"text",value:h}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(h)?h:[h]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const h=b.children[b.children.length-1];h&&h.type==="text"?h.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...m)}else c.push(...m);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Qy(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:` -`}]}}const hX=function(e){if(e==null)return Qtt;if(typeof e=="function")return x2(e);if(typeof e=="object")return Array.isArray(e)?Xtt(e):Ktt(e);if(typeof e=="string")return Ztt(e);throw new Error("Expected function, string, or object as test")};function Xtt(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let p=mX,m,g,b;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=rnt(n(s,c)),p[0]===ZI))return p;if("children"in s&&s.children){const v=s;if(v.children&&p[0]!==tnt)for(g=(r?v.children.length:-1)+o,b=c.concat(v);g>-1&&g":""))+")"})}return f;function f(){let p=hX,m,g,b;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=ent(n(s,c)),p[0]===ZI))return p;if("children"in s&&s.children){const v=s;if(v.children&&p[0]!==Qtt)for(g=(r?v.children.length:-1)+o,b=c.concat(v);g>-1&&g0&&n.push({type:"text",value:` -`}),n}function QI(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function JI(e,t){const n=ont(e,t),r=n.one(e,void 0),l=Ytt(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&i.children.push({type:"text",value:` -`},l),i}function cnt(e,t){return e&&"run"in e?async function(n,r){const l=JI(n,t);await e.run(l,r)}:function(n){return JI(n,t||e)}}function e$(e){if(e)throw e}var wv=Object.prototype.hasOwnProperty,vX=Object.prototype.toString,t$=Object.defineProperty,n$=Object.getOwnPropertyDescriptor,r$=function(t){return typeof Array.isArray=="function"?Array.isArray(t):vX.call(t)==="[object Array]"},a$=function(t){if(!t||vX.call(t)!=="[object Object]")return!1;var n=wv.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&wv.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||wv.call(t,l)},o$=function(t,n){t$&&n.name==="__proto__"?t$(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},i$=function(t,n){if(n==="__proto__")if(wv.call(t,n)){if(n$)return n$(t,n).value}else return;return t[n]},dnt=function e(){var t,n,r,l,i,o,a=arguments[0],s=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});so.length;let s;a&&o.push(l);try{s=e.apply(this,o)}catch(u){const c=u;if(a&&n)throw c;return l(c)}a||(s instanceof Promise?s.then(i,l):s instanceof Error?l(s):i(s))}function l(o,...a){n||(n=!0,t(o,...a))}function i(o){l(null,o)}}const al={basename:hnt,dirname:mnt,extname:gnt,join:vnt,sep:"/"};function hnt(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_g(e);let n=0,r=-1,l=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else o<0&&(i=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(r=l):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function mnt(e){if(_g(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function gnt(e){_g(e);let t=e.length,n=-1,r=0,l=-1,i=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?l<0?l=t:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||n<0||i===0||i===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function vnt(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function bnt(e,t){let n="",r=0,l=-1,i=0,o=-1,a,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),l=o,i=0;continue}}else if(n.length>0){n="",r=0,l=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,o):n=e.slice(l+1,o),r=o-l-1;l=o,i=0}else a===46&&i>-1?i++:i=-1}return n}function _g(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xnt={cwd:wnt};function wnt(){return"/"}function BS(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function _nt(e){if(typeof e=="string")e=new URL(e);else if(!BS(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Tnt(e)}function Tnt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...m]=c;const g=r[f][1];zS(g)&&zS(p)&&(p=NT(!0,g,p)),r[f]=[u,p,...m]}}}}const Mnt=new eO().freeze();function BT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function WT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function qT(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function s$(e){if(!zS(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function u$(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function L0(e){return Pnt(e)?e:new yX(e)}function Pnt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ont(e){return typeof e=="string"||Ant(e)}function Ant(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const c$={}.hasOwnProperty,Dnt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",d$=[],f$={allowDangerousHtml:!0},Ent=/^(https?|ircs?|mailto|xmpp)$/i,Rnt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function bX(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",l=e.className,i=e.components,o=e.disallowedElements,a=e.rehypePlugins||d$,s=e.remarkPlugins||d$,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...f$}:f$,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Lnt,p=Mnt().use(mtt).use(s).use(cnt,u).use(a),m=new yX;typeof r=="string"&&(m.value=r);for(const h of Rnt)Object.hasOwn(e,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+Dnt+h.id,void 0);const g=p.parse(m);let b=p.runSync(g,m);return l&&(b={type:"element",tagName:"div",properties:{className:l},children:b.type==="root"?b.children:[b]}),gX(b,v),XQe(b,{Fragment:ke.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ke.jsx,jsxs:ke.jsxs,passKeys:!0,passNode:!0});function v(h,y,w){if(h.type==="raw"&&w&&typeof y=="number")return c?w.children.splice(y,1):w.children[y]={type:"text",value:h.value},y;if(h.type==="element"){let _;for(_ in LT)if(c$.call(LT,_)&&c$.call(h.properties,_)){const x=h.properties[_],T=LT[_];(T===null||T.includes(h.tagName))&&(h.properties[_]=f(String(x||""),_,h))}}if(h.type==="element"){let _=t?!t.includes(h.tagName):o?o.includes(h.tagName):!1;if(!_&&n&&typeof y=="number"&&(_=!n(h,y,w)),_&&w&&typeof y=="number")return d&&h.children?w.children.splice(y,1,...h.children):w.children.splice(y,1),y}}}function Lnt(e){return pJe(e,Ent)}const Int=e=>ke.jsx(ke.Fragment,{children:ke.jsx(bX,{children:e.text})}),p$=["unknown","success","warning","fail"],xX=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},wX=({title:e,description:t,state:n,details:r})=>{const[l,i]=ge.useState({active:!1}),o=r!=null&&r.parts.length>0;return p$.includes(n)||(console.error(`unexpected state: ${n} (expected one of [${p$.join(", ")}])`),n="unknown"),ke.jsx(ke.Fragment,{children:ke.jsxs(Ia,{children:[ke.jsxs(cM,{severity:xX(n),action:o?ke.jsx(ji,{onClick:()=>i(a=>({active:!a.active})),color:"inherit",size:"small",children:"Details"}):null,children:[ke.jsx(dM,{children:e}),ke.jsx(bX,{children:t})]}),o?ke.jsx(Q1,{in:l.active,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(Ia,{style:{padding:"2px"},children:ke.jsx(F4,{details:r,widgetSize:2})})}):ke.jsx(ke.Fragment,{})]})})},$nt=({type:e,availableTypes:t,onChange:n})=>ke.jsx(ke.Fragment,{children:ke.jsx(ub,{variant:"standard",value:e,onChange:r=>n(r.target.value),native:!0,children:t.map(r=>ke.jsx("option",{value:r.id,children:r.title},r.id))})}),Nnt=({groupInfo:e,tests:t})=>{const[n,r]=ge.useState({active:!1});return ke.jsx(ke.Fragment,{children:ke.jsxs(Ia,{mt:2,px:2,children:[ke.jsxs(cM,{severity:xX(e.severity??"unknown"),icon:!1,action:ke.jsx(ji,{onClick:()=>r(l=>({active:!l.active})),color:"inherit",size:"small",children:n.active?"Hide":"Show"}),children:[ke.jsx(dM,{children:e.title}),e.description]}),ke.jsx(Q1,{in:n.active,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(cr,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map((l,i)=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(wX,{...l})},i))})})]})})},Fnt=({type:e,groupsInfo:t,tests:n})=>{function r(a){if(a==="status")return[t.find(c=>c.id===a).values,c=>c.state];const s=t.find(c=>c.id===a);if(s===void 0)throw"unexpected type";return[s.values.find(c=>c.id=="no group")!==void 0?s.values:[...s.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],c=>c.groups[a]??"no group"]}const[l,i]=r(e),o=n.reduce((a,s)=>(a.set(i(s),[...a.get(i(s))??[],s]),a),new Map);return ke.jsx(ke.Fragment,{children:ke.jsx(cr,{container:!0,spacing:2,children:Array.from(o.entries()).map(([a,s])=>[l.find(u=>u.id===a)??{id:a,title:a},s]).sort((a,s)=>(a[0].sortIndex??0)-(s[0].sortIndex??0)).map(([a,s],u)=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(Nnt,{groupInfo:a,tests:s})},`test_${u}`))})})},jnt=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],znt=({tests:e,testGroupTypes:t})=>{const[n,r]=Qe.useState({group_type:"none"}),l=[];for(let o=0;oc===u)===-1&&l.push(u)}const i=[...jnt,...(t??[]).filter(o=>l.findIndex(a=>a===o.id)!==-1)];return ke.jsx(ke.Fragment,{children:ke.jsxs(cr,{container:!0,spacing:2,children:[ke.jsx(cr,{item:!0,xs:12,children:ke.jsx($nt,{type:n.group_type,availableTypes:i,onChange:o=>r({group_type:o})})}),ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(cr,{container:!0,spacing:2,children:n.group_type==="none"?e.map((o,a)=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(wX,{...o})},`test_${a}`)):ke.jsx(Fnt,{type:n.group_type,groupsInfo:i,tests:e})})})]})})};function Bnt(e){return e===rv.Small?3:e===rv.Medium?6:(e===rv.Big,12)}function Tg(e,t,n){let r=ke.jsx(Vz,{});if(t.type==="counter")r=ke.jsx(qpe,{...t.params});else if(t.type==="percent")r=ke.jsx(Upe,{...t.params});else if(t.type==="big_graph")r=ke.jsx(cb,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")r=ke.jsx(Kpe,{...t.params,widgetSize:t.size});else if(t.type==="tabs")r=ke.jsx(XZe,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")r=ke.jsx(Zpe,{...t.params});else if(t.type==="big_table")r=ke.jsx(YZe,{...t.params,widgetSize:t.size});else if(t.type==="group")r=ke.jsx(Hz,{children:t.widgets.map((l,i)=>Tg(`wi_${i}`,l))});else if(t.type==="rich_data")r=ke.jsx(aQe,{...t.params,widgetSize:t.size});else if(t.type==="list"){const l=t;r=ke.jsx(pQe,{widgets:l.widgets,pageSize:l.pageSize,widgetSize:t.size})}else t.type==="text"?r=ke.jsx(Int,{...t.params}):t.type==="test_suite"&&(r=ke.jsx(znt,{...t.params}));return ke.jsx(Wpe,{size:Bnt(t.size),ItemWrapper:n,children:{...t,content:r}},e)}const Wnt=({widgets:e,ItemWrapper:t})=>ke.jsx(ke.Fragment,{children:e.length>0&&e.map((n,r)=>ke.jsx(Qe.Fragment,{children:Tg(`wi_${r}`,n,t)},n.id))}),qnt=({widgets:e,ItemWrapper:t})=>e.length===0?ke.jsx(pr,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):ke.jsx(ke.Fragment,{children:ke.jsx(cr,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:ke.jsx(Wnt,{widgets:e,ItemWrapper:t})})});function Unt(e){return ke.jsx(qnt,{widgets:e.params.widgets})}function Hnt(e){const{projectId:t,reportId:n}=e;return ke.jsx(ke.Fragment,{children:ke.jsx(MF.Consumer,{children:r=>ke.jsx(DM.Provider,{value:zpe({getAdditionGraphData:l=>r.Api.getAdditionalGraphData(t,n,l),getAdditionWidgetData:l=>r.Api.getAdditionalWidgetData(t,n,l)}),children:ke.jsx(oy,{func:()=>r.Api.getDashboard(t,n),children:l=>ke.jsx(Unt,{params:l})})})})})}function Vnt(e,t,n){HT.createRoot(document.getElementById(n)).render(ke.jsx(Qe.StrictMode,{children:ke.jsx(xj,{theme:Fpe,children:ke.jsx(MF.Provider,{value:{Api:new oJ(e,t)},children:ke.jsx(Hnt,{projectId:"p1",reportId:"d1"})})})}))}window.drawDashboard=Vnt; +`}),n}function QI(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function JI(e,t){const n=nnt(e,t),r=n.one(e,void 0),l=Htt(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&i.children.push({type:"text",value:` +`},l),i}function lnt(e,t){return e&&"run"in e?async function(n,r){const l=JI(n,t);await e.run(l,r)}:function(n){return JI(n,t||e)}}function e$(e){if(e)throw e}var wv=Object.prototype.hasOwnProperty,gX=Object.prototype.toString,t$=Object.defineProperty,n$=Object.getOwnPropertyDescriptor,r$=function(t){return typeof Array.isArray=="function"?Array.isArray(t):gX.call(t)==="[object Array]"},a$=function(t){if(!t||gX.call(t)!=="[object Object]")return!1;var n=wv.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&wv.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||wv.call(t,l)},o$=function(t,n){t$&&n.name==="__proto__"?t$(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},i$=function(t,n){if(n==="__proto__")if(wv.call(t,n)){if(n$)return n$(t,n).value}else return;return t[n]},snt=function e(){var t,n,r,l,i,o,a=arguments[0],s=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});so.length;let s;a&&o.push(l);try{s=e.apply(this,o)}catch(u){const c=u;if(a&&n)throw c;return l(c)}a||(s instanceof Promise?s.then(i,l):s instanceof Error?l(s):i(s))}function l(o,...a){n||(n=!0,t(o,...a))}function i(o){l(null,o)}}const al={basename:dnt,dirname:fnt,extname:pnt,join:hnt,sep:"/"};function dnt(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');wg(e);let n=0,r=-1,l=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else o<0&&(i=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(r=l):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function fnt(e){if(wg(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function pnt(e){wg(e);let t=e.length,n=-1,r=0,l=-1,i=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?l<0?l=t:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||n<0||i===0||i===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function hnt(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function gnt(e,t){let n="",r=0,l=-1,i=0,o=-1,a,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),l=o,i=0;continue}}else if(n.length>0){n="",r=0,l=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,o):n=e.slice(l+1,o),r=o-l-1;l=o,i=0}else a===46&&i>-1?i++:i=-1}return n}function wg(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const vnt={cwd:ynt};function ynt(){return"/"}function BS(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function bnt(e){if(typeof e=="string")e=new URL(e);else if(!BS(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return xnt(e)}function xnt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...m]=c;const g=r[f][1];zS(g)&&zS(p)&&(p=$T(!0,g,p)),r[f]=[u,p,...m]}}}}const knt=new eO().freeze();function zT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function BT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function WT(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function s$(e){if(!zS(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function u$(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function L0(e){return Snt(e)?e:new vX(e)}function Snt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Cnt(e){return typeof e=="string"||Mnt(e)}function Mnt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const c$={}.hasOwnProperty,Pnt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",d$=[],f$={allowDangerousHtml:!0},Ont=/^(https?|ircs?|mailto|xmpp)$/i,Ant=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function yX(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",l=e.className,i=e.components,o=e.disallowedElements,a=e.rehypePlugins||d$,s=e.remarkPlugins||d$,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...f$}:f$,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Dnt,p=knt().use(ftt).use(s).use(lnt,u).use(a),m=new vX;typeof r=="string"&&(m.value=r);for(const h of Ant)Object.hasOwn(e,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+Pnt+h.id,void 0);const g=p.parse(m);let b=p.runSync(g,m);return l&&(b={type:"element",tagName:"div",properties:{className:l},children:b.type==="root"?b.children:[b]}),mX(b,v),VQe(b,{Fragment:ke.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ke.jsx,jsxs:ke.jsxs,passKeys:!0,passNode:!0});function v(h,y,w){if(h.type==="raw"&&w&&typeof y=="number")return c?w.children.splice(y,1):w.children[y]={type:"text",value:h.value},y;if(h.type==="element"){let _;for(_ in RT)if(c$.call(RT,_)&&c$.call(h.properties,_)){const x=h.properties[_],T=RT[_];(T===null||T.includes(h.tagName))&&(h.properties[_]=f(String(x||""),_,h))}}if(h.type==="element"){let _=t?!t.includes(h.tagName):o?o.includes(h.tagName):!1;if(!_&&n&&typeof y=="number"&&(_=!n(h,y,w)),_&&w&&typeof y=="number")return d&&h.children?w.children.splice(y,1,...h.children):w.children.splice(y,1),y}}}function Dnt(e){return cJe(e,Ont)}const Ent=e=>ke.jsx(ke.Fragment,{children:ke.jsx(yX,{children:e.text})}),p$=["unknown","success","warning","fail"],bX=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},xX=({title:e,description:t,state:n,details:r})=>{const[l,i]=ge.useState({active:!1}),o=r!=null&&r.parts.length>0;return p$.includes(n)||(console.error(`unexpected state: ${n} (expected one of [${p$.join(", ")}])`),n="unknown"),ke.jsx(ke.Fragment,{children:ke.jsxs(Ia,{children:[ke.jsxs(cM,{severity:bX(n),action:o?ke.jsx(ji,{onClick:()=>i(a=>({active:!a.active})),color:"inherit",size:"small",children:"Details"}):null,children:[ke.jsx(dM,{children:e}),ke.jsx(yX,{children:t})]}),o?ke.jsx(Z1,{in:l.active,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(Ia,{style:{padding:"2px"},children:ke.jsx(F4,{details:r,widgetSize:2})})}):ke.jsx(ke.Fragment,{})]})})},Rnt=({type:e,availableTypes:t,onChange:n})=>ke.jsx(ke.Fragment,{children:ke.jsx(sb,{variant:"standard",value:e,onChange:r=>n(r.target.value),native:!0,children:t.map(r=>ke.jsx("option",{value:r.id,children:r.title},r.id))})}),Lnt=({groupInfo:e,tests:t})=>{const[n,r]=ge.useState({active:!1});return ke.jsx(ke.Fragment,{children:ke.jsxs(Ia,{mt:2,px:2,children:[ke.jsxs(cM,{severity:bX(e.severity??"unknown"),icon:!1,action:ke.jsx(ji,{onClick:()=>r(l=>({active:!l.active})),color:"inherit",size:"small",children:n.active?"Hide":"Show"}),children:[ke.jsx(dM,{children:e.title}),e.description]}),ke.jsx(Z1,{in:n.active,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(cr,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map((l,i)=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(xX,{...l})},i))})})]})})},Int=({type:e,groupsInfo:t,tests:n})=>{function r(a){if(a==="status")return[t.find(c=>c.id===a).values,c=>c.state];const s=t.find(c=>c.id===a);if(s===void 0)throw"unexpected type";return[s.values.find(c=>c.id=="no group")!==void 0?s.values:[...s.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],c=>c.groups[a]??"no group"]}const[l,i]=r(e),o=n.reduce((a,s)=>(a.set(i(s),[...a.get(i(s))??[],s]),a),new Map);return ke.jsx(ke.Fragment,{children:ke.jsx(cr,{container:!0,spacing:2,children:Array.from(o.entries()).map(([a,s])=>[l.find(u=>u.id===a)??{id:a,title:a},s]).sort((a,s)=>(a[0].sortIndex??0)-(s[0].sortIndex??0)).map(([a,s],u)=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(Lnt,{groupInfo:a,tests:s})},`test_${u}`))})})},$nt=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],Nnt=({tests:e,testGroupTypes:t})=>{const[n,r]=Qe.useState({group_type:"none"}),l=[];for(let o=0;oc===u)===-1&&l.push(u)}const i=[...$nt,...(t??[]).filter(o=>l.findIndex(a=>a===o.id)!==-1)];return ke.jsx(ke.Fragment,{children:ke.jsxs(cr,{container:!0,spacing:2,children:[ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(Rnt,{type:n.group_type,availableTypes:i,onChange:o=>r({group_type:o})})}),ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(cr,{container:!0,spacing:2,children:n.group_type==="none"?e.map((o,a)=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(xX,{...o})},`test_${a}`)):ke.jsx(Int,{type:n.group_type,groupsInfo:i,tests:e})})})]})})};function Fnt(e){return e===rv.Small?3:e===rv.Medium?6:(e===rv.Big,12)}function _g(e,t,n){let r=ke.jsx(Hz,{});if(t.type==="counter")r=ke.jsx(zpe,{...t.params});else if(t.type==="percent")r=ke.jsx(Bpe,{...t.params});else if(t.type==="big_graph")r=ke.jsx(ub,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")r=ke.jsx(Gpe,{...t.params,widgetSize:t.size});else if(t.type==="tabs")r=ke.jsx(VZe,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")r=ke.jsx(Ype,{...t.params});else if(t.type==="big_table")r=ke.jsx(HZe,{...t.params,widgetSize:t.size});else if(t.type==="group")r=ke.jsx(Uz,{children:t.widgets.map((l,i)=>_g(`wi_${i}`,l))});else if(t.type==="rich_data")r=ke.jsx(tQe,{...t.params,widgetSize:t.size});else if(t.type==="list"){const l=t;r=ke.jsx(cQe,{widgets:l.widgets,pageSize:l.pageSize,widgetSize:t.size})}else t.type==="text"?r=ke.jsx(Ent,{...t.params}):t.type==="test_suite"&&(r=ke.jsx(Nnt,{...t.params}));return ke.jsx(jpe,{size:Fnt(t.size),ItemWrapper:n,children:{...t,content:r}},e)}const jnt=({widgets:e,ItemWrapper:t})=>ke.jsx(ke.Fragment,{children:e.length>0&&e.map((n,r)=>ke.jsx(Qe.Fragment,{children:_g(`wi_${r}`,n,t)},n.id))}),znt=({widgets:e,ItemWrapper:t})=>e.length===0?ke.jsx(pr,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):ke.jsx(ke.Fragment,{children:ke.jsx(cr,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:ke.jsx(jnt,{widgets:e,ItemWrapper:t})})});function Bnt({dashboard:{widgets:e},additionalGraphs:t}){return ke.jsx(DM.Provider,{value:Npe({getAdditionGraphData:n=>{const r=t.get(n);return r?Promise.resolve(r):Promise.reject("No graph found")},getAdditionWidgetData:n=>{const r=t.get(n);return r?Promise.resolve(r):Promise.reject("No graph found")}}),children:ke.jsx(znt,{widgets:e})})}function Wnt(e,t,n){UT.createRoot(document.getElementById(n)).render(ke.jsx(Qe.StrictMode,{children:ke.jsx(bj,{theme:Ipe,children:ke.jsx(Bnt,{dashboard:e,additionalGraphs:t})})}))}window.drawDashboard=Wnt; diff --git a/src/evidently/options/color_scheme.py b/src/evidently/options/color_scheme.py index b145d8078a..bd52dcbab1 100644 --- a/src/evidently/options/color_scheme.py +++ b/src/evidently/options/color_scheme.py @@ -5,14 +5,14 @@ RED = "#ed0400" GREY = "#4d4d4d" -COLOR_DISCRETE_SEQUENCE = ( +COLOR_DISCRETE_SEQUENCE = [ "#ed0400", "#0a5f38", "#6c3461", "#71aa34", "#d8dcd6", "#6b8ba4", -) +] class ColorOptions(Option): @@ -62,14 +62,14 @@ def get_reference_data_color(self): current_data_color="#268bd2", reference_data_color="#073642", additional_data_color="", - color_sequence=( + color_sequence=[ "#268bd2", "#2aa198", "#859900", "#b58900", "#cb4b16", "#dc322f", - ), + ], ) KARACHI_SUNRISE_COLOR_OPTIONS = ColorOptions( @@ -77,13 +77,13 @@ def get_reference_data_color(self): secondary_color="#14213d", current_data_color="#fca311", reference_data_color="#e5e5e5", - color_sequence=( + color_sequence=[ "#dad7cd", "#a3b18a", "#588157", "#3a5a40", "#344e41", - ), + ], ) BERLIN_AUTUMN_COLOR_OPTIONS = ColorOptions( @@ -91,13 +91,13 @@ def get_reference_data_color(self): secondary_color="#7678ed", current_data_color="#f7b801", reference_data_color="#f18701", - color_sequence=( + color_sequence=[ "#f35b04", "#4e598c", "#f9c784", "#fcaf58", "#ff8c42", - ), + ], ) NIGHTOWL_COLOR_OPTIONS = ColorOptions( @@ -105,11 +105,11 @@ def get_reference_data_color(self): secondary_color="#d62828", current_data_color="#f77f00", reference_data_color="#fcbf49", - color_sequence=( + color_sequence=[ "#eae2b7", "#f08080", "#84a59d", "#f28482", "#f6bd60", - ), + ], ) diff --git a/src/evidently/ui/api/models.py b/src/evidently/ui/api/models.py index 1740619410..9e877db122 100644 --- a/src/evidently/ui/api/models.py +++ b/src/evidently/ui/api/models.py @@ -1,7 +1,7 @@ import dataclasses import datetime import uuid -from typing import Any +from dataclasses import dataclass from typing import Dict from typing import List from typing import Optional @@ -10,6 +10,7 @@ from evidently._pydantic_compat import BaseModel from evidently.base_metric import Metric from evidently.model.dashboard import DashboardInfo +from evidently.model.widget import BaseWidgetInfo from evidently.report import Report from evidently.suite.base_suite import MetadataValueType from evidently.test_suite import TestSuite @@ -37,7 +38,6 @@ def from_metric(cls, metric: Metric): class ReportModel(BaseModel): id: uuid.UUID timestamp: datetime.datetime - metrics: List[MetricModel] metadata: Dict[str, MetadataValueType] tags: List[str] @@ -46,7 +46,6 @@ def from_report(cls, report: Report): return cls( id=report.id, timestamp=report.timestamp, - metrics=[MetricModel.from_metric(m) for m in report._first_level_metrics], metadata=report.metadata, tags=report.tags, ) @@ -56,7 +55,6 @@ def from_snapshot(cls, snapshot: SnapshotMetadata): return cls( id=snapshot.id, timestamp=snapshot.timestamp, - metrics=[], metadata=snapshot.metadata, tags=snapshot.tags, ) @@ -70,7 +68,12 @@ class TestSuiteModel(BaseModel): @classmethod def from_report(cls, report: TestSuite): - return cls(id=report.id, timestamp=report.timestamp, metadata=report.metadata, tags=report.tags) + return cls( + id=report.id, + timestamp=report.timestamp, + metadata=report.metadata, + tags=report.tags, + ) @classmethod def from_snapshot(cls, snapshot: SnapshotMetadata): @@ -82,9 +85,10 @@ def from_snapshot(cls, snapshot: SnapshotMetadata): ) -class DashboardInfoModel(BaseModel): +@dataclass +class DashboardInfoModel: name: str - widgets: List[Any] + widgets: List[BaseWidgetInfo] min_timestamp: Optional[datetime.datetime] = None max_timestamp: Optional[datetime.datetime] = None @@ -111,7 +115,12 @@ def from_project_with_time_range( info = project.build_dashboard_info(timestamp_start=timestamp_start, timestamp_end=timestamp_end) - return cls(**dataclasses.asdict(info), **time_range) + return cls( + name=info.name, + widgets=info.widgets, + min_timestamp=time_range["min_timestamp"], + max_timestamp=time_range["max_timestamp"], + ) class OrgModel(BaseModel): @@ -163,3 +172,9 @@ class RoleModel(BaseModel): @classmethod def from_role(cls, role: Role): return RoleModel(id=role.id, name=role.name, entity_type=role.entity_type) + + +class Version(BaseModel): + application: str + version: str + commit: str diff --git a/src/evidently/ui/api/projects.py b/src/evidently/ui/api/projects.py index bcdcb4d2e0..e52c75a9e4 100644 --- a/src/evidently/ui/api/projects.py +++ b/src/evidently/ui/api/projects.py @@ -1,10 +1,12 @@ import datetime import json import uuid +from dataclasses import asdict from typing import Callable from typing import List from typing import Optional from typing import Sequence +from typing import Union from litestar import Response from litestar import Router @@ -29,6 +31,11 @@ from evidently.ui.base import Project from evidently.ui.base import ProjectManager from evidently.ui.dashboards.base import DashboardPanel +from evidently.ui.dashboards.reports import DashboardPanelCounter +from evidently.ui.dashboards.reports import DashboardPanelDistribution +from evidently.ui.dashboards.reports import DashboardPanelPlot +from evidently.ui.dashboards.test_suites import DashboardPanelTestSuite +from evidently.ui.dashboards.test_suites import DashboardPanelTestSuiteCounter from evidently.ui.errors import NotEnoughPermissions from evidently.ui.type_aliases import ZERO_UUID from evidently.ui.type_aliases import OrgID @@ -156,7 +163,7 @@ def get_snapshot_graph_data( project_manager: Annotated[ProjectManager, Dependency(skip_validation=True)], log_event: Callable, user_id: UserID, -) -> Response: +) -> str: project = project_manager.get_project(user_id, project_id) if project is None: raise HTTPException(status_code=404, detail="Project not found") @@ -167,7 +174,7 @@ def get_snapshot_graph_data( if graph is None: raise HTTPException(status_code=404, detail="Graph not found") log_event("get_snapshot_graph_data") - return Response(media_type="application/json", content=json.dumps(graph, cls=NumpyEncoder)) + return json.dumps(graph, cls=NumpyEncoder) @get("/{project_id:uuid}/{snapshot_id:uuid}/download", sync_to_thread=True) @@ -197,7 +204,7 @@ def get_snapshot_download( headers={"content-disposition": f"attachment;filename={snapshot_id}.json"}, ) log_event("get_snapshot_download") - return Response(f"Unknown format {report_format}", status_code=400) + raise HTTPException(status_code=400, detail=f"Unknown format {report_format}") @get("/{project_id:uuid}/{snapshot_id:uuid}/data", sync_to_thread=True) @@ -207,7 +214,7 @@ def get_snapshot_data( project_manager: Annotated[ProjectManager, Dependency(skip_validation=True)], log_event: Callable, user_id: UserID, -) -> Response: +) -> str: project = project_manager.get_project(user_id, project_id) if project is None: raise HTTPException(status_code=404, detail="Project not found") @@ -226,7 +233,7 @@ def get_snapshot_data( test_presets=snapshot.metadata.get(TEST_PRESETS, []), test_generators=snapshot.metadata.get(TEST_GENERATORS, []), ) - return Response(json.dumps(info.dict(), cls=NumpyEncoder), media_type="application/json") + return json.dumps(asdict(info), cls=NumpyEncoder) @get("/{project_id:uuid}/dashboard/panels", sync_to_thread=True) @@ -243,6 +250,24 @@ def list_project_dashboard_panels( return list(project.dashboard.panels) +# We need this endpoint to export +# some additional models to open api schema +@get("/models/additional") +def additional_models() -> ( + List[ + Union[ + DashboardInfoModel, + DashboardPanelPlot, + DashboardPanelCounter, + DashboardPanelDistribution, + DashboardPanelTestSuite, + DashboardPanelTestSuiteCounter, + ] + ] +): + return [] + + @get("/{project_id:uuid}/dashboard", sync_to_thread=True) def project_dashboard( project_id: Annotated[uuid.UUID, Parameter(title="id of project")], @@ -252,7 +277,7 @@ def project_dashboard( user_id: UserID, timestamp_start: Optional[str] = None, timestamp_end: Optional[str] = None, -) -> Response: +) -> str: timestamp_start_ = datetime.datetime.fromisoformat(timestamp_start) if timestamp_start else None timestamp_end_ = datetime.datetime.fromisoformat(timestamp_end) if timestamp_end else None project = project_manager.get_project(user_id, project_id) @@ -265,7 +290,7 @@ def project_dashboard( timestamp_end=timestamp_end_, ) log_event("project_dashboard") - return Response(content=json.dumps(info.dict(), cls=NumpyEncoder), media_type="application/json") + return json.dumps(asdict(info), cls=NumpyEncoder) @post("/", sync_to_thread=True) @@ -326,6 +351,7 @@ def create_projects_api(guard: Callable) -> Router: Router( "", route_handlers=[ + additional_models, list_projects, list_reports, get_project_info, diff --git a/src/evidently/ui/api/service.py b/src/evidently/ui/api/service.py index 25e9cea409..44824e227e 100644 --- a/src/evidently/ui/api/service.py +++ b/src/evidently/ui/api/service.py @@ -1,27 +1,22 @@ import os -from typing import Dict from typing import Optional from litestar import Router from litestar import get import evidently - -# todo: move to config -DEV = True +from evidently.ui.api.models import Version EVIDENTLY_APPLICATION_NAME = "Evidently UI" @get("/version") -async def version() -> Dict[str, str]: - result = { - "application": EVIDENTLY_APPLICATION_NAME, - "version": evidently.__version__, - } - if DEV: - result["commit"] = get_git_revision_short_hash(os.path.dirname(evidently.__file__)) or "-" - return result +async def version() -> Version: + return Version( + application=EVIDENTLY_APPLICATION_NAME, + version=evidently.__version__, + commit=get_git_revision_short_hash(os.path.dirname(evidently.__file__)) or "-", + ) def get_git_revision_short_hash(path: str) -> Optional[str]: diff --git a/src/evidently/ui/app.py b/src/evidently/ui/app.py index 379ce80e2e..5c603e2c0a 100644 --- a/src/evidently/ui/app.py +++ b/src/evidently/ui/app.py @@ -26,7 +26,7 @@ def run(config: AppConfig): uvicorn.run(app, host=config.service.host, port=config.service.port) -def run_local( +def get_config( host: str = "0.0.0.0", port: int = 8000, workspace: str = "workspace", @@ -42,9 +42,26 @@ def run_local( secret = secret or os.environ.get(EVIDENTLY_SECRET_ENV) if secret is not None: config.security = TokenSecurityComponent(token=SecretStr(secret)) + + return config + + +def run_local( + host: str = "0.0.0.0", + port: int = 8000, + workspace: str = "workspace", + secret: str = None, + conf_path: str = None, +): + config = get_config(host=host, port=port, workspace=workspace, secret=secret, conf_path=conf_path) run(config) +def litestar_app(): + config = get_config() + return create_app(config) + + def main(): run_local() diff --git a/src/evidently/ui/assets/index.html b/src/evidently/ui/assets/index.html index 5ee1233e4c..f6c9bdabca 100644 --- a/src/evidently/ui/assets/index.html +++ b/src/evidently/ui/assets/index.html @@ -11,8 +11,8 @@ content="Evidently - ML Monitoring Demo. Hosted example to monitor the performance of a demand forecasting model on a toy dataset." /> Evidently - ML Monitoring Demo - - + + diff --git a/src/evidently/ui/assets/static/js/ContentCopy-BwagEdvM.js b/src/evidently/ui/assets/static/js/ContentCopy-Cu793Viy.js similarity index 68% rename from src/evidently/ui/assets/static/js/ContentCopy-BwagEdvM.js rename to src/evidently/ui/assets/static/js/ContentCopy-Cu793Viy.js index 04a941175e..0827a50916 100644 --- a/src/evidently/ui/assets/static/js/ContentCopy-BwagEdvM.js +++ b/src/evidently/ui/assets/static/js/ContentCopy-Cu793Viy.js @@ -1 +1 @@ -import{r as t,i as r}from"./createSvgIcon-C96PFZfH.js";import{j as a}from"./vendor-CmCdJidw.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=o(t()),i=a,n=(0,v.default)((0,i.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");u=e.default=n;export{u as d}; +import{r as t,i as r}from"./createSvgIcon-BHt_C7WZ.js";import{j as a}from"./vendor-CFh6IQM6.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=o(t()),i=a,n=(0,v.default)((0,i.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");u=e.default=n;export{u as d}; diff --git a/src/evidently/ui/assets/static/js/DashboardContent-ClNKCdbH.js b/src/evidently/ui/assets/static/js/DashboardContent-TZHSTgd_.js similarity index 85% rename from src/evidently/ui/assets/static/js/DashboardContent-ClNKCdbH.js rename to src/evidently/ui/assets/static/js/DashboardContent-TZHSTgd_.js index 7db4b63bf1..19ea676440 100644 --- a/src/evidently/ui/assets/static/js/DashboardContent-ClNKCdbH.js +++ b/src/evidently/ui/assets/static/js/DashboardContent-TZHSTgd_.js @@ -1,4 +1,4 @@ -var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Lc=(e,t,r)=>(QD(e,typeof t!="symbol"?t+"":t,r),r);import{y as $e,j as je,X as Z5,T as Er,ae as K5,af as J5,ag as Q5,A as dy,a as hy,ah as e9,ai as t9,G as Jn,R as et,B as Qr,x as n9,aj as ir,ak as Cr,Q as eS,U as S0,al as r9,a7 as tS,a8 as nS,a9 as Af,aa as Hi,ac as rS,am as qn,an as a9,ao as i9,ap as o9,aq as Ma,ar as l9,as as s9,at as u9,au as c9,av as f9,aw as d9,ax as h9,ay as p9,az as g9,aA as m9,aB as v9,aC as y9,aD as b9,aE as x9,aF as w9,aG as xn,aH as _r,aI as Tr,aJ as _n,aK as Gt,aL as Pf,aM as Vn,aN as Md,aO as yr,aP as fr,aQ as _9,aR as Sd,aS as Cd,aT as aS,aU as iS,aV as T9,aW as xl,aX as k9,_ as Od,V as no,J as Fl,aY as M9,aZ as oS,a_ as S9,a$ as oe,K as di,b0 as C9,a2 as O9,b1 as A9,b2 as lg,a3 as P9,b3 as D9,b4 as E9,b5 as B2,b6 as R9,b7 as py,b8 as L9,b9 as I9,ba as F9,bb as N9,bc as j9,bd as $9,be as B9,bf as z9,bg as q9,bh as W9,bi as z2,bj as U9,bk as gy,b as H9,bl as V9,bm as Y9,bn as G9,bo as X9,bp as Z9,bq as K9,br as J9,bs as Q9,bt as eE,bu as tE,C as my,f as nE}from"./vendor-CmCdJidw.js";import{u as lS}from"./DashboardViewParams-B9orGR5W.js";import{i as vn,r as Xr}from"./createSvgIcon-C96PFZfH.js";import{E as rE}from"./Edit-BcjZfdDu.js";var cf=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(cf||{});function Ic(e){return e.palette.mode==="dark"?J5:Q5}function Fc(e){return e.palette.mode==="light"?Q5:J5}const C0=e=>{const[t,r]=$e.useState({open:!1});return je.jsxs(Z5,{elevation:0,onClick:i=>r(c=>({open:!c.open,anchorEl:i.currentTarget})),sx:[{color:i=>Fc(i)(i.palette.info.main,.6),backgroundColor:i=>Ic(i)(i.palette.info.main,.9)},e.data.state==="success"&&{color:i=>Fc(i)(i.palette.success.main,.6),backgroundColor:i=>Ic(i)(i.palette.success.main,.9)},e.data.state==="warning"&&{color:i=>Fc(i)(i.palette.warning.main,.6),backgroundColor:i=>Ic(i)(i.palette.warning.main,.9)},e.data.state==="error"&&{color:i=>Fc(i)(i.palette.error.main,.6),backgroundColor:i=>Ic(i)(i.palette.error.main,.9)}],children:[je.jsx(Er,{align:"center",variant:"h6",component:"div",children:e.data.value}),je.jsx(Er,{align:"center",variant:"body1",component:"div",children:e.data.text}),je.jsx(K5,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??je.jsx(Er,{padding:1,children:e.data.longText})})]})},sS=e=>je.jsxs(dy,{severity:e.data.severity,children:[je.jsx(hy,{children:e.data.title}),e.data.text]}),q2=e=>{const{alertStats:t}=e;return je.jsx(C0,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:je.jsx(Er,{sx:{pr:1},children:je.jsxs("ul",{children:[je.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),je.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),je.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function aE(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const iE=e=>{const{size:t,ItemWrapper:r}=e,i=e.children.alertsPosition??"row",{id:c,title:o,details:a,content:n,alerts:l,alertStats:f,insights:s}=e.children,u=l===void 0?!1:l.length>0,d=s===void 0?!1:s.length>0,h=je.jsx(e9,{sx:{border:"1px solid",borderColor:"#d6d6d6",borderRadius:"4px"},elevation:0,children:je.jsx(t9,{children:je.jsxs(Jn,{container:!0,spacing:1,direction:"column",children:[i==="row"?je.jsxs(Jn,{container:!0,spacing:1,item:!0,children:[je.jsxs(Jn,{item:!0,xs:u&&i==="row"?9:12,children:[o?je.jsx(Er,{fontWeight:500,variant:"h5",children:o}):je.jsx("div",{}),je.jsx("div",{children:n}),a?je.jsx(Er,{variant:"subtitle1",children:a}):je.jsx("div",{})]}),u?je.jsx(Jn,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:l?je.jsxs(et.Fragment,{children:[f?je.jsx(Jn,{item:!0,children:je.jsx(q2,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,children:je.jsx(C0,{data:p})}))]}):je.jsx("div",{})}):je.jsx("div",{})]}):je.jsxs(et.Fragment,{children:[je.jsxs(Jn,{item:!0,children:[o?je.jsx(Er,{variant:"h5",children:o}):je.jsx("div",{}),je.jsx("div",{children:n}),a?je.jsx(Er,{variant:"subtitle1",children:a}):je.jsx("div",{})]}),u?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(Jn,{container:!0,direction:"row",spacing:1,children:l?je.jsxs(et.Fragment,{children:[f?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(q2,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(C0,{data:p})}))]}):je.jsx("div",{})})}):je.jsx("div",{})]}),d?s.map(p=>je.jsx(Jn,{item:!0,xs:!0,sm:!0,md:!0,children:je.jsx(sS,{data:p})})):je.jsx("div",{})]})})});return je.jsx(Jn,{item:!0,...aE(t),children:r?r({id:c,children:h}):h})},W2=e=>je.jsxs("div",{children:[je.jsx(Er,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),je.jsx(Er,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),oE=e=>je.jsx(et.Fragment,{children:e.counters.length===1?je.jsx(W2,{...e.counters[0]}):je.jsx(Jn,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map((t,r)=>je.jsx(Jn,{item:!0,xs:!0,component:Qr,height:"100%",children:je.jsx(Qr,{children:je.jsx(W2,{...t})})},r))})}),lE=e=>je.jsxs("div",{children:[je.jsxs(Qr,{display:"flex",alignItems:"center",children:[je.jsx(Qr,{width:"100%",mr:1,children:je.jsx(n9,{variant:"determinate",value:e.value/e.maxValue*100})}),je.jsx(Qr,{minWidth:35,children:je.jsx(Er,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),je.jsx(Qr,{width:"100%",children:je.jsx(Er,{variant:"body2",color:"textSecondary",children:e.details??""})})]});var uS={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(r,i){e.exports=i()})(self,function(){return function(){var r={98847:function(o,a,n){var l=n(71828),f={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var s in f){var u=s.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");l.addStyleRule(u,f[s])}},98222:function(o,a,n){o.exports=n(82887)},27206:function(o,a,n){o.exports=n(60822)},5224:function(o,a,n){o.exports=n(83832)},59509:function(o,a,n){o.exports=n(72201)},49866:function(o,a,n){o.exports=n(99442)},19548:function(o,a,n){o.exports=n(8729)},61039:function(o,a,n){o.exports=n(14382)},24296:function(o,a,n){o.exports=n(43102)},58872:function(o,a,n){o.exports=n(92165)},65591:function(o,a,n){o.exports=n(36071)},69738:function(o,a,n){o.exports=n(43905)},92650:function(o,a,n){o.exports=n(35902)},73434:function(o,a,n){o.exports=n(94507)},760:function(o,a,n){var l=n(19548);l.register([n(27206),n(5224),n(58872),n(65591),n(69738),n(92650),n(49866),n(25743),n(6197),n(73434),n(54201),n(98222),n(61039),n(24296),n(66398),n(59509)]),o.exports=l},54201:function(o,a,n){o.exports=n(58810)},25743:function(o,a,n){o.exports=n(52979)},66398:function(o,a,n){o.exports=n(32275)},6197:function(o,a,n){o.exports=n(47462)},82884:function(o){o.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(o,a,n){var l=n(82884),f=n(41940),s=n(85555),u=n(44467).templatedArray;n(24695),o.exports=u("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",s.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",s.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:f({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(o,a,n){var l=n(71828),f=n(89298),s=n(92605).draw;function u(h){var p=h._fullLayout;l.filterVisible(p.annotations).forEach(function(m){var y=f.getFromId(h,m.xref),v=f.getFromId(h,m.yref),g=f.getRefType(m.xref),b=f.getRefType(m.yref);m._extremes={},g==="range"&&d(m,y),b==="range"&&d(m,v)})}function d(h,p){var m,y=p._id,v=y.charAt(0),g=h[v],b=h["a"+v],x=h[v+"ref"],_=h["a"+v+"ref"],w=h["_"+v+"padplus"],k=h["_"+v+"padminus"],T={x:1,y:-1}[v]*h[v+"shift"],M=3*h.arrowsize*h.arrowwidth||0,S=M+T,C=M-T,P=3*h.startarrowsize*h.arrowwidth||0,D=P+T,O=P-T;if(_===x){var R=f.findExtremes(p,[p.r2c(g)],{ppadplus:S,ppadminus:C}),F=f.findExtremes(p,[p.r2c(b)],{ppadplus:Math.max(w,D),ppadminus:Math.max(k,O)});m={min:[R.min[0],F.min[0]],max:[R.max[0],F.max[0]]}}else D=b?D+b:D,O=b?O-b:O,m=f.findExtremes(p,[p.r2c(g)],{ppadplus:Math.max(w,S,D),ppadminus:Math.max(k,C,O)});h._extremes[y]=m}o.exports=function(h){var p=h._fullLayout;if(l.filterVisible(p.annotations).length&&h._fullData.length)return l.syncOrAsync([s,u],h)}},44317:function(o,a,n){var l=n(71828),f=n(73972),s=n(44467).arrayEditor;function u(h,p){var m,y,v,g,b,x,_,w=h._fullLayout.annotations,k=[],T=[],M=[],S=(p||[]).length;for(m=0;m0||m.explicitOff.length>0},onClick:function(h,p){var m,y,v=u(h,p),g=v.on,b=v.off.concat(v.explicitOff),x={},_=h._fullLayout.annotations;if(g.length||b.length){for(m=0;m.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var we=!1,ke=["x","y"],Ae=0;Ae1)&&(Ye===qe?((Je=at.r2fraction(S["a"+Ue]))<0||Je>1)&&(we=!0):we=!0),Ee=at._offset+at.r2p(S[Ue]),Ie=.5}else{var ut=kt==="domain";Ue==="x"?(Re=S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.l+z.w*Re):(Re=1-S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.t+z.h*Re),Ie=S.showarrow?.5:Re}if(S.showarrow){it.head=Ee;var pt=S["a"+Ue];if(Be=ct*be(.5,S.xanchor)-bt*be(.5,S.yanchor),Ye===qe){var It=h.getRefType(Ye);It==="domain"?(Ue==="y"&&(pt=1-pt),it.tail=at._offset+at._length*pt):It==="paper"?Ue==="y"?(pt=1-pt,it.tail=z.t+z.h*pt):it.tail=z.l+z.w*pt:it.tail=at._offset+at.r2p(pt),De=Be}else it.tail=Ee+pt,De=Be+pt;it.text=it.tail+Be;var Mt=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=u.constrain(it.head,1,Mt-1)),Ye==="pixel"){var zt=-Math.max(it.tail-3,it.text),wt=Math.min(it.tail+3,it.text)-Mt;zt>0?(it.tail+=zt,it.text+=zt):wt>0&&(it.tail-=wt,it.text-=wt)}it.tail+=Qe,it.head+=Qe}else De=Be=ze*be(Ie,Ne),it.text=Ee+Be;it.text+=Qe,Be+=Qe,De+=Qe,S["_"+Ue+"padplus"]=ze/2+De,S["_"+Ue+"padminus"]=ze/2-De,S["_"+Ue+"size"]=ze,S["_"+Ue+"shift"]=Be}if(we)ee.remove();else{var ve=0,_e=0;if(S.align!=="left"&&(ve=(de-J)*(S.align==="center"?.5:1)),S.valign!=="top"&&(_e=(xe-ne)*(S.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:Y+ve-1,y:Y+_e}).call(m.setClipUrl,X?W:null,M);else{var Ve=Y+_e-ye.top,We=Y+ve-ye.left;se.call(v.positionText,We,Ve).call(m.setClipUrl,X?W:null,M)}re.select("rect").call(m.setRect,Y,Y,de,xe),Z.call(m.setRect,U/2,U/2,ue-U,ge-U),ee.call(m.setTranslate,Math.round(G.x.text-ue/2),Math.round(G.y.text-ge/2)),H.attr({transform:"rotate("+L+","+G.x.text+","+G.y.text+")"});var Ze,Ge=function(Ke,nt){q.selectAll(".annotation-arrow-g").remove();var st=G.x.head,mt=G.y.head,tt=G.x.tail+Ke,Ft=G.y.tail+nt,Vt=G.x.text+Ke,St=G.y.text+nt,Nt=u.rotationXYMatrix(L,Vt,St),Dt=u.apply2DTransform(Nt),gt=u.apply2DTransform2(Nt),ht=+Z.attr("width"),yt=+Z.attr("height"),qt=Vt-.5*ht,Et=qt+ht,jt=St-.5*yt,Tt=jt+yt,Ot=[[qt,jt,qt,Tt],[qt,Tt,Et,Tt],[Et,Tt,Et,jt],[Et,jt,qt,jt]].map(gt);if(!Ot.reduce(function(an,sn){return an^!!u.segmentsIntersect(st,mt,st+1e6,mt+1e6,sn[0],sn[1],sn[2],sn[3])},!1)){Ot.forEach(function(an){var sn=u.segmentsIntersect(tt,Ft,st,mt,an[0],an[1],an[2],an[3]);sn&&(tt=sn.x,Ft=sn.y)});var At=S.arrowwidth,Lt=S.arrowcolor,Rt=S.arrowside,$t=q.append("g").style({opacity:p.opacity(Lt)}).classed("annotation-arrow-g",!0),Yt=$t.append("path").attr("d","M"+tt+","+Ft+"L"+st+","+mt).style("stroke-width",At+"px").call(p.stroke,p.rgb(Lt));if(_(Yt,Rt,S),B.annotationPosition&&Yt.node().parentNode&&!P){var Xt=st,Bt=mt;if(S.standoff){var Wt=Math.sqrt(Math.pow(st-tt,2)+Math.pow(mt-Ft,2));Xt+=S.standoff*(tt-st)/Wt,Bt+=S.standoff*(Ft-mt)/Wt}var tn,cn,ln=$t.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(tt-Xt)+","+(Ft-Bt),transform:d(Xt,Bt)}).style("stroke-width",At+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");b.init({element:ln.node(),gd:M,prepFn:function(){var an=m.getTranslate(ee);tn=an.x,cn=an.y,D&&D.autorange&&j(D._name+".autorange",!0),O&&O.autorange&&j(O._name+".autorange",!0)},moveFn:function(an,sn){var Zt=Dt(tn,cn),pn=Zt[0]+an,nn=Zt[1]+sn;ee.call(m.setTranslate,pn,nn),N("x",k(D,an,"x",z,S)),N("y",k(O,sn,"y",z,S)),S.axref===S.xref&&N("ax",k(D,an,"ax",z,S)),S.ayref===S.yref&&N("ay",k(O,sn,"ay",z,S)),$t.attr("transform",d(an,sn)),H.attr({transform:"rotate("+L+","+pn+","+nn+")"})},doneFn:function(){f.call("_guiRelayout",M,E());var an=document.querySelector(".js-notes-box-panel");an&&an.redraw(an.selectedObj)}})}}};S.showarrow&&Ge(0,0),V&&b.init({element:ee.node(),gd:M,prepFn:function(){Ze=H.attr("transform")},moveFn:function(Ke,nt){var st="pointer";if(S.showarrow)S.axref===S.xref?N("ax",k(D,Ke,"ax",z,S)):N("ax",S.ax+Ke),S.ayref===S.yref?N("ay",k(O,nt,"ay",z.w,S)):N("ay",S.ay+nt),Ge(Ke,nt);else{if(P)return;var mt,tt;if(D)mt=k(D,Ke,"x",z,S);else{var Ft=S._xsize/z.w,Vt=S.x+(S._xshift-S.xshift)/z.w-Ft/2;mt=b.align(Vt+Ke/z.w,Ft,0,1,S.xanchor)}if(O)tt=k(O,nt,"y",z,S);else{var St=S._ysize/z.h,Nt=S.y-(S._yshift+S.yshift)/z.h-St/2;tt=b.align(Nt-nt/z.h,St,0,1,S.yanchor)}N("x",mt),N("y",tt),D&&O||(st=b.getCursor(D?.5:mt,O?.5:tt,S.xanchor,S.yanchor))}H.attr({transform:d(Ke,nt)+Ze}),g(ee,st)},clickFn:function(Ke,nt){S.captureevents&&M.emit("plotly_clickannotation",pe(nt))},doneFn:function(){g(ee),f.call("_guiRelayout",M,E());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}}o.exports={draw:function(M){var S=M._fullLayout;S._infolayer.selectAll(".annotation").remove();for(var C=0;C=0,P=y.indexOf("end")>=0,D=k.backoff*M+v.standoff,O=T.backoff*S+v.startstandoff;if(w.nodeName==="line"){g={x:+m.attr("x1"),y:+m.attr("y1")},b={x:+m.attr("x2"),y:+m.attr("y2")};var R=g.x-b.x,F=g.y-b.y;if(_=(x=Math.atan2(F,R))+Math.PI,D&&O&&D+O>Math.sqrt(R*R+F*F))return void q();if(D){if(D*D>R*R+F*F)return void q();var A=D*Math.cos(x),z=D*Math.sin(x);b.x+=A,b.y+=z,m.attr({x2:b.x,y2:b.y})}if(O){if(O*O>R*R+F*F)return void q();var B=O*Math.cos(x),$=O*Math.sin(x);g.x-=B,g.y-=$,m.attr({x1:g.x,y1:g.y})}}else if(w.nodeName==="path"){var j=w.getTotalLength(),N="";if(j1){v=!0;break}}v?u.fullLayout._infolayer.select(".annotation-"+u.id+'[data-index="'+m+'"]').remove():(y._pdata=f(u.glplot.cameraParams,[d.xaxis.r2l(y.x)*h[0],d.yaxis.r2l(y.y)*h[1],d.zaxis.r2l(y.z)*h[2]]),l(u.graphDiv,y,m,u.id,y._xa,y._ya))}}},2468:function(o,a,n){var l=n(73972),f=n(71828);o.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(26997)}}},layoutAttributes:n(26997),handleDefaults:n(20226),includeBasePlot:function(s,u){var d=l.subplotsRegistry.gl3d;if(d)for(var h=d.attrRegex,p=Object.keys(s),m=0;m=0)))return y;if(_===3)b[_]>1&&(b[_]=1);else if(b[_]>=1)return y}var w=Math.round(255*b[0])+", "+Math.round(255*b[1])+", "+Math.round(255*b[2]);return x?"rgba("+w+", "+b[3]+")":"rgb("+w+")"}u.tinyRGB=function(y){var v=y.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},u.rgb=function(y){return u.tinyRGB(l(y))},u.opacity=function(y){return y?l(y).getAlpha():0},u.addOpacity=function(y,v){var g=l(y).toRgb();return"rgba("+Math.round(g.r)+", "+Math.round(g.g)+", "+Math.round(g.b)+", "+v+")"},u.combine=function(y,v){var g=l(y).toRgb();if(g.a===1)return l(y).toRgbString();var b=l(v||p).toRgb(),x=b.a===1?b:{r:255*(1-b.a)+b.r*b.a,g:255*(1-b.a)+b.g*b.a,b:255*(1-b.a)+b.b*b.a},_={r:x.r*(1-g.a)+g.r*g.a,g:x.g*(1-g.a)+g.g*g.a,b:x.b*(1-g.a)+g.b*g.a};return l(_).toRgbString()},u.contrast=function(y,v,g){var b=l(y);return b.getAlpha()!==1&&(b=l(u.combine(y,p))),(b.isDark()?v?b.lighten(v):p:g?b.darken(g):h).toString()},u.stroke=function(y,v){var g=l(v);y.style({stroke:u.tinyRGB(g),"stroke-opacity":g.getAlpha()})},u.fill=function(y,v){var g=l(v);y.style({fill:u.tinyRGB(g),"fill-opacity":g.getAlpha()})},u.clean=function(y){if(y&&typeof y=="object"){var v,g,b,x,_=Object.keys(y);for(v=0;v<_.length;v++)if(x=y[b=_[v]],b.substr(b.length-5)==="color")if(Array.isArray(x))for(g=0;g0?wt>=Ze:wt<=Ze));ve++)wt>Ke&&wt0?wt>=Ze:wt<=Ze));ve++)wt>zt[0]&&wt1){var bt=Math.pow(10,Math.floor(Math.log(ct)/Math.LN10));at*=bt*p.roundUp(ct/bt,[2,5,10]),(Math.abs(J.start)/J.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=at}qe.domain=E?[Be+Y/se.h,Be+we-Y/se.h]:[Be+Q/se.w,Be+we-Q/se.w],qe.setScale(),$.attr("transform",m(Math.round(se.l),Math.round(se.t)));var ze,Ne=$.select("."+O.cbtitleunshift).attr("transform",m(-Math.round(se.l),-Math.round(se.t))),Qe=qe.ticklabelposition,it=qe.title.font.size,kt=$.select("."+O.cbaxis),Je=0,ut=0;function pt(It,Mt){var zt={propContainer:qe,propName:j._propPrefix+"title",traceIndex:j._traceIndex,_meta:j._meta,placeholder:le._dfltTitle.colorbar,containerGroup:$.select("."+O.cbtitle)},wt=It.charAt(0)==="h"?It.substr(1):"h"+It;$.selectAll("."+wt+",."+wt+"-math-group").remove(),x.draw(N,It,y(zt,Mt||{}))}return p.syncOrAsync([s.previousPromises,function(){var It,Mt;(E&&Ye||!E&&!Ye)&&(Oe==="top"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be-we)+3+.75*it),Oe==="bottom"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be)-3-.25*it),Oe==="right"&&(Mt=Y+se.t+Ae*X+3+.75*it,It=Q+se.l+ke*Be),pt(qe._id+"title",{attributes:{x:It,y:Mt,"text-anchor":E?"start":"middle"}}))},function(){if(!E&&!Ye||E&&Ye){var It,Mt=$.select("."+O.cbtitle),zt=Mt.select("text"),wt=[-H/2,H/2],ve=Mt.select(".h"+qe._id+"title-math-group").node(),_e=15.6;if(zt.node()&&(_e=parseInt(zt.node().style.fontSize,10)*C),ve?(It=g.bBox(ve),ut=It.width,(Je=It.height)>_e&&(wt[1]-=(Je-_e)/2)):zt.node()&&!zt.classed(O.jsPlaceholder)&&(It=g.bBox(zt.node()),ut=It.width,Je=It.height),E){if(Je){if(Je+=5,Oe==="top")qe.domain[1]-=Je/se.h,wt[1]*=-1;else{qe.domain[0]+=Je/se.h;var Ve=_.lineCount(zt);wt[1]+=(1-Ve)*_e}Mt.attr("transform",m(wt[0],wt[1])),qe.setScale()}}else ut&&(Oe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Mt.attr("transform",m(wt[0],wt[1])),qe.setScale())}$.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",E?m(0,Math.round(se.h*(1-qe.domain[1]))):m(Math.round(se.w*qe.domain[0]),0)),kt.attr("transform",E?m(0,Math.round(-se.t)):m(Math.round(-se.l),0));var We=$.select("."+O.cbfills).selectAll("rect."+O.cbfill).attr("style","").data(de);We.enter().append("rect").classed(O.cbfill,!0).attr("style",""),We.exit().remove();var Ze=Me.map(qe.c2p).map(Math.round).sort(function(mt,tt){return mt-tt});We.each(function(mt,tt){var Ft=[tt===0?Me[0]:(de[tt]+de[tt-1])/2,tt===de.length-1?Me[1]:(de[tt]+de[tt+1])/2].map(qe.c2p).map(Math.round);E&&(Ft[1]=p.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,Ze[0],Ze[1]));var Vt=l.select(this).attr(E?"x":"y",Ee).attr(E?"y":"x",l.min(Ft)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(l.max(Ft)-l.min(Ft),2));if(j._fillgradient)g.gradient(Vt,N,j._id,E?"vertical":"horizontalreversed",j._fillgradient,"fill");else{var St=ye(mt).replace("e-","");Vt.attr("fill",f(St).toHexString())}});var Ge=$.select("."+O.cblines).selectAll("path."+O.cbline).data(Te.color&&Te.width?xe:[]);Ge.enter().append("path").classed(O.cbline,!0),Ge.exit().remove(),Ge.each(function(mt){var tt=Ee,Ft=Math.round(qe.c2p(mt))+Te.width/2%1;l.select(this).attr("d","M"+(E?tt+","+Ft:Ft+","+tt)+(E?"h":"v")+ue).call(g.lineGroupStyle,Te.width,ce(mt),Te.dash)}),kt.selectAll("g."+qe._id+"tick,path").remove();var Ke=Ee+ue+(H||0)/2-(j.ticks==="outside"?1:0),nt=d.calcTicks(qe),st=d.getTickSigns(qe)[2];return d.drawTicks(N,qe,{vals:qe.ticks==="inside"?d.clipEnds(qe,nt):nt,layer:kt,path:d.makeTickPath(qe,Ke,st),transFn:d.makeTransTickFn(qe)}),d.drawLabels(N,qe,{vals:nt,layer:kt,transFn:d.makeTransTickLabelFn(qe),labelFns:d.makeLabelFns(qe,Ke)})},function(){if(E&&!Ye||!E&&Ye){var It,Mt,zt=qe.position||0,wt=qe._offset+qe._length/2;if(Oe==="right")Mt=wt,It=se.l+ke*zt+10+it*(qe.showticklabels?1:.5);else if(It=wt,Oe==="bottom"&&(Mt=se.t+Ae*zt+10+(Qe.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&j.ticklen||0)),Oe==="top"){var ve=Se.text.split("
").length;Mt=se.t+Ae*zt+10-ue-C*it*ve}pt((E?"h":"v")+qe._id+"title",{avoid:{selection:l.select(N).selectAll("g."+qe._id+"tick"),side:Oe,offsetTop:E?0:se.t,offsetLeft:E?se.l:0,maxShift:E?le.width:le.height},attributes:{x:It,y:Mt,"text-anchor":"middle"},transform:{rotate:E?-90:0,offset:0}})}},s.previousPromises,function(){var It,Mt=ue+H/2;Qe.indexOf("inside")===-1&&(It=g.bBox(kt.node()),Mt+=E?It.width:It.height),ze=Ne.select("text");var zt=0,wt=E&&Oe==="top",ve=!E&&Oe==="right",_e=0;if(ze.node()&&!ze.classed(O.jsPlaceholder)){var Ve,We=Ne.select(".h"+qe._id+"title-math-group").node();We&&(E&&Ye||!E&&!Ye)?(zt=(It=g.bBox(We)).width,Ve=It.height):(zt=(It=g.bBox(Ne.node())).right-se.l-(E?Ee:Ue),Ve=It.bottom-se.t-(E?Ue:Ee),E||Oe!=="top"||(Mt+=It.height,_e=It.height)),ve&&(ze.attr("transform",m(zt/2+it/2,0)),zt*=2),Mt=Math.max(Mt,E?zt:Ve)}var Ze=2*(E?Q:Y)+Mt+V+H/2,Ge=0;!E&&Se.text&&U==="bottom"&&X<=0&&(Ze+=Ge=Ze/2,_e+=Ge),le._hColorbarMoveTitle=Ge,le._hColorbarMoveCBTitle=_e;var Ke=V+H,nt=(E?Ee:Ue)-Ke/2-(E?Q:0),st=(E?Ue:Ee)-(E?be:Y+_e-Ge);$.select("."+O.cbbg).attr("x",nt).attr("y",st).attr(E?"width":"height",Math.max(Ze-Ge,2)).attr(E?"height":"width",Math.max(be+Ke,2)).call(b.fill,te).call(b.stroke,j.bordercolor).style("stroke-width",V);var mt=ve?Math.max(zt-10,0):0;$.selectAll("."+O.cboutline).attr("x",(E?Ee:Ue+Q)+mt).attr("y",(E?Ue+Y-be:Ee)+(wt?Je:0)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(be-(E?2*Y+Je:2*Q+mt),2)).call(b.stroke,j.outlinecolor).style({fill:"none","stroke-width":H});var tt=E?De*Ze:0,Ft=E?0:(1-Re)*Ze-_e;if(tt=ie?se.l-tt:-tt,Ft=re?se.t-Ft:-Ft,$.attr("transform",m(tt,Ft)),!E&&(V||f(te).getAlpha()&&!f.equals(le.paper_bgcolor,te))){var Vt=kt.selectAll("text"),St=Vt[0].length,Nt=$.select("."+O.cbbg).node(),Dt=g.bBox(Nt),gt=g.getTranslate($);Vt.each(function(Rt,$t){var Yt=St-1;if($t===0||$t===Yt){var Xt,Bt=g.bBox(this),Wt=g.getTranslate(this);if($t===Yt){var tn=Bt.right+Wt.x;(Xt=Dt.right+gt.x+Ue-V-2+Z-tn)>0&&(Xt=0)}else if($t===0){var cn=Bt.left+Wt.x;(Xt=Dt.left+gt.x+Ue+V+2-cn)<0&&(Xt=0)}Xt&&(St<3?this.setAttribute("transform","translate("+Xt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ht={},yt=P[ee],qt=D[ee],Et=P[U],jt=D[U],Tt=Ze-ue;E?(G==="pixels"?(ht.y=X,ht.t=be*Et,ht.b=be*jt):(ht.t=ht.b=0,ht.yt=X+W*Et,ht.yb=X-W*jt),q==="pixels"?(ht.x=Z,ht.l=Ze*yt,ht.r=Ze*qt):(ht.l=Tt*yt,ht.r=Tt*qt,ht.xl=Z-L*yt,ht.xr=Z+L*qt)):(G==="pixels"?(ht.x=Z,ht.l=be*yt,ht.r=be*qt):(ht.l=ht.r=0,ht.xl=Z+W*yt,ht.xr=Z-W*qt),q==="pixels"?(ht.y=1-X,ht.t=Ze*Et,ht.b=Ze*jt):(ht.t=Tt*Et,ht.b=Tt*jt,ht.yt=X-L*Et,ht.yb=X+L*jt));var Ot=j.y<.5?"b":"t",At=j.x<.5?"l":"r";N._fullLayout._reservedMargin[j._id]={};var Lt={r:le.width-nt-tt,l:nt+ht.r,b:le.height-st-Ft,t:st+ht.b};ie&&re?s.autoMargin(N,j._id,ht):ie?N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]:re||E?N._fullLayout._reservedMargin[j._id][At]=Lt[At]:N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]}],N)}(z,A,R);B&&B.then&&(R._promises||[]).push(B),R._context.edits.colorbarPosition&&function($,j,N){var E,W,G,L=j.orientation==="v",q=N._fullLayout._size;h.init({element:$.node(),gd:N,prepFn:function(){E=$.attr("transform"),v($)},moveFn:function(H,V){$.attr("transform",E+m(H,V)),W=h.align((L?j._uFrac:j._vFrac)+H/q.w,L?j._thickFrac:j._lenFrac,0,1,j.xanchor),G=h.align((L?j._vFrac:1-j._uFrac)-V/q.h,L?j._lenFrac:j._thickFrac,0,1,j.yanchor);var te=h.getCursor(W,G,j.xanchor,j.yanchor);v($,te)},doneFn:function(){if(v($),W!==void 0&&G!==void 0){var H={};H[j._propPrefix+"x"]=W,H[j._propPrefix+"y"]=G,j._traceIndex!==void 0?u.call("_guiRestyle",N,H,j._traceIndex):u.call("_guiRelayout",N,H)}}})}(z,A,R)}),F.exit().each(function(A){s.autoMargin(R,A._id)}).remove(),F.order()}}},76228:function(o,a,n){var l=n(71828);o.exports=function(f){return l.isPlainObject(f.colorbar)}},12311:function(o,a,n){o.exports={moduleType:"component",name:"colorbar",attributes:n(63583),supplyDefaults:n(62499),draw:n(98981).draw,hasColorbar:n(76228)}},50693:function(o,a,n){var l=n(63583),f=n(30587).counter,s=n(78607),u=n(63282).scales;function d(h){return"`"+h+"`"}s(u),o.exports=function(h,p){h=h||"";var m,y=(p=p||{}).cLetter||"c",v=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:h==="marker.line"),g="showScaleDflt"in p?p.showScaleDflt:y==="z",b=typeof p.colorscaleDflt=="string"?u[p.colorscaleDflt]:null,x=p.editTypeOverride||"",_=h?h+".":"";"colorAttr"in p?(m=p.colorAttr,p.colorAttr):d(_+(m={z:"z",c:"color"}[y]));var w=y+"auto",k=y+"min",T=y+"max",M=y+"mid",S={};S[k]=S[T]=void 0;var C={};C[w]=!1;var P={};return m==="color"&&(P.color={valType:"color",arrayOk:!0,editType:x||"style"},p.anim&&(P.color.anim=!0)),P[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:S},P[k]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[T]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:S},P.colorscale={valType:"colorscale",editType:"calc",dflt:b,impliedEdits:{autocolorscale:!1}},P.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},P.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(P.showscale={valType:"boolean",dflt:g,editType:"calc"},P.colorbar=l),p.noColorAxis||(P.coloraxis={valType:"subplotid",regex:f("coloraxis"),dflt:null,editType:"calc"}),P}},78803:function(o,a,n){var l=n(92770),f=n(71828),s=n(52075).extractOpts;o.exports=function(u,d,h){var p,m=u._fullLayout,y=h.vals,v=h.containerStr,g=v?f.nestedProperty(d,v).get():d,b=s(g),x=b.auto!==!1,_=b.min,w=b.max,k=b.mid,T=function(){return f.aggNums(Math.min,null,y)},M=function(){return f.aggNums(Math.max,null,y)};_===void 0?_=T():x&&(_=g._colorAx&&l(_)?Math.min(_,T()):T()),w===void 0?w=M():x&&(w=g._colorAx&&l(w)?Math.max(w,M()):M()),x&&k!==void 0&&(w-k>k-_?_=k-(w-k):w-k=0?m.colorscale.sequential:m.colorscale.sequentialminus,b._sync("colorscale",p))}},33046:function(o,a,n){var l=n(71828),f=n(52075).hasColorscale,s=n(52075).extractOpts;o.exports=function(u,d){function h(x,_){var w=x["_"+_];w!==void 0&&(x[_]=w)}function p(x,_){var w=_.container?l.nestedProperty(x,_.container).get():x;if(w)if(w.coloraxis)w._colorAx=d[w.coloraxis];else{var k=s(w),T=k.auto;(T||k.min===void 0)&&h(w,_.min),(T||k.max===void 0)&&h(w,_.max),k.autocolorscale&&h(w,"colorscale")}}for(var m=0;m=0;T--,M++){var S=_[T];k[M]=[1-S[0],S[1]]}return k}function b(_,w){w=w||{};for(var k=_.domain,T=_.range,M=T.length,S=new Array(M),C=0;C1.3333333333333333-h?d:h}},70461:function(o,a,n){var l=n(71828),f=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];o.exports=function(s,u,d,h){return s=d==="left"?0:d==="center"?1:d==="right"?2:l.constrain(Math.floor(3*s),0,2),u=h==="bottom"?0:h==="middle"?1:h==="top"?2:l.constrain(Math.floor(3*u),0,2),f[u][s]}},64505:function(o,a){a.selectMode=function(n){return n==="lasso"||n==="select"},a.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.openMode=function(n){return n==="drawline"||n==="drawopenpath"},a.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},a.selectingOrDrawing=function(n){return a.freeMode(n)||a.rectMode(n)}},28569:function(o,a,n){var l=n(48956),f=n(57035),s=n(38520),u=n(71828).removeElement,d=n(85555),h=o.exports={};h.align=n(92807),h.getCursor=n(70461);var p=n(26041);function m(){var v=document.createElement("div");v.className="dragcover";var g=v.style;return g.position="fixed",g.left=0,g.right=0,g.top=0,g.bottom=0,g.zIndex=999999999,g.background="none",document.body.appendChild(v),v}function y(v){return l(v.changedTouches?v.changedTouches[0]:v,document.body)}h.unhover=p.wrapped,h.unhoverRaw=p.raw,h.init=function(v){var g,b,x,_,w,k,T,M,S=v.gd,C=1,P=S._context.doubleClickDelay,D=v.element;S._mouseDownTime||(S._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=R,s?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=R,D.addEventListener("touchstart",R,{passive:!1})):D.ontouchstart=R;var O=v.clampFn||function(z,B,$){return Math.abs(z)<$&&(z=0),Math.abs(B)<$&&(B=0),[z,B]};function R(z){S._dragged=!1,S._dragging=!0;var B=y(z);g=B[0],b=B[1],T=z.target,k=z,M=z.buttons===2||z.ctrlKey,z.clientX===void 0&&z.clientY===void 0&&(z.clientX=g,z.clientY=b),(x=new Date().getTime())-S._mouseDownTimeP&&(C=Math.max(C-1,1)),S._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(C,k),!M){var B;try{B=new MouseEvent("click",z)}catch{var $=y(z);(B=document.createEvent("MouseEvents")).initMouseEvent("click",z.bubbles,z.cancelable,z.view,z.detail,z.screenX,z.screenY,$[0],$[1],z.ctrlKey,z.altKey,z.shiftKey,z.metaKey,z.button,z.relatedTarget)}T.dispatchEvent(B)}S._dragging=!1,S._dragged=!1}else S._dragged=!1}},h.coverSlip=m},26041:function(o,a,n){var l=n(11086),f=n(79990),s=n(24401).getGraphDiv,u=n(26675),d=o.exports={};d.wrapped=function(h,p,m){(h=s(h))._fullLayout&&f.clear(h._fullLayout._uid+u.HOVERID),d.raw(h,p,m)},d.raw=function(h,p){var m=h._fullLayout,y=h._hoverdata;p||(p={}),p.target&&!h._dragged&&l.triggerHandler(h,"plotly_beforehover",p)===!1||(m._hoverlayer.selectAll("g").remove(),m._hoverlayer.selectAll("line").remove(),m._hoverlayer.selectAll("circle").remove(),h._hoverdata=void 0,p.target&&y&&h.emit("plotly_unhover",{event:p,points:y}))}},79952:function(o,a){a.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},a.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(o,a,n){var l=n(39898),f=n(71828),s=f.numberFormat,u=n(92770),d=n(84267),h=n(73972),p=n(7901),m=n(21081),y=f.strTranslate,v=n(63893),g=n(77922),b=n(18783).LINE_SPACING,x=n(37822).DESELECTDIM,_=n(34098),w=n(39984),k=n(23469).appendArrayPointValue,T=o.exports={};function M(ce,ye,J){var ne=ye.fillpattern,de=ne&&T.getPatternAttr(ne.shape,0,"");if(de){var xe=T.getPatternAttr(ne.bgcolor,0,null),ue=T.getPatternAttr(ne.fgcolor,0,null),ge=ne.fgopacity,be=T.getPatternAttr(ne.size,0,8),we=T.getPatternAttr(ne.solidity,0,.3),ke=ye.uid;T.pattern(ce,"point",J,ke,de,be,we,void 0,ne.fillmode,xe,ue,ge)}else ye.fillcolor&&ce.call(p.fill,ye.fillcolor)}T.font=function(ce,ye,J,ne){f.isPlainObject(ye)&&(ne=ye.color,J=ye.size,ye=ye.family),ye&&ce.style("font-family",ye),J+1&&ce.style("font-size",J+"px"),ne&&ce.call(p.fill,ne)},T.setPosition=function(ce,ye,J){ce.attr("x",ye).attr("y",J)},T.setSize=function(ce,ye,J){ce.attr("width",ye).attr("height",J)},T.setRect=function(ce,ye,J,ne,de){ce.call(T.setPosition,ye,J).call(T.setSize,ne,de)},T.translatePoint=function(ce,ye,J,ne){var de=J.c2p(ce.x),xe=ne.c2p(ce.y);return!!(u(de)&&u(xe)&&ye.node())&&(ye.node().nodeName==="text"?ye.attr("x",de).attr("y",xe):ye.attr("transform",y(de,xe)),!0)},T.translatePoints=function(ce,ye,J){ce.each(function(ne){var de=l.select(this);T.translatePoint(ne,de,ye,J)})},T.hideOutsideRangePoint=function(ce,ye,J,ne,de,xe){ye.attr("display",J.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,xe)?null:"none")},T.hideOutsideRangePoints=function(ce,ye){if(ye._hasClipOnAxisFalse){var J=ye.xaxis,ne=ye.yaxis;ce.each(function(de){var xe=de[0].trace,ue=xe.xcalendar,ge=xe.ycalendar,be=h.traceIs(xe,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(be).each(function(we){T.hideOutsideRangePoint(we,l.select(this),J,ne,ue,ge)})})}},T.crispRound=function(ce,ye,J){return ye&&u(ye)?ce._context.staticPlot?ye:ye<1?1:Math.round(ye):J||0},T.singleLineStyle=function(ce,ye,J,ne,de){ye.style("fill","none");var xe=(((ce||[])[0]||{}).trace||{}).line||{},ue=J||xe.width||0,ge=de||xe.dash||"";p.stroke(ye,ne||xe.color),T.dashLine(ye,ge,ue)},T.lineGroupStyle=function(ce,ye,J,ne){ce.style("fill","none").each(function(de){var xe=(((de||[])[0]||{}).trace||{}).line||{},ue=ye||xe.width||0,ge=ne||xe.dash||"";l.select(this).call(p.stroke,J||xe.color).call(T.dashLine,ge,ue)})},T.dashLine=function(ce,ye,J){J=+J||0,ye=T.dashStyle(ye,J),ce.style({"stroke-dasharray":ye,"stroke-width":J+"px"})},T.dashStyle=function(ce,ye){ye=+ye||1;var J=Math.max(ye,3);return ce==="solid"?ce="":ce==="dot"?ce=J+"px,"+J+"px":ce==="dash"?ce=3*J+"px,"+3*J+"px":ce==="longdash"?ce=5*J+"px,"+5*J+"px":ce==="dashdot"?ce=3*J+"px,"+J+"px,"+J+"px,"+J+"px":ce==="longdashdot"&&(ce=5*J+"px,"+2*J+"px,"+J+"px,"+2*J+"px"),ce},T.singleFillStyle=function(ce,ye){var J=l.select(ce.node());M(ce,((J.data()[0]||[])[0]||{}).trace||{},ye)},T.fillGroupStyle=function(ce,ye){ce.style("stroke-width",0).each(function(J){var ne=l.select(this);J[0].trace&&M(ne,J[0].trace,ye)})};var S=n(90998);T.symbolNames=[],T.symbolFuncs=[],T.symbolBackOffs=[],T.symbolNeedLines={},T.symbolNoDot={},T.symbolNoFill={},T.symbolList=[],Object.keys(S).forEach(function(ce){var ye=S[ce],J=ye.n;T.symbolList.push(J,String(J),ce,J+100,String(J+100),ce+"-open"),T.symbolNames[J]=ce,T.symbolFuncs[J]=ye.f,T.symbolBackOffs[J]=ye.backoff||0,ye.needLine&&(T.symbolNeedLines[J]=!0),ye.noDot?T.symbolNoDot[J]=!0:T.symbolList.push(J+200,String(J+200),ce+"-dot",J+300,String(J+300),ce+"-open-dot"),ye.noFill&&(T.symbolNoFill[J]=!0)});var C=T.symbolNames.length;function P(ce,ye,J,ne){var de=ce%100;return T.symbolFuncs[de](ye,J,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}T.symbolNumber=function(ce){if(u(ce))ce=+ce;else if(typeof ce=="string"){var ye=0;ce.indexOf("-open")>0&&(ye=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(ye+=200,ce=ce.replace("-dot","")),(ce=T.symbolNames.indexOf(ce))>=0&&(ce+=ye)}return ce%100>=C||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},O={x1:0,x2:0,y1:1,y2:0},R=s("~f"),F={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:O},verticalreversed:{node:"linearGradient",attrs:O,reversed:!0}};T.gradient=function(ce,ye,J,ne,de,xe){for(var ue=de.length,ge=F[ne],be=new Array(ue),we=0;we=0&&ce.i===void 0&&(ce.i=xe.i),ye.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var be;be=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=be,ne.selectedSizeFn&&(be=ce.mrc=ne.selectedSizeFn(ce));var we=T.symbolNumber(ce.mx||ue.symbol)||0;ce.om=we%200>=100;var ke=Me(ce,J),Ae=Y(ce,J);ye.attr("d",P(we,be,ke,Ae))}var Ee,De,Re,Ie=!1;if(ce.so)Re=ge.outlierwidth,De=ge.outliercolor,Ee=ue.outliercolor;else{var Be=(ge||{}).width;Re=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,De="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):f.isArrayOrTypedArray(ge.color)?p.defaultLine:ge.color,f.isArrayOrTypedArray(ue.color)&&(Ee=p.defaultLine,Ie=!0),Ee="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Ee=ne.selectedColorFn(ce))}if(ce.om)ye.call(p.stroke,Ee).style({"stroke-width":(Re||1)+"px",fill:"none"});else{ye.style("stroke-width",(ce.isBlank?0:Re)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Ie=!0:qe=Ue&&Ue.type,f.isArrayOrTypedArray(qe)&&(qe=qe[0],F[qe]||(qe=0));var Ye=ue.pattern,at=Ye&&T.getPatternAttr(Ye.shape,ce.i,"");if(qe&&qe!=="none"){var lt=ce.mgc;lt?Ie=!0:lt=Ue.color;var ct=J.uid;Ie&&(ct+="-"+ce.i),T.gradient(ye,de,ct,qe,[[0,lt],[1,Ee]],"fill")}else if(at){var bt=!1,ze=Ye.fgcolor;!ze&&xe&&xe.color&&(ze=xe.color,bt=!0);var Ne=T.getPatternAttr(ze,ce.i,xe&&xe.color||null),Qe=T.getPatternAttr(Ye.bgcolor,ce.i,null),it=Ye.fgopacity,kt=T.getPatternAttr(Ye.size,ce.i,8),Je=T.getPatternAttr(Ye.solidity,ce.i,.3);bt=bt||ce.mcc||f.isArrayOrTypedArray(Ye.shape)||f.isArrayOrTypedArray(Ye.bgcolor)||f.isArrayOrTypedArray(Ye.fgcolor)||f.isArrayOrTypedArray(Ye.size)||f.isArrayOrTypedArray(Ye.solidity);var ut=J.uid;bt&&(ut+="-"+ce.i),T.pattern(ye,"point",de,ut,at,kt,Je,ce.mcc,Ye.fillmode,Qe,Ne,it)}else f.isArrayOrTypedArray(Ee)?p.fill(ye,Ee[ce.i]):p.fill(ye,Ee);Re&&p.stroke(ye,De)}},T.makePointStyleFns=function(ce){var ye={},J=ce.marker;return ye.markerScale=T.tryColorscale(J,""),ye.lineScale=T.tryColorscale(J,"line"),h.traceIs(ce,"symbols")&&(ye.ms2mrc=_.isBubble(ce)?w(ce):function(){return(J.size||6)/2}),ce.selectedpoints&&f.extendFlat(ye,T.makeSelectedPointStyleFns(ce)),ye},T.makeSelectedPointStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},xe=J.marker||{},ue=ne.marker||{},ge=de.opacity,be=xe.opacity,we=ue.opacity,ke=be!==void 0,Ae=we!==void 0;(f.isArrayOrTypedArray(ge)||ke||Ae)&&(ye.selectedOpacityFn=function(at){var lt=at.mo===void 0?de.opacity:at.mo;return at.selected?ke?be:lt:Ae?we:x*lt});var Ee=de.color,De=xe.color,Re=ue.color;(De||Re)&&(ye.selectedColorFn=function(at){var lt=at.mcc||Ee;return at.selected?De||lt:Re||lt});var Ie=de.size,Be=xe.size,Ue=ue.size,qe=Be!==void 0,Ye=Ue!==void 0;return h.traceIs(ce,"symbols")&&(qe||Ye)&&(ye.selectedSizeFn=function(at){var lt=at.mrc||Ie/2;return at.selected?qe?Be/2:lt:Ye?Ue/2:lt}),ye},T.makeSelectedTextStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},xe=J.textfont||{},ue=ne.textfont||{},ge=de.color,be=xe.color,we=ue.color;return ye.selectedTextColorFn=function(ke){var Ae=ke.tc||ge;return ke.selected?be||Ae:we||(be?Ae:p.addOpacity(Ae,x))},ye},T.selectedPointStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedPointStyleFns(ye),ne=ye.marker||{},de=[];J.selectedOpacityFn&&de.push(function(xe,ue){xe.style("opacity",J.selectedOpacityFn(ue))}),J.selectedColorFn&&de.push(function(xe,ue){p.fill(xe,J.selectedColorFn(ue))}),J.selectedSizeFn&&de.push(function(xe,ue){var ge=ue.mx||ne.symbol||0,be=J.selectedSizeFn(ue);xe.attr("d",P(T.symbolNumber(ge),be,Me(ue,ye),Y(ue,ye))),ue.mrc2=be}),de.length&&ce.each(function(xe){for(var ue=l.select(this),ge=0;ge0?J:0}function N(ce,ye,J){return J&&(ce=H(ce)),ye?W(ce[1]):E(ce[0])}function E(ce){var ye=l.round(ce,2);return A=ye,ye}function W(ce){var ye=l.round(ce,2);return z=ye,ye}function G(ce,ye,J,ne){var de=ce[0]-ye[0],xe=ce[1]-ye[1],ue=J[0]-ye[0],ge=J[1]-ye[1],be=Math.pow(de*de+xe*xe,.25),we=Math.pow(ue*ue+ge*ge,.25),ke=(we*we*de-be*be*ue)*ne,Ae=(we*we*xe-be*be*ge)*ne,Ee=3*we*(be+we),De=3*be*(be+we);return[[E(ye[0]+(Ee&&ke/Ee)),W(ye[1]+(Ee&&Ae/Ee))],[E(ye[0]-(De&&ke/De)),W(ye[1]-(De&&Ae/De))]]}T.textPointStyle=function(ce,ye,J){if(ce.size()){var ne;if(ye.selectedpoints){var de=T.makeSelectedTextStyleFns(ye);ne=de.selectedTextColorFn}var xe=ye.texttemplate,ue=J._fullLayout;ce.each(function(ge){var be=l.select(this),we=xe?f.extractOption(ge,ye,"txt","texttemplate"):f.extractOption(ge,ye,"tx","text");if(we||we===0){if(xe){var ke=ye._module.formatLabels,Ae=ke?ke(ge,ye,ue):{},Ee={};k(Ee,ye,ge.i);var De=ye._meta||{};we=f.texttemplateString(we,Ae,ue._d3locale,Ee,ge,De)}var Re=ge.tp||ye.textposition,Ie=j(ge,ye),Be=ne?ne(ge):ge.tc||ye.textfont.color;be.call(T.font,ge.tf||ye.textfont.family,Ie,Be).text(we).call(v.convertToTspans,J).call($,Re,Ie,ge.mrc)}else be.remove()})}},T.selectedTextStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedTextStyleFns(ye);ce.each(function(ne){var de=l.select(this),xe=J.selectedTextColorFn(ne),ue=ne.tp||ye.textposition,ge=j(ne,ye);p.fill(de,xe);var be=h.traceIs(ye,"bar-like");$(de,ue,ge,ne.mrc2||ne.mrc,be)})}},T.smoothopen=function(ce,ye){if(ce.length<3)return"M"+ce.join("L");var J,ne="M"+ce[0],de=[];for(J=1;J=be||at>=ke&&at<=be)&&(lt<=Ae&<>=we||lt>=Ae&<<=we)&&(ce=[at,lt])}return ce}T.steps=function(ce){var ye=L[ce]||q;return function(J){for(var ne="M"+E(J[0][0])+","+W(J[0][1]),de=J.length,xe=1;xe=1e4&&(T.savedBBoxes={},V=0),J&&(T.savedBBoxes[J]=De),V++,f.extendFlat({},De)},T.setClipUrl=function(ce,ye,J){ce.attr("clip-path",ee(ye,J))},T.getTranslate=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||0,y:+ye[1]||0}},T.setTranslate=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||0,J=J||0,xe=xe.replace(/(\btranslate\(.*?\);?)/,"").trim(),xe=(xe+=y(ye,J)).trim(),ce[de]("transform",xe),xe},T.getScale=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||1,y:+ye[1]||1}},T.setScale=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||1,J=J||1,xe=xe.replace(/(\bscale\(.*?\);?)/,"").trim(),xe=(xe+="scale("+ye+","+J+")").trim(),ce[de]("transform",xe),xe};var U=/\s*sc.*/;T.setPointGroupScale=function(ce,ye,J){if(ye=ye||1,J=J||1,ce){var ne=ye===1&&J===1?"":"scale("+ye+","+J+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(U,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Q=/translate\([^)]*\)\s*$/;function Y(ce,ye){var J;return ce&&(J=ce.mf),J===void 0&&(J=ye.marker&&ye.marker.standoff||0),ye._geo||ye._xA?J:-J}T.setTextPointsScale=function(ce,ye,J){ce&&ce.each(function(){var ne,de=l.select(this),xe=de.select("text");if(xe.node()){var ue=parseFloat(xe.attr("x")||0),ge=parseFloat(xe.attr("y")||0),be=(de.attr("transform")||"").match(Q);ne=ye===1&&J===1?[]:[y(ue,ge),"scale("+ye+","+J+")",y(-ue,-ge)],be&&ne.push(be),de.attr("transform",ne.join(""))}})},T.getMarkerStandoff=Y;var Z,X,re,ie,le,se,pe=Math.atan2,Te=Math.cos,Se=Math.sin;function Oe(ce,ye){var J=ye[0],ne=ye[1];return[J*Te(ce)-ne*Se(ce),J*Se(ce)+ne*Te(ce)]}function Me(ce,ye){var J,ne,de=ce.ma;de===void 0&&(de=ye.marker.angle||0);var xe=ye.marker.angleref;if(xe==="previous"||xe==="north"){if(ye._geo){var ue=ye._geo.project(ce.lonlat);J=ue[0],ne=ue[1]}else{var ge=ye._xA,be=ye._yA;if(!ge||!be)return 90;J=ge.c2p(ce.x),ne=be.c2p(ce.y)}if(ye._geo){var we,ke=ce.lonlat[0],Ae=ce.lonlat[1],Ee=ye._geo.project([ke,Ae+1e-5]),De=ye._geo.project([ke+1e-5,Ae]),Re=pe(De[1]-ne,De[0]-J),Ie=pe(Ee[1]-ne,Ee[0]-J);if(xe==="north")we=de/180*Math.PI;else if(xe==="previous"){var Be=ke/180*Math.PI,Ue=Ae/180*Math.PI,qe=Z/180*Math.PI,Ye=X/180*Math.PI,at=qe-Be,lt=Te(Ye)*Se(at),ct=Se(Ye)*Te(Ue)-Te(Ye)*Se(Ue)*Te(at);we=-pe(lt,ct)-Math.PI,Z=ke,X=Ae}var bt=Oe(Re,[Te(we),0]),ze=Oe(Ie,[Se(we),0]);de=pe(bt[1]+ze[1],bt[0]+ze[0])/Math.PI*180,xe!=="previous"||se===ye.uid&&ce.i===le+1||(de=null)}if(xe==="previous"&&!ye._geo)if(se===ye.uid&&ce.i===le+1&&u(J)&&u(ne)){var Ne=J-re,Qe=ne-ie,it=ye.line&&ye.line.shape||"",kt=it.slice(it.length-1);kt==="h"&&(Qe=0),kt==="v"&&(Ne=0),de+=pe(Qe,Ne)/Math.PI*180+90}else de=null}return re=J,ie=ne,le=ce.i,se=ye.uid,de}T.getMarkerAngle=Me},90998:function(o,a,n){var l,f,s,u,d=n(95616),h=n(39898).round,p="M0,0Z",m=Math.sqrt(2),y=Math.sqrt(3),v=Math.PI,g=Math.cos,b=Math.sin;function x(w){return w===null}function _(w,k,T){if(!(w&&w%360!=0||k))return T;if(s===w&&u===k&&l===T)return f;function M(N,E){var W=g(N),G=b(N),L=E[0],q=E[1]+(k||0);return[L*W-q*G,L*G+q*W]}s=w,u=k,l=T;for(var S=w/180*v,C=0,P=0,D=d(T),O="",R=0;R0,b=d._context.staticPlot;h.each(function(x){var _,w=x[0].trace,k=w.error_x||{},T=w.error_y||{};w.ids&&(_=function(P){return P.id});var M=u.hasMarkers(w)&&w.marker.maxdisplayed>0;T.visible||k.visible||(x=[]);var S=l.select(this).selectAll("g.errorbar").data(x,_);if(S.exit().remove(),x.length){k.visible||S.selectAll("path.xerror").remove(),T.visible||S.selectAll("path.yerror").remove(),S.style("opacity",1);var C=S.enter().append("g").classed("errorbar",!0);g&&C.style("opacity",0).transition().duration(m.duration).style("opacity",1),s.setClipUrl(S,p.layerClipId,d),S.each(function(P){var D=l.select(this),O=function($,j,N){var E={x:j.c2p($.x),y:N.c2p($.y)};return $.yh!==void 0&&(E.yh=N.c2p($.yh),E.ys=N.c2p($.ys),f(E.ys)||(E.noYS=!0,E.ys=N.c2p($.ys,!0))),$.xh!==void 0&&(E.xh=j.c2p($.xh),E.xs=j.c2p($.xs),f(E.xs)||(E.noXS=!0,E.xs=j.c2p($.xs,!0))),E}(P,y,v);if(!M||P.vis){var R,F=D.select("path.yerror");if(T.visible&&f(O.x)&&f(O.yh)&&f(O.ys)){var A=T.width;R="M"+(O.x-A)+","+O.yh+"h"+2*A+"m-"+A+",0V"+O.ys,O.noYS||(R+="m-"+A+",0h"+2*A),F.size()?g&&(F=F.transition().duration(m.duration).ease(m.easing)):F=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("yerror",!0),F.attr("d",R)}else F.remove();var z=D.select("path.xerror");if(k.visible&&f(O.y)&&f(O.xh)&&f(O.xs)){var B=(k.copy_ystyle?T:k).width;R="M"+O.xh+","+(O.y-B)+"v"+2*B+"m0,-"+B+"H"+O.xs,O.noXS||(R+="m0,-"+B+"v"+2*B),z.size()?g&&(z=z.transition().duration(m.duration).ease(m.easing)):z=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("xerror",!0),z.attr("d",R)}else z.remove()}})}})}},62662:function(o,a,n){var l=n(39898),f=n(7901);o.exports=function(s){s.each(function(u){var d=u[0].trace,h=d.error_y||{},p=d.error_x||{},m=l.select(this);m.selectAll("path.yerror").style("stroke-width",h.thickness+"px").call(f.stroke,h.color),p.copy_ystyle&&(p=h),m.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(f.stroke,p.color)})}},77914:function(o,a,n){var l=n(41940),f=n(528).hoverlabel,s=n(1426).extendFlat;o.exports={hoverlabel:{bgcolor:s({},f.bgcolor,{arrayOk:!0}),bordercolor:s({},f.bordercolor,{arrayOk:!0}),font:l({arrayOk:!0,editType:"none"}),align:s({},f.align,{arrayOk:!0}),namelength:s({},f.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(o,a,n){var l=n(71828),f=n(73972);function s(u,d,h,p){p=p||l.identity,Array.isArray(u)&&(d[0][h]=p(u))}o.exports=function(u){var d=u.calcdata,h=u._fullLayout;function p(b){return function(x){return l.coerceHoverinfo({hoverinfo:x},{_module:b._module},h)}}for(var m=0;m=0&&y.indexde[0]._length||pt<0||pt>xe[0]._length)return b.unhoverRaw(ie,le)}else ut="xpx"in le?le.xpx:de[0]._length/2,pt="ypx"in le?le.ypx:xe[0]._length/2;if(le.pointerX=ut+de[0]._offset,le.pointerY=pt+xe[0]._offset,De="xval"in le?w.flat(Se,le.xval):w.p2c(de,ut),Re="yval"in le?w.flat(Se,le.yval):w.p2c(xe,pt),!f(De[0])||!f(Re[0]))return u.warn("Fx.hover failed",le,ie),b.unhoverRaw(ie,le)}var zt=1/0;function wt(Zt,pn){for(Be=0;BeNe&&(Qe.splice(0,Ne),zt=Qe[0].distance),ye&&Ee!==0&&Qe.length===0){ze.distance=Ee,ze.index=!1;var Dn=qe._module.hoverPoints(ze,ct,bt,"closest",{hoverLayer:Oe._hoverlayer});if(Dn&&(Dn=Dn.filter(function(lr){return lr.spikeDistance<=Ee})),Dn&&Dn.length){var wn,En=Dn.filter(function(lr){return lr.xa.showspikes&&lr.xa.spikesnap!=="hovered data"});if(En.length){var tr=En[0];f(tr.x0)&&f(tr.y0)&&(wn=_e(tr),(!kt.vLinePoint||kt.vLinePoint.spikeDistance>wn.spikeDistance)&&(kt.vLinePoint=wn))}var oa=Dn.filter(function(lr){return lr.ya.showspikes&&lr.ya.spikesnap!=="hovered data"});if(oa.length){var da=oa[0];f(da.x0)&&f(da.y0)&&(wn=_e(da),(!kt.hLinePoint||kt.hLinePoint.spikeDistance>wn.spikeDistance)&&(kt.hLinePoint=wn))}}}}}function ve(Zt,pn,nn){for(var Kt,On=null,Tn=1/0,Dn=0;Dn0&&Math.abs(Zt.distance)Ft-1;Vt--)gt(Qe[Vt]);Qe=St,Ze()}var ht=ie._hoverdata,yt=[],qt=te(ie),Et=ee(ie);for(Ie=0;Ie1||Qe.length>1)||ke==="closest"&&Je&&Qe.length>1,cn=g.combine(Oe.plot_bgcolor||g.background,Oe.paper_bgcolor),ln=j(Qe,{gd:ie,hovermode:ke,rotateLabels:tn,bgColor:cn,container:Oe._hoverlayer,outerContainer:Oe._paper.node(),commonLabelOpts:Oe.hoverlabel,hoverdistance:Oe.hoverdistance}),an=ln.hoverLabels;if(w.isUnifiedHover(ke)||(function(Zt,pn,nn,Kt){var On,Tn,Dn,wn,En,tr,oa,da=pn?"xa":"ya",lr=pn?"ya":"xa",ti=0,Or=1,ur=Zt.size(),kr=new Array(ur),la=0,An=Kt.minX,on=Kt.maxX,$n=Kt.minY,Ar=Kt.maxY,Ln=function(kn){return kn*nn._invScaleX},Bn=function(kn){return kn*nn._invScaleY};function jn(kn){var Pr=kn[0],Aa=kn[kn.length-1];if(Tn=Pr.pmin-Pr.pos-Pr.dp+Pr.size,Dn=Aa.pos+Aa.dp+Aa.size-Pr.pmax,Tn>.01){for(En=kn.length-1;En>=0;En--)kn[En].dp+=Tn;On=!1}if(!(Dn<.01)){if(Tn<-.01){for(En=kn.length-1;En>=0;En--)kn[En].dp-=Dn;On=!1}if(On){var Br=0;for(wn=0;wnPr.pmax&&Br++;for(wn=kn.length-1;wn>=0&&!(Br<=0);wn--)(tr=kn[wn]).pos>Pr.pmax-1&&(tr.del=!0,Br--);for(wn=0;wn=0;En--)kn[En].dp-=Dn;for(wn=kn.length-1;wn>=0&&!(Br<=0);wn--)(tr=kn[wn]).pos+tr.dp+tr.size>Pr.pmax&&(tr.del=!0,Br--)}}}for(Zt.each(function(kn){var Pr=kn[da],Aa=kn[lr],Br=Pr._id.charAt(0)==="x",Fi=Pr.range;la===0&&Fi&&Fi[0]>Fi[1]!==Br&&(Or=-1);var Ni=0,mi=Br?nn.width:nn.height;if(nn.hovermode==="x"||nn.hovermode==="y"){var ni,Ga,vi=E(kn,pn),us=kn.anchor,nl=us==="end"?-1:1;if(us==="middle")Ga=(ni=kn.crossPos+(Br?Bn(vi.y-kn.by/2):Ln(kn.bx/2+kn.tx2width/2)))+(Br?Bn(kn.by):Ln(kn.bx));else if(Br)Ga=(ni=kn.crossPos+Bn(R+vi.y)-Bn(kn.by/2-R))+Bn(kn.by);else{var cs=Ln(nl*R+vi.x),oo=cs+Ln(nl*kn.bx);ni=kn.crossPos+Math.min(cs,oo),Ga=kn.crossPos+Math.max(cs,oo)}Br?$n!==void 0&&Ar!==void 0&&Math.min(Ga,Ar)-Math.max(ni,$n)>1&&(Aa.side==="left"?(Ni=Aa._mainLinePosition,mi=nn.width):mi=Aa._mainLinePosition):An!==void 0&&on!==void 0&&Math.min(Ga,on)-Math.max(ni,An)>1&&(Aa.side==="top"?(Ni=Aa._mainLinePosition,mi=nn.height):mi=Aa._mainLinePosition)}kr[la++]=[{datum:kn,traceIndex:kn.trace.index,dp:0,pos:kn.pos,posref:kn.posref,size:kn.by*(Br?P:1)/2,pmin:Ni,pmax:mi}]}),kr.sort(function(kn,Pr){return kn[0].posref-Pr[0].posref||Or*(Pr[0].traceIndex-kn[0].traceIndex)});!On&&ti<=ur;){for(ti++,On=!0,wn=0;wn.01&&xr.pmin===Mr.pmin&&xr.pmax===Mr.pmax){for(En=Lr.length-1;En>=0;En--)Lr[En].dp+=Tn;for(Un.push.apply(Un,Lr),kr.splice(wn+1,1),oa=0,En=Un.length-1;En>=0;En--)oa+=Un[En].dp;for(Dn=oa/Un.length,En=Un.length-1;En>=0;En--)Un[En].dp-=Dn;On=!1}else wn++}kr.forEach(jn)}for(wn=kr.length-1;wn>=0;wn--){var Na=kr[wn];for(En=Na.length-1;En>=0;En--){var wa=Na[En],sa=wa.datum;sa.offset=wa.dp,sa.del=wa.del}}}(an,tn,Oe,ln.commonLabelBoundingBox),W(an,tn,Oe._invScaleX,Oe._invScaleY)),Te&&Te.tagName){var sn=_.getComponentMethod("annotations","hasClickToShow")(ie,yt);y(l.select(Te),sn?"pointer":"")}Te&&!pe&&function(Zt,pn,nn){if(!nn||nn.length!==Zt._hoverdata.length)return!0;for(var Kt=nn.length-1;Kt>=0;Kt--){var On=nn[Kt],Tn=Zt._hoverdata[Kt];if(On.curveNumber!==Tn.curveNumber||String(On.pointNumber)!==String(Tn.pointNumber)||String(On.pointNumbers)!==String(Tn.pointNumbers))return!0}return!1}(ie,0,ht)&&(ht&&ie.emit("plotly_unhover",{event:le,points:ht}),ie.emit("plotly_hover",{event:le,points:ie._hoverdata,xaxes:de,yaxes:xe,xvals:De,yvals:Re}))})(Q,Y,Z,X,re)})},a.loneHover=function(Q,Y){var Z=!0;Array.isArray(Q)||(Z=!1,Q=[Q]);var X=Y.gd,re=te(X),ie=ee(X),le=j(Q.map(function(Te){var Se=Te._x0||Te.x0||Te.x||0,Oe=Te._x1||Te.x1||Te.x||0,Me=Te._y0||Te.y0||Te.y||0,ce=Te._y1||Te.y1||Te.y||0,ye=Te.eventData;if(ye){var J=Math.min(Se,Oe),ne=Math.max(Se,Oe),de=Math.min(Me,ce),xe=Math.max(Me,ce),ue=Te.trace;if(_.traceIs(ue,"gl3d")){var ge=X._fullLayout[ue.scene]._scene.container,be=ge.offsetLeft,we=ge.offsetTop;J+=be,ne+=be,de+=we,xe+=we}ye.bbox={x0:J+ie,x1:ne+ie,y0:de+re,y1:xe+re},Y.inOut_bbox&&Y.inOut_bbox.push(ye.bbox)}else ye=!1;return{color:Te.color||g.defaultLine,x0:Te.x0||Te.x||0,x1:Te.x1||Te.x||0,y0:Te.y0||Te.y||0,y1:Te.y1||Te.y||0,xLabel:Te.xLabel,yLabel:Te.yLabel,zLabel:Te.zLabel,text:Te.text,name:Te.name,idealAlign:Te.idealAlign,borderColor:Te.borderColor,fontFamily:Te.fontFamily,fontSize:Te.fontSize,fontColor:Te.fontColor,nameLength:Te.nameLength,textAlign:Te.textAlign,trace:Te.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Te.hovertemplate||!1,hovertemplateLabels:Te.hovertemplateLabels||!1,eventData:ye}}),{gd:X,hovermode:"closest",rotateLabels:!1,bgColor:Y.bgColor||g.background,container:l.select(Y.container),outerContainer:Y.outerContainer||Y.container}).hoverLabels,se=0,pe=0;return le.sort(function(Te,Se){return Te.y0-Se.y0}).each(function(Te,Se){var Oe=Te.y0-Te.by/2;Te.offset=Oe-5([\s\S]*)<\/extra>/;function j(Q,Y){var Z=Y.gd,X=Z._fullLayout,re=Y.hovermode,ie=Y.rotateLabels,le=Y.bgColor,se=Y.container,pe=Y.outerContainer,Te=Y.commonLabelOpts||{};if(Q.length===0)return[[]];var Se=Y.fontFamily||k.HOVERFONT,Oe=Y.fontSize||k.HOVERFONTSIZE,Me=Q[0],ce=Me.xa,ye=Me.ya,J=re.charAt(0),ne=J+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var xe=0;xeX.width-jt?(ht=X.width-jt,Ft.attr("d","M"+(jt-R)+",0L"+jt+","+Et+R+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H"+(jt-2*R)+"Z")):Ft.attr("d","M0,0L"+R+","+Et+R+"H"+jt+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H-"+R+"Z"),Be.minX=ht-jt,Be.maxX=ht+jt,ce.side==="top"?(Be.minY=yt-(2*F+qt.height),Be.maxY=yt-F):(Be.minY=yt+F,Be.maxY=yt+(2*F+qt.height))}else{var Tt,Ot,At;ye.side==="right"?(Tt="start",Ot=1,At="",ht=ce._offset+ce._length):(Tt="end",Ot=-1,At="-",ht=ce._offset),yt=ye._offset+(Me.y0+Me.y1)/2,Vt.attr("text-anchor",Tt),Ft.attr("d","M0,0L"+At+R+","+R+"V"+(F+qt.height/2)+"h"+At+(2*F+qt.width)+"V-"+(F+qt.height/2)+"H"+At+R+"V-"+R+"Z"),Be.minY=yt-(F+qt.height/2),Be.maxY=yt+(F+qt.height/2),ye.side==="right"?(Be.minX=ht+R,Be.maxX=ht+R+(2*F+qt.width)):(Be.minX=ht-R-(2*F+qt.width),Be.maxX=ht-R);var Lt,Rt=qt.height/2,$t=ge-qt.top-Rt,Yt="clip"+X._uid+"commonlabel"+ye._id;if(ht=0?pt:It+wt=0?It:nt+wt=0?Je:ut+ve=0?ut:st+ve=0,tt.idealAlign!=="top"&&tn||!cn?tn?(Rt+=Yt/2,tt.anchor="start"):tt.anchor="middle":(Rt-=Yt/2,tt.anchor="end"),tt.crossPos=Rt;else{if(tt.pos=Rt,tn=Lt+$t/2+ln<=be,cn=Lt-$t/2-ln>=0,tt.idealAlign!=="left"&&tn||!cn)if(tn)Lt+=$t/2,tt.anchor="start";else{tt.anchor="middle";var an=ln/2,sn=Lt+an-be,Zt=Lt-an;sn>0&&(Lt-=sn),Zt<0&&(Lt+=-Zt)}else Lt-=$t/2,tt.anchor="end";tt.crossPos=Lt}Et.attr("text-anchor",tt.anchor),Tt&&jt.attr("text-anchor",tt.anchor),Ft.attr("transform",d(Lt,Rt)+(ie?h(S):""))}),{hoverLabels:mt,commonLabelBoundingBox:Be}}function N(Q,Y,Z,X,re,ie){var le="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=u.templateString(Q.name,Q.trace._meta)),le=H(Q.name,Q.nameLength));var pe=Z.charAt(0),Te=pe==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(se+="x: "+Q.xLabel+"
"),Q.yLabel!==void 0&&(se+="y: "+Q.yLabel+"
"),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Q.zLabel)):Y&&Q[pe+"Label"]===re?se=Q[Te+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(se=Q.yLabel):se=Q.yLabel===void 0?Q.xLabel:"("+Q.xLabel+", "+Q.yLabel+")",!Q.text&&Q.text!==0||Array.isArray(Q.text)||(se+=(se?"
":"")+Q.text),Q.extraText!==void 0&&(se+=(se?"
":"")+Q.extraText),ie&&se===""&&!Q.hovertemplate&&(le===""&&ie.remove(),se=le);var Se=Q.hovertemplate||!1;if(Se){var Oe=Q.hovertemplateLabels||Q;Q[pe+"Label"]!==re&&(Oe[pe+"other"]=Oe[pe+"Val"],Oe[pe+"otherLabel"]=Oe[pe+"Label"]),se=(se=u.hovertemplateString(Se,Oe,X._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace($,function(Me,ce){return le=H(ce,Q.nameLength),""})}return[se,le]}function E(Q,Y){var Z=0,X=Q.offset;return Y&&(X*=-O,Z=Q.offset*D),{x:Z,y:X}}function W(Q,Y,Z,X){var re=function(le){return le*Z},ie=function(le){return le*X};Q.each(function(le){var se=l.select(this);if(le.del)return se.remove();var pe,Te,Se,Oe,Me=se.select("text.nums"),ce=le.anchor,ye=ce==="end"?-1:1,J=(Oe=(Se=(Te={start:1,end:-1,middle:0}[(pe=le).anchor])*(R+F))+Te*(pe.txwidth+F),pe.anchor==="middle"&&(Se-=pe.tx2width/2,Oe+=pe.txwidth/2+F),{alignShift:Te,textShiftX:Se,text2ShiftX:Oe}),ne=E(le,Y),de=ne.x,xe=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(le.bx/2+le.tx2width/2)+","+ie(xe-le.by/2)+"h"+re(le.bx)+"v"+ie(le.by)+"h-"+re(le.bx)+"Z":"M0,0L"+re(ye*R+de)+","+ie(R+xe)+"v"+ie(le.by/2-R)+"h"+re(ye*le.bx)+"v-"+ie(le.by)+"H"+re(ye*R+de)+"V"+ie(xe-R)+"Z");var ge=de+J.textShiftX,be=xe+le.ty0-le.by/2+F,we=le.textAlign||"auto";we!=="auto"&&(we==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),ge=ue?-le.bx/2-le.tx2width/2+F:-le.bx-F):we==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),ge=ue?le.bx/2-le.tx2width/2-F:le.bx+F)),Me.call(m.positionText,re(ge),ie(be)),le.tx2width&&(se.select("text.name").call(m.positionText,re(J.text2ShiftX+J.alignShift*F+de),ie(xe+le.ty0-le.by/2+F)),se.select("rect").call(v.setRect,re(J.text2ShiftX+(J.alignShift-1)*le.tx2width/2+de),ie(xe-le.by/2-1),re(le.tx2width),ie(le.by+2)))})}function G(Q,Y){var Z=Q.index,X=Q.trace||{},re=Q.cd[0],ie=Q.cd[Z]||{};function le(Me){return Me||f(Me)&&Me===0}var se=Array.isArray(Z)?function(Me,ce){var ye=u.castOption(re,Z,Me);return le(ye)?ye:u.extractOption({},X,"",ce)}:function(Me,ce){return u.extractOption(ie,X,Me,ce)};function pe(Me,ce,ye){var J=se(ce,ye);le(J)&&(Q[Me]=J)}if(pe("hoverinfo","hi","hoverinfo"),pe("bgcolor","hbg","hoverlabel.bgcolor"),pe("borderColor","hbc","hoverlabel.bordercolor"),pe("fontFamily","htf","hoverlabel.font.family"),pe("fontSize","hts","hoverlabel.font.size"),pe("fontColor","htc","hoverlabel.font.color"),pe("nameLength","hnl","hoverlabel.namelength"),pe("textAlign","hta","hoverlabel.align"),Q.posref=Y==="y"||Y==="closest"&&X.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=u.constrain(Q.x0,0,Q.xa._length),Q.x1=u.constrain(Q.x1,0,Q.xa._length),Q.y0=u.constrain(Q.y0,0,Q.ya._length),Q.y1=u.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:x.hoverLabelText(Q.xa,Q.xLabelVal,X.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:x.hoverLabelText(Q.ya,Q.yLabelVal,X.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!(isNaN(Q.xerr)||Q.xa.type==="log"&&Q.xerr<=0)){var Te=x.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+Te+" / -"+x.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+Te,Y==="x"&&(Q.distance+=1)}if(!(isNaN(Q.yerr)||Q.ya.type==="log"&&Q.yerr<=0)){var Se=x.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Se+" / -"+x.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Se,Y==="y"&&(Q.distance+=1)}var Oe=Q.hoverinfo||Q.trace.hoverinfo;return Oe&&Oe!=="all"&&((Oe=Array.isArray(Oe)?Oe:Oe.split("+")).indexOf("x")===-1&&(Q.xLabel=void 0),Oe.indexOf("y")===-1&&(Q.yLabel=void 0),Oe.indexOf("z")===-1&&(Q.zLabel=void 0),Oe.indexOf("text")===-1&&(Q.text=void 0),Oe.indexOf("name")===-1&&(Q.name=void 0)),Q}function L(Q,Y,Z){var X,re,ie=Z.container,le=Z.fullLayout,se=le._size,pe=Z.event,Te=!!Y.hLinePoint,Se=!!Y.vLinePoint;if(ie.selectAll(".spikeline").remove(),Se||Te){var Oe=g.combine(le.plot_bgcolor,le.paper_bgcolor);if(Te){var Me,ce,ye=Y.hLinePoint;X=ye&&ye.xa,(re=ye&&ye.ya).spikesnap==="cursor"?(Me=pe.pointerX,ce=pe.pointerY):(Me=X._offset+ye.x,ce=re._offset+ye.y);var J,ne,de=s.readability(ye.color,Oe)<1.5?g.contrast(Oe):ye.color,xe=re.spikemode,ue=re.spikethickness,ge=re.spikecolor||de,be=x.getPxPosition(Q,re);if(xe.indexOf("toaxis")!==-1||xe.indexOf("across")!==-1){if(xe.indexOf("toaxis")!==-1&&(J=be,ne=Me),xe.indexOf("across")!==-1){var we=re._counterDomainMin,ke=re._counterDomainMax;re.anchor==="free"&&(we=Math.min(we,re.position),ke=Math.max(ke,re.position)),J=se.l+we*se.w,ne=se.l+ke*se.w}ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:ge,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}xe.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:be+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:ge}).classed("spikeline",!0)}if(Se){var Ae,Ee,De=Y.vLinePoint;X=De&&De.xa,re=De&&De.ya,X.spikesnap==="cursor"?(Ae=pe.pointerX,Ee=pe.pointerY):(Ae=X._offset+De.x,Ee=re._offset+De.y);var Re,Ie,Be=s.readability(De.color,Oe)<1.5?g.contrast(Oe):De.color,Ue=X.spikemode,qe=X.spikethickness,Ye=X.spikecolor||Be,at=x.getPxPosition(Q,X);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&(Re=at,Ie=Ee),Ue.indexOf("across")!==-1){var lt=X._counterDomainMin,ct=X._counterDomainMax;X.anchor==="free"&&(lt=Math.min(lt,X.position),ct=Math.max(ct,X.position)),Re=se.t+(1-ct)*se.h,Ie=se.t+(1-lt)*se.h}ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe,stroke:Ye,"stroke-dasharray":v.dashStyle(X.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:Ae,cy:at-(X.side!=="top"?qe:-qe),r:qe,fill:Ye}).classed("spikeline",!0)}}}function q(Q,Y){return!Y}function H(Q,Y){return m.plainText(Q||"",{len:Y,allowedTags:["br","sub","sup","b","i","em"]})}function V(Q,Y,Z){var X=Y[Q+"a"],re=Y[Q+"Val"],ie=Y.cd[0];if(X.type==="category"||X.type==="multicategory")re=X._categoriesMap[re];else if(X.type==="date"){var le=Y.trace[Q+"periodalignment"];if(le){var se=Y.cd[Y.index],pe=se[Q+"Start"];pe===void 0&&(pe=se[Q]);var Te=se[Q+"End"];Te===void 0&&(Te=se[Q]);var Se=Te-pe;le==="end"?re+=Se:le==="middle"&&(re+=Se/2)}re=X.d2c(re)}return ie&&ie.t&&ie.t.posLetter===X._id&&(Z.boxmode!=="group"&&Z.violinmode!=="group"||(re+=ie.t.dPos)),re}function te(Q){return Q.offsetTop+Q.clientTop}function ee(Q){return Q.offsetLeft+Q.clientLeft}function U(Q,Y){var Z=Q._fullLayout,X=Y.getBoundingClientRect(),re=X.left,ie=X.top,le=re+X.width,se=ie+X.height,pe=u.apply3DTransform(Z._invTransform)(re,ie),Te=u.apply3DTransform(Z._invTransform)(le,se),Se=pe[0],Oe=pe[1],Me=Te[0],ce=Te[1];return{x:Se,y:Oe,width:Me-Se,height:ce-Oe,top:Math.min(Oe,ce),left:Math.min(Se,Me),right:Math.max(Se,Me),bottom:Math.max(Oe,ce)}}},38048:function(o,a,n){var l=n(71828),f=n(7901),s=n(23469).isUnifiedHover;o.exports=function(u,d,h,p){p=p||{};var m=d.legend;function y(v){p.font[v]||(p.font[v]=m?d.legend.font[v]:d.font[v])}d&&s(d.hovermode)&&(p.font||(p.font={}),y("size"),y("family"),y("color"),m?(p.bgcolor||(p.bgcolor=f.combine(d.legend.bgcolor,d.paper_bgcolor)),p.bordercolor||(p.bordercolor=d.legend.bordercolor)):p.bgcolor||(p.bgcolor=d.paper_bgcolor)),h("hoverlabel.bgcolor",p.bgcolor),h("hoverlabel.bordercolor",p.bordercolor),h("hoverlabel.namelength",p.namelength),l.coerceFont(h,"hoverlabel.font",p.font),h("hoverlabel.align",p.align)}},98212:function(o,a,n){var l=n(71828),f=n(528);o.exports=function(s,u){function d(h,p){return u[h]!==void 0?u[h]:l.coerce(s,u,f,h,p)}return d("clickmode"),d("hovermode")}},30211:function(o,a,n){var l=n(39898),f=n(71828),s=n(28569),u=n(23469),d=n(528),h=n(88335);o.exports={moduleType:"component",name:"fx",constants:n(26675),schema:{layout:d},attributes:n(77914),layoutAttributes:d,supplyLayoutGlobalDefaults:n(22774),supplyDefaults:n(54268),supplyLayoutDefaults:n(34938),calc:n(30732),getDistanceFunction:u.getDistanceFunction,getClosest:u.getClosest,inbox:u.inbox,quadrature:u.quadrature,appendArrayPointValue:u.appendArrayPointValue,castHoverOption:function(p,m,y){return f.castOption(p,m,"hoverlabel."+y)},castHoverinfo:function(p,m,y){return f.castOption(p,y,"hoverinfo",function(v){return f.coerceHoverinfo({hoverinfo:v},{_module:p._module},m)})},hover:h.hover,unhover:s.unhover,loneHover:h.loneHover,loneUnhover:function(p){var m=f.isD3Selection(p)?p:l.select(p);m.selectAll("g.hovertext").remove(),m.selectAll(".spikeline").remove()},click:n(75914)}},528:function(o,a,n){var l=n(26675),f=n(41940),s=f({editType:"none"});s.family.dflt=l.HOVERFONT,s.size.dflt=l.HOVERFONTSIZE,o.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:s,grouptitlefont:f({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(o,a,n){var l=n(71828),f=n(528),s=n(98212),u=n(38048);o.exports=function(d,h){function p(g,b){return l.coerce(d,h,f,g,b)}s(d,h)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var m=h._has("mapbox"),y=h._has("geo"),v=h._basePlotModules.length;h.dragmode==="zoom"&&((m||y)&&v===1||m&&y&&v===2)&&(h.dragmode="pan"),u(d,h,p),l.coerceFont(p,"hoverlabel.grouptitlefont",h.hoverlabel.font)}},22774:function(o,a,n){var l=n(71828),f=n(38048),s=n(528);o.exports=function(u,d){f(u,d,function(h,p){return l.coerce(u,d,s,h,p)})}},83312:function(o,a,n){var l=n(71828),f=n(30587).counter,s=n(27670).Y,u=n(85555).idRegex,d=n(44467),h={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[f("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[u.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[u.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:s({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function p(v,g,b){var x=g[b+"axes"],_=Object.keys((v._splomAxes||{})[b]||{});return Array.isArray(x)?x:_.length?_:void 0}function m(v,g,b,x,_,w){var k=g(v+"gap",b),T=g("domain."+v);g(v+"side",x);for(var M=new Array(_),S=T[0],C=(T[1]-S)/(_-k),P=C*(1-k),D=0;D<_;D++){var O=S+C*D;M[w?_-1-D:D]=[O,O+P]}return M}function y(v,g,b,x,_){var w,k=new Array(b);function T(M,S){g.indexOf(S)!==-1&&x[S]===void 0?(k[M]=S,x[S]=M):k[M]=""}if(Array.isArray(v))for(w=0;w1){T||M||S||$("pattern")==="independent"&&(T=!0),P._hasSubplotGrid=T;var R,F,A=$("roworder")==="top to bottom",z=T?.2:.1,B=T?.3:.1;C&&g._splomGridDflt&&(R=g._splomGridDflt.xside,F=g._splomGridDflt.yside),P._domains={x:m("x",$,z,R,O),y:m("y",$,B,F,D,A)}}else delete g.grid}function $(j,N){return l.coerce(b,P,h,j,N)}},contentDefaults:function(v,g){var b=g.grid;if(b&&b._domains){var x,_,w,k,T,M,S,C=v.grid||{},P=g._subplots,D=b._hasSubplotGrid,O=b.rows,R=b.columns,F=b.pattern==="independent",A=b._axisMap={};if(D){var z=C.subplots||[];M=b.subplots=new Array(O);var B=1;for(x=0;x(y==="legend"?1:0));if(B===!1&&(g[y]=void 0),(B!==!1||x.uirevision)&&(w("uirevision",g.uirevision),B!==!1)){w("borderwidth");var $,j,N,E=w("orientation")==="h",W=w("yref")==="paper",G=w("xref")==="paper",L="left";if(E?($=0,l.getComponentMethod("rangeslider","isVisible")(v.xaxis)?W?(j=1.1,N="bottom"):(j=1,N="top"):W?(j=-.1,N="top"):(j=0,N="bottom")):(j=1,N="auto",G?$=1.02:($=1,L="right")),f.coerce(x,_,{x:{valType:"number",editType:"legend",min:G?-2:0,max:G?3:1,dflt:$}},"x"),f.coerce(x,_,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:j}},"y"),w("traceorder",O),p.isGrouped(g[y])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",L),w("yanchor",N),w("valign"),f.noneOrAll(x,_,["x","y"]),w("title.text")){w("title.side",E?"left":"top");var q=f.extendFlat({},k,{size:f.bigFont(k.size)});f.coerceFont(w,"title.font",q)}}}}o.exports=function(y,v,g){var b,x=g.slice(),_=v.shapes;if(_)for(b=0;b<_.length;b++){var w=_[b];if(w.showlegend){var k={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};x.push(k)}}var T=["legend"];for(b=0;b1)}var X=q.hiddenlabels||[];if(!(V||q.showlegend&&te.length))return G.selectAll("."+H).remove(),q._topdefs.select("#"+W).remove(),s.autoMargin(N,H);var re=f.ensureSingle(G,"g",H,function(ce){V||ce.attr("pointer-events","all")}),ie=f.ensureSingleById(q._topdefs,"clipPath",W,function(ce){ce.append("rect")}),le=f.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});le.call(m.stroke,L.bordercolor).call(m.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,pe=f.ensureSingle(re,"g","scrollbox"),Te=L.title;L._titleWidth=0,L._titleHeight=0,Te.text?((se=f.ensureSingle(pe,"text",H+"titletext")).attr("text-anchor","start").call(p.font,Te.font).text(Te.text),z(se,pe,N,L,S)):pe.selectAll("."+H+"titletext").remove();var Se=f.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(g.scrollBarEnterAttrs).call(m.fill,g.scrollBarColor)}),Oe=pe.selectAll("g.groups").data(te);Oe.enter().append("g").attr("class","groups"),Oe.exit().remove();var Me=Oe.selectAll("g.traces").data(f.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var ye=ce[0].trace;return u.traceIs(ye,"pie-like")?X.indexOf(ce[0].label)!==-1?.5:1:ye.visible==="legendonly"?.5:1}).each(function(){l.select(this).call(R,N,L)}).call(T,N,L).each(function(){V||l.select(this).call(A,N,H)}),f.syncOrAsync([s.previousPromises,function(){return function(ce,ye,J,ne){var de=ce._fullLayout,xe=j(ne);ne||(ne=de[xe]);var ue=de._size,ge=M.isVertical(ne),be=M.isGrouped(ne),we=ne.entrywidthmode==="fraction",ke=ne.borderwidth,Ae=2*ke,Ee=g.itemGap,De=ne.itemwidth+2*Ee,Re=2*(ke+Ee),Ie=$(ne),Be=ne.y<0||ne.y===0&&Ie==="top",Ue=ne.y>1||ne.y===1&&Ie==="bottom",qe=ne.tracegroupgap,Ye={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var at=0;ne._width=0,ne._height=0;var lt=function(Ge){var Ke=0,nt=0,st=Ge.title.side;return st&&(st.indexOf("left")!==-1&&(Ke=Ge._titleWidth),st.indexOf("top")!==-1&&(nt=Ge._titleHeight)),[Ke,nt]}(ne);if(ge)J.each(function(Ge){var Ke=Ge[0].height;p.setTranslate(this,ke+lt[0],ke+lt[1]+ne._height+Ke/2+Ee),ne._height+=Ke,ne._width=Math.max(ne._width,Ge[0].width)}),at=De+ne._width,ne._width+=Ee+De+Ae,ne._height+=Re,be&&(ye.each(function(Ge,Ke){p.setTranslate(this,0,Ke*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var ct=B(ne),bt=ne.x<0||ne.x===0&&ct==="right",ze=ne.x>1||ne.x===1&&ct==="left",Ne=Ue||Be,Qe=de.width/2;ne._maxWidth=Math.max(bt?Ne&&ct==="left"?ue.l+ue.w:Qe:ze?Ne&&ct==="right"?ue.r+ue.w:Qe:ue.w,2*De);var it=0,kt=0;J.each(function(Ge){var Ke=D(Ge,ne,De);it=Math.max(it,Ke),kt+=Ke}),at=null;var Je=0;if(be){var ut=0,pt=0,It=0;ye.each(function(){var Ge=0,Ke=0;l.select(this).selectAll("g.traces").each(function(st){var mt=D(st,ne,De),tt=st[0].height;p.setTranslate(this,lt[0],lt[1]+ke+Ee+tt/2+Ke),Ke+=tt,Ge=Math.max(Ge,mt),Ye[st[0].trace.legendgroup]=Ge});var nt=Ge+Ee;pt>0&&nt+ke+pt>ne._maxWidth?(Je=Math.max(Je,pt),pt=0,It+=ut+qe,ut=Ke):ut=Math.max(ut,Ke),p.setTranslate(this,pt,It),pt+=nt}),ne._width=Math.max(Je,pt)+ke,ne._height=It+ut+Re}else{var Mt=J.size(),zt=kt+Ae+(Mt-1)*Ee=ne._maxWidth&&(Je=Math.max(Je,Ve),ve=0,_e+=wt,ne._height+=wt,wt=0),p.setTranslate(this,lt[0]+ke+ve,lt[1]+ke+_e+Ke/2+Ee),Ve=ve+nt+Ee,ve+=st,wt=Math.max(wt,Ke)}),zt?(ne._width=ve+Ae,ne._height=wt+Re):(ne._width=Math.max(Je,Ve)+Ae,ne._height+=wt+Re)}}ne._width=Math.ceil(Math.max(ne._width+lt[0],ne._titleWidth+2*(ke+g.titlePad))),ne._height=Math.ceil(Math.max(ne._height+lt[1],ne._titleHeight+2*(ke+g.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var We=ce._context.edits,Ze=We.legendText||We.legendPosition;J.each(function(Ge){var Ke=l.select(this).select("."+xe+"toggle"),nt=Ge[0].height,st=Ge[0].trace.legendgroup,mt=D(Ge,ne,De);be&&st!==""&&(mt=Ye[st]);var tt=Ze?De:at||mt;ge||we||(tt+=Ee/2),p.setRect(Ke,0,-nt/2,tt,nt)})}(N,Oe,Me,L)},function(){var ce,ye,J,ne,de=q._size,xe=L.borderwidth,ue=L.xref==="paper",ge=L.yref==="paper";if(Te.text&&function(Ne,Qe,it){if(Qe.title.side==="top center"||Qe.title.side==="top right"){var kt=Qe.title.font.size*x,Je=0,ut=Ne.node(),pt=p.bBox(ut).width;Qe.title.side==="top center"?Je=.5*(Qe._width-2*it-2*g.titlePad-pt):Qe.title.side==="top right"&&(Je=Qe._width-2*it-2*g.titlePad-pt),y.positionText(Ne,it+g.titlePad+Je,it+kt)}}(se,L,xe),!V){var be,we;be=ue?de.l+de.w*L.x-_[B(L)]*L._width:q.width*L.x-_[B(L)]*L._width,we=ge?de.t+de.h*(1-L.y)-_[$(L)]*L._effHeight:q.height*(1-L.y)-_[$(L)]*L._effHeight;var ke=function(Ne,Qe,it,kt){var Je=Ne._fullLayout,ut=Je[Qe],pt=B(ut),It=$(ut),Mt=ut.xref==="paper",zt=ut.yref==="paper";Ne._fullLayout._reservedMargin[Qe]={};var wt=ut.y<.5?"b":"t",ve=ut.x<.5?"l":"r",_e={r:Je.width-it,l:it+ut._width,b:Je.height-kt,t:kt+ut._effHeight};if(Mt&&zt)return s.autoMargin(Ne,Qe,{x:ut.x,y:ut.y,l:ut._width*_[pt],r:ut._width*w[pt],b:ut._effHeight*w[It],t:ut._effHeight*_[It]});Mt?Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]:zt||ut.orientation==="v"?Ne._fullLayout._reservedMargin[Qe][ve]=_e[ve]:Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]}(N,H,be,we);if(ke)return;if(q.margin.autoexpand){var Ae=be,Ee=we;be=ue?f.constrain(be,0,q.width-L._width):Ae,we=ge?f.constrain(we,0,q.height-L._effHeight):Ee,be!==Ae&&f.log("Constrain "+H+".x to make legend fit inside graph"),we!==Ee&&f.log("Constrain "+H+".y to make legend fit inside graph")}p.setTranslate(re,be,we)}if(Se.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var De=L._effHeight;V&&(De=L._height),le.attr({width:L._width-xe,height:De-xe,x:xe/2,y:xe/2}),p.setTranslate(pe,0,0),ie.select("rect").attr({width:L._width-2*xe,height:De-2*xe,x:xe,y:xe}),p.setClipUrl(pe,W,N),p.setRect(Se,0,0,0,0),delete L._scrollY}else{var Re,Ie,Be,Ue=Math.max(g.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*g.scrollBarMargin,Ye=L._height-L._effHeight,at=qe/Ye,lt=Math.min(L._scrollY||0,Ye);le.attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-xe,x:xe/2,y:xe/2}),ie.select("rect").attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-2*xe,x:xe,y:xe+lt}),p.setClipUrl(pe,W,N),ze(lt,Ue,at),re.on("wheel",function(){ze(lt=f.constrain(L._scrollY+l.event.deltaY/qe*Ye,0,Ye),Ue,at),lt!==0&<!==Ye&&l.event.preventDefault()});var ct=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Re=Ne.type==="touchstart"?Ne.changedTouches[0].clientY:Ne.clientY,Be=lt}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ie=Ne.type==="touchmove"?Ne.changedTouches[0].clientY:Ne.clientY,lt=function(Qe,it,kt){var Je=(kt-it)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});Se.call(ct);var bt=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Ne.type==="touchstart"&&(Re=Ne.changedTouches[0].clientY,Be=lt)}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.type==="touchmove"&&(Ie=Ne.changedTouches[0].clientY,lt=function(Qe,it,kt){var Je=(it-kt)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});pe.call(bt)}function ze(Ne,Qe,it){L._scrollY=N._fullLayout[H]._scrollY=Ne,p.setTranslate(pe,0,-Ne),p.setRect(Se,L._width,g.scrollBarMargin+Ne*it,g.scrollBarWidth,Qe),ie.select("rect").attr("y",xe+Ne)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),h.init({element:re.node(),gd:N,prepFn:function(){var Ne=p.getTranslate(re);J=Ne.x,ne=Ne.y},moveFn:function(Ne,Qe){var it=J+Ne,kt=ne+Qe;p.setTranslate(re,it,kt),ce=h.align(it,L._width,de.l,de.l+de.w,L.xanchor),ye=h.align(kt+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&ye!==void 0){var Ne={};Ne[H+".x"]=ce,Ne[H+".y"]=ye,u.call("_guiRelayout",N,Ne)}},clickFn:function(Ne,Qe){var it=G.selectAll("g.traces").filter(function(){var kt=this.getBoundingClientRect();return Qe.clientX>=kt.left&&Qe.clientX<=kt.right&&Qe.clientY>=kt.top&&Qe.clientY<=kt.bottom});it.size()>0&&O(N,re,it,Ne,Qe)}}))}],N)}}function D(N,E,W){var G=N[0],L=G.width,q=E.entrywidthmode,H=G.trace.legendwidth||E.entrywidth;return q==="fraction"?E._maxWidth*H:W+(H||L)}function O(N,E,W,G,L){var q=W.data()[0][0].trace,H={event:L,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};q._group&&(H.group=q._group),u.traceIs(q,"pie-like")&&(H.label=W.datum()[0].label);var V=d.triggerHandler(N,"plotly_legendclick",H);if(G===1){if(V===!1)return;E._clickTimeout=setTimeout(function(){N._fullLayout&&v(W,N,G)},N._context.doubleClickDelay)}else G===2&&(E._clickTimeout&&clearTimeout(E._clickTimeout),N._legendMouseDownTime=0,d.triggerHandler(N,"plotly_legenddoubleclick",H)!==!1&&V!==!1&&v(W,N,G))}function R(N,E,W){var G,L,q=j(W),H=N.data()[0][0],V=H.trace,te=u.traceIs(V,"pie-like"),ee=!W._inHover&&E._context.edits.legendText&&!te,U=W._maxNameLength;H.groupTitle?(G=H.groupTitle.text,L=H.groupTitle.font):(L=W.font,W.entries?G=H.text:(G=te?H.label:V.name,V._meta&&(G=f.templateString(G,V._meta))));var Q=f.ensureSingle(N,"text",q+"text");Q.attr("text-anchor","start").call(p.font,L).text(ee?F(G,U):G);var Y=W.itemwidth+2*g.itemGap;y.positionText(Q,Y,0),ee?Q.call(y.makeEditable,{gd:E,text:G}).call(z,N,E,W).on("edit",function(Z){this.text(F(Z,U)).call(z,N,E,W);var X=H.trace._fullInput||{},re={};if(u.hasTransform(X,"groupby")){var ie=u.getTransformIndices(X,"groupby"),le=ie[ie.length-1],se=f.keyedContainer(X,"transforms["+le+"].styles","target","value.name");se.set(H.trace._group,Z),re=se.constructUpdate()}else re.name=Z;return X._isShape?u.call("_guiRelayout",E,"shapes["+V.index+"].name",re.name):u.call("_guiRestyle",E,re,V.index)}):z(Q,N,E,W)}function F(N,E){var W=Math.max(4,E);if(N&&N.trim().length>=W/2)return N;for(var G=W-(N=N||"").length;G>0;G--)N+=" ";return N}function A(N,E,W){var G,L=E._context.doubleClickDelay,q=1,H=f.ensureSingle(N,"rect",W+"toggle",function(V){E._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(m.fill,"rgba(0,0,0,0)")});E._context.staticPlot||(H.on("mousedown",function(){(G=new Date().getTime())-E._legendMouseDownTimeL&&(q=Math.max(q-1,1)),O(E,V,N,q,l.event)}}))}function z(N,E,W,G,L){G._inHover&&N.attr("data-notex",!0),y.convertToTspans(N,W,function(){(function(q,H,V,te){var ee=q.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var U=q.select("g[class*=math-group]"),Q=U.node(),Y=j(V);V||(V=H._fullLayout[Y]);var Z,X,re=V.borderwidth,ie=(te===S?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*x;if(Q){var le=p.bBox(Q);Z=le.height,X=le.width,te===S?p.setTranslate(U,re,re+.75*Z):p.setTranslate(U,0,.25*Z)}else{var se="."+Y+(te===S?"title":"")+"text",pe=q.select(se),Te=y.lineCount(pe),Se=pe.node();if(Z=ie*Te,X=Se?p.bBox(Se).width:0,te===S)V.title.side==="left"&&(X+=2*g.itemGap),y.positionText(pe,re+g.titlePad,re+ie);else{var Oe=2*g.itemGap+V.itemwidth;ee.groupTitle&&(Oe=g.itemGap,X-=V.itemwidth),y.positionText(pe,Oe,-ie*((Te-1)/2-.3))}}te===S?(V._titleWidth=X,V._titleHeight=Z):(ee.lineHeight=ie,ee.height=Math.max(Z,16)+3,ee.width=X)}else q.remove()})(E,W,G,L)})}function B(N){return f.isRightAnchor(N)?"right":f.isCenterAnchor(N)?"center":"left"}function $(N){return f.isBottomAnchor(N)?"bottom":f.isMiddleAnchor(N)?"middle":"top"}function j(N){return N._id||"legend"}o.exports=function(N,E){if(E)P(N,E);else{var W=N._fullLayout,G=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var H=l.select(this),V=H.attr("class").split(" ")[0];V.match(C)&&G.indexOf(V)===-1&&H.remove()});for(var L=0;LB&&(z=B)}F[h][0]._groupMinRank=z,F[h][0]._preGroupSort=h}var $=function(G,L){return G.trace.legendrank-L.trace.legendrank||G._preSort-L._preSort};for(F.forEach(function(G,L){G[0]._preGroupSort=L}),F.sort(function(G,L){return G[0]._groupMinRank-L[0]._groupMinRank||G[0]._preGroupSort-L[0]._preGroupSort}),h=0;hT?T:w}o.exports=function(w,k,T){var M=k._fullLayout;T||(T=M.legend);var S=T.itemsizing==="constant",C=T.itemwidth,P=(C+2*g.itemGap)/2,D=u(P,0),O=function(A,z,B,$){var j;if(A+1)j=A;else{if(!(z&&z.width>0))return 0;j=z.width}return S?$:Math.min(j,B)};function R(A,z,B){var $=A[0].trace,j=$.marker||{},N=j.line||{},E=B?$.visible&&$.type===B:f.traceIs($,"bar"),W=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(E?[A]:[]);W.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),W.exit().remove(),W.each(function(G){var L=l.select(this),q=G[0],H=O(q.mlw,j.line,5,2);L.style("stroke-width",H+"px");var V=q.mcc;if(!T._inHover&&"mc"in q){var te=p(j),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=d.tryColorscale(j,"")(ee)}var U=V||q.mc||j.color,Q=j.pattern,Y=Q&&d.getPatternAttr(Q.shape,0,"");if(Y){var Z=d.getPatternAttr(Q.bgcolor,0,null),X=d.getPatternAttr(Q.fgcolor,0,null),re=Q.fgopacity,ie=_(Q.size,8,10),le=_(Q.solidity,.5,1),se="legend-"+$.uid;L.call(d.pattern,"legend",k,se,Y,ie,le,V,Q.fillmode,Z,X,re)}else L.call(h.fill,U);H&&h.stroke(L,q.mlc||N.color)})}function F(A,z,B){var $=A[0],j=$.trace,N=B?j.visible&&j.type===B:f.traceIs(j,B),E=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(N?[A]:[]);if(E.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),E.exit().remove(),E.size()){var W=j.marker||{},G=O(v(W.line.width,$.pts),W.line,5,2),L="pieLike",q=s.minExtend(j,{marker:{line:{width:G}}},L),H=s.minExtend($,{trace:q},L);y(E,H,q,k)}}w.each(function(A){var z=l.select(this),B=s.ensureSingle(z,"g","layers");B.style("opacity",A[0].trace.opacity);var $=T.valign,j=A[0].lineHeight,N=A[0].height;if($!=="middle"&&j&&N){var E={top:1,bottom:-1}[$]*(.5*(j-N+3));B.attr("transform",u(0,E))}else B.attr("transform",null);B.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),B.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var W=B.selectAll("g.legendsymbols").data([A]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var z,B=A[0].trace,$=[];if(B.visible)switch(B.type){case"histogram2d":case"heatmap":$=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":$=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":$=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":$=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":$=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":$=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1}var j=l.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data($);j.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(N,E){var W,G=l.select(this),L=p(B),q=L.colorscale,H=L.reversescale;if(q){if(!z){var V=q.length;W=E===0?q[H?V-1:0][1]:E===1?q[H?0:V-1][1]:q[Math.floor((V-1)/2)][1]}}else{var te=B.vertexcolor||B.facecolor||B.color;W=s.isArrayOrTypedArray(te)?te[E]||te[0]:te}G.attr("d",N[0]),W?G.call(h.fill,W):G.call(function(ee){if(ee.size()){var U="legendfill-"+B.uid;d.gradient(ee,k,U,b(H,z==="radial"),q,"fill")}})})}).each(function(A){var z=A[0].trace,B=z.type==="waterfall";if(A[0]._distinct&&B){var $=A[0].trace[A[0].dir].marker;return A[0].mc=$.color,A[0].mlw=$.line.width,A[0].mlc=$.line.color,R(A,this,"waterfall")}var j=[];z.visible&&B&&(j=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=l.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(j);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(E){var W=l.select(this),G=z[E[0]].marker,L=O(void 0,G.line,5,2);W.attr("d",E[1]).style("stroke-width",L+"px").call(h.fill,G.color),L&&W.call(h.stroke,G.line.color)})}).each(function(A){R(A,this,"funnel")}).each(function(A){R(A,this)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(z.visible&&f.traceIs(z,"box-violin")?[A]:[]);B.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),B.exit().remove(),B.each(function(){var $=l.select(this);if(z.boxpoints!=="all"&&z.points!=="all"||h.opacity(z.fillcolor)!==0||h.opacity((z.line||{}).color)!==0){var j=O(void 0,z.line,5,2);$.style("stroke-width",j+"px").call(h.fill,z.fillcolor),j&&h.stroke($,z.line.color)}else{var N=s.minExtend(z,{marker:{size:S?12:s.constrain(z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});B.call(d.pointStyle,N,k)}})}).each(function(A){F(A,this,"funnelarea")}).each(function(A){F(A,this,"pie")}).each(function(A){var z,B,$=x(A),j=$.showFill,N=$.showLine,E=$.showGradientLine,W=$.showGradientFill,G=$.anyFill,L=$.anyLine,q=A[0],H=q.trace,V=p(H),te=V.colorscale,ee=V.reversescale,U=m.hasMarkers(H)||!G?"M5,0":L?"M5,-2":"M5,-3",Q=l.select(this),Y=Q.select(".legendfill").selectAll("path").data(j||W?[A]:[]);if(Y.enter().append("path").classed("js-fill",!0),Y.exit().remove(),Y.attr("d",U+"h"+C+"v6h-"+C+"z").call(function(re){if(re.size())if(j)d.fillGroupStyle(re,k);else{var ie="legendfill-"+H.uid;d.gradient(re,k,ie,b(ee),te,"fill")}}),N||E){var Z=O(void 0,H.line,10,5);B=s.minExtend(H,{line:{width:Z}}),z=[s.minExtend(q,{trace:B})]}var X=Q.select(".legendlines").selectAll("path").data(N||E?[z]:[]);X.enter().append("path").classed("js-line",!0),X.exit().remove(),X.attr("d",U+(E?"l"+C+",0.0001":"h"+C)).call(N?d.lineGroupStyle:function(re){if(re.size()){var ie="legendline-"+H.uid;d.lineGroupStyle(re),d.gradient(re,k,ie,b(ee),te,"stroke")}})}).each(function(A){var z,B,$=x(A),j=$.anyFill,N=$.anyLine,E=$.showLine,W=$.showMarker,G=A[0],L=G.trace,q=!W&&!N&&!j&&m.hasText(L);function H(X,re,ie,le){var se=s.nestedProperty(L,X).get(),pe=s.isArrayOrTypedArray(se)&&re?re(se):se;if(S&&pe&&le!==void 0&&(pe=le),ie){if(peie[1])return ie[1]}return pe}function V(X){return G._distinct&&G.index&&X[G.index]?X[G.index]:X[0]}if(W||q||E){var te={},ee={};if(W){te.mc=H("marker.color",V),te.mx=H("marker.symbol",V),te.mo=H("marker.opacity",s.mean,[.2,1]),te.mlc=H("marker.line.color",V),te.mlw=H("marker.line.width",s.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var U=H("marker.size",s.mean,[2,16],12);te.ms=U,ee.marker.size=U}E&&(ee.line={width:H("line.width",V,[0,10],5)}),q&&(te.tx="Aa",te.tp=H("textposition",V),te.ts=10,te.tc=H("textfont.color",V),te.tf=H("textfont.family",V)),z=[s.minExtend(G,te)],(B=s.minExtend(L,ee)).selectedpoints=null,B.texttemplate=null}var Q=l.select(this).select("g.legendpoints"),Y=Q.selectAll("path.scatterpts").data(W?z:[]);Y.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),Y.exit().remove(),Y.call(d.pointStyle,B,k),W&&(z[0].mrc=3);var Z=Q.selectAll("g.pointtext").data(q?z:[]);Z.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),Z.exit().remove(),Z.selectAll("text").call(d.textPointStyle,B,k)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(z.visible&&z.type==="candlestick"?[A,A]:[]);B.enter().append("path").classed("legendcandle",!0).attr("d",function($,j){return j?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("stroke-width",W+"px").call(h.fill,E.fillcolor),W&&h.stroke(N,E.line.color)})}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(z.visible&&z.type==="ohlc"?[A,A]:[]);B.enter().append("path").classed("legendohlc",!0).attr("d",function($,j){return j?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("fill","none").call(d.dashLine,E.line.dash,W),W&&h.stroke(N,E.line.color)})})}},42068:function(o,a,n){n(93348),o.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(o,a,n){var l=n(73972),f=n(74875),s=n(41675),u=n(24255),d=n(34031).eraseActiveShape,h=n(71828),p=h._,m=o.exports={};function y(M,S){var C,P,D=S.currentTarget,O=D.getAttribute("data-attr"),R=D.getAttribute("data-val")||!0,F=M._fullLayout,A={},z=s.list(M,null,!0),B=F._cartesianSpikesEnabled;if(O==="zoom"){var $,j=R==="in"?.5:2,N=(1+j)/2,E=(1-j)/2;for(P=0;P1?(U=["toggleHover"],Q=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],U=["hoverClosestGeo"],Q=["resetGeo"]):F?(U=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],U=["toggleHover"],Q=["resetViewMapbox"]):$?U=["hoverClosestGl2d"]:z?U=["hoverClosestPie"]:G?(U=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):U=["toggleHover"],R&&(U=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var pe=0;pe0)){var k=function(M,S,C){for(var P=C.filter(function(F){return S[F].anchor===M._id}),D=0,O=0;O=Se.max)pe=re[Te+1];else if(se=Se.pmax)pe=re[Te+1];else if(seTe._length||ge+Ie<0)return;Ee=ue+Ie,De=ge+Ie;break;case Me:if(Re="col-resize",ue+Ie>Te._length)return;Ee=ue+Ie,De=ge;break;case ce:if(Re="col-resize",ge+Ie<0)return;Ee=ue,De=ge+Ie;break;default:Re="ew-resize",Ee=xe,De=xe+Ie}if(De=0;$--){var j=S.append("path").attr(P).style("opacity",$?.1:D).call(u.stroke,R).call(u.fill,O).call(d.dashLine,$?"solid":A,$?4+F:F);if(b(j,_,T),z){var N=h(_.layout,"selections",T);j.style({cursor:"move"});var E={element:j.node(),plotinfo:M,gd:_,editHelpers:N,isActiveSelection:!0},W=l(C,_);f(W,j,E)}else j.style("pointer-events",$?"all":"none");B[$]=j}var G=B[0];B[1].node().addEventListener("click",function(){return function(L,q){if(v(L)){var H=+q.node().getAttribute("data-index");if(H>=0){if(H===L._fullLayout._activeSelectionIndex)return void x(L);L._fullLayout._activeSelectionIndex=H,L._fullLayout._deactivateSelection=x,y(L)}}}(_,G)})}(_._fullLayout._selectionLayer)}function b(_,w,k){var T=k.xref+k.yref;d.setClipUrl(_,"clip"+w._fullLayout._uid+T,w)}function x(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(s(_),delete _._fullLayout._activeSelectionIndex,y(_))}o.exports={draw:y,drawOne:g,activateLastSelection:function(_){if(v(_)){var w=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=w,_._fullLayout._deactivateSelection=x,y(_)}}}},53777:function(o,a,n){var l=n(79952).P,f=n(1426).extendFlat;o.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:f({},l,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(o){o.exports=function(a,n,l){l("newselection.mode"),l("newselection.line.width")&&(l("newselection.line.color"),l("newselection.line.dash")),l("activeselection.fillcolor"),l("activeselection.opacity")}},35855:function(o,a,n){var l=n(64505).selectMode,f=n(51873).clearOutline,s=n(60165),u=s.readPaths,d=s.writePaths,h=s.fixDatesForPaths;o.exports=function(p,m){if(p.length){var y=p[0][0];if(y){var v=y.getAttribute("d"),g=m.gd,b=g._fullLayout.newselection,x=m.plotinfo,_=x.xaxis,w=x.yaxis,k=m.isActiveSelection,T=m.dragmode,M=(g.layout||{}).selections||[];if(!l(T)&&k!==void 0){var S=g._fullLayout._activeSelectionIndex;if(S-1,kt=[];if(function(Mt){return Mt&&Array.isArray(Mt)&&Mt[0].hoverOnBox!==!0}(Qe)){Z(ke,Ae,Ie);var Je=function(Mt,zt){var wt,ve,_e=Mt[0],Ve=-1,We=[];for(ve=0;ve0?function(Mt,zt){var wt,ve,_e,Ve=[];for(_e=0;_e0&&Ve.push(wt);if(Ve.length===1&&Ve[0]===zt.searchInfo&&(ve=zt.searchInfo.cd[0].trace).selectedpoints.length===zt.pointNumbers.length){for(_e=0;_e1||(ve+=zt.selectedpoints.length)>1))return!1;return ve===1}(Ue)&&(ct=se(Je))){for(Be&&Be.remove(),Ne=0;Ne=0})(Re)&&Re._fullLayout._deactivateShape(Re),function(lt){return lt._fullLayout._activeSelectionIndex>=0}(Re)&&Re._fullLayout._deactivateSelection(Re);var Ie=Re._fullLayout._zoomlayer,Be=g(Ee),Ue=x(Ee);if(Be||Ue){var qe,Ye,at=Ie.selectAll(".select-outline-"+De.id);at&&Re._fullLayout._outlining&&(Be&&(qe=P(at,ke)),qe&&s.call("_guiRelayout",Re,{shapes:qe}),Ue&&!te(ke)&&(Ye=D(at,ke)),Ye&&(Re._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",Re,{selections:Ye}).then(function(){Ae&&O(Re)})),Re._fullLayout._outlining=!1)}De.selection={},De.selection.selectionDefs=ke.selectionDefs=[],De.selection.mergedPolygons=ke.mergedPolygons=[]}function re(ke){return ke._id}function ie(ke,Ae,Ee,De){if(!ke.calcdata)return[];var Re,Ie,Be,Ue=[],qe=Ae.map(re),Ye=Ee.map(re);for(Be=0;Be0?De[0]:Ee;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf(Re)>-1}function pe(ke,Ae,Ee){var De,Re;for(De=0;De-1&&Ae;if(!Ie&&Ae){var Ot=ne(ke,!0);if(Ot.length){var At=Ot[0].xref,Lt=Ot[0].yref;if(At&&Lt){var Rt=ue(Ot);ge([B(ke,At,"x"),B(ke,Lt,"y")])(jt,Rt)}}ke._fullLayout._noEmitSelectedAtStart?ke._fullLayout._noEmitSelectedAtStart=!1:Tt&&be(ke,jt),ct._reselect=!1}if(!Ie&&ct._deselect){var $t=ct._deselect;(function(Yt,Xt,Bt){for(var Wt=0;Wt=0)bt._fullLayout._deactivateShape(bt);else if(!Ye){var Rt=ze.clickmode;z.done(Et).then(function(){if(z.clear(Et),At===2){for(Nt.remove(),_e=0;_e-1&&ee(Lt,bt,De.xaxes,De.yaxes,De.subplot,De,Nt),Rt==="event"&&be(bt,void 0);h.click(bt,Lt,kt.id)}).catch(R.error)}},De.doneFn=function(){yt.remove(),z.done(Et).then(function(){z.clear(Et),!Ne&&ve&&De.selectionDefs&&(ve.subtract=St,De.selectionDefs.push(ve),De.mergedPolygons.length=0,[].push.apply(De.mergedPolygons,wt)),(Ne||Ye)&&X(De,Ne),De.doneFnCompleted&&De.doneFnCompleted(jt),at&&be(bt,We)}).catch(R.error)}},clearOutline:T,clearSelectionsCache:X,selectOnClick:ee}},89827:function(o,a,n){var l=n(50215),f=n(41940),s=n(82196).line,u=n(79952).P,d=n(1426).extendFlat,h=n(44467).templatedArray,p=(n(24695),n(9012)),m=n(5386).R,y=n(37281);o.exports=h("shape",{visible:d({},p.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:d({},p.legend,{editType:"calc+arraydraw"}),legendgroup:d({},p.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:d({},p.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:f({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:d({},p.legendrank,{editType:"calc+arraydraw"}),legendwidth:d({},p.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:d({},l.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:d({},l.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:d({},s.color,{editType:"arraydraw"}),width:d({},s.width,{editType:"calc+arraydraw"}),dash:d({},u,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:m({},{keys:Object.keys(y)}),font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(o,a,n){var l=n(71828),f=n(89298),s=n(21459),u=n(30477);function d(y){return p(y.line.width,y.xsizemode,y.x0,y.x1,y.path,!1)}function h(y){return p(y.line.width,y.ysizemode,y.y0,y.y1,y.path,!0)}function p(y,v,g,b,x,_){var w=y/2,k=_;if(v==="pixel"){var T=x?u.extractPathCoords(x,_?s.paramIsY:s.paramIsX):[g,b],M=l.aggNums(Math.max,null,T),S=l.aggNums(Math.min,null,T),C=S<0?Math.abs(S)+w:w,P=M>0?M+w:w;return{ppad:w,ppadplus:k?C:P,ppadminus:k?P:C}}return{ppad:w}}function m(y,v,g,b,x){var _=y.type==="category"||y.type==="multicategory"?y.r2c:y.d2c;if(v!==void 0)return[_(v),_(g)];if(b){var w,k,T,M,S=1/0,C=-1/0,P=b.match(s.segmentRE);for(y.type==="date"&&(_=u.decodeDate(_)),w=0;wC&&(C=M)));return C>=S?[S,C]:void 0}}o.exports=function(y){var v=y._fullLayout,g=l.filterVisible(v.shapes);if(g.length&&y._fullData.length)for(var b=0;b=re?ie-se:se-ie,-180/Math.PI*Math.atan2(pe,Te)}(C,D,P,O):0),A.call(function(re){return re.call(u.font,F).attr({}),s.convertToTspans(re,v),re});var Q=function(re,ie,le,se,pe,Te,Se){var Oe,Me,ce,ye,J=pe.label.textposition,ne=pe.label.textangle,de=pe.label.padding,xe=pe.type,ue=Math.PI/180*Te,ge=Math.sin(ue),be=Math.cos(ue),we=pe.label.xanchor,ke=pe.label.yanchor;if(xe==="line"){J==="start"?(Oe=re,Me=ie):J==="end"?(Oe=le,Me=se):(Oe=(re+le)/2,Me=(ie+se)/2),we==="auto"&&(we=J==="start"?ne==="auto"?le>re?"left":lere?"right":lere?"right":lere?"left":le1&&(Oe.length!==2||Oe[1][0]!=="Z")&&(G===0&&(Oe[0][0]="M"),R[W]=Oe,$(),j())}}()}}function re(pe,Te){(function(Se,Oe){if(R.length)for(var Me=0;MeMe?(J=Se,ue="y0",ne=Me,ge="y1"):(J=Me,ue="y1",ne=Se,ge="y0"),ut(wt),Mt(se,ie),function(ve,_e,Ve){var We=_e.xref,Ze=_e.yref,Ge=u.getFromId(Ve,We),Ke=u.getFromId(Ve,Ze),nt="";We==="paper"||Ge.autorange||(nt+=We),Ze==="paper"||Ke.autorange||(nt+=Ze),v.setClipUrl(ve,nt?"clip"+Ve._fullLayout._uid+nt:null,Ve)}(re,ie,X),Je.moveFn=Ae==="move"?pt:It,Je.altKey=wt.altKey)},doneFn:function(){M(X)||(x(re),zt(se),P(re,X,ie),f.call("_guiRelayout",X,pe.getUpdateObj()))},clickFn:function(){M(X)||zt(se)}};function ut(wt){if(M(X))Ae=null;else if(Be)Ae=wt.target.tagName==="path"?"move":wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ve=Je.element.getBoundingClientRect(),_e=ve.right-ve.left,Ve=ve.bottom-ve.top,We=wt.clientX-ve.left,Ze=wt.clientY-ve.top,Ge=!Ue&&_e>Ee&&Ve>De&&!wt.shiftKey?b.getCursor(We/_e,1-Ze/Ve):"move";x(re,Ge),Ae=Ge.split("-")[0]}}function pt(wt,ve){if(ie.type==="path"){var _e=function(Ze){return Ze},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(Ze){return Qe(ze(Ze)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(Ze){return it(Ne(Ze)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(qe("x0",ie.x0=Qe(Te+wt)),qe("x1",ie.x1=Qe(Oe+wt))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(qe("y0",ie.y0=it(Se+ve)),qe("y1",ie.y1=it(Me+ve)));re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function It(wt,ve){if(Ue){var _e=function(ht){return ht},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(ht){return Qe(ze(ht)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(ht){return it(Ne(ht)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else if(Be){if(Ae==="resize-over-start-point"){var Ze=Te+wt,Ge=Ie?Se-ve:Se+ve;qe("x0",ie.x0=Re?Ze:Qe(Ze)),qe("y0",ie.y0=Ie?Ge:it(Ge))}else if(Ae==="resize-over-end-point"){var Ke=Oe+wt,nt=Ie?Me-ve:Me+ve;qe("x1",ie.x1=Re?Ke:Qe(Ke)),qe("y1",ie.y1=Ie?nt:it(nt))}}else{var st=function(ht){return Ae.indexOf(ht)!==-1},mt=st("n"),tt=st("s"),Ft=st("w"),Vt=st("e"),St=mt?J+ve:J,Nt=tt?ne+ve:ne,Dt=Ft?de+wt:de,gt=Vt?xe+wt:xe;Ie&&(mt&&(St=J-ve),tt&&(Nt=ne-ve)),(!Ie&&Nt-St>De||Ie&&St-Nt>De)&&(qe(ue,ie[ue]=Ie?St:it(St)),qe(ge,ie[ge]=Ie?Nt:it(Nt))),gt-Dt>Ee&&(qe(be,ie[be]=Re?Dt:Qe(Dt)),qe(we,ie[we]=Re?gt:Qe(gt)))}re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function Mt(wt,ve){(Re||Ie)&&function(){var _e=ve.type!=="path",Ve=wt.selectAll(".visual-cue").data([0]);Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var We=ze(Re?ve.xanchor:s.midRange(_e?[ve.x0,ve.x1]:w.extractPathCoords(ve.path,_.paramIsX))),Ze=Ne(Ie?ve.yanchor:s.midRange(_e?[ve.y0,ve.y1]:w.extractPathCoords(ve.path,_.paramIsY)));if(We=w.roundPositionForSharpStrokeRendering(We,1),Ze=w.roundPositionForSharpStrokeRendering(Ze,1),Re&&Ie){var Ge="M"+(We-1-1)+","+(Ze-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",Ge)}else if(Re){var Ke="M"+(We-1-1)+","+(Ze-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Ke)}else{var nt="M"+(We-9-1)+","+(Ze-1-1)+"h18 v2 h-18 Z";Ve.attr("d",nt)}}()}function zt(wt){wt.selectAll(".visual-cue").remove()}b.init(Je),kt.node().onmousemove=ut}(R,Q,z,F,j,ee):z.editable===!0&&Q.style("pointer-events",V||y.opacity(G)*W<=.5?"stroke":"all");Q.node().addEventListener("click",function(){return function(X,re){if(S(X)){var ie=+re.node().getAttribute("data-index");if(ie>=0){if(ie===X._fullLayout._activeShapeIndex)return void O(X);X._fullLayout._activeShapeIndex=ie,X._fullLayout._deactivateShape=O,T(X)}}}(R,Q)})}z._input&&z.visible===!0&&(z.layer!=="below"?$(R._fullLayout._shapeUpperLayer):z.xref==="paper"||z.yref==="paper"?$(R._fullLayout._shapeLowerLayer):B._hadPlotinfo?$((B.mainplotinfo||B).shapelayer):$(R._fullLayout._shapeLowerLayer))}function P(R,F,A){var z=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(R,z?"clip"+F._fullLayout._uid+z:null,F)}function D(R,F,A){return R.replace(_.segmentRE,function(z){var B=0,$=z.charAt(0),j=_.paramIsX[$],N=_.paramIsY[$],E=_.numParams[$];return $+z.substr(1).replace(_.paramRE,function(W){return B>=E||(j[B]?W=F(W):N[B]&&(W=A(W)),B++),W})})}function O(R){S(R)&&R._fullLayout._activeShapeIndex>=0&&(m(R),delete R._fullLayout._activeShapeIndex,T(R))}o.exports={draw:T,drawOne:C,eraseActiveShape:function(R){if(S(R)){m(R);var F=R._fullLayout._activeShapeIndex,A=(R.layout||{}).shapes||[];if(F0&&CU&&(Y="X"),Y});return H>U&&(Q=Q.replace(/[\s,]*X.*/,""),f.log("Ignoring extra params in segment "+q)),V+Q})}(d,p,y);if(d.xsizemode==="pixel"){var C=p(d.xanchor);v=C+d.x0,g=C+d.x1}else v=p(d.x0),g=p(d.x1);if(d.ysizemode==="pixel"){var P=y(d.yanchor);b=P-d.y0,x=P-d.y1}else b=y(d.y0),x=y(d.y1);if(_==="line")return"M"+v+","+b+"L"+g+","+x;if(_==="rect")return"M"+v+","+b+"H"+g+"V"+x+"H"+v+"Z";var D=(v+g)/2,O=(b+x)/2,R=Math.abs(D-v),F=Math.abs(O-b),A="A"+R+","+F,z=D+R+","+O;return"M"+z+A+" 0 1,1 "+D+","+(O-F)+A+" 0 0,1 "+z+"Z"}},89853:function(o,a,n){var l=n(34031);o.exports={moduleType:"component",name:"shapes",layoutAttributes:n(89827),supplyLayoutDefaults:n(84726),supplyDrawNewShapeDefaults:n(45547),includeBasePlot:n(76325)("shapes"),calcAutorange:n(5627),draw:l.draw,drawOne:l.drawOne}},37281:function(o){function a(s,u){return u?u.d2l(s):s}function n(s,u){return u?u.l2d(s):s}function l(s,u){return a(s.x1,u)-a(s.x0,u)}function f(s,u,d){return a(s.y1,d)-a(s.y0,d)}o.exports={x0:function(s){return s.x0},x1:function(s){return s.x1},y0:function(s){return s.y0},y1:function(s){return s.y1},slope:function(s,u,d){return s.type!=="line"?void 0:f(s,0,d)/l(s,u)},dx:l,dy:f,width:function(s,u){return Math.abs(l(s,u))},height:function(s,u,d){return Math.abs(f(s,0,d))},length:function(s,u,d){return s.type!=="line"?void 0:Math.sqrt(Math.pow(l(s,u),2)+Math.pow(f(s,0,d),2))},xcenter:function(s,u){return n((a(s.x1,u)+a(s.x0,u))/2,u)},ycenter:function(s,u,d){return n((a(s.y1,d)+a(s.y0,d))/2,d)}}},75067:function(o,a,n){var l=n(41940),f=n(35025),s=n(1426).extendDeepAll,u=n(30962).overrideAll,d=n(85594),h=n(44467).templatedArray,p=n(98292),m=h("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});o.exports=u(h("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:m,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:s(f({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:d.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:l({})},font:l({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},98292:function(o){o.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(o,a,n){var l=n(71828),f=n(85501),s=n(75067),u=n(98292).name,d=s.steps;function h(m,y,v){function g(k,T){return l.coerce(m,y,s,k,T)}for(var b=f(m,y,{name:"steps",handleItemDefaults:p}),x=0,_=0;_0&&(H=H.transition().duration(N.transition.duration).ease(N.transition.easing)),H.attr("transform",h(q-.5*y.gripWidth,N._dims.currentValueTotalHeight))}}function A(j,N){var E=j._dims;return E.inputAreaStart+y.stepInset+(E.inputAreaLength-2*y.stepInset)*Math.min(1,Math.max(0,N))}function z(j,N){var E=j._dims;return Math.min(1,Math.max(0,(N-y.stepInset-E.inputAreaStart)/(E.inputAreaLength-2*y.stepInset-2*E.inputAreaStart)))}function B(j,N,E){var W=E._dims,G=d.ensureSingle(j,"rect",y.railTouchRectClass,function(L){L.call(O,N,j,E).style("pointer-events","all")});G.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,y.tickOffset+E.ticklen+W.labelHeight)}).call(s.fill,E.bgcolor).attr("opacity",0),u.setTranslate(G,0,W.currentValueTotalHeight)}function $(j,N){var E=N._dims,W=E.inputAreaLength-2*y.railInset,G=d.ensureSingle(j,"rect",y.railRectClass);G.attr({width:W,height:y.railWidth,rx:y.railRadius,ry:y.railRadius,"shape-rendering":"crispEdges"}).call(s.stroke,N.bordercolor).call(s.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),u.setTranslate(G,y.railInset,.5*(E.inputAreaWidth-y.railWidth)+E.currentValueTotalHeight)}o.exports=function(j){var N=j._context.staticPlot,E=j._fullLayout,W=function(te,ee){for(var U=te[y.name],Q=[],Y=0;Y0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),f.autoMargin(j,_(te))}if(G.enter().append("g").classed(y.containerClassName,!0).style("cursor",N?null:"ew-resize"),G.exit().each(function(){l.select(this).selectAll("g."+y.groupClassName).each(L)}).remove(),W.length!==0){var q=G.selectAll("g."+y.groupClassName).data(W,w);q.enter().append("g").classed(y.groupClassName,!0),q.exit().each(L).remove();for(var H=0;H0||Oe<0){var J={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[P.side];Q.attr("transform",h(J[0],J[1]))}}}return H.call(V),G&&($?H.on(".opacity",null):(A=0,z=!0,H.text(S).on("mouseover.opacity",function(){l.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){l.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(y.makeEditable,{gd:x}).on("edit",function(U){C!==void 0?u.call("_guiRestyle",x,M,U,C):u.call("_guiRelayout",x,M,U)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(U){this.text(U||" ").call(y.positionText,D.x,D.y)})),H.classed("js-placeholder",z),R}}},7163:function(o,a,n){var l=n(41940),f=n(22399),s=n(1426).extendFlat,u=n(30962).overrideAll,d=n(35025),h=n(44467).templatedArray,p=h("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});o.exports=u(h("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:s(d({editType:"arraydraw"}),{}),font:l({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:f.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(o){o.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(o,a,n){var l=n(71828),f=n(85501),s=n(7163),u=n(75909).name,d=s.buttons;function h(m,y,v){function g(b,x){return l.coerce(m,y,s,b,x)}g("visible",f(m,y,{name:"buttons",handleItemDefaults:p}).length>0)&&(g("active"),g("direction"),g("type"),g("showactive"),g("x"),g("y"),l.noneOrAll(m,y,["x","y"]),g("xanchor"),g("yanchor"),g("pad.t"),g("pad.r"),g("pad.b"),g("pad.l"),l.coerceFont(g,"font",v.font),g("bgcolor",v.paper_bgcolor),g("bordercolor"),g("borderwidth"))}function p(m,y){function v(g,b){return l.coerce(m,y,d,g,b)}v("visible",m.method==="skip"||Array.isArray(m.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}o.exports=function(m,y){f(m,y,{name:u,handleItemDefaults:h})}},13689:function(o,a,n){var l=n(39898),f=n(74875),s=n(7901),u=n(91424),d=n(71828),h=n(63893),p=n(44467).arrayEditor,m=n(18783).LINE_SPACING,y=n(75909),v=n(25849);function g(A){return A._index}function b(A,z){return+A.attr(y.menuIndexAttrName)===z._index}function x(A,z,B,$,j,N,E,W){z.active=E,p(A.layout,y.name,z).applyUpdate("active",E),z.type==="buttons"?w(A,$,null,null,z):z.type==="dropdown"&&(j.attr(y.menuIndexAttrName,"-1"),_(A,$,j,N,z),W||w(A,$,j,N,z))}function _(A,z,B,$,j){var N=d.ensureSingle(z,"g",y.headerClassName,function(H){H.style("pointer-events","all")}),E=j._dims,W=j.active,G=j.buttons[W]||y.blankHeaderOpts,L={y:j.pad.t,yPad:0,x:j.pad.l,xPad:0,index:0},q={width:E.headerWidth,height:E.headerHeight};N.call(k,j,G,A).call(R,j,L,q),d.ensureSingle(z,"text",y.headerArrowClassName,function(H){H.attr("text-anchor","end").call(u.font,j.font).text(y.arrowSymbol[j.direction])}).attr({x:E.headerWidth-y.arrowOffsetX+j.pad.l,y:E.headerHeight/2+y.textOffsetY+j.pad.t}),N.on("click",function(){B.call(F,String(b(B,j)?-1:j._index)),w(A,z,B,$,j)}),N.on("mouseover",function(){N.call(C)}),N.on("mouseout",function(){N.call(P,j)}),u.setTranslate(z,E.lx,E.ly)}function w(A,z,B,$,j){B||(B=z).attr("pointer-events","all");var N=function(Q){return+Q.attr(y.menuIndexAttrName)==-1}(B)&&j.type!=="buttons"?[]:j.buttons,E=j.type==="dropdown"?y.dropdownButtonClassName:y.buttonClassName,W=B.selectAll("g."+E).data(d.filterVisible(N)),G=W.enter().append("g").classed(E,!0),L=W.exit();j.type==="dropdown"?(G.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var q=0,H=0,V=j._dims,te=["up","down"].indexOf(j.direction)!==-1;j.type==="dropdown"&&(te?H=V.headerHeight+y.gapButtonHeader:q=V.headerWidth+y.gapButtonHeader),j.type==="dropdown"&&j.direction==="up"&&(H=-y.gapButtonHeader+y.gapButton-V.openHeight),j.type==="dropdown"&&j.direction==="left"&&(q=-y.gapButtonHeader+y.gapButton-V.openWidth);var ee={x:V.lx+q+j.pad.l,y:V.ly+H+j.pad.t,yPad:y.gapButton,xPad:y.gapButton,index:0},U={l:ee.x+j.borderwidth,t:ee.y+j.borderwidth};W.each(function(Q,Y){var Z=l.select(this);Z.call(k,j,Q,A).call(R,j,ee),Z.on("click",function(){l.event.defaultPrevented||(Q.execute&&(Q.args2&&j.active===Y?(x(A,j,0,z,B,$,-1),f.executeAPICommand(A,Q.method,Q.args2)):(x(A,j,0,z,B,$,Y),f.executeAPICommand(A,Q.method,Q.args))),A.emit("plotly_buttonclicked",{menu:j,button:Q,active:j.active}))}),Z.on("mouseover",function(){Z.call(C)}),Z.on("mouseout",function(){Z.call(P,j),W.call(S,j)})}),W.call(S,j),te?(U.w=Math.max(V.openWidth,V.headerWidth),U.h=ee.y-U.t):(U.w=ee.x-U.l,U.h=Math.max(V.openHeight,V.headerHeight)),U.direction=j.direction,$&&(W.size()?function(Q,Y,Z,X,re,ie){var le,se,pe,Te=re.direction,Se=Te==="up"||Te==="down",Oe=re._dims,Me=re.active;if(Se)for(se=0,pe=0;pe0?[0]:[]);if(j.enter().append("g").classed(y.containerClassName,!0).style("cursor","pointer"),j.exit().each(function(){l.select(this).selectAll("g."+y.headerGroupClassName).each($)}).remove(),B.length!==0){var N=j.selectAll("g."+y.headerGroupClassName).data(B,g);N.enter().append("g").classed(y.headerGroupClassName,!0);for(var E=d.ensureSingle(j,"g",y.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),W=0;WR,z=d.barLength+2*d.barPad,B=d.barWidth+2*d.barPad,$=k,j=M+S;j+B>g&&(j=g-B);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(f.fill,d.barColor),A?(this.hbar=N.attr({rx:d.barRadius,ry:d.barRadius,x:$,y:j,width:z,height:B}),this._hbarXMin=$+z/2,this._hbarTranslateMax=R-z):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=S>F,W=d.barWidth+2*d.barPad,G=d.barLength+2*d.barPad,L=k+T,q=M;L+W>v&&(L=v-W);var H=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(f.fill,d.barColor),E?(this.vbar=H.attr({rx:d.barRadius,ry:d.barRadius,x:L,y:q,width:W,height:G}),this._vbarYMin=q+G/2,this._vbarTranslateMax=F-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=b-.5,ee=E?x+W+.5:x+.5,U=_-.5,Q=A?w+B+.5:w+.5,Y=y._topdefs.selectAll("#"+V).data(A||E?[0]:[]);if(Y.exit().remove(),Y.enter().append("clipPath").attr("id",V).append("rect"),A||E?(this._clipRect=Y.select("rect").attr({x:Math.floor(te),y:Math.floor(U),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(U)}),this.container.call(s.setClipUrl,V,this.gd),this.bg.attr({x:k,y:M,width:T,height:S})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),A||E){var Z=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Z);var X=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault(),l.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(X),E&&this.vbar.on(".drag",null).call(X)}this.setTranslate(p,m)},d.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},d.prototype._onBoxDrag=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h-=l.event.dx),this.vbar&&(p-=l.event.dy),this.setTranslate(h,p)},d.prototype._onBoxWheel=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h+=l.event.deltaY),this.vbar&&(p+=l.event.deltaY),this.setTranslate(h,p)},d.prototype._onBarDrag=function(){var h=this.translateX,p=this.translateY;if(this.hbar){var m=h+this._hbarXMin,y=m+this._hbarTranslateMax;h=(u.constrain(l.event.x,m,y)-m)/(y-m)*(this.position.w-this._box.w)}if(this.vbar){var v=p+this._vbarYMin,g=v+this._vbarTranslateMax;p=(u.constrain(l.event.y,v,g)-v)/(g-v)*(this.position.h-this._box.h)}this.setTranslate(h,p)},d.prototype.setTranslate=function(h,p){var m=this.position.w-this._box.w,y=this.position.h-this._box.h;if(h=u.constrain(h||0,0,m),p=u.constrain(p||0,0,y),this.translateX=h,this.translateY=p,this.container.call(s.setTranslate,this._box.l-this.position.l-h,this._box.t-this.position.t-p),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+h-.5),y:Math.floor(this.position.t+p-.5)}),this.hbar){var v=h/m;this.hbar.call(s.setTranslate,h+v*this._hbarTranslateMax,p)}if(this.vbar){var g=p/y;this.vbar.call(s.setTranslate,h,p+g*this._vbarTranslateMax)}}},18783:function(o){o.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(o){o.exports={axisRefDescription:function(a,n,l){return["If set to a",a,"axis id (e.g. *"+a+"* or","*"+a+"2*), the `"+a+"` position refers to a",a,"coordinate. If set to *paper*, the `"+a+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+l+"). If set to a",a,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+a+"2 domain* refers to the domain of the second",a," axis and a",a,"position of 0.5 refers to the","point between the",n,"and the",l,"of the domain of the","second",a,"axis."].join(" ")}}},31562:function(o){o.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(o){o.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(o){o.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(o){o.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(o,a){a.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],a.STYLE=a.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},77922:function(o,a){a.xmlns="http://www.w3.org/2000/xmlns/",a.svg="http://www.w3.org/2000/svg",a.xlink="http://www.w3.org/1999/xlink",a.svgAttrs={xmlns:a.svg,"xmlns:xlink":a.xlink}},8729:function(o,a,n){a.version=n(11506).version,n(7417),n(98847);for(var l=n(73972),f=a.register=l.register,s=n(10641),u=Object.keys(s),d=0;d",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(o,a){a.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},a.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},a.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},a.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},a.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},a.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},26348:function(o,a,n){var l=n(64872),f=l.mod,s=l.modHalf,u=Math.PI,d=2*u;function h(v){return Math.abs(v[1]-v[0])>d-1e-14}function p(v,g){return s(g-v,d)}function m(v,g){if(h(g))return!0;var b,x;g[0](x=f(x,d))&&(x+=d);var _=f(v,d),w=_+d;return _>=b&&_<=x||w>=b&&w<=x}function y(v,g,b,x,_,w,k){_=_||0,w=w||0;var T,M,S,C,P,D=h([b,x]);function O(z,B){return[z*Math.cos(B)+_,w-z*Math.sin(B)]}D?(T=0,M=u,S=d):b=_&&v<=w);var _,w},pathArc:function(v,g,b,x,_){return y(null,v,g,b,x,_,0)},pathSector:function(v,g,b,x,_){return y(null,v,g,b,x,_,1)},pathAnnulus:function(v,g,b,x,_,w){return y(v,g,b,x,_,w,1)}}},73627:function(o,a){var n=Array.isArray,l=ArrayBuffer,f=DataView;function s(h){return l.isView(h)&&!(h instanceof f)}function u(h){return n(h)||s(h)}function d(h,p,m){if(u(h)){if(u(h[0])){for(var y=m,v=0;vw.max?x.set(_):x.set(+b)}},integer:{coerceFunction:function(b,x,_,w){b%1||!l(b)||w.min!==void 0&&bw.max?x.set(_):x.set(+b)}},string:{coerceFunction:function(b,x,_,w){if(typeof b!="string"){var k=typeof b=="number";w.strict!==!0&&k?x.set(String(b)):x.set(_)}else w.noBlank&&!b?x.set(_):x.set(b)}},color:{coerceFunction:function(b,x,_){f(b).isValid()?x.set(b):x.set(_)}},colorlist:{coerceFunction:function(b,x,_){Array.isArray(b)&&b.length&&b.every(function(w){return f(w).isValid()})?x.set(b):x.set(_)}},colorscale:{coerceFunction:function(b,x,_){x.set(u.get(b,_))}},angle:{coerceFunction:function(b,x,_){b==="auto"?x.set("auto"):l(b)?x.set(y(+b,360)):x.set(_)}},subplotid:{coerceFunction:function(b,x,_,w){var k=w.regex||m(_);typeof b=="string"&&k.test(b)?x.set(b):x.set(_)},validateFunction:function(b,x){var _=x.dflt;return b===_||typeof b=="string"&&!!m(_).test(b)}},flaglist:{coerceFunction:function(b,x,_,w){if((w.extras||[]).indexOf(b)===-1)if(typeof b=="string"){for(var k=b.split("+"),T=0;T=l&&N<=f?N:m}if(typeof N!="string"&&typeof N!="number")return m;N=String(N);var q=S(E),H=N.charAt(0);!q||H!=="G"&&H!=="g"||(N=N.substr(1),E="");var V=q&&E.substr(0,7)==="chinese",te=N.match(V?T:k);if(!te)return m;var ee=te[1],U=te[3]||"1",Q=Number(te[5]||1),Y=Number(te[7]||0),Z=Number(te[9]||0),X=Number(te[11]||0);if(q){if(ee.length===2)return m;var re;ee=Number(ee);try{var ie=_.getComponentMethod("calendars","getCal")(E);if(V){var le=U.charAt(U.length-1)==="i";U=parseInt(U,10),re=ie.newDate(ee,ie.toMonthIndex(ee,U,le),Q)}else re=ie.newDate(ee,Number(U),Q)}catch{return m}return re?(re.toJD()-x)*y+Y*v+Z*g+X*b:m}ee=ee.length===2?(Number(ee)+2e3-M)%100+M:Number(ee),U-=1;var se=new Date(Date.UTC(2e3,U,Q,Y,Z));return se.setUTCFullYear(ee),se.getUTCMonth()!==U||se.getUTCDate()!==Q?m:se.getTime()+X*b},l=a.MIN_MS=a.dateTime2ms("-9999"),f=a.MAX_MS=a.dateTime2ms("9999-12-31 23:59:59.9999"),a.isDateTime=function(N,E){return a.dateTime2ms(N,E)!==m};var P=90*y,D=3*v,O=5*g;function R(N,E,W,G,L){if((E||W||G||L)&&(N+=" "+C(E,2)+":"+C(W,2),(G||L)&&(N+=":"+C(G,2),L))){for(var q=4;L%10==0;)q-=1,L/=10;N+="."+C(L,q)}return N}a.ms2DateTime=function(N,E,W){if(typeof N!="number"||!(N>=l&&N<=f))return m;E||(E=0);var G,L,q,H,V,te,ee=Math.floor(10*h(N+.05,1)),U=Math.round(N-ee/10);if(S(W)){var Q=Math.floor(U/y)+x,Y=Math.floor(h(N,y));try{G=_.getComponentMethod("calendars","getCal")(W).fromJD(Q).formatDate("yyyy-mm-dd")}catch{G=w("G%Y-%m-%d")(new Date(U))}if(G.charAt(0)==="-")for(;G.length<11;)G="-0"+G.substr(1);else for(;G.length<10;)G="0"+G;L=E=l+y&&N<=f-y))return m;var E=Math.floor(10*h(N+.05,1)),W=new Date(Math.round(N-E/10));return R(s("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+E)},a.cleanDate=function(N,E,W){if(N===m)return E;if(a.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(S(W))return d.error("JS Dates and milliseconds are incompatible with world calendars",N),E;if(!(N=a.ms2DateTimeLocal(+N))&&E!==void 0)return E}else if(!a.isDateTime(N,W))return d.error("unrecognized date",N),E;return N};var F=/%\d?f/g,A=/%h/g,z={1:"1",2:"1",3:"2",4:"2"};function B(N,E,W,G){N=N.replace(F,function(q){var H=Math.min(+q.charAt(1)||6,6);return(E/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(E+.05));if(N=N.replace(A,function(){return z[W("%q")(L)]}),S(G))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,E,G)}catch{return"Invalid"}return W(N)(L)}var $=[59,59.9,59.99,59.999,59.9999];a.formatDate=function(N,E,W,G,L,q){if(L=S(L)&&L,!E)if(W==="y")E=q.year;else if(W==="m")E=q.month;else{if(W!=="d")return function(H,V){var te=h(H+.05,y),ee=C(Math.floor(te/v),2)+":"+C(h(Math.floor(te/g),60),2);if(V!=="M"){u(V)||(V=0);var U=(100+Math.min(h(H/b,60),$[V])).toFixed(V).substr(1);V>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+U}return ee}(N,W)+` +var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Lc=(e,t,r)=>(QD(e,typeof t!="symbol"?t+"":t,r),r);import{r as $e,j as je,$ as Z5,T as Er,aj as K5,ak as J5,al as Q5,A as dy,a as hy,am as e9,an as t9,G as Jn,R as et,B as Qr,O as n9,ao as ir,ap as Cr,Y as eS,Z as S0,aq as r9,ac as tS,ad as nS,ae as Af,af as Hi,ah as rS,ar as qn,as as a9,at as i9,au as o9,av as Ma,aw as l9,ax as s9,ay as u9,az as c9,aA as f9,aB as d9,aC as h9,aD as p9,aE as g9,aF as m9,aG as v9,aH as y9,aI as b9,aJ as x9,aK as w9,aL as xn,aM as _r,aN as Tr,aO as _n,aP as Gt,aQ as Pf,aR as Vn,aS as Md,aT as yr,aU as fr,aV as _9,aW as Sd,aX as Cd,aY as aS,aZ as iS,a_ as T9,a$ as xl,b0 as k9,a3 as Od,b1 as no,I as Fl,b2 as M9,b3 as oS,b4 as S9,b5 as oe,U as di,b6 as C9,a7 as O9,b7 as A9,b8 as lg,a8 as P9,b9 as D9,ba as E9,bb as B2,bc as R9,bd as py,be as L9,bf as I9,bg as F9,bh as N9,bi as j9,bj as $9,bk as B9,bl as z9,bm as q9,bn as W9,bo as z2,bp as U9,bq as gy,h as H9,br as V9,bs as Y9,bt as G9,bu as X9,bv as Z9,bw as K9,bx as J9,by as Q9,bz as eE,bA as tE,p as my,o as nE}from"./vendor-CFh6IQM6.js";import{u as lS}from"./DashboardViewParams-C3ZVhGVT.js";import{i as vn,r as Xr}from"./createSvgIcon-BHt_C7WZ.js";import{E as rE}from"./Edit-DoUCfieB.js";var cf=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(cf||{});function Ic(e){return e.palette.mode==="dark"?J5:Q5}function Fc(e){return e.palette.mode==="light"?Q5:J5}const C0=e=>{const[t,r]=$e.useState({open:!1});return je.jsxs(Z5,{elevation:0,onClick:i=>r(c=>({open:!c.open,anchorEl:i.currentTarget})),sx:[{color:i=>Fc(i)(i.palette.info.main,.6),backgroundColor:i=>Ic(i)(i.palette.info.main,.9)},e.data.state==="success"&&{color:i=>Fc(i)(i.palette.success.main,.6),backgroundColor:i=>Ic(i)(i.palette.success.main,.9)},e.data.state==="warning"&&{color:i=>Fc(i)(i.palette.warning.main,.6),backgroundColor:i=>Ic(i)(i.palette.warning.main,.9)},e.data.state==="error"&&{color:i=>Fc(i)(i.palette.error.main,.6),backgroundColor:i=>Ic(i)(i.palette.error.main,.9)}],children:[je.jsx(Er,{align:"center",variant:"h6",component:"div",children:e.data.value}),je.jsx(Er,{align:"center",variant:"body1",component:"div",children:e.data.text}),je.jsx(K5,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??je.jsx(Er,{padding:1,children:e.data.longText})})]})},sS=e=>je.jsxs(dy,{severity:e.data.severity,children:[je.jsx(hy,{children:e.data.title}),e.data.text]}),q2=e=>{const{alertStats:t}=e;return je.jsx(C0,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:je.jsx(Er,{sx:{pr:1},children:je.jsxs("ul",{children:[je.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),je.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),je.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function aE(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const iE=e=>{const{size:t,ItemWrapper:r}=e,i=e.children.alertsPosition??"row",{id:c,title:o,details:a,content:n,alerts:l,alertStats:f,insights:s}=e.children,u=l===void 0?!1:l.length>0,d=s===void 0?!1:s.length>0,h=je.jsx(e9,{sx:{border:"1px solid",borderColor:"#d6d6d6",borderRadius:"4px"},elevation:0,children:je.jsx(t9,{children:je.jsxs(Jn,{container:!0,spacing:1,direction:"column",children:[i==="row"?je.jsxs(Jn,{container:!0,spacing:1,item:!0,children:[je.jsxs(Jn,{item:!0,xs:u&&i==="row"?9:12,children:[o?je.jsx(Er,{fontWeight:500,variant:"h5",children:o}):je.jsx("div",{}),je.jsx("div",{children:n}),a?je.jsx(Er,{variant:"subtitle1",children:a}):je.jsx("div",{})]}),u?je.jsx(Jn,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:l?je.jsxs(et.Fragment,{children:[f?je.jsx(Jn,{item:!0,children:je.jsx(q2,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,children:je.jsx(C0,{data:p})}))]}):je.jsx("div",{})}):je.jsx("div",{})]}):je.jsxs(et.Fragment,{children:[je.jsxs(Jn,{item:!0,children:[o?je.jsx(Er,{variant:"h5",children:o}):je.jsx("div",{}),je.jsx("div",{children:n}),a?je.jsx(Er,{variant:"subtitle1",children:a}):je.jsx("div",{})]}),u?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(Jn,{container:!0,direction:"row",spacing:1,children:l?je.jsxs(et.Fragment,{children:[f?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(q2,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(C0,{data:p})}))]}):je.jsx("div",{})})}):je.jsx("div",{})]}),d?s.map(p=>je.jsx(Jn,{item:!0,xs:!0,sm:!0,md:!0,children:je.jsx(sS,{data:p})})):je.jsx("div",{})]})})});return je.jsx(Jn,{item:!0,...aE(t),children:r?r({id:c,children:h}):h})},W2=e=>je.jsxs("div",{children:[je.jsx(Er,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),je.jsx(Er,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),oE=e=>je.jsx(et.Fragment,{children:e.counters.length===1?je.jsx(W2,{...e.counters[0]}):je.jsx(Jn,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map((t,r)=>je.jsx(Jn,{item:!0,xs:!0,component:Qr,height:"100%",children:je.jsx(Qr,{children:je.jsx(W2,{...t})})},r))})}),lE=e=>je.jsxs("div",{children:[je.jsxs(Qr,{display:"flex",alignItems:"center",children:[je.jsx(Qr,{width:"100%",mr:1,children:je.jsx(n9,{variant:"determinate",value:e.value/e.maxValue*100})}),je.jsx(Qr,{minWidth:35,children:je.jsx(Er,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),je.jsx(Qr,{width:"100%",children:je.jsx(Er,{variant:"body2",color:"textSecondary",children:e.details??""})})]});var uS={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(r,i){e.exports=i()})(self,function(){return function(){var r={98847:function(o,a,n){var l=n(71828),f={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var s in f){var u=s.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");l.addStyleRule(u,f[s])}},98222:function(o,a,n){o.exports=n(82887)},27206:function(o,a,n){o.exports=n(60822)},5224:function(o,a,n){o.exports=n(83832)},59509:function(o,a,n){o.exports=n(72201)},49866:function(o,a,n){o.exports=n(99442)},19548:function(o,a,n){o.exports=n(8729)},61039:function(o,a,n){o.exports=n(14382)},24296:function(o,a,n){o.exports=n(43102)},58872:function(o,a,n){o.exports=n(92165)},65591:function(o,a,n){o.exports=n(36071)},69738:function(o,a,n){o.exports=n(43905)},92650:function(o,a,n){o.exports=n(35902)},73434:function(o,a,n){o.exports=n(94507)},760:function(o,a,n){var l=n(19548);l.register([n(27206),n(5224),n(58872),n(65591),n(69738),n(92650),n(49866),n(25743),n(6197),n(73434),n(54201),n(98222),n(61039),n(24296),n(66398),n(59509)]),o.exports=l},54201:function(o,a,n){o.exports=n(58810)},25743:function(o,a,n){o.exports=n(52979)},66398:function(o,a,n){o.exports=n(32275)},6197:function(o,a,n){o.exports=n(47462)},82884:function(o){o.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(o,a,n){var l=n(82884),f=n(41940),s=n(85555),u=n(44467).templatedArray;n(24695),o.exports=u("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",s.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",s.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:f({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(o,a,n){var l=n(71828),f=n(89298),s=n(92605).draw;function u(h){var p=h._fullLayout;l.filterVisible(p.annotations).forEach(function(m){var y=f.getFromId(h,m.xref),v=f.getFromId(h,m.yref),g=f.getRefType(m.xref),b=f.getRefType(m.yref);m._extremes={},g==="range"&&d(m,y),b==="range"&&d(m,v)})}function d(h,p){var m,y=p._id,v=y.charAt(0),g=h[v],b=h["a"+v],x=h[v+"ref"],_=h["a"+v+"ref"],w=h["_"+v+"padplus"],k=h["_"+v+"padminus"],T={x:1,y:-1}[v]*h[v+"shift"],M=3*h.arrowsize*h.arrowwidth||0,S=M+T,C=M-T,P=3*h.startarrowsize*h.arrowwidth||0,D=P+T,O=P-T;if(_===x){var R=f.findExtremes(p,[p.r2c(g)],{ppadplus:S,ppadminus:C}),F=f.findExtremes(p,[p.r2c(b)],{ppadplus:Math.max(w,D),ppadminus:Math.max(k,O)});m={min:[R.min[0],F.min[0]],max:[R.max[0],F.max[0]]}}else D=b?D+b:D,O=b?O-b:O,m=f.findExtremes(p,[p.r2c(g)],{ppadplus:Math.max(w,S,D),ppadminus:Math.max(k,C,O)});h._extremes[y]=m}o.exports=function(h){var p=h._fullLayout;if(l.filterVisible(p.annotations).length&&h._fullData.length)return l.syncOrAsync([s,u],h)}},44317:function(o,a,n){var l=n(71828),f=n(73972),s=n(44467).arrayEditor;function u(h,p){var m,y,v,g,b,x,_,w=h._fullLayout.annotations,k=[],T=[],M=[],S=(p||[]).length;for(m=0;m0||m.explicitOff.length>0},onClick:function(h,p){var m,y,v=u(h,p),g=v.on,b=v.off.concat(v.explicitOff),x={},_=h._fullLayout.annotations;if(g.length||b.length){for(m=0;m.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var we=!1,ke=["x","y"],Ae=0;Ae1)&&(Ye===qe?((Je=at.r2fraction(S["a"+Ue]))<0||Je>1)&&(we=!0):we=!0),Ee=at._offset+at.r2p(S[Ue]),Ie=.5}else{var ut=kt==="domain";Ue==="x"?(Re=S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.l+z.w*Re):(Re=1-S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.t+z.h*Re),Ie=S.showarrow?.5:Re}if(S.showarrow){it.head=Ee;var pt=S["a"+Ue];if(Be=ct*be(.5,S.xanchor)-bt*be(.5,S.yanchor),Ye===qe){var It=h.getRefType(Ye);It==="domain"?(Ue==="y"&&(pt=1-pt),it.tail=at._offset+at._length*pt):It==="paper"?Ue==="y"?(pt=1-pt,it.tail=z.t+z.h*pt):it.tail=z.l+z.w*pt:it.tail=at._offset+at.r2p(pt),De=Be}else it.tail=Ee+pt,De=Be+pt;it.text=it.tail+Be;var Mt=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=u.constrain(it.head,1,Mt-1)),Ye==="pixel"){var zt=-Math.max(it.tail-3,it.text),wt=Math.min(it.tail+3,it.text)-Mt;zt>0?(it.tail+=zt,it.text+=zt):wt>0&&(it.tail-=wt,it.text-=wt)}it.tail+=Qe,it.head+=Qe}else De=Be=ze*be(Ie,Ne),it.text=Ee+Be;it.text+=Qe,Be+=Qe,De+=Qe,S["_"+Ue+"padplus"]=ze/2+De,S["_"+Ue+"padminus"]=ze/2-De,S["_"+Ue+"size"]=ze,S["_"+Ue+"shift"]=Be}if(we)ee.remove();else{var ve=0,_e=0;if(S.align!=="left"&&(ve=(de-J)*(S.align==="center"?.5:1)),S.valign!=="top"&&(_e=(xe-ne)*(S.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:Y+ve-1,y:Y+_e}).call(m.setClipUrl,X?W:null,M);else{var Ve=Y+_e-ye.top,We=Y+ve-ye.left;se.call(v.positionText,We,Ve).call(m.setClipUrl,X?W:null,M)}re.select("rect").call(m.setRect,Y,Y,de,xe),Z.call(m.setRect,U/2,U/2,ue-U,ge-U),ee.call(m.setTranslate,Math.round(G.x.text-ue/2),Math.round(G.y.text-ge/2)),H.attr({transform:"rotate("+L+","+G.x.text+","+G.y.text+")"});var Ze,Ge=function(Ke,nt){q.selectAll(".annotation-arrow-g").remove();var st=G.x.head,mt=G.y.head,tt=G.x.tail+Ke,Ft=G.y.tail+nt,Vt=G.x.text+Ke,St=G.y.text+nt,Nt=u.rotationXYMatrix(L,Vt,St),Dt=u.apply2DTransform(Nt),gt=u.apply2DTransform2(Nt),ht=+Z.attr("width"),yt=+Z.attr("height"),qt=Vt-.5*ht,Et=qt+ht,jt=St-.5*yt,Tt=jt+yt,Ot=[[qt,jt,qt,Tt],[qt,Tt,Et,Tt],[Et,Tt,Et,jt],[Et,jt,qt,jt]].map(gt);if(!Ot.reduce(function(an,sn){return an^!!u.segmentsIntersect(st,mt,st+1e6,mt+1e6,sn[0],sn[1],sn[2],sn[3])},!1)){Ot.forEach(function(an){var sn=u.segmentsIntersect(tt,Ft,st,mt,an[0],an[1],an[2],an[3]);sn&&(tt=sn.x,Ft=sn.y)});var At=S.arrowwidth,Lt=S.arrowcolor,Rt=S.arrowside,$t=q.append("g").style({opacity:p.opacity(Lt)}).classed("annotation-arrow-g",!0),Yt=$t.append("path").attr("d","M"+tt+","+Ft+"L"+st+","+mt).style("stroke-width",At+"px").call(p.stroke,p.rgb(Lt));if(_(Yt,Rt,S),B.annotationPosition&&Yt.node().parentNode&&!P){var Xt=st,Bt=mt;if(S.standoff){var Wt=Math.sqrt(Math.pow(st-tt,2)+Math.pow(mt-Ft,2));Xt+=S.standoff*(tt-st)/Wt,Bt+=S.standoff*(Ft-mt)/Wt}var tn,cn,ln=$t.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(tt-Xt)+","+(Ft-Bt),transform:d(Xt,Bt)}).style("stroke-width",At+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");b.init({element:ln.node(),gd:M,prepFn:function(){var an=m.getTranslate(ee);tn=an.x,cn=an.y,D&&D.autorange&&j(D._name+".autorange",!0),O&&O.autorange&&j(O._name+".autorange",!0)},moveFn:function(an,sn){var Zt=Dt(tn,cn),pn=Zt[0]+an,nn=Zt[1]+sn;ee.call(m.setTranslate,pn,nn),N("x",k(D,an,"x",z,S)),N("y",k(O,sn,"y",z,S)),S.axref===S.xref&&N("ax",k(D,an,"ax",z,S)),S.ayref===S.yref&&N("ay",k(O,sn,"ay",z,S)),$t.attr("transform",d(an,sn)),H.attr({transform:"rotate("+L+","+pn+","+nn+")"})},doneFn:function(){f.call("_guiRelayout",M,E());var an=document.querySelector(".js-notes-box-panel");an&&an.redraw(an.selectedObj)}})}}};S.showarrow&&Ge(0,0),V&&b.init({element:ee.node(),gd:M,prepFn:function(){Ze=H.attr("transform")},moveFn:function(Ke,nt){var st="pointer";if(S.showarrow)S.axref===S.xref?N("ax",k(D,Ke,"ax",z,S)):N("ax",S.ax+Ke),S.ayref===S.yref?N("ay",k(O,nt,"ay",z.w,S)):N("ay",S.ay+nt),Ge(Ke,nt);else{if(P)return;var mt,tt;if(D)mt=k(D,Ke,"x",z,S);else{var Ft=S._xsize/z.w,Vt=S.x+(S._xshift-S.xshift)/z.w-Ft/2;mt=b.align(Vt+Ke/z.w,Ft,0,1,S.xanchor)}if(O)tt=k(O,nt,"y",z,S);else{var St=S._ysize/z.h,Nt=S.y-(S._yshift+S.yshift)/z.h-St/2;tt=b.align(Nt-nt/z.h,St,0,1,S.yanchor)}N("x",mt),N("y",tt),D&&O||(st=b.getCursor(D?.5:mt,O?.5:tt,S.xanchor,S.yanchor))}H.attr({transform:d(Ke,nt)+Ze}),g(ee,st)},clickFn:function(Ke,nt){S.captureevents&&M.emit("plotly_clickannotation",pe(nt))},doneFn:function(){g(ee),f.call("_guiRelayout",M,E());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}}o.exports={draw:function(M){var S=M._fullLayout;S._infolayer.selectAll(".annotation").remove();for(var C=0;C=0,P=y.indexOf("end")>=0,D=k.backoff*M+v.standoff,O=T.backoff*S+v.startstandoff;if(w.nodeName==="line"){g={x:+m.attr("x1"),y:+m.attr("y1")},b={x:+m.attr("x2"),y:+m.attr("y2")};var R=g.x-b.x,F=g.y-b.y;if(_=(x=Math.atan2(F,R))+Math.PI,D&&O&&D+O>Math.sqrt(R*R+F*F))return void q();if(D){if(D*D>R*R+F*F)return void q();var A=D*Math.cos(x),z=D*Math.sin(x);b.x+=A,b.y+=z,m.attr({x2:b.x,y2:b.y})}if(O){if(O*O>R*R+F*F)return void q();var B=O*Math.cos(x),$=O*Math.sin(x);g.x-=B,g.y-=$,m.attr({x1:g.x,y1:g.y})}}else if(w.nodeName==="path"){var j=w.getTotalLength(),N="";if(j1){v=!0;break}}v?u.fullLayout._infolayer.select(".annotation-"+u.id+'[data-index="'+m+'"]').remove():(y._pdata=f(u.glplot.cameraParams,[d.xaxis.r2l(y.x)*h[0],d.yaxis.r2l(y.y)*h[1],d.zaxis.r2l(y.z)*h[2]]),l(u.graphDiv,y,m,u.id,y._xa,y._ya))}}},2468:function(o,a,n){var l=n(73972),f=n(71828);o.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(26997)}}},layoutAttributes:n(26997),handleDefaults:n(20226),includeBasePlot:function(s,u){var d=l.subplotsRegistry.gl3d;if(d)for(var h=d.attrRegex,p=Object.keys(s),m=0;m=0)))return y;if(_===3)b[_]>1&&(b[_]=1);else if(b[_]>=1)return y}var w=Math.round(255*b[0])+", "+Math.round(255*b[1])+", "+Math.round(255*b[2]);return x?"rgba("+w+", "+b[3]+")":"rgb("+w+")"}u.tinyRGB=function(y){var v=y.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},u.rgb=function(y){return u.tinyRGB(l(y))},u.opacity=function(y){return y?l(y).getAlpha():0},u.addOpacity=function(y,v){var g=l(y).toRgb();return"rgba("+Math.round(g.r)+", "+Math.round(g.g)+", "+Math.round(g.b)+", "+v+")"},u.combine=function(y,v){var g=l(y).toRgb();if(g.a===1)return l(y).toRgbString();var b=l(v||p).toRgb(),x=b.a===1?b:{r:255*(1-b.a)+b.r*b.a,g:255*(1-b.a)+b.g*b.a,b:255*(1-b.a)+b.b*b.a},_={r:x.r*(1-g.a)+g.r*g.a,g:x.g*(1-g.a)+g.g*g.a,b:x.b*(1-g.a)+g.b*g.a};return l(_).toRgbString()},u.contrast=function(y,v,g){var b=l(y);return b.getAlpha()!==1&&(b=l(u.combine(y,p))),(b.isDark()?v?b.lighten(v):p:g?b.darken(g):h).toString()},u.stroke=function(y,v){var g=l(v);y.style({stroke:u.tinyRGB(g),"stroke-opacity":g.getAlpha()})},u.fill=function(y,v){var g=l(v);y.style({fill:u.tinyRGB(g),"fill-opacity":g.getAlpha()})},u.clean=function(y){if(y&&typeof y=="object"){var v,g,b,x,_=Object.keys(y);for(v=0;v<_.length;v++)if(x=y[b=_[v]],b.substr(b.length-5)==="color")if(Array.isArray(x))for(g=0;g0?wt>=Ze:wt<=Ze));ve++)wt>Ke&&wt0?wt>=Ze:wt<=Ze));ve++)wt>zt[0]&&wt1){var bt=Math.pow(10,Math.floor(Math.log(ct)/Math.LN10));at*=bt*p.roundUp(ct/bt,[2,5,10]),(Math.abs(J.start)/J.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=at}qe.domain=E?[Be+Y/se.h,Be+we-Y/se.h]:[Be+Q/se.w,Be+we-Q/se.w],qe.setScale(),$.attr("transform",m(Math.round(se.l),Math.round(se.t)));var ze,Ne=$.select("."+O.cbtitleunshift).attr("transform",m(-Math.round(se.l),-Math.round(se.t))),Qe=qe.ticklabelposition,it=qe.title.font.size,kt=$.select("."+O.cbaxis),Je=0,ut=0;function pt(It,Mt){var zt={propContainer:qe,propName:j._propPrefix+"title",traceIndex:j._traceIndex,_meta:j._meta,placeholder:le._dfltTitle.colorbar,containerGroup:$.select("."+O.cbtitle)},wt=It.charAt(0)==="h"?It.substr(1):"h"+It;$.selectAll("."+wt+",."+wt+"-math-group").remove(),x.draw(N,It,y(zt,Mt||{}))}return p.syncOrAsync([s.previousPromises,function(){var It,Mt;(E&&Ye||!E&&!Ye)&&(Oe==="top"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be-we)+3+.75*it),Oe==="bottom"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be)-3-.25*it),Oe==="right"&&(Mt=Y+se.t+Ae*X+3+.75*it,It=Q+se.l+ke*Be),pt(qe._id+"title",{attributes:{x:It,y:Mt,"text-anchor":E?"start":"middle"}}))},function(){if(!E&&!Ye||E&&Ye){var It,Mt=$.select("."+O.cbtitle),zt=Mt.select("text"),wt=[-H/2,H/2],ve=Mt.select(".h"+qe._id+"title-math-group").node(),_e=15.6;if(zt.node()&&(_e=parseInt(zt.node().style.fontSize,10)*C),ve?(It=g.bBox(ve),ut=It.width,(Je=It.height)>_e&&(wt[1]-=(Je-_e)/2)):zt.node()&&!zt.classed(O.jsPlaceholder)&&(It=g.bBox(zt.node()),ut=It.width,Je=It.height),E){if(Je){if(Je+=5,Oe==="top")qe.domain[1]-=Je/se.h,wt[1]*=-1;else{qe.domain[0]+=Je/se.h;var Ve=_.lineCount(zt);wt[1]+=(1-Ve)*_e}Mt.attr("transform",m(wt[0],wt[1])),qe.setScale()}}else ut&&(Oe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Mt.attr("transform",m(wt[0],wt[1])),qe.setScale())}$.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",E?m(0,Math.round(se.h*(1-qe.domain[1]))):m(Math.round(se.w*qe.domain[0]),0)),kt.attr("transform",E?m(0,Math.round(-se.t)):m(Math.round(-se.l),0));var We=$.select("."+O.cbfills).selectAll("rect."+O.cbfill).attr("style","").data(de);We.enter().append("rect").classed(O.cbfill,!0).attr("style",""),We.exit().remove();var Ze=Me.map(qe.c2p).map(Math.round).sort(function(mt,tt){return mt-tt});We.each(function(mt,tt){var Ft=[tt===0?Me[0]:(de[tt]+de[tt-1])/2,tt===de.length-1?Me[1]:(de[tt]+de[tt+1])/2].map(qe.c2p).map(Math.round);E&&(Ft[1]=p.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,Ze[0],Ze[1]));var Vt=l.select(this).attr(E?"x":"y",Ee).attr(E?"y":"x",l.min(Ft)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(l.max(Ft)-l.min(Ft),2));if(j._fillgradient)g.gradient(Vt,N,j._id,E?"vertical":"horizontalreversed",j._fillgradient,"fill");else{var St=ye(mt).replace("e-","");Vt.attr("fill",f(St).toHexString())}});var Ge=$.select("."+O.cblines).selectAll("path."+O.cbline).data(Te.color&&Te.width?xe:[]);Ge.enter().append("path").classed(O.cbline,!0),Ge.exit().remove(),Ge.each(function(mt){var tt=Ee,Ft=Math.round(qe.c2p(mt))+Te.width/2%1;l.select(this).attr("d","M"+(E?tt+","+Ft:Ft+","+tt)+(E?"h":"v")+ue).call(g.lineGroupStyle,Te.width,ce(mt),Te.dash)}),kt.selectAll("g."+qe._id+"tick,path").remove();var Ke=Ee+ue+(H||0)/2-(j.ticks==="outside"?1:0),nt=d.calcTicks(qe),st=d.getTickSigns(qe)[2];return d.drawTicks(N,qe,{vals:qe.ticks==="inside"?d.clipEnds(qe,nt):nt,layer:kt,path:d.makeTickPath(qe,Ke,st),transFn:d.makeTransTickFn(qe)}),d.drawLabels(N,qe,{vals:nt,layer:kt,transFn:d.makeTransTickLabelFn(qe),labelFns:d.makeLabelFns(qe,Ke)})},function(){if(E&&!Ye||!E&&Ye){var It,Mt,zt=qe.position||0,wt=qe._offset+qe._length/2;if(Oe==="right")Mt=wt,It=se.l+ke*zt+10+it*(qe.showticklabels?1:.5);else if(It=wt,Oe==="bottom"&&(Mt=se.t+Ae*zt+10+(Qe.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&j.ticklen||0)),Oe==="top"){var ve=Se.text.split("
").length;Mt=se.t+Ae*zt+10-ue-C*it*ve}pt((E?"h":"v")+qe._id+"title",{avoid:{selection:l.select(N).selectAll("g."+qe._id+"tick"),side:Oe,offsetTop:E?0:se.t,offsetLeft:E?se.l:0,maxShift:E?le.width:le.height},attributes:{x:It,y:Mt,"text-anchor":"middle"},transform:{rotate:E?-90:0,offset:0}})}},s.previousPromises,function(){var It,Mt=ue+H/2;Qe.indexOf("inside")===-1&&(It=g.bBox(kt.node()),Mt+=E?It.width:It.height),ze=Ne.select("text");var zt=0,wt=E&&Oe==="top",ve=!E&&Oe==="right",_e=0;if(ze.node()&&!ze.classed(O.jsPlaceholder)){var Ve,We=Ne.select(".h"+qe._id+"title-math-group").node();We&&(E&&Ye||!E&&!Ye)?(zt=(It=g.bBox(We)).width,Ve=It.height):(zt=(It=g.bBox(Ne.node())).right-se.l-(E?Ee:Ue),Ve=It.bottom-se.t-(E?Ue:Ee),E||Oe!=="top"||(Mt+=It.height,_e=It.height)),ve&&(ze.attr("transform",m(zt/2+it/2,0)),zt*=2),Mt=Math.max(Mt,E?zt:Ve)}var Ze=2*(E?Q:Y)+Mt+V+H/2,Ge=0;!E&&Se.text&&U==="bottom"&&X<=0&&(Ze+=Ge=Ze/2,_e+=Ge),le._hColorbarMoveTitle=Ge,le._hColorbarMoveCBTitle=_e;var Ke=V+H,nt=(E?Ee:Ue)-Ke/2-(E?Q:0),st=(E?Ue:Ee)-(E?be:Y+_e-Ge);$.select("."+O.cbbg).attr("x",nt).attr("y",st).attr(E?"width":"height",Math.max(Ze-Ge,2)).attr(E?"height":"width",Math.max(be+Ke,2)).call(b.fill,te).call(b.stroke,j.bordercolor).style("stroke-width",V);var mt=ve?Math.max(zt-10,0):0;$.selectAll("."+O.cboutline).attr("x",(E?Ee:Ue+Q)+mt).attr("y",(E?Ue+Y-be:Ee)+(wt?Je:0)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(be-(E?2*Y+Je:2*Q+mt),2)).call(b.stroke,j.outlinecolor).style({fill:"none","stroke-width":H});var tt=E?De*Ze:0,Ft=E?0:(1-Re)*Ze-_e;if(tt=ie?se.l-tt:-tt,Ft=re?se.t-Ft:-Ft,$.attr("transform",m(tt,Ft)),!E&&(V||f(te).getAlpha()&&!f.equals(le.paper_bgcolor,te))){var Vt=kt.selectAll("text"),St=Vt[0].length,Nt=$.select("."+O.cbbg).node(),Dt=g.bBox(Nt),gt=g.getTranslate($);Vt.each(function(Rt,$t){var Yt=St-1;if($t===0||$t===Yt){var Xt,Bt=g.bBox(this),Wt=g.getTranslate(this);if($t===Yt){var tn=Bt.right+Wt.x;(Xt=Dt.right+gt.x+Ue-V-2+Z-tn)>0&&(Xt=0)}else if($t===0){var cn=Bt.left+Wt.x;(Xt=Dt.left+gt.x+Ue+V+2-cn)<0&&(Xt=0)}Xt&&(St<3?this.setAttribute("transform","translate("+Xt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ht={},yt=P[ee],qt=D[ee],Et=P[U],jt=D[U],Tt=Ze-ue;E?(G==="pixels"?(ht.y=X,ht.t=be*Et,ht.b=be*jt):(ht.t=ht.b=0,ht.yt=X+W*Et,ht.yb=X-W*jt),q==="pixels"?(ht.x=Z,ht.l=Ze*yt,ht.r=Ze*qt):(ht.l=Tt*yt,ht.r=Tt*qt,ht.xl=Z-L*yt,ht.xr=Z+L*qt)):(G==="pixels"?(ht.x=Z,ht.l=be*yt,ht.r=be*qt):(ht.l=ht.r=0,ht.xl=Z+W*yt,ht.xr=Z-W*qt),q==="pixels"?(ht.y=1-X,ht.t=Ze*Et,ht.b=Ze*jt):(ht.t=Tt*Et,ht.b=Tt*jt,ht.yt=X-L*Et,ht.yb=X+L*jt));var Ot=j.y<.5?"b":"t",At=j.x<.5?"l":"r";N._fullLayout._reservedMargin[j._id]={};var Lt={r:le.width-nt-tt,l:nt+ht.r,b:le.height-st-Ft,t:st+ht.b};ie&&re?s.autoMargin(N,j._id,ht):ie?N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]:re||E?N._fullLayout._reservedMargin[j._id][At]=Lt[At]:N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]}],N)}(z,A,R);B&&B.then&&(R._promises||[]).push(B),R._context.edits.colorbarPosition&&function($,j,N){var E,W,G,L=j.orientation==="v",q=N._fullLayout._size;h.init({element:$.node(),gd:N,prepFn:function(){E=$.attr("transform"),v($)},moveFn:function(H,V){$.attr("transform",E+m(H,V)),W=h.align((L?j._uFrac:j._vFrac)+H/q.w,L?j._thickFrac:j._lenFrac,0,1,j.xanchor),G=h.align((L?j._vFrac:1-j._uFrac)-V/q.h,L?j._lenFrac:j._thickFrac,0,1,j.yanchor);var te=h.getCursor(W,G,j.xanchor,j.yanchor);v($,te)},doneFn:function(){if(v($),W!==void 0&&G!==void 0){var H={};H[j._propPrefix+"x"]=W,H[j._propPrefix+"y"]=G,j._traceIndex!==void 0?u.call("_guiRestyle",N,H,j._traceIndex):u.call("_guiRelayout",N,H)}}})}(z,A,R)}),F.exit().each(function(A){s.autoMargin(R,A._id)}).remove(),F.order()}}},76228:function(o,a,n){var l=n(71828);o.exports=function(f){return l.isPlainObject(f.colorbar)}},12311:function(o,a,n){o.exports={moduleType:"component",name:"colorbar",attributes:n(63583),supplyDefaults:n(62499),draw:n(98981).draw,hasColorbar:n(76228)}},50693:function(o,a,n){var l=n(63583),f=n(30587).counter,s=n(78607),u=n(63282).scales;function d(h){return"`"+h+"`"}s(u),o.exports=function(h,p){h=h||"";var m,y=(p=p||{}).cLetter||"c",v=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:h==="marker.line"),g="showScaleDflt"in p?p.showScaleDflt:y==="z",b=typeof p.colorscaleDflt=="string"?u[p.colorscaleDflt]:null,x=p.editTypeOverride||"",_=h?h+".":"";"colorAttr"in p?(m=p.colorAttr,p.colorAttr):d(_+(m={z:"z",c:"color"}[y]));var w=y+"auto",k=y+"min",T=y+"max",M=y+"mid",S={};S[k]=S[T]=void 0;var C={};C[w]=!1;var P={};return m==="color"&&(P.color={valType:"color",arrayOk:!0,editType:x||"style"},p.anim&&(P.color.anim=!0)),P[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:S},P[k]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[T]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:S},P.colorscale={valType:"colorscale",editType:"calc",dflt:b,impliedEdits:{autocolorscale:!1}},P.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},P.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(P.showscale={valType:"boolean",dflt:g,editType:"calc"},P.colorbar=l),p.noColorAxis||(P.coloraxis={valType:"subplotid",regex:f("coloraxis"),dflt:null,editType:"calc"}),P}},78803:function(o,a,n){var l=n(92770),f=n(71828),s=n(52075).extractOpts;o.exports=function(u,d,h){var p,m=u._fullLayout,y=h.vals,v=h.containerStr,g=v?f.nestedProperty(d,v).get():d,b=s(g),x=b.auto!==!1,_=b.min,w=b.max,k=b.mid,T=function(){return f.aggNums(Math.min,null,y)},M=function(){return f.aggNums(Math.max,null,y)};_===void 0?_=T():x&&(_=g._colorAx&&l(_)?Math.min(_,T()):T()),w===void 0?w=M():x&&(w=g._colorAx&&l(w)?Math.max(w,M()):M()),x&&k!==void 0&&(w-k>k-_?_=k-(w-k):w-k=0?m.colorscale.sequential:m.colorscale.sequentialminus,b._sync("colorscale",p))}},33046:function(o,a,n){var l=n(71828),f=n(52075).hasColorscale,s=n(52075).extractOpts;o.exports=function(u,d){function h(x,_){var w=x["_"+_];w!==void 0&&(x[_]=w)}function p(x,_){var w=_.container?l.nestedProperty(x,_.container).get():x;if(w)if(w.coloraxis)w._colorAx=d[w.coloraxis];else{var k=s(w),T=k.auto;(T||k.min===void 0)&&h(w,_.min),(T||k.max===void 0)&&h(w,_.max),k.autocolorscale&&h(w,"colorscale")}}for(var m=0;m=0;T--,M++){var S=_[T];k[M]=[1-S[0],S[1]]}return k}function b(_,w){w=w||{};for(var k=_.domain,T=_.range,M=T.length,S=new Array(M),C=0;C1.3333333333333333-h?d:h}},70461:function(o,a,n){var l=n(71828),f=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];o.exports=function(s,u,d,h){return s=d==="left"?0:d==="center"?1:d==="right"?2:l.constrain(Math.floor(3*s),0,2),u=h==="bottom"?0:h==="middle"?1:h==="top"?2:l.constrain(Math.floor(3*u),0,2),f[u][s]}},64505:function(o,a){a.selectMode=function(n){return n==="lasso"||n==="select"},a.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.openMode=function(n){return n==="drawline"||n==="drawopenpath"},a.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},a.selectingOrDrawing=function(n){return a.freeMode(n)||a.rectMode(n)}},28569:function(o,a,n){var l=n(48956),f=n(57035),s=n(38520),u=n(71828).removeElement,d=n(85555),h=o.exports={};h.align=n(92807),h.getCursor=n(70461);var p=n(26041);function m(){var v=document.createElement("div");v.className="dragcover";var g=v.style;return g.position="fixed",g.left=0,g.right=0,g.top=0,g.bottom=0,g.zIndex=999999999,g.background="none",document.body.appendChild(v),v}function y(v){return l(v.changedTouches?v.changedTouches[0]:v,document.body)}h.unhover=p.wrapped,h.unhoverRaw=p.raw,h.init=function(v){var g,b,x,_,w,k,T,M,S=v.gd,C=1,P=S._context.doubleClickDelay,D=v.element;S._mouseDownTime||(S._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=R,s?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=R,D.addEventListener("touchstart",R,{passive:!1})):D.ontouchstart=R;var O=v.clampFn||function(z,B,$){return Math.abs(z)<$&&(z=0),Math.abs(B)<$&&(B=0),[z,B]};function R(z){S._dragged=!1,S._dragging=!0;var B=y(z);g=B[0],b=B[1],T=z.target,k=z,M=z.buttons===2||z.ctrlKey,z.clientX===void 0&&z.clientY===void 0&&(z.clientX=g,z.clientY=b),(x=new Date().getTime())-S._mouseDownTimeP&&(C=Math.max(C-1,1)),S._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(C,k),!M){var B;try{B=new MouseEvent("click",z)}catch{var $=y(z);(B=document.createEvent("MouseEvents")).initMouseEvent("click",z.bubbles,z.cancelable,z.view,z.detail,z.screenX,z.screenY,$[0],$[1],z.ctrlKey,z.altKey,z.shiftKey,z.metaKey,z.button,z.relatedTarget)}T.dispatchEvent(B)}S._dragging=!1,S._dragged=!1}else S._dragged=!1}},h.coverSlip=m},26041:function(o,a,n){var l=n(11086),f=n(79990),s=n(24401).getGraphDiv,u=n(26675),d=o.exports={};d.wrapped=function(h,p,m){(h=s(h))._fullLayout&&f.clear(h._fullLayout._uid+u.HOVERID),d.raw(h,p,m)},d.raw=function(h,p){var m=h._fullLayout,y=h._hoverdata;p||(p={}),p.target&&!h._dragged&&l.triggerHandler(h,"plotly_beforehover",p)===!1||(m._hoverlayer.selectAll("g").remove(),m._hoverlayer.selectAll("line").remove(),m._hoverlayer.selectAll("circle").remove(),h._hoverdata=void 0,p.target&&y&&h.emit("plotly_unhover",{event:p,points:y}))}},79952:function(o,a){a.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},a.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(o,a,n){var l=n(39898),f=n(71828),s=f.numberFormat,u=n(92770),d=n(84267),h=n(73972),p=n(7901),m=n(21081),y=f.strTranslate,v=n(63893),g=n(77922),b=n(18783).LINE_SPACING,x=n(37822).DESELECTDIM,_=n(34098),w=n(39984),k=n(23469).appendArrayPointValue,T=o.exports={};function M(ce,ye,J){var ne=ye.fillpattern,de=ne&&T.getPatternAttr(ne.shape,0,"");if(de){var xe=T.getPatternAttr(ne.bgcolor,0,null),ue=T.getPatternAttr(ne.fgcolor,0,null),ge=ne.fgopacity,be=T.getPatternAttr(ne.size,0,8),we=T.getPatternAttr(ne.solidity,0,.3),ke=ye.uid;T.pattern(ce,"point",J,ke,de,be,we,void 0,ne.fillmode,xe,ue,ge)}else ye.fillcolor&&ce.call(p.fill,ye.fillcolor)}T.font=function(ce,ye,J,ne){f.isPlainObject(ye)&&(ne=ye.color,J=ye.size,ye=ye.family),ye&&ce.style("font-family",ye),J+1&&ce.style("font-size",J+"px"),ne&&ce.call(p.fill,ne)},T.setPosition=function(ce,ye,J){ce.attr("x",ye).attr("y",J)},T.setSize=function(ce,ye,J){ce.attr("width",ye).attr("height",J)},T.setRect=function(ce,ye,J,ne,de){ce.call(T.setPosition,ye,J).call(T.setSize,ne,de)},T.translatePoint=function(ce,ye,J,ne){var de=J.c2p(ce.x),xe=ne.c2p(ce.y);return!!(u(de)&&u(xe)&&ye.node())&&(ye.node().nodeName==="text"?ye.attr("x",de).attr("y",xe):ye.attr("transform",y(de,xe)),!0)},T.translatePoints=function(ce,ye,J){ce.each(function(ne){var de=l.select(this);T.translatePoint(ne,de,ye,J)})},T.hideOutsideRangePoint=function(ce,ye,J,ne,de,xe){ye.attr("display",J.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,xe)?null:"none")},T.hideOutsideRangePoints=function(ce,ye){if(ye._hasClipOnAxisFalse){var J=ye.xaxis,ne=ye.yaxis;ce.each(function(de){var xe=de[0].trace,ue=xe.xcalendar,ge=xe.ycalendar,be=h.traceIs(xe,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(be).each(function(we){T.hideOutsideRangePoint(we,l.select(this),J,ne,ue,ge)})})}},T.crispRound=function(ce,ye,J){return ye&&u(ye)?ce._context.staticPlot?ye:ye<1?1:Math.round(ye):J||0},T.singleLineStyle=function(ce,ye,J,ne,de){ye.style("fill","none");var xe=(((ce||[])[0]||{}).trace||{}).line||{},ue=J||xe.width||0,ge=de||xe.dash||"";p.stroke(ye,ne||xe.color),T.dashLine(ye,ge,ue)},T.lineGroupStyle=function(ce,ye,J,ne){ce.style("fill","none").each(function(de){var xe=(((de||[])[0]||{}).trace||{}).line||{},ue=ye||xe.width||0,ge=ne||xe.dash||"";l.select(this).call(p.stroke,J||xe.color).call(T.dashLine,ge,ue)})},T.dashLine=function(ce,ye,J){J=+J||0,ye=T.dashStyle(ye,J),ce.style({"stroke-dasharray":ye,"stroke-width":J+"px"})},T.dashStyle=function(ce,ye){ye=+ye||1;var J=Math.max(ye,3);return ce==="solid"?ce="":ce==="dot"?ce=J+"px,"+J+"px":ce==="dash"?ce=3*J+"px,"+3*J+"px":ce==="longdash"?ce=5*J+"px,"+5*J+"px":ce==="dashdot"?ce=3*J+"px,"+J+"px,"+J+"px,"+J+"px":ce==="longdashdot"&&(ce=5*J+"px,"+2*J+"px,"+J+"px,"+2*J+"px"),ce},T.singleFillStyle=function(ce,ye){var J=l.select(ce.node());M(ce,((J.data()[0]||[])[0]||{}).trace||{},ye)},T.fillGroupStyle=function(ce,ye){ce.style("stroke-width",0).each(function(J){var ne=l.select(this);J[0].trace&&M(ne,J[0].trace,ye)})};var S=n(90998);T.symbolNames=[],T.symbolFuncs=[],T.symbolBackOffs=[],T.symbolNeedLines={},T.symbolNoDot={},T.symbolNoFill={},T.symbolList=[],Object.keys(S).forEach(function(ce){var ye=S[ce],J=ye.n;T.symbolList.push(J,String(J),ce,J+100,String(J+100),ce+"-open"),T.symbolNames[J]=ce,T.symbolFuncs[J]=ye.f,T.symbolBackOffs[J]=ye.backoff||0,ye.needLine&&(T.symbolNeedLines[J]=!0),ye.noDot?T.symbolNoDot[J]=!0:T.symbolList.push(J+200,String(J+200),ce+"-dot",J+300,String(J+300),ce+"-open-dot"),ye.noFill&&(T.symbolNoFill[J]=!0)});var C=T.symbolNames.length;function P(ce,ye,J,ne){var de=ce%100;return T.symbolFuncs[de](ye,J,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}T.symbolNumber=function(ce){if(u(ce))ce=+ce;else if(typeof ce=="string"){var ye=0;ce.indexOf("-open")>0&&(ye=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(ye+=200,ce=ce.replace("-dot","")),(ce=T.symbolNames.indexOf(ce))>=0&&(ce+=ye)}return ce%100>=C||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},O={x1:0,x2:0,y1:1,y2:0},R=s("~f"),F={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:O},verticalreversed:{node:"linearGradient",attrs:O,reversed:!0}};T.gradient=function(ce,ye,J,ne,de,xe){for(var ue=de.length,ge=F[ne],be=new Array(ue),we=0;we=0&&ce.i===void 0&&(ce.i=xe.i),ye.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var be;be=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=be,ne.selectedSizeFn&&(be=ce.mrc=ne.selectedSizeFn(ce));var we=T.symbolNumber(ce.mx||ue.symbol)||0;ce.om=we%200>=100;var ke=Me(ce,J),Ae=Y(ce,J);ye.attr("d",P(we,be,ke,Ae))}var Ee,De,Re,Ie=!1;if(ce.so)Re=ge.outlierwidth,De=ge.outliercolor,Ee=ue.outliercolor;else{var Be=(ge||{}).width;Re=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,De="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):f.isArrayOrTypedArray(ge.color)?p.defaultLine:ge.color,f.isArrayOrTypedArray(ue.color)&&(Ee=p.defaultLine,Ie=!0),Ee="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Ee=ne.selectedColorFn(ce))}if(ce.om)ye.call(p.stroke,Ee).style({"stroke-width":(Re||1)+"px",fill:"none"});else{ye.style("stroke-width",(ce.isBlank?0:Re)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Ie=!0:qe=Ue&&Ue.type,f.isArrayOrTypedArray(qe)&&(qe=qe[0],F[qe]||(qe=0));var Ye=ue.pattern,at=Ye&&T.getPatternAttr(Ye.shape,ce.i,"");if(qe&&qe!=="none"){var lt=ce.mgc;lt?Ie=!0:lt=Ue.color;var ct=J.uid;Ie&&(ct+="-"+ce.i),T.gradient(ye,de,ct,qe,[[0,lt],[1,Ee]],"fill")}else if(at){var bt=!1,ze=Ye.fgcolor;!ze&&xe&&xe.color&&(ze=xe.color,bt=!0);var Ne=T.getPatternAttr(ze,ce.i,xe&&xe.color||null),Qe=T.getPatternAttr(Ye.bgcolor,ce.i,null),it=Ye.fgopacity,kt=T.getPatternAttr(Ye.size,ce.i,8),Je=T.getPatternAttr(Ye.solidity,ce.i,.3);bt=bt||ce.mcc||f.isArrayOrTypedArray(Ye.shape)||f.isArrayOrTypedArray(Ye.bgcolor)||f.isArrayOrTypedArray(Ye.fgcolor)||f.isArrayOrTypedArray(Ye.size)||f.isArrayOrTypedArray(Ye.solidity);var ut=J.uid;bt&&(ut+="-"+ce.i),T.pattern(ye,"point",de,ut,at,kt,Je,ce.mcc,Ye.fillmode,Qe,Ne,it)}else f.isArrayOrTypedArray(Ee)?p.fill(ye,Ee[ce.i]):p.fill(ye,Ee);Re&&p.stroke(ye,De)}},T.makePointStyleFns=function(ce){var ye={},J=ce.marker;return ye.markerScale=T.tryColorscale(J,""),ye.lineScale=T.tryColorscale(J,"line"),h.traceIs(ce,"symbols")&&(ye.ms2mrc=_.isBubble(ce)?w(ce):function(){return(J.size||6)/2}),ce.selectedpoints&&f.extendFlat(ye,T.makeSelectedPointStyleFns(ce)),ye},T.makeSelectedPointStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},xe=J.marker||{},ue=ne.marker||{},ge=de.opacity,be=xe.opacity,we=ue.opacity,ke=be!==void 0,Ae=we!==void 0;(f.isArrayOrTypedArray(ge)||ke||Ae)&&(ye.selectedOpacityFn=function(at){var lt=at.mo===void 0?de.opacity:at.mo;return at.selected?ke?be:lt:Ae?we:x*lt});var Ee=de.color,De=xe.color,Re=ue.color;(De||Re)&&(ye.selectedColorFn=function(at){var lt=at.mcc||Ee;return at.selected?De||lt:Re||lt});var Ie=de.size,Be=xe.size,Ue=ue.size,qe=Be!==void 0,Ye=Ue!==void 0;return h.traceIs(ce,"symbols")&&(qe||Ye)&&(ye.selectedSizeFn=function(at){var lt=at.mrc||Ie/2;return at.selected?qe?Be/2:lt:Ye?Ue/2:lt}),ye},T.makeSelectedTextStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},xe=J.textfont||{},ue=ne.textfont||{},ge=de.color,be=xe.color,we=ue.color;return ye.selectedTextColorFn=function(ke){var Ae=ke.tc||ge;return ke.selected?be||Ae:we||(be?Ae:p.addOpacity(Ae,x))},ye},T.selectedPointStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedPointStyleFns(ye),ne=ye.marker||{},de=[];J.selectedOpacityFn&&de.push(function(xe,ue){xe.style("opacity",J.selectedOpacityFn(ue))}),J.selectedColorFn&&de.push(function(xe,ue){p.fill(xe,J.selectedColorFn(ue))}),J.selectedSizeFn&&de.push(function(xe,ue){var ge=ue.mx||ne.symbol||0,be=J.selectedSizeFn(ue);xe.attr("d",P(T.symbolNumber(ge),be,Me(ue,ye),Y(ue,ye))),ue.mrc2=be}),de.length&&ce.each(function(xe){for(var ue=l.select(this),ge=0;ge0?J:0}function N(ce,ye,J){return J&&(ce=H(ce)),ye?W(ce[1]):E(ce[0])}function E(ce){var ye=l.round(ce,2);return A=ye,ye}function W(ce){var ye=l.round(ce,2);return z=ye,ye}function G(ce,ye,J,ne){var de=ce[0]-ye[0],xe=ce[1]-ye[1],ue=J[0]-ye[0],ge=J[1]-ye[1],be=Math.pow(de*de+xe*xe,.25),we=Math.pow(ue*ue+ge*ge,.25),ke=(we*we*de-be*be*ue)*ne,Ae=(we*we*xe-be*be*ge)*ne,Ee=3*we*(be+we),De=3*be*(be+we);return[[E(ye[0]+(Ee&&ke/Ee)),W(ye[1]+(Ee&&Ae/Ee))],[E(ye[0]-(De&&ke/De)),W(ye[1]-(De&&Ae/De))]]}T.textPointStyle=function(ce,ye,J){if(ce.size()){var ne;if(ye.selectedpoints){var de=T.makeSelectedTextStyleFns(ye);ne=de.selectedTextColorFn}var xe=ye.texttemplate,ue=J._fullLayout;ce.each(function(ge){var be=l.select(this),we=xe?f.extractOption(ge,ye,"txt","texttemplate"):f.extractOption(ge,ye,"tx","text");if(we||we===0){if(xe){var ke=ye._module.formatLabels,Ae=ke?ke(ge,ye,ue):{},Ee={};k(Ee,ye,ge.i);var De=ye._meta||{};we=f.texttemplateString(we,Ae,ue._d3locale,Ee,ge,De)}var Re=ge.tp||ye.textposition,Ie=j(ge,ye),Be=ne?ne(ge):ge.tc||ye.textfont.color;be.call(T.font,ge.tf||ye.textfont.family,Ie,Be).text(we).call(v.convertToTspans,J).call($,Re,Ie,ge.mrc)}else be.remove()})}},T.selectedTextStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedTextStyleFns(ye);ce.each(function(ne){var de=l.select(this),xe=J.selectedTextColorFn(ne),ue=ne.tp||ye.textposition,ge=j(ne,ye);p.fill(de,xe);var be=h.traceIs(ye,"bar-like");$(de,ue,ge,ne.mrc2||ne.mrc,be)})}},T.smoothopen=function(ce,ye){if(ce.length<3)return"M"+ce.join("L");var J,ne="M"+ce[0],de=[];for(J=1;J=be||at>=ke&&at<=be)&&(lt<=Ae&<>=we||lt>=Ae&<<=we)&&(ce=[at,lt])}return ce}T.steps=function(ce){var ye=L[ce]||q;return function(J){for(var ne="M"+E(J[0][0])+","+W(J[0][1]),de=J.length,xe=1;xe=1e4&&(T.savedBBoxes={},V=0),J&&(T.savedBBoxes[J]=De),V++,f.extendFlat({},De)},T.setClipUrl=function(ce,ye,J){ce.attr("clip-path",ee(ye,J))},T.getTranslate=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||0,y:+ye[1]||0}},T.setTranslate=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||0,J=J||0,xe=xe.replace(/(\btranslate\(.*?\);?)/,"").trim(),xe=(xe+=y(ye,J)).trim(),ce[de]("transform",xe),xe},T.getScale=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||1,y:+ye[1]||1}},T.setScale=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||1,J=J||1,xe=xe.replace(/(\bscale\(.*?\);?)/,"").trim(),xe=(xe+="scale("+ye+","+J+")").trim(),ce[de]("transform",xe),xe};var U=/\s*sc.*/;T.setPointGroupScale=function(ce,ye,J){if(ye=ye||1,J=J||1,ce){var ne=ye===1&&J===1?"":"scale("+ye+","+J+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(U,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Q=/translate\([^)]*\)\s*$/;function Y(ce,ye){var J;return ce&&(J=ce.mf),J===void 0&&(J=ye.marker&&ye.marker.standoff||0),ye._geo||ye._xA?J:-J}T.setTextPointsScale=function(ce,ye,J){ce&&ce.each(function(){var ne,de=l.select(this),xe=de.select("text");if(xe.node()){var ue=parseFloat(xe.attr("x")||0),ge=parseFloat(xe.attr("y")||0),be=(de.attr("transform")||"").match(Q);ne=ye===1&&J===1?[]:[y(ue,ge),"scale("+ye+","+J+")",y(-ue,-ge)],be&&ne.push(be),de.attr("transform",ne.join(""))}})},T.getMarkerStandoff=Y;var Z,X,re,ie,le,se,pe=Math.atan2,Te=Math.cos,Se=Math.sin;function Oe(ce,ye){var J=ye[0],ne=ye[1];return[J*Te(ce)-ne*Se(ce),J*Se(ce)+ne*Te(ce)]}function Me(ce,ye){var J,ne,de=ce.ma;de===void 0&&(de=ye.marker.angle||0);var xe=ye.marker.angleref;if(xe==="previous"||xe==="north"){if(ye._geo){var ue=ye._geo.project(ce.lonlat);J=ue[0],ne=ue[1]}else{var ge=ye._xA,be=ye._yA;if(!ge||!be)return 90;J=ge.c2p(ce.x),ne=be.c2p(ce.y)}if(ye._geo){var we,ke=ce.lonlat[0],Ae=ce.lonlat[1],Ee=ye._geo.project([ke,Ae+1e-5]),De=ye._geo.project([ke+1e-5,Ae]),Re=pe(De[1]-ne,De[0]-J),Ie=pe(Ee[1]-ne,Ee[0]-J);if(xe==="north")we=de/180*Math.PI;else if(xe==="previous"){var Be=ke/180*Math.PI,Ue=Ae/180*Math.PI,qe=Z/180*Math.PI,Ye=X/180*Math.PI,at=qe-Be,lt=Te(Ye)*Se(at),ct=Se(Ye)*Te(Ue)-Te(Ye)*Se(Ue)*Te(at);we=-pe(lt,ct)-Math.PI,Z=ke,X=Ae}var bt=Oe(Re,[Te(we),0]),ze=Oe(Ie,[Se(we),0]);de=pe(bt[1]+ze[1],bt[0]+ze[0])/Math.PI*180,xe!=="previous"||se===ye.uid&&ce.i===le+1||(de=null)}if(xe==="previous"&&!ye._geo)if(se===ye.uid&&ce.i===le+1&&u(J)&&u(ne)){var Ne=J-re,Qe=ne-ie,it=ye.line&&ye.line.shape||"",kt=it.slice(it.length-1);kt==="h"&&(Qe=0),kt==="v"&&(Ne=0),de+=pe(Qe,Ne)/Math.PI*180+90}else de=null}return re=J,ie=ne,le=ce.i,se=ye.uid,de}T.getMarkerAngle=Me},90998:function(o,a,n){var l,f,s,u,d=n(95616),h=n(39898).round,p="M0,0Z",m=Math.sqrt(2),y=Math.sqrt(3),v=Math.PI,g=Math.cos,b=Math.sin;function x(w){return w===null}function _(w,k,T){if(!(w&&w%360!=0||k))return T;if(s===w&&u===k&&l===T)return f;function M(N,E){var W=g(N),G=b(N),L=E[0],q=E[1]+(k||0);return[L*W-q*G,L*G+q*W]}s=w,u=k,l=T;for(var S=w/180*v,C=0,P=0,D=d(T),O="",R=0;R0,b=d._context.staticPlot;h.each(function(x){var _,w=x[0].trace,k=w.error_x||{},T=w.error_y||{};w.ids&&(_=function(P){return P.id});var M=u.hasMarkers(w)&&w.marker.maxdisplayed>0;T.visible||k.visible||(x=[]);var S=l.select(this).selectAll("g.errorbar").data(x,_);if(S.exit().remove(),x.length){k.visible||S.selectAll("path.xerror").remove(),T.visible||S.selectAll("path.yerror").remove(),S.style("opacity",1);var C=S.enter().append("g").classed("errorbar",!0);g&&C.style("opacity",0).transition().duration(m.duration).style("opacity",1),s.setClipUrl(S,p.layerClipId,d),S.each(function(P){var D=l.select(this),O=function($,j,N){var E={x:j.c2p($.x),y:N.c2p($.y)};return $.yh!==void 0&&(E.yh=N.c2p($.yh),E.ys=N.c2p($.ys),f(E.ys)||(E.noYS=!0,E.ys=N.c2p($.ys,!0))),$.xh!==void 0&&(E.xh=j.c2p($.xh),E.xs=j.c2p($.xs),f(E.xs)||(E.noXS=!0,E.xs=j.c2p($.xs,!0))),E}(P,y,v);if(!M||P.vis){var R,F=D.select("path.yerror");if(T.visible&&f(O.x)&&f(O.yh)&&f(O.ys)){var A=T.width;R="M"+(O.x-A)+","+O.yh+"h"+2*A+"m-"+A+",0V"+O.ys,O.noYS||(R+="m-"+A+",0h"+2*A),F.size()?g&&(F=F.transition().duration(m.duration).ease(m.easing)):F=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("yerror",!0),F.attr("d",R)}else F.remove();var z=D.select("path.xerror");if(k.visible&&f(O.y)&&f(O.xh)&&f(O.xs)){var B=(k.copy_ystyle?T:k).width;R="M"+O.xh+","+(O.y-B)+"v"+2*B+"m0,-"+B+"H"+O.xs,O.noXS||(R+="m0,-"+B+"v"+2*B),z.size()?g&&(z=z.transition().duration(m.duration).ease(m.easing)):z=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("xerror",!0),z.attr("d",R)}else z.remove()}})}})}},62662:function(o,a,n){var l=n(39898),f=n(7901);o.exports=function(s){s.each(function(u){var d=u[0].trace,h=d.error_y||{},p=d.error_x||{},m=l.select(this);m.selectAll("path.yerror").style("stroke-width",h.thickness+"px").call(f.stroke,h.color),p.copy_ystyle&&(p=h),m.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(f.stroke,p.color)})}},77914:function(o,a,n){var l=n(41940),f=n(528).hoverlabel,s=n(1426).extendFlat;o.exports={hoverlabel:{bgcolor:s({},f.bgcolor,{arrayOk:!0}),bordercolor:s({},f.bordercolor,{arrayOk:!0}),font:l({arrayOk:!0,editType:"none"}),align:s({},f.align,{arrayOk:!0}),namelength:s({},f.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(o,a,n){var l=n(71828),f=n(73972);function s(u,d,h,p){p=p||l.identity,Array.isArray(u)&&(d[0][h]=p(u))}o.exports=function(u){var d=u.calcdata,h=u._fullLayout;function p(b){return function(x){return l.coerceHoverinfo({hoverinfo:x},{_module:b._module},h)}}for(var m=0;m=0&&y.indexde[0]._length||pt<0||pt>xe[0]._length)return b.unhoverRaw(ie,le)}else ut="xpx"in le?le.xpx:de[0]._length/2,pt="ypx"in le?le.ypx:xe[0]._length/2;if(le.pointerX=ut+de[0]._offset,le.pointerY=pt+xe[0]._offset,De="xval"in le?w.flat(Se,le.xval):w.p2c(de,ut),Re="yval"in le?w.flat(Se,le.yval):w.p2c(xe,pt),!f(De[0])||!f(Re[0]))return u.warn("Fx.hover failed",le,ie),b.unhoverRaw(ie,le)}var zt=1/0;function wt(Zt,pn){for(Be=0;BeNe&&(Qe.splice(0,Ne),zt=Qe[0].distance),ye&&Ee!==0&&Qe.length===0){ze.distance=Ee,ze.index=!1;var Dn=qe._module.hoverPoints(ze,ct,bt,"closest",{hoverLayer:Oe._hoverlayer});if(Dn&&(Dn=Dn.filter(function(lr){return lr.spikeDistance<=Ee})),Dn&&Dn.length){var wn,En=Dn.filter(function(lr){return lr.xa.showspikes&&lr.xa.spikesnap!=="hovered data"});if(En.length){var tr=En[0];f(tr.x0)&&f(tr.y0)&&(wn=_e(tr),(!kt.vLinePoint||kt.vLinePoint.spikeDistance>wn.spikeDistance)&&(kt.vLinePoint=wn))}var oa=Dn.filter(function(lr){return lr.ya.showspikes&&lr.ya.spikesnap!=="hovered data"});if(oa.length){var da=oa[0];f(da.x0)&&f(da.y0)&&(wn=_e(da),(!kt.hLinePoint||kt.hLinePoint.spikeDistance>wn.spikeDistance)&&(kt.hLinePoint=wn))}}}}}function ve(Zt,pn,nn){for(var Kt,On=null,Tn=1/0,Dn=0;Dn0&&Math.abs(Zt.distance)Ft-1;Vt--)gt(Qe[Vt]);Qe=St,Ze()}var ht=ie._hoverdata,yt=[],qt=te(ie),Et=ee(ie);for(Ie=0;Ie1||Qe.length>1)||ke==="closest"&&Je&&Qe.length>1,cn=g.combine(Oe.plot_bgcolor||g.background,Oe.paper_bgcolor),ln=j(Qe,{gd:ie,hovermode:ke,rotateLabels:tn,bgColor:cn,container:Oe._hoverlayer,outerContainer:Oe._paper.node(),commonLabelOpts:Oe.hoverlabel,hoverdistance:Oe.hoverdistance}),an=ln.hoverLabels;if(w.isUnifiedHover(ke)||(function(Zt,pn,nn,Kt){var On,Tn,Dn,wn,En,tr,oa,da=pn?"xa":"ya",lr=pn?"ya":"xa",ti=0,Or=1,ur=Zt.size(),kr=new Array(ur),la=0,An=Kt.minX,on=Kt.maxX,$n=Kt.minY,Ar=Kt.maxY,Ln=function(kn){return kn*nn._invScaleX},Bn=function(kn){return kn*nn._invScaleY};function jn(kn){var Pr=kn[0],Aa=kn[kn.length-1];if(Tn=Pr.pmin-Pr.pos-Pr.dp+Pr.size,Dn=Aa.pos+Aa.dp+Aa.size-Pr.pmax,Tn>.01){for(En=kn.length-1;En>=0;En--)kn[En].dp+=Tn;On=!1}if(!(Dn<.01)){if(Tn<-.01){for(En=kn.length-1;En>=0;En--)kn[En].dp-=Dn;On=!1}if(On){var Br=0;for(wn=0;wnPr.pmax&&Br++;for(wn=kn.length-1;wn>=0&&!(Br<=0);wn--)(tr=kn[wn]).pos>Pr.pmax-1&&(tr.del=!0,Br--);for(wn=0;wn=0;En--)kn[En].dp-=Dn;for(wn=kn.length-1;wn>=0&&!(Br<=0);wn--)(tr=kn[wn]).pos+tr.dp+tr.size>Pr.pmax&&(tr.del=!0,Br--)}}}for(Zt.each(function(kn){var Pr=kn[da],Aa=kn[lr],Br=Pr._id.charAt(0)==="x",Fi=Pr.range;la===0&&Fi&&Fi[0]>Fi[1]!==Br&&(Or=-1);var Ni=0,mi=Br?nn.width:nn.height;if(nn.hovermode==="x"||nn.hovermode==="y"){var ni,Ga,vi=E(kn,pn),us=kn.anchor,nl=us==="end"?-1:1;if(us==="middle")Ga=(ni=kn.crossPos+(Br?Bn(vi.y-kn.by/2):Ln(kn.bx/2+kn.tx2width/2)))+(Br?Bn(kn.by):Ln(kn.bx));else if(Br)Ga=(ni=kn.crossPos+Bn(R+vi.y)-Bn(kn.by/2-R))+Bn(kn.by);else{var cs=Ln(nl*R+vi.x),oo=cs+Ln(nl*kn.bx);ni=kn.crossPos+Math.min(cs,oo),Ga=kn.crossPos+Math.max(cs,oo)}Br?$n!==void 0&&Ar!==void 0&&Math.min(Ga,Ar)-Math.max(ni,$n)>1&&(Aa.side==="left"?(Ni=Aa._mainLinePosition,mi=nn.width):mi=Aa._mainLinePosition):An!==void 0&&on!==void 0&&Math.min(Ga,on)-Math.max(ni,An)>1&&(Aa.side==="top"?(Ni=Aa._mainLinePosition,mi=nn.height):mi=Aa._mainLinePosition)}kr[la++]=[{datum:kn,traceIndex:kn.trace.index,dp:0,pos:kn.pos,posref:kn.posref,size:kn.by*(Br?P:1)/2,pmin:Ni,pmax:mi}]}),kr.sort(function(kn,Pr){return kn[0].posref-Pr[0].posref||Or*(Pr[0].traceIndex-kn[0].traceIndex)});!On&&ti<=ur;){for(ti++,On=!0,wn=0;wn.01&&xr.pmin===Mr.pmin&&xr.pmax===Mr.pmax){for(En=Lr.length-1;En>=0;En--)Lr[En].dp+=Tn;for(Un.push.apply(Un,Lr),kr.splice(wn+1,1),oa=0,En=Un.length-1;En>=0;En--)oa+=Un[En].dp;for(Dn=oa/Un.length,En=Un.length-1;En>=0;En--)Un[En].dp-=Dn;On=!1}else wn++}kr.forEach(jn)}for(wn=kr.length-1;wn>=0;wn--){var Na=kr[wn];for(En=Na.length-1;En>=0;En--){var wa=Na[En],sa=wa.datum;sa.offset=wa.dp,sa.del=wa.del}}}(an,tn,Oe,ln.commonLabelBoundingBox),W(an,tn,Oe._invScaleX,Oe._invScaleY)),Te&&Te.tagName){var sn=_.getComponentMethod("annotations","hasClickToShow")(ie,yt);y(l.select(Te),sn?"pointer":"")}Te&&!pe&&function(Zt,pn,nn){if(!nn||nn.length!==Zt._hoverdata.length)return!0;for(var Kt=nn.length-1;Kt>=0;Kt--){var On=nn[Kt],Tn=Zt._hoverdata[Kt];if(On.curveNumber!==Tn.curveNumber||String(On.pointNumber)!==String(Tn.pointNumber)||String(On.pointNumbers)!==String(Tn.pointNumbers))return!0}return!1}(ie,0,ht)&&(ht&&ie.emit("plotly_unhover",{event:le,points:ht}),ie.emit("plotly_hover",{event:le,points:ie._hoverdata,xaxes:de,yaxes:xe,xvals:De,yvals:Re}))})(Q,Y,Z,X,re)})},a.loneHover=function(Q,Y){var Z=!0;Array.isArray(Q)||(Z=!1,Q=[Q]);var X=Y.gd,re=te(X),ie=ee(X),le=j(Q.map(function(Te){var Se=Te._x0||Te.x0||Te.x||0,Oe=Te._x1||Te.x1||Te.x||0,Me=Te._y0||Te.y0||Te.y||0,ce=Te._y1||Te.y1||Te.y||0,ye=Te.eventData;if(ye){var J=Math.min(Se,Oe),ne=Math.max(Se,Oe),de=Math.min(Me,ce),xe=Math.max(Me,ce),ue=Te.trace;if(_.traceIs(ue,"gl3d")){var ge=X._fullLayout[ue.scene]._scene.container,be=ge.offsetLeft,we=ge.offsetTop;J+=be,ne+=be,de+=we,xe+=we}ye.bbox={x0:J+ie,x1:ne+ie,y0:de+re,y1:xe+re},Y.inOut_bbox&&Y.inOut_bbox.push(ye.bbox)}else ye=!1;return{color:Te.color||g.defaultLine,x0:Te.x0||Te.x||0,x1:Te.x1||Te.x||0,y0:Te.y0||Te.y||0,y1:Te.y1||Te.y||0,xLabel:Te.xLabel,yLabel:Te.yLabel,zLabel:Te.zLabel,text:Te.text,name:Te.name,idealAlign:Te.idealAlign,borderColor:Te.borderColor,fontFamily:Te.fontFamily,fontSize:Te.fontSize,fontColor:Te.fontColor,nameLength:Te.nameLength,textAlign:Te.textAlign,trace:Te.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Te.hovertemplate||!1,hovertemplateLabels:Te.hovertemplateLabels||!1,eventData:ye}}),{gd:X,hovermode:"closest",rotateLabels:!1,bgColor:Y.bgColor||g.background,container:l.select(Y.container),outerContainer:Y.outerContainer||Y.container}).hoverLabels,se=0,pe=0;return le.sort(function(Te,Se){return Te.y0-Se.y0}).each(function(Te,Se){var Oe=Te.y0-Te.by/2;Te.offset=Oe-5([\s\S]*)<\/extra>/;function j(Q,Y){var Z=Y.gd,X=Z._fullLayout,re=Y.hovermode,ie=Y.rotateLabels,le=Y.bgColor,se=Y.container,pe=Y.outerContainer,Te=Y.commonLabelOpts||{};if(Q.length===0)return[[]];var Se=Y.fontFamily||k.HOVERFONT,Oe=Y.fontSize||k.HOVERFONTSIZE,Me=Q[0],ce=Me.xa,ye=Me.ya,J=re.charAt(0),ne=J+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var xe=0;xeX.width-jt?(ht=X.width-jt,Ft.attr("d","M"+(jt-R)+",0L"+jt+","+Et+R+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H"+(jt-2*R)+"Z")):Ft.attr("d","M0,0L"+R+","+Et+R+"H"+jt+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H-"+R+"Z"),Be.minX=ht-jt,Be.maxX=ht+jt,ce.side==="top"?(Be.minY=yt-(2*F+qt.height),Be.maxY=yt-F):(Be.minY=yt+F,Be.maxY=yt+(2*F+qt.height))}else{var Tt,Ot,At;ye.side==="right"?(Tt="start",Ot=1,At="",ht=ce._offset+ce._length):(Tt="end",Ot=-1,At="-",ht=ce._offset),yt=ye._offset+(Me.y0+Me.y1)/2,Vt.attr("text-anchor",Tt),Ft.attr("d","M0,0L"+At+R+","+R+"V"+(F+qt.height/2)+"h"+At+(2*F+qt.width)+"V-"+(F+qt.height/2)+"H"+At+R+"V-"+R+"Z"),Be.minY=yt-(F+qt.height/2),Be.maxY=yt+(F+qt.height/2),ye.side==="right"?(Be.minX=ht+R,Be.maxX=ht+R+(2*F+qt.width)):(Be.minX=ht-R-(2*F+qt.width),Be.maxX=ht-R);var Lt,Rt=qt.height/2,$t=ge-qt.top-Rt,Yt="clip"+X._uid+"commonlabel"+ye._id;if(ht=0?pt:It+wt=0?It:nt+wt=0?Je:ut+ve=0?ut:st+ve=0,tt.idealAlign!=="top"&&tn||!cn?tn?(Rt+=Yt/2,tt.anchor="start"):tt.anchor="middle":(Rt-=Yt/2,tt.anchor="end"),tt.crossPos=Rt;else{if(tt.pos=Rt,tn=Lt+$t/2+ln<=be,cn=Lt-$t/2-ln>=0,tt.idealAlign!=="left"&&tn||!cn)if(tn)Lt+=$t/2,tt.anchor="start";else{tt.anchor="middle";var an=ln/2,sn=Lt+an-be,Zt=Lt-an;sn>0&&(Lt-=sn),Zt<0&&(Lt+=-Zt)}else Lt-=$t/2,tt.anchor="end";tt.crossPos=Lt}Et.attr("text-anchor",tt.anchor),Tt&&jt.attr("text-anchor",tt.anchor),Ft.attr("transform",d(Lt,Rt)+(ie?h(S):""))}),{hoverLabels:mt,commonLabelBoundingBox:Be}}function N(Q,Y,Z,X,re,ie){var le="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=u.templateString(Q.name,Q.trace._meta)),le=H(Q.name,Q.nameLength));var pe=Z.charAt(0),Te=pe==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(se+="x: "+Q.xLabel+"
"),Q.yLabel!==void 0&&(se+="y: "+Q.yLabel+"
"),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Q.zLabel)):Y&&Q[pe+"Label"]===re?se=Q[Te+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(se=Q.yLabel):se=Q.yLabel===void 0?Q.xLabel:"("+Q.xLabel+", "+Q.yLabel+")",!Q.text&&Q.text!==0||Array.isArray(Q.text)||(se+=(se?"
":"")+Q.text),Q.extraText!==void 0&&(se+=(se?"
":"")+Q.extraText),ie&&se===""&&!Q.hovertemplate&&(le===""&&ie.remove(),se=le);var Se=Q.hovertemplate||!1;if(Se){var Oe=Q.hovertemplateLabels||Q;Q[pe+"Label"]!==re&&(Oe[pe+"other"]=Oe[pe+"Val"],Oe[pe+"otherLabel"]=Oe[pe+"Label"]),se=(se=u.hovertemplateString(Se,Oe,X._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace($,function(Me,ce){return le=H(ce,Q.nameLength),""})}return[se,le]}function E(Q,Y){var Z=0,X=Q.offset;return Y&&(X*=-O,Z=Q.offset*D),{x:Z,y:X}}function W(Q,Y,Z,X){var re=function(le){return le*Z},ie=function(le){return le*X};Q.each(function(le){var se=l.select(this);if(le.del)return se.remove();var pe,Te,Se,Oe,Me=se.select("text.nums"),ce=le.anchor,ye=ce==="end"?-1:1,J=(Oe=(Se=(Te={start:1,end:-1,middle:0}[(pe=le).anchor])*(R+F))+Te*(pe.txwidth+F),pe.anchor==="middle"&&(Se-=pe.tx2width/2,Oe+=pe.txwidth/2+F),{alignShift:Te,textShiftX:Se,text2ShiftX:Oe}),ne=E(le,Y),de=ne.x,xe=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(le.bx/2+le.tx2width/2)+","+ie(xe-le.by/2)+"h"+re(le.bx)+"v"+ie(le.by)+"h-"+re(le.bx)+"Z":"M0,0L"+re(ye*R+de)+","+ie(R+xe)+"v"+ie(le.by/2-R)+"h"+re(ye*le.bx)+"v-"+ie(le.by)+"H"+re(ye*R+de)+"V"+ie(xe-R)+"Z");var ge=de+J.textShiftX,be=xe+le.ty0-le.by/2+F,we=le.textAlign||"auto";we!=="auto"&&(we==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),ge=ue?-le.bx/2-le.tx2width/2+F:-le.bx-F):we==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),ge=ue?le.bx/2-le.tx2width/2-F:le.bx+F)),Me.call(m.positionText,re(ge),ie(be)),le.tx2width&&(se.select("text.name").call(m.positionText,re(J.text2ShiftX+J.alignShift*F+de),ie(xe+le.ty0-le.by/2+F)),se.select("rect").call(v.setRect,re(J.text2ShiftX+(J.alignShift-1)*le.tx2width/2+de),ie(xe-le.by/2-1),re(le.tx2width),ie(le.by+2)))})}function G(Q,Y){var Z=Q.index,X=Q.trace||{},re=Q.cd[0],ie=Q.cd[Z]||{};function le(Me){return Me||f(Me)&&Me===0}var se=Array.isArray(Z)?function(Me,ce){var ye=u.castOption(re,Z,Me);return le(ye)?ye:u.extractOption({},X,"",ce)}:function(Me,ce){return u.extractOption(ie,X,Me,ce)};function pe(Me,ce,ye){var J=se(ce,ye);le(J)&&(Q[Me]=J)}if(pe("hoverinfo","hi","hoverinfo"),pe("bgcolor","hbg","hoverlabel.bgcolor"),pe("borderColor","hbc","hoverlabel.bordercolor"),pe("fontFamily","htf","hoverlabel.font.family"),pe("fontSize","hts","hoverlabel.font.size"),pe("fontColor","htc","hoverlabel.font.color"),pe("nameLength","hnl","hoverlabel.namelength"),pe("textAlign","hta","hoverlabel.align"),Q.posref=Y==="y"||Y==="closest"&&X.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=u.constrain(Q.x0,0,Q.xa._length),Q.x1=u.constrain(Q.x1,0,Q.xa._length),Q.y0=u.constrain(Q.y0,0,Q.ya._length),Q.y1=u.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:x.hoverLabelText(Q.xa,Q.xLabelVal,X.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:x.hoverLabelText(Q.ya,Q.yLabelVal,X.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!(isNaN(Q.xerr)||Q.xa.type==="log"&&Q.xerr<=0)){var Te=x.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+Te+" / -"+x.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+Te,Y==="x"&&(Q.distance+=1)}if(!(isNaN(Q.yerr)||Q.ya.type==="log"&&Q.yerr<=0)){var Se=x.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Se+" / -"+x.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Se,Y==="y"&&(Q.distance+=1)}var Oe=Q.hoverinfo||Q.trace.hoverinfo;return Oe&&Oe!=="all"&&((Oe=Array.isArray(Oe)?Oe:Oe.split("+")).indexOf("x")===-1&&(Q.xLabel=void 0),Oe.indexOf("y")===-1&&(Q.yLabel=void 0),Oe.indexOf("z")===-1&&(Q.zLabel=void 0),Oe.indexOf("text")===-1&&(Q.text=void 0),Oe.indexOf("name")===-1&&(Q.name=void 0)),Q}function L(Q,Y,Z){var X,re,ie=Z.container,le=Z.fullLayout,se=le._size,pe=Z.event,Te=!!Y.hLinePoint,Se=!!Y.vLinePoint;if(ie.selectAll(".spikeline").remove(),Se||Te){var Oe=g.combine(le.plot_bgcolor,le.paper_bgcolor);if(Te){var Me,ce,ye=Y.hLinePoint;X=ye&&ye.xa,(re=ye&&ye.ya).spikesnap==="cursor"?(Me=pe.pointerX,ce=pe.pointerY):(Me=X._offset+ye.x,ce=re._offset+ye.y);var J,ne,de=s.readability(ye.color,Oe)<1.5?g.contrast(Oe):ye.color,xe=re.spikemode,ue=re.spikethickness,ge=re.spikecolor||de,be=x.getPxPosition(Q,re);if(xe.indexOf("toaxis")!==-1||xe.indexOf("across")!==-1){if(xe.indexOf("toaxis")!==-1&&(J=be,ne=Me),xe.indexOf("across")!==-1){var we=re._counterDomainMin,ke=re._counterDomainMax;re.anchor==="free"&&(we=Math.min(we,re.position),ke=Math.max(ke,re.position)),J=se.l+we*se.w,ne=se.l+ke*se.w}ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:ge,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}xe.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:be+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:ge}).classed("spikeline",!0)}if(Se){var Ae,Ee,De=Y.vLinePoint;X=De&&De.xa,re=De&&De.ya,X.spikesnap==="cursor"?(Ae=pe.pointerX,Ee=pe.pointerY):(Ae=X._offset+De.x,Ee=re._offset+De.y);var Re,Ie,Be=s.readability(De.color,Oe)<1.5?g.contrast(Oe):De.color,Ue=X.spikemode,qe=X.spikethickness,Ye=X.spikecolor||Be,at=x.getPxPosition(Q,X);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&(Re=at,Ie=Ee),Ue.indexOf("across")!==-1){var lt=X._counterDomainMin,ct=X._counterDomainMax;X.anchor==="free"&&(lt=Math.min(lt,X.position),ct=Math.max(ct,X.position)),Re=se.t+(1-ct)*se.h,Ie=se.t+(1-lt)*se.h}ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe,stroke:Ye,"stroke-dasharray":v.dashStyle(X.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:Ae,cy:at-(X.side!=="top"?qe:-qe),r:qe,fill:Ye}).classed("spikeline",!0)}}}function q(Q,Y){return!Y}function H(Q,Y){return m.plainText(Q||"",{len:Y,allowedTags:["br","sub","sup","b","i","em"]})}function V(Q,Y,Z){var X=Y[Q+"a"],re=Y[Q+"Val"],ie=Y.cd[0];if(X.type==="category"||X.type==="multicategory")re=X._categoriesMap[re];else if(X.type==="date"){var le=Y.trace[Q+"periodalignment"];if(le){var se=Y.cd[Y.index],pe=se[Q+"Start"];pe===void 0&&(pe=se[Q]);var Te=se[Q+"End"];Te===void 0&&(Te=se[Q]);var Se=Te-pe;le==="end"?re+=Se:le==="middle"&&(re+=Se/2)}re=X.d2c(re)}return ie&&ie.t&&ie.t.posLetter===X._id&&(Z.boxmode!=="group"&&Z.violinmode!=="group"||(re+=ie.t.dPos)),re}function te(Q){return Q.offsetTop+Q.clientTop}function ee(Q){return Q.offsetLeft+Q.clientLeft}function U(Q,Y){var Z=Q._fullLayout,X=Y.getBoundingClientRect(),re=X.left,ie=X.top,le=re+X.width,se=ie+X.height,pe=u.apply3DTransform(Z._invTransform)(re,ie),Te=u.apply3DTransform(Z._invTransform)(le,se),Se=pe[0],Oe=pe[1],Me=Te[0],ce=Te[1];return{x:Se,y:Oe,width:Me-Se,height:ce-Oe,top:Math.min(Oe,ce),left:Math.min(Se,Me),right:Math.max(Se,Me),bottom:Math.max(Oe,ce)}}},38048:function(o,a,n){var l=n(71828),f=n(7901),s=n(23469).isUnifiedHover;o.exports=function(u,d,h,p){p=p||{};var m=d.legend;function y(v){p.font[v]||(p.font[v]=m?d.legend.font[v]:d.font[v])}d&&s(d.hovermode)&&(p.font||(p.font={}),y("size"),y("family"),y("color"),m?(p.bgcolor||(p.bgcolor=f.combine(d.legend.bgcolor,d.paper_bgcolor)),p.bordercolor||(p.bordercolor=d.legend.bordercolor)):p.bgcolor||(p.bgcolor=d.paper_bgcolor)),h("hoverlabel.bgcolor",p.bgcolor),h("hoverlabel.bordercolor",p.bordercolor),h("hoverlabel.namelength",p.namelength),l.coerceFont(h,"hoverlabel.font",p.font),h("hoverlabel.align",p.align)}},98212:function(o,a,n){var l=n(71828),f=n(528);o.exports=function(s,u){function d(h,p){return u[h]!==void 0?u[h]:l.coerce(s,u,f,h,p)}return d("clickmode"),d("hovermode")}},30211:function(o,a,n){var l=n(39898),f=n(71828),s=n(28569),u=n(23469),d=n(528),h=n(88335);o.exports={moduleType:"component",name:"fx",constants:n(26675),schema:{layout:d},attributes:n(77914),layoutAttributes:d,supplyLayoutGlobalDefaults:n(22774),supplyDefaults:n(54268),supplyLayoutDefaults:n(34938),calc:n(30732),getDistanceFunction:u.getDistanceFunction,getClosest:u.getClosest,inbox:u.inbox,quadrature:u.quadrature,appendArrayPointValue:u.appendArrayPointValue,castHoverOption:function(p,m,y){return f.castOption(p,m,"hoverlabel."+y)},castHoverinfo:function(p,m,y){return f.castOption(p,y,"hoverinfo",function(v){return f.coerceHoverinfo({hoverinfo:v},{_module:p._module},m)})},hover:h.hover,unhover:s.unhover,loneHover:h.loneHover,loneUnhover:function(p){var m=f.isD3Selection(p)?p:l.select(p);m.selectAll("g.hovertext").remove(),m.selectAll(".spikeline").remove()},click:n(75914)}},528:function(o,a,n){var l=n(26675),f=n(41940),s=f({editType:"none"});s.family.dflt=l.HOVERFONT,s.size.dflt=l.HOVERFONTSIZE,o.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:s,grouptitlefont:f({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(o,a,n){var l=n(71828),f=n(528),s=n(98212),u=n(38048);o.exports=function(d,h){function p(g,b){return l.coerce(d,h,f,g,b)}s(d,h)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var m=h._has("mapbox"),y=h._has("geo"),v=h._basePlotModules.length;h.dragmode==="zoom"&&((m||y)&&v===1||m&&y&&v===2)&&(h.dragmode="pan"),u(d,h,p),l.coerceFont(p,"hoverlabel.grouptitlefont",h.hoverlabel.font)}},22774:function(o,a,n){var l=n(71828),f=n(38048),s=n(528);o.exports=function(u,d){f(u,d,function(h,p){return l.coerce(u,d,s,h,p)})}},83312:function(o,a,n){var l=n(71828),f=n(30587).counter,s=n(27670).Y,u=n(85555).idRegex,d=n(44467),h={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[f("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[u.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[u.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:s({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function p(v,g,b){var x=g[b+"axes"],_=Object.keys((v._splomAxes||{})[b]||{});return Array.isArray(x)?x:_.length?_:void 0}function m(v,g,b,x,_,w){var k=g(v+"gap",b),T=g("domain."+v);g(v+"side",x);for(var M=new Array(_),S=T[0],C=(T[1]-S)/(_-k),P=C*(1-k),D=0;D<_;D++){var O=S+C*D;M[w?_-1-D:D]=[O,O+P]}return M}function y(v,g,b,x,_){var w,k=new Array(b);function T(M,S){g.indexOf(S)!==-1&&x[S]===void 0?(k[M]=S,x[S]=M):k[M]=""}if(Array.isArray(v))for(w=0;w1){T||M||S||$("pattern")==="independent"&&(T=!0),P._hasSubplotGrid=T;var R,F,A=$("roworder")==="top to bottom",z=T?.2:.1,B=T?.3:.1;C&&g._splomGridDflt&&(R=g._splomGridDflt.xside,F=g._splomGridDflt.yside),P._domains={x:m("x",$,z,R,O),y:m("y",$,B,F,D,A)}}else delete g.grid}function $(j,N){return l.coerce(b,P,h,j,N)}},contentDefaults:function(v,g){var b=g.grid;if(b&&b._domains){var x,_,w,k,T,M,S,C=v.grid||{},P=g._subplots,D=b._hasSubplotGrid,O=b.rows,R=b.columns,F=b.pattern==="independent",A=b._axisMap={};if(D){var z=C.subplots||[];M=b.subplots=new Array(O);var B=1;for(x=0;x(y==="legend"?1:0));if(B===!1&&(g[y]=void 0),(B!==!1||x.uirevision)&&(w("uirevision",g.uirevision),B!==!1)){w("borderwidth");var $,j,N,E=w("orientation")==="h",W=w("yref")==="paper",G=w("xref")==="paper",L="left";if(E?($=0,l.getComponentMethod("rangeslider","isVisible")(v.xaxis)?W?(j=1.1,N="bottom"):(j=1,N="top"):W?(j=-.1,N="top"):(j=0,N="bottom")):(j=1,N="auto",G?$=1.02:($=1,L="right")),f.coerce(x,_,{x:{valType:"number",editType:"legend",min:G?-2:0,max:G?3:1,dflt:$}},"x"),f.coerce(x,_,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:j}},"y"),w("traceorder",O),p.isGrouped(g[y])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",L),w("yanchor",N),w("valign"),f.noneOrAll(x,_,["x","y"]),w("title.text")){w("title.side",E?"left":"top");var q=f.extendFlat({},k,{size:f.bigFont(k.size)});f.coerceFont(w,"title.font",q)}}}}o.exports=function(y,v,g){var b,x=g.slice(),_=v.shapes;if(_)for(b=0;b<_.length;b++){var w=_[b];if(w.showlegend){var k={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};x.push(k)}}var T=["legend"];for(b=0;b1)}var X=q.hiddenlabels||[];if(!(V||q.showlegend&&te.length))return G.selectAll("."+H).remove(),q._topdefs.select("#"+W).remove(),s.autoMargin(N,H);var re=f.ensureSingle(G,"g",H,function(ce){V||ce.attr("pointer-events","all")}),ie=f.ensureSingleById(q._topdefs,"clipPath",W,function(ce){ce.append("rect")}),le=f.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});le.call(m.stroke,L.bordercolor).call(m.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,pe=f.ensureSingle(re,"g","scrollbox"),Te=L.title;L._titleWidth=0,L._titleHeight=0,Te.text?((se=f.ensureSingle(pe,"text",H+"titletext")).attr("text-anchor","start").call(p.font,Te.font).text(Te.text),z(se,pe,N,L,S)):pe.selectAll("."+H+"titletext").remove();var Se=f.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(g.scrollBarEnterAttrs).call(m.fill,g.scrollBarColor)}),Oe=pe.selectAll("g.groups").data(te);Oe.enter().append("g").attr("class","groups"),Oe.exit().remove();var Me=Oe.selectAll("g.traces").data(f.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var ye=ce[0].trace;return u.traceIs(ye,"pie-like")?X.indexOf(ce[0].label)!==-1?.5:1:ye.visible==="legendonly"?.5:1}).each(function(){l.select(this).call(R,N,L)}).call(T,N,L).each(function(){V||l.select(this).call(A,N,H)}),f.syncOrAsync([s.previousPromises,function(){return function(ce,ye,J,ne){var de=ce._fullLayout,xe=j(ne);ne||(ne=de[xe]);var ue=de._size,ge=M.isVertical(ne),be=M.isGrouped(ne),we=ne.entrywidthmode==="fraction",ke=ne.borderwidth,Ae=2*ke,Ee=g.itemGap,De=ne.itemwidth+2*Ee,Re=2*(ke+Ee),Ie=$(ne),Be=ne.y<0||ne.y===0&&Ie==="top",Ue=ne.y>1||ne.y===1&&Ie==="bottom",qe=ne.tracegroupgap,Ye={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var at=0;ne._width=0,ne._height=0;var lt=function(Ge){var Ke=0,nt=0,st=Ge.title.side;return st&&(st.indexOf("left")!==-1&&(Ke=Ge._titleWidth),st.indexOf("top")!==-1&&(nt=Ge._titleHeight)),[Ke,nt]}(ne);if(ge)J.each(function(Ge){var Ke=Ge[0].height;p.setTranslate(this,ke+lt[0],ke+lt[1]+ne._height+Ke/2+Ee),ne._height+=Ke,ne._width=Math.max(ne._width,Ge[0].width)}),at=De+ne._width,ne._width+=Ee+De+Ae,ne._height+=Re,be&&(ye.each(function(Ge,Ke){p.setTranslate(this,0,Ke*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var ct=B(ne),bt=ne.x<0||ne.x===0&&ct==="right",ze=ne.x>1||ne.x===1&&ct==="left",Ne=Ue||Be,Qe=de.width/2;ne._maxWidth=Math.max(bt?Ne&&ct==="left"?ue.l+ue.w:Qe:ze?Ne&&ct==="right"?ue.r+ue.w:Qe:ue.w,2*De);var it=0,kt=0;J.each(function(Ge){var Ke=D(Ge,ne,De);it=Math.max(it,Ke),kt+=Ke}),at=null;var Je=0;if(be){var ut=0,pt=0,It=0;ye.each(function(){var Ge=0,Ke=0;l.select(this).selectAll("g.traces").each(function(st){var mt=D(st,ne,De),tt=st[0].height;p.setTranslate(this,lt[0],lt[1]+ke+Ee+tt/2+Ke),Ke+=tt,Ge=Math.max(Ge,mt),Ye[st[0].trace.legendgroup]=Ge});var nt=Ge+Ee;pt>0&&nt+ke+pt>ne._maxWidth?(Je=Math.max(Je,pt),pt=0,It+=ut+qe,ut=Ke):ut=Math.max(ut,Ke),p.setTranslate(this,pt,It),pt+=nt}),ne._width=Math.max(Je,pt)+ke,ne._height=It+ut+Re}else{var Mt=J.size(),zt=kt+Ae+(Mt-1)*Ee=ne._maxWidth&&(Je=Math.max(Je,Ve),ve=0,_e+=wt,ne._height+=wt,wt=0),p.setTranslate(this,lt[0]+ke+ve,lt[1]+ke+_e+Ke/2+Ee),Ve=ve+nt+Ee,ve+=st,wt=Math.max(wt,Ke)}),zt?(ne._width=ve+Ae,ne._height=wt+Re):(ne._width=Math.max(Je,Ve)+Ae,ne._height+=wt+Re)}}ne._width=Math.ceil(Math.max(ne._width+lt[0],ne._titleWidth+2*(ke+g.titlePad))),ne._height=Math.ceil(Math.max(ne._height+lt[1],ne._titleHeight+2*(ke+g.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var We=ce._context.edits,Ze=We.legendText||We.legendPosition;J.each(function(Ge){var Ke=l.select(this).select("."+xe+"toggle"),nt=Ge[0].height,st=Ge[0].trace.legendgroup,mt=D(Ge,ne,De);be&&st!==""&&(mt=Ye[st]);var tt=Ze?De:at||mt;ge||we||(tt+=Ee/2),p.setRect(Ke,0,-nt/2,tt,nt)})}(N,Oe,Me,L)},function(){var ce,ye,J,ne,de=q._size,xe=L.borderwidth,ue=L.xref==="paper",ge=L.yref==="paper";if(Te.text&&function(Ne,Qe,it){if(Qe.title.side==="top center"||Qe.title.side==="top right"){var kt=Qe.title.font.size*x,Je=0,ut=Ne.node(),pt=p.bBox(ut).width;Qe.title.side==="top center"?Je=.5*(Qe._width-2*it-2*g.titlePad-pt):Qe.title.side==="top right"&&(Je=Qe._width-2*it-2*g.titlePad-pt),y.positionText(Ne,it+g.titlePad+Je,it+kt)}}(se,L,xe),!V){var be,we;be=ue?de.l+de.w*L.x-_[B(L)]*L._width:q.width*L.x-_[B(L)]*L._width,we=ge?de.t+de.h*(1-L.y)-_[$(L)]*L._effHeight:q.height*(1-L.y)-_[$(L)]*L._effHeight;var ke=function(Ne,Qe,it,kt){var Je=Ne._fullLayout,ut=Je[Qe],pt=B(ut),It=$(ut),Mt=ut.xref==="paper",zt=ut.yref==="paper";Ne._fullLayout._reservedMargin[Qe]={};var wt=ut.y<.5?"b":"t",ve=ut.x<.5?"l":"r",_e={r:Je.width-it,l:it+ut._width,b:Je.height-kt,t:kt+ut._effHeight};if(Mt&&zt)return s.autoMargin(Ne,Qe,{x:ut.x,y:ut.y,l:ut._width*_[pt],r:ut._width*w[pt],b:ut._effHeight*w[It],t:ut._effHeight*_[It]});Mt?Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]:zt||ut.orientation==="v"?Ne._fullLayout._reservedMargin[Qe][ve]=_e[ve]:Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]}(N,H,be,we);if(ke)return;if(q.margin.autoexpand){var Ae=be,Ee=we;be=ue?f.constrain(be,0,q.width-L._width):Ae,we=ge?f.constrain(we,0,q.height-L._effHeight):Ee,be!==Ae&&f.log("Constrain "+H+".x to make legend fit inside graph"),we!==Ee&&f.log("Constrain "+H+".y to make legend fit inside graph")}p.setTranslate(re,be,we)}if(Se.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var De=L._effHeight;V&&(De=L._height),le.attr({width:L._width-xe,height:De-xe,x:xe/2,y:xe/2}),p.setTranslate(pe,0,0),ie.select("rect").attr({width:L._width-2*xe,height:De-2*xe,x:xe,y:xe}),p.setClipUrl(pe,W,N),p.setRect(Se,0,0,0,0),delete L._scrollY}else{var Re,Ie,Be,Ue=Math.max(g.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*g.scrollBarMargin,Ye=L._height-L._effHeight,at=qe/Ye,lt=Math.min(L._scrollY||0,Ye);le.attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-xe,x:xe/2,y:xe/2}),ie.select("rect").attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-2*xe,x:xe,y:xe+lt}),p.setClipUrl(pe,W,N),ze(lt,Ue,at),re.on("wheel",function(){ze(lt=f.constrain(L._scrollY+l.event.deltaY/qe*Ye,0,Ye),Ue,at),lt!==0&<!==Ye&&l.event.preventDefault()});var ct=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Re=Ne.type==="touchstart"?Ne.changedTouches[0].clientY:Ne.clientY,Be=lt}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ie=Ne.type==="touchmove"?Ne.changedTouches[0].clientY:Ne.clientY,lt=function(Qe,it,kt){var Je=(kt-it)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});Se.call(ct);var bt=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Ne.type==="touchstart"&&(Re=Ne.changedTouches[0].clientY,Be=lt)}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.type==="touchmove"&&(Ie=Ne.changedTouches[0].clientY,lt=function(Qe,it,kt){var Je=(it-kt)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});pe.call(bt)}function ze(Ne,Qe,it){L._scrollY=N._fullLayout[H]._scrollY=Ne,p.setTranslate(pe,0,-Ne),p.setRect(Se,L._width,g.scrollBarMargin+Ne*it,g.scrollBarWidth,Qe),ie.select("rect").attr("y",xe+Ne)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),h.init({element:re.node(),gd:N,prepFn:function(){var Ne=p.getTranslate(re);J=Ne.x,ne=Ne.y},moveFn:function(Ne,Qe){var it=J+Ne,kt=ne+Qe;p.setTranslate(re,it,kt),ce=h.align(it,L._width,de.l,de.l+de.w,L.xanchor),ye=h.align(kt+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&ye!==void 0){var Ne={};Ne[H+".x"]=ce,Ne[H+".y"]=ye,u.call("_guiRelayout",N,Ne)}},clickFn:function(Ne,Qe){var it=G.selectAll("g.traces").filter(function(){var kt=this.getBoundingClientRect();return Qe.clientX>=kt.left&&Qe.clientX<=kt.right&&Qe.clientY>=kt.top&&Qe.clientY<=kt.bottom});it.size()>0&&O(N,re,it,Ne,Qe)}}))}],N)}}function D(N,E,W){var G=N[0],L=G.width,q=E.entrywidthmode,H=G.trace.legendwidth||E.entrywidth;return q==="fraction"?E._maxWidth*H:W+(H||L)}function O(N,E,W,G,L){var q=W.data()[0][0].trace,H={event:L,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};q._group&&(H.group=q._group),u.traceIs(q,"pie-like")&&(H.label=W.datum()[0].label);var V=d.triggerHandler(N,"plotly_legendclick",H);if(G===1){if(V===!1)return;E._clickTimeout=setTimeout(function(){N._fullLayout&&v(W,N,G)},N._context.doubleClickDelay)}else G===2&&(E._clickTimeout&&clearTimeout(E._clickTimeout),N._legendMouseDownTime=0,d.triggerHandler(N,"plotly_legenddoubleclick",H)!==!1&&V!==!1&&v(W,N,G))}function R(N,E,W){var G,L,q=j(W),H=N.data()[0][0],V=H.trace,te=u.traceIs(V,"pie-like"),ee=!W._inHover&&E._context.edits.legendText&&!te,U=W._maxNameLength;H.groupTitle?(G=H.groupTitle.text,L=H.groupTitle.font):(L=W.font,W.entries?G=H.text:(G=te?H.label:V.name,V._meta&&(G=f.templateString(G,V._meta))));var Q=f.ensureSingle(N,"text",q+"text");Q.attr("text-anchor","start").call(p.font,L).text(ee?F(G,U):G);var Y=W.itemwidth+2*g.itemGap;y.positionText(Q,Y,0),ee?Q.call(y.makeEditable,{gd:E,text:G}).call(z,N,E,W).on("edit",function(Z){this.text(F(Z,U)).call(z,N,E,W);var X=H.trace._fullInput||{},re={};if(u.hasTransform(X,"groupby")){var ie=u.getTransformIndices(X,"groupby"),le=ie[ie.length-1],se=f.keyedContainer(X,"transforms["+le+"].styles","target","value.name");se.set(H.trace._group,Z),re=se.constructUpdate()}else re.name=Z;return X._isShape?u.call("_guiRelayout",E,"shapes["+V.index+"].name",re.name):u.call("_guiRestyle",E,re,V.index)}):z(Q,N,E,W)}function F(N,E){var W=Math.max(4,E);if(N&&N.trim().length>=W/2)return N;for(var G=W-(N=N||"").length;G>0;G--)N+=" ";return N}function A(N,E,W){var G,L=E._context.doubleClickDelay,q=1,H=f.ensureSingle(N,"rect",W+"toggle",function(V){E._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(m.fill,"rgba(0,0,0,0)")});E._context.staticPlot||(H.on("mousedown",function(){(G=new Date().getTime())-E._legendMouseDownTimeL&&(q=Math.max(q-1,1)),O(E,V,N,q,l.event)}}))}function z(N,E,W,G,L){G._inHover&&N.attr("data-notex",!0),y.convertToTspans(N,W,function(){(function(q,H,V,te){var ee=q.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var U=q.select("g[class*=math-group]"),Q=U.node(),Y=j(V);V||(V=H._fullLayout[Y]);var Z,X,re=V.borderwidth,ie=(te===S?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*x;if(Q){var le=p.bBox(Q);Z=le.height,X=le.width,te===S?p.setTranslate(U,re,re+.75*Z):p.setTranslate(U,0,.25*Z)}else{var se="."+Y+(te===S?"title":"")+"text",pe=q.select(se),Te=y.lineCount(pe),Se=pe.node();if(Z=ie*Te,X=Se?p.bBox(Se).width:0,te===S)V.title.side==="left"&&(X+=2*g.itemGap),y.positionText(pe,re+g.titlePad,re+ie);else{var Oe=2*g.itemGap+V.itemwidth;ee.groupTitle&&(Oe=g.itemGap,X-=V.itemwidth),y.positionText(pe,Oe,-ie*((Te-1)/2-.3))}}te===S?(V._titleWidth=X,V._titleHeight=Z):(ee.lineHeight=ie,ee.height=Math.max(Z,16)+3,ee.width=X)}else q.remove()})(E,W,G,L)})}function B(N){return f.isRightAnchor(N)?"right":f.isCenterAnchor(N)?"center":"left"}function $(N){return f.isBottomAnchor(N)?"bottom":f.isMiddleAnchor(N)?"middle":"top"}function j(N){return N._id||"legend"}o.exports=function(N,E){if(E)P(N,E);else{var W=N._fullLayout,G=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var H=l.select(this),V=H.attr("class").split(" ")[0];V.match(C)&&G.indexOf(V)===-1&&H.remove()});for(var L=0;LB&&(z=B)}F[h][0]._groupMinRank=z,F[h][0]._preGroupSort=h}var $=function(G,L){return G.trace.legendrank-L.trace.legendrank||G._preSort-L._preSort};for(F.forEach(function(G,L){G[0]._preGroupSort=L}),F.sort(function(G,L){return G[0]._groupMinRank-L[0]._groupMinRank||G[0]._preGroupSort-L[0]._preGroupSort}),h=0;hT?T:w}o.exports=function(w,k,T){var M=k._fullLayout;T||(T=M.legend);var S=T.itemsizing==="constant",C=T.itemwidth,P=(C+2*g.itemGap)/2,D=u(P,0),O=function(A,z,B,$){var j;if(A+1)j=A;else{if(!(z&&z.width>0))return 0;j=z.width}return S?$:Math.min(j,B)};function R(A,z,B){var $=A[0].trace,j=$.marker||{},N=j.line||{},E=B?$.visible&&$.type===B:f.traceIs($,"bar"),W=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(E?[A]:[]);W.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),W.exit().remove(),W.each(function(G){var L=l.select(this),q=G[0],H=O(q.mlw,j.line,5,2);L.style("stroke-width",H+"px");var V=q.mcc;if(!T._inHover&&"mc"in q){var te=p(j),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=d.tryColorscale(j,"")(ee)}var U=V||q.mc||j.color,Q=j.pattern,Y=Q&&d.getPatternAttr(Q.shape,0,"");if(Y){var Z=d.getPatternAttr(Q.bgcolor,0,null),X=d.getPatternAttr(Q.fgcolor,0,null),re=Q.fgopacity,ie=_(Q.size,8,10),le=_(Q.solidity,.5,1),se="legend-"+$.uid;L.call(d.pattern,"legend",k,se,Y,ie,le,V,Q.fillmode,Z,X,re)}else L.call(h.fill,U);H&&h.stroke(L,q.mlc||N.color)})}function F(A,z,B){var $=A[0],j=$.trace,N=B?j.visible&&j.type===B:f.traceIs(j,B),E=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(N?[A]:[]);if(E.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),E.exit().remove(),E.size()){var W=j.marker||{},G=O(v(W.line.width,$.pts),W.line,5,2),L="pieLike",q=s.minExtend(j,{marker:{line:{width:G}}},L),H=s.minExtend($,{trace:q},L);y(E,H,q,k)}}w.each(function(A){var z=l.select(this),B=s.ensureSingle(z,"g","layers");B.style("opacity",A[0].trace.opacity);var $=T.valign,j=A[0].lineHeight,N=A[0].height;if($!=="middle"&&j&&N){var E={top:1,bottom:-1}[$]*(.5*(j-N+3));B.attr("transform",u(0,E))}else B.attr("transform",null);B.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),B.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var W=B.selectAll("g.legendsymbols").data([A]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var z,B=A[0].trace,$=[];if(B.visible)switch(B.type){case"histogram2d":case"heatmap":$=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":$=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":$=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":$=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":$=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":$=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1}var j=l.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data($);j.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(N,E){var W,G=l.select(this),L=p(B),q=L.colorscale,H=L.reversescale;if(q){if(!z){var V=q.length;W=E===0?q[H?V-1:0][1]:E===1?q[H?0:V-1][1]:q[Math.floor((V-1)/2)][1]}}else{var te=B.vertexcolor||B.facecolor||B.color;W=s.isArrayOrTypedArray(te)?te[E]||te[0]:te}G.attr("d",N[0]),W?G.call(h.fill,W):G.call(function(ee){if(ee.size()){var U="legendfill-"+B.uid;d.gradient(ee,k,U,b(H,z==="radial"),q,"fill")}})})}).each(function(A){var z=A[0].trace,B=z.type==="waterfall";if(A[0]._distinct&&B){var $=A[0].trace[A[0].dir].marker;return A[0].mc=$.color,A[0].mlw=$.line.width,A[0].mlc=$.line.color,R(A,this,"waterfall")}var j=[];z.visible&&B&&(j=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=l.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(j);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(E){var W=l.select(this),G=z[E[0]].marker,L=O(void 0,G.line,5,2);W.attr("d",E[1]).style("stroke-width",L+"px").call(h.fill,G.color),L&&W.call(h.stroke,G.line.color)})}).each(function(A){R(A,this,"funnel")}).each(function(A){R(A,this)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(z.visible&&f.traceIs(z,"box-violin")?[A]:[]);B.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),B.exit().remove(),B.each(function(){var $=l.select(this);if(z.boxpoints!=="all"&&z.points!=="all"||h.opacity(z.fillcolor)!==0||h.opacity((z.line||{}).color)!==0){var j=O(void 0,z.line,5,2);$.style("stroke-width",j+"px").call(h.fill,z.fillcolor),j&&h.stroke($,z.line.color)}else{var N=s.minExtend(z,{marker:{size:S?12:s.constrain(z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});B.call(d.pointStyle,N,k)}})}).each(function(A){F(A,this,"funnelarea")}).each(function(A){F(A,this,"pie")}).each(function(A){var z,B,$=x(A),j=$.showFill,N=$.showLine,E=$.showGradientLine,W=$.showGradientFill,G=$.anyFill,L=$.anyLine,q=A[0],H=q.trace,V=p(H),te=V.colorscale,ee=V.reversescale,U=m.hasMarkers(H)||!G?"M5,0":L?"M5,-2":"M5,-3",Q=l.select(this),Y=Q.select(".legendfill").selectAll("path").data(j||W?[A]:[]);if(Y.enter().append("path").classed("js-fill",!0),Y.exit().remove(),Y.attr("d",U+"h"+C+"v6h-"+C+"z").call(function(re){if(re.size())if(j)d.fillGroupStyle(re,k);else{var ie="legendfill-"+H.uid;d.gradient(re,k,ie,b(ee),te,"fill")}}),N||E){var Z=O(void 0,H.line,10,5);B=s.minExtend(H,{line:{width:Z}}),z=[s.minExtend(q,{trace:B})]}var X=Q.select(".legendlines").selectAll("path").data(N||E?[z]:[]);X.enter().append("path").classed("js-line",!0),X.exit().remove(),X.attr("d",U+(E?"l"+C+",0.0001":"h"+C)).call(N?d.lineGroupStyle:function(re){if(re.size()){var ie="legendline-"+H.uid;d.lineGroupStyle(re),d.gradient(re,k,ie,b(ee),te,"stroke")}})}).each(function(A){var z,B,$=x(A),j=$.anyFill,N=$.anyLine,E=$.showLine,W=$.showMarker,G=A[0],L=G.trace,q=!W&&!N&&!j&&m.hasText(L);function H(X,re,ie,le){var se=s.nestedProperty(L,X).get(),pe=s.isArrayOrTypedArray(se)&&re?re(se):se;if(S&&pe&&le!==void 0&&(pe=le),ie){if(peie[1])return ie[1]}return pe}function V(X){return G._distinct&&G.index&&X[G.index]?X[G.index]:X[0]}if(W||q||E){var te={},ee={};if(W){te.mc=H("marker.color",V),te.mx=H("marker.symbol",V),te.mo=H("marker.opacity",s.mean,[.2,1]),te.mlc=H("marker.line.color",V),te.mlw=H("marker.line.width",s.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var U=H("marker.size",s.mean,[2,16],12);te.ms=U,ee.marker.size=U}E&&(ee.line={width:H("line.width",V,[0,10],5)}),q&&(te.tx="Aa",te.tp=H("textposition",V),te.ts=10,te.tc=H("textfont.color",V),te.tf=H("textfont.family",V)),z=[s.minExtend(G,te)],(B=s.minExtend(L,ee)).selectedpoints=null,B.texttemplate=null}var Q=l.select(this).select("g.legendpoints"),Y=Q.selectAll("path.scatterpts").data(W?z:[]);Y.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),Y.exit().remove(),Y.call(d.pointStyle,B,k),W&&(z[0].mrc=3);var Z=Q.selectAll("g.pointtext").data(q?z:[]);Z.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),Z.exit().remove(),Z.selectAll("text").call(d.textPointStyle,B,k)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(z.visible&&z.type==="candlestick"?[A,A]:[]);B.enter().append("path").classed("legendcandle",!0).attr("d",function($,j){return j?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("stroke-width",W+"px").call(h.fill,E.fillcolor),W&&h.stroke(N,E.line.color)})}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(z.visible&&z.type==="ohlc"?[A,A]:[]);B.enter().append("path").classed("legendohlc",!0).attr("d",function($,j){return j?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("fill","none").call(d.dashLine,E.line.dash,W),W&&h.stroke(N,E.line.color)})})}},42068:function(o,a,n){n(93348),o.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(o,a,n){var l=n(73972),f=n(74875),s=n(41675),u=n(24255),d=n(34031).eraseActiveShape,h=n(71828),p=h._,m=o.exports={};function y(M,S){var C,P,D=S.currentTarget,O=D.getAttribute("data-attr"),R=D.getAttribute("data-val")||!0,F=M._fullLayout,A={},z=s.list(M,null,!0),B=F._cartesianSpikesEnabled;if(O==="zoom"){var $,j=R==="in"?.5:2,N=(1+j)/2,E=(1-j)/2;for(P=0;P1?(U=["toggleHover"],Q=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],U=["hoverClosestGeo"],Q=["resetGeo"]):F?(U=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],U=["toggleHover"],Q=["resetViewMapbox"]):$?U=["hoverClosestGl2d"]:z?U=["hoverClosestPie"]:G?(U=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):U=["toggleHover"],R&&(U=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var pe=0;pe0)){var k=function(M,S,C){for(var P=C.filter(function(F){return S[F].anchor===M._id}),D=0,O=0;O=Se.max)pe=re[Te+1];else if(se=Se.pmax)pe=re[Te+1];else if(seTe._length||ge+Ie<0)return;Ee=ue+Ie,De=ge+Ie;break;case Me:if(Re="col-resize",ue+Ie>Te._length)return;Ee=ue+Ie,De=ge;break;case ce:if(Re="col-resize",ge+Ie<0)return;Ee=ue,De=ge+Ie;break;default:Re="ew-resize",Ee=xe,De=xe+Ie}if(De=0;$--){var j=S.append("path").attr(P).style("opacity",$?.1:D).call(u.stroke,R).call(u.fill,O).call(d.dashLine,$?"solid":A,$?4+F:F);if(b(j,_,T),z){var N=h(_.layout,"selections",T);j.style({cursor:"move"});var E={element:j.node(),plotinfo:M,gd:_,editHelpers:N,isActiveSelection:!0},W=l(C,_);f(W,j,E)}else j.style("pointer-events",$?"all":"none");B[$]=j}var G=B[0];B[1].node().addEventListener("click",function(){return function(L,q){if(v(L)){var H=+q.node().getAttribute("data-index");if(H>=0){if(H===L._fullLayout._activeSelectionIndex)return void x(L);L._fullLayout._activeSelectionIndex=H,L._fullLayout._deactivateSelection=x,y(L)}}}(_,G)})}(_._fullLayout._selectionLayer)}function b(_,w,k){var T=k.xref+k.yref;d.setClipUrl(_,"clip"+w._fullLayout._uid+T,w)}function x(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(s(_),delete _._fullLayout._activeSelectionIndex,y(_))}o.exports={draw:y,drawOne:g,activateLastSelection:function(_){if(v(_)){var w=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=w,_._fullLayout._deactivateSelection=x,y(_)}}}},53777:function(o,a,n){var l=n(79952).P,f=n(1426).extendFlat;o.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:f({},l,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(o){o.exports=function(a,n,l){l("newselection.mode"),l("newselection.line.width")&&(l("newselection.line.color"),l("newselection.line.dash")),l("activeselection.fillcolor"),l("activeselection.opacity")}},35855:function(o,a,n){var l=n(64505).selectMode,f=n(51873).clearOutline,s=n(60165),u=s.readPaths,d=s.writePaths,h=s.fixDatesForPaths;o.exports=function(p,m){if(p.length){var y=p[0][0];if(y){var v=y.getAttribute("d"),g=m.gd,b=g._fullLayout.newselection,x=m.plotinfo,_=x.xaxis,w=x.yaxis,k=m.isActiveSelection,T=m.dragmode,M=(g.layout||{}).selections||[];if(!l(T)&&k!==void 0){var S=g._fullLayout._activeSelectionIndex;if(S-1,kt=[];if(function(Mt){return Mt&&Array.isArray(Mt)&&Mt[0].hoverOnBox!==!0}(Qe)){Z(ke,Ae,Ie);var Je=function(Mt,zt){var wt,ve,_e=Mt[0],Ve=-1,We=[];for(ve=0;ve0?function(Mt,zt){var wt,ve,_e,Ve=[];for(_e=0;_e0&&Ve.push(wt);if(Ve.length===1&&Ve[0]===zt.searchInfo&&(ve=zt.searchInfo.cd[0].trace).selectedpoints.length===zt.pointNumbers.length){for(_e=0;_e1||(ve+=zt.selectedpoints.length)>1))return!1;return ve===1}(Ue)&&(ct=se(Je))){for(Be&&Be.remove(),Ne=0;Ne=0})(Re)&&Re._fullLayout._deactivateShape(Re),function(lt){return lt._fullLayout._activeSelectionIndex>=0}(Re)&&Re._fullLayout._deactivateSelection(Re);var Ie=Re._fullLayout._zoomlayer,Be=g(Ee),Ue=x(Ee);if(Be||Ue){var qe,Ye,at=Ie.selectAll(".select-outline-"+De.id);at&&Re._fullLayout._outlining&&(Be&&(qe=P(at,ke)),qe&&s.call("_guiRelayout",Re,{shapes:qe}),Ue&&!te(ke)&&(Ye=D(at,ke)),Ye&&(Re._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",Re,{selections:Ye}).then(function(){Ae&&O(Re)})),Re._fullLayout._outlining=!1)}De.selection={},De.selection.selectionDefs=ke.selectionDefs=[],De.selection.mergedPolygons=ke.mergedPolygons=[]}function re(ke){return ke._id}function ie(ke,Ae,Ee,De){if(!ke.calcdata)return[];var Re,Ie,Be,Ue=[],qe=Ae.map(re),Ye=Ee.map(re);for(Be=0;Be0?De[0]:Ee;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf(Re)>-1}function pe(ke,Ae,Ee){var De,Re;for(De=0;De-1&&Ae;if(!Ie&&Ae){var Ot=ne(ke,!0);if(Ot.length){var At=Ot[0].xref,Lt=Ot[0].yref;if(At&&Lt){var Rt=ue(Ot);ge([B(ke,At,"x"),B(ke,Lt,"y")])(jt,Rt)}}ke._fullLayout._noEmitSelectedAtStart?ke._fullLayout._noEmitSelectedAtStart=!1:Tt&&be(ke,jt),ct._reselect=!1}if(!Ie&&ct._deselect){var $t=ct._deselect;(function(Yt,Xt,Bt){for(var Wt=0;Wt=0)bt._fullLayout._deactivateShape(bt);else if(!Ye){var Rt=ze.clickmode;z.done(Et).then(function(){if(z.clear(Et),At===2){for(Nt.remove(),_e=0;_e-1&&ee(Lt,bt,De.xaxes,De.yaxes,De.subplot,De,Nt),Rt==="event"&&be(bt,void 0);h.click(bt,Lt,kt.id)}).catch(R.error)}},De.doneFn=function(){yt.remove(),z.done(Et).then(function(){z.clear(Et),!Ne&&ve&&De.selectionDefs&&(ve.subtract=St,De.selectionDefs.push(ve),De.mergedPolygons.length=0,[].push.apply(De.mergedPolygons,wt)),(Ne||Ye)&&X(De,Ne),De.doneFnCompleted&&De.doneFnCompleted(jt),at&&be(bt,We)}).catch(R.error)}},clearOutline:T,clearSelectionsCache:X,selectOnClick:ee}},89827:function(o,a,n){var l=n(50215),f=n(41940),s=n(82196).line,u=n(79952).P,d=n(1426).extendFlat,h=n(44467).templatedArray,p=(n(24695),n(9012)),m=n(5386).R,y=n(37281);o.exports=h("shape",{visible:d({},p.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:d({},p.legend,{editType:"calc+arraydraw"}),legendgroup:d({},p.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:d({},p.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:f({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:d({},p.legendrank,{editType:"calc+arraydraw"}),legendwidth:d({},p.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:d({},l.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:d({},l.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:d({},s.color,{editType:"arraydraw"}),width:d({},s.width,{editType:"calc+arraydraw"}),dash:d({},u,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:m({},{keys:Object.keys(y)}),font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(o,a,n){var l=n(71828),f=n(89298),s=n(21459),u=n(30477);function d(y){return p(y.line.width,y.xsizemode,y.x0,y.x1,y.path,!1)}function h(y){return p(y.line.width,y.ysizemode,y.y0,y.y1,y.path,!0)}function p(y,v,g,b,x,_){var w=y/2,k=_;if(v==="pixel"){var T=x?u.extractPathCoords(x,_?s.paramIsY:s.paramIsX):[g,b],M=l.aggNums(Math.max,null,T),S=l.aggNums(Math.min,null,T),C=S<0?Math.abs(S)+w:w,P=M>0?M+w:w;return{ppad:w,ppadplus:k?C:P,ppadminus:k?P:C}}return{ppad:w}}function m(y,v,g,b,x){var _=y.type==="category"||y.type==="multicategory"?y.r2c:y.d2c;if(v!==void 0)return[_(v),_(g)];if(b){var w,k,T,M,S=1/0,C=-1/0,P=b.match(s.segmentRE);for(y.type==="date"&&(_=u.decodeDate(_)),w=0;wC&&(C=M)));return C>=S?[S,C]:void 0}}o.exports=function(y){var v=y._fullLayout,g=l.filterVisible(v.shapes);if(g.length&&y._fullData.length)for(var b=0;b=re?ie-se:se-ie,-180/Math.PI*Math.atan2(pe,Te)}(C,D,P,O):0),A.call(function(re){return re.call(u.font,F).attr({}),s.convertToTspans(re,v),re});var Q=function(re,ie,le,se,pe,Te,Se){var Oe,Me,ce,ye,J=pe.label.textposition,ne=pe.label.textangle,de=pe.label.padding,xe=pe.type,ue=Math.PI/180*Te,ge=Math.sin(ue),be=Math.cos(ue),we=pe.label.xanchor,ke=pe.label.yanchor;if(xe==="line"){J==="start"?(Oe=re,Me=ie):J==="end"?(Oe=le,Me=se):(Oe=(re+le)/2,Me=(ie+se)/2),we==="auto"&&(we=J==="start"?ne==="auto"?le>re?"left":lere?"right":lere?"right":lere?"left":le1&&(Oe.length!==2||Oe[1][0]!=="Z")&&(G===0&&(Oe[0][0]="M"),R[W]=Oe,$(),j())}}()}}function re(pe,Te){(function(Se,Oe){if(R.length)for(var Me=0;MeMe?(J=Se,ue="y0",ne=Me,ge="y1"):(J=Me,ue="y1",ne=Se,ge="y0"),ut(wt),Mt(se,ie),function(ve,_e,Ve){var We=_e.xref,Ze=_e.yref,Ge=u.getFromId(Ve,We),Ke=u.getFromId(Ve,Ze),nt="";We==="paper"||Ge.autorange||(nt+=We),Ze==="paper"||Ke.autorange||(nt+=Ze),v.setClipUrl(ve,nt?"clip"+Ve._fullLayout._uid+nt:null,Ve)}(re,ie,X),Je.moveFn=Ae==="move"?pt:It,Je.altKey=wt.altKey)},doneFn:function(){M(X)||(x(re),zt(se),P(re,X,ie),f.call("_guiRelayout",X,pe.getUpdateObj()))},clickFn:function(){M(X)||zt(se)}};function ut(wt){if(M(X))Ae=null;else if(Be)Ae=wt.target.tagName==="path"?"move":wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ve=Je.element.getBoundingClientRect(),_e=ve.right-ve.left,Ve=ve.bottom-ve.top,We=wt.clientX-ve.left,Ze=wt.clientY-ve.top,Ge=!Ue&&_e>Ee&&Ve>De&&!wt.shiftKey?b.getCursor(We/_e,1-Ze/Ve):"move";x(re,Ge),Ae=Ge.split("-")[0]}}function pt(wt,ve){if(ie.type==="path"){var _e=function(Ze){return Ze},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(Ze){return Qe(ze(Ze)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(Ze){return it(Ne(Ze)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(qe("x0",ie.x0=Qe(Te+wt)),qe("x1",ie.x1=Qe(Oe+wt))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(qe("y0",ie.y0=it(Se+ve)),qe("y1",ie.y1=it(Me+ve)));re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function It(wt,ve){if(Ue){var _e=function(ht){return ht},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(ht){return Qe(ze(ht)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(ht){return it(Ne(ht)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else if(Be){if(Ae==="resize-over-start-point"){var Ze=Te+wt,Ge=Ie?Se-ve:Se+ve;qe("x0",ie.x0=Re?Ze:Qe(Ze)),qe("y0",ie.y0=Ie?Ge:it(Ge))}else if(Ae==="resize-over-end-point"){var Ke=Oe+wt,nt=Ie?Me-ve:Me+ve;qe("x1",ie.x1=Re?Ke:Qe(Ke)),qe("y1",ie.y1=Ie?nt:it(nt))}}else{var st=function(ht){return Ae.indexOf(ht)!==-1},mt=st("n"),tt=st("s"),Ft=st("w"),Vt=st("e"),St=mt?J+ve:J,Nt=tt?ne+ve:ne,Dt=Ft?de+wt:de,gt=Vt?xe+wt:xe;Ie&&(mt&&(St=J-ve),tt&&(Nt=ne-ve)),(!Ie&&Nt-St>De||Ie&&St-Nt>De)&&(qe(ue,ie[ue]=Ie?St:it(St)),qe(ge,ie[ge]=Ie?Nt:it(Nt))),gt-Dt>Ee&&(qe(be,ie[be]=Re?Dt:Qe(Dt)),qe(we,ie[we]=Re?gt:Qe(gt)))}re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function Mt(wt,ve){(Re||Ie)&&function(){var _e=ve.type!=="path",Ve=wt.selectAll(".visual-cue").data([0]);Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var We=ze(Re?ve.xanchor:s.midRange(_e?[ve.x0,ve.x1]:w.extractPathCoords(ve.path,_.paramIsX))),Ze=Ne(Ie?ve.yanchor:s.midRange(_e?[ve.y0,ve.y1]:w.extractPathCoords(ve.path,_.paramIsY)));if(We=w.roundPositionForSharpStrokeRendering(We,1),Ze=w.roundPositionForSharpStrokeRendering(Ze,1),Re&&Ie){var Ge="M"+(We-1-1)+","+(Ze-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",Ge)}else if(Re){var Ke="M"+(We-1-1)+","+(Ze-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Ke)}else{var nt="M"+(We-9-1)+","+(Ze-1-1)+"h18 v2 h-18 Z";Ve.attr("d",nt)}}()}function zt(wt){wt.selectAll(".visual-cue").remove()}b.init(Je),kt.node().onmousemove=ut}(R,Q,z,F,j,ee):z.editable===!0&&Q.style("pointer-events",V||y.opacity(G)*W<=.5?"stroke":"all");Q.node().addEventListener("click",function(){return function(X,re){if(S(X)){var ie=+re.node().getAttribute("data-index");if(ie>=0){if(ie===X._fullLayout._activeShapeIndex)return void O(X);X._fullLayout._activeShapeIndex=ie,X._fullLayout._deactivateShape=O,T(X)}}}(R,Q)})}z._input&&z.visible===!0&&(z.layer!=="below"?$(R._fullLayout._shapeUpperLayer):z.xref==="paper"||z.yref==="paper"?$(R._fullLayout._shapeLowerLayer):B._hadPlotinfo?$((B.mainplotinfo||B).shapelayer):$(R._fullLayout._shapeLowerLayer))}function P(R,F,A){var z=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(R,z?"clip"+F._fullLayout._uid+z:null,F)}function D(R,F,A){return R.replace(_.segmentRE,function(z){var B=0,$=z.charAt(0),j=_.paramIsX[$],N=_.paramIsY[$],E=_.numParams[$];return $+z.substr(1).replace(_.paramRE,function(W){return B>=E||(j[B]?W=F(W):N[B]&&(W=A(W)),B++),W})})}function O(R){S(R)&&R._fullLayout._activeShapeIndex>=0&&(m(R),delete R._fullLayout._activeShapeIndex,T(R))}o.exports={draw:T,drawOne:C,eraseActiveShape:function(R){if(S(R)){m(R);var F=R._fullLayout._activeShapeIndex,A=(R.layout||{}).shapes||[];if(F0&&CU&&(Y="X"),Y});return H>U&&(Q=Q.replace(/[\s,]*X.*/,""),f.log("Ignoring extra params in segment "+q)),V+Q})}(d,p,y);if(d.xsizemode==="pixel"){var C=p(d.xanchor);v=C+d.x0,g=C+d.x1}else v=p(d.x0),g=p(d.x1);if(d.ysizemode==="pixel"){var P=y(d.yanchor);b=P-d.y0,x=P-d.y1}else b=y(d.y0),x=y(d.y1);if(_==="line")return"M"+v+","+b+"L"+g+","+x;if(_==="rect")return"M"+v+","+b+"H"+g+"V"+x+"H"+v+"Z";var D=(v+g)/2,O=(b+x)/2,R=Math.abs(D-v),F=Math.abs(O-b),A="A"+R+","+F,z=D+R+","+O;return"M"+z+A+" 0 1,1 "+D+","+(O-F)+A+" 0 0,1 "+z+"Z"}},89853:function(o,a,n){var l=n(34031);o.exports={moduleType:"component",name:"shapes",layoutAttributes:n(89827),supplyLayoutDefaults:n(84726),supplyDrawNewShapeDefaults:n(45547),includeBasePlot:n(76325)("shapes"),calcAutorange:n(5627),draw:l.draw,drawOne:l.drawOne}},37281:function(o){function a(s,u){return u?u.d2l(s):s}function n(s,u){return u?u.l2d(s):s}function l(s,u){return a(s.x1,u)-a(s.x0,u)}function f(s,u,d){return a(s.y1,d)-a(s.y0,d)}o.exports={x0:function(s){return s.x0},x1:function(s){return s.x1},y0:function(s){return s.y0},y1:function(s){return s.y1},slope:function(s,u,d){return s.type!=="line"?void 0:f(s,0,d)/l(s,u)},dx:l,dy:f,width:function(s,u){return Math.abs(l(s,u))},height:function(s,u,d){return Math.abs(f(s,0,d))},length:function(s,u,d){return s.type!=="line"?void 0:Math.sqrt(Math.pow(l(s,u),2)+Math.pow(f(s,0,d),2))},xcenter:function(s,u){return n((a(s.x1,u)+a(s.x0,u))/2,u)},ycenter:function(s,u,d){return n((a(s.y1,d)+a(s.y0,d))/2,d)}}},75067:function(o,a,n){var l=n(41940),f=n(35025),s=n(1426).extendDeepAll,u=n(30962).overrideAll,d=n(85594),h=n(44467).templatedArray,p=n(98292),m=h("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});o.exports=u(h("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:m,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:s(f({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:d.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:l({})},font:l({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},98292:function(o){o.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(o,a,n){var l=n(71828),f=n(85501),s=n(75067),u=n(98292).name,d=s.steps;function h(m,y,v){function g(k,T){return l.coerce(m,y,s,k,T)}for(var b=f(m,y,{name:"steps",handleItemDefaults:p}),x=0,_=0;_0&&(H=H.transition().duration(N.transition.duration).ease(N.transition.easing)),H.attr("transform",h(q-.5*y.gripWidth,N._dims.currentValueTotalHeight))}}function A(j,N){var E=j._dims;return E.inputAreaStart+y.stepInset+(E.inputAreaLength-2*y.stepInset)*Math.min(1,Math.max(0,N))}function z(j,N){var E=j._dims;return Math.min(1,Math.max(0,(N-y.stepInset-E.inputAreaStart)/(E.inputAreaLength-2*y.stepInset-2*E.inputAreaStart)))}function B(j,N,E){var W=E._dims,G=d.ensureSingle(j,"rect",y.railTouchRectClass,function(L){L.call(O,N,j,E).style("pointer-events","all")});G.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,y.tickOffset+E.ticklen+W.labelHeight)}).call(s.fill,E.bgcolor).attr("opacity",0),u.setTranslate(G,0,W.currentValueTotalHeight)}function $(j,N){var E=N._dims,W=E.inputAreaLength-2*y.railInset,G=d.ensureSingle(j,"rect",y.railRectClass);G.attr({width:W,height:y.railWidth,rx:y.railRadius,ry:y.railRadius,"shape-rendering":"crispEdges"}).call(s.stroke,N.bordercolor).call(s.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),u.setTranslate(G,y.railInset,.5*(E.inputAreaWidth-y.railWidth)+E.currentValueTotalHeight)}o.exports=function(j){var N=j._context.staticPlot,E=j._fullLayout,W=function(te,ee){for(var U=te[y.name],Q=[],Y=0;Y0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),f.autoMargin(j,_(te))}if(G.enter().append("g").classed(y.containerClassName,!0).style("cursor",N?null:"ew-resize"),G.exit().each(function(){l.select(this).selectAll("g."+y.groupClassName).each(L)}).remove(),W.length!==0){var q=G.selectAll("g."+y.groupClassName).data(W,w);q.enter().append("g").classed(y.groupClassName,!0),q.exit().each(L).remove();for(var H=0;H0||Oe<0){var J={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[P.side];Q.attr("transform",h(J[0],J[1]))}}}return H.call(V),G&&($?H.on(".opacity",null):(A=0,z=!0,H.text(S).on("mouseover.opacity",function(){l.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){l.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(y.makeEditable,{gd:x}).on("edit",function(U){C!==void 0?u.call("_guiRestyle",x,M,U,C):u.call("_guiRelayout",x,M,U)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(U){this.text(U||" ").call(y.positionText,D.x,D.y)})),H.classed("js-placeholder",z),R}}},7163:function(o,a,n){var l=n(41940),f=n(22399),s=n(1426).extendFlat,u=n(30962).overrideAll,d=n(35025),h=n(44467).templatedArray,p=h("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});o.exports=u(h("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:s(d({editType:"arraydraw"}),{}),font:l({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:f.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(o){o.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(o,a,n){var l=n(71828),f=n(85501),s=n(7163),u=n(75909).name,d=s.buttons;function h(m,y,v){function g(b,x){return l.coerce(m,y,s,b,x)}g("visible",f(m,y,{name:"buttons",handleItemDefaults:p}).length>0)&&(g("active"),g("direction"),g("type"),g("showactive"),g("x"),g("y"),l.noneOrAll(m,y,["x","y"]),g("xanchor"),g("yanchor"),g("pad.t"),g("pad.r"),g("pad.b"),g("pad.l"),l.coerceFont(g,"font",v.font),g("bgcolor",v.paper_bgcolor),g("bordercolor"),g("borderwidth"))}function p(m,y){function v(g,b){return l.coerce(m,y,d,g,b)}v("visible",m.method==="skip"||Array.isArray(m.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}o.exports=function(m,y){f(m,y,{name:u,handleItemDefaults:h})}},13689:function(o,a,n){var l=n(39898),f=n(74875),s=n(7901),u=n(91424),d=n(71828),h=n(63893),p=n(44467).arrayEditor,m=n(18783).LINE_SPACING,y=n(75909),v=n(25849);function g(A){return A._index}function b(A,z){return+A.attr(y.menuIndexAttrName)===z._index}function x(A,z,B,$,j,N,E,W){z.active=E,p(A.layout,y.name,z).applyUpdate("active",E),z.type==="buttons"?w(A,$,null,null,z):z.type==="dropdown"&&(j.attr(y.menuIndexAttrName,"-1"),_(A,$,j,N,z),W||w(A,$,j,N,z))}function _(A,z,B,$,j){var N=d.ensureSingle(z,"g",y.headerClassName,function(H){H.style("pointer-events","all")}),E=j._dims,W=j.active,G=j.buttons[W]||y.blankHeaderOpts,L={y:j.pad.t,yPad:0,x:j.pad.l,xPad:0,index:0},q={width:E.headerWidth,height:E.headerHeight};N.call(k,j,G,A).call(R,j,L,q),d.ensureSingle(z,"text",y.headerArrowClassName,function(H){H.attr("text-anchor","end").call(u.font,j.font).text(y.arrowSymbol[j.direction])}).attr({x:E.headerWidth-y.arrowOffsetX+j.pad.l,y:E.headerHeight/2+y.textOffsetY+j.pad.t}),N.on("click",function(){B.call(F,String(b(B,j)?-1:j._index)),w(A,z,B,$,j)}),N.on("mouseover",function(){N.call(C)}),N.on("mouseout",function(){N.call(P,j)}),u.setTranslate(z,E.lx,E.ly)}function w(A,z,B,$,j){B||(B=z).attr("pointer-events","all");var N=function(Q){return+Q.attr(y.menuIndexAttrName)==-1}(B)&&j.type!=="buttons"?[]:j.buttons,E=j.type==="dropdown"?y.dropdownButtonClassName:y.buttonClassName,W=B.selectAll("g."+E).data(d.filterVisible(N)),G=W.enter().append("g").classed(E,!0),L=W.exit();j.type==="dropdown"?(G.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var q=0,H=0,V=j._dims,te=["up","down"].indexOf(j.direction)!==-1;j.type==="dropdown"&&(te?H=V.headerHeight+y.gapButtonHeader:q=V.headerWidth+y.gapButtonHeader),j.type==="dropdown"&&j.direction==="up"&&(H=-y.gapButtonHeader+y.gapButton-V.openHeight),j.type==="dropdown"&&j.direction==="left"&&(q=-y.gapButtonHeader+y.gapButton-V.openWidth);var ee={x:V.lx+q+j.pad.l,y:V.ly+H+j.pad.t,yPad:y.gapButton,xPad:y.gapButton,index:0},U={l:ee.x+j.borderwidth,t:ee.y+j.borderwidth};W.each(function(Q,Y){var Z=l.select(this);Z.call(k,j,Q,A).call(R,j,ee),Z.on("click",function(){l.event.defaultPrevented||(Q.execute&&(Q.args2&&j.active===Y?(x(A,j,0,z,B,$,-1),f.executeAPICommand(A,Q.method,Q.args2)):(x(A,j,0,z,B,$,Y),f.executeAPICommand(A,Q.method,Q.args))),A.emit("plotly_buttonclicked",{menu:j,button:Q,active:j.active}))}),Z.on("mouseover",function(){Z.call(C)}),Z.on("mouseout",function(){Z.call(P,j),W.call(S,j)})}),W.call(S,j),te?(U.w=Math.max(V.openWidth,V.headerWidth),U.h=ee.y-U.t):(U.w=ee.x-U.l,U.h=Math.max(V.openHeight,V.headerHeight)),U.direction=j.direction,$&&(W.size()?function(Q,Y,Z,X,re,ie){var le,se,pe,Te=re.direction,Se=Te==="up"||Te==="down",Oe=re._dims,Me=re.active;if(Se)for(se=0,pe=0;pe0?[0]:[]);if(j.enter().append("g").classed(y.containerClassName,!0).style("cursor","pointer"),j.exit().each(function(){l.select(this).selectAll("g."+y.headerGroupClassName).each($)}).remove(),B.length!==0){var N=j.selectAll("g."+y.headerGroupClassName).data(B,g);N.enter().append("g").classed(y.headerGroupClassName,!0);for(var E=d.ensureSingle(j,"g",y.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),W=0;WR,z=d.barLength+2*d.barPad,B=d.barWidth+2*d.barPad,$=k,j=M+S;j+B>g&&(j=g-B);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(f.fill,d.barColor),A?(this.hbar=N.attr({rx:d.barRadius,ry:d.barRadius,x:$,y:j,width:z,height:B}),this._hbarXMin=$+z/2,this._hbarTranslateMax=R-z):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=S>F,W=d.barWidth+2*d.barPad,G=d.barLength+2*d.barPad,L=k+T,q=M;L+W>v&&(L=v-W);var H=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(f.fill,d.barColor),E?(this.vbar=H.attr({rx:d.barRadius,ry:d.barRadius,x:L,y:q,width:W,height:G}),this._vbarYMin=q+G/2,this._vbarTranslateMax=F-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=b-.5,ee=E?x+W+.5:x+.5,U=_-.5,Q=A?w+B+.5:w+.5,Y=y._topdefs.selectAll("#"+V).data(A||E?[0]:[]);if(Y.exit().remove(),Y.enter().append("clipPath").attr("id",V).append("rect"),A||E?(this._clipRect=Y.select("rect").attr({x:Math.floor(te),y:Math.floor(U),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(U)}),this.container.call(s.setClipUrl,V,this.gd),this.bg.attr({x:k,y:M,width:T,height:S})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),A||E){var Z=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Z);var X=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault(),l.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(X),E&&this.vbar.on(".drag",null).call(X)}this.setTranslate(p,m)},d.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},d.prototype._onBoxDrag=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h-=l.event.dx),this.vbar&&(p-=l.event.dy),this.setTranslate(h,p)},d.prototype._onBoxWheel=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h+=l.event.deltaY),this.vbar&&(p+=l.event.deltaY),this.setTranslate(h,p)},d.prototype._onBarDrag=function(){var h=this.translateX,p=this.translateY;if(this.hbar){var m=h+this._hbarXMin,y=m+this._hbarTranslateMax;h=(u.constrain(l.event.x,m,y)-m)/(y-m)*(this.position.w-this._box.w)}if(this.vbar){var v=p+this._vbarYMin,g=v+this._vbarTranslateMax;p=(u.constrain(l.event.y,v,g)-v)/(g-v)*(this.position.h-this._box.h)}this.setTranslate(h,p)},d.prototype.setTranslate=function(h,p){var m=this.position.w-this._box.w,y=this.position.h-this._box.h;if(h=u.constrain(h||0,0,m),p=u.constrain(p||0,0,y),this.translateX=h,this.translateY=p,this.container.call(s.setTranslate,this._box.l-this.position.l-h,this._box.t-this.position.t-p),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+h-.5),y:Math.floor(this.position.t+p-.5)}),this.hbar){var v=h/m;this.hbar.call(s.setTranslate,h+v*this._hbarTranslateMax,p)}if(this.vbar){var g=p/y;this.vbar.call(s.setTranslate,h,p+g*this._vbarTranslateMax)}}},18783:function(o){o.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(o){o.exports={axisRefDescription:function(a,n,l){return["If set to a",a,"axis id (e.g. *"+a+"* or","*"+a+"2*), the `"+a+"` position refers to a",a,"coordinate. If set to *paper*, the `"+a+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+l+"). If set to a",a,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+a+"2 domain* refers to the domain of the second",a," axis and a",a,"position of 0.5 refers to the","point between the",n,"and the",l,"of the domain of the","second",a,"axis."].join(" ")}}},31562:function(o){o.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(o){o.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(o){o.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(o){o.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(o,a){a.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],a.STYLE=a.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},77922:function(o,a){a.xmlns="http://www.w3.org/2000/xmlns/",a.svg="http://www.w3.org/2000/svg",a.xlink="http://www.w3.org/1999/xlink",a.svgAttrs={xmlns:a.svg,"xmlns:xlink":a.xlink}},8729:function(o,a,n){a.version=n(11506).version,n(7417),n(98847);for(var l=n(73972),f=a.register=l.register,s=n(10641),u=Object.keys(s),d=0;d",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(o,a){a.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},a.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},a.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},a.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},a.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},a.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},26348:function(o,a,n){var l=n(64872),f=l.mod,s=l.modHalf,u=Math.PI,d=2*u;function h(v){return Math.abs(v[1]-v[0])>d-1e-14}function p(v,g){return s(g-v,d)}function m(v,g){if(h(g))return!0;var b,x;g[0](x=f(x,d))&&(x+=d);var _=f(v,d),w=_+d;return _>=b&&_<=x||w>=b&&w<=x}function y(v,g,b,x,_,w,k){_=_||0,w=w||0;var T,M,S,C,P,D=h([b,x]);function O(z,B){return[z*Math.cos(B)+_,w-z*Math.sin(B)]}D?(T=0,M=u,S=d):b=_&&v<=w);var _,w},pathArc:function(v,g,b,x,_){return y(null,v,g,b,x,_,0)},pathSector:function(v,g,b,x,_){return y(null,v,g,b,x,_,1)},pathAnnulus:function(v,g,b,x,_,w){return y(v,g,b,x,_,w,1)}}},73627:function(o,a){var n=Array.isArray,l=ArrayBuffer,f=DataView;function s(h){return l.isView(h)&&!(h instanceof f)}function u(h){return n(h)||s(h)}function d(h,p,m){if(u(h)){if(u(h[0])){for(var y=m,v=0;vw.max?x.set(_):x.set(+b)}},integer:{coerceFunction:function(b,x,_,w){b%1||!l(b)||w.min!==void 0&&bw.max?x.set(_):x.set(+b)}},string:{coerceFunction:function(b,x,_,w){if(typeof b!="string"){var k=typeof b=="number";w.strict!==!0&&k?x.set(String(b)):x.set(_)}else w.noBlank&&!b?x.set(_):x.set(b)}},color:{coerceFunction:function(b,x,_){f(b).isValid()?x.set(b):x.set(_)}},colorlist:{coerceFunction:function(b,x,_){Array.isArray(b)&&b.length&&b.every(function(w){return f(w).isValid()})?x.set(b):x.set(_)}},colorscale:{coerceFunction:function(b,x,_){x.set(u.get(b,_))}},angle:{coerceFunction:function(b,x,_){b==="auto"?x.set("auto"):l(b)?x.set(y(+b,360)):x.set(_)}},subplotid:{coerceFunction:function(b,x,_,w){var k=w.regex||m(_);typeof b=="string"&&k.test(b)?x.set(b):x.set(_)},validateFunction:function(b,x){var _=x.dflt;return b===_||typeof b=="string"&&!!m(_).test(b)}},flaglist:{coerceFunction:function(b,x,_,w){if((w.extras||[]).indexOf(b)===-1)if(typeof b=="string"){for(var k=b.split("+"),T=0;T=l&&N<=f?N:m}if(typeof N!="string"&&typeof N!="number")return m;N=String(N);var q=S(E),H=N.charAt(0);!q||H!=="G"&&H!=="g"||(N=N.substr(1),E="");var V=q&&E.substr(0,7)==="chinese",te=N.match(V?T:k);if(!te)return m;var ee=te[1],U=te[3]||"1",Q=Number(te[5]||1),Y=Number(te[7]||0),Z=Number(te[9]||0),X=Number(te[11]||0);if(q){if(ee.length===2)return m;var re;ee=Number(ee);try{var ie=_.getComponentMethod("calendars","getCal")(E);if(V){var le=U.charAt(U.length-1)==="i";U=parseInt(U,10),re=ie.newDate(ee,ie.toMonthIndex(ee,U,le),Q)}else re=ie.newDate(ee,Number(U),Q)}catch{return m}return re?(re.toJD()-x)*y+Y*v+Z*g+X*b:m}ee=ee.length===2?(Number(ee)+2e3-M)%100+M:Number(ee),U-=1;var se=new Date(Date.UTC(2e3,U,Q,Y,Z));return se.setUTCFullYear(ee),se.getUTCMonth()!==U||se.getUTCDate()!==Q?m:se.getTime()+X*b},l=a.MIN_MS=a.dateTime2ms("-9999"),f=a.MAX_MS=a.dateTime2ms("9999-12-31 23:59:59.9999"),a.isDateTime=function(N,E){return a.dateTime2ms(N,E)!==m};var P=90*y,D=3*v,O=5*g;function R(N,E,W,G,L){if((E||W||G||L)&&(N+=" "+C(E,2)+":"+C(W,2),(G||L)&&(N+=":"+C(G,2),L))){for(var q=4;L%10==0;)q-=1,L/=10;N+="."+C(L,q)}return N}a.ms2DateTime=function(N,E,W){if(typeof N!="number"||!(N>=l&&N<=f))return m;E||(E=0);var G,L,q,H,V,te,ee=Math.floor(10*h(N+.05,1)),U=Math.round(N-ee/10);if(S(W)){var Q=Math.floor(U/y)+x,Y=Math.floor(h(N,y));try{G=_.getComponentMethod("calendars","getCal")(W).fromJD(Q).formatDate("yyyy-mm-dd")}catch{G=w("G%Y-%m-%d")(new Date(U))}if(G.charAt(0)==="-")for(;G.length<11;)G="-0"+G.substr(1);else for(;G.length<10;)G="0"+G;L=E=l+y&&N<=f-y))return m;var E=Math.floor(10*h(N+.05,1)),W=new Date(Math.round(N-E/10));return R(s("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+E)},a.cleanDate=function(N,E,W){if(N===m)return E;if(a.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(S(W))return d.error("JS Dates and milliseconds are incompatible with world calendars",N),E;if(!(N=a.ms2DateTimeLocal(+N))&&E!==void 0)return E}else if(!a.isDateTime(N,W))return d.error("unrecognized date",N),E;return N};var F=/%\d?f/g,A=/%h/g,z={1:"1",2:"1",3:"2",4:"2"};function B(N,E,W,G){N=N.replace(F,function(q){var H=Math.min(+q.charAt(1)||6,6);return(E/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(E+.05));if(N=N.replace(A,function(){return z[W("%q")(L)]}),S(G))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,E,G)}catch{return"Invalid"}return W(N)(L)}var $=[59,59.9,59.99,59.999,59.9999];a.formatDate=function(N,E,W,G,L,q){if(L=S(L)&&L,!E)if(W==="y")E=q.year;else if(W==="m")E=q.month;else{if(W!=="d")return function(H,V){var te=h(H+.05,y),ee=C(Math.floor(te/v),2)+":"+C(h(Math.floor(te/g),60),2);if(V!=="M"){u(V)||(V=0);var U=(100+Math.min(h(H/b,60),$[V])).toFixed(V).substr(1);V>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+U}return ee}(N,W)+` `+B(q.dayMonthYear,N,G,L);E=q.dayMonth+` `+q.year}return B(E,N,G,L)};var j=3*y;a.incrementMonth=function(N,E,W){W=S(W)&&W;var G=h(N,y);if(N=Math.round(N-G),W)try{var L=Math.round(N/y)+x,q=_.getComponentMethod("calendars","getCal")(W),H=q.fromJD(L);return E%12?q.add(H,E,"m"):q.add(H,E/12,"y"),(H.toJD()-x)*y+G}catch{d.error("invalid ms "+N+" in calendar "+W)}var V=new Date(N+j);return V.setUTCMonth(V.getUTCMonth()+E)+G-j},a.findExactDates=function(N,E){for(var W,G,L=0,q=0,H=0,V=0,te=S(E)&&_.getComponentMethod("calendars","getCal")(E),ee=0;ee1||D<0||D>1?null:{x:p+w*D,y:m+M*D}}function h(p,m,y,v,g){var b=v*p+g*m;if(b<0)return v*v+g*g;if(b>y){var x=v-p,_=g-m;return x*x+_*_}var w=v*m-g*p;return w*w/y}a.segmentsIntersect=d,a.segmentDistance=function(p,m,y,v,g,b,x,_){if(d(p,m,y,v,g,b,x,_))return 0;var w=y-p,k=v-m,T=x-g,M=_-b,S=w*w+k*k,C=T*T+M*M,P=Math.min(h(w,k,S,g-p,b-m),h(w,k,S,x-p,_-m),h(T,M,C,p-g,m-b),h(T,M,C,y-g,v-b));return Math.sqrt(P)},a.getTextLocation=function(p,m,y,v){if(p===f&&v===s||(l={},f=p,s=v),l[y])return l[y];var g=p.getPointAtLength(u(y-v/2,m)),b=p.getPointAtLength(u(y+v/2,m)),x=Math.atan((b.y-g.y)/(b.x-g.x)),_=p.getPointAtLength(u(y,m)),w={x:(4*_.x+g.x+b.x)/6,y:(4*_.y+g.y+b.y)/6,theta:x};return l[y]=w,w},a.clearLocationCache=function(){f=null},a.getVisibleSegment=function(p,m,y){var v,g,b=m.left,x=m.right,_=m.top,w=m.bottom,k=0,T=p.getTotalLength(),M=T;function S(P){var D=p.getPointAtLength(P);P===0?v=D:P===T&&(g=D);var O=D.xx?D.x-x:0,R=D.y<_?_-D.y:D.y>w?D.y-w:0;return Math.sqrt(O*O+R*R)}for(var C=S(k);C;){if((k+=C+y)>M)return;C=S(k)}for(C=S(M);C;){if(k>(M-=C+y))return;C=S(M)}return{min:k,max:M,len:M-k,total:T,isClosed:k===0&&M===T&&Math.abs(v.x-g.x)<.1&&Math.abs(v.y-g.y)<.1}},a.findPointOnPath=function(p,m,y,v){for(var g,b,x,_=(v=v||{}).pathLength||p.getTotalLength(),w=v.tolerance||.001,k=v.iterationLimit||30,T=p.getPointAtLength(0)[y]>p.getPointAtLength(_)[y]?-1:1,M=0,S=0,C=_;M0?C=g:S=g,M++}return b}},23389:function(o){o.exports=function(a){return a}},39240:function(o){o.exports=function(a,n){if(!n)return a;var l=1/Math.abs(n),f=l>1?(l*a+l*n)/l:a+n,s=String(f).length;if(s>16){var u=String(n).length;if(s>=String(a).length+u){var d=parseFloat(f).toPrecision(12);d.indexOf("e+")===-1&&(f=+d)}}return f}},71828:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(60721).WU,u=n(92770),d=n(50606),h=d.FP_SAFE,p=-h,m=d.BADNUM,y=o.exports={};y.adjustFormat=function(Y){return!Y||/^\d[.]\df/.test(Y)||/[.]\d%/.test(Y)?Y:Y==="0.f"?"~f":/^\d%/.test(Y)?"~%":/^\ds/.test(Y)?"~s":!/^[~,.0$]/.test(Y)&&/[&fps]/.test(Y)?"~"+Y:Y};var v={};y.warnBadFormat=function(Y){var Z=String(Y);v[Z]||(v[Z]=1,y.warn('encountered bad format: "'+Z+'"'))},y.noFormat=function(Y){return String(Y)},y.numberFormat=function(Y){var Z;try{Z=s(y.adjustFormat(Y))}catch{return y.warnBadFormat(Y),y.noFormat}return Z},y.nestedProperty=n(65487),y.keyedContainer=n(66636),y.relativeAttr=n(6962),y.isPlainObject=n(41965),y.toLogRange=n(58163),y.relinkPrivateKeys=n(51332);var g=n(73627);y.isTypedArray=g.isTypedArray,y.isArrayOrTypedArray=g.isArrayOrTypedArray,y.isArray1D=g.isArray1D,y.ensureArray=g.ensureArray,y.concat=g.concat,y.maxRowLength=g.maxRowLength,y.minRowLength=g.minRowLength;var b=n(64872);y.mod=b.mod,y.modHalf=b.modHalf;var x=n(96554);y.valObjectMeta=x.valObjectMeta,y.coerce=x.coerce,y.coerce2=x.coerce2,y.coerceFont=x.coerceFont,y.coercePattern=x.coercePattern,y.coerceHoverinfo=x.coerceHoverinfo,y.coerceSelectionMarkerOpacity=x.coerceSelectionMarkerOpacity,y.validate=x.validate;var _=n(41631);y.dateTime2ms=_.dateTime2ms,y.isDateTime=_.isDateTime,y.ms2DateTime=_.ms2DateTime,y.ms2DateTimeLocal=_.ms2DateTimeLocal,y.cleanDate=_.cleanDate,y.isJSDate=_.isJSDate,y.formatDate=_.formatDate,y.incrementMonth=_.incrementMonth,y.dateTick0=_.dateTick0,y.dfltRange=_.dfltRange,y.findExactDates=_.findExactDates,y.MIN_MS=_.MIN_MS,y.MAX_MS=_.MAX_MS;var w=n(65888);y.findBin=w.findBin,y.sorterAsc=w.sorterAsc,y.sorterDes=w.sorterDes,y.distinctVals=w.distinctVals,y.roundUp=w.roundUp,y.sort=w.sort,y.findIndexOfMin=w.findIndexOfMin,y.sortObjectKeys=n(78607);var k=n(80038);y.aggNums=k.aggNums,y.len=k.len,y.mean=k.mean,y.median=k.median,y.midRange=k.midRange,y.variance=k.variance,y.stdev=k.stdev,y.interp=k.interp;var T=n(35657);y.init2dArray=T.init2dArray,y.transposeRagged=T.transposeRagged,y.dot=T.dot,y.translationMatrix=T.translationMatrix,y.rotationMatrix=T.rotationMatrix,y.rotationXYMatrix=T.rotationXYMatrix,y.apply3DTransform=T.apply3DTransform,y.apply2DTransform=T.apply2DTransform,y.apply2DTransform2=T.apply2DTransform2,y.convertCssMatrix=T.convertCssMatrix,y.inverseTransformMatrix=T.inverseTransformMatrix;var M=n(26348);y.deg2rad=M.deg2rad,y.rad2deg=M.rad2deg,y.angleDelta=M.angleDelta,y.angleDist=M.angleDist,y.isFullCircle=M.isFullCircle,y.isAngleInsideSector=M.isAngleInsideSector,y.isPtInsideSector=M.isPtInsideSector,y.pathArc=M.pathArc,y.pathSector=M.pathSector,y.pathAnnulus=M.pathAnnulus;var S=n(99863);y.isLeftAnchor=S.isLeftAnchor,y.isCenterAnchor=S.isCenterAnchor,y.isRightAnchor=S.isRightAnchor,y.isTopAnchor=S.isTopAnchor,y.isMiddleAnchor=S.isMiddleAnchor,y.isBottomAnchor=S.isBottomAnchor;var C=n(87642);y.segmentsIntersect=C.segmentsIntersect,y.segmentDistance=C.segmentDistance,y.getTextLocation=C.getTextLocation,y.clearLocationCache=C.clearLocationCache,y.getVisibleSegment=C.getVisibleSegment,y.findPointOnPath=C.findPointOnPath;var P=n(1426);y.extendFlat=P.extendFlat,y.extendDeep=P.extendDeep,y.extendDeepAll=P.extendDeepAll,y.extendDeepNoArrays=P.extendDeepNoArrays;var D=n(47769);y.log=D.log,y.warn=D.warn,y.error=D.error;var O=n(30587);y.counterRegex=O.counter;var R=n(79990);y.throttle=R.throttle,y.throttleDone=R.done,y.clearThrottle=R.clear;var F=n(24401);function A(Y){var Z={};for(var X in Y)for(var re=Y[X],ie=0;ieh||Y=Z)&&u(Y)&&Y>=0&&Y%1==0},y.noop=n(64213),y.identity=n(23389),y.repeat=function(Y,Z){for(var X=new Array(Z),re=0;reX?Math.max(X,Math.min(Z,Y)):Math.max(Z,Math.min(X,Y))},y.bBoxIntersect=function(Y,Z,X){return X=X||0,Y.left<=Z.right+X&&Z.left<=Y.right+X&&Y.top<=Z.bottom+X&&Z.top<=Y.bottom+X},y.simpleMap=function(Y,Z,X,re,ie){for(var le=Y.length,se=new Array(le),pe=0;pe=Math.pow(2,X)?ie>10?(y.warn("randstr failed uniqueness"),Te):Y(Z,X,re,(ie||0)+1):Te},y.OptionControl=function(Y,Z){Y||(Y={}),Z||(Z="opt");var X={optionList:[],_newoption:function(re){re[Z]=Y,X[re.name]=re,X.optionList.push(re)}};return X["_"+Z]=Y,X},y.smooth=function(Y,Z){if((Z=Math.round(Z)||0)<2)return Y;var X,re,ie,le,se=Y.length,pe=2*se,Te=2*Z-1,Se=new Array(Te),Oe=new Array(se);for(X=0;X=pe&&(ie-=pe*Math.floor(ie/pe)),ie<0?ie=-1-ie:ie>=se&&(ie=pe-1-ie),le+=Y[ie]*Se[re];Oe[X]=le}return Oe},y.syncOrAsync=function(Y,Z,X){var re;function ie(){return y.syncOrAsync(Y,Z,X)}for(;Y.length;)if((re=(0,Y.splice(0,1)[0])(Z))&&re.then)return re.then(ie);return X&&X(Z)},y.stripTrailingSlash=function(Y){return Y.substr(-1)==="/"?Y.substr(0,Y.length-1):Y},y.noneOrAll=function(Y,Z,X){if(Y){var re,ie=!1,le=!0;for(re=0;re0?ie:0})},y.fillArray=function(Y,Z,X,re){if(re=re||y.identity,y.isArrayOrTypedArray(Y))for(var ie=0;ie1?ie+se[1]:"";if(le&&(se.length>1||pe.length>4||X))for(;re.test(pe);)pe=pe.replace(re,"$1"+le+"$2");return pe+Te},y.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W=/^\w*$/;y.templateString=function(Y,Z){var X={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(re,ie){var le;return W.test(ie)?le=Z[ie]:(X[ie]=X[ie]||y.nestedProperty(Z,ie).get,le=X[ie]()),y.isValidTextValue(le)?le:""})};var G={max:10,count:0,name:"hovertemplate"};y.hovertemplateString=function(){return te.apply(G,arguments)};var L={max:10,count:0,name:"texttemplate"};y.texttemplateString=function(){return te.apply(L,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,H={max:10,count:0,name:"texttemplate",parseMultDiv:!0};y.texttemplateStringForShapes=function(){return te.apply(H,arguments)};var V=/^[:|\|]/;function te(Y,Z,X){var re=this,ie=arguments;Z||(Z={});var le={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(se,pe,Te){var Se=pe==="_xother"||pe==="_yother",Oe=pe==="_xother_"||pe==="_yother_",Me=pe==="xother_"||pe==="yother_",ce=pe==="xother"||pe==="yother"||Se||Me||Oe,ye=pe;(Se||Oe)&&(ye=ye.substring(1)),(Me||Oe)&&(ye=ye.substring(0,ye.length-1));var J,ne,de,xe=null,ue=null;if(re.parseMultDiv){var ge=function(Ae){var Ee=Ae.match(q);return Ee?{key:Ee[1],op:Ee[2],number:Number(Ee[3])}:{key:Ae,op:null,number:null}}(ye);ye=ge.key,xe=ge.op,ue=ge.number}if(ce){if((J=Z[ye])===void 0)return""}else for(de=3;de=48&&se<=57,Se=pe>=48&&pe<=57;if(Te&&(re=10*re+se-48),Se&&(ie=10*ie+pe-48),!Te||!Se){if(re!==ie)return re-ie;if(se!==pe)return se-pe}}return ie-re};var ee=2e9;y.seedPseudoRandom=function(){ee=2e9},y.pseudoRandom=function(){var Y=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-Y)<429496729?y.pseudoRandom():ee/4294967296},y.fillText=function(Y,Z,X){var re=Array.isArray(X)?function(se){X.push(se)}:function(se){X.text=se},ie=y.extractOption(Y,Z,"htx","hovertext");if(y.isValidTextValue(ie))return re(ie);var le=y.extractOption(Y,Z,"tx","text");return y.isValidTextValue(le)?re(le):void 0},y.isValidTextValue=function(Y){return Y||Y===0},y.formatPercent=function(Y,Z){Z=Z||0;for(var X=(Math.round(100*Y*Math.pow(10,Z))*Math.pow(.1,Z)).toFixed(Z)+"%",re=0;re1&&(Se=1):Se=0,y.strTranslate(ie-Se*(X+se),le-Se*(re+pe))+y.strScale(Se)+(Te?"rotate("+Te+(Z?"":" "+X+" "+re)+")":"")},y.setTransormAndDisplay=function(Y,Z){Y.attr("transform",y.getTextTransform(Z)),Y.style("display",Z.scale?null:"none")},y.ensureUniformFontSize=function(Y,Z){var X=y.extendFlat({},Z);return X.size=Math.max(Z.size,Y._fullLayout.uniformtext.minsize||0),X},y.join2=function(Y,Z,X){var re=Y.length;return re>1?Y.slice(0,-1).join(Z)+X+Y[re-1]:Y.join(Z)},y.bigFont=function(Y){return Math.round(1.2*Y)};var U=y.getFirefoxVersion(),Q=U!==null&&U<86;y.getPositionFromD3Event=function(){return Q?[l.event.layerX,l.event.layerY]:[l.event.offsetX,l.event.offsetY]}},41965:function(o){o.exports=function(a){return window&&window.process&&window.process.versions?Object.prototype.toString.call(a)==="[object Object]":Object.prototype.toString.call(a)==="[object Object]"&&Object.getPrototypeOf(a).hasOwnProperty("hasOwnProperty")}},66636:function(o,a,n){var l=n(65487),f=/^\w*$/;o.exports=function(s,u,d,h){var p,m,y;d=d||"name",h=h||"value";var v={};u&&u.length?(y=l(s,u),m=y.get()):m=s,u=u||"";var g={};if(m)for(p=0;p2)return v[w]=2|v[w],x.set(_,null);if(b){for(p=w;p1){var d=["LOG:"];for(u=0;u1){var h=[];for(u=0;u"),"long")}},s.warn=function(){var u;if(l.logging>0){var d=["WARN:"];for(u=0;u0){var h=[];for(u=0;u"),"stick")}},s.error=function(){var u;if(l.logging>0){var d=["ERROR:"];for(u=0;u0){var h=[];for(u=0;u"),"stick")}}},77310:function(o,a,n){var l=n(39898);o.exports=function(f,s,u){var d=f.selectAll("g."+u.replace(/\s/g,".")).data(s,function(p){return p[0].trace.uid});d.exit().remove(),d.enter().append("g").attr("class",u),d.order();var h=f.classed("rangeplot")?"nodeRangePlot3":"node3";return d.each(function(p){p[0][h]=l.select(this)}),d}},35657:function(o,a,n){var l=n(79576);a.init2dArray=function(f,s){for(var u=new Array(f),d=0;dn/2?a-Math.round(a/n)*n:a}}},65487:function(o,a,n){var l=n(92770),f=n(73627).isArrayOrTypedArray;function s(v,g){return function(){var b,x,_,w,k,T=v;for(w=0;w/g),x=0;xm||M===f||Mv||k&&g(w))}:function(w,k){var T=w[0],M=w[1];if(T===f||Tm||M===f||Mv)return!1;var S,C,P,D,O,R=h.length,F=h[0][0],A=h[0][1],z=0;for(S=1;SMath.max(C,F)||M>Math.max(P,A)))if(Mx||Math.abs(l(y,w))>p)return!0;return!1},s.filter=function(u,d){var h=[u[0]],p=0,m=0;function y(v){u.push(v);var g=h.length,b=p;h.splice(m+1);for(var x=b+1;x1&&y(u.pop()),{addPt:y,raw:u,filtered:h}}},45142:function(o,a,n){var l=n(92770),f=n(35791);o.exports=function(s){var u;if(typeof(u=s&&s.hasOwnProperty("userAgent")?s.userAgent:function(){var g;return typeof navigator<"u"&&(g=navigator.userAgent),g&&g.headers&&typeof g.headers["user-agent"]=="string"&&(g=g.headers["user-agent"]),g}())!="string")return!0;var d=f({ua:{headers:{"user-agent":u}},tablet:!0,featureDetect:!1});if(!d){for(var h=u.split(" "),p=1;p-1;m--){var y=h[m];if(y.substr(0,8)==="Version/"){var v=y.substr(8).split(".")[0];if(l(v)&&(v=+v),v>=13)return!0}}}return d}},75138:function(o){o.exports=function(a,n){if(n instanceof RegExp){for(var l=n.toString(),f=0;ff.queueLength&&(u.undoQueue.queue.shift(),u.undoQueue.index--))},startSequence:function(u){u.undoQueue=u.undoQueue||{index:0,queue:[],sequence:!1},u.undoQueue.sequence=!0,u.undoQueue.beginSequence=!0},stopSequence:function(u){u.undoQueue=u.undoQueue||{index:0,queue:[],sequence:!1},u.undoQueue.sequence=!1,u.undoQueue.beginSequence=!1},undo:function(u){var d,h;if(!(u.undoQueue===void 0||isNaN(u.undoQueue.index)||u.undoQueue.index<=0)){for(u.undoQueue.index--,d=u.undoQueue.queue[u.undoQueue.index],u.undoQueue.inSequence=!0,h=0;h=u.undoQueue.queue.length)){for(d=u.undoQueue.queue[u.undoQueue.index],u.undoQueue.inSequence=!0,h=0;hg}function y(v,g){return v>=g}a.findBin=function(v,g,b){if(l(g.start))return b?Math.ceil((v-g.start)/g.size-d)-1:Math.floor((v-g.start)/g.size+d);var x,_,w=0,k=g.length,T=0,M=k>1?(g[k-1]-g[0])/(k-1):1;for(_=M>=0?b?h:p:b?y:m,v+=M*d*(b?-1:1)*(M>=0?1:-1);w90&&f.log("Long binary search..."),w-1},a.sorterAsc=function(v,g){return v-g},a.sorterDes=function(v,g){return g-v},a.distinctVals=function(v){var g,b=v.slice();for(b.sort(a.sorterAsc),g=b.length-1;g>-1&&b[g]===u;g--);for(var x,_=b[g]-b[0]||1,w=_/(g||1)/1e4,k=[],T=0;T<=g;T++){var M=b[T],S=M-x;x===void 0?(k.push(M),x=M):S>w&&(_=Math.min(_,S),k.push(M),x=M)}return{vals:k,minDiff:_}},a.roundUp=function(v,g,b){for(var x,_=0,w=g.length-1,k=0,T=b?0:1,M=b?1:0,S=b?Math.ceil:Math.floor;_0&&(x=1),b&&x)return v.sort(g)}return x?v:v.reverse()},a.findIndexOfMin=function(v,g){g=g||s;for(var b,x=1/0,_=0;_d.length)&&(h=d.length),l(u)||(u=!1),f(d[0])){for(m=new Array(h),p=0;ps.length-1)return s[s.length-1];var d=u%1;return d*s[Math.ceil(u)]+(1-d)*s[Math.floor(u)]}},3883:function(o,a,n){var l=n(32396),f=n(91424),s=n(71828),u=null;o.exports=function(){if(u!==null)return u;u=!1;var d=s.isIE()||s.isSafari()||s.isIOS();if(window.navigator.userAgent&&!d){var h=Array.from(l.CSS_DECLARATIONS).reverse(),p=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof p=="function")u=h.some(function(v){return p.apply(null,v)});else{var m=f.tester.append("image").attr("style",l.STYLE),y=window.getComputedStyle(m.node()).imageRendering;u=h.some(function(v){var g=v[1];return y===g||y===g.toLowerCase()}),m.remove()}}return u}},63893:function(o,a,n){var l=n(39898),f=n(71828),s=f.strTranslate,u=n(77922),d=n(18783).LINE_SPACING,h=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;a.convertToTspans=function(N,E,W){var G=N.text(),L=!N.attr("data-notex")&&E&&E._context.typesetMath&&typeof MathJax<"u"&&G.match(h),q=l.select(N.node().parentNode);if(!q.empty()){var H=N.attr("class")?N.attr("class").split(" ")[0]:"text";return H+="-math",q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove(),N.style("display",null).attr({"data-unformatted":G,"data-math":"N"}),L?(E&&E._promises||[]).push(new Promise(function(te){N.style("display","none");var ee=parseInt(N.node().style.fontSize,10),U={fontSize:ee};(function(Q,Y,Z){var X,re,ie,le,se=parseInt((MathJax.version||"").split(".")[0]);if(se===2||se===3){var pe=function(){var Se="math-output-"+f.randstr({},64),Oe=(le=l.select("body").append("div").attr({id:Se}).style({visibility:"hidden",position:"absolute","font-size":Y.fontSize+"px"}).text(Q.replace(p,"\\lt ").replace(m,"\\gt "))).node();return se===2?MathJax.Hub.Typeset(Oe):MathJax.typeset([Oe])},Te=function(){var Se=le.select(se===2?".MathJax_SVG":".MathJax"),Oe=!Se.empty()&&le.select("svg").node();if(Oe){var Me,ce=Oe.getBoundingClientRect();Me=se===2?l.select("body").select("#MathJax_SVG_glyphs"):Se.select("defs"),Z(Se,Me,ce)}else f.log("There was an error in the tex syntax.",Q),Z();le.remove()};se===2?MathJax.Hub.Queue(function(){return re=f.extendDeepAll({},MathJax.Hub.config),ie=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:y},displayAlign:"left"})},function(){if((X=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},pe,Te,function(){if(X!=="SVG")return MathJax.Hub.setRenderer(X)},function(){return ie!==void 0&&(MathJax.Hub.processSectionDelay=ie),MathJax.Hub.Config(re)}):se===3&&(re=f.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=y,(X=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){pe(),Te(),X!=="svg"&&(MathJax.config.startup.output=X),MathJax.config=re}))}else f.warn("No MathJax version:",MathJax.version)})(L[2],U,function(Q,Y,Z){q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove();var X=Q&&Q.select("svg");if(!X||!X.node())return V(),void te();var re=q.append("g").classed(H+"-group",!0).attr({"pointer-events":"none","data-unformatted":G,"data-math":"Y"});re.node().appendChild(X.node()),Y&&Y.node()&&X.node().insertBefore(Y.node().cloneNode(!0),X.node().firstChild);var ie=Z.width,le=Z.height;X.attr({class:H,height:le,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=N.node().style.fill||"black",pe=X.select("g");pe.attr({fill:se,stroke:se});var Te=pe.node().getBoundingClientRect(),Se=Te.width,Oe=Te.height;(Se>ie||Oe>le)&&(X.style("overflow","hidden"),Se=(Te=X.node().getBoundingClientRect()).width,Oe=Te.height);var Me=+N.attr("x"),ce=+N.attr("y"),ye=-(ee||N.node().getBoundingClientRect().height)/4;if(H[0]==="y")re.attr({transform:"rotate("+[-90,Me,ce]+")"+s(-Se/2,ye-Oe/2)});else if(H[0]==="l")ce=ye-Oe/2;else if(H[0]==="a"&&H.indexOf("atitle")!==0)Me=0,ce=ye;else{var J=N.attr("text-anchor");Me-=Se*(J==="middle"?.5:J==="end"?1:0),ce=ce+ye-Oe/2}X.attr({x:Me,y:ce}),W&&W.call(N,re),te(re)})})):V(),N}function V(){q.empty()||(H=N.attr("class")+"-math",q.select("svg."+H).remove()),N.text("").style("white-space","pre");var te=function(ee,U){U=U.replace(w," ");var Q,Y=!1,Z=[],X=-1;function re(){X++;var ue=document.createElementNS(u.svg,"tspan");l.select(ue).attr({class:"line",dy:X*d+"em"}),ee.appendChild(ue),Q=ue;var ge=Z;if(Z=[{node:ue}],ge.length>1)for(var be=1;be doesnt match end tag <"+ue+">. Pretending it did match.",U),Q=Z[Z.length-1].node}else f.log("Ignoring unexpected end tag .",U)}M.test(U)?re():(Q=ee,Z=[{node:ee}]);for(var pe=U.split(k),Te=0;Te|>|>)/g,y=[["$","$"],["\\(","\\)"]],v={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},g={sub:"0.3em",sup:"-0.6em"},b={sub:"-0.21em",sup:"0.42em"},x="​",_=["http:","https:","mailto:","",void 0,":"],w=a.NEWLINES=/(\r\n?|\n)/g,k=/(<[^<>]*>)/,T=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i;a.BR_TAG_ALL=//gi;var S=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,C=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,P=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function O(N,E){if(!N)return null;var W=N.match(E),G=W&&(W[3]||W[4]);return G&&z(G)}var R=/(^|;)\s*color:/;a.plainText=function(N,E){for(var W=(E=E||{}).len!==void 0&&E.len!==-1?E.len:1/0,G=E.allowedTags!==void 0?E.allowedTags:["br"],L=N.split(k),q=[],H="",V=0,te=0;te3?q.push(ee.substr(0,Z-3)+"..."):q.push(ee.substr(0,Z));break}H=""}}return q.join("")};var F={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function z(N){return N.replace(A,function(E,W){return(W.charAt(0)==="#"?function(G){if(!(G>1114111)){var L=String.fromCodePoint;if(L)return L(G);var q=String.fromCharCode;return G<=65535?q(G):q(55232+(G>>10),G%1024+56320)}}(W.charAt(1)==="x"?parseInt(W.substr(2),16):parseInt(W.substr(1),10)):F[W])||E})}function B(N){var E=encodeURI(decodeURI(N)),W=document.createElement("a"),G=document.createElement("a");W.href=N,G.href=E;var L=W.protocol,q=G.protocol;return _.indexOf(L)!==-1&&_.indexOf(q)!==-1?E:""}function $(N,E,W){var G,L,q,H=W.horizontalAlign,V=W.verticalAlign||"top",te=N.node().getBoundingClientRect(),ee=E.node().getBoundingClientRect();return L=V==="bottom"?function(){return te.bottom-G.height}:V==="middle"?function(){return te.top+(te.height-G.height)/2}:function(){return te.top},q=H==="right"?function(){return te.right-G.width}:H==="center"?function(){return te.left+(te.width-G.width)/2}:function(){return te.left},function(){G=this.node().getBoundingClientRect();var U=q()-ee.left,Q=L()-ee.top,Y=W.gd||{};if(W.gd){Y._fullLayout._calcInverseTransform(Y);var Z=f.apply3DTransform(Y._fullLayout._invTransform)(U,Q);U=Z[0],Q=Z[1]}return this.style({top:Q+"px",left:U+"px","z-index":1e3}),this}}a.convertEntities=z,a.sanitizeHTML=function(N){N=N.replace(w," ");for(var E=document.createElement("p"),W=E,G=[],L=N.split(k),q=0;qd.ts+s?m():d.timer=setTimeout(function(){m(),d.timer=null},s)},a.done=function(f){var s=n[f];return s&&s.timer?new Promise(function(u){var d=s.onDone;s.onDone=function(){d&&d(),u(),s.onDone=null}}):Promise.resolve()},a.clear=function(f){if(f)l(n[f]),delete n[f];else for(var s in n)a.clear(s)}},58163:function(o,a,n){var l=n(92770);o.exports=function(f,s){if(f>0)return Math.log(f)/Math.LN10;var u=Math.log(Math.min(s[0],s[1]))/Math.LN10;return l(u)||(u=Math.log(Math.max(s[0],s[1]))/Math.LN10-6),u}},37815:function(o){o.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(o){o.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(o,a,n){var l=n(73972);o.exports=function(f){for(var s,u,d=l.layoutArrayContainers,h=l.layoutArrayRegexes,p=f.split("[")[0],m=0;m0&&u.log("Clearing previous rejected promises from queue."),C._promises=[]},a.cleanLayout=function(C){var P,D;C||(C={}),C.xaxis1&&(C.xaxis||(C.xaxis=C.xaxis1),delete C.xaxis1),C.yaxis1&&(C.yaxis||(C.yaxis=C.yaxis1),delete C.yaxis1),C.scene1&&(C.scene||(C.scene=C.scene1),delete C.scene1);var O=(d.subplotsRegistry.cartesian||{}).attrRegex,R=(d.subplotsRegistry.polar||{}).attrRegex,F=(d.subplotsRegistry.ternary||{}).attrRegex,A=(d.subplotsRegistry.gl3d||{}).attrRegex,z=Object.keys(C);for(P=0;P3?(Z.x=1.02,Z.xanchor="left"):Z.x<-2&&(Z.x=-.02,Z.xanchor="right"),Z.y>3?(Z.y=1.02,Z.yanchor="bottom"):Z.y<-2&&(Z.y=-.02,Z.yanchor="top")),b(C),C.dragmode==="rotate"&&(C.dragmode="orbit"),p.clean(C),C.template&&C.template.layout&&a.cleanLayout(C.template.layout),C},a.cleanData=function(C){for(var P=0;P0)return C.substr(0,P)}a.hasParent=function(C,P){for(var D=M(P);D;){if(D in C)return!0;D=M(D)}return!1};var S=["x","y","z"];a.clearAxisTypes=function(C,P,D){for(var O=0;O1&&s.warn("Full array edits are incompatible with other edits",x);var C=v[""][""];if(p(C))y.set(null);else{if(!Array.isArray(C))return s.warn("Unrecognized full array edit value",x,C),!0;y.set(C)}return!T&&(_(M,S),w(m),!0)}var P,D,O,R,F,A,z,B,$=Object.keys(v).map(Number).sort(u),j=y.get(),N=j||[],E=b(S,x).get(),W=[],G=-1,L=N.length;for(P=0;P<$.length;P++)if(R=v[O=$[P]],F=Object.keys(R),A=R[""],z=h(A),O<0||O>N.length-(z?0:1))s.warn("index out of range",x,O);else if(A!==void 0)F.length>1&&s.warn("Insertion & removal are incompatible with edits to the same index.",x,O),p(A)?W.push(O):z?(A==="add"&&(A={}),N.splice(O,0,A),E&&E.splice(O,0,{})):s.warn("Unrecognized full object edit value",x,O,A),G===-1&&(G=O);else for(D=0;D=0;P--)N.splice(W[P],1),E&&E.splice(W[P],1);if(N.length?j||y.set(N):y.set(null),T)return!1;if(_(M,S),k!==f){var q;if(G===-1)q=$;else{for(L=Math.max(N.length,L),q=[],P=0;P<$.length&&!((O=$[P])>=G);P++)q.push(O);for(P=G;P=ue.data.length||ke<-ue.data.length)throw new Error(be+" must be valid indices for gd.data.");if(ge.indexOf(ke,we+1)>-1||ke>=0&&ge.indexOf(-ue.data.length+ke)>-1||ke<0&&ge.indexOf(ue.data.length+ke)>-1)throw new Error("each index in "+be+" must be unique.")}}function E(ue,ge,be){if(!Array.isArray(ue.data))throw new Error("gd.data must be an array.");if(ge===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(ge)||(ge=[ge]),N(ue,ge,"currentIndices"),be===void 0||Array.isArray(be)||(be=[be]),be!==void 0&&N(ue,be,"newIndices"),be!==void 0&&ge.length!==be.length)throw new Error("current and new indices must be of equal length.")}function W(ue,ge,be,we,ke){(function(qe,Ye,at,lt){var ct=u.isPlainObject(lt);if(!Array.isArray(qe.data))throw new Error("gd.data must be an array");if(!u.isPlainObject(Ye))throw new Error("update must be a key:value object");if(at===void 0)throw new Error("indices must be an integer or array of integers");for(var bt in N(qe,at,"indices"),Ye){if(!Array.isArray(Ye[bt])||Ye[bt].length!==at.length)throw new Error("attribute "+bt+" must be an array of length equal to indices array length");if(ct&&(!(bt in lt)||!Array.isArray(lt[bt])||lt[bt].length!==Ye[bt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ue,ge,be,we);for(var Ae=function(qe,Ye,at,lt){var ct,bt,ze,Ne,Qe,it=u.isPlainObject(lt),kt=[];for(var Je in Array.isArray(at)||(at=[at]),at=j(at,qe.data.length-1),Ye)for(var ut=0;ut-1&&be.indexOf("grouptitlefont")===-1?De(be,be.replace("titlefont","title.font")):be.indexOf("titleposition")>-1?De(be,be.replace("titleposition","title.position")):be.indexOf("titleside")>-1?De(be,be.replace("titleside","title.side")):be.indexOf("titleoffset")>-1&&De(be,be.replace("titleoffset","title.offset")):De(be,be.replace("title","title.text"));function De(Re,Ie){ue[Ie]=ue[Re],delete ue[Re]}}function U(ue,ge,be){ue=u.getGraphDiv(ue),P.clearPromiseQueue(ue);var we={};if(typeof ge=="string")we[ge]=be;else{if(!u.isPlainObject(ge))return u.warn("Relayout fail.",ge,be),Promise.reject();we=u.extendFlat({},ge)}Object.keys(we).length&&(ue.changed=!0);var ke=ie(ue,we),Ae=ke.flags;Ae.calc&&(ue.calcdata=void 0);var Ee=[v.previousPromises];Ae.layoutReplot?Ee.push(D.layoutReplot):Object.keys(we).length&&(Q(ue,Ae,ke)||v.supplyDefaults(ue),Ae.legend&&Ee.push(D.doLegend),Ae.layoutstyle&&Ee.push(D.layoutStyles),Ae.axrange&&Y(Ee,ke.rangesAltered),Ae.ticks&&Ee.push(D.doTicksRelayout),Ae.modebar&&Ee.push(D.doModeBar),Ae.camera&&Ee.push(D.doCamera),Ae.colorbars&&Ee.push(D.doColorBars),Ee.push(A)),Ee.push(v.rehover,v.redrag,v.reselect),p.add(ue,U,[ue,ke.undoit],U,[ue,ke.redoit]);var De=u.syncOrAsync(Ee,ue);return De&&De.then||(De=Promise.resolve(ue)),De.then(function(){return ue.emit("plotly_relayout",ke.eventData),ue})}function Q(ue,ge,be){var we,ke,Ae=ue._fullLayout;if(!ge.axrange)return!1;for(var Ee in ge)if(Ee!=="axrange"&&ge[Ee])return!1;var De=function(Ye,at){return u.coerce(we,ke,x,Ye,at)},Re={};for(var Ie in be.rangesAltered){var Be=g.id2name(Ie);if(we=ue.layout[Be],ke=Ae[Be],b(we,ke,De,Re),ke._matchGroup){for(var Ue in ke._matchGroup)if(Ue!==Ie){var qe=Ae[g.id2name(Ue)];qe.autorange=ke.autorange,qe.range=ke.range.slice(),qe._input.range=ke.range.slice()}}}return!0}function Y(ue,ge){var be=ge?function(we){var ke=[];for(var Ae in ge){var Ee=g.getFromId(we,Ae);if(ke.push(Ae),(Ee.ticklabelposition||"").indexOf("inside")!==-1&&Ee._anchorAxis&&ke.push(Ee._anchorAxis._id),Ee._matchGroup)for(var De in Ee._matchGroup)ge[De]||ke.push(De)}return g.draw(we,ke,{skipTitle:!0})}:function(we){return g.draw(we,"redraw")};ue.push(M,D.doAutoRangeAndConstraints,be,D.drawData,D.finalDraw)}var Z=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,X=/^[xyz]axis[0-9]*\.autorange$/,re=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ie(ue,ge){var be,we,ke,Ae=ue.layout,Ee=ue._fullLayout,De=Ee._guiEditing,Re=H(Ee._preGUI,De),Ie=Object.keys(ge),Be=g.list(ue),Ue=u.extendDeepAll({},ge),qe={};for(ee(ge),Ie=Object.keys(ge),we=0;we0&&typeof ut.parts[It]!="string";)It--;var Mt=ut.parts[It],zt=ut.parts[It-1]+"."+Mt,wt=ut.parts.slice(0,It).join("."),ve=d(ue.layout,wt).get(),_e=d(Ee,wt).get(),Ve=ut.get();if(pt!==void 0){bt[Je]=pt,ze[Je]=Mt==="reverse"?pt:q(Ve);var We=y.getLayoutValObject(Ee,ut.parts);if(We&&We.impliedEdits&&pt!==null)for(var Ze in We.impliedEdits)Ne(u.relativeAttr(Je,Ze),We.impliedEdits[Ze]);if(["width","height"].indexOf(Je)!==-1)if(pt){Ne("autosize",null);var Ge=Je==="height"?"width":"height";Ne(Ge,Ee[Ge])}else Ee[Je]=ue._initialAutoSize[Je];else if(Je==="autosize")Ne("width",pt?null:Ee.width),Ne("height",pt?null:Ee.height);else if(zt.match(Z))kt(zt),d(Ee,wt+"._inputRange").set(null);else if(zt.match(X)){kt(zt),d(Ee,wt+"._inputRange").set(null);var Ke=d(Ee,wt).get();Ke._inputDomain&&(Ke._input.domain=Ke._inputDomain.slice())}else zt.match(re)&&d(Ee,wt+"._inputDomain").set(null);if(Mt==="type"){Qe=ve;var nt=_e.type==="linear"&&pt==="log",st=_e.type==="log"&&pt==="linear";if(nt||st){if(Qe&&Qe.range)if(_e.autorange)nt&&(Qe.range=Qe.range[1]>Qe.range[0]?[1,2]:[2,1]);else{var mt=Qe.range[0],tt=Qe.range[1];nt?(mt<=0&&tt<=0&&Ne(wt+".autorange",!0),mt<=0?mt=tt/1e6:tt<=0&&(tt=mt/1e6),Ne(wt+".range[0]",Math.log(mt)/Math.LN10),Ne(wt+".range[1]",Math.log(tt)/Math.LN10)):(Ne(wt+".range[0]",Math.pow(10,mt)),Ne(wt+".range[1]",Math.pow(10,tt)))}else Ne(wt+".autorange",!0);Array.isArray(Ee._subplots.polar)&&Ee._subplots.polar.length&&Ee[ut.parts[0]]&&ut.parts[1]==="radialaxis"&&delete Ee[ut.parts[0]]._subplot.viewInitial["radialaxis.range"],m.getComponentMethod("annotations","convertCoords")(ue,_e,pt,Ne),m.getComponentMethod("images","convertCoords")(ue,_e,pt,Ne)}else Ne(wt+".autorange",!0),Ne(wt+".range",null);d(Ee,wt+"._inputRange").set(null)}else if(Mt.match(R)){var Ft=d(Ee,Je).get(),Vt=(pt||{}).type;Vt&&Vt!=="-"||(Vt="linear"),m.getComponentMethod("annotations","convertCoords")(ue,Ft,Vt,Ne),m.getComponentMethod("images","convertCoords")(ue,Ft,Vt,Ne)}var St=C.containerArrayMatch(Je);if(St){be=St.array,we=St.index;var Nt=St.property,Dt=We||{editType:"calc"};we!==""&&Nt===""&&(C.isAddVal(pt)?ze[Je]=null:C.isRemoveVal(pt)?ze[Je]=(d(Ae,be).get()||[])[we]:u.warn("unrecognized full object value",ge)),O.update(ct,Dt),qe[be]||(qe[be]={});var gt=qe[be][we];gt||(gt=qe[be][we]={}),gt[Nt]=pt,delete ge[Je]}else Mt==="reverse"?(ve.range?ve.range.reverse():(Ne(wt+".autorange",!0),ve.range=[1,0]),_e.autorange?ct.calc=!0:ct.plot=!0):(Je==="dragmode"&&(pt===!1&&Ve!==!1||pt!==!1&&Ve===!1)||Ee._has("scatter-like")&&Ee._has("regl")&&Je==="dragmode"&&(pt==="lasso"||pt==="select")&&Ve!=="lasso"&&Ve!=="select"||Ee._has("gl2d")?ct.plot=!0:We?O.update(ct,We):ct.calc=!0,ut.set(pt))}}for(be in qe)C.applyContainerArrayChanges(ue,Re(Ae,be),qe[be],ct,Re)||(ct.plot=!0);for(var ht in it){var yt=(Qe=g.getFromId(ue,ht))&&Qe._constraintGroup;if(yt)for(var qt in ct.calc=!0,yt)it[qt]||(g.getFromId(ue,qt)._constraintShrinkable=!0)}(le(ue)||ge.height||ge.width)&&(ct.plot=!0);var Et=Ee.shapes;for(we=0;we1;)if(we.pop(),(be=d(ge,we.join(".")+".uirevision").get())!==void 0)return be;return ge.uirevision}function ce(ue,ge){for(var be=0;be=ke.length?ke[0]:ke[Ie]:ke}function De(Ie){return Array.isArray(Ae)?Ie>=Ae.length?Ae[0]:Ae[Ie]:Ae}function Re(Ie,Be){var Ue=0;return function(){if(Ie&&++Ue===Be)return Ie()}}return we._frameWaitingCnt===void 0&&(we._frameWaitingCnt=0),new Promise(function(Ie,Be){function Ue(){ue.emit("plotly_animating"),we._lastFrameAt=-1/0,we._timeToNext=0,we._runningTransitions=0,we._currentFrame=null;var Je=function(){we._animationRaf=window.requestAnimationFrame(Je),Date.now()-we._lastFrameAt>we._timeToNext&&function(){we._currentFrame&&we._currentFrame.onComplete&&we._currentFrame.onComplete();var ut=we._currentFrame=we._frameQueue.shift();if(ut){var pt=ut.name?ut.name.toString():null;ue._fullLayout._currentFrame=pt,we._lastFrameAt=Date.now(),we._timeToNext=ut.frameOpts.duration,v.transition(ue,ut.frame.data,ut.frame.layout,P.coerceTraceIndices(ue,ut.frame.traces),ut.frameOpts,ut.transitionOpts).then(function(){ut.onComplete&&ut.onComplete()}),ue.emit("plotly_animatingframe",{name:pt,frame:ut.frame,animation:{frame:ut.frameOpts,transition:ut.transitionOpts}})}else ue.emit("plotly_animated"),window.cancelAnimationFrame(we._animationRaf),we._animationRaf=null}()};Je()}var qe,Ye,at=0;function lt(Je){return Array.isArray(ke)?at>=ke.length?Je.transitionOpts=ke[at]:Je.transitionOpts=ke[0]:Je.transitionOpts=ke,at++,Je}var ct=[],bt=ge==null,ze=Array.isArray(ge);if(bt||ze||!u.isPlainObject(ge)){if(bt||["string","number"].indexOf(typeof ge)!==-1)for(qe=0;qe0&&itit)&&kt.push(Ye);ct=kt}}ct.length>0?function(Je){if(Je.length!==0){for(var ut=0;ut=0;we--)if(u.isPlainObject(ge[we])){var qe=ge[we].name,Ye=(Re[qe]||Ue[qe]||{}).name,at=ge[we].name,lt=Re[Ye]||Ue[Ye];Ye&&at&&typeof at=="number"&<&&F<5&&(F++,u.warn('addFrames: overwriting frame "'+(Re[Ye]||Ue[Ye]).name+'" with a frame whose name of type "number" also equates to "'+Ye+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),F===5&&u.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Ue[qe]={name:qe},Be.push({frame:v.supplyFrameDefaults(ge[we]),index:be&&be[we]!==void 0&&be[we]!==null?be[we]:Ie+we})}Be.sort(function(Je,ut){return Je.index>ut.index?-1:Je.index=0;we--){if(typeof(ke=Be[we].frame).name=="number"&&u.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!ke.name)for(;Re[ke.name="frame "+ue._transitionData._counter++];);if(Re[ke.name]){for(Ae=0;Ae=0;be--)we=ge[be],Ae.push({type:"delete",index:we}),Ee.unshift({type:"insert",index:we,value:ke[we]});var De=v.modifyFrames,Re=v.modifyFrames,Ie=[ue,Ee],Be=[ue,Ae];return p&&p.add(ue,De,Ie,Re,Be),v.modifyFrames(ue,Ae)},a.addTraces=function ue(ge,be,we){ge=u.getGraphDiv(ge);var ke,Ae,Ee=[],De=a.deleteTraces,Re=ue,Ie=[ge,Ee],Be=[ge,be];for(function(Ue,qe,Ye){var at,lt;if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(qe===void 0)throw new Error("traces must be defined.");for(Array.isArray(qe)||(qe=[qe]),at=0;at=0&&Be=0&&Be=$.length)return!1;if(R.dimensions===2){if(A++,F.length===A)return R;var j=F[A];if(!S(j))return!1;R=$[B][j]}else R=$[B]}else R=$}}return R}function S(R){return R===Math.round(R)&&R>=0}function C(){var R,F,A={};for(R in y(A,u),l.subplotsRegistry)if((F=l.subplotsRegistry[R]).layoutAttributes)if(Array.isArray(F.attr))for(var z=0;z=j.length)return!1;z=(A=(l.transformsRegistry[j[N].type]||{}).attributes)&&A[F[2]],$=3}else{var E=R._module;if(E||(E=(l.modules[R.type||s.type.dflt]||{})._module),!E)return!1;if(!(z=(A=E.attributes)&&A[B])){var W=E.basePlotModule;W&&W.attributes&&(z=W.attributes[B])}z||(z=s[B])}return M(z,F,$)},a.getLayoutValObject=function(R,F){var A=function(z,B){var $,j,N,E,W=z._basePlotModules;if(W){var G;for($=0;$=v&&(y._input||{})._templateitemname;b&&(g=v);var x,_=m+"["+g+"]";function w(){x={},b&&(x[_]={},x[_][s]=b)}function k(M,S){b?l.nestedProperty(x[_],M).set(S):x[_+"."+M]=S}function T(){var M=x;return w(),M}return w(),{modifyBase:function(M,S){x[M]=S},modifyItem:k,getUpdateObj:T,applyUpdate:function(M,S){M&&k(M,S);var C=T();for(var P in C)l.nestedProperty(p,P).set(C[P])}}}},61549:function(o,a,n){var l=n(39898),f=n(73972),s=n(74875),u=n(71828),d=n(63893),h=n(33306),p=n(7901),m=n(91424),y=n(92998),v=n(64168),g=n(89298),b=n(18783),x=n(99082),_=x.enforce,w=x.clean,k=n(71739).doAutoRange,T="start";function M(O,R,F){for(var A=0;A=O[1]||z[1]<=O[0])&&B[0]R[0])return!0}return!1}function S(O){var R,F,A,z,B,$,j=O._fullLayout,N=j._size,E=N.p,W=g.list(O,"",!0);if(j._paperdiv.style({width:O._context.responsive&&j.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":j.width+"px",height:O._context.responsive&&j.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":j.height+"px"}).selectAll(".main-svg").call(m.setSize,j.width,j.height),O._context.setBackground(O,j.paper_bgcolor),a.drawMainTitle(O),v.manage(O),!j._has("cartesian"))return s.previousPromises(O);function G(Ie,Be,Ue){var qe=Ie._lw/2;return Ie._id.charAt(0)==="x"?Be?Ue==="top"?Be._offset-E-qe:Be._offset+Be._length+E+qe:N.t+N.h*(1-(Ie.position||0))+qe%1:Be?Ue==="right"?Be._offset+Be._length+E+qe:Be._offset-E-qe:N.l+N.w*(Ie.position||0)+qe%1}for(R=0;R.5?"t":"b",ee=G._fullLayout.margin[te],U=0;return L.yref==="paper"?U=q+L.pad.t+L.pad.b:L.yref==="container"&&(U=function(Q,Y,Z,X,re){var ie=0;return Z==="middle"&&(ie+=re/2),Q==="t"?(Z==="top"&&(ie+=re),ie+=X-Y*X):(Z==="bottom"&&(ie+=re),ie+=Y*X),ie}(te,H,V,G._fullLayout.height,q)+L.pad.t+L.pad.b),U>ee?U:0}(O,F,E);W>0&&(function(G,L,q,H){var V="title.automargin",te=G._fullLayout.title,ee=te.y>.5?"t":"b",U={x:te.x,y:te.y,t:0,b:0},Q={};te.yref==="paper"&&function(Y,Z,X,re,ie){var le=Z.yref==="paper"?Y._fullLayout._size.h:Y._fullLayout.height,se=u.isTopAnchor(Z)?re:re-ie,pe=X==="b"?le-se:se;return!(u.isTopAnchor(Z)&&X==="t"||u.isBottomAnchor(Z)&&X==="b")&&peN?D.push({code:"unused",traceType:A,templateCount:j,dataCount:N}):N>j&&D.push({code:"reused",traceType:A,templateCount:j,dataCount:N})}}else D.push({code:"data"});if(function E(W,G){for(var L in W)if(L.charAt(0)!=="_"){var q=W[L],H=x(W,L,G);f(q)?(Array.isArray(W)&&q._template===!1&&q.templateitemname&&D.push({code:"missing",path:H,templateitemname:q.templateitemname}),E(q,H)):Array.isArray(q)&&_(q)&&E(q,H)}}({data:R,layout:O},""),D.length)return D.map(w)}},403:function(o,a,n){var l=n(92770),f=n(72391),s=n(74875),u=n(71828),d=n(25095),h=n(5900),p=n(70942),m=n(11506).version,y={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};o.exports=function(v,g){var b,x,_,w;function k(N){return!(N in g)||u.validate(g[N],y[N])}if(g=g||{},u.isPlainObject(v)?(b=v.data||[],x=v.layout||{},_=v.config||{},w={}):(v=u.getGraphDiv(v),b=u.extendDeep([],v.data),x=u.extendDeep({},v.layout),_=v._context,w=v._fullLayout||{}),!k("width")&&g.width!==null||!k("height")&&g.height!==null)throw new Error("Height and width should be pixel values.");if(!k("format"))throw new Error("Export format is not "+u.join2(y.format.values,", "," or ")+".");var T={};function M(N,E){return u.coerce(g,T,y,N,E)}var S=M("format"),C=M("width"),P=M("height"),D=M("scale"),O=M("setBackground"),R=M("imageDataOnly"),F=document.createElement("div");F.style.position="absolute",F.style.left="-5000px",document.body.appendChild(F);var A=u.extendFlat({},x);C?A.width=C:g.width===null&&l(w.width)&&(A.width=w.width),P?A.height=P:g.height===null&&l(w.height)&&(A.height=w.height);var z=u.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:O}),B=d.getRedrawFunc(F);function $(){return new Promise(function(N){setTimeout(N,d.getDelay(F._fullLayout))})}function j(){return new Promise(function(N,E){var W=h(F,S,D),G=F._fullLayout.width,L=F._fullLayout.height;function q(){f.purge(F),document.body.removeChild(F)}if(S==="full-json"){var H=s.graphJson(F,!1,"keepdata","object",!0,!0);return H.version=m,H=JSON.stringify(H),q(),N(R?H:d.encodeJSON(H))}if(q(),S==="svg")return N(R?W:d.encodeSVG(W));var V=document.createElement("canvas");V.id=u.randstr(),p({format:S,width:G,height:L,scale:D,canvas:V,svg:W,promise:!0}).then(N).catch(E)})}return new Promise(function(N,E){f.newPlot(F,b,A,z).then(B).then($).then(j).then(function(W){N(function(G){return R?G.replace(d.IMAGE_URL_PREFIX,""):G}(W))}).catch(function(W){E(W)})})}},84936:function(o,a,n){var l=n(71828),f=n(74875),s=n(86281),u=n(72075).dfltConfig,d=l.isPlainObject,h=Array.isArray,p=l.isArrayOrTypedArray;function m(k,T,M,S,C,P){P=P||[];for(var D=Object.keys(k),O=0;Oz.length&&S.push(g("unused",C,F.concat(z.length)));var W,G,L,q,H,V=z.length,te=Array.isArray(E);if(te&&(V=Math.min(V,E.length)),B.dimensions===2)for(G=0;Gz[G].length&&S.push(g("unused",C,F.concat(G,z[G].length)));var ee=z[G].length;for(W=0;W<(te?Math.min(ee,E[G].length):ee);W++)L=te?E[G][W]:E,q=A[G][W],H=z[G][W],l.validate(q,L)?H!==q&&H!==+q&&S.push(g("dynamic",C,F.concat(G,W),q,H)):S.push(g("value",C,F.concat(G,W),q))}else S.push(g("array",C,F.concat(G),A[G]));else for(G=0;G1&&P.push(g("object","layout"))),f.supplyDefaults(D);for(var O=D._fullData,R=M.length,F=0;F0&&Math.round(x)===x))return{vals:y};g=x}for(var _=p.calendar,w=v==="start",k=v==="end",T=h[m+"period0"],M=s(T,_)||0,S=[],C=[],P=[],D=y.length,O=0;Oz;)A=u(A,-g,_);for(;A<=z;)A=u(A,g,_);F=u(A,-g,_)}else{for(A=M+(R=Math.round((z-M)/b))*b;A>z;)A-=b;for(;A<=z;)A+=b;F=A-b}S[O]=w?F:k?A:(F+A)/2,C[O]=F,P[O]=A}return{vals:S,starts:C,ends:P}}},89502:function(o){o.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(o,a,n){var l=n(39898),f=n(92770),s=n(71828),u=n(50606).FP_SAFE,d=n(73972),h=n(91424),p=n(41675),m=p.getFromId,y=p.isLinked;function v(O,R){var F,A,z=[],B=O._fullLayout,$=b(B,R,0),j=b(B,R,1),N=_(O,R),E=N.min,W=N.max;if(E.length===0||W.length===0)return s.simpleMap(R.range,R.r2l);var G=E[0].val,L=W[0].val;for(F=1;F0&&((Y=le-$(te)-j(ee))>se?Z/Y>pe&&(U=te,Q=ee,pe=Z/Y):Z/le>pe&&(U={val:te.val,nopad:1},Q={val:ee.val,nopad:1},pe=Z/le));if(G===L){var Te=G-1,Se=G+1;if(re)if(G===0)z=[0,1];else{var Oe=(G>0?W:E).reduce(function(ce,ye){return Math.max(ce,j(ye))},0),Me=G/(1-Math.min(.5,Oe/le));z=G>0?[0,Me]:[Me,0]}else z=ie?[Math.max(0,Te),Math.max(1,Se)]:[Te,Se]}else re?(U.val>=0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:0,nopad:1})):ie&&(U.val-pe*$(U)<0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:1,nopad:1})),pe=(Q.val-U.val-g(R,te.val,ee.val))/(le-$(U)-j(Q)),z=[U.val-pe*$(U),Q.val+pe*j(Q)];return z=D(z,R),R.limitRange&&R.limitRange(),H&&z.reverse(),s.simpleMap(z,R.l2r||Number)}function g(O,R,F){var A=0;if(O.rangebreaks)for(var z=O.locateBreaks(R,F),B=0;B0?F.ppadplus:F.ppadminus)||F.ppad||0),X=Y((O._m>0?F.ppadminus:F.ppadplus)||F.ppad||0),re=Y(F.vpadplus||F.vpad),ie=Y(F.vpadminus||F.vpad);if(!U){if(W=1/0,G=-1/0,ee)for(A=0;A0&&(W=z),z>G&&z-u&&(W=z),z>G&&z=pe;A--)se(A);return{min:L,max:q,opts:F}},concatExtremes:_};var x=3;function _(O,R,F){var A,z,B,$=R._id,j=O._fullData,N=O._fullLayout,E=[],W=[];function G(te,ee){for(A=0;A=F&&(E.extrapad||!$)){j=!1;break}z(R,E.val)&&E.pad<=F&&($||!E.extrapad)&&(O.splice(N,1),N--)}if(j){var W=B&&R===0;O.push({val:R,pad:W?0:F,extrapad:!W&&$})}}function M(O){return f(O)&&Math.abs(O)=R}function P(O,R,F){return R===void 0||F===void 0||(R=O.d2l(R))=N&&(B=N,F=N),$<=N&&($=N,A=N)}}return F=function(E,W){var G=W.autorangeoptions;return G&&G.minallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.minallowed:G&&G.clipmin!==void 0&&P(W,G.clipmin,G.clipmax)?Math.max(E,W.d2l(G.clipmin)):E}(F,R),A=function(E,W){var G=W.autorangeoptions;return G&&G.maxallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.maxallowed:G&&G.clipmax!==void 0&&P(W,G.clipmin,G.clipmax)?Math.min(E,W.d2l(G.clipmax)):E}(A,R),[F,A]}},23074:function(o){o.exports=function(a,n,l){var f,s;if(l){var u=n==="reversed"||n==="min reversed"||n==="max reversed";f=l[u?1:0],s=l[u?0:1]}var d=a("autorangeoptions.minallowed",s===null?f:void 0),h=a("autorangeoptions.maxallowed",f===null?s:void 0);d===void 0&&a("autorangeoptions.clipmin"),h===void 0&&a("autorangeoptions.clipmax"),a("autorangeoptions.include")}},89298:function(o,a,n){var l=n(39898),f=n(92770),s=n(74875),u=n(73972),d=n(71828),h=d.strTranslate,p=n(63893),m=n(92998),y=n(7901),v=n(91424),g=n(13838),b=n(66287),x=n(50606),_=x.ONEMAXYEAR,w=x.ONEAVGYEAR,k=x.ONEMINYEAR,T=x.ONEMAXQUARTER,M=x.ONEAVGQUARTER,S=x.ONEMINQUARTER,C=x.ONEMAXMONTH,P=x.ONEAVGMONTH,D=x.ONEMINMONTH,O=x.ONEWEEK,R=x.ONEDAY,F=R/2,A=x.ONEHOUR,z=x.ONEMIN,B=x.ONESEC,$=x.MINUS_SIGN,j=x.BADNUM,N={K:"zeroline"},E={K:"gridline",L:"path"},W={K:"minor-gridline",L:"path"},G={K:"tick",L:"path"},L={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H=n(18783),V=H.MID_SHIFT,te=H.CAP_SHIFT,ee=H.LINE_SPACING,U=H.OPPOSITE_SIDE,Q=o.exports={};Q.setConvert=n(21994);var Y=n(4322),Z=n(41675),X=Z.idSort,re=Z.isLinked;Q.id2name=Z.id2name,Q.name2id=Z.name2id,Q.cleanId=Z.cleanId,Q.list=Z.list,Q.listIds=Z.listIds,Q.getFromId=Z.getFromId,Q.getFromTrace=Z.getFromTrace;var ie=n(71739);Q.getAutoRange=ie.getAutoRange,Q.findExtremes=ie.findExtremes;var le=1e-4;function se(ve){var _e=(ve[1]-ve[0])*le;return[ve[0]-_e,ve[1]+_e]}Q.coerceRef=function(ve,_e,Ve,We,Ze,Ge){var Ke=We.charAt(We.length-1),nt=Ve._fullLayout._subplots[Ke+"axis"],st=We+"ref",mt={};return Ze||(Ze=nt[0]||(typeof Ge=="string"?Ge:Ge[0])),Ge||(Ge=Ze),nt=nt.concat(nt.map(function(tt){return tt+" domain"})),mt[st]={valType:"enumerated",values:nt.concat(Ge?typeof Ge=="string"?[Ge]:Ge:[]),dflt:Ze},d.coerce(ve,_e,mt,st)},Q.getRefType=function(ve){return ve===void 0?ve:ve==="paper"?"paper":ve==="pixel"?"pixel":/( domain)$/.test(ve)?"domain":"range"},Q.coercePosition=function(ve,_e,Ve,We,Ze,Ge){var Ke,nt;if(Q.getRefType(We)!=="range")Ke=d.ensureNumber,nt=Ve(Ze,Ge);else{var st=Q.getFromId(_e,We);nt=Ve(Ze,Ge=st.fraction2r(Ge)),Ke=st.cleanPos}ve[Ze]=Ke(nt)},Q.cleanPosition=function(ve,_e,Ve){return(Ve==="paper"||Ve==="pixel"?d.ensureNumber:Q.getFromId(_e,Ve).cleanPos)(ve)},Q.redrawComponents=function(ve,_e){_e=_e||Q.listIds(ve);var Ve=ve._fullLayout;function We(Ze,Ge,Ke,nt){for(var st=u.getComponentMethod(Ze,Ge),mt={},tt=0;tt<_e.length;tt++)for(var Ft=Ve[Q.id2name(_e[tt])][Ke],Vt=0;VtVe&&tt2e-6||((Ve-ve._forceTick0)/ve._minDtick%1+1.000001)%1>2e-6)&&(ve._minDtick=0)):ve._minDtick=0},Q.saveRangeInitial=function(ve,_e){for(var Ve=Q.list(ve,"",!0),We=!1,Ze=0;Ze.3*$t||Lt(qt)||Lt(Et))){var Yt=yt.dtick/2;gt+=gt+Yt.8){var Tt=Number(yt.substr(1));jt.exactYears>.8&&Tt%12==0?gt=Q.tickIncrement(gt,"M6","reverse")+1.5*R:jt.exactMonths>.8?gt=Q.tickIncrement(gt,"M1","reverse")+15.5*R:gt-=F;var Ot=Q.tickIncrement(gt,yt);if(Ot<=qt)return Ot}return gt}(Dt,ve,Nt,nt,Ze)),St=Dt;St<=st;)St=Q.tickIncrement(St,Nt,!1,Ze);return{start:_e.c2r(Dt,0,Ze),end:_e.c2r(St,0,Ze),size:Nt,_dataSpan:st-nt}},Q.prepMinorTicks=function(ve,_e,Ve){if(!_e.minor.dtick){delete ve.dtick;var We,Ze=_e.dtick&&f(_e._tmin);if(Ze){var Ge=Q.tickIncrement(_e._tmin,_e.dtick,!0);We=[_e._tmin,.99*Ge+.01*_e._tmin]}else{var Ke=d.simpleMap(_e.range,_e.r2l);We=[Ke[0],.8*Ke[0]+.2*Ke[1]]}if(ve.range=d.simpleMap(We,_e.l2r),ve._isMinor=!0,Q.prepTicks(ve,Ve),Ze){var nt=f(_e.dtick),st=f(ve.dtick),mt=nt?_e.dtick:+_e.dtick.substring(1),tt=st?ve.dtick:+ve.dtick.substring(1);nt&&st?Oe(mt,tt)?mt===2*O&&tt===2*R&&(ve.dtick=O):mt===2*O&&tt===3*R?ve.dtick=O:mt!==O||(_e._input.minor||{}).nticks?Me(mt/tt,2.5)?ve.dtick=mt/2:ve.dtick=mt:ve.dtick=R:String(_e.dtick).charAt(0)==="M"?st?ve.dtick="M1":Oe(mt,tt)?mt>=12&&tt===2&&(ve.dtick="M3"):ve.dtick=_e.dtick:String(ve.dtick).charAt(0)==="L"?String(_e.dtick).charAt(0)==="L"?Oe(mt,tt)||(ve.dtick=Me(mt/tt,2.5)?_e.dtick/2:_e.dtick):ve.dtick="D1":ve.dtick==="D2"&&+_e.dtick>1&&(ve.dtick=1)}ve.range=_e.range}_e.minor._tick0Init===void 0&&(ve.tick0=_e.tick0)},Q.prepTicks=function(ve,_e){var Ve=d.simpleMap(ve.range,ve.r2l,void 0,void 0,_e);if(ve.tickmode==="auto"||!ve.dtick){var We,Ze=ve.nticks;Ze||(ve.type==="category"||ve.type==="multicategory"?(We=ve.tickfont?d.bigFont(ve.tickfont.size||12):15,Ze=ve._length/We):(We=ve._id.charAt(0)==="y"?40:80,Ze=d.constrain(ve._length/We,4,9)+1),ve._name==="radialaxis"&&(Ze*=2)),ve.minor&&ve.minor.tickmode!=="array"||ve.tickmode==="array"&&(Ze*=100),ve._roughDTick=Math.abs(Ve[1]-Ve[0])/Ze,Q.autoTicks(ve,ve._roughDTick),ve._minDtick>0&&ve.dtick<2*ve._minDtick&&(ve.dtick=ve._minDtick,ve.tick0=ve.l2r(ve._forceTick0))}ve.ticklabelmode==="period"&&function(Ge){var Ke;function nt(){return!(f(Ge.dtick)||Ge.dtick.charAt(0)!=="M")}var st=nt(),mt=Q.getTickFormat(Ge);if(mt){var tt=Ge._dtickInit!==Ge.dtick;/%[fLQsSMX]/.test(mt)||(/%[HI]/.test(mt)?(Ke=A,tt&&!st&&Ge.dtick=(ht?0:1);yt--){var qt=!yt;yt?(ve._dtickInit=ve.dtick,ve._tick0Init=ve.tick0):(ve.minor._dtickInit=ve.minor.dtick,ve.minor._tick0Init=ve.minor.tick0);var Et=yt?ve:d.extendFlat({},ve,ve.minor);if(qt?Q.prepMinorTicks(Et,ve,_e):Q.prepTicks(Et,_e),Et.tickmode!=="array")if(Et.tickmode!=="sync"){var jt=se(st),Tt=jt[0],Ot=jt[1],At=f(Et.dtick),Lt=Ze==="log"&&!(At||Et.dtick.charAt(0)==="L"),Rt=Q.tickFirst(Et,_e);if(yt){if(ve._tmin=Rt,Rt=Ot:Bt<=Ot;Bt=Q.tickIncrement(Bt,Wt,mt,Ge)){if(yt&&$t++,Et.rangebreaks&&!mt){if(Bt=Ft)break}if(Dt.length>Vt||Bt===Xt)break;Xt=Bt;var tn={value:Bt};yt?(Lt&&Bt!==(0|Bt)&&(tn.simpleLabel=!0),Ke>1&&$t%Ke&&(tn.skipLabel=!0),Dt.push(tn)):(tn.minor=!0,gt.push(tn))}}else Dt=[],St=J(ve);else yt?(Dt=[],St=ne(ve)):(gt=[],Nt=ne(ve))}if(ht&&!(ve.minor.ticks==="inside"&&ve.ticks==="outside"||ve.minor.ticks==="outside"&&ve.ticks==="inside")){for(var cn=Dt.map(function(lr){return lr.value}),ln=[],an=0;an0?(la=ur-1,An=ur):(la=ur,An=ur);var on,$n=lr[la].value,Ar=lr[An].value,Ln=Math.abs(Ar-$n),Bn=Or||Ln,jn=0;Bn>=k?jn=Ln>=k&&Ln<=_?Ln:w:Or===M&&Bn>=S?jn=Ln>=S&&Ln<=T?Ln:M:Bn>=D?jn=Ln>=D&&Ln<=C?Ln:P:Or===O&&Bn>=O?jn=O:Bn>=R?jn=R:Or===F&&Bn>=F?jn=F:Or===A&&Bn>=A&&(jn=A),jn>=Ln&&(jn=Ln,on=!0);var Un=kr+jn;if(ti.rangebreaks&&jn>0){for(var Lr=0,xr=0;xr<84;xr++){var Mr=(xr+.5)/84;ti.maskBreaks(kr*(1-Mr)+Mr*Un)!==j&&Lr++}(jn*=Lr/84)||(lr[ur].drop=!0),on&&Ln>O&&(jn=Ln)}(jn>0||ur===0)&&(lr[ur].periodX=kr+jn/2)}}(Dt,ve,ve._definedDelta),ve.rangebreaks){var Kt=ve._id.charAt(0)==="y",On=1;ve.tickmode==="auto"&&(On=ve.tickfont?ve.tickfont.size:12);var Tn=NaN;for(Ve=Dt.length-1;Ve>-1;Ve--)if(Dt[Ve].drop)Dt.splice(Ve,1);else{Dt[Ve].value=It(Dt[Ve].value,ve);var Dn=ve.c2p(Dt[Ve].value);(Kt?Tn>Dn-On:TnFt||EnFt&&(wn.periodX=Ft),En10||We.substr(5)!=="01-01"?ve._tickround="d":ve._tickround=+_e.substr(1)%12==0?"y":"m";else if(_e>=R&&Ze<=10||_e>=15*R)ve._tickround="d";else if(_e>=z&&Ze<=16||_e>=A)ve._tickround="M";else if(_e>=B&&Ze<=19||_e>=z)ve._tickround="S";else{var Ge=ve.l2r(Ve+_e).replace(/^-/,"").length;ve._tickround=Math.max(Ze,Ge)-20,ve._tickround<0&&(ve._tickround=4)}}else if(f(_e)||_e.charAt(0)==="L"){var Ke=ve.range.map(ve.r2d||Number);f(_e)||(_e=Number(_e.substr(1))),ve._tickround=2-Math.floor(Math.log(_e)/Math.LN10+.01);var nt=Math.max(Math.abs(Ke[0]),Math.abs(Ke[1])),st=Math.floor(Math.log(nt)/Math.LN10+.01),mt=ve.minexponent===void 0?3:ve.minexponent;Math.abs(st)>mt&&(Ie(ve.exponentformat)&&!Be(st)?ve._tickexponent=3*Math.round((st-1)/3):ve._tickexponent=st)}else ve._tickround=null}function De(ve,_e,Ve){var We=ve.tickfont||{};return{x:_e,dx:0,dy:0,text:Ve||"",fontSize:We.size,font:We.family,fontColor:We.color}}Q.autoTicks=function(ve,_e,Ve){var We;function Ze(Ft){return Math.pow(Ft,Math.floor(Math.log(_e)/Math.LN10))}if(ve.type==="date"){ve.tick0=d.dateTick0(ve.calendar,0);var Ge=2*_e;if(Ge>w)_e/=w,We=Ze(10),ve.dtick="M"+12*Ae(_e,We,de);else if(Ge>P)_e/=P,ve.dtick="M"+Ae(_e,1,xe);else if(Ge>R){if(ve.dtick=Ae(_e,R,ve._hasDayOfWeekBreaks?[1,2,7,14]:ge),!Ve){var Ke=Q.getTickFormat(ve),nt=ve.ticklabelmode==="period";nt&&(ve._rawTick0=ve.tick0),/%[uVW]/.test(Ke)?ve.tick0=d.dateTick0(ve.calendar,2):ve.tick0=d.dateTick0(ve.calendar,1),nt&&(ve._dowTick0=ve.tick0)}}else Ge>A?ve.dtick=Ae(_e,A,xe):Ge>z?ve.dtick=Ae(_e,z,ue):Ge>B?ve.dtick=Ae(_e,B,ue):(We=Ze(10),ve.dtick=Ae(_e,We,de))}else if(ve.type==="log"){ve.tick0=0;var st=d.simpleMap(ve.range,ve.r2l);if(ve._isMinor&&(_e*=1.5),_e>.7)ve.dtick=Math.ceil(_e);else if(Math.abs(st[1]-st[0])<1){var mt=1.5*Math.abs((st[1]-st[0])/_e);_e=Math.abs(Math.pow(10,st[1])-Math.pow(10,st[0]))/mt,We=Ze(10),ve.dtick="L"+Ae(_e,We,de)}else ve.dtick=_e>.3?"D2":"D1"}else ve.type==="category"||ve.type==="multicategory"?(ve.tick0=0,ve.dtick=Math.ceil(Math.max(_e,1))):pt(ve)?(ve.tick0=0,We=1,ve.dtick=Ae(_e,We,ke)):(ve.tick0=0,We=Ze(10),ve.dtick=Ae(_e,We,de));if(ve.dtick===0&&(ve.dtick=1),!f(ve.dtick)&&typeof ve.dtick!="string"){var tt=ve.dtick;throw ve.dtick=1,"ax.dtick error: "+String(tt)}},Q.tickIncrement=function(ve,_e,Ve,We){var Ze=Ve?-1:1;if(f(_e))return d.increment(ve,Ze*_e);var Ge=_e.charAt(0),Ke=Ze*Number(_e.substr(1));if(Ge==="M")return d.incrementMonth(ve,Ke,We);if(Ge==="L")return Math.log(Math.pow(10,ve)+Ke)/Math.LN10;if(Ge==="D"){var nt=_e==="D2"?we:be,st=ve+.01*Ze,mt=d.roundUp(d.mod(st,1),nt,Ve);return Math.floor(st)+Math.log(l.round(Math.pow(10,mt),1))/Math.LN10}throw"unrecognized dtick "+String(_e)},Q.tickFirst=function(ve,_e){var Ve=ve.r2l||Number,We=d.simpleMap(ve.range,Ve,void 0,void 0,_e),Ze=We[1] ")}else gt._prevDateHead=Tt,Ot+="
"+Tt;ht.text=Ot}(ve,Ge,Ve,nt):st==="log"?function(gt,ht,yt,qt,Et){var jt=gt.dtick,Tt=ht.x,Ot=gt.tickformat,At=typeof jt=="string"&&jt.charAt(0);if(Et==="never"&&(Et=""),qt&&At!=="L"&&(jt="L3",At="L"),Ot||At==="L")ht.text=Ue(Math.pow(10,Tt),gt,Et,qt);else if(f(jt)||At==="D"&&d.mod(Tt+.01,1)<.1){var Lt=Math.round(Tt),Rt=Math.abs(Lt),$t=gt.exponentformat;$t==="power"||Ie($t)&&Be(Lt)?(ht.text=Lt===0?1:Lt===1?"10":"10"+(Lt>1?"":$)+Rt+"",ht.fontSize*=1.25):($t==="e"||$t==="E")&&Rt>2?ht.text="1"+$t+(Lt>0?"+":$)+Rt:(ht.text=Ue(Math.pow(10,Tt),gt,"","fakehover"),jt==="D1"&>._id.charAt(0)==="y"&&(ht.dy-=ht.fontSize/6))}else{if(At!=="D")throw"unrecognized dtick "+String(jt);ht.text=String(Math.round(Math.pow(10,d.mod(Tt,1)))),ht.fontSize*=.75}if(gt.dtick==="D1"){var Yt=String(ht.text).charAt(0);Yt!=="0"&&Yt!=="1"||(gt._id.charAt(0)==="y"?ht.dx-=ht.fontSize/4:(ht.dy+=ht.fontSize/2,ht.dx+=(gt.range[1]>gt.range[0]?1:-1)*ht.fontSize*(Tt<0?.5:.25)))}}(ve,Ge,0,nt,St):st==="category"?function(gt,ht){var yt=gt._categories[Math.round(ht.x)];yt===void 0&&(yt=""),ht.text=String(yt)}(ve,Ge):st==="multicategory"?function(gt,ht,yt){var qt=Math.round(ht.x),Et=gt._categories[qt]||[],jt=Et[1]===void 0?"":String(Et[1]),Tt=Et[0]===void 0?"":String(Et[0]);yt?ht.text=Tt+" - "+jt:(ht.text=jt,ht.text2=Tt)}(ve,Ge,Ve):pt(ve)?function(gt,ht,yt,qt,Et){if(gt.thetaunit!=="radians"||yt)ht.text=Ue(ht.x,gt,Et,qt);else{var jt=ht.x/180;if(jt===0)ht.text="0";else{var Tt=function(At){function Lt(Xt,Bt){return Math.abs(Xt-Bt)<=1e-6}var Rt=function(Xt){for(var Bt=1;!Lt(Math.round(Xt*Bt)/Bt,Xt);)Bt*=10;return Bt}(At),$t=At*Rt,Yt=Math.abs(function Xt(Bt,Wt){return Lt(Wt,0)?Bt:Xt(Wt,Bt%Wt)}($t,Rt));return[Math.round($t/Yt),Math.round(Rt/Yt)]}(jt);if(Tt[1]>=100)ht.text=Ue(d.deg2rad(ht.x),gt,Et,qt);else{var Ot=ht.x<0;Tt[1]===1?Tt[0]===1?ht.text="π":ht.text=Tt[0]+"π":ht.text=["",Tt[0],"","⁄","",Tt[1],"","π"].join(""),Ot&&(ht.text=$+ht.text)}}}}(ve,Ge,Ve,nt,St):function(gt,ht,yt,qt,Et){Et==="never"?Et="":gt.showexponent==="all"&&Math.abs(ht.x/gt.dtick)<1e-6&&(Et="hide"),ht.text=Ue(ht.x,gt,Et,qt)}(ve,Ge,0,nt,St),We||(ve.tickprefix&&!Vt(ve.showtickprefix)&&(Ge.text=ve.tickprefix+Ge.text),ve.ticksuffix&&!Vt(ve.showticksuffix)&&(Ge.text+=ve.ticksuffix)),ve.labelalias&&ve.labelalias.hasOwnProperty(Ge.text)){var Nt=ve.labelalias[Ge.text];typeof Nt=="string"&&(Ge.text=Nt)}if(ve.tickson==="boundaries"||ve.showdividers){var Dt=function(gt){var ht=ve.l2p(gt);return ht>=0&&ht<=ve._length?gt:null};Ge.xbnd=[Dt(Ge.x-.5),Dt(Ge.x+ve.dtick-.5)]}return Ge},Q.hoverLabelText=function(ve,_e,Ve){Ve&&(ve=d.extendFlat({},ve,{hoverformat:Ve}));var We=Array.isArray(_e)?_e[0]:_e,Ze=Array.isArray(_e)?_e[1]:void 0;if(Ze!==void 0&&Ze!==We)return Q.hoverLabelText(ve,We,Ve)+" - "+Q.hoverLabelText(ve,Ze,Ve);var Ge=ve.type==="log"&&We<=0,Ke=Q.tickText(ve,ve.c2l(Ge?-We:We),"hover").text;return Ge?We===0?"0":$+Ke:Ke};var Re=["f","p","n","μ","m","","k","M","G","T"];function Ie(ve){return ve==="SI"||ve==="B"}function Be(ve){return ve>14||ve<-15}function Ue(ve,_e,Ve,We){var Ze=ve<0,Ge=_e._tickround,Ke=Ve||_e.exponentformat||"B",nt=_e._tickexponent,st=Q.getTickFormat(_e),mt=_e.separatethousands;if(We){var tt={exponentformat:Ke,minexponent:_e.minexponent,dtick:_e.showexponent==="none"?_e.dtick:f(ve)&&Math.abs(ve)||1,range:_e.showexponent==="none"?_e.range.map(_e.r2d):[0,ve||1]};Ee(tt),Ge=(Number(tt._tickround)||0)+4,nt=tt._tickexponent,_e.hoverformat&&(st=_e.hoverformat)}if(st)return _e._numFormat(st)(ve).replace(/-/g,$);var Ft,Vt=Math.pow(10,-Ge)/2;if(Ke==="none"&&(nt=0),(ve=Math.abs(ve))"+Ft+"":Ke==="B"&&nt===9?ve+="B":Ie(Ke)&&(ve+=Re[nt/3+5])),Ze?$+ve:ve}function qe(ve,_e){if(ve){var Ve=Object.keys(q).reduce(function(We,Ze){return _e.indexOf(Ze)!==-1&&q[Ze].forEach(function(Ge){We[Ge]=1}),We},{});Object.keys(ve).forEach(function(We){Ve[We]||(We.length===1?ve[We]=0:delete ve[We])})}}function Ye(ve,_e){for(var Ve=[],We={},Ze=0;Ze<_e.length;Ze++){var Ge=_e[Ze];We[Ge.text2]?We[Ge.text2].push(Ge.x):We[Ge.text2]=[Ge.x]}for(var Ke in We)Ve.push(De(ve,d.interp(We[Ke],.5),Ke));return Ve}function at(ve){return ve.periodX!==void 0?ve.periodX:ve.x}function lt(ve){return[ve.text,ve.x,ve.axInfo,ve.font,ve.fontSize,ve.fontColor].join("_")}function ct(ve){var _e=ve.title.font.size,Ve=(ve.title.text.match(p.BR_TAG_ALL)||[]).length;return ve.title.hasOwnProperty("standoff")?Ve?_e*(te+Ve*ee):_e*te:Ve?_e*(Ve+1)*ee:_e}function bt(ve,_e){var Ve=ve.l2p(_e);return Ve>1&&Ve=Ze.min&&ve=0,ht=tt(Vt,St[1])<=0;return(Nt||gt)&&(Dt||ht)}if(ve.tickformatstops&&ve.tickformatstops.length>0)switch(ve.type){case"date":case"linear":for(_e=0;_e=Ke(Ze)))){Ve=We;break}break;case"log":for(_e=0;_e=0&&Ze.unshift(Ze.splice(mt,1).shift())}});var Ke={false:{left:0,right:0}};return d.syncOrAsync(Ze.map(function(nt){return function(){if(nt){var st=Q.getFromId(ve,nt);Ve||(Ve={}),Ve.axShifts=Ke,Ve.overlayingShiftedAx=Ge;var mt=Q.drawOne(ve,st,Ve);return st._shiftPusher&&wt(st,st._fullDepth||0,Ke,!0),st._r=st.range.slice(),st._rl=d.simpleMap(st._r,st.r2l),mt}}}))},Q.drawOne=function(ve,_e,Ve){var We,Ze,Ge,Ke=(Ve=Ve||{}).axShifts||{},nt=Ve.overlayingShiftedAx||[];_e.setScale();var st=ve._fullLayout,mt=_e._id,tt=mt.charAt(0),Ft=Q.counterLetter(mt),Vt=st._plots[_e._mainSubplot];if(Vt){if(_e._shiftPusher=_e.autoshift||nt.indexOf(_e._id)!==-1||nt.indexOf(_e.overlaying)!==-1,_e._shiftPusher&_e.anchor==="free"){var St=_e.linewidth/2||0;_e.ticks==="inside"&&(St+=_e.ticklen),wt(_e,St,Ke,!0),wt(_e,_e.shift||0,Ke,!1)}Ve.skipTitle===!0&&_e._shift!==void 0||(_e._shift=function(An,on){return An.autoshift?on[An.overlaying][An.side]:An.shift||0}(_e,Ke));var Nt=Vt[tt+"axislayer"],Dt=_e._mainLinePosition,gt=Dt+=_e._shift,ht=_e._mainMirrorPosition,yt=_e._vals=Q.calcTicks(_e),qt=[_e.mirror,gt,ht].join("_");for(We=0;We0?An.bottom-jn:0,Un))));var Lr=0,xr=0;if(_e._shiftPusher&&(Lr=Math.max(Un,An.height>0?Ln==="l"?jn-An.left:An.right-jn:0),_e.title.text!==st._dfltTitle[tt]&&(xr=(_e._titleStandoff||0)+(_e._titleScoot||0),Ln==="l"&&(xr+=ct(_e))),_e._fullDepth=Math.max(Lr,xr)),_e.automargin){on={x:0,y:0,r:0,l:0,t:0,b:0};var Mr=[0,1],Na=typeof _e._shift=="number"?_e._shift:0;if(tt==="x"){if(Ln==="b"?on[Ln]=_e._depth:(on[Ln]=_e._depth=Math.max(An.width>0?jn-An.top:0,Un),Mr.reverse()),An.width>0){var wa=An.right-(_e._offset+_e._length);wa>0&&(on.xr=1,on.r=wa);var sa=_e._offset-An.left;sa>0&&(on.xl=0,on.l=sa)}}else if(Ln==="l"?(_e._depth=Math.max(An.height>0?jn-An.left:0,Un),on[Ln]=_e._depth-Na):(_e._depth=Math.max(An.height>0?An.right-jn:0,Un),on[Ln]=_e._depth+Na,Mr.reverse()),An.height>0){var kn=An.bottom-(_e._offset+_e._length);kn>0&&(on.yb=0,on.b=kn);var Pr=_e._offset-An.top;Pr>0&&(on.yt=1,on.t=Pr)}on[Ft]=_e.anchor==="free"?_e.position:_e._anchorAxis.domain[Mr[0]],_e.title.text!==st._dfltTitle[tt]&&(on[Ln]+=ct(_e)+(_e.title.standoff||0)),_e.mirror&&_e.anchor!=="free"&&(($n={x:0,y:0,r:0,l:0,t:0,b:0})[Bn]=_e.linewidth,_e.mirror&&_e.mirror!==!0&&($n[Bn]+=Un),_e.mirror===!0||_e.mirror==="ticks"?$n[Ft]=_e._anchorAxis.domain[Mr[1]]:_e.mirror!=="all"&&_e.mirror!=="allticks"||($n[Ft]=[_e._counterDomainMin,_e._counterDomainMax][Mr[1]]))}kr&&(Ar=u.getComponentMethod("rangeslider","autoMarginOpts")(ve,_e)),typeof _e.automargin=="string"&&(qe(on,_e.automargin),qe($n,_e.automargin)),s.autoMargin(ve,Ne(_e),on),s.autoMargin(ve,Qe(_e),$n),s.autoMargin(ve,it(_e),Ar)}),d.syncOrAsync(Or)}}function la(An){var on=mt+(An||"tick");return Et[on]||(Et[on]=function($n,Ar){var Ln,Bn,jn,Un;return $n._selections[Ar].size()?(Ln=1/0,Bn=-1/0,jn=1/0,Un=-1/0,$n._selections[Ar].each(function(){var Lr=ze(this),xr=v.bBox(Lr.node().parentNode);Ln=Math.min(Ln,xr.top),Bn=Math.max(Bn,xr.bottom),jn=Math.min(jn,xr.left),Un=Math.max(Un,xr.right)})):(Ln=0,Bn=0,jn=0,Un=0),{top:Ln,bottom:Bn,left:jn,right:Un,height:Bn-Ln,width:Un-jn}}(_e,on)),Et[on]}},Q.getTickSigns=function(ve,_e){var Ve=ve._id.charAt(0),We={x:"top",y:"right"}[Ve],Ze=ve.side===We?1:-1,Ge=[-1,1,Ze,-Ze];return(_e?(ve.minor||{}).ticks:ve.ticks)!=="inside"==(Ve==="x")&&(Ge=Ge.map(function(Ke){return-Ke})),ve.side&&Ge.push({l:-1,t:-1,r:1,b:1}[ve.side.charAt(0)]),Ge},Q.makeTransTickFn=function(ve){return ve._id.charAt(0)==="x"?function(_e){return h(ve._offset+ve.l2p(_e.x),0)}:function(_e){return h(0,ve._offset+ve.l2p(_e.x))}},Q.makeTransTickLabelFn=function(ve){var _e=function(Ze){var Ge=Ze.ticklabelposition||"",Ke=function(ht){return Ge.indexOf(ht)!==-1},nt=Ke("top"),st=Ke("left"),mt=Ke("right"),tt=Ke("bottom"),Ft=Ke("inside"),Vt=tt||st||nt||mt;if(!Vt&&!Ft)return[0,0];var St=Ze.side,Nt=Vt?(Ze.tickwidth||0)/2:0,Dt=3,gt=Ze.tickfont?Ze.tickfont.size:12;return(tt||nt)&&(Nt+=gt*te,Dt+=(Ze.linewidth||0)/2),(st||mt)&&(Nt+=(Ze.linewidth||0)/2,Dt+=3),Ft&&St==="top"&&(Dt-=gt*(1-te)),(st||nt)&&(Nt=-Nt),St!=="bottom"&&St!=="right"||(Dt=-Dt),[Vt?Nt:0,Ft?Dt:0]}(ve),Ve=_e[0],We=_e[1];return ve._id.charAt(0)==="x"?function(Ze){return h(Ve+ve._offset+ve.l2p(at(Ze)),We)}:function(Ze){return h(We,Ve+ve._offset+ve.l2p(at(Ze)))}},Q.makeTickPath=function(ve,_e,Ve,We){We||(We={});var Ze=We.minor;if(Ze&&!ve.minor)return"";var Ge=We.len!==void 0?We.len:Ze?ve.minor.ticklen:ve.ticklen,Ke=ve._id.charAt(0),nt=(ve.linewidth||1)/2;return Ke==="x"?"M0,"+(_e+nt*Ve)+"v"+Ge*Ve:"M"+(_e+nt*Ve)+",0h"+Ge*Ve},Q.makeLabelFns=function(ve,_e,Ve){var We=ve.ticklabelposition||"",Ze=function($t){return We.indexOf($t)!==-1},Ge=Ze("top"),Ke=Ze("left"),nt=Ze("right"),st=Ze("bottom")||Ke||Ge||nt,mt=Ze("inside"),tt=We==="inside"&&ve.ticks==="inside"||!mt&&ve.ticks==="outside"&&ve.tickson!=="boundaries",Ft=0,Vt=0,St=tt?ve.ticklen:0;if(mt?St*=-1:st&&(St=0),tt&&(Ft+=St,Ve)){var Nt=d.deg2rad(Ve);Ft=St*Math.cos(Nt)+1,Vt=St*Math.sin(Nt)}ve.showticklabels&&(tt||ve.showline)&&(Ft+=.2*ve.tickfont.size);var Dt,gt,ht,yt,qt,Et={labelStandoff:Ft+=(ve.linewidth||1)/2*(mt?-1:1),labelShift:Vt},jt=0,Tt=ve.side,Ot=ve._id.charAt(0),At=ve.tickangle;if(Ot==="x")yt=(qt=!mt&&Tt==="bottom"||mt&&Tt==="top")?1:-1,mt&&(yt*=-1),Dt=Vt*yt,gt=_e+Ft*yt,ht=qt?1:-.2,Math.abs(At)===90&&(mt?ht+=V:ht=At===-90&&Tt==="bottom"?te:At===90&&Tt==="top"?V:.5,jt=V/2*(At/90)),Et.xFn=function($t){return $t.dx+Dt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*ht},Et.anchorFn=function($t,Yt){if(st){if(Ke)return"end";if(nt)return"start"}return f(Yt)&&Yt!==0&&Yt!==180?Yt*yt<0!==mt?"end":"start":"middle"},Et.heightFn=function($t,Yt,Xt){return Yt<-60||Yt>60?-.5*Xt:ve.side==="top"!==mt?-Xt:0};else if(Ot==="y"){if(yt=(qt=!mt&&Tt==="left"||mt&&Tt==="right")?1:-1,mt&&(yt*=-1),Dt=Ft,gt=Vt*yt,ht=0,mt||Math.abs(At)!==90||(ht=At===-90&&Tt==="left"||At===90&&Tt==="right"?te:.5),mt){var Lt=f(At)?+At:0;if(Lt!==0){var Rt=d.deg2rad(Lt);jt=Math.abs(Math.sin(Rt))*te*yt,ht=0}}Et.xFn=function($t){return $t.dx+_e-(Dt+$t.fontSize*ht)*yt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*V},Et.anchorFn=function($t,Yt){return f(Yt)&&Math.abs(Yt)===90?"middle":qt?"end":"start"},Et.heightFn=function($t,Yt,Xt){return ve.side==="right"&&(Yt*=-1),Yt<-30?-Xt:Yt<30?-.5*Xt:0}}return Et},Q.drawTicks=function(ve,_e,Ve){Ve=Ve||{};var We=_e._id+"tick",Ze=[].concat(_e.minor&&_e.minor.ticks?Ve.vals.filter(function(Ke){return Ke.minor&&!Ke.noTick}):[]).concat(_e.ticks?Ve.vals.filter(function(Ke){return!Ke.minor&&!Ke.noTick}):[]),Ge=Ve.layer.selectAll("path."+We).data(Ze,lt);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("ticks",1).classed("crisp",Ve.crisp!==!1).each(function(Ke){return y.stroke(l.select(this),Ke.minor?_e.minor.tickcolor:_e.tickcolor)}).style("stroke-width",function(Ke){return v.crispRound(ve,Ke.minor?_e.minor.tickwidth:_e.tickwidth,1)+"px"}).attr("d",Ve.path).style("display",null),zt(_e,[G]),Ge.attr("transform",Ve.transFn)},Q.drawGrid=function(ve,_e,Ve){if(Ve=Ve||{},_e.tickmode!=="sync"){var We=_e._id+"grid",Ze=_e.minor&&_e.minor.showgrid,Ge=Ze?Ve.vals.filter(function(ht){return ht.minor}):[],Ke=_e.showgrid?Ve.vals.filter(function(ht){return!ht.minor}):[],nt=Ve.counterAxis;if(nt&&Q.shouldShowZeroLine(ve,_e,nt))for(var st=_e.tickmode==="array",mt=0;mt=0;Nt--){var Dt=Nt?Vt:St;if(Dt){var gt=Dt.selectAll("path."+We).data(Nt?Ke:Ge,lt);gt.exit().remove(),gt.enter().append("path").classed(We,1).classed("crisp",Ve.crisp!==!1),gt.attr("transform",Ve.transFn).attr("d",Ve.path).each(function(ht){return y.stroke(l.select(this),ht.minor?_e.minor.gridcolor:_e.gridcolor||"#ddd")}).style("stroke-dasharray",function(ht){return v.dashStyle(ht.minor?_e.minor.griddash:_e.griddash,ht.minor?_e.minor.gridwidth:_e.gridwidth)}).style("stroke-width",function(ht){return(ht.minor?Ft:_e._gw)+"px"}).style("display",null),typeof Ve.path=="function"&>.attr("d",Ve.path)}}zt(_e,[E,W])}},Q.drawZeroLine=function(ve,_e,Ve){Ve=Ve||Ve;var We=_e._id+"zl",Ze=Q.shouldShowZeroLine(ve,_e,Ve.counterAxis),Ge=Ve.layer.selectAll("path."+We).data(Ze?[{x:0,id:_e._id}]:[]);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("zl",1).classed("crisp",Ve.crisp!==!1).each(function(){Ve.layer.selectAll("path").sort(function(Ke,nt){return X(Ke.id,nt.id)})}),Ge.attr("transform",Ve.transFn).attr("d",Ve.path).call(y.stroke,_e.zerolinecolor||y.defaultLine).style("stroke-width",v.crispRound(ve,_e.zerolinewidth,_e._gw||1)+"px").style("display",null),zt(_e,[N])},Q.drawLabels=function(ve,_e,Ve){Ve=Ve||{};var We=ve._fullLayout,Ze=_e._id,Ge=Ze.charAt(0),Ke=Ve.cls||Ze+"tick",nt=Ve.vals.filter(function(yt){return yt.text}),st=Ve.labelFns,mt=Ve.secondary?0:_e.tickangle,tt=(_e._prevTickAngles||{})[Ke],Ft=Ve.layer.selectAll("g."+Ke).data(_e.showticklabels?nt:[],lt),Vt=[];function St(yt,qt){yt.each(function(Et){var jt=l.select(this),Tt=jt.select(".text-math-group"),Ot=st.anchorFn(Et,qt),At=Ve.transFn.call(jt.node(),Et)+(f(qt)&&+qt!=0?" rotate("+qt+","+st.xFn(Et)+","+(st.yFn(Et)-Et.fontSize/2)+")":""),Lt=p.lineCount(jt),Rt=ee*Et.fontSize,$t=st.heightFn(Et,f(qt)?+qt:0,(Lt-1)*Rt);if($t&&(At+=h(0,$t)),Tt.empty()){var Yt=jt.select("text");Yt.attr({transform:At,"text-anchor":Ot}),Yt.style("opacity",1),_e._adjustTickLabelsOverflow&&_e._adjustTickLabelsOverflow()}else{var Xt=v.bBox(Tt.node()).width*{end:-.5,start:.5}[Ot];Tt.attr("transform",At+h(Xt,0))}})}Ft.enter().append("g").classed(Ke,1).append("text").attr("text-anchor","middle").each(function(yt){var qt=l.select(this),Et=ve._promises.length;qt.call(p.positionText,st.xFn(yt),st.yFn(yt)).call(v.font,yt.font,yt.fontSize,yt.fontColor).text(yt.text).call(p.convertToTspans,ve),ve._promises[Et]?Vt.push(ve._promises.pop().then(function(){St(qt,mt)})):St(qt,mt)}),zt(_e,[L]),Ft.exit().remove(),Ve.repositionOnUpdate&&Ft.each(function(yt){l.select(this).select("text").call(p.positionText,st.xFn(yt),st.yFn(yt))}),_e._adjustTickLabelsOverflow=function(){var yt=_e.ticklabeloverflow;if(yt&&yt!=="allow"){var qt=yt.indexOf("hide")!==-1,Et=_e._id.charAt(0)==="x",jt=0,Tt=Et?ve._fullLayout.width:ve._fullLayout.height;if(yt.indexOf("domain")!==-1){var Ot=d.simpleMap(_e.range,_e.r2l);jt=_e.l2p(Ot[0])+_e._offset,Tt=_e.l2p(Ot[1])+_e._offset}var At=Math.min(jt,Tt),Lt=Math.max(jt,Tt),Rt=_e.side,$t=1/0,Yt=-1/0;for(var Xt in Ft.each(function(tn){var cn=l.select(this);if(cn.select(".text-math-group").empty()){var ln=v.bBox(cn.node()),an=0;Et?(ln.right>Lt||ln.leftLt||ln.top+(_e.tickangle?0:tn.fontSize/4)_e["_visibleLabelMin_"+Ot._id]?Wt.style("display","none"):Lt.K!=="tick"||At||Wt.style("display",null)})})})})},St(Ft,tt+1?tt:mt);var Nt=null;_e._selections&&(_e._selections[Ke]=Ft);var Dt=[function(){return Vt.length&&Promise.all(Vt)}];_e.automargin&&We._redrawFromAutoMarginCount&&tt===90?(Nt=90,Dt.push(function(){St(Ft,tt)})):Dt.push(function(){if(St(Ft,mt),nt.length&&Ge==="x"&&!f(mt)&&(_e.type!=="log"||String(_e.dtick).charAt(0)!=="D")){Nt=0;var yt,qt=0,Et=[];if(Ft.each(function(cn){qt=Math.max(qt,cn.fontSize);var ln=_e.l2p(cn.x),an=ze(this),sn=v.bBox(an.node());Et.push({top:0,bottom:10,height:10,left:ln-sn.width/2,right:ln+sn.width/2+2,width:sn.width+2})}),_e.tickson!=="boundaries"&&!_e.showdividers||Ve.secondary){var jt=nt.length,Tt=Math.abs((nt[jt-1].x-nt[0].x)*_e._m)/(jt-1),Ot=_e.ticklabelposition||"",At=function(cn){return Ot.indexOf(cn)!==-1},Lt=At("top"),Rt=At("left"),$t=At("right"),Yt=At("bottom")||Rt||Lt||$t?(_e.tickwidth||0)+6:0,Xt=Tt<2.5*qt||_e.type==="multicategory"||_e._name==="realaxis";for(yt=0;yt1)for(nt=1;nt2*R}(x,g))return"date";var M=b.autotypenumbers!=="strict";return function(S,C){for(var P=S.length,D=y(P),O=0,R=0,F={},A=0;A2*O}(x,M)?"category":function(S,C){for(var P=S.length,D=0;D=2){var F,A,z="";if(R.length===2){for(F=0;F<2;F++)if(A=S(R[F])){z=w;break}}var B=O("pattern",z);if(B===w)for(F=0;F<2;F++)(A=S(R[F]))&&(P.bounds[F]=R[F]=A-1);if(B)for(F=0;F<2;F++)switch(A=R[F],B){case w:if(!l(A)||(A=+A)!==Math.floor(A)||A<0||A>=7)return void(P.enabled=!1);P.bounds[F]=R[F]=A;break;case k:if(!l(A)||(A=+A)<0||A>24)return void(P.enabled=!1);P.bounds[F]=R[F]=A}if(D.autorange===!1){var $=D.range;if($[0]<$[1]){if(R[0]<$[0]&&R[1]>$[1])return void(P.enabled=!1)}else if(R[0]>$[0]&&R[1]<$[1])return void(P.enabled=!1)}}else{var j=O("values");if(!j||!j.length)return void(P.enabled=!1);O("dvalue")}}}o.exports=function(C,P,D,O,R){var F,A=O.letter,z=O.font||{},B=O.splomStash||{},$=D("visible",!O.visibleDflt),j=P._template||{},N=P.type||j.type||"-";N==="date"&&(f.getComponentMethod("calendars","handleDefaults")(C,P,"calendar",O.calendar),O.noTicklabelmode||(F=D("ticklabelmode")));var E="";O.noTicklabelposition&&N!=="multicategory"||(E=s.coerce(C,P,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:F==="period"?["outside","inside"]:A==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),O.noTicklabeloverflow||D("ticklabeloverflow",E.indexOf("inside")!==-1?"hide past domain":N==="category"||N==="multicategory"?"allow":"hide past div"),_(P,R),x(C,P,D,O),g(C,P,D,O),N==="category"||O.noHover||D("hoverformat");var W=D("color"),G=W!==h.color.dflt?W:z.color,L=B.label||R._dfltTitle[A];if(v(C,P,D,N,O),!$)return P;D("title.text",L),s.coerceFont(D,"title.font",{family:z.family,size:s.bigFont(z.size),color:G}),p(C,P,D,N);var q=O.hasMinor;if(q&&(u.newContainer(P,"minor"),p(C,P,D,N,{isMinor:!0})),y(C,P,D,N,O),m(C,P,D,O),q){var H=O.isMinor;O.isMinor=!0,m(C,P,D,O),O.isMinor=H}b(C,P,D,{dfltColor:W,bgColor:O.bgColor,showGrid:O.showGrid,hasMinor:q,attributes:h}),!q||P.minor.ticks||P.minor.showgrid||delete P.minor,(P.showline||P.ticks)&&D("mirror");var V,te=N==="multicategory";if(O.noTickson||N!=="category"&&!te||!P.ticks&&!P.showgrid||(te&&(V="boundaries"),D("tickson",V)==="boundaries"&&delete P.ticklabelposition),te&&D("showdividers")&&(D("dividercolor"),D("dividerwidth")),N==="date")if(d(C,P,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T}),P.rangebreaks.length){for(var ee=0;eep?1:-1:+(u.substr(1)||1)-+(d.substr(1)||1)},a.ref2id=function(u){return!!/^[xyz]/.test(u)&&u.split(" ")[0]},a.isLinked=function(u,d){return s(d,u._axisMatchGroups)||s(d,u._axisConstraintGroups)}},15258:function(o){o.exports=function(a,n,l,f){if(n.type==="category"){var s,u=a.categoryarray,d=Array.isArray(u)&&u.length>0;d&&(s="array");var h,p=l("categoryorder",s);p==="array"&&(h=l("categoryarray")),d||p!=="array"||(p=n.categoryorder="trace"),p==="trace"?n._initialCategories=[]:p==="array"?n._initialCategories=h.slice():(h=function(m,y){var v,g,b,x=y.dataAttr||m._id.charAt(0),_={};if(y.axData)v=y.axData;else for(v=[],g=0;gS?C.substr(S):P.substr(M))+D:C+P+k*T:D}function _(k,T){for(var M=T._size,S=M.h/M.w,C={},P=Object.keys(k),D=0;Dp*$)||W){for(M=0;MY&&ieU&&(U=ie);R/=(U-ee)/(2*Q),ee=P.l2r(ee),U=P.l2r(U),P.range=P._input.range=H=0?Math.min(ie,.9):1/(1/Math.max(ie,-.3)+3.222))}function H(ie,le,se,pe,Te){return ie.append("path").attr("class","zoombox").style({fill:le>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(se,pe)).attr("d",Te+"Z")}function V(ie,le,se){return ie.append("path").attr("class","zoombox-corners").style({fill:y.background,stroke:y.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(le,se)).attr("d","M0,0Z")}function te(ie,le,se,pe,Te,Se){ie.attr("d",pe+"M"+se.l+","+se.t+"v"+se.h+"h"+se.w+"v-"+se.h+"h-"+se.w+"Z"),ee(ie,le,Te,Se)}function ee(ie,le,se,pe){se||(ie.transition().style("fill",pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),le.transition().style("opacity",1).duration(200))}function U(ie){l.select(ie).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Q(ie){j&&ie.data&&ie._context.showTips&&(f.notifier(f._(ie,"Double-click to zoom back out"),"long"),j=!1)}function Y(ie){var le=Math.floor(Math.min(ie.b-ie.t,ie.r-ie.l,$)/2);return"M"+(ie.l-3.5)+","+(ie.t-.5+le)+"h3v"+-le+"h"+le+"v-3h-"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.t-.5+le)+"h-3v"+-le+"h"+-le+"v-3h"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.b+.5-le)+"h-3v"+le+"h"+-le+"v3h"+(le+3)+"ZM"+(ie.l-3.5)+","+(ie.b+.5-le)+"h3v"+le+"h"+le+"v3h-"+(le+3)+"Z"}function Z(ie,le,se,pe,Te){for(var Se,Oe,Me,ce,ye=!1,J={},ne={},de=(Te||{}).xaHash,xe=(Te||{}).yaHash,ue=0;ue=0)At._fullLayout._deactivateShape(At);else{var Lt=At._fullLayout.clickmode;if(U(At),Tt!==2||Ne||gt(),ze)Lt.indexOf("select")>-1&&F(Ot,At,de,xe,le.id,We),Lt.indexOf("event")>-1&&g.click(At,Ot,le.id);else if(Tt===1&&Ne){var Rt=Oe?ye:ce,$t=Oe==="s"||Me==="w"?0:1,Yt=Rt._name+".range["+$t+"]",Xt=function(tn,cn){var ln,an=tn.range[cn],sn=Math.abs(an-tn.range[1-cn]);return tn.type==="date"?an:tn.type==="log"?(ln=Math.ceil(Math.max(0,-Math.log(sn)/Math.LN10))+3,s("."+ln+"g")(Math.pow(10,an))):(ln=Math.floor(Math.log(Math.abs(an))/Math.LN10)-Math.floor(Math.log(sn)/Math.LN10)+4,s("."+String(ln)+"g")(an))}(Rt,$t),Bt="left",Wt="middle";if(Rt.fixedrange)return;Oe?(Wt=Oe==="n"?"top":"bottom",Rt.side==="right"&&(Bt="right")):Me==="e"&&(Bt="right"),At._context.showAxisRangeEntryBoxes&&l.select(kt).call(m.makeEditable,{gd:At,immediate:!0,background:At._fullLayout.paper_bgcolor,text:String(Xt),fill:Rt.tickfont?Rt.tickfont.color:"#444",horizontalAlign:Bt,verticalAlign:Wt}).on("edit",function(tn){var cn=Rt.d2r(tn);cn!==void 0&&h.call("_guiRelayout",At,Yt,cn)})}}}function Ke(Tt,Ot){if(ie._transitioningWithDuration)return!1;var At=Math.max(0,Math.min(be,lt*Tt+Je)),Lt=Math.max(0,Math.min(we,ct*Ot+ut)),Rt=Math.abs(At-Je),$t=Math.abs(Lt-ut);function Yt(){wt="",pt.r=pt.l,pt.t=pt.b,_e.attr("d","M0,0Z")}if(pt.l=Math.min(Je,At),pt.r=Math.max(Je,At),pt.t=Math.min(ut,Lt),pt.b=Math.max(ut,Lt),ke.isSubplotConstrained)Rt>$||$t>$?(wt="xy",Rt/be>$t/we?($t=Rt*we/be,ut>Lt?pt.t=ut-$t:pt.b=ut+$t):(Rt=$t*be/we,Je>At?pt.l=Je-Rt:pt.r=Je+Rt),_e.attr("d",Y(pt))):Yt();else if(Ae.isSubplotConstrained)if(Rt>$||$t>$){wt="xy";var Xt=Math.min(pt.l/be,(we-pt.b)/we),Bt=Math.max(pt.r/be,(we-pt.t)/we);pt.l=Xt*be,pt.r=Bt*be,pt.b=(1-Xt)*we,pt.t=(1-Bt)*we,_e.attr("d",Y(pt))}else Yt();else!De||$t0){var Wt;if(Ae.isSubplotConstrained||!Ee&&De.length===1){for(Wt=0;Wt1&&(Lt.maxallowed!==void 0&&Ie===(Lt.range[0]1&&(Rt.maxallowed!==void 0&&Be===(Rt.range[0]P[1]-.000244140625&&(u.domain=m),f.noneOrAll(s.domain,u.domain,m),u.tickmode==="sync"&&(u.tickmode="auto")}return d("layer"),u}},89426:function(o,a,n){var l=n(59652);o.exports=function(f,s,u,d,h){h||(h={});var p=h.tickSuffixDflt,m=l(f);u("tickprefix")&&u("showtickprefix",m),u("ticksuffix",p)&&u("showticksuffix",m)}},23608:function(o,a,n){var l=n(23074);o.exports=function(f,s,u,d){var h=s._template||{},p=s.type||h.type||"-";u("minallowed"),u("maxallowed");var m,y=u("range"),v=s.getAutorangeDflt(y,d),g=u("autorange",v);!y||(y[0]!==null||y[1]!==null)&&(y[0]!==null&&y[1]!==null||g!=="reversed"&&g!==!0)&&(y[0]===null||g!=="min"&&g!=="max reversed")&&(y[1]===null||g!=="max"&&g!=="min reversed")||(y=void 0,delete s.range,s.autorange=!0,m=!0),m||(g=u("autorange",v=s.getAutorangeDflt(y,d))),g&&(l(u,g,y),p!=="linear"&&p!=="-"||u("rangemode")),s.cleanRange()}},42449:function(o,a,n){var l=n(18783).FROM_BL;o.exports=function(f,s,u){u===void 0&&(u=l[f.constraintoward||"center"]);var d=[f.r2l(f.range[0]),f.r2l(f.range[1])],h=d[0]+(d[1]-d[0])*u;f.range=f._input.range=[f.l2r(h+(d[0]-h)*s),f.l2r(h+(d[1]-h)*s)],f.setScale()}},21994:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(71828),u=s.numberFormat,d=n(92770),h=s.cleanNumber,p=s.ms2DateTime,m=s.dateTime2ms,y=s.ensureNumber,v=s.isArrayOrTypedArray,g=n(50606),b=g.FP_SAFE,x=g.BADNUM,_=g.LOG_CLIP,w=g.ONEWEEK,k=g.ONEDAY,T=g.ONEHOUR,M=g.ONEMIN,S=g.ONESEC,C=n(41675),P=n(85555),D=P.HOUR_PATTERN,O=P.WEEKDAY_PATTERN;function R(A){return Math.pow(10,A)}function F(A){return A!=null}o.exports=function(A,z){z=z||{};var B=A._id||"x",$=B.charAt(0);function j(Z,X){if(Z>0)return Math.log(Z)/Math.LN10;if(Z<=0&&X&&A.range&&A.range.length===2){var re=A.range[0],ie=A.range[1];return .5*(re+ie-2*_*Math.abs(re-ie))}return x}function N(Z,X,re,ie){if((ie||{}).msUTC&&d(Z))return+Z;var le=m(Z,re||A.calendar);if(le===x){if(!d(Z))return x;Z=+Z;var se=Math.floor(10*s.mod(Z+.05,1)),pe=Math.round(Z-se/10);le=m(new Date(pe))+se/10}return le}function E(Z,X,re){return p(Z,X,re||A.calendar)}function W(Z){return A._categories[Math.round(Z)]}function G(Z){if(F(Z)){if(A._categoriesMap===void 0&&(A._categoriesMap={}),A._categoriesMap[Z]!==void 0)return A._categoriesMap[Z];A._categories.push(typeof Z=="number"?String(Z):Z);var X=A._categories.length-1;return A._categoriesMap[Z]=X,X}return x}function L(Z){if(A._categoriesMap)return A._categoriesMap[Z]}function q(Z){var X=L(Z);return X!==void 0?X:d(Z)?+Z:void 0}function H(Z){return d(Z)?+Z:L(Z)}function V(Z,X,re){return l.round(re+X*Z,2)}function te(Z,X,re){return(Z-re)/X}var ee=function(Z){return d(Z)?V(Z,A._m,A._b):x},U=function(Z){return te(Z,A._m,A._b)};if(A.rangebreaks){var Q=$==="y";ee=function(Z){if(!d(Z))return x;var X=A._rangebreaks.length;if(!X)return V(Z,A._m,A._b);var re=Q;A.range[0]>A.range[1]&&(re=!re);for(var ie=re?-1:1,le=ie*Z,se=0,pe=0;peSe)){se=le<(Te+Se)/2?pe:pe+1;break}se=pe+1}var Oe=A._B[se]||0;return isFinite(Oe)?V(Z,A._m2,Oe):0},U=function(Z){var X=A._rangebreaks.length;if(!X)return te(Z,A._m,A._b);for(var re=0,ie=0;ieA._rangebreaks[ie].pmax&&(re=ie+1);return te(Z,A._m2,A._B[re])}}A.c2l=A.type==="log"?j:y,A.l2c=A.type==="log"?R:y,A.l2p=ee,A.p2l=U,A.c2p=A.type==="log"?function(Z,X){return ee(j(Z,X))}:ee,A.p2c=A.type==="log"?function(Z){return R(U(Z))}:U,["linear","-"].indexOf(A.type)!==-1?(A.d2r=A.r2d=A.d2c=A.r2c=A.d2l=A.r2l=h,A.c2d=A.c2r=A.l2d=A.l2r=y,A.d2p=A.r2p=function(Z){return A.l2p(h(Z))},A.p2d=A.p2r=U,A.cleanPos=y):A.type==="log"?(A.d2r=A.d2l=function(Z,X){return j(h(Z),X)},A.r2d=A.r2c=function(Z){return R(h(Z))},A.d2c=A.r2l=h,A.c2d=A.l2r=y,A.c2r=j,A.l2d=R,A.d2p=function(Z,X){return A.l2p(A.d2r(Z,X))},A.p2d=function(Z){return R(U(Z))},A.r2p=function(Z){return A.l2p(h(Z))},A.p2r=U,A.cleanPos=y):A.type==="date"?(A.d2r=A.r2d=s.identity,A.d2c=A.r2c=A.d2l=A.r2l=N,A.c2d=A.c2r=A.l2d=A.l2r=E,A.d2p=A.r2p=function(Z,X,re){return A.l2p(N(Z,0,re))},A.p2d=A.p2r=function(Z,X,re){return E(U(Z),X,re)},A.cleanPos=function(Z){return s.cleanDate(Z,x,A.calendar)}):A.type==="category"?(A.d2c=A.d2l=G,A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=H(Z);return X!==void 0?X:A.fraction2r(.5)},A.l2r=A.c2r=y,A.r2l=H,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return typeof Z=="string"&&Z!==""?Z:y(Z)}):A.type==="multicategory"&&(A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=q(Z);return X!==void 0?X:A.fraction2r(.5)},A.r2c_just_indices=L,A.l2r=A.c2r=y,A.r2l=q,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return Array.isArray(Z)||typeof Z=="string"&&Z!==""?Z:y(Z)},A.setupMultiCategory=function(Z){var X,re,ie=A._traceIndices,le=A._matchGroup;if(le&&A._categories.length===0){for(var se in le)if(se!==B){var pe=z[C.id2name(se)];ie=ie.concat(pe._traceIndices)}}var Te=[[0,{}],[0,{}]],Se=[];for(X=0;Xpe[1]&&(ie[se?0:1]=re)}},A.cleanRange=function(Z,X){A._cleanRange(Z,X),A.limitRange(Z)},A._cleanRange=function(Z,X){X||(X={}),Z||(Z="range");var re,ie,le=s.nestedProperty(A,Z).get();if(ie=(ie=A.type==="date"?s.dfltRange(A.calendar):$==="y"?P.DFLTRANGEY:A._name==="realaxis"?[0,1]:X.dfltRange||P.DFLTRANGEX).slice(),A.rangemode!=="tozero"&&A.rangemode!=="nonnegative"||(ie[0]=0),le&&le.length===2){var se=le[0]===null,pe=le[1]===null;for(A.type!=="date"||A.autorange||(le[0]=s.cleanDate(le[0],x,A.calendar),le[1]=s.cleanDate(le[1],x,A.calendar)),re=0;re<2;re++)if(A.type==="date"){if(!s.isDateTime(le[re],A.calendar)){A[Z]=ie;break}if(A.r2l(le[0])===A.r2l(le[1])){var Te=s.constrain(A.r2l(le[0]),s.MIN_MS+1e3,s.MAX_MS-1e3);le[0]=A.l2r(Te-1e3),le[1]=A.l2r(Te+1e3);break}}else{if(!d(le[re])){if(se||pe||!d(le[1-re])){A[Z]=ie;break}le[re]=le[1-re]*(re?10:.1)}if(le[re]<-b?le[re]=-b:le[re]>b&&(le[re]=b),le[0]===le[1]){var Se=Math.max(1,Math.abs(1e-6*le[0]));le[0]-=Se,le[1]+=Se}}}else s.nestedProperty(A,Z).set(ie)},A.setScale=function(Z){var X=z._size;if(A.overlaying){var re=C.getFromId({_fullLayout:z},A.overlaying);A.domain=re.domain}var ie=Z&&A._r?"_r":"range",le=A.calendar;A.cleanRange(ie);var se,pe,Te=A.r2l(A[ie][0],le),Se=A.r2l(A[ie][1],le),Oe=$==="y";if(Oe?(A._offset=X.t+(1-A.domain[1])*X.h,A._length=X.h*(A.domain[1]-A.domain[0]),A._m=A._length/(Te-Se),A._b=-A._m*Se):(A._offset=X.l+A.domain[0]*X.w,A._length=X.w*(A.domain[1]-A.domain[0]),A._m=A._length/(Se-Te),A._b=-A._m*Te),A._rangebreaks=[],A._lBreaks=0,A._m2=0,A._B=[],A.rangebreaks&&(A._rangebreaks=A.locateBreaks(Math.min(Te,Se),Math.max(Te,Se)),A._rangebreaks.length)){for(se=0;seSe&&(Me=!Me),Me&&A._rangebreaks.reverse();var ce=Me?-1:1;for(A._m2=ce*A._length/(Math.abs(Se-Te)-A._lBreaks),A._B.push(-A._m2*(Oe?Se:Te)),se=0;seie&&(ie+=7,leie&&(ie+=24,le=re&&le=re&&Z=Ae.min&&(geAe.max&&(Ae.max=be),we=!1)}we&&pe.push({min:ge,max:be})}};for(re=0;rem.duration?(function(){for(var D={},O=0;O rect").call(u.setTranslate,0,0).call(u.setScale,1,1),M.plot.call(u.setTranslate,S._offset,C._offset).call(u.setScale,1,1);var P=M.plot.selectAll(".scatterlayer .trace");P.selectAll(".point").call(u.setPointGroupScale,1,1),P.selectAll(".textpoint").call(u.setTextPointsScale,1,1),P.call(u.hideOutsideRangePoints,M)}function T(M,S){var C=M.plotinfo,P=C.xaxis,D=C.yaxis,O=P._length,R=D._length,F=!!M.xr1,A=!!M.yr1,z=[];if(F){var B=s.simpleMap(M.xr0,P.r2l),$=s.simpleMap(M.xr1,P.r2l),j=B[1]-B[0],N=$[1]-$[0];z[0]=(B[0]*(1-S)+S*$[0]-B[0])/(B[1]-B[0])*O,z[2]=O*(1-S+S*N/j),P.range[0]=P.l2r(B[0]*(1-S)+S*$[0]),P.range[1]=P.l2r(B[1]*(1-S)+S*$[1])}else z[0]=0,z[2]=O;if(A){var E=s.simpleMap(M.yr0,D.r2l),W=s.simpleMap(M.yr1,D.r2l),G=E[1]-E[0],L=W[1]-W[0];z[1]=(E[1]*(1-S)+S*W[1]-E[1])/(E[0]-E[1])*R,z[3]=R*(1-S+S*L/G),D.range[0]=P.l2r(E[0]*(1-S)+S*W[0]),D.range[1]=D.l2r(E[1]*(1-S)+S*W[1])}else z[1]=0,z[3]=R;d.drawOne(h,P,{skipTitle:!0}),d.drawOne(h,D,{skipTitle:!0}),d.redrawComponents(h,[P._id,D._id]);var q=F?O/z[2]:1,H=A?R/z[3]:1,V=F?z[0]:0,te=A?z[1]:0,ee=F?z[0]/z[2]*O:0,U=A?z[1]/z[3]*R:0,Q=P._offset-ee,Y=D._offset-U;C.clipRect.call(u.setTranslate,V,te).call(u.setScale,1/q,1/H),C.plot.call(u.setTranslate,Q,Y).call(u.setScale,q,H),u.setPointGroupScale(C.zoomScalePts,1/q,1/H),u.setTextPointsScale(C.zoomScaleTxt,1/q,1/H)}d.redrawComponents(h)}},951:function(o,a,n){var l=n(73972).traceIs,f=n(4322);function s(d){return{v:"x",h:"y"}[d.orientation||"v"]}function u(d,h){var p=s(d),m=l(d,"box-violin"),y=l(d._fullInput||{},"candlestick");return m&&!y&&h===p&&d[p]===void 0&&d[p+"0"]===void 0}o.exports=function(d,h,p,m){p("autotypenumbers",m.autotypenumbersDflt),p("type",(m.splomStash||{}).type)==="-"&&(function(y,v){if(y.type==="-"){var g,b=y._id,x=b.charAt(0);b.indexOf("scene")!==-1&&(b=x);var _=function(D,O,R){for(var F=0;F0&&(A["_"+R+"axes"]||{})[O]||(A[R+"axis"]||R)===O&&(u(A,R)||(A[R]||[]).length||A[R+"0"]))return A}}(v,b,x);if(_)if(_.type!=="histogram"||x!=={v:"y",h:"x"}[_.orientation||"v"]){var w=x+"calendar",k=_[w],T={noMultiCategory:!l(_,"cartesian")||l(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&x==={h:"x",v:"y"}[_.orientation||"v"]&&(T.noMultiCategory=!0),T.autotypenumbers=y.autotypenumbers,u(_,x)){var M=s(_),S=[];for(g=0;g0?".":"")+g;f.isPlainObject(b)?h(b,m,x,v+1):m(x,g,b)}})}a.manageCommandObserver=function(p,m,y,v){var g={},b=!0;m&&m._commandObserver&&(g=m._commandObserver),g.cache||(g.cache={}),g.lookupTable={};var x=a.hasSimpleAPICommandBindings(p,y,g.lookupTable);if(m&&m._commandObserver){if(x)return g;if(m._commandObserver.remove)return m._commandObserver.remove(),m._commandObserver=null,g}if(x){s(p,x,g.cache),g.check=function(){if(b){var k=s(p,x,g.cache);return k.changed&&v&&g.lookupTable[k.value]!==void 0&&(g.disable(),Promise.resolve(v({value:k.value,type:x.type,prop:x.prop,traces:x.traces,index:g.lookupTable[k.value]})).then(g.enable,g.enable)),k.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],w=0;w<_.length;w++)p._internalOn(_[w],g.check);g.remove=function(){for(var k=0;k<_.length;k++)p._removeInternalListener(_[k],g.check)}}else f.log("Unable to automatically bind plot updates to API command"),g.lookupTable={},g.remove=function(){};return g.disable=function(){b=!1},g.enable=function(){b=!0},m&&(m._commandObserver=g),g},a.hasSimpleAPICommandBindings=function(p,m,y){var v,g,b=m.length;for(v=0;v=q.width-20?(te["text-anchor"]="start",te.x=5):(te["text-anchor"]="end",te.x=q._paper.attr("width")-7),H.attr(te);var ee=H.select(".js-link-to-tool"),U=H.select(".js-link-spacer"),Q=H.select(".js-sourcelinks");L._context.showSources&&L._context.showSources(L),L._context.showLink&&function(Y,Z){Z.text("");var X=Z.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(Y._context.linkText+" »");if(Y._context.sendData)X.on("click",function(){S.sendDataToCloud(Y)});else{var re=window.location.pathname.split("/"),ie=window.location.search;X.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+re[2].split(".")[0]+"/"+re[1]+ie})}}(L,ee),U.text(ee.text()&&Q.text()?" - ":"")}},S.sendDataToCloud=function(L){var q=(window.PLOTLYENV||{}).BASE_URL||L._context.plotlyServerURL;if(q){L.emit("plotly_beforeexport");var H=l.select(L).append("div").attr("id","hiddenform").style("display","none"),V=H.append("form").attr({action:q+"/external",method:"post",target:"_blank"});return V.append("input").attr({type:"text",name:"data"}).node().value=S.graphJson(L,!1,"keepdata"),V.node().submit(),H.remove(),L.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],O=["year","month","dayMonth","dayMonthYear"];function R(L,q){var H=L._context.locale;H||(H="en-US");var V=!1,te={};function ee(re){for(var ie=!0,le=0;le1&&J.length>1){for(d.getComponentMethod("grid","sizeDefaults")(U,ee),te=0;te15&&J.length>15&&ee.shapes.length===0&&ee.images.length===0,S.linkSubplots(Y,ee,Q,V),S.cleanPlot(Y,ee,Q,V);var ge=!(!V._has||!V._has("gl2d")),be=!(!ee._has||!ee._has("gl2d")),we=!(!V._has||!V._has("cartesian"))||ge,ke=!(!ee._has||!ee._has("cartesian"))||be;we&&!ke?V._bgLayer.remove():ke&&!we&&(ee._shouldCreateBgLayer=!0),V._zoomlayer&&!L._dragging&&b({_fullLayout:V}),function(Re,Ie){var Be,Ue=[];Ie.meta&&(Be=Ie._meta={meta:Ie.meta,layout:{meta:Ie.meta}});for(var qe=0;qe0){var Z=1-2*U;V=Math.round(Z*V),te=Math.round(Z*te)}}var X=S.layoutAttributes.width.min,re=S.layoutAttributes.height.min;V1,le=!q.height&&Math.abs(H.height-te)>1;(le||ie)&&(ie&&(H.width=V),le&&(H.height=te)),L._initialAutoSize||(L._initialAutoSize={width:V,height:te}),S.sanitizeMargins(H)},S.supplyLayoutModuleDefaults=function(L,q,H,V){var te,ee,U,Q=d.componentsRegistry,Y=q._basePlotModules,Z=d.subplotsRegistry.cartesian;for(te in Q)(U=Q[te]).includeBasePlot&&U.includeBasePlot(L,q);for(var X in Y.length||Y.push(Z),q._has("cartesian")&&(d.getComponentMethod("grid","contentDefaults")(L,q),Z.finalizeSubplots(L,q)),q._subplots)q._subplots[X].sort(m.subplotSort);for(ee=0;ee1&&(H.l/=Te,H.r/=Te)}if(ie){var Se=(H.t+H.b)/ie;Se>1&&(H.t/=Se,H.b/=Se)}var Oe=H.xl!==void 0?H.xl:H.x,Me=H.xr!==void 0?H.xr:H.x,ce=H.yt!==void 0?H.yt:H.y,ye=H.yb!==void 0?H.yb:H.y;le[q]={l:{val:Oe,size:H.l+pe},r:{val:Me,size:H.r+pe},b:{val:ye,size:H.b+pe},t:{val:ce,size:H.t+pe}},se[q]=1}else delete le[q],delete se[q];if(!V._replotting)return S.doAutoMargin(L)}},S.doAutoMargin=function(L){var q=L._fullLayout,H=q.width,V=q.height;q._size||(q._size={}),$(q);var te=q._size,ee=q.margin,U={t:0,b:0,l:0,r:0},Q=m.extendFlat({},te),Y=ee.l,Z=ee.r,X=ee.t,re=ee.b,ie=q._pushmargin,le=q._pushmarginIds,se=q.minreducedwidth,pe=q.minreducedheight;if(ee.autoexpand!==!1){for(var Te in ie)le[Te]||delete ie[Te];var Se=L._fullLayout._reservedMargin;for(var Oe in Se)for(var Me in Se[Oe]){var ce=Se[Oe][Me];U[Me]=Math.max(U[Me],ce)}for(var ye in ie.base={l:{val:0,size:Y},r:{val:1,size:Z},t:{val:1,size:X},b:{val:0,size:re}},U){var J=0;for(var ne in ie)ne!=="base"&&u(ie[ne][ye].size)&&(J=ie[ne][ye].size>J?ie[ne][ye].size:J);var de=Math.max(0,ee[ye]-J);U[ye]=Math.max(0,U[ye]-de)}for(var xe in ie){var ue=ie[xe].l||{},ge=ie[xe].b||{},be=ue.val,we=ue.size,ke=ge.val,Ae=ge.size,Ee=H-U.r-U.l,De=V-U.t-U.b;for(var Re in ie){if(u(we)&&ie[Re].r){var Ie=ie[Re].r.val,Be=ie[Re].r.size;if(Ie>be){var Ue=(we*Ie+(Be-Ee)*be)/(Ie-be),qe=(Be*(1-be)+(we-Ee)*(1-Ie))/(Ie-be);Ue+qe>Y+Z&&(Y=Ue,Z=qe)}}if(u(Ae)&&ie[Re].t){var Ye=ie[Re].t.val,at=ie[Re].t.size;if(Ye>ke){var lt=(Ae*Ye+(at-De)*ke)/(Ye-ke),ct=(at*(1-ke)+(Ae-De)*(1-Ye))/(Ye-ke);lt+ct>re+X&&(re=lt,X=ct)}}}}}var bt=m.constrain(H-ee.l-ee.r,2,se),ze=m.constrain(V-ee.t-ee.b,2,pe),Ne=Math.max(0,H-bt),Qe=Math.max(0,V-ze);if(Ne){var it=(Y+Z)/Ne;it>1&&(Y/=it,Z/=it)}if(Qe){var kt=(re+X)/Qe;kt>1&&(re/=kt,X/=kt)}if(te.l=Math.round(Y)+U.l,te.r=Math.round(Z)+U.r,te.t=Math.round(X)+U.t,te.b=Math.round(re)+U.b,te.p=Math.round(ee.pad),te.w=Math.round(H)-te.l-te.r,te.h=Math.round(V)-te.t-te.b,!q._replotting&&(S.didMarginChange(Q,te)||function(ut){if("_redrawFromAutoMarginCount"in ut._fullLayout)return!1;var pt=g.list(ut,"",!0);for(var It in pt)if(pt[It].autoshift||pt[It].shift)return!0;return!1}(L))){"_redrawFromAutoMarginCount"in q?q._redrawFromAutoMarginCount++:q._redrawFromAutoMarginCount=1;var Je=3*(1+Object.keys(le).length);if(q._redrawFromAutoMarginCount0&&(L._transitioningWithDuration=!0),L._transitionData._interruptCallbacks.push(function(){V=!0}),H.redraw&&L._transitionData._interruptCallbacks.push(function(){return d.call("redraw",L)}),L._transitionData._interruptCallbacks.push(function(){L.emit("plotly_transitioninterrupted",[])});var Q=0,Y=0;function Z(){return Q++,function(){var X;Y++,V||Y!==Q||(X=U,L._transitionData&&(function(re){if(re)for(;re.length;)re.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(H.redraw)return d.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(X)))}}H.runFn(Z),setTimeout(Z())})}],ee=m.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}S.didMarginChange=function(L,q){for(var H=0;H1)return!0}return!1},S.graphJson=function(L,q,H,V,te,ee){(te&&q&&!L._fullData||te&&!q&&!L._fullLayout)&&S.supplyDefaults(L);var U=te?L._fullData:L.data,Q=te?L._fullLayout:L.layout,Y=(L._transitionData||{})._frames;function Z(ie,le){if(typeof ie=="function")return le?"_function_":null;if(m.isPlainObject(ie)){var se,pe={};return Object.keys(ie).sort().forEach(function(Te){if(["_","["].indexOf(Te.charAt(0))===-1)if(typeof ie[Te]!="function"){if(H==="keepdata"){if(Te.substr(Te.length-3)==="src")return}else if(H==="keepstream"){if(typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0&&!m.isPlainObject(ie.stream))return}else if(H!=="keepall"&&typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0)return;pe[Te]=Z(ie[Te],le)}else le&&(pe[Te]="_function")}),pe}return Array.isArray(ie)?ie.map(function(Te){return Z(Te,le)}):m.isTypedArray(ie)?m.simpleMap(ie,m.identity):m.isJSDate(ie)?m.ms2DateTimeLocal(+ie):ie}var X={data:(U||[]).map(function(ie){var le=Z(ie);return q&&delete le.fit,le})};if(!q&&(X.layout=Z(Q),te)){var re=Q._size;X.layout.computed={margin:{b:re.b,l:re.l,r:re.r,t:re.t}}}return Y&&(X.frames=Z(Y)),ee&&(X.config=Z(L._context,!0)),V==="object"?X:JSON.stringify(X)},S.modifyFrames=function(L,q){var H,V,te,ee=L._transitionData._frames,U=L._transitionData._frameHash;for(H=0;H=0;ee--)if(ye[ee].enabled){H._indexToPoints=ye[ee]._indexToPoints;break}V&&V.calc&&(ce=V.calc(L,H))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=H,Z[Oe]=ce}}for(W(U,Q,Y),te=0;te0){for(var h=[],p=0;p=D&&(R.min=0,F.min=0,A.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function x(_,w,k,T){var M=v[w._name];function S(F,A){return s.coerce(_,w,M,F,A)}S("uirevision",T.uirevision),w.type="linear";var C=S("color"),P=C!==M.color.dflt?C:k.font.color,D=w._name.charAt(0).toUpperCase(),O="Component "+D,R=S("title.text",O);w._hovertitle=R===O?R:D,s.coerceFont(S,"title.font",{family:k.font.family,size:s.bigFont(k.font.size),color:P}),S("min"),m(_,w,S,"linear"),h(_,w,S,"linear"),d(_,w,S,"linear"),p(_,w,S,{outerTicks:!0}),S("showticklabels")&&(s.coerceFont(S,"tickfont",{family:k.font.family,size:k.font.size,color:P}),S("tickangle"),S("tickformat")),y(_,w,S,{dfltColor:C,bgColor:k.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:M}),S("hoverformat"),S("layer")}o.exports=function(_,w,k){u(_,w,k,{type:"ternary",attributes:v,handleDefaults:b,font:w.font,paper_bgcolor:w.paper_bgcolor})}},64380:function(o,a,n){var l=n(39898),f=n(84267),s=n(73972),u=n(71828),d=u.strTranslate,h=u._,p=n(7901),m=n(91424),y=n(21994),v=n(1426).extendFlat,g=n(74875),b=n(89298),x=n(28569),_=n(30211),w=n(64505),k=w.freeMode,T=w.rectMode,M=n(92998),S=n(47322).prepSelect,C=n(47322).selectOnClick,P=n(47322).clearOutline,D=n(47322).clearSelectionsCache,O=n(85555);function R(W,G){this.id=W.id,this.graphDiv=W.graphDiv,this.init(G),this.makeFramework(G),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}o.exports=R;var F=R.prototype;F.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},F.plot=function(W,G){var L=this,q=G[L.id],H=G._size;L._hasClipOnAxisFalse=!1;for(var V=0;VA*le?H=(V=le)*A:V=(H=ie)/A,te=X*H/ie,ee=re*V/le,L=G.l+G.w*Y-H/2,q=G.t+G.h*(1-Z)-V/2,U.x0=L,U.y0=q,U.w=H,U.h=V,U.sum=se,U.xaxis={type:"linear",range:[pe+2*Se-se,se-pe-2*Te],domain:[Y-te/2,Y+te/2],_id:"x"},y(U.xaxis,U.graphDiv._fullLayout),U.xaxis.setScale(),U.xaxis.isPtWithinRange=function(be){return be.a>=U.aaxis.range[0]&&be.a<=U.aaxis.range[1]&&be.b>=U.baxis.range[1]&&be.b<=U.baxis.range[0]&&be.c>=U.caxis.range[1]&&be.c<=U.caxis.range[0]},U.yaxis={type:"linear",range:[pe,se-Te-Se],domain:[Z-ee/2,Z+ee/2],_id:"y"},y(U.yaxis,U.graphDiv._fullLayout),U.yaxis.setScale(),U.yaxis.isPtWithinRange=function(){return!0};var Oe=U.yaxis.domain[0],Me=U.aaxis=v({},W.aaxis,{range:[pe,se-Te-Se],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(Me,U.graphDiv._fullLayout),Me.setScale();var ce=U.baxis=v({},W.baxis,{range:[se-pe-Se,Te],side:"bottom",domain:U.xaxis.domain,anchor:"free",position:0,_id:"x",_length:H});y(ce,U.graphDiv._fullLayout),ce.setScale();var ye=U.caxis=v({},W.caxis,{range:[se-pe-Te,Se],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(ye,U.graphDiv._fullLayout),ye.setScale();var J="M"+L+","+(q+V)+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDef.select("path").attr("d",J),U.layers.plotbg.select("path").attr("d",J);var ne="M0,"+V+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDefRelative.select("path").attr("d",ne);var de=d(L,q);U.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",de),U.clipDefRelative.select("path").attr("transform",null);var xe=d(L-ce._offset,q+V);U.layers.baxis.attr("transform",xe),U.layers.bgrid.attr("transform",xe);var ue=d(L+H/2,q)+"rotate(30)"+d(0,-Me._offset);U.layers.aaxis.attr("transform",ue),U.layers.agrid.attr("transform",ue);var ge=d(L+H/2,q)+"rotate(-30)"+d(0,-ye._offset);U.layers.caxis.attr("transform",ge),U.layers.cgrid.attr("transform",ge),U.drawAxes(!0),U.layers.aline.select("path").attr("d",Me.showline?"M"+L+","+(q+V)+"l"+H/2+",-"+V:"M0,0").call(p.stroke,Me.linecolor||"#000").style("stroke-width",(Me.linewidth||0)+"px"),U.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(q+V)+"h"+H:"M0,0").call(p.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),U.layers.cline.select("path").attr("d",ye.showline?"M"+(L+H/2)+","+q+"l"+H/2+","+V:"M0,0").call(p.stroke,ye.linecolor||"#000").style("stroke-width",(ye.linewidth||0)+"px"),U.graphDiv._context.staticPlot||U.initInteractions(),m.setClipUrl(U.layers.frontplot,U._hasClipOnAxisFalse?null:U.clipId,U.graphDiv)},F.drawAxes=function(W){var G=this,L=G.graphDiv,q=G.id.substr(7)+"title",H=G.layers,V=G.aaxis,te=G.baxis,ee=G.caxis;if(G.drawAx(V),G.drawAx(te),G.drawAx(ee),W){var U=Math.max(V.showticklabels?V.tickfont.size/2:0,(ee.showticklabels?.75*ee.tickfont.size:0)+(ee.ticks==="outside"?.87*ee.ticklen:0)),Q=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;H["a-title"]=M.draw(L,"a"+q,{propContainer:V,propName:G.id+".aaxis.title",placeholder:h(L,"Click to enter Component A title"),attributes:{x:G.x0+G.w/2,y:G.y0-V.title.font.size/3-U,"text-anchor":"middle"}}),H["b-title"]=M.draw(L,"b"+q,{propContainer:te,propName:G.id+".baxis.title",placeholder:h(L,"Click to enter Component B title"),attributes:{x:G.x0-Q,y:G.y0+G.h+.83*te.title.font.size+Q,"text-anchor":"middle"}}),H["c-title"]=M.draw(L,"c"+q,{propContainer:ee,propName:G.id+".caxis.title",placeholder:h(L,"Click to enter Component C title"),attributes:{x:G.x0+G.w+Q,y:G.y0+G.h+.83*ee.title.font.size+Q,"text-anchor":"middle"}})}},F.drawAx=function(W){var G,L=this,q=L.graphDiv,H=W._name,V=H.charAt(0),te=W._id,ee=L.layers[H],U=V+"tickLayout",Q=(G=W).ticks+String(G.ticklen)+String(G.showticklabels);L[U]!==Q&&(ee.selectAll("."+te+"tick").remove(),L[U]=Q),W.setScale();var Y=b.calcTicks(W),Z=b.clipEnds(W,Y),X=b.makeTransTickFn(W),re=b.getTickSigns(W)[2],ie=u.deg2rad(30),le=re*(W.linewidth||1)/2,se=re*W.ticklen,pe=L.w,Te=L.h,Se=V==="b"?"M0,"+le+"l"+Math.sin(ie)*se+","+Math.cos(ie)*se:"M"+le+",0l"+Math.cos(ie)*se+","+-Math.sin(ie)*se,Oe={a:"M0,0l"+Te+",-"+pe/2,b:"M0,0l-"+pe/2+",-"+Te,c:"M0,0l-"+Te+","+pe/2}[V];b.drawTicks(q,W,{vals:W.ticks==="inside"?Z:Y,layer:ee,path:Se,transFn:X,crisp:!1}),b.drawGrid(q,W,{vals:Z,layer:L.layers[V+"grid"],path:Oe,transFn:X,crisp:!1}),b.drawLabels(q,W,{vals:Y,layer:ee,transFn:X,labelFns:b.makeLabelFns(W,0,30)})};var z=O.MINZOOM/2+.87,B="m-0.87,.5h"+z+"v3h-"+(z+5.2)+"l"+(z/2+2.6)+",-"+(.87*z+4.5)+"l2.6,1.5l-"+z/2+","+.87*z+"Z",$="m0.87,.5h-"+z+"v3h"+(z+5.2)+"l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-2.6,1.5l"+z/2+","+.87*z+"Z",j="m0,1l"+z/2+","+.87*z+"l2.6,-1.5l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-"+(z/2+2.6)+","+(.87*z+4.5)+"l2.6,1.5l"+z/2+",-"+.87*z+"Z",N=!0;function E(W){l.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}F.clearOutline=function(){D(this.dragOptions),P(this.dragOptions.gd)},F.initInteractions=function(){var W,G,L,q,H,V,te,ee,U,Q,Y,Z,X=this,re=X.layers.plotbg.select("path").node(),ie=X.graphDiv,le=ie._fullLayout._zoomlayer;function se(ne){var de={};return de[X.id+".aaxis.min"]=ne.a,de[X.id+".baxis.min"]=ne.b,de[X.id+".caxis.min"]=ne.c,de}function pe(ne,de){var xe=ie._fullLayout.clickmode;E(ie),ne===2&&(ie.emit("plotly_doubleclick",null),s.call("_guiRelayout",ie,se({a:0,b:0,c:0}))),xe.indexOf("select")>-1&&ne===1&&C(de,ie,[X.xaxis],[X.yaxis],X.id,X.dragOptions),xe.indexOf("event")>-1&&_.click(ie,de,X.id)}function Te(ne,de){return 1-de/X.h}function Se(ne,de){return 1-(ne+(X.h-de)/Math.sqrt(3))/X.w}function Oe(ne,de){return(ne-(X.h-de)/Math.sqrt(3))/X.w}function Me(ne,de){var xe=L+ne*W,ue=q+de*G,ge=Math.max(0,Math.min(1,Te(0,q),Te(0,ue))),be=Math.max(0,Math.min(1,Se(L,q),Se(xe,ue))),we=Math.max(0,Math.min(1,Oe(L,q),Oe(xe,ue))),ke=(ge/2+we)*X.w,Ae=(1-ge/2-be)*X.w,Ee=(ke+Ae)/2,De=Ae-ke,Re=(1-ge)*X.h,Ie=Re-De/A;De.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Z.transition().style("opacity",1).duration(200),Q=!0),ie.emit("plotly_relayouting",se(te))}function ce(){E(ie),te!==H&&(s.call("_guiRelayout",ie,se(te)),N&&ie.data&&ie._context.showTips&&(u.notifier(h(ie,"Double-click to zoom back out"),"long"),N=!1))}function ye(ne,de){var xe=ne/X.xaxis._m,ue=de/X.yaxis._m,ge=[(te={a:H.a-ue,b:H.b+(xe+ue)/2,c:H.c-(xe-ue)/2}).a,te.b,te.c].sort(u.sorterAsc),be=ge.indexOf(te.a),we=ge.indexOf(te.b),ke=ge.indexOf(te.c);ge[0]<0&&(ge[1]+ge[0]/2<0?(ge[2]+=ge[0]+ge[1],ge[0]=ge[1]=0):(ge[2]+=ge[0]/2,ge[1]+=ge[0]/2,ge[0]=0),te={a:ge[be],b:ge[we],c:ge[ke]},de=(H.a-te.a)*X.yaxis._m,ne=(H.c-te.c-H.b+te.b)*X.xaxis._m);var Ae=d(X.x0+ne,X.y0+de);X.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ae);var Ee=d(-ne,-de);X.clipDefRelative.select("path").attr("transform",Ee),X.aaxis.range=[te.a,X.sum-te.b-te.c],X.baxis.range=[X.sum-te.a-te.c,te.b],X.caxis.range=[X.sum-te.a-te.b,te.c],X.drawAxes(!1),X._hasClipOnAxisFalse&&X.plotContainer.select(".scatterlayer").selectAll(".trace").call(m.hideOutsideRangePoints,X),ie.emit("plotly_relayouting",se(te))}function J(){s.call("_guiRelayout",ie,se(te))}this.dragOptions={element:re,gd:ie,plotinfo:{id:X.id,domain:ie._fullLayout[X.id].domain,xaxis:X.xaxis,yaxis:X.yaxis},subplot:X.id,prepFn:function(ne,de,xe){X.dragOptions.xaxes=[X.xaxis],X.dragOptions.yaxes=[X.yaxis],W=ie._fullLayout._invScaleX,G=ie._fullLayout._invScaleY;var ue=X.dragOptions.dragmode=ie._fullLayout.dragmode;k(ue)?X.dragOptions.minDrag=1:X.dragOptions.minDrag=void 0,ue==="zoom"?(X.dragOptions.moveFn=Me,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=ce,function(ge,be,we){var ke=re.getBoundingClientRect();L=be-ke.left,q=we-ke.top,ie._fullLayout._calcInverseTransform(ie);var Ae=ie._fullLayout._invTransform,Ee=u.apply3DTransform(Ae)(L,q);L=Ee[0],q=Ee[1],H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,V=X.aaxis.range[1]-H.a,ee=f(X.graphDiv._fullLayout[X.id].bgcolor).getLuminance(),U="M0,"+X.h+"L"+X.w/2+", 0L"+X.w+","+X.h+"Z",Q=!1,Y=le.append("path").attr("class","zoombox").attr("transform",d(X.x0,X.y0)).style({fill:ee>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",U),Z=le.append("path").attr("class","zoombox-corners").attr("transform",d(X.x0,X.y0)).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),X.clearOutline(ie)}(0,de,xe)):ue==="pan"?(X.dragOptions.moveFn=ye,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=J,H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,X.clearOutline(ie)):(T(ue)||k(ue))&&S(ne,de,xe,X.dragOptions,ue)}},re.onmousemove=function(ne){_.hover(ie,ne,X.id),ie._fullLayout._lasthover=re,ie._fullLayout._hoversubplot=X.id},re.onmouseout=function(ne){ie._dragging||x.unhover(ie,ne)},x.init(this.dragOptions)}},73972:function(o,a,n){var l=n(47769),f=n(64213),s=n(75138),u=n(41965),d=n(24401).addStyleRule,h=n(1426),p=n(9012),m=n(10820),y=h.extendFlat,v=h.extendDeepAll;function g(C){var P=C.name,D=C.categories,O=C.meta;if(a.modules[P])l.log("Type "+P+" already registered");else{a.subplotsRegistry[C.basePlotModule.name]||function(N){var E=N.name;if(a.subplotsRegistry[E])l.log("Plot type "+E+" already registered.");else for(var W in w(N),a.subplotsRegistry[E]=N,a.componentsRegistry)M(W,N.name)}(C.basePlotModule);for(var R={},F=0;F-1&&(x[w[m]].title={text:""});for(m=0;m")!==-1?"":F.html(z).text()});return F.remove(),A}(O)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(m,"'"),f.isIE()&&(O=(O=(O=O.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),O}},75341:function(o,a,n){var l=n(71828);o.exports=function(f,s){for(var u=0;uA+R||!l(F))}for(var B=0;Bm))return d}return h!==void 0?h:u.dflt},a.coerceColor=function(u,d,h){return f(d).isValid()?d:h!==void 0?h:u.dflt},a.coerceEnumerated=function(u,d,h){return u.coerceNumber&&(d=+d),u.values.indexOf(d)!==-1?d:h!==void 0?h:u.dflt},a.getValue=function(u,d){var h;return Array.isArray(u)?d0?se+=pe:k<0&&(se-=pe)}return se}function ee(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,z+(Te-se)/(Te-pe)-1)}var U=v[T+"a"],Q=v[M+"a"];P=Math.abs(U.r2c(U.range[1])-U.r2c(U.range[0]));var Y=l.getDistanceFunction(x,S,C,function(le){return(S(le)+C(le))/2});if(l.getClosest(D,Y,v),v.index!==!1&&D[v.index].p!==p){j||(L=function(le){return Math.min(N(le),le.p-R.bargroupwidth/2)},q=function(le){return Math.max(E(le),le.p+R.bargroupwidth/2)});var Z=D[v.index],X=O.base?Z.b+Z.s:Z.s;v[M+"0"]=v[M+"1"]=Q.c2p(Z[M],!0),v[M+"LabelVal"]=X;var re=R.extents[R.extents.round(Z.p)];v[T+"0"]=U.c2p(F?L(Z):re[0],!0),v[T+"1"]=U.c2p(F?q(Z):re[1],!0);var ie=Z.orig_p!==void 0;return v[T+"LabelVal"]=ie?Z.orig_p:Z.p,v.labelLabel=h(U,v[T+"LabelVal"],O[T+"hoverformat"]),v.valueLabel=h(Q,v[M+"LabelVal"],O[M+"hoverformat"]),v.baseLabel=h(Q,Z.b,O[M+"hoverformat"]),v.spikeDistance=(function(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,B+(Te-se)/(Te-pe)-1)}(Z)+function(le){return H(N(le),E(le),B)}(Z))/2,v[T+"Spike"]=U.c2p(Z.p,!0),u(Z,O,v),v.hovertemplate=O.hovertemplate,v}}function y(v,g){var b=g.mcc||v.marker.color,x=g.mlcc||v.marker.line.color,_=d(v,g);return s.opacity(b)?b:s.opacity(x)&&_?x:void 0}o.exports={hoverPoints:function(v,g,b,x,_){var w=m(v,g,b,x,_);if(w){var k=w.cd,T=k[0].trace,M=k[w.index];return w.color=y(T,M),f.getComponentMethod("errorbars","hoverInfo")(M,T,w),[w]}},hoverOnBars:m,getTraceColor:y}},60822:function(o,a,n){o.exports={attributes:n(1486),layoutAttributes:n(43641),supplyDefaults:n(90769).supplyDefaults,crossTraceDefaults:n(90769).crossTraceDefaults,supplyLayoutDefaults:n(13957),calc:n(92290),crossTraceCalc:n(11661).crossTraceCalc,colorbar:n(4898),arraysToCalcdata:n(75341),plot:n(17295).plot,style:n(16688).style,styleOnSelect:n(16688).styleOnSelect,hoverPoints:n(95423).hoverPoints,eventData:n(58065),selectPoints:n(81974),moduleType:"trace",name:"bar",basePlotModule:n(93612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},43641:function(o){o.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},13957:function(o,a,n){var l=n(73972),f=n(89298),s=n(71828),u=n(43641);o.exports=function(d,h,p){function m(T,M){return s.coerce(d,h,u,T,M)}for(var y=!1,v=!1,g=!1,b={},x=m("barmode"),_=0;_0}function F(B){return B==="auto"?0:B}function A(B,$){var j=Math.PI/180*$,N=Math.abs(Math.sin(j)),E=Math.abs(Math.cos(j));return{x:B.width*E+B.height*N,y:B.width*N+B.height*E}}function z(B,$,j,N,E,W){var G=!!W.isHorizontal,L=!!W.constrained,q=W.angle||0,H=W.anchor||"end",V=H==="end",te=H==="start",ee=((W.leftToRight||0)+1)/2,U=1-ee,Q=E.width,Y=E.height,Z=Math.abs($-B),X=Math.abs(N-j),re=Z>2*S&&X>2*S?S:0;Z-=2*re,X-=2*re;var ie=F(q);q!=="auto"||Q<=Z&&Y<=X||!(Q>Z||Y>X)||(Q>X||Y>Z)&&Q.01?we:function(De,Re,Ie){return Ie&&De===Re?De:Math.abs(De-Re)>=2?we(De):De>Re?Math.ceil(De):Math.floor(De)};ne=ke(ne,de,re),de=ke(de,ne,re),xe=ke(xe,ue,!re),ue=ke(ue,xe,!re)}var Ae=O(s.ensureSingle(ye,"path"),q,E,W);if(Ae.style("vector-effect",H?"none":"non-scaling-stroke").attr("d",isNaN((de-ne)*(ue-xe))||ge&&B._context.staticPlot?"M0,0Z":"M"+ne+","+xe+"V"+ue+"H"+de+"V"+xe+"Z").call(h.setClipUrl,$.layerClipId,B),!q.uniformtext.mode&&ie){var Ee=h.makePointStyleFns(U);h.singlePointStyle(Se,Ae,U,Ee,B)}(function(De,Re,Ie,Be,Ue,qe,Ye,at,lt,ct,bt){var ze,Ne=Re.xaxis,Qe=Re.yaxis,it=De._fullLayout;function kt(Dt,gt,ht){return s.ensureSingle(Dt,"text").text(gt).attr({class:"bartext bartext-"+ze,"text-anchor":"middle","data-notex":1}).call(h.font,ht).call(u.convertToTspans,De)}var Je=Be[0].trace,ut=Je.orientation==="h",pt=function(Dt,gt,ht,yt,qt){var Et,jt=gt[0].trace;return Et=jt.texttemplate?function(Tt,Ot,At,Lt,Rt){var $t=Ot[0].trace,Yt=s.castOption($t,At,"texttemplate");if(!Yt)return"";var Xt,Bt,Wt,tn,cn=$t.type==="histogram",ln=$t.type==="waterfall",an=$t.type==="funnel",sn=$t.orientation==="h";function Zt(wn){return m(tn,tn.c2l(wn),!0).text}sn?(Xt="y",Bt=Rt,Wt="x",tn=Lt):(Xt="x",Bt=Lt,Wt="y",tn=Rt);var pn,nn=Ot[At],Kt={};Kt.label=nn.p,Kt.labelLabel=Kt[Xt+"Label"]=(pn=nn.p,m(Bt,Bt.c2l(pn),!0).text);var On=s.castOption($t,nn.i,"text");(On===0||On)&&(Kt.text=On),Kt.value=nn.s,Kt.valueLabel=Kt[Wt+"Label"]=Zt(nn.s);var Tn={};M(Tn,$t,nn.i),(cn||Tn.x===void 0)&&(Tn.x=sn?Kt.value:Kt.label),(cn||Tn.y===void 0)&&(Tn.y=sn?Kt.label:Kt.value),(cn||Tn.xLabel===void 0)&&(Tn.xLabel=sn?Kt.valueLabel:Kt.labelLabel),(cn||Tn.yLabel===void 0)&&(Tn.yLabel=sn?Kt.labelLabel:Kt.valueLabel),ln&&(Kt.delta=+nn.rawS||nn.s,Kt.deltaLabel=Zt(Kt.delta),Kt.final=nn.v,Kt.finalLabel=Zt(Kt.final),Kt.initial=Kt.final-Kt.delta,Kt.initialLabel=Zt(Kt.initial)),an&&(Kt.value=nn.s,Kt.valueLabel=Zt(Kt.value),Kt.percentInitial=nn.begR,Kt.percentInitialLabel=s.formatPercent(nn.begR),Kt.percentPrevious=nn.difR,Kt.percentPreviousLabel=s.formatPercent(nn.difR),Kt.percentTotal=nn.sumR,Kt.percenTotalLabel=s.formatPercent(nn.sumR));var Dn=s.castOption($t,nn.i,"customdata");return Dn&&(Kt.customdata=Dn),s.texttemplateString(Yt,Kt,Tt._d3locale,Tn,Kt,$t._meta||{})}(Dt,gt,ht,yt,qt):jt.textinfo?function(Tt,Ot,At,Lt){var Rt=Tt[0].trace,$t=Rt.orientation==="h",Yt=Rt.type==="waterfall",Xt=Rt.type==="funnel";function Bt(Dn){return m($t?At:Lt,+Dn,!0).text}var Wt,tn,cn=Rt.textinfo,ln=Tt[Ot],an=cn.split("+"),sn=[],Zt=function(Dn){return an.indexOf(Dn)!==-1};if(Zt("label")&&sn.push((tn=Tt[Ot].p,m($t?Lt:At,tn,!0).text)),Zt("text")&&((Wt=s.castOption(Rt,ln.i,"text"))===0||Wt)&&sn.push(Wt),Yt){var pn=+ln.rawS||ln.s,nn=ln.v,Kt=nn-pn;Zt("initial")&&sn.push(Bt(Kt)),Zt("delta")&&sn.push(Bt(pn)),Zt("final")&&sn.push(Bt(nn))}if(Xt){Zt("value")&&sn.push(Bt(ln.s));var On=0;Zt("percent initial")&&On++,Zt("percent previous")&&On++,Zt("percent total")&&On++;var Tn=On>1;Zt("percent initial")&&(Wt=s.formatPercent(ln.begR),Tn&&(Wt+=" of initial"),sn.push(Wt)),Zt("percent previous")&&(Wt=s.formatPercent(ln.difR),Tn&&(Wt+=" of previous"),sn.push(Wt)),Zt("percent total")&&(Wt=s.formatPercent(ln.sumR),Tn&&(Wt+=" of total"),sn.push(Wt))}return sn.join("
")}(gt,ht,yt,qt):x.getValue(jt.text,ht),x.coerceString(k,Et)}(it,Be,Ue,Ne,Qe);ze=function(Dt,gt){var ht=x.getValue(Dt.textposition,gt);return x.coerceEnumerated(T,ht)}(Je,Ue);var It=ct.mode==="stack"||ct.mode==="relative",Mt=Be[Ue],zt=!It||Mt._outmost;if(pt&&ze!=="none"&&(!Mt.isBlank&&qe!==Ye&&at!==lt||ze!=="auto"&&ze!=="inside")){var wt=it.font,ve=b.getBarColor(Be[Ue],Je),_e=b.getInsideTextFont(Je,Ue,wt,ve),Ve=b.getOutsideTextFont(Je,Ue,wt),We=Ie.datum();ut?Ne.type==="log"&&We.s0<=0&&(qe=Ne.range[0]0&&nt>0&&(Ke<=mt&&nt<=tt||Ke<=tt&&nt<=mt||(ut?mt>=Ke*(tt/nt):tt>=nt*(mt/Ke)))?ze="inside":(ze="outside",Ze.remove(),Ze=null)):ze="inside"),!Ze){var Ft=(Ze=kt(Ie,pt,st=s.ensureUniformFontSize(De,ze==="outside"?Ve:_e))).attr("transform");if(Ze.attr("transform",""),Ke=(Ge=h.bBox(Ze.node())).width,nt=Ge.height,Ze.attr("transform",Ft),Ke<=0||nt<=0)return void Ze.remove()}var Vt,St=Je.textangle;Vt=ze==="outside"?function(Dt,gt,ht,yt,qt,Et){var jt,Tt=!!Et.isHorizontal,Ot=!!Et.constrained,At=Et.angle||0,Lt=qt.width,Rt=qt.height,$t=Math.abs(gt-Dt),Yt=Math.abs(yt-ht);jt=Tt?Yt>2*S?S:0:$t>2*S?S:0;var Xt=1;Ot&&(Xt=Tt?Math.min(1,Yt/Rt):Math.min(1,$t/Lt));var Bt=F(At),Wt=A(qt,Bt),tn=(Tt?Wt.x:Wt.y)/2,cn=(qt.left+qt.right)/2,ln=(qt.top+qt.bottom)/2,an=(Dt+gt)/2,sn=(ht+yt)/2,Zt=0,pn=0,nn=Tt?D(gt,Dt):D(ht,yt);return Tt?(an=gt-nn*jt,Zt=nn*tn):(sn=yt+nn*jt,pn=-nn*tn),{textX:cn,textY:ln,targetX:an,targetY:sn,anchorX:Zt,anchorY:pn,scale:Xt,rotate:Bt}}(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="outside",angle:St}):z(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="inside",angle:St,anchor:Je.insidetextanchor}),Vt.fontSize=st.size,v(Je.type==="histogram"?"bar":Je.type,Vt,it),Mt.transform=Vt;var Nt=O(Ze,it,ct,bt);s.setTransormAndDisplay(Nt,Vt)}else Ie.select("text").remove()})(B,$,ye,te,Oe,ne,de,xe,ue,E,W),$.layerClipId&&h.hideOutsideRangePoint(Se,ye.select("text"),G,L,U.xcalendar,U.ycalendar)});var Te=U.cliponaxis===!1;h.setClipUrl(ee,Te?null:$.layerClipId,B)});p.getComponentMethod("errorbars","plot")(B,V,$,E)},toMoveInsideBar:z}},81974:function(o){function a(n,l,f,s,u){var d=l.c2p(s?n.s0:n.p0,!0),h=l.c2p(s?n.s1:n.p1,!0),p=f.c2p(s?n.p0:n.s0,!0),m=f.c2p(s?n.p1:n.s1,!0);return u?[(d+h)/2,(p+m)/2]:s?[h,(p+m)/2]:[(d+h)/2,m]}o.exports=function(n,l){var f,s=n.cd,u=n.xaxis,d=n.yaxis,h=s[0].trace,p=h.type==="funnel",m=h.orientation==="h",y=[];if(l===!1)for(f=0;f1||O.bargap===0&&O.bargroupgap===0&&!R[0].trace.marker.line.width)&&l.select(this).attr("shape-rendering","crispEdges")}),P.selectAll("g.points").each(function(R){b(l.select(this),R[0].trace,C)}),d.getComponentMethod("errorbars","style")(P)},styleTextPoints:x,styleOnSelect:function(C,P,D){var O=P[0].trace;O.selectedpoints?function(R,F,A){s.selectedPointStyle(R.selectAll("path"),F),function(z,B,$){z.each(function(j){var N,E=l.select(this);if(j.selected){N=u.ensureUniformFontSize($,_(E,j,B,$));var W=B.selected.textfont&&B.selected.textfont.color;W&&(N.color=W),s.font(E,N)}else s.selectedTextStyle(E,B)})}(R.selectAll("text"),F,A)}(D,O,C):(b(D,O,C),d.getComponentMethod("errorbars","style")(D))},getInsideTextFont:k,getOutsideTextFont:T,getBarColor:S,resizeText:h}},98340:function(o,a,n){var l=n(7901),f=n(52075).hasColorscale,s=n(1586),u=n(71828).coercePattern;o.exports=function(d,h,p,m,y){var v=p("marker.color",m),g=f(d,"marker");g&&s(d,h,y,p,{prefix:"marker.",cLetter:"c"}),p("marker.line.color",l.defaultLine),f(d,"marker.line")&&s(d,h,y,p,{prefix:"marker.line.",cLetter:"c"}),p("marker.line.width"),p("marker.opacity"),u(p,"marker.pattern",v,g),p("selected.marker.color"),p("unselected.marker.color")}},72597:function(o,a,n){var l=n(39898),f=n(71828);function s(u){return"_"+u+"Text_minsize"}o.exports={recordMinTextSize:function(u,d,h){if(h.uniformtext.mode){var p=s(u),m=h.uniformtext.minsize,y=d.scale*d.fontSize;d.hide=yj.uf};if(T._hasPreCompStats){var Y=T[P],Z=function(Re){return C.d2c((T[Re]||[])[M])},X=1/0,re=-1/0;for(M=0;M=j.q1&&j.q3>=j.med){var le=Z("lowerfence");j.lf=le!==d&&le<=j.q1?le:g(j,E,W);var se=Z("upperfence");j.uf=se!==d&&se>=j.q3?se:b(j,E,W);var pe=Z("mean");j.mean=pe!==d?pe:W?u.mean(E,W):(j.q1+j.q3)/2;var Te=Z("sd");j.sd=pe!==d&&Te>=0?Te:W?u.stdev(E,W,j.mean):j.q3-j.q1,j.lo=x(j),j.uo=_(j);var Se=Z("notchspan");Se=Se!==d&&Se>0?Se:w(j,W),j.ln=j.med-Se,j.un=j.med+Se;var Oe=j.lf,Me=j.uf;T.boxpoints&&E.length&&(Oe=Math.min(Oe,E[0]),Me=Math.max(Me,E[W-1])),T.notched&&(Oe=Math.min(Oe,j.ln),Me=Math.max(Me,j.un)),j.min=Oe,j.max=Me}else{var ce;u.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+j.q1,"median = "+j.med,"q3 = "+j.q3].join(` diff --git a/src/evidently/ui/assets/static/js/DashboardViewParams-B9orGR5W.js b/src/evidently/ui/assets/static/js/DashboardViewParams-B9orGR5W.js deleted file mode 100644 index a7e2c93447..0000000000 --- a/src/evidently/ui/assets/static/js/DashboardViewParams-B9orGR5W.js +++ /dev/null @@ -1 +0,0 @@ -import{R as a,y as t}from"./vendor-CmCdJidw.js";const s=a.createContext(null),o=()=>t.useContext(s);export{s as D,o as u}; diff --git a/src/evidently/ui/assets/static/js/DashboardViewParams-C3ZVhGVT.js b/src/evidently/ui/assets/static/js/DashboardViewParams-C3ZVhGVT.js new file mode 100644 index 0000000000..d9bcc40c2b --- /dev/null +++ b/src/evidently/ui/assets/static/js/DashboardViewParams-C3ZVhGVT.js @@ -0,0 +1 @@ +import{R as a,r as t}from"./vendor-CFh6IQM6.js";const s=a.createContext(null),o=()=>t.useContext(s);export{s as D,o as u}; diff --git a/src/evidently/ui/assets/static/js/DashboardWidgets-Ba2wfP2u.js b/src/evidently/ui/assets/static/js/DashboardWidgets-BZwV75ei.js similarity index 54% rename from src/evidently/ui/assets/static/js/DashboardWidgets-Ba2wfP2u.js rename to src/evidently/ui/assets/static/js/DashboardWidgets-BZwV75ei.js index c51ccbe128..92047a7e5a 100644 --- a/src/evidently/ui/assets/static/js/DashboardWidgets-Ba2wfP2u.js +++ b/src/evidently/ui/assets/static/js/DashboardWidgets-BZwV75ei.js @@ -1 +1 @@ -import{j as r,T as e,G as i}from"./vendor-CmCdJidw.js";import{D as n}from"./DashboardContent-ClNKCdbH.js";import"./DashboardViewParams-B9orGR5W.js";import"./createSvgIcon-C96PFZfH.js";import"./Edit-BcjZfdDu.js";const h=({widgets:t,ItemWrapper:a})=>t.length===0?r.jsx(e,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):r.jsx(r.Fragment,{children:r.jsx(i,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:r.jsx(n,{widgets:t,ItemWrapper:a})})});export{h as DashboardWidgets}; +import{j as r,T as e,G as i}from"./vendor-CFh6IQM6.js";import{D as n}from"./DashboardContent-TZHSTgd_.js";import"./DashboardViewParams-C3ZVhGVT.js";import"./createSvgIcon-BHt_C7WZ.js";import"./Edit-DoUCfieB.js";const h=({widgets:t,ItemWrapper:a})=>t.length===0?r.jsx(e,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):r.jsx(r.Fragment,{children:r.jsx(i,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:r.jsx(n,{widgets:t,ItemWrapper:a})})});export{h as DashboardWidgets}; diff --git a/src/evidently/ui/assets/static/js/Edit-BcjZfdDu.js b/src/evidently/ui/assets/static/js/Edit-DoUCfieB.js similarity index 69% rename from src/evidently/ui/assets/static/js/Edit-BcjZfdDu.js rename to src/evidently/ui/assets/static/js/Edit-DoUCfieB.js index b30cca8bff..39730540c0 100644 --- a/src/evidently/ui/assets/static/js/Edit-BcjZfdDu.js +++ b/src/evidently/ui/assets/static/js/Edit-DoUCfieB.js @@ -1 +1 @@ -import{r,i as t}from"./createSvgIcon-C96PFZfH.js";import{j as a}from"./vendor-CmCdJidw.js";var e={},u=t;Object.defineProperty(e,"__esModule",{value:!0});var i=e.default=void 0,o=u(r()),d=a,l=(0,o.default)((0,d.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");i=e.default=l;export{e as E,i as d}; +import{r,i as t}from"./createSvgIcon-BHt_C7WZ.js";import{j as a}from"./vendor-CFh6IQM6.js";var e={},u=t;Object.defineProperty(e,"__esModule",{value:!0});var i=e.default=void 0,o=u(r()),d=a,l=(0,o.default)((0,d.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");i=e.default=l;export{e as E,i as d}; diff --git a/src/evidently/ui/assets/static/js/createSvgIcon-C96PFZfH.js b/src/evidently/ui/assets/static/js/createSvgIcon-BHt_C7WZ.js similarity index 86% rename from src/evidently/ui/assets/static/js/createSvgIcon-C96PFZfH.js rename to src/evidently/ui/assets/static/js/createSvgIcon-BHt_C7WZ.js index e8ca5fba46..f71d773167 100644 --- a/src/evidently/ui/assets/static/js/createSvgIcon-C96PFZfH.js +++ b/src/evidently/ui/assets/static/js/createSvgIcon-BHt_C7WZ.js @@ -1 +1 @@ -import{am as i,bv as o}from"./vendor-CmCdJidw.js";var a={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(a);var f=a.exports,u={};const s=i(o);var n;function p(){return n||(n=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=s}(u)),u}export{f as i,p as r}; +import{ar as i,bB as o}from"./vendor-CFh6IQM6.js";var a={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(a);var f=a.exports,u={};const s=i(o);var n;function p(){return n||(n=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=s}(u)),u}export{f as i,p as r}; diff --git a/src/evidently/ui/assets/static/js/index-4yzo42d5.js b/src/evidently/ui/assets/static/js/index-4yzo42d5.js deleted file mode 100644 index 4447570fbe..0000000000 --- a/src/evidently/ui/assets/static/js/index-4yzo42d5.js +++ /dev/null @@ -1 +0,0 @@ -import{V as St,j as x,R as K,z as we,y as ue,t as Ce,W as ot,X as Et,B as ee,J as jt,Y as lt,Z as kt,_ as Tt,$ as Ot,a0 as Ye,K as Ct,r as Lt,s as Rt,T as Te,N as Nt,G as Mt}from"./vendor-CmCdJidw.js";import{d as Pt}from"./Edit-BcjZfdDu.js";import{r as Bt,i as Ut}from"./createSvgIcon-C96PFZfH.js";import{u as Je}from"./index-BY6V2Y10.js";const It=St(x.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");var Le={},qt=Ut;Object.defineProperty(Le,"__esModule",{value:!0});var ut=Le.default=void 0,Wt=qt(Bt()),Ht=x,$t=(0,Wt.default)((0,Ht.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");ut=Le.default=$t;var ce=e=>e.type==="checkbox",ie=e=>e instanceof Date,O=e=>e==null;const ct=e=>typeof e=="object";var j=e=>!O(e)&&!Array.isArray(e)&&ct(e)&&!ie(e),zt=e=>j(e)&&e.target?ce(e.target)?e.target.checked:e.target.value:e,Gt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Kt=(e,i)=>e.has(Gt(i)),Yt=e=>{const i=e.constructor&&e.constructor.prototype;return j(i)&&i.hasOwnProperty("isPrototypeOf")},Re=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function G(e){let i;const s=Array.isArray(e);if(e instanceof Date)i=new Date(e);else if(e instanceof Set)i=new Set(e);else if(!(Re&&(e instanceof Blob||e instanceof FileList))&&(s||j(e)))if(i=s?[]:{},!s&&!Yt(e))i=e;else for(const t in e)e.hasOwnProperty(t)&&(i[t]=G(e[t]));else return e;return i}var fe=e=>Array.isArray(e)?e.filter(Boolean):[],E=e=>e===void 0,d=(e,i,s)=>{if(!i||!j(e))return s;const t=fe(i.split(/[,[\].]+?/)).reduce((o,a)=>O(o)?o:o[a],e);return E(t)||t===e?E(e[i])?s:e[i]:t},Z=e=>typeof e=="boolean";const Xe={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},P={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},z={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};K.createContext(null);var Jt=(e,i,s,t=!0)=>{const o={defaultValues:i._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const u=a;return i._proxyFormState[u]!==P.all&&(i._proxyFormState[u]=!t||P.all),e[u]}});return o},N=e=>j(e)&&!Object.keys(e).length,Xt=(e,i,s,t)=>{s(e);const{name:o,...a}=e;return N(a)||Object.keys(a).length>=Object.keys(i).length||Object.keys(a).find(u=>i[u]===P.all)},De=e=>Array.isArray(e)?e:[e];function Zt(e){const i=K.useRef(e);i.current=e,K.useEffect(()=>{const s=!e.disabled&&i.current.subject&&i.current.subject.subscribe({next:i.current.next});return()=>{s&&s.unsubscribe()}},[e.disabled])}var W=e=>typeof e=="string",Qt=(e,i,s,t,o)=>W(e)?(t&&i.watch.add(e),d(s,e,o)):Array.isArray(e)?e.map(a=>(t&&i.watch.add(a),d(s,a))):(t&&(i.watchAll=!0),s),Ne=e=>/^\w*$/.test(e),ft=e=>fe(e.replace(/["|']|\]/g,"").split(/\.|\[/));function V(e,i,s){let t=-1;const o=Ne(i)?[i]:ft(i),a=o.length,u=a-1;for(;++ti?{...s[e],types:{...s[e]&&s[e].types?s[e].types:{},[t]:o||!0}}:{};const Oe=(e,i,s)=>{for(const t of s||Object.keys(e)){const o=d(e,t);if(o){const{_f:a,...u}=o;if(a&&i(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else j(u)&&Oe(u,i)}}};var Ze=e=>({isOnSubmit:!e||e===P.onSubmit,isOnBlur:e===P.onBlur,isOnChange:e===P.onChange,isOnAll:e===P.all,isOnTouch:e===P.onTouched}),Qe=(e,i,s)=>!s&&(i.watchAll||i.watch.has(e)||[...i.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),er=(e,i,s)=>{const t=fe(d(e,s));return V(t,"root",i[s]),V(e,s,t),e},Me=e=>e.type==="file",Y=e=>typeof e=="function",he=e=>{if(!Re)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},ye=e=>W(e),Pe=e=>e.type==="radio",ge=e=>e instanceof RegExp;const et={value:!1,isValid:!1},tt={value:!0,isValid:!0};var yt=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(s=>s&&s.checked&&!s.disabled).map(s=>s.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!E(e[0].attributes.value)?E(e[0].value)||e[0].value===""?tt:{value:e[0].value,isValid:!0}:tt:et}return et};const rt={isValid:!1,value:null};var ht=e=>Array.isArray(e)?e.reduce((i,s)=>s&&s.checked&&!s.disabled?{isValid:!0,value:s.value}:i,rt):rt;function st(e,i,s="validate"){if(ye(e)||Array.isArray(e)&&e.every(ye)||Z(e)&&!e)return{type:s,message:ye(e)?e:"",ref:i}}var se=e=>j(e)&&!ge(e)?e:{value:e,message:""},it=async(e,i,s,t,o)=>{const{ref:a,refs:u,required:g,maxLength:v,minLength:w,min:B,max:A,pattern:p,validate:U,name:C,valueAsNumber:me,mount:de,disabled:pe}=e._f,m=d(i,C);if(!de||pe)return{};const M=u?u[0]:a,H=_=>{t&&M.reportValidity&&(M.setCustomValidity(Z(_)?"":_||""),M.reportValidity())},k={},ne=Pe(a),te=ce(a),be=ne||te,I=(me||Me(a))&&E(a.value)&&E(m)||he(a)&&a.value===""||m===""||Array.isArray(m)&&!m.length,J=dt.bind(null,C,s,k),$=(_,b,D,L=z.maxLength,R=z.minLength)=>{const q=_?b:D;k[C]={type:_?L:R,message:q,ref:a,...J(_?L:R,q)}};if(o?!Array.isArray(m)||!m.length:g&&(!be&&(I||O(m))||Z(m)&&!m||te&&!yt(u).isValid||ne&&!ht(u).isValid)){const{value:_,message:b}=ye(g)?{value:!!g,message:g}:se(g);if(_&&(k[C]={type:z.required,message:b,ref:M,...J(z.required,b)},!s))return H(b),k}if(!I&&(!O(B)||!O(A))){let _,b;const D=se(A),L=se(B);if(!O(m)&&!isNaN(m)){const R=a.valueAsNumber||m&&+m;O(D.value)||(_=R>D.value),O(L.value)||(b=Rnew Date(new Date().toDateString()+" "+oe),X=a.type=="time",ae=a.type=="week";W(D.value)&&m&&(_=X?q(m)>q(D.value):ae?m>D.value:R>new Date(D.value)),W(L.value)&&m&&(b=X?q(m)+_.value,L=!O(b.value)&&m.length<+b.value;if((D||L)&&($(D,_.message,b.message),!s))return H(k[C].message),k}if(p&&!I&&W(m)){const{value:_,message:b}=se(p);if(ge(_)&&!m.match(_)&&(k[C]={type:z.pattern,message:b,ref:a,...J(z.pattern,b)},!s))return H(b),k}if(U){if(Y(U)){const _=await U(m,i),b=st(_,M);if(b&&(k[C]={...b,...J(z.validate,b.message)},!s))return H(b.message),k}else if(j(U)){let _={};for(const b in U){if(!N(_)&&!s)break;const D=st(await U[b](m,i),M,b);D&&(_={...D,...J(b,D.message)},H(D.message),s&&(k[C]=_))}if(!N(_)&&(k[C]={ref:M,..._},!s))return k}}return H(!0),k};function tr(e,i){const s=i.slice(0,-1).length;let t=0;for(;t{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}}var ve=e=>O(e)||!ct(e);function Q(e,i){if(ve(e)||ve(i))return e===i;if(ie(e)&&ie(i))return e.getTime()===i.getTime();const s=Object.keys(e),t=Object.keys(i);if(s.length!==t.length)return!1;for(const o of s){const a=e[o];if(!t.includes(o))return!1;if(o!=="ref"){const u=i[o];if(ie(a)&&ie(u)||j(a)&&j(u)||Array.isArray(a)&&Array.isArray(u)?!Q(a,u):a!==u)return!1}}return!0}var gt=e=>e.type==="select-multiple",sr=e=>Pe(e)||ce(e),Ee=e=>he(e)&&e.isConnected,vt=e=>{for(const i in e)if(Y(e[i]))return!0;return!1};function xe(e,i={}){const s=Array.isArray(e);if(j(e)||s)for(const t in e)Array.isArray(e[t])||j(e[t])&&!vt(e[t])?(i[t]=Array.isArray(e[t])?[]:{},xe(e[t],i[t])):O(e[t])||(i[t]=!0);return i}function xt(e,i,s){const t=Array.isArray(e);if(j(e)||t)for(const o in e)Array.isArray(e[o])||j(e[o])&&!vt(e[o])?E(i)||ve(s[o])?s[o]=Array.isArray(e[o])?xe(e[o],[]):{...xe(e[o])}:xt(e[o],O(i)?{}:i[o],s[o]):s[o]=!Q(e[o],i[o]);return s}var je=(e,i)=>xt(e,i,xe(i)),mt=(e,{valueAsNumber:i,valueAsDate:s,setValueAs:t})=>E(e)?e:i?e===""?NaN:e&&+e:s&&W(e)?new Date(e):t?t(e):e;function ke(e){const i=e.ref;if(!(e.refs?e.refs.every(s=>s.disabled):i.disabled))return Me(i)?i.files:Pe(i)?ht(e.refs).value:gt(i)?[...i.selectedOptions].map(({value:s})=>s):ce(i)?yt(e.refs).value:mt(E(i.value)?e.ref.value:i.value,e)}var ir=(e,i,s,t)=>{const o={};for(const a of e){const u=d(i,a);u&&V(o,a,u._f)}return{criteriaMode:s,names:[...e],fields:o,shouldUseNativeValidation:t}},le=e=>E(e)?e:ge(e)?e.source:j(e)?ge(e.value)?e.value.source:e.value:e,nr=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function nt(e,i,s){const t=d(e,s);if(t||Ne(s))return{error:t,name:s};const o=s.split(".");for(;o.length;){const a=o.join("."),u=d(i,a),g=d(e,a);if(u&&!Array.isArray(u)&&s!==a)return{name:s};if(g&&g.type)return{name:a,error:g};o.pop()}return{name:s}}var ar=(e,i,s,t,o)=>o.isOnAll?!1:!s&&o.isOnTouch?!(i||e):(s?t.isOnBlur:o.isOnBlur)?!e:(s?t.isOnChange:o.isOnChange)?e:!0,or=(e,i)=>!fe(d(e,i)).length&&T(e,i);const lr={mode:P.onSubmit,reValidateMode:P.onChange,shouldFocusError:!0};function ur(e={},i){let s={...lr,...e},t={submitCount:0,isDirty:!1,isLoading:Y(s.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},a=j(s.defaultValues)||j(s.values)?G(s.defaultValues||s.values)||{}:{},u=s.shouldUnregister?{}:G(a),g={action:!1,mount:!1,watch:!1},v={mount:new Set,unMount:new Set,array:new Set,watch:new Set},w,B=0;const A={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Se(),array:Se(),state:Se()},U=e.resetOptions&&e.resetOptions.keepDirtyValues,C=Ze(s.mode),me=Ze(s.reValidateMode),de=s.criteriaMode===P.all,pe=r=>n=>{clearTimeout(B),B=setTimeout(r,n)},m=async r=>{if(A.isValid||r){const n=s.resolver?N((await I()).errors):await $(o,!0);n!==t.isValid&&p.state.next({isValid:n})}},M=r=>A.isValidating&&p.state.next({isValidating:r}),H=(r,n=[],l,y,f=!0,c=!0)=>{if(y&&l){if(g.action=!0,c&&Array.isArray(d(o,r))){const h=l(d(o,r),y.argA,y.argB);f&&V(o,r,h)}if(c&&Array.isArray(d(t.errors,r))){const h=l(d(t.errors,r),y.argA,y.argB);f&&V(t.errors,r,h),or(t.errors,r)}if(A.touchedFields&&c&&Array.isArray(d(t.touchedFields,r))){const h=l(d(t.touchedFields,r),y.argA,y.argB);f&&V(t.touchedFields,r,h)}A.dirtyFields&&(t.dirtyFields=je(a,u)),p.state.next({name:r,isDirty:b(r,n),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else V(u,r,n)},k=(r,n)=>{V(t.errors,r,n),p.state.next({errors:t.errors})},ne=(r,n,l,y)=>{const f=d(o,r);if(f){const c=d(u,r,E(l)?d(a,r):l);E(c)||y&&y.defaultChecked||n?V(u,r,n?c:ke(f._f)):R(r,c),g.mount&&m()}},te=(r,n,l,y,f)=>{let c=!1,h=!1;const F={name:r};if(!l||y){A.isDirty&&(h=t.isDirty,t.isDirty=F.isDirty=b(),c=h!==F.isDirty);const S=Q(d(a,r),n);h=d(t.dirtyFields,r),S?T(t.dirtyFields,r):V(t.dirtyFields,r,!0),F.dirtyFields=t.dirtyFields,c=c||A.dirtyFields&&h!==!S}if(l){const S=d(t.touchedFields,r);S||(V(t.touchedFields,r,l),F.touchedFields=t.touchedFields,c=c||A.touchedFields&&S!==l)}return c&&f&&p.state.next(F),c?F:{}},be=(r,n,l,y)=>{const f=d(t.errors,r),c=A.isValid&&Z(n)&&t.isValid!==n;if(e.delayError&&l?(w=pe(()=>k(r,l)),w(e.delayError)):(clearTimeout(B),w=null,l?V(t.errors,r,l):T(t.errors,r)),(l?!Q(f,l):f)||!N(y)||c){const h={...y,...c&&Z(n)?{isValid:n}:{},errors:t.errors,name:r};t={...t,...h},p.state.next(h)}M(!1)},I=async r=>s.resolver(u,s.context,ir(r||v.mount,o,s.criteriaMode,s.shouldUseNativeValidation)),J=async r=>{const{errors:n}=await I(r);if(r)for(const l of r){const y=d(n,l);y?V(t.errors,l,y):T(t.errors,l)}else t.errors=n;return n},$=async(r,n,l={valid:!0})=>{for(const y in r){const f=r[y];if(f){const{_f:c,...h}=f;if(c){const F=v.array.has(c.name),S=await it(f,u,de,s.shouldUseNativeValidation&&!n,F);if(S[c.name]&&(l.valid=!1,n))break;!n&&(d(S,c.name)?F?er(t.errors,S,c.name):V(t.errors,c.name,S[c.name]):T(t.errors,c.name))}h&&await $(h,n,l)}}return l.valid},_=()=>{for(const r of v.unMount){const n=d(o,r);n&&(n._f.refs?n._f.refs.every(l=>!Ee(l)):!Ee(n._f.ref))&&_e(r)}v.unMount=new Set},b=(r,n)=>(r&&n&&V(u,r,n),!Q(Be(),a)),D=(r,n,l)=>Qt(r,v,{...g.mount?u:E(n)?a:W(r)?{[r]:n}:n},l,n),L=r=>fe(d(g.mount?u:a,r,e.shouldUnregister?d(a,r,[]):[])),R=(r,n,l={})=>{const y=d(o,r);let f=n;if(y){const c=y._f;c&&(!c.disabled&&V(u,r,mt(n,c)),f=he(c.ref)&&O(n)?"":n,gt(c.ref)?[...c.ref.options].forEach(h=>h.selected=f.includes(h.value)):c.refs?ce(c.ref)?c.refs.length>1?c.refs.forEach(h=>(!h.defaultChecked||!h.disabled)&&(h.checked=Array.isArray(f)?!!f.find(F=>F===h.value):f===h.value)):c.refs[0]&&(c.refs[0].checked=!!f):c.refs.forEach(h=>h.checked=h.value===f):Me(c.ref)?c.ref.value="":(c.ref.value=f,c.ref.type||p.values.next({name:r,values:{...u}})))}(l.shouldDirty||l.shouldTouch)&&te(r,f,l.shouldTouch,l.shouldDirty,!0),l.shouldValidate&&oe(r)},q=(r,n,l)=>{for(const y in n){const f=n[y],c=`${r}.${y}`,h=d(o,c);(v.array.has(r)||!ve(f)||h&&!h._f)&&!ie(f)?q(c,f,l):R(c,f,l)}},X=(r,n,l={})=>{const y=d(o,r),f=v.array.has(r),c=G(n);V(u,r,c),f?(p.array.next({name:r,values:{...u}}),(A.isDirty||A.dirtyFields)&&l.shouldDirty&&p.state.next({name:r,dirtyFields:je(a,u),isDirty:b(r,c)})):y&&!y._f&&!O(c)?q(r,c,l):R(r,c,l),Qe(r,v)&&p.state.next({...t}),p.values.next({name:r,values:{...u}}),!g.mount&&i()},ae=async r=>{const n=r.target;let l=n.name,y=!0;const f=d(o,l),c=()=>n.type?ke(f._f):zt(r);if(f){let h,F;const S=c(),re=r.type===Xe.BLUR||r.type===Xe.FOCUS_OUT,Ft=!nr(f._f)&&!s.resolver&&!d(t.errors,l)&&!f._f.deps||ar(re,d(t.touchedFields,l),t.isSubmitted,me,C),Ae=Qe(l,v,re);V(u,l,S),re?(f._f.onBlur&&f._f.onBlur(r),w&&w(0)):f._f.onChange&&f._f.onChange(r);const Fe=te(l,S,re,!1),wt=!N(Fe)||Ae;if(!re&&p.values.next({name:l,type:r.type,values:{...u}}),Ft)return A.isValid&&m(),wt&&p.state.next({name:l,...Ae?{}:Fe});if(!re&&Ae&&p.state.next({...t}),M(!0),s.resolver){const{errors:Ge}=await I([l]),Dt=nt(t.errors,o,l),Ke=nt(Ge,o,Dt.name||l);h=Ke.error,l=Ke.name,F=N(Ge)}else h=(await it(f,u,de,s.shouldUseNativeValidation))[l],y=Number.isNaN(S)||S===d(u,l,S),y&&(h?F=!1:A.isValid&&(F=await $(o,!0)));y&&(f._f.deps&&oe(f._f.deps),be(l,F,h,Fe))}},oe=async(r,n={})=>{let l,y;const f=De(r);if(M(!0),s.resolver){const c=await J(E(r)?r:f);l=N(c),y=r?!f.some(h=>d(c,h)):l}else r?(y=(await Promise.all(f.map(async c=>{const h=d(o,c);return await $(h&&h._f?{[c]:h}:h)}))).every(Boolean),!(!y&&!t.isValid)&&m()):y=l=await $(o);return p.state.next({...!W(r)||A.isValid&&l!==t.isValid?{}:{name:r},...s.resolver||!r?{isValid:l}:{},errors:t.errors,isValidating:!1}),n.shouldFocus&&!y&&Oe(o,c=>c&&d(t.errors,c),r?f:v.mount),y},Be=r=>{const n={...a,...g.mount?u:{}};return E(r)?n:W(r)?d(n,r):r.map(l=>d(n,l))},Ue=(r,n)=>({invalid:!!d((n||t).errors,r),isDirty:!!d((n||t).dirtyFields,r),isTouched:!!d((n||t).touchedFields,r),error:d((n||t).errors,r)}),_t=r=>{r&&De(r).forEach(n=>T(t.errors,n)),p.state.next({errors:r?t.errors:{}})},Ie=(r,n,l)=>{const y=(d(o,r,{_f:{}})._f||{}).ref;V(t.errors,r,{...n,ref:y}),p.state.next({name:r,errors:t.errors,isValid:!1}),l&&l.shouldFocus&&y&&y.focus&&y.focus()},Vt=(r,n)=>Y(r)?p.values.subscribe({next:l=>r(D(void 0,n),l)}):D(r,n,!0),_e=(r,n={})=>{for(const l of r?De(r):v.mount)v.mount.delete(l),v.array.delete(l),n.keepValue||(T(o,l),T(u,l)),!n.keepError&&T(t.errors,l),!n.keepDirty&&T(t.dirtyFields,l),!n.keepTouched&&T(t.touchedFields,l),!s.shouldUnregister&&!n.keepDefaultValue&&T(a,l);p.values.next({values:{...u}}),p.state.next({...t,...n.keepDirty?{isDirty:b()}:{}}),!n.keepIsValid&&m()},qe=({disabled:r,name:n,field:l,fields:y})=>{if(Z(r)){const f=r?void 0:d(u,n,ke(l?l._f:d(y,n)._f));V(u,n,f),te(n,f,!1,!1,!0)}},Ve=(r,n={})=>{let l=d(o,r);const y=Z(n.disabled);return V(o,r,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:r}},name:r,mount:!0,...n}}),v.mount.add(r),l?qe({field:l,disabled:n.disabled,name:r}):ne(r,!0,n.value),{...y?{disabled:n.disabled}:{},...s.progressive?{required:!!n.required,min:le(n.min),max:le(n.max),minLength:le(n.minLength),maxLength:le(n.maxLength),pattern:le(n.pattern)}:{},name:r,onChange:ae,onBlur:ae,ref:f=>{if(f){Ve(r,n),l=d(o,r);const c=E(f.value)&&f.querySelectorAll&&f.querySelectorAll("input,select,textarea")[0]||f,h=sr(c),F=l._f.refs||[];if(h?F.find(S=>S===c):c===l._f.ref)return;V(o,r,{_f:{...l._f,...h?{refs:[...F.filter(Ee),c,...Array.isArray(d(a,r))?[{}]:[]],ref:{type:c.type,name:r}}:{ref:c}}}),ne(r,!1,void 0,c)}else l=d(o,r,{}),l._f&&(l._f.mount=!1),(s.shouldUnregister||n.shouldUnregister)&&!(Kt(v.array,r)&&g.action)&&v.unMount.add(r)}}},We=()=>s.shouldFocusError&&Oe(o,r=>r&&d(t.errors,r),v.mount),He=(r,n)=>async l=>{l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let y=G(u);if(p.state.next({isSubmitting:!0}),s.resolver){const{errors:f,values:c}=await I();t.errors=f,y=c}else await $(o);T(t.errors,"root"),N(t.errors)?(p.state.next({errors:{}}),await r(y,l)):(n&&await n({...t.errors},l),We(),setTimeout(We)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:N(t.errors),submitCount:t.submitCount+1,errors:t.errors})},At=(r,n={})=>{d(o,r)&&(E(n.defaultValue)?X(r,d(a,r)):(X(r,n.defaultValue),V(a,r,n.defaultValue)),n.keepTouched||T(t.touchedFields,r),n.keepDirty||(T(t.dirtyFields,r),t.isDirty=n.defaultValue?b(r,d(a,r)):b()),n.keepError||(T(t.errors,r),A.isValid&&m()),p.state.next({...t}))},$e=(r,n={})=>{const l=r?G(r):a,y=G(l),f=r&&!N(r)?y:a;if(n.keepDefaultValues||(a=l),!n.keepValues){if(n.keepDirtyValues||U)for(const c of v.mount)d(t.dirtyFields,c)?V(f,c,d(u,c)):X(c,d(f,c));else{if(Re&&E(r))for(const c of v.mount){const h=d(o,c);if(h&&h._f){const F=Array.isArray(h._f.refs)?h._f.refs[0]:h._f.ref;if(he(F)){const S=F.closest("form");if(S){S.reset();break}}}}o={}}u=e.shouldUnregister?n.keepDefaultValues?G(a):{}:G(f),p.array.next({values:{...f}}),p.values.next({values:{...f}})}v={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!g.mount&&i(),g.mount=!A.isValid||!!n.keepIsValid,g.watch=!!e.shouldUnregister,p.state.next({submitCount:n.keepSubmitCount?t.submitCount:0,isDirty:n.keepDirty?t.isDirty:!!(n.keepDefaultValues&&!Q(r,a)),isSubmitted:n.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:n.keepDirtyValues?t.dirtyFields:n.keepDefaultValues&&r?je(a,r):{},touchedFields:n.keepTouched?t.touchedFields:{},errors:n.keepErrors?t.errors:{},isSubmitSuccessful:n.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},ze=(r,n)=>$e(Y(r)?r(u):r,n);return{control:{register:Ve,unregister:_e,getFieldState:Ue,handleSubmit:He,setError:Ie,_executeSchema:I,_getWatch:D,_getDirty:b,_updateValid:m,_removeUnmounted:_,_updateFieldArray:H,_updateDisabledField:qe,_getFieldArray:L,_reset:$e,_resetDefaultValues:()=>Y(s.defaultValues)&&s.defaultValues().then(r=>{ze(r,s.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:r=>{t={...t,...r}},_subjects:p,_proxyFormState:A,get _fields(){return o},get _formValues(){return u},get _state(){return g},set _state(r){g=r},get _defaultValues(){return a},get _names(){return v},set _names(r){v=r},get _formState(){return t},set _formState(r){t=r},get _options(){return s},set _options(r){s={...s,...r}}},trigger:oe,register:Ve,handleSubmit:He,watch:Vt,setValue:X,getValues:Be,reset:ze,resetField:At,clearErrors:_t,unregister:_e,setError:Ie,setFocus:(r,n={})=>{const l=d(o,r),y=l&&l._f;if(y){const f=y.refs?y.refs[0]:y.ref;f.focus&&(f.focus(),n.shouldSelect&&f.select())}},getFieldState:Ue}}function cr(e={}){const i=K.useRef(),s=K.useRef(),[t,o]=K.useState({isDirty:!1,isValidating:!1,isLoading:Y(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Y(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...ur(e,()=>o(u=>({...u}))),formState:t});const a=i.current.control;return a._options=e,Zt({subject:a._subjects.state,next:u=>{Xt(u,a._proxyFormState,a._updateFormState)&&o({...a._formState})}}),K.useEffect(()=>{e.values&&!Q(e.values,s.current)?(a._reset(e.values,a._options.resetOptions),s.current=e.values):a._resetDefaultValues()},[e.values,a]),K.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),i.current.formState=Jt(t,a),i.current}var at=function(e,i,s){if(e&&"reportValidity"in e){var t=d(s,i);e.setCustomValidity(t&&t.message||""),e.reportValidity()}},pt=function(e,i){var s=function(o){var a=i.fields[o];a&&a.ref&&"reportValidity"in a.ref?at(a.ref,o,e):a.refs&&a.refs.forEach(function(u){return at(u,o,e)})};for(var t in i.fields)s(t)},fr=function(e,i){i.shouldUseNativeValidation&&pt(e,i);var s={};for(var t in e){var o=d(i.fields,t),a=Object.assign(e[t]||{},{ref:o&&o.ref});if(yr(i.names||Object.keys(e),t)){var u=Object.assign({},dr(d(s,t)));V(u,"root",a),V(s,t,u)}else V(s,t,a)}return s},dr=function(e){return Array.isArray(e)?e.filter(Boolean):[]},yr=function(e,i){return e.some(function(s){return s.startsWith(i+".")})},hr=function(e,i){for(var s={};e.length;){var t=e[0],o=t.code,a=t.message,u=t.path.join(".");if(!s[u])if("unionErrors"in t){var g=t.unionErrors[0].errors[0];s[u]={message:g.message,type:g.code}}else s[u]={message:a,type:o};if("unionErrors"in t&&t.unionErrors.forEach(function(B){return B.errors.forEach(function(A){return e.push(A)})}),i){var v=s[u].types,w=v&&v[t.code];s[u]=dt(u,i,s,o,w?[].concat(w,t.message):t.message)}e.shift()}return s},gr=function(e,i,s){return s===void 0&&(s={}),function(t,o,a){try{return Promise.resolve(function(u,g){try{var v=Promise.resolve(e[s.mode==="sync"?"parse":"parseAsync"](t,i)).then(function(w){return a.shouldUseNativeValidation&&pt({},a),{errors:{},values:s.raw?t:w}})}catch(w){return g(w)}return v&&v.then?v.then(void 0,g):v}(0,function(u){if(function(g){return g.errors!=null}(u))return{values:{},errors:fr(hr(u.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw u}))}catch(u){return Promise.reject(u)}}};const vr=we.object({name:we.string().min(3),description:we.string()}),bt=({project:e,action:i})=>{var A,p;const t=Ce().state!=="idle",{setFocus:o,register:a,handleSubmit:u,formState:{errors:g,dirtyFields:v}}=cr({resolver:gr(vr),defaultValues:{name:e.name||"",description:e.description||""}}),{palette:w}=Tt(),B=ot();return ue.useEffect(()=>o("name"),[o]),x.jsx(x.Fragment,{children:x.jsxs(Ot,{onSubmit:u(({name:U,description:C})=>B(Object.assign({...e,name:U,description:C},i&&{action:i}||null),{method:"put",replace:!0,encType:"application/json"})),style:{opacity:t?.5:1},children:[x.jsx(Ye,{...a("name"),error:!!g.name,helperText:(A=g.name)==null?void 0:A.message,placeholder:"Name",InputProps:{style:{color:w.primary.main,fontSize:"20px",fontWeight:"500"}},disabled:t,variant:"standard"}),x.jsx(Ye,{...a("description"),error:!!g.description,helperText:(p=g.description)==null?void 0:p.message,placeholder:"Description",disabled:t,fullWidth:!0,variant:"standard"}),x.jsx(ee,{sx:{display:"flex",justifyContent:"right"},children:x.jsx(Ct,{variant:"outlined",disabled:t||Object.keys(v).length===0||Object.keys(g).length>0,style:{marginTop:"10px"},color:"primary",type:"submit",children:"Save"})})]})})},xr=({project:e})=>x.jsxs(x.Fragment,{children:[x.jsx(Lt,{component:Rt,to:`projects/${e.id}`,children:x.jsx(Te,{variant:"h6",children:e.name})}),x.jsx(Te,{style:{whiteSpace:"pre-line"},variant:"body1",children:e.description})]}),mr=({project:e})=>{const[i,s]=ue.useState(!1),o=Ce().state!=="idle",a=ot();return ue.useEffect(()=>s(!1),[e]),x.jsxs(Et,{sx:{m:1,p:2,position:"relative","&:hover .action-buttons":{opacity:1}},children:[x.jsx(ee,{style:{position:"absolute",top:"5px",right:"5px"},children:x.jsxs(ee,{sx:{opacity:0,transition:u=>u.transitions.create("opacity",{duration:u.transitions.duration.enteringScreen})},className:"action-buttons",display:"flex",columnGap:1,children:[x.jsx(jt,{disabled:o||i,onClick:()=>{confirm("Are you sure you want to delete this project?")===!0&&a({projectId:e.id,action:"delete-project"},{method:"post",replace:!0,encType:"application/json"})},children:x.jsx(ut,{})}),x.jsx(lt,{disabled:o,color:"primary",value:"edit-mode",selected:i,size:"small",sx:{border:"none",borderRadius:"50%"},onChange:()=>s(u=>!u),children:x.jsx(Pt,{})})]})}),i?x.jsx(bt,{project:e,action:"edit-project"}):x.jsx(xr,{project:e})]})},pr=()=>{const[e,i]=Je(!1),[s,t]=Je(!1),o=Ce(),a=o.state!=="idle";return ue.useEffect(()=>{o.state==="submitting"&&t(!0)},[o.state==="submitting"]),ue.useEffect(()=>{s&&o.state==="idle"&&(i(!1),t(!1))},[s,o.state==="idle"]),x.jsxs(ee,{py:2,children:[x.jsx(ee,{display:"flex",justifyContent:"center",children:x.jsx(kt,{title:"Create new project",children:x.jsx(lt,{size:"small",selected:e,disabled:a,color:"primary",value:"check",sx:{border:"none",borderRadius:"50%"},onChange:()=>i(),children:x.jsx(It,{})})})}),e&&x.jsx(ee,{p:3,display:"flex",flexDirection:"column",rowGap:1,children:x.jsx(bt,{project:{name:"",description:""},action:"create-new-project"})})]})},Sr=()=>{const e=Nt();return x.jsxs(x.Fragment,{children:[x.jsx(Te,{align:"center",variant:"h5",children:e.length>0?"Project List":"You don't have any projects yet"}),x.jsxs(ee,{m:"auto",mt:2,maxWidth:600,children:[x.jsx(pr,{}),x.jsx(Mt,{container:!0,direction:"column",justifyContent:"center",alignItems:"stretch",children:e.map(i=>x.jsx(K.Fragment,{children:x.jsx(mr,{project:i})},i.id))})]})]})};export{Sr as Component}; diff --git a/src/evidently/ui/assets/static/js/index-BWrpN-V1.js b/src/evidently/ui/assets/static/js/index-BWrpN-V1.js deleted file mode 100644 index 42757e3b3f..0000000000 --- a/src/evidently/ui/assets/static/js/index-BWrpN-V1.js +++ /dev/null @@ -1 +0,0 @@ -import{a1 as n,b as i,N as d,j as e,G as h}from"./vendor-CmCdJidw.js";import{a as p,C as c,D as g}from"./DashboardContent-ClNKCdbH.js";import"./DashboardViewParams-B9orGR5W.js";import"./createSvgIcon-C96PFZfH.js";import"./Edit-BcjZfdDu.js";const j={crumb:(s,{pathname:t,params:a})=>({to:t,linkText:String(a.snapshotId)}),hide:{snapshotList:!0}},b=({api:s})=>{const{projectId:t,snapshotId:a}=n();i(t),i(a);const o=d();return e.jsx(e.Fragment,{children:e.jsx(p.Provider,{value:c({getAdditionGraphData:r=>s.getAdditionalGraphData(t,a,r),getAdditionWidgetData:r=>s.getAdditionalWidgetData(t,a,r)}),children:e.jsx(h,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:e.jsx(g,{widgets:o.widgets})})})})};export{b as SnapshotTemplate,j as handle}; diff --git a/src/evidently/ui/assets/static/js/index-v1sDJlOH.js b/src/evidently/ui/assets/static/js/index-Bqm6dU8U.js similarity index 61% rename from src/evidently/ui/assets/static/js/index-v1sDJlOH.js rename to src/evidently/ui/assets/static/js/index-Bqm6dU8U.js index 7b36925c9e..71633b9f83 100644 --- a/src/evidently/ui/assets/static/js/index-v1sDJlOH.js +++ b/src/evidently/ui/assets/static/js/index-Bqm6dU8U.js @@ -1 +1 @@ -import{a1 as d,b as p,N as D,k as e,j as s}from"./vendor-CmCdJidw.js";import{D as l}from"./index-D6ByaOqT.js";import{D as x}from"./DashboardViewParams-B9orGR5W.js";import{a as c}from"./index-BY6V2Y10.js";const f=({Dashboard:o})=>{const{projectId:r}=d();p(r);const a=D(),m=a.min_timestamp!==null&&a.max_timestamp!==null,i={minDate:e(a.min_timestamp),maxDate:e(a.max_timestamp)},[t,n]=c("dashboard-hide-dates",!1);return s.jsxs(s.Fragment,{children:[s.jsx(l,{dataRanges:i,isShowDateFilter:m,isDashboardHideDates:t,setIsDashboardHideDates:n}),s.jsx(x.Provider,{value:{isXaxisAsCategorical:t},children:s.jsx(o,{data:a})})]})};export{f as DashboardComponentTemplate}; +import{a6 as d,h as p,V as D,s as e,j as s}from"./vendor-CFh6IQM6.js";import{D as l}from"./index-CV6CtGXT.js";import{D as x}from"./DashboardViewParams-C3ZVhGVT.js";import{a as c}from"./index-DATujkfj.js";const f=({Dashboard:o})=>{const{projectId:r}=d();p(r);const a=D(),m=a.min_timestamp!==null&&a.max_timestamp!==null,i={minDate:e(a.min_timestamp),maxDate:e(a.max_timestamp)},[t,n]=c("dashboard-hide-dates",!1);return s.jsxs(s.Fragment,{children:[s.jsx(l,{dataRanges:i,isShowDateFilter:m,isDashboardHideDates:t,setIsDashboardHideDates:n}),s.jsx(x.Provider,{value:{isXaxisAsCategorical:t},children:s.jsx(o,{data:a})})]})};export{f as DashboardComponentTemplate}; diff --git a/src/evidently/ui/assets/static/js/index-C31Sqnps.js b/src/evidently/ui/assets/static/js/index-C31Sqnps.js deleted file mode 100644 index 3fa84c5023..0000000000 --- a/src/evidently/ui/assets/static/js/index-C31Sqnps.js +++ /dev/null @@ -1 +0,0 @@ -import{p as f,j as t,B as l,q as x,r as c,s as h,t as v,v as m,w as g,x as j,y,E as O,H as _,T as P,J as w,K as B,N as R,O as b,P as D}from"./vendor-CmCdJidw.js";import{r as M,i as q}from"./createSvgIcon-C96PFZfH.js";const H=e=>{var s;return typeof((s=e==null?void 0:e.handle)==null?void 0:s.crumb)=="function"},I=()=>{const s=f().filter(H).map(({handle:r,data:a,id:o,pathname:n,params:i})=>r.crumb(a,{id:o,pathname:n,params:i}));return t.jsx(l,{children:t.jsx(x,{"aria-label":"breadcrumb",children:s.map(r=>t.jsx(c,{component:h,color:"inherit",to:r.to,children:r.linkText},r.to))})})},N=()=>{const e=v(),s=m(),{state:r}=g();return e.state!=="idle"||s.some(({state:o})=>o!=="idle")||r!=="idle"?t.jsx(l,{width:1,sx:{position:"fixed",top:0,left:0,zIndex:99999},children:t.jsx(j,{sx:{height:"3px"}})}):null};var u={},T=q;Object.defineProperty(u,"__esModule",{value:!0});var p=u.default=void 0;W(y);var C=T(M()),S=t;function d(e){if(typeof WeakMap!="function")return null;var s=new WeakMap,r=new WeakMap;return(d=function(a){return a?r:s})(e)}function W(e,s){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=d(s);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=o?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(a,n,i):a[n]=e[n]}return a.default=e,r&&r.set(e,a),a}var E=(0,C.default)((0,S.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");p=u.default=E;function L({version:e,authComponent:s,logoSrc:r}){return t.jsx(t.Fragment,{children:t.jsx(O,{position:"static",color:"transparent",children:t.jsxs(_,{children:[t.jsxs(P,{variant:"h6",sx:{flexGrow:1},children:[t.jsx("img",{src:r,height:"55px"}),t.jsx("span",{style:{verticalAlign:"super",fontSize:"0.75rem"},children:e})]}),s,t.jsx(c,{href:"https://github.com/evidentlyai/evidently",children:t.jsx(w,{children:t.jsx(p,{})})}),t.jsx(c,{href:"https://docs.evidentlyai.com/",children:t.jsx(B,{children:"Docs"})})]})})})}const G=({logoSrc:e,authComponent:s})=>{const{version:r}=R();return t.jsxs(t.Fragment,{children:[t.jsx(L,{authComponent:s,version:r,logoSrc:e}),t.jsx(N,{}),t.jsx(b,{}),t.jsxs(l,{p:3,children:[t.jsx(I,{}),t.jsx(D,{})]})]})},k={crumb:()=>({to:"/",linkText:"Home"})};export{G as HomeComponentTemplate,k as handle}; diff --git a/src/evidently/ui/assets/static/js/index-CV6CtGXT.js b/src/evidently/ui/assets/static/js/index-CV6CtGXT.js new file mode 100644 index 0000000000..f2366af69f --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-CV6CtGXT.js @@ -0,0 +1,3 @@ +const __vite__fileDeps=["static/js/index-Cwfq0AAl.js","static/js/vendor-CFh6IQM6.js","static/js/createSvgIcon-BHt_C7WZ.js","static/js/index-Bqm6dU8U.js","static/js/DashboardViewParams-C3ZVhGVT.js","static/js/index-DATujkfj.js","static/js/DashboardWidgets-BZwV75ei.js","static/js/DashboardContent-TZHSTgd_.js","static/js/Edit-DoUCfieB.js","static/js/index-vToD_Ha9.js","static/js/index-DC3NAYIv.js","static/js/ContentCopy-Cu793Viy.js","static/css/index-C5isHALn.css","static/js/index-DH7dNy5S.js","static/js/index-Db0FOPuV.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +var J=Object.defineProperty;var Q=(e,t,r)=>t in e?J(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var I=(e,t,r)=>(Q(e,typeof t!="symbol"?t+"":t,r),r);import{c as z,g as j,u as Y,j as s,A,a as F,i as K,T as E,b as X,R,r as Z,S as tt,B as b,I as et,C as rt,d as st,e as B,f as x,h as y,L as ot,k as it,G as T,F as nt,l as at,m as ct,n as ht,o as dt,M as u,D as N,p as lt,q as ut,s as D,z as S,t as pt,v as ft,w as mt,x as jt}from"./vendor-CFh6IQM6.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const n of o)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const n={};return o.integrity&&(n.integrity=o.integrity),o.referrerPolicy&&(n.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?n.credentials="include":o.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function i(o){if(o.ep)return;o.ep=!0;const n=r(o);fetch(o.href,n)}})();const{transitions:P}=z(),m="#ed0500",xt="#ded5d5",yt=z({shape:{borderRadius:5},palette:{primary:{main:j[900],light:j[200]},secondary:{main:m,dark:"#c10400",light:j[200]},background:{default:"white",paper:"white"}},components:{MuiLink:{styleOverrides:{root:{transition:P.create("color",{duration:P.duration.enteringScreen}),"&:hover":{color:m}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:m}}},MuiButton:{styleOverrides:{contained:{"&:hover":{background:j[800]}},outlined:{"&:hover":{color:m,borderColor:m,background:"white"}},text:{"&:hover":{color:m,borderColor:m}}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px","&:hover":{background:j[200]}}}},MuiIconButton:{styleOverrides:{root:{transition:P.create("color",{duration:P.duration.enteringScreen}),color:j[900],"&:hover":{color:m}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:P.create("color",{duration:P.duration.enteringScreen}),color:j[900],"&:hover":{color:m},"&.Mui-disabled":{border:"unset",background:j[100]}}}},MuiToggleButtonGroup:{defaultProps:{color:"secondary"}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{styleOverrides:{root:{boxShadow:"unset",border:"1px solid",borderColor:xt}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}}),v=()=>{var t;const e=Y();return s.jsxs(A,{severity:"error",children:[s.jsx(F,{children:"Something went wrong"}),K(e)&&s.jsxs(s.Fragment,{children:[s.jsx(E,{fontWeight:"bold",children:[`Status: ${e.status}`,typeof((t=e.data)==null?void 0:t.detail)=="string"&&e.data.detail].filter(Boolean).join(", ")}),typeof e.data=="string"&&s.jsx(E,{children:e.data})]}),typeof e=="string"&&s.jsx(E,{fontWeight:"bold",children:e})]})},U=({data:e})=>{const[t,r]=R.useState(!1),i=R.useRef(null);return Z.useEffect(()=>{e!=null&&e.error&&(i.current=e.error,r(!0))},[e]),s.jsx(tt,{open:t,onClose:(o,n)=>{n!=="clickaway"&&r(!1)},children:s.jsx(A,{severity:"error",children:s.jsxs(b,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:2,children:[s.jsxs(b,{children:[s.jsx(F,{children:"Something went wrong"}),i.current&&s.jsx(E,{fontWeight:"bold",children:[typeof i.current.status_code=="number"&&`Status: ${i.current.status_code}`,typeof i.current.detail=="string"&&i.current.detail].filter(Boolean).join(", ")})]}),s.jsx(b,{children:s.jsx(et,{size:"small","aria-label":"close",color:"inherit",onClick:()=>{r(!1)},children:s.jsx(rt,{})})})]})})})},M=()=>{const e=X();return s.jsx(U,{data:e})},gt=()=>{var r;const t=(r=st().find(i=>{var o;return!!((o=i.data)!=null&&o.error)}))==null?void 0:r.data;return s.jsx(U,{data:t})},vt="modulepreload",_t=function(e){return"/"+e},V={},g=function(t,r,i){let o=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),a=(n==null?void 0:n.nonce)||(n==null?void 0:n.getAttribute("nonce"));o=Promise.all(r.map(c=>{if(c=_t(c),c in V)return;V[c]=!0;const p=c.endsWith(".css"),d=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=p?"stylesheet":vt,p||(h.as="script",h.crossOrigin=""),h.href=c,a&&h.setAttribute("nonce",a),document.head.appendChild(h),p)return new Promise((_,w)=>{h.addEventListener("load",_),h.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${c}`)))})}))}return o.then(()=>t()).catch(n=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=n,window.dispatchEvent(a),!a.defaultPrevented)throw n})},wt=({api:e})=>({loader:()=>e.getVersion()});class bt{constructor(){I(this,"at",0);I(this,"ch","");I(this,"text","");I(this,"escapee",{'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` +`,r:"\r",t:" "})}error(t){throw{name:"SyntaxError",message:t,at:this.at,text:this.text}}next(){return this.ch=this.text.charAt(this.at++)}check(t){t!==this.ch&&this.error(`Expected '${t}' instead of '${this.ch}'`),this.ch=this.text.charAt(this.at++)}number(){var t="";if(this.ch==="-"&&(t="-",this.check("-")),this.ch==="I")return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),-1/0;for(;this.ch>="0"&&this.ch<="9";)t+=this.ch,this.next();if(this.ch===".")for(t+=".";this.next()&&this.ch>="0"&&this.ch<="9";)t+=this.ch;if(this.ch==="e"||this.ch==="E")for(t+=this.ch,this.next(),(this.ch==="-"||this.ch==="+")&&(t+=this.ch,this.next());this.ch>="0"&&this.ch<="9";)t+=this.ch,this.next();return+t}string(){var t,r,i="",o;if(this.ch==='"')for(;this.next();){if(this.ch==='"')return this.next(),i;if(this.ch==="\\")if(this.next(),this.ch==="u"){for(o=0,r=0;r<4&&(t=parseInt(this.next(),16),!!isFinite(t));r++)o=o*16+t;i+=String.fromCharCode(o)}else if(this.escapee[this.ch])i+=this.escapee[this.ch];else break;else i+=this.ch}this.error("Bad string")}white(){for(;this.ch&&this.ch<=" ";)this.next()}word(){switch(this.ch){case"t":return this.check("t"),this.check("r"),this.check("u"),this.check("e"),!0;case"f":return this.check("f"),this.check("a"),this.check("l"),this.check("s"),this.check("e"),!1;case"n":return this.check("n"),this.check("u"),this.check("l"),this.check("l"),null;case"N":return this.check("N"),this.check("a"),this.check("N"),NaN;case"I":return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),1/0}this.error("Unexpected '"+this.ch+"'")}array(){var t=[];if(this.ch==="["){if(this.check("["),this.white(),this.ch==="]")return this.check("]"),t;for(;this.ch;){if(t.push(this.value()),this.white(),this.ch==="]")return this.check("]"),t;this.check(","),this.white()}}this.error("Bad array")}object(){var t,r={};if(this.ch==="{"){if(this.check("{"),this.white(),this.ch==="}")return this.check("}"),r;for(;this.ch;){if(t=this.string(),this.white(),this.check(":"),Object.hasOwnProperty.call(r,t)&&this.error('Duplicate key "'+t+'"'),r[t]=this.value(),this.white(),this.ch==="}")return this.check("}"),r;this.check(","),this.white()}}this.error("Bad object")}value(){switch(this.white(),this.ch){case"{":return this.object();case"[":return this.array();case'"':return this.string();case"-":return this.number();default:return this.ch>="0"&&this.ch<="9"?this.number():this.word()}}parse(t,r){let i;return this.text=t,this.at=0,this.ch=" ",i=this.value(),this.white(),this.ch&&this.error("Syntax error"),r!==void 0?function o(n,a){var c,p,d=n[a];if(d&&typeof d=="object")for(c in d)Object.prototype.hasOwnProperty.call(d,c)&&(p=o(d,c),p!==void 0?d[c]=p:delete d[c]);return r.call(n,a,d)}({"":i},""):i}}const O=e=>new bt().parse(e),St=e=>{const t=B({baseUrl:e});return{async getProjectDashboard({project:r,options:i}){const{data:o,error:n,response:a}=await t.GET("/api/projects/{project_id}/dashboard",{parseAs:"text",params:{path:{project_id:r.id},query:{timestamp_start:i.timestamp_start,timestamp_end:i.timestamp_end}}});if(n)throw x(n,{status:a.status});return O(o)},async getSnapshotDashboard({project:r,snapshot:i}){const{data:o,error:n,response:a}=await t.GET("/api/projects/{project_id}/{snapshot_id}/data",{parseAs:"text",params:{path:{project_id:r.id,snapshot_id:i.id}}});if(n)throw x(n,{status:a.status});return O(o)},async getDashboardGraph({project:r,snapshot:i,graph:o}){const{data:n,error:a,response:c}=await t.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{parseAs:"text",params:{path:{project_id:r.id,snapshot_id:i.id,graph_id:o.id}}});if(a)throw x(a,{status:c.status});return O(n)}}},k=e=>{if(e.id)return{...e,id:e.id};throw`"id" is missing in object: ${JSON.stringify(e)}`},Pt=e=>{if(e.headers.get("Content-type")!=="application/json")throw new Response("Unsupported Media Type",{status:415})},kt=e=>{const t=B({baseUrl:e});return{async list(){const{data:r,error:i,response:o}=await t.GET("/api/projects");if(i)throw x(i,{status:o.status});return r.map(k)},async update({body:r}){const{data:i,error:o}=await t.POST("/api/projects/{project_id}/info",{params:{path:{project_id:r.id}},body:r});return o?{error:o}:k(i)},async get({id:r}){const{data:i,error:o,response:n}=await t.GET("/api/projects/{project_id}/info",{params:{path:{project_id:r}}});if(o)throw x(o,{status:n.status});return k(i)},async delete({id:r}){const{error:i}=await t.DELETE("/api/projects/{project_id}",{params:{path:{project_id:r}}});return i?{error:i}:null},async create({body:r}){const{data:i,error:o}=await t.POST("/api/projects",{body:r});return o?{error:o}:k(i)},async reloadSnapshots({project:r}){const{error:i}=await t.GET("/api/projects/{project_id}/reload",{params:{path:{project_id:r.id}}});return i?{error:i}:null},async listReports({project:r}){const{data:i,error:o,response:n}=await t.GET("/api/projects/{project_id}/reports",{params:{path:{project_id:r.id}}});if(o)throw x(o,{status:n.status});return i.map(k)},async listTestSuites({project:r}){const{data:i,error:o,response:n}=await t.GET("/api/projects/{project_id}/test_suites",{params:{path:{project_id:r.id}}});if(o)throw x(o,{status:n.status});return i.map(k)}}},Et=e=>{const t=B({baseUrl:e});return{async getVersion(){const{data:r,error:i,response:o}=await t.GET("/api/version");if(i)throw x(i,{status:o.status});return r}}},$=St("/"),C=kt("/"),It=Et("/"),Tt="/static/img/logo.png",{loader:Dt}=wt({api:It}),Ct={path:"/",lazy:async()=>{const{HomeComponentTemplate:e,...t}=await g(()=>import("./index-Cwfq0AAl.js"),__vite__mapDeps([0,1,2]));return{Component:()=>s.jsxs(s.Fragment,{children:[s.jsx(gt,{}),s.jsx(e,{logoSrc:Tt})]}),...t}},loader:Dt,ErrorBoundary:v},Ot=({api:e})=>({loader:({params:t})=>{const{projectId:r}=t;return y(r),e.get({id:r})}});function L(e){return typeof e!=typeof new Date?(console.log(`not a date ${typeof e}: ${e}`),e):`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}T${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`}const l={FROM:"date_from",TO:"date_to"},Lt=e=>{let t=e.get(l.FROM),r=e.get(l.TO);return{date_from:t,date_to:r}},Rt=({dataRanges:e})=>{const[t,r]=ut(),{date_from:i,date_to:o}=Lt(t),n=D(i||e.minDate),a=D(o||e.maxDate);return{isCorrectTimeInterval:n.isValid()&&a.isValid()&&(n.isSame(a)||n.isBefore(a)),date_from:n,date_to:a,setSearchParams:r}},ce=({dataRanges:e,isDashboardHideDates:t,setIsDashboardHideDates:r,isShowDateFilter:i})=>{const{isCorrectTimeInterval:o,date_from:n,date_to:a,setSearchParams:c}=Rt({dataRanges:e}),p=o?"":"incorrect time interval",d=h=>_=>{c(w=>(w.delete(h),_&&w.append(h,L(_.toDate())),w),{preventScrollReset:!0,replace:!0})};return s.jsx(ot,{dateAdapter:it,adapterLocale:"en-gb",children:s.jsxs(T,{container:!0,padding:1,zIndex:1,gap:2,justifyContent:"flex-end",alignItems:"flex-end",children:[s.jsx(T,{item:!0,children:s.jsx(b,{minWidth:180,display:"flex",justifyContent:"center",children:s.jsx(nt,{control:s.jsx(at,{checked:t,onChange:h=>r(h.target.checked)}),label:"Show in order"})})}),i&&s.jsxs(s.Fragment,{children:[s.jsx(T,{item:!0,xs:12,md:2,children:s.jsxs(ct,{fullWidth:!0,children:[s.jsx(ht,{children:"Period"}),s.jsxs(dt,{variant:"standard",defaultValue:"",onChange:h=>{const[_,w]=h.target.value.split(",");if(_===""){c(f=>(f.delete(l.FROM),f.delete(l.TO),f),{preventScrollReset:!0,replace:!0});return}const[W,q]=[Number(_),w],G=e.maxDate.subtract(W,q);c(f=>(f.delete(l.FROM),f.delete(l.TO),f.append(l.FROM,L(G.isBefore(e.minDate)?e.minDate.toDate():G.toDate())),f.append(l.TO,L(e.maxDate.toDate())),f),{preventScrollReset:!0,replace:!0})},children:[s.jsx(u,{value:"",children:s.jsx("em",{children:"None"})}),s.jsx(u,{value:"10,minutes",children:"Last 10 Minutes"}),s.jsx(u,{value:"30,minutes",children:"Last 30 Minutes"}),s.jsx(u,{value:"1,hours",children:"Last 1 Hours"}),s.jsx(u,{value:"2,hours",children:"Last 2 Hours"}),s.jsx(u,{value:"8,hours",children:"Last 8 Hours"}),s.jsx(u,{value:"24,hours",children:"Last 24 Hours"}),s.jsx(u,{value:"7,days",children:"Last 7 Days"}),s.jsx(u,{value:"14,days",children:"Last 14 Days"}),s.jsx(u,{value:"28,days",children:"Last 28 Days"}),s.jsx(u,{value:"60,days",children:"Last 60 Days"})]})]})}),s.jsx(T,{item:!0,children:s.jsxs(b,{display:"flex",alignItems:"center",gap:2,children:[s.jsx(N,{minDate:e.minDate,maxDate:e.maxDate&&a,slotProps:{textField:{variant:"standard"}},label:"From",value:n,onChange:d(l.FROM)}),s.jsx(b,{height:1,display:"flex",alignItems:"center",children:s.jsx(E,{children:" - "})}),s.jsx(N,{minDate:e.minDate&&n,maxDate:e.maxDate,slotProps:{textField:{variant:"standard"}},label:"To",value:a,onChange:d(l.TO)})]})}),s.jsx(T,{item:!0,xs:12,children:s.jsx(lt,{unmountOnExit:!0,in:!o,children:s.jsxs(A,{severity:"error",children:[s.jsx(F,{children:"Error"}),p]})})})]})]})})},At=({api:e})=>({loader:({params:t,request:r})=>{y(t.projectId);const{searchParams:i}=new URL(r.url);let o=i.get(l.FROM),n=i.get(l.TO);return o&&!D(o).isValid()&&(o=null),n&&!D(n).isValid()&&(n=null),e.getProjectDashboard({project:{id:t.projectId},options:{timestamp_start:o,timestamp_end:n}})}}),{loader:Ft}=At({api:$}),Bt={index:!0,id:"dashboard",lazy:async()=>{const[{DashboardComponentTemplate:e},{DashboardWidgets:t}]=await Promise.all([g(()=>import("./index-Bqm6dU8U.js"),__vite__mapDeps([3,1,4,5])),g(()=>import("./DashboardWidgets-BZwV75ei.js"),__vite__mapDeps([6,1,7,4,2,8]))]);return{Component:()=>s.jsx(e,{Dashboard:({data:{widgets:r}})=>s.jsx(t,{widgets:r})})}},loader:Ft,ErrorBoundary:v},Mt=({api:e})=>({loader:({params:t})=>(y(t.projectId),t.snapshotId?Promise.resolve([]):e.listReports({project:{id:t.projectId}})),action:async({params:t})=>(y(t.projectId),e.reloadSnapshots({project:{id:t.projectId}}))}),$t=({api:e})=>({loader:({params:t})=>(y(t.projectId),t.snapshotId?Promise.resolve([]):e.listTestSuites({project:{id:t.projectId}})),action:async({params:t})=>(y(t.projectId),e.reloadSnapshots({project:{id:t.projectId}}))}),Gt=({api:e})=>({loader:({params:t})=>{const{projectId:r,snapshotId:i}=t;return y(r),y(i),e.getSnapshotDashboard({project:{id:r},snapshot:{id:i}})}}),{loader:Nt}=Gt({api:$}),H={path:":snapshotId",lazy:async()=>{const{SnapshotTemplate:e,...t}=await g(()=>import("./index-vToD_Ha9.js"),__vite__mapDeps([9,1,7,4,2,8]));return{Component:()=>s.jsx(e,{api:$}),...t}},loader:Nt,ErrorBoundary:v},{loader:Vt,action:zt}=Mt({api:C}),Ut={id:"reports",path:"reports",lazy:async()=>{const{SnapshotsListTemplate:e,...t}=await g(()=>import("./index-DC3NAYIv.js"),__vite__mapDeps([10,1,5,11,2,12]));return{...t,Component:()=>s.jsxs(s.Fragment,{children:[s.jsx(M,{}),s.jsx(e,{type:"reports"})]})}},loader:Vt,action:zt,ErrorBoundary:v,children:[H]},{loader:Ht,action:Wt}=$t({api:C}),qt={id:"test_suites",path:"test-suites",lazy:async()=>{const{SnapshotsListTemplate:e,...t}=await g(()=>import("./index-DC3NAYIv.js"),__vite__mapDeps([10,1,5,11,2,12]));return{...t,Component:()=>s.jsxs(s.Fragment,{children:[s.jsx(M,{}),s.jsx(e,{type:"test suites"})]})}},loader:Ht,action:Wt,ErrorBoundary:v,children:[H]},{loader:Jt}=Ot({api:C}),Qt={path:"projects/:projectId",lazy:()=>g(()=>import("./index-DH7dNy5S.js"),__vite__mapDeps([13,1,11,2])),loader:Jt,ErrorBoundary:v,children:[Bt,Ut,qt]},Yt=S.object({action:S.literal("edit-project")}),Kt=S.object({action:S.literal("create-new-project")}),Xt=S.object({action:S.literal("delete-project"),projectId:S.string().uuid()}),Zt=({api:e})=>({loader:()=>e.list(),action:async({request:t})=>{Pt(t);const r=await t.json();if(Kt.safeParse(r).success)return e.create({body:r});const i=Xt.safeParse(r);if(i.success)return e.delete({id:i.data.projectId});if(Yt.safeParse(r).success)return e.update({body:r});throw"Undefined action"}}),{loader:te,action:ee}=Zt({api:C}),re={index:!0,lazy:()=>g(()=>import("./index-Db0FOPuV.js"),__vite__mapDeps([14,1,8,2,5])).then(e=>({...e,Component:()=>s.jsxs(s.Fragment,{children:[s.jsx(M,{}),s.jsx(e.Component,{})]})})),loader:te,action:ee,ErrorBoundary:v},se={path:"*",Component:()=>s.jsx(b,{display:"flex",justifyContent:"center",children:s.jsx(E,{variant:"h4",children:"Page Not Found"})})},oe={...Ct,children:[re,Qt,se],ErrorBoundary:v},ie=pt([oe]);ft.createRoot(document.getElementById("root")).render(s.jsx(R.StrictMode,{children:s.jsx(mt,{theme:yt,children:s.jsx(jt,{router:ie})})}));export{ce as D}; diff --git a/src/evidently/ui/assets/static/js/index-CcxL9Qb3.js b/src/evidently/ui/assets/static/js/index-CcxL9Qb3.js deleted file mode 100644 index 6a57d88042..0000000000 --- a/src/evidently/ui/assets/static/js/index-CcxL9Qb3.js +++ /dev/null @@ -1 +0,0 @@ -import{p as d,N as c,j as e,B as x,G as o,T as m,J as p,Q as j,r as u,s as h,U as b,P as T}from"./vendor-CmCdJidw.js";import{d as f}from"./ContentCopy-BwagEdvM.js";import"./createSvgIcon-C96PFZfH.js";const B={crumb:(s,{pathname:i})=>({to:i,linkText:(s==null?void 0:s.name)||"undefined"})},r=({tabsConfig:s=[]})=>{const i=d(),n=c(),a=s.findIndex(t=>i.find(({id:l})=>l===t.id));return e.jsxs(x,{mt:2,children:[e.jsx(o,{container:!0,spacing:2,direction:"row",justifyContent:"flex-start",alignItems:"flex-end",children:e.jsx(o,{item:!0,xs:12,children:e.jsxs(m,{sx:{color:"#aaa"},variant:"body2",children:[`project id: ${n.id}`,e.jsx(p,{size:"small",style:{marginLeft:10},onClick:()=>navigator.clipboard.writeText(n.id),children:e.jsx(f,{fontSize:"small"})})]})})}),s.length>0&&e.jsx(j,{value:a,"aria-label":"simple tabs example",indicatorColor:"primary",children:s.map(t=>e.jsx(u,{component:h,to:t.link,children:e.jsx(b,{label:t.label||t.id,value:t.id})},t.id))}),e.jsx(T,{})]})},k=[{id:"dashboard",link:".",label:"Dashboard"},{id:"reports",link:"reports",label:"Reports"},{id:"test_suites",link:"test-suites",label:"Test suites"}],C=()=>e.jsx(r,{tabsConfig:k}),I=()=>e.jsx(r,{});export{C as Component,r as ProjectTemplate,I as ProjectWithoutTabs,B as handle}; diff --git a/src/evidently/ui/assets/static/js/index-Cwfq0AAl.js b/src/evidently/ui/assets/static/js/index-Cwfq0AAl.js new file mode 100644 index 0000000000..015fc6703b --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-Cwfq0AAl.js @@ -0,0 +1 @@ +import{y as f,j as t,B as l,E as x,H as c,J as h,K as v,d as m,N as g,O as j,r as y,P as O,Q as _,T as P,I as w,U as B,V as R,W as b,X as D}from"./vendor-CFh6IQM6.js";import{r as I,i as M}from"./createSvgIcon-BHt_C7WZ.js";const H=e=>{var s;return typeof((s=e==null?void 0:e.handle)==null?void 0:s.crumb)=="function"},N=()=>{const s=f().filter(H).map(({handle:r,data:a,id:o,pathname:n,params:i})=>r.crumb(a,{id:o,pathname:n,params:i}));return t.jsx(l,{children:t.jsx(x,{"aria-label":"breadcrumb",children:s.map(r=>t.jsx(c,{component:h,color:"inherit",to:r.to,children:r.linkText},r.to))})})},T=()=>{const e=v(),s=m(),{state:r}=g();return e.state!=="idle"||s.some(({state:o})=>o!=="idle")||r!=="idle"?t.jsx(l,{width:1,sx:{position:"fixed",top:0,left:0,zIndex:99999},children:t.jsx(j,{sx:{height:"3px"}})}):null};var u={},W=M;Object.defineProperty(u,"__esModule",{value:!0});var d=u.default=void 0;S(y);var q=W(I()),C=t;function p(e){if(typeof WeakMap!="function")return null;var s=new WeakMap,r=new WeakMap;return(p=function(a){return a?r:s})(e)}function S(e,s){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=p(s);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=o?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(a,n,i):a[n]=e[n]}return a.default=e,r&&r.set(e,a),a}var E=(0,q.default)((0,C.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");d=u.default=E;function L({version:e,authComponent:s,logoSrc:r}){return t.jsx(t.Fragment,{children:t.jsx(O,{position:"static",color:"transparent",children:t.jsxs(_,{children:[t.jsxs(P,{variant:"h6",sx:{flexGrow:1},children:[t.jsx("img",{src:r,height:"55px"}),t.jsx("span",{style:{verticalAlign:"super",fontSize:"0.75rem"},children:e})]}),s,t.jsx(c,{href:"https://github.com/evidentlyai/evidently",children:t.jsx(w,{children:t.jsx(d,{})})}),t.jsx(c,{href:"https://docs.evidentlyai.com/",children:t.jsx(B,{children:"Docs"})})]})})})}const G=({logoSrc:e,authComponent:s})=>{const{version:r}=R();return t.jsxs(t.Fragment,{children:[t.jsx(L,{authComponent:s,version:r,logoSrc:e}),t.jsx(T,{}),t.jsx(b,{}),t.jsxs(l,{p:3,children:[t.jsx(N,{}),t.jsx(D,{})]})]})},k={crumb:()=>({to:"/",linkText:"Home"})};export{G as HomeComponentTemplate,k as handle}; diff --git a/src/evidently/ui/assets/static/js/index-D6ByaOqT.js b/src/evidently/ui/assets/static/js/index-D6ByaOqT.js deleted file mode 100644 index e3b2fdb182..0000000000 --- a/src/evidently/ui/assets/static/js/index-D6ByaOqT.js +++ /dev/null @@ -1,3 +0,0 @@ -const __vite__fileDeps=["static/js/index-C31Sqnps.js","static/js/vendor-CmCdJidw.js","static/js/createSvgIcon-C96PFZfH.js","static/js/index-v1sDJlOH.js","static/js/DashboardViewParams-B9orGR5W.js","static/js/index-BY6V2Y10.js","static/js/DashboardWidgets-Ba2wfP2u.js","static/js/DashboardContent-ClNKCdbH.js","static/js/Edit-BcjZfdDu.js","static/js/index-BWrpN-V1.js","static/js/index-aMPYZdgb.js","static/js/ContentCopy-BwagEdvM.js","static/css/index-C5isHALn.css","static/js/index-CcxL9Qb3.js","static/js/index-4yzo42d5.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -var U=Object.defineProperty;var z=(t,e,r)=>e in t?U(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var S=(t,e,r)=>(z(t,typeof e!="symbol"?e+"":e,r),r);import{c as A,g as y,u as H,j as s,A as M,a as B,i as W,T as D,b as g,L as G,d as J,G as $,B as T,F as q,S as Q,e as Y,I as K,f as X,M as p,D as C,C as Z,h as ee,k as E,z as _,l as te,m as re,R as se,n as oe,o as ne}from"./vendor-CmCdJidw.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const n of o)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const n={};return o.integrity&&(n.integrity=o.integrity),o.referrerPolicy&&(n.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?n.credentials="include":o.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function i(o){if(o.ep)return;o.ep=!0;const n=r(o);fetch(o.href,n)}})();const{transitions:k}=A(),j="#ed0500",ie="#ded5d5",ae=A({shape:{borderRadius:5},palette:{primary:{main:y[900],light:y[200]},secondary:{main:j,dark:"#c10400",light:y[200]},background:{default:"white",paper:"white"}},components:{MuiLink:{styleOverrides:{root:{transition:k.create("color",{duration:k.duration.enteringScreen}),"&:hover":{color:j}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:j}}},MuiButton:{styleOverrides:{contained:{"&:hover":{background:y[800]}},outlined:{"&:hover":{color:j,borderColor:j,background:"white"}},text:{"&:hover":{color:j,borderColor:j}}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px","&:hover":{background:y[200]}}}},MuiIconButton:{styleOverrides:{root:{transition:k.create("color",{duration:k.duration.enteringScreen}),color:y[900],"&:hover":{color:j}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:k.create("color",{duration:k.duration.enteringScreen}),color:y[900],"&:hover":{color:j},"&.Mui-disabled":{border:"unset",background:y[100]}}}},MuiToggleButtonGroup:{defaultProps:{color:"secondary"}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{styleOverrides:{root:{boxShadow:"unset",border:"1px solid",borderColor:ie}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}}),v=()=>{var e;const t=H();return s.jsxs(M,{severity:"error",children:[s.jsx(B,{children:"Something went wrong"}),W(t)&&s.jsxs(s.Fragment,{children:[s.jsx(D,{fontWeight:"bold",children:[`Status: ${t.status}`,typeof((e=t.data)==null?void 0:e.detail)=="string"&&t.data.detail].filter(Boolean).join(", ")}),typeof t.data=="string"&&s.jsx(D,{children:t.data})]}),typeof t=="string"&&s.jsx(D,{fontWeight:"bold",children:t})]})},ce="modulepreload",he=function(t){return"/"+t},L={},w=function(e,r,i){let o=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),a=(n==null?void 0:n.nonce)||(n==null?void 0:n.getAttribute("nonce"));o=Promise.all(r.map(c=>{if(c=he(c),c in L)return;L[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":ce,f||(h.as="script",h.crossOrigin=""),h.href=c,a&&h.setAttribute("nonce",a),document.head.appendChild(h),f)return new Promise((b,I)=>{h.addEventListener("load",b),h.addEventListener("error",()=>I(new Error(`Unable to preload CSS for ${c}`)))})}))}return o.then(()=>e()).catch(n=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=n,window.dispatchEvent(a),!a.defaultPrevented)throw n})},de=({api:t})=>({loader:()=>t.getVersion()});class x{constructor(){S(this,"at",0);S(this,"ch","");S(this,"text","");S(this,"escapee",{'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` -`,r:"\r",t:" "})}error(e){throw{name:"SyntaxError",message:e,at:this.at,text:this.text}}next(){return this.ch=this.text.charAt(this.at++)}check(e){e!==this.ch&&this.error(`Expected '${e}' instead of '${this.ch}'`),this.ch=this.text.charAt(this.at++)}number(){var e="";if(this.ch==="-"&&(e="-",this.check("-")),this.ch==="I")return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),-1/0;for(;this.ch>="0"&&this.ch<="9";)e+=this.ch,this.next();if(this.ch===".")for(e+=".";this.next()&&this.ch>="0"&&this.ch<="9";)e+=this.ch;if(this.ch==="e"||this.ch==="E")for(e+=this.ch,this.next(),(this.ch==="-"||this.ch==="+")&&(e+=this.ch,this.next());this.ch>="0"&&this.ch<="9";)e+=this.ch,this.next();return+e}string(){var e,r,i="",o;if(this.ch==='"')for(;this.next();){if(this.ch==='"')return this.next(),i;if(this.ch==="\\")if(this.next(),this.ch==="u"){for(o=0,r=0;r<4&&(e=parseInt(this.next(),16),!!isFinite(e));r++)o=o*16+e;i+=String.fromCharCode(o)}else if(this.escapee[this.ch])i+=this.escapee[this.ch];else break;else i+=this.ch}this.error("Bad string")}white(){for(;this.ch&&this.ch<=" ";)this.next()}word(){switch(this.ch){case"t":return this.check("t"),this.check("r"),this.check("u"),this.check("e"),!0;case"f":return this.check("f"),this.check("a"),this.check("l"),this.check("s"),this.check("e"),!1;case"n":return this.check("n"),this.check("u"),this.check("l"),this.check("l"),null;case"N":return this.check("N"),this.check("a"),this.check("N"),NaN;case"I":return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),1/0}this.error("Unexpected '"+this.ch+"'")}array(){var e=[];if(this.ch==="["){if(this.check("["),this.white(),this.ch==="]")return this.check("]"),e;for(;this.ch;){if(e.push(this.value()),this.white(),this.ch==="]")return this.check("]"),e;this.check(","),this.white()}}this.error("Bad array")}object(){var e,r={};if(this.ch==="{"){if(this.check("{"),this.white(),this.ch==="}")return this.check("}"),r;for(;this.ch;){if(e=this.string(),this.white(),this.check(":"),Object.hasOwnProperty.call(r,e)&&this.error('Duplicate key "'+e+'"'),r[e]=this.value(),this.white(),this.ch==="}")return this.check("}"),r;this.check(","),this.white()}}this.error("Bad object")}value(){switch(this.white(),this.ch){case"{":return this.object();case"[":return this.array();case'"':return this.string();case"-":return this.number();default:return this.ch>="0"&&this.ch<="9"?this.number():this.word()}}parse(e,r){let i;return this.text=e,this.at=0,this.ch=" ",i=this.value(),this.white(),this.ch&&this.error("Syntax error"),r!==void 0?function o(n,a){var c,f,d=n[a];if(d&&typeof d=="object")for(c in d)Object.prototype.hasOwnProperty.call(d,c)&&(f=o(d,c),f!==void 0?d[c]=f:delete d[c]);return r.call(n,a,d)}({"":i},""):i}}async function l(...t){const e=await fetch(...t);if(!e.ok&&e.status>=400)throw e;return e}class le{constructor(e){S(this,"endpoint");this.endpoint=e}async getAdditionalGraphData(e,r,i){const o=await l(`${this.endpoint}/projects/${e}/${r}/graphs_data/${i}`);return new x().parse(await o.text())}async getAdditionalWidgetData(e,r,i){const o=await l(`${this.endpoint}/projects/${e}/${r}/graphs_data/${i}`);return new x().parse(await o.text())}async getDashboard(e,r){const i=await l(`${this.endpoint}/projects/${e}/${r}/data`);return new x().parse(await i.text())}async getProjects(){const e=await l(`${this.endpoint}/projects`);return new x().parse(await e.text())}async getProjectDashboard(e,r,i){const o=new URLSearchParams;r&&o.append("timestamp_start",r),i&&o.append("timestamp_end",i);const n=await l(`${this.endpoint}/projects/${e}/dashboard?${o.toString()}`);return new x().parse(await n.text())}async getReports(e){const r=await l(`${this.endpoint}/projects/${e}/reports`);return new x().parse(await r.text())}async getTestSuites(e){const r=await l(`${this.endpoint}/projects/${e}/test_suites`);return new x().parse(await r.text())}async getProjectInfo(e){const r=await l(`${this.endpoint}/projects/${e}/info`);return new x().parse(await r.text())}async getVersion(){return(await l(`${this.endpoint}/version`)).json()}async editProjectInfo(e){return l(`${this.endpoint}/projects/${e.id}/info`,{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async reloadProject(e){return l(`${this.endpoint}/projects/${e}/reload`)}async createProject(e){const r=new URLSearchParams;return e.team_id&&r.append("team_id",e.team_id),(await l(`${this.endpoint}/projects?${r.toString()}`,{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async deleteProject(e){return l(`${this.endpoint}/projects/${e}`,{method:"delete"})}}const P=new le("/api"),ue="/static/img/logo.png",{loader:pe}=de({api:P}),fe={path:"/",lazy:async()=>{const{HomeComponentTemplate:t,...e}=await w(()=>import("./index-C31Sqnps.js"),__vite__mapDeps([0,1,2]));return{Component:()=>s.jsx(t,{logoSrc:ue}),...e}},loader:pe,ErrorBoundary:v},me=({api:t})=>({loader:({params:e})=>{const{projectId:r}=e;return g(r),t.getProjectInfo(r)}}),je=t=>{if(t.headers.get("Content-type")!=="application/json")throw new Response("Unsupported Media Type",{status:415})};function R(t){return typeof t!=typeof new Date?(console.log(`not a date ${typeof t}: ${t}`),t):`${t.getFullYear()}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")}T${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`}const u={FROM:"date_from",TO:"date_to"},ye=t=>{let e=t.get(u.FROM),r=t.get(u.TO);return{date_from:e,date_to:r}},xe=({dataRanges:t})=>{const[e,r]=ee(),{date_from:i,date_to:o}=ye(e),n=E(i||t.minDate),a=E(o||t.maxDate);return{isCorrectTimeInterval:n.isValid()&&a.isValid()&&(n.isSame(a)||n.isBefore(a)),date_from:n,date_to:a,setSearchParams:r}},Ge=({dataRanges:t,isDashboardHideDates:e,setIsDashboardHideDates:r,isShowDateFilter:i})=>{const{isCorrectTimeInterval:o,date_from:n,date_to:a,setSearchParams:c}=xe({dataRanges:t}),f=o?"":"incorrect time interval",d=h=>b=>{c(I=>(I.delete(h),b&&I.append(h,R(b.toDate())),I),{preventScrollReset:!0,replace:!0})};return s.jsx(G,{dateAdapter:J,adapterLocale:"en-gb",children:s.jsxs($,{container:!0,padding:1,zIndex:1,gap:2,justifyContent:"flex-end",alignItems:"flex-end",children:[s.jsx($,{item:!0,children:s.jsx(T,{minWidth:180,display:"flex",justifyContent:"center",children:s.jsx(q,{control:s.jsx(Q,{checked:e,onChange:h=>r(h.target.checked)}),label:"Show in order"})})}),i&&s.jsxs(s.Fragment,{children:[s.jsx($,{item:!0,xs:12,md:2,children:s.jsxs(Y,{fullWidth:!0,children:[s.jsx(K,{children:"Period"}),s.jsxs(X,{variant:"standard",defaultValue:"",onChange:h=>{const[b,I]=h.target.value.split(",");if(b===""){c(m=>(m.delete(u.FROM),m.delete(u.TO),m),{preventScrollReset:!0,replace:!0});return}const[N,V]=[Number(b),I],O=t.maxDate.subtract(N,V);c(m=>(m.delete(u.FROM),m.delete(u.TO),m.append(u.FROM,R(O.isBefore(t.minDate)?t.minDate.toDate():O.toDate())),m.append(u.TO,R(t.maxDate.toDate())),m),{preventScrollReset:!0,replace:!0})},children:[s.jsx(p,{value:"",children:s.jsx("em",{children:"None"})}),s.jsx(p,{value:"10,minutes",children:"Last 10 Minutes"}),s.jsx(p,{value:"30,minutes",children:"Last 30 Minutes"}),s.jsx(p,{value:"1,hours",children:"Last 1 Hours"}),s.jsx(p,{value:"2,hours",children:"Last 2 Hours"}),s.jsx(p,{value:"8,hours",children:"Last 8 Hours"}),s.jsx(p,{value:"24,hours",children:"Last 24 Hours"}),s.jsx(p,{value:"7,days",children:"Last 7 Days"}),s.jsx(p,{value:"14,days",children:"Last 14 Days"}),s.jsx(p,{value:"28,days",children:"Last 28 Days"}),s.jsx(p,{value:"60,days",children:"Last 60 Days"})]})]})}),s.jsx($,{item:!0,children:s.jsxs(T,{display:"flex",alignItems:"center",gap:2,children:[s.jsx(C,{minDate:t.minDate,maxDate:t.maxDate&&a,slotProps:{textField:{variant:"standard"}},label:"From",value:n,onChange:d(u.FROM)}),s.jsx(T,{height:1,display:"flex",alignItems:"center",children:s.jsx(D,{children:" - "})}),s.jsx(C,{minDate:t.minDate&&n,maxDate:t.maxDate,slotProps:{textField:{variant:"standard"}},label:"To",value:a,onChange:d(u.TO)})]})}),s.jsx($,{item:!0,xs:12,children:s.jsx(Z,{unmountOnExit:!0,in:!o,children:s.jsxs(M,{severity:"error",children:[s.jsx(B,{children:"Error"}),f]})})})]})]})})},ge=({api:t})=>({loader:({params:e,request:r})=>{g(e.projectId);const{searchParams:i}=new URL(r.url);let o=i.get(u.FROM),n=i.get(u.TO);return o&&!E(o).isValid()&&(o=null),n&&!E(n).isValid()&&(n=null),t.getProjectDashboard(e.projectId,o,n)}}),{loader:we}=ge({api:P}),ve={index:!0,id:"dashboard",lazy:async()=>{const[{DashboardComponentTemplate:t},{DashboardWidgets:e}]=await Promise.all([w(()=>import("./index-v1sDJlOH.js"),__vite__mapDeps([3,1,4,5])),w(()=>import("./DashboardWidgets-Ba2wfP2u.js"),__vite__mapDeps([6,1,7,4,2,8]))]);return{Component:()=>s.jsx(t,{Dashboard:({data:{widgets:r}})=>s.jsx(e,{widgets:r})})}},loader:we,ErrorBoundary:v},Pe=({api:t})=>({loader:({params:e})=>(g(e.projectId),e.snapshotId?Promise.resolve([]):t.getReports(e.projectId)),action:async({params:e})=>(g(e.projectId),t.reloadProject(e.projectId))}),be=({api:t})=>({loader:({params:e})=>(g(e.projectId),e.snapshotId?Promise.resolve([]):t.getTestSuites(e.projectId)),action:async({params:e})=>(g(e.projectId),t.reloadProject(e.projectId))}),Ie=({api:t})=>({loader:({params:e})=>{const{projectId:r,snapshotId:i}=e;return g(r),g(i),t.getDashboard(r,i)}}),{loader:_e}=Ie({api:P}),F={path:":snapshotId",lazy:async()=>{const{SnapshotTemplate:t,...e}=await w(()=>import("./index-BWrpN-V1.js"),__vite__mapDeps([9,1,7,4,2,8]));return{Component:()=>s.jsx(t,{api:P}),...e}},loader:_e,ErrorBoundary:v},{loader:Se,action:ke}=Pe({api:P}),$e={id:"reports",path:"reports",lazy:async()=>{const{SnapshotsListTemplate:t,...e}=await w(()=>import("./index-aMPYZdgb.js"),__vite__mapDeps([10,1,5,11,2,12]));return{...e,Component:()=>s.jsx(t,{type:"reports"})}},loader:Se,action:ke,ErrorBoundary:v,children:[F]},{loader:De,action:Te}=be({api:P}),Ee={id:"test_suites",path:"test-suites",lazy:async()=>{const{SnapshotsListTemplate:t,...e}=await w(()=>import("./index-aMPYZdgb.js"),__vite__mapDeps([10,1,5,11,2,12]));return{...e,Component:()=>s.jsx(t,{type:"test suites"})}},loader:De,action:Te,ErrorBoundary:v,children:[F]},{loader:Re}=me({api:P}),Oe={path:"projects/:projectId",lazy:()=>w(()=>import("./index-CcxL9Qb3.js"),__vite__mapDeps([13,1,11,2])),loader:Re,ErrorBoundary:v,children:[ve,$e,Ee]},Ce=_.object({action:_.literal("edit-project")}),Le=_.object({action:_.literal("create-new-project")}),Ae=_.object({action:_.literal("delete-project"),projectId:_.string().uuid()}),Me=({api:t})=>({loader:()=>t.getProjects(),action:async({request:e})=>{je(e);const r=await e.json();if(Le.safeParse(r).success)return t.createProject(r);const i=Ae.safeParse(r);if(i.success)return t.deleteProject(i.data.projectId);if(Ce.safeParse(r).success)return t.editProjectInfo(r);throw"Undefined action"}}),{loader:Be,action:Fe}=Me({api:P}),Ne={index:!0,lazy:()=>w(()=>import("./index-4yzo42d5.js"),__vite__mapDeps([14,1,8,2,5])),loader:Be,action:Fe,ErrorBoundary:v},Ve={path:"*",Component:()=>s.jsx(T,{display:"flex",justifyContent:"center",children:s.jsx(D,{variant:"h4",children:"Page Not Found"})})},Ue={...fe,children:[Ne,Oe,Ve],ErrorBoundary:v},ze=te([Ue]);re.createRoot(document.getElementById("root")).render(s.jsx(se.StrictMode,{children:s.jsx(oe,{theme:ae,children:s.jsx(ne,{router:ze})})}));export{Ge as D}; diff --git a/src/evidently/ui/assets/static/js/index-BY6V2Y10.js b/src/evidently/ui/assets/static/js/index-DATujkfj.js similarity index 92% rename from src/evidently/ui/assets/static/js/index-BY6V2Y10.js rename to src/evidently/ui/assets/static/js/index-DATujkfj.js index bcff547f4e..a500a58a9f 100644 --- a/src/evidently/ui/assets/static/js/index-BY6V2Y10.js +++ b/src/evidently/ui/assets/static/js/index-DATujkfj.js @@ -1 +1 @@ -import{y as a}from"./vendor-CmCdJidw.js";function S(t,e){window.dispatchEvent(new StorageEvent("storage",{key:t,newValue:e}))}const g=(t,e)=>{const o=JSON.stringify(e);window.localStorage.setItem(t,o),S(t,o)},u=t=>{window.localStorage.removeItem(t),S(t,null)},l=t=>window.localStorage.getItem(t),i=t=>(window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)),f=()=>{throw Error("useLocalStorage is a client-only hook")};function w(t,e){const o=()=>l(t),n=a.useSyncExternalStore(i,o,f),c=a.useCallback(r=>{try{const s=typeof r=="function"?r(JSON.parse(n)):r;s==null?u(t):g(t,s)}catch(s){console.warn(s)}},[t,n]);return a.useEffect(()=>{l(t)===null&&typeof e<"u"&&g(t,e)},[t,e]),[n?JSON.parse(n):e,c]}function p(t){const[e,o]=a.useState(()=>t),n=a.useCallback(c=>o(typeof c=="boolean"?c:r=>!r),[]);return[e,n]}export{w as a,p as u}; +import{r as a}from"./vendor-CFh6IQM6.js";function S(t,e){window.dispatchEvent(new StorageEvent("storage",{key:t,newValue:e}))}const g=(t,e)=>{const o=JSON.stringify(e);window.localStorage.setItem(t,o),S(t,o)},u=t=>{window.localStorage.removeItem(t),S(t,null)},l=t=>window.localStorage.getItem(t),i=t=>(window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)),f=()=>{throw Error("useLocalStorage is a client-only hook")};function w(t,e){const o=()=>l(t),n=a.useSyncExternalStore(i,o,f),c=a.useCallback(r=>{try{const s=typeof r=="function"?r(JSON.parse(n)):r;s==null?u(t):g(t,s)}catch(s){console.warn(s)}},[t,n]);return a.useEffect(()=>{l(t)===null&&typeof e<"u"&&g(t,e)},[t,e]),[n?JSON.parse(n):e,c]}function p(t){const[e,o]=a.useState(()=>t),n=a.useCallback(c=>o(typeof c=="boolean"?c:r=>!r),[]);return[e,n]}export{w as a,p as u}; diff --git a/src/evidently/ui/assets/static/js/index-aMPYZdgb.js b/src/evidently/ui/assets/static/js/index-DC3NAYIv.js similarity index 92% rename from src/evidently/ui/assets/static/js/index-aMPYZdgb.js rename to src/evidently/ui/assets/static/js/index-DC3NAYIv.js index 6331d72d3c..e8eb63be55 100644 --- a/src/evidently/ui/assets/static/js/index-aMPYZdgb.js +++ b/src/evidently/ui/assets/static/js/index-DC3NAYIv.js @@ -1 +1 @@ -import{R as React,j as jsxRuntimeExports,K as Button,a2 as Popper,a3 as Grow,X as Paper,a4 as ClickAwayListener,a5 as MenuList,M as MenuItem,y as reactExports,B as Box,a6 as Chip,J as IconButton,a1 as useParams,N as useLoaderData,p as useMatches,W as useSubmit,t as useNavigation,h as useSearchParams,P as Outlet,T as Typography,a7 as Table,a8 as TableHead,a9 as TableRow,aa as TableCell,ab as TableSortLabel,ac as TableBody,k as dayjs,s as Link,G as Grid,ad as Autocomplete,a0 as TextField,F as FormControlLabel,S as Switch}from"./vendor-CmCdJidw.js";import{a as useLocalStorage}from"./index-BY6V2Y10.js";import{d as default_1$1}from"./ContentCopy-BwagEdvM.js";import{r as requireCreateSvgIcon,i as interopRequireDefaultExports}from"./createSvgIcon-C96PFZfH.js";const options=[{title:"Download HTML",format:"html"},{title:"Download JSON",format:"json"}];function DownloadButton(e){const[t,n]=React.useState(!1),s=React.useRef(null),i=(l,u)=>{window.open(`${l}?report_format=${u}`,"_blank"),n(!1)},a=()=>{n(l=>!l)},m=l=>{s.current&&s.current.contains(l.target)||n(!1)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button,{variant:"outlined",ref:s,color:"primary","aria-controls":t?"split-button-menu":void 0,"aria-expanded":t?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:a,children:"Download"}),jsxRuntimeExports.jsx(Popper,{open:t,anchorEl:s.current,transition:!0,children:({TransitionProps:l,placement:u})=>jsxRuntimeExports.jsx(Grow,{...l,style:{transformOrigin:u==="bottom"?"center top":"center bottom"},children:jsxRuntimeExports.jsx(Paper,{children:jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:m,children:jsxRuntimeExports.jsx(MenuList,{id:"split-button-menu",children:options.map(f=>jsxRuntimeExports.jsx(MenuItem,{onClick:()=>i(e.downloadLink,f.format),children:f.title},f.format))})})})})})]})}var CloseRounded={},_interopRequireDefault=interopRequireDefaultExports;Object.defineProperty(CloseRounded,"__esModule",{value:!0});var default_1=CloseRounded.default=void 0,_createSvgIcon=_interopRequireDefault(requireCreateSvgIcon()),_jsxRuntime=jsxRuntimeExports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}),"CloseRounded");default_1=CloseRounded.default=_default;const HidedTags=({onClick:e,tags:t,limitTags:n=2})=>{const[s,i]=reactExports.useState(!1);return jsxRuntimeExports.jsxs(Box,{display:"flex",alignContent:"center",flexWrap:"wrap",children:[t.slice(0,n).map(a=>jsxRuntimeExports.jsx(Chip,{onClick:()=>e(a),label:a,style:{margin:3}},a)),s&&t.slice(n).map(a=>jsxRuntimeExports.jsx(Chip,{onClick:()=>e(a),label:a,style:{margin:3}},a)),!s&&t.length>n&&jsxRuntimeExports.jsx(Chip,{variant:"outlined",label:`+${t.length-n}`,style:{margin:3,borderColor:"grey"},onClick:()=>i(!0)},"+N"),t.length>0&&s&&jsxRuntimeExports.jsx(IconButton,{style:{margin:3},onClick:()=>i(!1),children:jsxRuntimeExports.jsx(default_1,{fontSize:"small"})})]})},TextWithCopyIcon=({showText:e,copyText:t})=>jsxRuntimeExports.jsxs(Box,{children:[e,jsxRuntimeExports.jsx(IconButton,{size:"small",style:{marginLeft:10},onClick:()=>navigator.clipboard.writeText(t),children:jsxRuntimeExports.jsx(default_1$1,{fontSize:"small"})})]});function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function objectSize(e){return Array.isArray(e)?e.length:isObject(e)?Object.keys(e).length:0}function stringifyForCopying(e,t){if(typeof e=="string")return e;try{return JSON.stringify(e,(n,s)=>{switch(typeof s){case"bigint":return String(s)+"n";case"number":case"boolean":case"object":case"string":return s;default:return String(s)}},t)}catch(n){return`${n.name}: ${n.message}`||"JSON.stringify failed"}}function isCollapsed(e,t,n,s,i,a){if(a&&a.collapsed!==void 0)return!!a.collapsed;if(typeof s=="boolean")return s;if(typeof s=="number"&&t>s)return!0;const m=objectSize(e);if(typeof s=="function"){const l=safeCall(s,[{node:e,depth:t,indexOrName:n,size:m}]);if(typeof l=="boolean")return l}return!!(Array.isArray(e)&&m>i||isObject(e)&&m>i)}function ifDisplay(e,t,n){return typeof e=="boolean"?e:!!(typeof e=="number"&&t>e||e==="collapsed"&&n||e==="expanded"&&!n)}function safeCall(e,t){try{return e(...t)}catch(n){reportError(n)}}function editableAdd(e){if(e===!0||isObject(e)&&e.add===!0)return!0}function editableEdit(e){if(e===!0||isObject(e)&&e.edit===!0)return!0}function editableDelete(e){if(e===!0||isObject(e)&&e.delete===!0)return!0}function isReactComponent(e){return typeof e=="function"}function customAdd(e){return!e||e.add===void 0||!!e.add}function customEdit(e){return!e||e.edit===void 0||!!e.edit}function customDelete(e){return!e||e.delete===void 0||!!e.delete}function customCopy(e){return!e||e.enableClipboard===void 0||!!e.enableClipboard}function resolveEvalFailedNewValue(e,t){return e==="string"?t.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):t}var _path$7;function _extends$7(){return _extends$7=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const i=stringifyForCopying(e);s.stopPropagation(),navigator.clipboard.writeText(i),n(!0),setTimeout(()=>n(!1),3e3)},className:"json-view--copy"})}function NameValue({indexOrName:e,value:t,depth:n,parent:s,deleteHandle:i,editHandle:a}){return jsxRuntimeExports.jsxs("div",Object.assign({className:"json-view--pair"},{children:[jsxRuntimeExports.jsx("span",Object.assign({className:typeof e=="number"?"json-view--index":"json-view--property"},{children:e})),":"," ",jsxRuntimeExports.jsx(JsonNode,{node:t,depth:n+1,deleteHandle:i,editHandle:a,parent:s,indexOrName:e})]}))}var _path$4,_path2$3;function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(e){for(var t=1;t{b(isCollapsed(e,t,n,a,l,i))},[a,l]);const C=reactExports.useCallback((o,p,k)=>{Array.isArray(e)?e[+o]=p:e&&(e[o]=p),d&&d({newValue:p,oldValue:k,depth:t,src:c,indexOrName:o,parentType:v?"object":"array"}),x&&x({type:"edit",depth:t,src:c,indexOrName:o,parentType:v?"object":"array"}),E()},[e,d,x,E]),O=o=>{Array.isArray(e)?e.splice(+o,1):e&&delete e[o],E()},[N,r]=reactExports.useState(!1),h=()=>{r(!1),s&&s(n),f&&f({value:e,depth:t,src:c,indexOrName:n,parentType:v?"object":"array"}),x&&x({type:"delete",depth:t,src:c,indexOrName:n,parentType:v?"object":"array"})},[S,_]=reactExports.useState(!1),y=reactExports.useRef(null),T=()=>{var o;if(v){const p=(o=y.current)===null||o===void 0?void 0:o.value;p&&(e[p]=null,y.current&&(y.current.value=""),_(!1),g&&g({indexOrName:p,depth:t,src:c,parentType:"object"}),x&&x({type:"add",indexOrName:p,depth:t,src:c,parentType:"object"}))}else if(Array.isArray(e)){const p=e;p.push(null),g&&g({indexOrName:p.length-1,depth:t,src:c,parentType:"array"}),x&&x({type:"add",indexOrName:p.length-1,depth:t,src:c,parentType:"array"})}E()},D=o=>{o.key==="Enter"?(o.preventDefault(),T()):o.key==="Escape"&&$()},w=N||S,$=()=>{r(!1),_(!1)},A=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!j&&!w&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!0)},{children:[ifDisplay(R,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(e)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),S&&v&&jsxRuntimeExports.jsx("input",{className:"json-view--input",placeholder:"property",ref:y,onKeyDown:D}),w&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:S?T:h}),w&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:$}),!j&&!w&&m&&customCopy(i)&&jsxRuntimeExports.jsx(CopyButton,{node:e}),!j&&!w&&editableAdd(u)&&customAdd(i)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{v?(_(!0),setTimeout(()=>{var o;return(o=y.current)===null||o===void 0?void 0:o.focus()})):T()}}),!j&&!w&&editableDelete(u)&&customDelete(i)&&s&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>r(!0)})]});return Array.isArray(e)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),A,j?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>b(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:e.map((o,p)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:p,value:o,depth:t,parent:e,deleteHandle:O,editHandle:C},String(n)+String(p)))})),jsxRuntimeExports.jsx("span",{children:"]"}),j&&ifDisplay(R,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!1),className:"jv-size"},{children:[objectSize(e)," Items"]}))]}):v?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),A,j?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>b(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(e).map(([o,p])=>jsxRuntimeExports.jsx(NameValue,{indexOrName:o,value:p,depth:t,parent:e,deleteHandle:O,editHandle:C},String(n)+String(o)))})),jsxRuntimeExports.jsx("span",{children:"}"}),j&&ifDisplay(R,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!1),className:"jv-size"},{children:[objectSize(e)," Items"]}))]}):null}const LongString=React.forwardRef(({str:e,className:t,ctrlClick:n},s)=>{let{collapseStringMode:i,collapseStringsAfterLength:a}=reactExports.useContext(JsonViewContext);const[m,l]=reactExports.useState(!0);a=a>0?a:0;const u=e.replace(/\s+/g," "),f=c=>{(c.ctrlKey||c.metaKey)&&n?n(c):l(!m)};if(e.length<=a)return jsxRuntimeExports.jsxs("span",Object.assign({className:t,onClick:n},{children:['"',e,'"']}));if(i==="address")return e.length<=10?jsxRuntimeExports.jsxs("span",Object.assign({className:t,onClick:n},{children:['"',e,'"']})):jsxRuntimeExports.jsxs("span",Object.assign({onClick:f,className:t+" cursor-pointer"},{children:['"',m?u.slice(0,6)+"..."+u.slice(-4):e,'"']}));if(i==="directly")return jsxRuntimeExports.jsxs("span",Object.assign({onClick:f,className:t+" cursor-pointer"},{children:['"',m?u.slice(0,a)+"...":e,'"']}));if(i==="word"){let c=a,g=a+1,d=u,x=1;for(;;){if(/\W/.test(e[c])){d=e.slice(0,c);break}if(/\W/.test(e[g])){d=e.slice(0,g);break}if(x===6){d=e.slice(0,a);break}x++,c--,g++}return jsxRuntimeExports.jsxs("span",Object.assign({onClick:f,className:t+" cursor-pointer"},{children:['"',m?d+"...":e,'"']}))}return jsxRuntimeExports.jsxs("span",Object.assign({className:t},{children:['"',e,'"']}))});var _path;function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t{setEditing(!0),setTimeout(()=>{var e,t;(e=window.getSelection())===null||e===void 0||e.selectAllChildren(valueRef.current),(t=valueRef.current)===null||t===void 0||t.focus()})},done=reactExports.useCallback(()=>{const newValue=valueRef.current.innerText;try{const evalValue=eval(newValue);editHandle&&editHandle(indexOrName,evalValue,node)}catch(e){const t=resolveEvalFailedNewValue(type,newValue);editHandle&&editHandle(indexOrName,t,node)}setEditing(!1)},[editHandle]),cancel=()=>{setEditing(!1),setDeleting(!1)},deleteHandle=()=>{setDeleting(!1),_deleteHandle&&_deleteHandle(indexOrName),onDelete&&onDelete({value:node,depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object"}),onChange&&onChange({depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object",type:"delete"})},handleKeyDown=reactExports.useCallback(e=>{e.key==="Enter"?(e.preventDefault(),done()):e.key==="Escape"&&cancel()},[done]),isEditing=editing||deleting,ctrlClick=!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle?e=>{(e.ctrlKey||e.metaKey)&&edit()}:void 0,Icons=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[isEditing&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:deleting?deleteHandle:done}),isEditing&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:cancel}),!isEditing&&enableClipboard&&customCopy(customReturn)&&jsxRuntimeExports.jsx(CopyButton,{node}),!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle&&jsxRuntimeExports.jsx(SvgEdit,{className:"json-view--edit",onClick:edit}),!isEditing&&editableDelete(editable)&&customDelete(customReturn)&&_deleteHandle&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>setDeleting(!0)})]});let className="json-view--string";switch(typeof(customReturn==null?void 0:customReturn.className)=="string"&&(className+=" "+customReturn.className),type){case"number":case"bigint":className="json-view--number";break;case"boolean":className="json-view--boolean";break;case"object":className="json-view--null";break}deleting&&(className+=" json-view--deleting");let displayValue=String(node);type==="bigint"&&(displayValue+="n");const EditingElement=reactExports.useMemo(()=>jsxRuntimeExports.jsx("span",{contentEditable:!0,className,dangerouslySetInnerHTML:{__html:type==="string"?`"${displayValue}"`:displayValue},ref:valueRef,onKeyDown:handleKeyDown}),[displayValue,type,handleKeyDown]);return type==="string"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:node.length>collapseStringsAfterLength?jsxRuntimeExports.jsx(LongString,{str:node,ref:valueRef,className,ctrlClick}):jsxRuntimeExports.jsxs("span",Object.assign({className,onClick:ctrlClick},{children:['"',displayValue,'"']})),Icons]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:jsxRuntimeExports.jsx("span",Object.assign({className,onClick:ctrlClick},{children:displayValue})),Icons]})}}const JsonViewContext=reactExports.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",collapseObjectsAfterLength:20,collapsed:!1,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,displaySize:void 0});function JsonView({src:e,collapseStringsAfterLength:t=99,collapseStringMode:n="directly",collapseObjectsAfterLength:s=99,collapsed:i,enableClipboard:a=!0,editable:m=!1,onEdit:l,onDelete:u,onAdd:f,onChange:c,dark:g=!1,theme:d="default",customizeNode:x,displaySize:E}){const[R,v]=reactExports.useState(0),j=reactExports.useCallback(()=>v(b=>++b),[]);return jsxRuntimeExports.jsx(JsonViewContext.Provider,Object.assign({value:{src:e,collapseStringsAfterLength:t,collapseStringMode:n,collapseObjectsAfterLength:s,collapsed:i,enableClipboard:a,editable:m,onEdit:l,onDelete:u,onAdd:f,onChange:c,forceUpdate:j,customizeNode:x,displaySize:E}},{children:jsxRuntimeExports.jsx("code",Object.assign({className:"json-view"+(g?" dark":"")+(d&&d!=="default"?" json-view_"+d:"")},{children:jsxRuntimeExports.jsx(JsonNode,{node:e,depth:1})}))}))}function useUpdateQueryStringValueWithoutNavigation(e,t){reactExports.useEffect(()=>{const n=new URLSearchParams(window.location.search),s=n.get(e)??"";if(t===s)return;t?n.set(e,t):n.delete(e);const i=[window.location.pathname,n.toString()].filter(Boolean).join("?");window.history.replaceState(null,"",i)},[e,t])}const shouldRevalidate=()=>!0,handle={crumb:(e,{pathname:t})=>({to:t,linkText:t.split("/").reverse()[0]==="reports"?"Reports":"Test Suites"})},metadataToOneString=e=>Object.values(e).map(t=>Array.isArray(t)?t.join(" "):typeof t=="object"?metadataToOneString(t):t).join(" "),SnapshotsListTemplate=({type:e})=>{const{projectId:t}=useParams(),n=useLoaderData(),s=useMatches(),i=useSubmit(),m=useNavigation().state!=="idle",[l]=useSearchParams(),[u,f]=reactExports.useState("desc"),[c,g]=useLocalStorage("show-full-json-metadata",!1),[d,x]=reactExports.useState(()=>{var r;return((r=l.get("tags"))==null?void 0:r.split(","))||[]}),[E,R]=reactExports.useState(()=>l.get("metadata-query")||"");useUpdateQueryStringValueWithoutNavigation("tags",d.join(",")),useUpdateQueryStringValueWithoutNavigation("metadata-query",String(E));const v=s.find(({handle:r})=>{var h;return((h=r==null?void 0:r.hide)==null?void 0:h.snapshotList)===!0}),j=reactExports.useMemo(()=>Array.from(new Set(n.flatMap(({tags:r})=>r))),[n]),b=reactExports.useMemo(()=>n.filter(({tags:r})=>d.every(h=>r.includes(h))),[n,d]),C=reactExports.useMemo(()=>b.filter(({metadata:r})=>E===""?!0:metadataToOneString(r).includes(E)),[b,E]),O=reactExports.useMemo(()=>u===void 0?C:C.sort((r,h)=>{const[S,_]=[Date.parse(r.timestamp),Date.parse(h.timestamp)],y=S-_;return u==="desc"?-y:u==="asc"?y:0}),[C,u]);if(v)return jsxRuntimeExports.jsx(Outlet,{});const N=jsxRuntimeExports.jsx(Box,{sx:{padding:2},children:jsxRuntimeExports.jsxs(Grid,{container:!0,gap:2,alignItems:"flex-end",justifyContent:"space-around",children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:4,children:jsxRuntimeExports.jsx(Autocomplete,{multiple:!0,limitTags:2,value:d,onChange:(r,h)=>x(h),options:j,renderInput:r=>jsxRuntimeExports.jsx(TextField,{...r,variant:"standard",label:"Filter by Tags"})})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:7,children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"flex-end",gap:2,children:[jsxRuntimeExports.jsx(TextField,{fullWidth:!0,value:E,onChange:r=>R(r.target.value),variant:"standard",label:"Search in Metadata"}),jsxRuntimeExports.jsx(Box,{minWidth:220,display:"flex",justifyContent:"center",children:jsxRuntimeExports.jsx(FormControlLabel,{control:jsxRuntimeExports.jsx(Switch,{checked:c,onChange:r=>g(r.target.checked)}),label:"Hide Metadata"})}),jsxRuntimeExports.jsx(Box,{display:"flex",justifyContent:"flex-end",children:jsxRuntimeExports.jsxs(Button,{sx:{minWidth:160},variant:"outlined",onClick:()=>i(null,{method:"post"}),color:"primary",disabled:m,children:["refresh ",e]})})]})})]})});return n.length===0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[N,jsxRuntimeExports.jsxs(Typography,{my:3,variant:"h4",align:"center",children:["You don't have any ",e," yet."]})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[N,jsxRuntimeExports.jsxs(Table,{children:[jsxRuntimeExports.jsxs(TableHead,{children:[jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{children:e==="reports"?"Report ID":e==="test suites"?"Test Suite ID":"indefined"}),jsxRuntimeExports.jsx(TableCell,{children:"Tags"}),jsxRuntimeExports.jsx(TableCell,{children:"Metadata"}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(TableSortLabel,{active:!!u,direction:u,onClick:()=>{f(r=>{if(r===void 0)return"desc";if(r==="desc")return"asc"})},children:"Timestamp"})}),jsxRuntimeExports.jsx(TableCell,{children:"Actions"})]}),jsxRuntimeExports.jsx(TableRow,{})]}),jsxRuntimeExports.jsx(TableBody,{children:O.map(r=>jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(TextWithCopyIcon,{showText:r.id,copyText:r.id})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Box,{maxWidth:250,children:jsxRuntimeExports.jsx(HidedTags,{onClick:h=>{d.includes(h)||x([...d,h])},tags:r.tags})})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(JsonView,{collapsed:c,src:r.metadata,theme:"atom",enableClipboard:!1})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Typography,{variant:"body2",children:dayjs(r.timestamp).locale("en-gb").format("llll")})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsxs(Box,{display:"flex",justifyContent:"center",flexWrap:"wrap",gap:1,children:[jsxRuntimeExports.jsx(Button,{component:Link,to:`${r.id}`,children:"View"}),jsxRuntimeExports.jsx(DownloadButton,{downloadLink:`/api/projects/${t}/${r.id}/download`})]})})]},`r-${r.id}`))})]})]})};export{SnapshotsListTemplate,handle,shouldRevalidate}; +import{R as React,j as jsxRuntimeExports,U as Button,a7 as Popper,a8 as Grow,$ as Paper,a9 as ClickAwayListener,aa as MenuList,M as MenuItem,r as reactExports,B as Box,ab as Chip,I as IconButton,a6 as useParams,V as useLoaderData,y as useMatches,_ as useSubmit,K as useNavigation,q as useSearchParams,X as Outlet,T as Typography,ac as Table,ad as TableHead,ae as TableRow,af as TableCell,ag as TableSortLabel,ah as TableBody,s as dayjs,J as Link,G as Grid,ai as Autocomplete,a5 as TextField,F as FormControlLabel,l as Switch}from"./vendor-CFh6IQM6.js";import{a as useLocalStorage}from"./index-DATujkfj.js";import{d as default_1$1}from"./ContentCopy-Cu793Viy.js";import{r as requireCreateSvgIcon,i as interopRequireDefaultExports}from"./createSvgIcon-BHt_C7WZ.js";const options=[{title:"Download HTML",format:"html"},{title:"Download JSON",format:"json"}];function DownloadButton(e){const[t,n]=React.useState(!1),s=React.useRef(null),i=(l,u)=>{window.open(`${l}?report_format=${u}`,"_blank"),n(!1)},a=()=>{n(l=>!l)},m=l=>{s.current&&s.current.contains(l.target)||n(!1)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button,{variant:"outlined",ref:s,color:"primary","aria-controls":t?"split-button-menu":void 0,"aria-expanded":t?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:a,children:"Download"}),jsxRuntimeExports.jsx(Popper,{open:t,anchorEl:s.current,transition:!0,children:({TransitionProps:l,placement:u})=>jsxRuntimeExports.jsx(Grow,{...l,style:{transformOrigin:u==="bottom"?"center top":"center bottom"},children:jsxRuntimeExports.jsx(Paper,{children:jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:m,children:jsxRuntimeExports.jsx(MenuList,{id:"split-button-menu",children:options.map(f=>jsxRuntimeExports.jsx(MenuItem,{onClick:()=>i(e.downloadLink,f.format),children:f.title},f.format))})})})})})]})}var CloseRounded={},_interopRequireDefault=interopRequireDefaultExports;Object.defineProperty(CloseRounded,"__esModule",{value:!0});var default_1=CloseRounded.default=void 0,_createSvgIcon=_interopRequireDefault(requireCreateSvgIcon()),_jsxRuntime=jsxRuntimeExports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}),"CloseRounded");default_1=CloseRounded.default=_default;const HidedTags=({onClick:e,tags:t,limitTags:n=2})=>{const[s,i]=reactExports.useState(!1);return jsxRuntimeExports.jsxs(Box,{display:"flex",alignContent:"center",flexWrap:"wrap",children:[t.slice(0,n).map(a=>jsxRuntimeExports.jsx(Chip,{onClick:()=>e(a),label:a,style:{margin:3}},a)),s&&t.slice(n).map(a=>jsxRuntimeExports.jsx(Chip,{onClick:()=>e(a),label:a,style:{margin:3}},a)),!s&&t.length>n&&jsxRuntimeExports.jsx(Chip,{variant:"outlined",label:`+${t.length-n}`,style:{margin:3,borderColor:"grey"},onClick:()=>i(!0)},"+N"),t.length>0&&s&&jsxRuntimeExports.jsx(IconButton,{style:{margin:3},onClick:()=>i(!1),children:jsxRuntimeExports.jsx(default_1,{fontSize:"small"})})]})},TextWithCopyIcon=({showText:e,copyText:t})=>jsxRuntimeExports.jsxs(Box,{children:[e,jsxRuntimeExports.jsx(IconButton,{size:"small",style:{marginLeft:10},onClick:()=>navigator.clipboard.writeText(t),children:jsxRuntimeExports.jsx(default_1$1,{fontSize:"small"})})]});function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function objectSize(e){return Array.isArray(e)?e.length:isObject(e)?Object.keys(e).length:0}function stringifyForCopying(e,t){if(typeof e=="string")return e;try{return JSON.stringify(e,(n,s)=>{switch(typeof s){case"bigint":return String(s)+"n";case"number":case"boolean":case"object":case"string":return s;default:return String(s)}},t)}catch(n){return`${n.name}: ${n.message}`||"JSON.stringify failed"}}function isCollapsed(e,t,n,s,i,a){if(a&&a.collapsed!==void 0)return!!a.collapsed;if(typeof s=="boolean")return s;if(typeof s=="number"&&t>s)return!0;const m=objectSize(e);if(typeof s=="function"){const l=safeCall(s,[{node:e,depth:t,indexOrName:n,size:m}]);if(typeof l=="boolean")return l}return!!(Array.isArray(e)&&m>i||isObject(e)&&m>i)}function ifDisplay(e,t,n){return typeof e=="boolean"?e:!!(typeof e=="number"&&t>e||e==="collapsed"&&n||e==="expanded"&&!n)}function safeCall(e,t){try{return e(...t)}catch(n){reportError(n)}}function editableAdd(e){if(e===!0||isObject(e)&&e.add===!0)return!0}function editableEdit(e){if(e===!0||isObject(e)&&e.edit===!0)return!0}function editableDelete(e){if(e===!0||isObject(e)&&e.delete===!0)return!0}function isReactComponent(e){return typeof e=="function"}function customAdd(e){return!e||e.add===void 0||!!e.add}function customEdit(e){return!e||e.edit===void 0||!!e.edit}function customDelete(e){return!e||e.delete===void 0||!!e.delete}function customCopy(e){return!e||e.enableClipboard===void 0||!!e.enableClipboard}function resolveEvalFailedNewValue(e,t){return e==="string"?t.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):t}var _path$7;function _extends$7(){return _extends$7=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const i=stringifyForCopying(e);s.stopPropagation(),navigator.clipboard.writeText(i),n(!0),setTimeout(()=>n(!1),3e3)},className:"json-view--copy"})}function NameValue({indexOrName:e,value:t,depth:n,parent:s,deleteHandle:i,editHandle:a}){return jsxRuntimeExports.jsxs("div",Object.assign({className:"json-view--pair"},{children:[jsxRuntimeExports.jsx("span",Object.assign({className:typeof e=="number"?"json-view--index":"json-view--property"},{children:e})),":"," ",jsxRuntimeExports.jsx(JsonNode,{node:t,depth:n+1,deleteHandle:i,editHandle:a,parent:s,indexOrName:e})]}))}var _path$4,_path2$3;function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(e){for(var t=1;t{b(isCollapsed(e,t,n,a,l,i))},[a,l]);const C=reactExports.useCallback((o,p,k)=>{Array.isArray(e)?e[+o]=p:e&&(e[o]=p),d&&d({newValue:p,oldValue:k,depth:t,src:c,indexOrName:o,parentType:v?"object":"array"}),x&&x({type:"edit",depth:t,src:c,indexOrName:o,parentType:v?"object":"array"}),E()},[e,d,x,E]),O=o=>{Array.isArray(e)?e.splice(+o,1):e&&delete e[o],E()},[N,r]=reactExports.useState(!1),g=()=>{r(!1),s&&s(n),f&&f({value:e,depth:t,src:c,indexOrName:n,parentType:v?"object":"array"}),x&&x({type:"delete",depth:t,src:c,indexOrName:n,parentType:v?"object":"array"})},[S,_]=reactExports.useState(!1),y=reactExports.useRef(null),T=()=>{var o;if(v){const p=(o=y.current)===null||o===void 0?void 0:o.value;p&&(e[p]=null,y.current&&(y.current.value=""),_(!1),h&&h({indexOrName:p,depth:t,src:c,parentType:"object"}),x&&x({type:"add",indexOrName:p,depth:t,src:c,parentType:"object"}))}else if(Array.isArray(e)){const p=e;p.push(null),h&&h({indexOrName:p.length-1,depth:t,src:c,parentType:"array"}),x&&x({type:"add",indexOrName:p.length-1,depth:t,src:c,parentType:"array"})}E()},D=o=>{o.key==="Enter"?(o.preventDefault(),T()):o.key==="Escape"&&$()},w=N||S,$=()=>{r(!1),_(!1)},A=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!j&&!w&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!0)},{children:[ifDisplay(R,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(e)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),S&&v&&jsxRuntimeExports.jsx("input",{className:"json-view--input",placeholder:"property",ref:y,onKeyDown:D}),w&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:S?T:g}),w&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:$}),!j&&!w&&m&&customCopy(i)&&jsxRuntimeExports.jsx(CopyButton,{node:e}),!j&&!w&&editableAdd(u)&&customAdd(i)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{v?(_(!0),setTimeout(()=>{var o;return(o=y.current)===null||o===void 0?void 0:o.focus()})):T()}}),!j&&!w&&editableDelete(u)&&customDelete(i)&&s&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>r(!0)})]});return Array.isArray(e)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),A,j?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>b(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:e.map((o,p)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:p,value:o,depth:t,parent:e,deleteHandle:O,editHandle:C},String(n)+String(p)))})),jsxRuntimeExports.jsx("span",{children:"]"}),j&&ifDisplay(R,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!1),className:"jv-size"},{children:[objectSize(e)," Items"]}))]}):v?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),A,j?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>b(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(e).map(([o,p])=>jsxRuntimeExports.jsx(NameValue,{indexOrName:o,value:p,depth:t,parent:e,deleteHandle:O,editHandle:C},String(n)+String(o)))})),jsxRuntimeExports.jsx("span",{children:"}"}),j&&ifDisplay(R,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!1),className:"jv-size"},{children:[objectSize(e)," Items"]}))]}):null}const LongString=React.forwardRef(({str:e,className:t,ctrlClick:n},s)=>{let{collapseStringMode:i,collapseStringsAfterLength:a}=reactExports.useContext(JsonViewContext);const[m,l]=reactExports.useState(!0);a=a>0?a:0;const u=e.replace(/\s+/g," "),f=c=>{(c.ctrlKey||c.metaKey)&&n?n(c):l(!m)};if(e.length<=a)return jsxRuntimeExports.jsxs("span",Object.assign({className:t,onClick:n},{children:['"',e,'"']}));if(i==="address")return e.length<=10?jsxRuntimeExports.jsxs("span",Object.assign({className:t,onClick:n},{children:['"',e,'"']})):jsxRuntimeExports.jsxs("span",Object.assign({onClick:f,className:t+" cursor-pointer"},{children:['"',m?u.slice(0,6)+"..."+u.slice(-4):e,'"']}));if(i==="directly")return jsxRuntimeExports.jsxs("span",Object.assign({onClick:f,className:t+" cursor-pointer"},{children:['"',m?u.slice(0,a)+"...":e,'"']}));if(i==="word"){let c=a,h=a+1,d=u,x=1;for(;;){if(/\W/.test(e[c])){d=e.slice(0,c);break}if(/\W/.test(e[h])){d=e.slice(0,h);break}if(x===6){d=e.slice(0,a);break}x++,c--,h++}return jsxRuntimeExports.jsxs("span",Object.assign({onClick:f,className:t+" cursor-pointer"},{children:['"',m?d+"...":e,'"']}))}return jsxRuntimeExports.jsxs("span",Object.assign({className:t},{children:['"',e,'"']}))});var _path;function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t{setEditing(!0),setTimeout(()=>{var e,t;(e=window.getSelection())===null||e===void 0||e.selectAllChildren(valueRef.current),(t=valueRef.current)===null||t===void 0||t.focus()})},done=reactExports.useCallback(()=>{const newValue=valueRef.current.innerText;try{const evalValue=eval(newValue);editHandle&&editHandle(indexOrName,evalValue,node)}catch(e){const t=resolveEvalFailedNewValue(type,newValue);editHandle&&editHandle(indexOrName,t,node)}setEditing(!1)},[editHandle]),cancel=()=>{setEditing(!1),setDeleting(!1)},deleteHandle=()=>{setDeleting(!1),_deleteHandle&&_deleteHandle(indexOrName),onDelete&&onDelete({value:node,depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object"}),onChange&&onChange({depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object",type:"delete"})},handleKeyDown=reactExports.useCallback(e=>{e.key==="Enter"?(e.preventDefault(),done()):e.key==="Escape"&&cancel()},[done]),isEditing=editing||deleting,ctrlClick=!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle?e=>{(e.ctrlKey||e.metaKey)&&edit()}:void 0,Icons=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[isEditing&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:deleting?deleteHandle:done}),isEditing&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:cancel}),!isEditing&&enableClipboard&&customCopy(customReturn)&&jsxRuntimeExports.jsx(CopyButton,{node}),!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle&&jsxRuntimeExports.jsx(SvgEdit,{className:"json-view--edit",onClick:edit}),!isEditing&&editableDelete(editable)&&customDelete(customReturn)&&_deleteHandle&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>setDeleting(!0)})]});let className="json-view--string";switch(typeof(customReturn==null?void 0:customReturn.className)=="string"&&(className+=" "+customReturn.className),type){case"number":case"bigint":className="json-view--number";break;case"boolean":className="json-view--boolean";break;case"object":className="json-view--null";break}deleting&&(className+=" json-view--deleting");let displayValue=String(node);type==="bigint"&&(displayValue+="n");const EditingElement=reactExports.useMemo(()=>jsxRuntimeExports.jsx("span",{contentEditable:!0,className,dangerouslySetInnerHTML:{__html:type==="string"?`"${displayValue}"`:displayValue},ref:valueRef,onKeyDown:handleKeyDown}),[displayValue,type,handleKeyDown]);return type==="string"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:node.length>collapseStringsAfterLength?jsxRuntimeExports.jsx(LongString,{str:node,ref:valueRef,className,ctrlClick}):jsxRuntimeExports.jsxs("span",Object.assign({className,onClick:ctrlClick},{children:['"',displayValue,'"']})),Icons]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:jsxRuntimeExports.jsx("span",Object.assign({className,onClick:ctrlClick},{children:displayValue})),Icons]})}}const JsonViewContext=reactExports.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",collapseObjectsAfterLength:20,collapsed:!1,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,displaySize:void 0});function JsonView({src:e,collapseStringsAfterLength:t=99,collapseStringMode:n="directly",collapseObjectsAfterLength:s=99,collapsed:i,enableClipboard:a=!0,editable:m=!1,onEdit:l,onDelete:u,onAdd:f,onChange:c,dark:h=!1,theme:d="default",customizeNode:x,displaySize:E}){const[R,v]=reactExports.useState(0),j=reactExports.useCallback(()=>v(b=>++b),[]);return jsxRuntimeExports.jsx(JsonViewContext.Provider,Object.assign({value:{src:e,collapseStringsAfterLength:t,collapseStringMode:n,collapseObjectsAfterLength:s,collapsed:i,enableClipboard:a,editable:m,onEdit:l,onDelete:u,onAdd:f,onChange:c,forceUpdate:j,customizeNode:x,displaySize:E}},{children:jsxRuntimeExports.jsx("code",Object.assign({className:"json-view"+(h?" dark":"")+(d&&d!=="default"?" json-view_"+d:"")},{children:jsxRuntimeExports.jsx(JsonNode,{node:e,depth:1})}))}))}function useUpdateQueryStringValueWithoutNavigation(e,t){reactExports.useEffect(()=>{const n=new URLSearchParams(window.location.search),s=n.get(e)??"";if(t===s)return;t?n.set(e,t):n.delete(e);const i=[window.location.pathname,n.toString()].filter(Boolean).join("?");window.history.replaceState(null,"",i)},[e,t])}const shouldRevalidate=()=>!0,handle={crumb:(e,{pathname:t})=>({to:t,linkText:t.split("/").reverse()[0]==="reports"?"Reports":"Test Suites"})},metadataToOneString=e=>Object.values(e).map(t=>Array.isArray(t)?t.join(" "):typeof t=="object"?metadataToOneString(t):t).join(" "),SnapshotsListTemplate=({type:e})=>{const{projectId:t}=useParams(),n=useLoaderData(),s=useMatches(),i=useSubmit(),m=useNavigation().state!=="idle",[l]=useSearchParams(),[u,f]=reactExports.useState("desc"),[c,h]=useLocalStorage("show-full-json-metadata",!1),[d,x]=reactExports.useState(()=>{var r;return((r=l.get("tags"))==null?void 0:r.split(","))||[]}),[E,R]=reactExports.useState(()=>l.get("metadata-query")||"");useUpdateQueryStringValueWithoutNavigation("tags",d.join(",")),useUpdateQueryStringValueWithoutNavigation("metadata-query",String(E));const v=s.find(({handle:r})=>{var g;return((g=r==null?void 0:r.hide)==null?void 0:g.snapshotList)===!0}),j=reactExports.useMemo(()=>Array.from(new Set(n.flatMap(({tags:r})=>r))),[n]),b=reactExports.useMemo(()=>n.filter(({tags:r})=>d.every(g=>r.includes(g))),[n,d]),C=reactExports.useMemo(()=>b.filter(({metadata:r})=>E===""?!0:metadataToOneString(r).includes(E)),[b,E]),O=reactExports.useMemo(()=>u===void 0?C:C.sort((r,g)=>{const[S,_]=[Date.parse(r.timestamp),Date.parse(g.timestamp)],y=S-_;return u==="desc"?-y:u==="asc"?y:0}),[C,u]);if(v)return jsxRuntimeExports.jsx(Outlet,{});const N=jsxRuntimeExports.jsx(Box,{sx:{padding:2},children:jsxRuntimeExports.jsxs(Grid,{container:!0,gap:2,alignItems:"flex-end",justifyContent:"space-around",children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:4,children:jsxRuntimeExports.jsx(Autocomplete,{multiple:!0,limitTags:2,value:d,onChange:(r,g)=>x(g),options:j,renderInput:r=>jsxRuntimeExports.jsx(TextField,{...r,variant:"standard",label:"Filter by Tags"})})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:7,children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"flex-end",gap:2,children:[jsxRuntimeExports.jsx(TextField,{fullWidth:!0,value:E,onChange:r=>R(r.target.value),variant:"standard",label:"Search in Metadata"}),jsxRuntimeExports.jsx(Box,{minWidth:220,display:"flex",justifyContent:"center",children:jsxRuntimeExports.jsx(FormControlLabel,{control:jsxRuntimeExports.jsx(Switch,{checked:c,onChange:r=>h(r.target.checked)}),label:"Hide Metadata"})}),jsxRuntimeExports.jsx(Box,{display:"flex",justifyContent:"flex-end",children:jsxRuntimeExports.jsxs(Button,{sx:{minWidth:160},variant:"outlined",onClick:()=>i(null,{method:"post"}),color:"primary",disabled:m,children:["refresh ",e]})})]})})]})});return n.length===0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[N,jsxRuntimeExports.jsxs(Typography,{my:3,variant:"h4",align:"center",children:["You don't have any ",e," yet."]})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[N,jsxRuntimeExports.jsxs(Table,{children:[jsxRuntimeExports.jsxs(TableHead,{children:[jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{children:e==="reports"?"Report ID":e==="test suites"?"Test Suite ID":"indefined"}),jsxRuntimeExports.jsx(TableCell,{children:"Tags"}),jsxRuntimeExports.jsx(TableCell,{children:"Metadata"}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(TableSortLabel,{active:!!u,direction:u,onClick:()=>{f(r=>{if(r===void 0)return"desc";if(r==="desc")return"asc"})},children:"Timestamp"})}),jsxRuntimeExports.jsx(TableCell,{children:"Actions"})]}),jsxRuntimeExports.jsx(TableRow,{})]}),jsxRuntimeExports.jsx(TableBody,{children:O.map(r=>jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(TextWithCopyIcon,{showText:r.id,copyText:r.id})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Box,{maxWidth:250,children:jsxRuntimeExports.jsx(HidedTags,{onClick:g=>{d.includes(g)||x([...d,g])},tags:r.tags})})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(JsonView,{collapsed:c,src:r.metadata,theme:"atom",enableClipboard:!1})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Typography,{variant:"body2",children:dayjs(r.timestamp).locale("en-gb").format("llll")})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsxs(Box,{display:"flex",justifyContent:"center",flexWrap:"wrap",gap:1,children:[jsxRuntimeExports.jsx(Button,{component:Link,to:`${r.id}`,children:"View"}),jsxRuntimeExports.jsx(DownloadButton,{downloadLink:`/api/projects/${t}/${r.id}/download`})]})})]},`r-${r.id}`))})]})]})};export{SnapshotsListTemplate,handle,shouldRevalidate}; diff --git a/src/evidently/ui/assets/static/js/index-DH7dNy5S.js b/src/evidently/ui/assets/static/js/index-DH7dNy5S.js new file mode 100644 index 0000000000..0dddecba3e --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-DH7dNy5S.js @@ -0,0 +1 @@ +import{y as d,V as c,j as e,B as x,G as o,T as m,I as p,Y as j,H as u,J as h,Z as b,X as T}from"./vendor-CFh6IQM6.js";import{d as f}from"./ContentCopy-Cu793Viy.js";import"./createSvgIcon-BHt_C7WZ.js";const v={crumb:(s,{pathname:i})=>({to:i,linkText:(s==null?void 0:s.name)||"undefined"})},a=({tabsConfig:s=[]})=>{const i=d(),n=c(),r=s.findIndex(t=>i.find(({id:l})=>l===t.id));return e.jsxs(x,{mt:2,children:[e.jsx(o,{container:!0,spacing:2,direction:"row",justifyContent:"flex-start",alignItems:"flex-end",children:e.jsx(o,{item:!0,xs:12,children:e.jsxs(m,{sx:{color:"#aaa"},variant:"body2",children:[`project id: ${n.id}`,e.jsx(p,{size:"small",style:{marginLeft:10},onClick:()=>{navigator.clipboard.writeText(n.id)},children:e.jsx(f,{fontSize:"small"})})]})})}),s.length>0&&e.jsx(j,{value:r,"aria-label":"simple tabs example",indicatorColor:"primary",children:s.map(t=>e.jsx(u,{component:h,to:t.link,children:e.jsx(b,{label:t.label||t.id,value:t.id})},t.id))}),e.jsx(T,{})]})},k=[{id:"dashboard",link:".",label:"Dashboard"},{id:"reports",link:"reports",label:"Reports"},{id:"test_suites",link:"test-suites",label:"Test suites"}],B=()=>e.jsx(a,{tabsConfig:k}),C=()=>e.jsx(a,{});export{B as Component,a as ProjectTemplate,C as ProjectWithoutTabs,v as handle}; diff --git a/src/evidently/ui/assets/static/js/index-Db0FOPuV.js b/src/evidently/ui/assets/static/js/index-Db0FOPuV.js new file mode 100644 index 0000000000..b6b7a220ee --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-Db0FOPuV.js @@ -0,0 +1 @@ +import{j as x,R as K,z as we,r as ue,K as Ce,_ as ot,$ as St,B as ee,I as Et,a0 as lt,a1 as kt,a2 as jt,a3 as Tt,a4 as Ot,a5 as Je,U as Ct,H as Lt,J as Rt,T as Te,V as Nt,G as Pt}from"./vendor-CFh6IQM6.js";import{d as Mt}from"./Edit-DoUCfieB.js";import{r as Bt,i as Ut}from"./createSvgIcon-BHt_C7WZ.js";import{u as Ye}from"./index-DATujkfj.js";var Le={},It=Ut;Object.defineProperty(Le,"__esModule",{value:!0});var ut=Le.default=void 0,qt=It(Bt()),Wt=x,Ht=(0,qt.default)((0,Wt.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");ut=Le.default=Ht;var ce=e=>e.type==="checkbox",ie=e=>e instanceof Date,O=e=>e==null;const ct=e=>typeof e=="object";var k=e=>!O(e)&&!Array.isArray(e)&&ct(e)&&!ie(e),$t=e=>k(e)&&e.target?ce(e.target)?e.target.checked:e.target.value:e,zt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Gt=(e,i)=>e.has(zt(i)),Kt=e=>{const i=e.constructor&&e.constructor.prototype;return k(i)&&i.hasOwnProperty("isPrototypeOf")},Re=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function G(e){let i;const s=Array.isArray(e);if(e instanceof Date)i=new Date(e);else if(e instanceof Set)i=new Set(e);else if(!(Re&&(e instanceof Blob||e instanceof FileList))&&(s||k(e)))if(i=s?[]:{},!s&&!Kt(e))i=e;else for(const t in e)e.hasOwnProperty(t)&&(i[t]=G(e[t]));else return e;return i}var fe=e=>Array.isArray(e)?e.filter(Boolean):[],E=e=>e===void 0,d=(e,i,s)=>{if(!i||!k(e))return s;const t=fe(i.split(/[,[\].]+?/)).reduce((o,a)=>O(o)?o:o[a],e);return E(t)||t===e?E(e[i])?s:e[i]:t},X=e=>typeof e=="boolean";const Qe={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},M={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},z={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};K.createContext(null);var Jt=(e,i,s,t=!0)=>{const o={defaultValues:i._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const u=a;return i._proxyFormState[u]!==M.all&&(i._proxyFormState[u]=!t||M.all),e[u]}});return o},N=e=>k(e)&&!Object.keys(e).length,Yt=(e,i,s,t)=>{s(e);const{name:o,...a}=e;return N(a)||Object.keys(a).length>=Object.keys(i).length||Object.keys(a).find(u=>i[u]===M.all)},De=e=>Array.isArray(e)?e:[e];function Qt(e){const i=K.useRef(e);i.current=e,K.useEffect(()=>{const s=!e.disabled&&i.current.subject&&i.current.subject.subscribe({next:i.current.next});return()=>{s&&s.unsubscribe()}},[e.disabled])}var W=e=>typeof e=="string",Xt=(e,i,s,t,o)=>W(e)?(t&&i.watch.add(e),d(s,e,o)):Array.isArray(e)?e.map(a=>(t&&i.watch.add(a),d(s,a))):(t&&(i.watchAll=!0),s),Ne=e=>/^\w*$/.test(e),ft=e=>fe(e.replace(/["|']|\]/g,"").split(/\.|\[/));function V(e,i,s){let t=-1;const o=Ne(i)?[i]:ft(i),a=o.length,u=a-1;for(;++ti?{...s[e],types:{...s[e]&&s[e].types?s[e].types:{},[t]:o||!0}}:{};const Oe=(e,i,s)=>{for(const t of s||Object.keys(e)){const o=d(e,t);if(o){const{_f:a,...u}=o;if(a&&i(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else k(u)&&Oe(u,i)}}};var Xe=e=>({isOnSubmit:!e||e===M.onSubmit,isOnBlur:e===M.onBlur,isOnChange:e===M.onChange,isOnAll:e===M.all,isOnTouch:e===M.onTouched}),Ze=(e,i,s)=>!s&&(i.watchAll||i.watch.has(e)||[...i.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),Zt=(e,i,s)=>{const t=fe(d(e,s));return V(t,"root",i[s]),V(e,s,t),e},Pe=e=>e.type==="file",J=e=>typeof e=="function",he=e=>{if(!Re)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},ye=e=>W(e),Me=e=>e.type==="radio",ge=e=>e instanceof RegExp;const et={value:!1,isValid:!1},tt={value:!0,isValid:!0};var yt=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(s=>s&&s.checked&&!s.disabled).map(s=>s.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!E(e[0].attributes.value)?E(e[0].value)||e[0].value===""?tt:{value:e[0].value,isValid:!0}:tt:et}return et};const rt={isValid:!1,value:null};var ht=e=>Array.isArray(e)?e.reduce((i,s)=>s&&s.checked&&!s.disabled?{isValid:!0,value:s.value}:i,rt):rt;function st(e,i,s="validate"){if(ye(e)||Array.isArray(e)&&e.every(ye)||X(e)&&!e)return{type:s,message:ye(e)?e:"",ref:i}}var se=e=>k(e)&&!ge(e)?e:{value:e,message:""},it=async(e,i,s,t,o)=>{const{ref:a,refs:u,required:g,maxLength:v,minLength:w,min:B,max:A,pattern:p,validate:U,name:C,valueAsNumber:me,mount:de,disabled:pe}=e._f,m=d(i,C);if(!de||pe)return{};const P=u?u[0]:a,H=_=>{t&&P.reportValidity&&(P.setCustomValidity(X(_)?"":_||""),P.reportValidity())},j={},ne=Me(a),te=ce(a),be=ne||te,I=(me||Pe(a))&&E(a.value)&&E(m)||he(a)&&a.value===""||m===""||Array.isArray(m)&&!m.length,Y=dt.bind(null,C,s,j),$=(_,b,D,L=z.maxLength,R=z.minLength)=>{const q=_?b:D;j[C]={type:_?L:R,message:q,ref:a,...Y(_?L:R,q)}};if(o?!Array.isArray(m)||!m.length:g&&(!be&&(I||O(m))||X(m)&&!m||te&&!yt(u).isValid||ne&&!ht(u).isValid)){const{value:_,message:b}=ye(g)?{value:!!g,message:g}:se(g);if(_&&(j[C]={type:z.required,message:b,ref:P,...Y(z.required,b)},!s))return H(b),j}if(!I&&(!O(B)||!O(A))){let _,b;const D=se(A),L=se(B);if(!O(m)&&!isNaN(m)){const R=a.valueAsNumber||m&&+m;O(D.value)||(_=R>D.value),O(L.value)||(b=Rnew Date(new Date().toDateString()+" "+oe),Q=a.type=="time",ae=a.type=="week";W(D.value)&&m&&(_=Q?q(m)>q(D.value):ae?m>D.value:R>new Date(D.value)),W(L.value)&&m&&(b=Q?q(m)+_.value,L=!O(b.value)&&m.length<+b.value;if((D||L)&&($(D,_.message,b.message),!s))return H(j[C].message),j}if(p&&!I&&W(m)){const{value:_,message:b}=se(p);if(ge(_)&&!m.match(_)&&(j[C]={type:z.pattern,message:b,ref:a,...Y(z.pattern,b)},!s))return H(b),j}if(U){if(J(U)){const _=await U(m,i),b=st(_,P);if(b&&(j[C]={...b,...Y(z.validate,b.message)},!s))return H(b.message),j}else if(k(U)){let _={};for(const b in U){if(!N(_)&&!s)break;const D=st(await U[b](m,i),P,b);D&&(_={...D,...Y(b,D.message)},H(D.message),s&&(j[C]=_))}if(!N(_)&&(j[C]={ref:P,..._},!s))return j}}return H(!0),j};function er(e,i){const s=i.slice(0,-1).length;let t=0;for(;t{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}}var ve=e=>O(e)||!ct(e);function Z(e,i){if(ve(e)||ve(i))return e===i;if(ie(e)&&ie(i))return e.getTime()===i.getTime();const s=Object.keys(e),t=Object.keys(i);if(s.length!==t.length)return!1;for(const o of s){const a=e[o];if(!t.includes(o))return!1;if(o!=="ref"){const u=i[o];if(ie(a)&&ie(u)||k(a)&&k(u)||Array.isArray(a)&&Array.isArray(u)?!Z(a,u):a!==u)return!1}}return!0}var gt=e=>e.type==="select-multiple",rr=e=>Me(e)||ce(e),Ee=e=>he(e)&&e.isConnected,vt=e=>{for(const i in e)if(J(e[i]))return!0;return!1};function xe(e,i={}){const s=Array.isArray(e);if(k(e)||s)for(const t in e)Array.isArray(e[t])||k(e[t])&&!vt(e[t])?(i[t]=Array.isArray(e[t])?[]:{},xe(e[t],i[t])):O(e[t])||(i[t]=!0);return i}function xt(e,i,s){const t=Array.isArray(e);if(k(e)||t)for(const o in e)Array.isArray(e[o])||k(e[o])&&!vt(e[o])?E(i)||ve(s[o])?s[o]=Array.isArray(e[o])?xe(e[o],[]):{...xe(e[o])}:xt(e[o],O(i)?{}:i[o],s[o]):s[o]=!Z(e[o],i[o]);return s}var ke=(e,i)=>xt(e,i,xe(i)),mt=(e,{valueAsNumber:i,valueAsDate:s,setValueAs:t})=>E(e)?e:i?e===""?NaN:e&&+e:s&&W(e)?new Date(e):t?t(e):e;function je(e){const i=e.ref;if(!(e.refs?e.refs.every(s=>s.disabled):i.disabled))return Pe(i)?i.files:Me(i)?ht(e.refs).value:gt(i)?[...i.selectedOptions].map(({value:s})=>s):ce(i)?yt(e.refs).value:mt(E(i.value)?e.ref.value:i.value,e)}var sr=(e,i,s,t)=>{const o={};for(const a of e){const u=d(i,a);u&&V(o,a,u._f)}return{criteriaMode:s,names:[...e],fields:o,shouldUseNativeValidation:t}},le=e=>E(e)?e:ge(e)?e.source:k(e)?ge(e.value)?e.value.source:e.value:e,ir=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function nt(e,i,s){const t=d(e,s);if(t||Ne(s))return{error:t,name:s};const o=s.split(".");for(;o.length;){const a=o.join("."),u=d(i,a),g=d(e,a);if(u&&!Array.isArray(u)&&s!==a)return{name:s};if(g&&g.type)return{name:a,error:g};o.pop()}return{name:s}}var nr=(e,i,s,t,o)=>o.isOnAll?!1:!s&&o.isOnTouch?!(i||e):(s?t.isOnBlur:o.isOnBlur)?!e:(s?t.isOnChange:o.isOnChange)?e:!0,ar=(e,i)=>!fe(d(e,i)).length&&T(e,i);const or={mode:M.onSubmit,reValidateMode:M.onChange,shouldFocusError:!0};function lr(e={},i){let s={...or,...e},t={submitCount:0,isDirty:!1,isLoading:J(s.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},a=k(s.defaultValues)||k(s.values)?G(s.defaultValues||s.values)||{}:{},u=s.shouldUnregister?{}:G(a),g={action:!1,mount:!1,watch:!1},v={mount:new Set,unMount:new Set,array:new Set,watch:new Set},w,B=0;const A={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Se(),array:Se(),state:Se()},U=e.resetOptions&&e.resetOptions.keepDirtyValues,C=Xe(s.mode),me=Xe(s.reValidateMode),de=s.criteriaMode===M.all,pe=r=>n=>{clearTimeout(B),B=setTimeout(r,n)},m=async r=>{if(A.isValid||r){const n=s.resolver?N((await I()).errors):await $(o,!0);n!==t.isValid&&p.state.next({isValid:n})}},P=r=>A.isValidating&&p.state.next({isValidating:r}),H=(r,n=[],l,y,f=!0,c=!0)=>{if(y&&l){if(g.action=!0,c&&Array.isArray(d(o,r))){const h=l(d(o,r),y.argA,y.argB);f&&V(o,r,h)}if(c&&Array.isArray(d(t.errors,r))){const h=l(d(t.errors,r),y.argA,y.argB);f&&V(t.errors,r,h),ar(t.errors,r)}if(A.touchedFields&&c&&Array.isArray(d(t.touchedFields,r))){const h=l(d(t.touchedFields,r),y.argA,y.argB);f&&V(t.touchedFields,r,h)}A.dirtyFields&&(t.dirtyFields=ke(a,u)),p.state.next({name:r,isDirty:b(r,n),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else V(u,r,n)},j=(r,n)=>{V(t.errors,r,n),p.state.next({errors:t.errors})},ne=(r,n,l,y)=>{const f=d(o,r);if(f){const c=d(u,r,E(l)?d(a,r):l);E(c)||y&&y.defaultChecked||n?V(u,r,n?c:je(f._f)):R(r,c),g.mount&&m()}},te=(r,n,l,y,f)=>{let c=!1,h=!1;const F={name:r};if(!l||y){A.isDirty&&(h=t.isDirty,t.isDirty=F.isDirty=b(),c=h!==F.isDirty);const S=Z(d(a,r),n);h=d(t.dirtyFields,r),S?T(t.dirtyFields,r):V(t.dirtyFields,r,!0),F.dirtyFields=t.dirtyFields,c=c||A.dirtyFields&&h!==!S}if(l){const S=d(t.touchedFields,r);S||(V(t.touchedFields,r,l),F.touchedFields=t.touchedFields,c=c||A.touchedFields&&S!==l)}return c&&f&&p.state.next(F),c?F:{}},be=(r,n,l,y)=>{const f=d(t.errors,r),c=A.isValid&&X(n)&&t.isValid!==n;if(e.delayError&&l?(w=pe(()=>j(r,l)),w(e.delayError)):(clearTimeout(B),w=null,l?V(t.errors,r,l):T(t.errors,r)),(l?!Z(f,l):f)||!N(y)||c){const h={...y,...c&&X(n)?{isValid:n}:{},errors:t.errors,name:r};t={...t,...h},p.state.next(h)}P(!1)},I=async r=>s.resolver(u,s.context,sr(r||v.mount,o,s.criteriaMode,s.shouldUseNativeValidation)),Y=async r=>{const{errors:n}=await I(r);if(r)for(const l of r){const y=d(n,l);y?V(t.errors,l,y):T(t.errors,l)}else t.errors=n;return n},$=async(r,n,l={valid:!0})=>{for(const y in r){const f=r[y];if(f){const{_f:c,...h}=f;if(c){const F=v.array.has(c.name),S=await it(f,u,de,s.shouldUseNativeValidation&&!n,F);if(S[c.name]&&(l.valid=!1,n))break;!n&&(d(S,c.name)?F?Zt(t.errors,S,c.name):V(t.errors,c.name,S[c.name]):T(t.errors,c.name))}h&&await $(h,n,l)}}return l.valid},_=()=>{for(const r of v.unMount){const n=d(o,r);n&&(n._f.refs?n._f.refs.every(l=>!Ee(l)):!Ee(n._f.ref))&&_e(r)}v.unMount=new Set},b=(r,n)=>(r&&n&&V(u,r,n),!Z(Be(),a)),D=(r,n,l)=>Xt(r,v,{...g.mount?u:E(n)?a:W(r)?{[r]:n}:n},l,n),L=r=>fe(d(g.mount?u:a,r,e.shouldUnregister?d(a,r,[]):[])),R=(r,n,l={})=>{const y=d(o,r);let f=n;if(y){const c=y._f;c&&(!c.disabled&&V(u,r,mt(n,c)),f=he(c.ref)&&O(n)?"":n,gt(c.ref)?[...c.ref.options].forEach(h=>h.selected=f.includes(h.value)):c.refs?ce(c.ref)?c.refs.length>1?c.refs.forEach(h=>(!h.defaultChecked||!h.disabled)&&(h.checked=Array.isArray(f)?!!f.find(F=>F===h.value):f===h.value)):c.refs[0]&&(c.refs[0].checked=!!f):c.refs.forEach(h=>h.checked=h.value===f):Pe(c.ref)?c.ref.value="":(c.ref.value=f,c.ref.type||p.values.next({name:r,values:{...u}})))}(l.shouldDirty||l.shouldTouch)&&te(r,f,l.shouldTouch,l.shouldDirty,!0),l.shouldValidate&&oe(r)},q=(r,n,l)=>{for(const y in n){const f=n[y],c=`${r}.${y}`,h=d(o,c);(v.array.has(r)||!ve(f)||h&&!h._f)&&!ie(f)?q(c,f,l):R(c,f,l)}},Q=(r,n,l={})=>{const y=d(o,r),f=v.array.has(r),c=G(n);V(u,r,c),f?(p.array.next({name:r,values:{...u}}),(A.isDirty||A.dirtyFields)&&l.shouldDirty&&p.state.next({name:r,dirtyFields:ke(a,u),isDirty:b(r,c)})):y&&!y._f&&!O(c)?q(r,c,l):R(r,c,l),Ze(r,v)&&p.state.next({...t}),p.values.next({name:r,values:{...u}}),!g.mount&&i()},ae=async r=>{const n=r.target;let l=n.name,y=!0;const f=d(o,l),c=()=>n.type?je(f._f):$t(r);if(f){let h,F;const S=c(),re=r.type===Qe.BLUR||r.type===Qe.FOCUS_OUT,Ft=!ir(f._f)&&!s.resolver&&!d(t.errors,l)&&!f._f.deps||nr(re,d(t.touchedFields,l),t.isSubmitted,me,C),Ae=Ze(l,v,re);V(u,l,S),re?(f._f.onBlur&&f._f.onBlur(r),w&&w(0)):f._f.onChange&&f._f.onChange(r);const Fe=te(l,S,re,!1),wt=!N(Fe)||Ae;if(!re&&p.values.next({name:l,type:r.type,values:{...u}}),Ft)return A.isValid&&m(),wt&&p.state.next({name:l,...Ae?{}:Fe});if(!re&&Ae&&p.state.next({...t}),P(!0),s.resolver){const{errors:Ge}=await I([l]),Dt=nt(t.errors,o,l),Ke=nt(Ge,o,Dt.name||l);h=Ke.error,l=Ke.name,F=N(Ge)}else h=(await it(f,u,de,s.shouldUseNativeValidation))[l],y=Number.isNaN(S)||S===d(u,l,S),y&&(h?F=!1:A.isValid&&(F=await $(o,!0)));y&&(f._f.deps&&oe(f._f.deps),be(l,F,h,Fe))}},oe=async(r,n={})=>{let l,y;const f=De(r);if(P(!0),s.resolver){const c=await Y(E(r)?r:f);l=N(c),y=r?!f.some(h=>d(c,h)):l}else r?(y=(await Promise.all(f.map(async c=>{const h=d(o,c);return await $(h&&h._f?{[c]:h}:h)}))).every(Boolean),!(!y&&!t.isValid)&&m()):y=l=await $(o);return p.state.next({...!W(r)||A.isValid&&l!==t.isValid?{}:{name:r},...s.resolver||!r?{isValid:l}:{},errors:t.errors,isValidating:!1}),n.shouldFocus&&!y&&Oe(o,c=>c&&d(t.errors,c),r?f:v.mount),y},Be=r=>{const n={...a,...g.mount?u:{}};return E(r)?n:W(r)?d(n,r):r.map(l=>d(n,l))},Ue=(r,n)=>({invalid:!!d((n||t).errors,r),isDirty:!!d((n||t).dirtyFields,r),isTouched:!!d((n||t).touchedFields,r),error:d((n||t).errors,r)}),_t=r=>{r&&De(r).forEach(n=>T(t.errors,n)),p.state.next({errors:r?t.errors:{}})},Ie=(r,n,l)=>{const y=(d(o,r,{_f:{}})._f||{}).ref;V(t.errors,r,{...n,ref:y}),p.state.next({name:r,errors:t.errors,isValid:!1}),l&&l.shouldFocus&&y&&y.focus&&y.focus()},Vt=(r,n)=>J(r)?p.values.subscribe({next:l=>r(D(void 0,n),l)}):D(r,n,!0),_e=(r,n={})=>{for(const l of r?De(r):v.mount)v.mount.delete(l),v.array.delete(l),n.keepValue||(T(o,l),T(u,l)),!n.keepError&&T(t.errors,l),!n.keepDirty&&T(t.dirtyFields,l),!n.keepTouched&&T(t.touchedFields,l),!s.shouldUnregister&&!n.keepDefaultValue&&T(a,l);p.values.next({values:{...u}}),p.state.next({...t,...n.keepDirty?{isDirty:b()}:{}}),!n.keepIsValid&&m()},qe=({disabled:r,name:n,field:l,fields:y})=>{if(X(r)){const f=r?void 0:d(u,n,je(l?l._f:d(y,n)._f));V(u,n,f),te(n,f,!1,!1,!0)}},Ve=(r,n={})=>{let l=d(o,r);const y=X(n.disabled);return V(o,r,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:r}},name:r,mount:!0,...n}}),v.mount.add(r),l?qe({field:l,disabled:n.disabled,name:r}):ne(r,!0,n.value),{...y?{disabled:n.disabled}:{},...s.progressive?{required:!!n.required,min:le(n.min),max:le(n.max),minLength:le(n.minLength),maxLength:le(n.maxLength),pattern:le(n.pattern)}:{},name:r,onChange:ae,onBlur:ae,ref:f=>{if(f){Ve(r,n),l=d(o,r);const c=E(f.value)&&f.querySelectorAll&&f.querySelectorAll("input,select,textarea")[0]||f,h=rr(c),F=l._f.refs||[];if(h?F.find(S=>S===c):c===l._f.ref)return;V(o,r,{_f:{...l._f,...h?{refs:[...F.filter(Ee),c,...Array.isArray(d(a,r))?[{}]:[]],ref:{type:c.type,name:r}}:{ref:c}}}),ne(r,!1,void 0,c)}else l=d(o,r,{}),l._f&&(l._f.mount=!1),(s.shouldUnregister||n.shouldUnregister)&&!(Gt(v.array,r)&&g.action)&&v.unMount.add(r)}}},We=()=>s.shouldFocusError&&Oe(o,r=>r&&d(t.errors,r),v.mount),He=(r,n)=>async l=>{l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let y=G(u);if(p.state.next({isSubmitting:!0}),s.resolver){const{errors:f,values:c}=await I();t.errors=f,y=c}else await $(o);T(t.errors,"root"),N(t.errors)?(p.state.next({errors:{}}),await r(y,l)):(n&&await n({...t.errors},l),We(),setTimeout(We)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:N(t.errors),submitCount:t.submitCount+1,errors:t.errors})},At=(r,n={})=>{d(o,r)&&(E(n.defaultValue)?Q(r,d(a,r)):(Q(r,n.defaultValue),V(a,r,n.defaultValue)),n.keepTouched||T(t.touchedFields,r),n.keepDirty||(T(t.dirtyFields,r),t.isDirty=n.defaultValue?b(r,d(a,r)):b()),n.keepError||(T(t.errors,r),A.isValid&&m()),p.state.next({...t}))},$e=(r,n={})=>{const l=r?G(r):a,y=G(l),f=r&&!N(r)?y:a;if(n.keepDefaultValues||(a=l),!n.keepValues){if(n.keepDirtyValues||U)for(const c of v.mount)d(t.dirtyFields,c)?V(f,c,d(u,c)):Q(c,d(f,c));else{if(Re&&E(r))for(const c of v.mount){const h=d(o,c);if(h&&h._f){const F=Array.isArray(h._f.refs)?h._f.refs[0]:h._f.ref;if(he(F)){const S=F.closest("form");if(S){S.reset();break}}}}o={}}u=e.shouldUnregister?n.keepDefaultValues?G(a):{}:G(f),p.array.next({values:{...f}}),p.values.next({values:{...f}})}v={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!g.mount&&i(),g.mount=!A.isValid||!!n.keepIsValid,g.watch=!!e.shouldUnregister,p.state.next({submitCount:n.keepSubmitCount?t.submitCount:0,isDirty:n.keepDirty?t.isDirty:!!(n.keepDefaultValues&&!Z(r,a)),isSubmitted:n.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:n.keepDirtyValues?t.dirtyFields:n.keepDefaultValues&&r?ke(a,r):{},touchedFields:n.keepTouched?t.touchedFields:{},errors:n.keepErrors?t.errors:{},isSubmitSuccessful:n.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},ze=(r,n)=>$e(J(r)?r(u):r,n);return{control:{register:Ve,unregister:_e,getFieldState:Ue,handleSubmit:He,setError:Ie,_executeSchema:I,_getWatch:D,_getDirty:b,_updateValid:m,_removeUnmounted:_,_updateFieldArray:H,_updateDisabledField:qe,_getFieldArray:L,_reset:$e,_resetDefaultValues:()=>J(s.defaultValues)&&s.defaultValues().then(r=>{ze(r,s.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:r=>{t={...t,...r}},_subjects:p,_proxyFormState:A,get _fields(){return o},get _formValues(){return u},get _state(){return g},set _state(r){g=r},get _defaultValues(){return a},get _names(){return v},set _names(r){v=r},get _formState(){return t},set _formState(r){t=r},get _options(){return s},set _options(r){s={...s,...r}}},trigger:oe,register:Ve,handleSubmit:He,watch:Vt,setValue:Q,getValues:Be,reset:ze,resetField:At,clearErrors:_t,unregister:_e,setError:Ie,setFocus:(r,n={})=>{const l=d(o,r),y=l&&l._f;if(y){const f=y.refs?y.refs[0]:y.ref;f.focus&&(f.focus(),n.shouldSelect&&f.select())}},getFieldState:Ue}}function ur(e={}){const i=K.useRef(),s=K.useRef(),[t,o]=K.useState({isDirty:!1,isValidating:!1,isLoading:J(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:J(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...lr(e,()=>o(u=>({...u}))),formState:t});const a=i.current.control;return a._options=e,Qt({subject:a._subjects.state,next:u=>{Yt(u,a._proxyFormState,a._updateFormState)&&o({...a._formState})}}),K.useEffect(()=>{e.values&&!Z(e.values,s.current)?(a._reset(e.values,a._options.resetOptions),s.current=e.values):a._resetDefaultValues()},[e.values,a]),K.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),i.current.formState=Jt(t,a),i.current}var at=function(e,i,s){if(e&&"reportValidity"in e){var t=d(s,i);e.setCustomValidity(t&&t.message||""),e.reportValidity()}},pt=function(e,i){var s=function(o){var a=i.fields[o];a&&a.ref&&"reportValidity"in a.ref?at(a.ref,o,e):a.refs&&a.refs.forEach(function(u){return at(u,o,e)})};for(var t in i.fields)s(t)},cr=function(e,i){i.shouldUseNativeValidation&&pt(e,i);var s={};for(var t in e){var o=d(i.fields,t),a=Object.assign(e[t]||{},{ref:o&&o.ref});if(dr(i.names||Object.keys(e),t)){var u=Object.assign({},fr(d(s,t)));V(u,"root",a),V(s,t,u)}else V(s,t,a)}return s},fr=function(e){return Array.isArray(e)?e.filter(Boolean):[]},dr=function(e,i){return e.some(function(s){return s.startsWith(i+".")})},yr=function(e,i){for(var s={};e.length;){var t=e[0],o=t.code,a=t.message,u=t.path.join(".");if(!s[u])if("unionErrors"in t){var g=t.unionErrors[0].errors[0];s[u]={message:g.message,type:g.code}}else s[u]={message:a,type:o};if("unionErrors"in t&&t.unionErrors.forEach(function(B){return B.errors.forEach(function(A){return e.push(A)})}),i){var v=s[u].types,w=v&&v[t.code];s[u]=dt(u,i,s,o,w?[].concat(w,t.message):t.message)}e.shift()}return s},hr=function(e,i,s){return s===void 0&&(s={}),function(t,o,a){try{return Promise.resolve(function(u,g){try{var v=Promise.resolve(e[s.mode==="sync"?"parse":"parseAsync"](t,i)).then(function(w){return a.shouldUseNativeValidation&&pt({},a),{errors:{},values:s.raw?t:w}})}catch(w){return g(w)}return v&&v.then?v.then(void 0,g):v}(0,function(u){if(function(g){return g.errors!=null}(u))return{values:{},errors:cr(yr(u.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw u}))}catch(u){return Promise.reject(u)}}};const gr=we.object({name:we.string().min(3),description:we.string()}),bt=({project:e,action:i})=>{var A,p;const t=Ce().state!=="idle",{setFocus:o,register:a,handleSubmit:u,formState:{errors:g,dirtyFields:v}}=ur({resolver:hr(gr),defaultValues:{name:e.name||"",description:e.description||""}}),{palette:w}=Tt(),B=ot();return ue.useEffect(()=>o("name"),[o]),x.jsx(x.Fragment,{children:x.jsxs(Ot,{onSubmit:u(({name:U,description:C})=>B({...e,name:U,description:C,action:i},{method:"put",replace:!0,encType:"application/json"})),style:{opacity:t?.5:1},children:[x.jsx(Je,{...a("name"),error:!!g.name,helperText:(A=g.name)==null?void 0:A.message,placeholder:"Name",InputProps:{style:{color:w.primary.main,fontSize:"20px",fontWeight:"500"}},disabled:t,variant:"standard"}),x.jsx(Je,{...a("description"),error:!!g.description,helperText:(p=g.description)==null?void 0:p.message,placeholder:"Description",disabled:t,fullWidth:!0,variant:"standard"}),x.jsx(ee,{sx:{display:"flex",justifyContent:"right"},children:x.jsx(Ct,{variant:"outlined",disabled:t||Object.keys(v).length===0||Object.keys(g).length>0,style:{marginTop:"10px"},color:"primary",type:"submit",children:"Save"})})]})})},vr=({project:e})=>x.jsxs(x.Fragment,{children:[x.jsx(Lt,{component:Rt,to:`projects/${e.id}`,children:x.jsx(Te,{variant:"h6",children:e.name})}),x.jsx(Te,{style:{whiteSpace:"pre-line"},variant:"body1",children:e.description})]}),xr=({project:e})=>{const[i,s]=ue.useState(!1),o=Ce().state!=="idle",a=ot();return ue.useEffect(()=>s(!1),[e]),x.jsxs(St,{sx:{m:1,p:2,position:"relative","&:hover .action-buttons":{opacity:1}},children:[x.jsx(ee,{style:{position:"absolute",top:"5px",right:"5px"},children:x.jsxs(ee,{sx:{opacity:0,transition:u=>u.transitions.create("opacity",{duration:u.transitions.duration.enteringScreen})},className:"action-buttons",display:"flex",columnGap:1,children:[x.jsx(Et,{disabled:o||i,onClick:()=>{confirm("Are you sure you want to delete this project?")===!0&&a({projectId:e.id,action:"delete-project"},{method:"post",replace:!0,encType:"application/json"})},children:x.jsx(ut,{})}),x.jsx(lt,{disabled:o,color:"primary",value:"edit-mode",selected:i,size:"small",sx:{border:"none",borderRadius:"50%"},onChange:()=>s(u=>!u),children:x.jsx(Mt,{})})]})}),i?x.jsx(bt,{project:e,action:"edit-project"}):x.jsx(vr,{project:e})]})},mr=()=>{const[e,i]=Ye(!1),[s,t]=Ye(!1),o=Ce(),a=o.state!=="idle";return ue.useEffect(()=>{o.state==="submitting"&&t(!0)},[o.state==="submitting"]),ue.useEffect(()=>{s&&o.state==="idle"&&(i(!1),t(!1))},[s,o.state==="idle"]),x.jsxs(ee,{py:2,children:[x.jsx(ee,{display:"flex",justifyContent:"center",children:x.jsx(kt,{title:"Create new project",children:x.jsx(lt,{size:"small",selected:e,disabled:a,color:"primary",value:"check",sx:{border:"none",borderRadius:"50%"},onChange:()=>i(),children:x.jsx(jt,{})})})}),e&&x.jsx(ee,{p:3,display:"flex",flexDirection:"column",rowGap:1,children:x.jsx(bt,{project:{name:"",description:""},action:"create-new-project"})})]})},Dr=()=>{const e=Nt();return x.jsxs(x.Fragment,{children:[x.jsx(Te,{align:"center",variant:"h5",children:e.length>0?"Project List":"You don't have any projects yet"}),x.jsxs(ee,{m:"auto",mt:2,maxWidth:600,children:[x.jsx(mr,{}),x.jsx(Pt,{container:!0,direction:"column",justifyContent:"center",alignItems:"stretch",children:e.map(i=>x.jsx(K.Fragment,{children:x.jsx(xr,{project:i})},i.id))})]})]})};export{Dr as Component}; diff --git a/src/evidently/ui/assets/static/js/index-vToD_Ha9.js b/src/evidently/ui/assets/static/js/index-vToD_Ha9.js new file mode 100644 index 0000000000..34583a832a --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-vToD_Ha9.js @@ -0,0 +1 @@ +import{a6 as d,h as o,V as n,j as s,G as h}from"./vendor-CFh6IQM6.js";import{a as p,C as c,D as g}from"./DashboardContent-TZHSTgd_.js";import"./DashboardViewParams-C3ZVhGVT.js";import"./createSvgIcon-BHt_C7WZ.js";import"./Edit-DoUCfieB.js";const u={crumb:(r,{pathname:t,params:a})=>({to:t,linkText:String(a.snapshotId)}),hide:{snapshotList:!0}},b=({api:r})=>{const{projectId:t,snapshotId:a}=d();o(t),o(a);const i=n();return s.jsx(s.Fragment,{children:s.jsx(p.Provider,{value:c({getAdditionGraphData:e=>r.getDashboardGraph({project:{id:t},snapshot:{id:a},graph:{id:e}}),getAdditionWidgetData:e=>r.getDashboardGraph({project:{id:t},snapshot:{id:a},graph:{id:e}})}),children:s.jsx(h,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:s.jsx(g,{widgets:i.widgets})})})})};export{b as SnapshotTemplate,u as handle}; diff --git a/src/evidently/ui/assets/static/js/vendor-CFh6IQM6.js b/src/evidently/ui/assets/static/js/vendor-CFh6IQM6.js new file mode 100644 index 0000000000..22f86ed82a --- /dev/null +++ b/src/evidently/ui/assets/static/js/vendor-CFh6IQM6.js @@ -0,0 +1,319 @@ +function Wk(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tH(e){if(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 Qb={exports:{}},yd={},Xb={exports:{}},it={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var tc=Symbol.for("react.element"),Hk=Symbol.for("react.portal"),Yk=Symbol.for("react.fragment"),Kk=Symbol.for("react.strict_mode"),Gk=Symbol.for("react.profiler"),Zk=Symbol.for("react.provider"),qk=Symbol.for("react.context"),Qk=Symbol.for("react.forward_ref"),Xk=Symbol.for("react.suspense"),Jk=Symbol.for("react.memo"),eT=Symbol.for("react.lazy"),rv=Symbol.iterator;function tT(e){return e===null||typeof e!="object"?null:(e=rv&&e[rv]||e["@@iterator"],typeof e=="function"?e:null)}var Jb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ex=Object.assign,tx={};function ci(e,t,n){this.props=e,this.context=t,this.refs=tx,this.updater=n||Jb}ci.prototype.isReactComponent={};ci.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ci.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nx(){}nx.prototype=ci.prototype;function om(e,t,n){this.props=e,this.context=t,this.refs=tx,this.updater=n||Jb}var sm=om.prototype=new nx;sm.constructor=om;ex(sm,ci.prototype);sm.isPureReactComponent=!0;var ov=Array.isArray,rx=Object.prototype.hasOwnProperty,am={current:null},ox={key:!0,ref:!0,__self:!0,__source:!0};function sx(e,t,n){var r,o={},s=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(s=""+t.key),t)rx.call(t,r)&&!ox.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=n;else if(1>>1,ie=I[J];if(0>>1;Jo(Q,F))Ko(H,Q)?(I[J]=H,I[K]=F,J=K):(I[J]=Q,I[U]=F,J=U);else if(Ko(H,F))I[J]=H,I[K]=F,J=K;else break e}}return L}function o(I,L){var F=I.sortIndex-L.sortIndex;return F!==0?F:I.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,i=a.now();e.unstable_now=function(){return a.now()-i}}var l=[],c=[],u=1,d=null,f=3,b=!1,w=!1,p=!1,S=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(I){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=I)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function x(I){if(p=!1,C(I),!w)if(n(l)!==null)w=!0,O(T);else{var L=n(c);L!==null&&j(x,L.startTime-I)}}function T(I,L){w=!1,p&&(p=!1,h(M),M=-1),b=!0;var F=f;try{for(C(L),d=n(l);d!==null&&(!(d.expirationTime>L)||I&&!E());){var J=d.callback;if(typeof J=="function"){d.callback=null,f=d.priorityLevel;var ie=J(d.expirationTime<=L);L=e.unstable_now(),typeof ie=="function"?d.callback=ie:d===n(l)&&r(l),C(L)}else r(l);d=n(l)}if(d!==null)var ue=!0;else{var U=n(c);U!==null&&j(x,U.startTime-L),ue=!1}return ue}finally{d=null,f=F,b=!1}}var v=!1,k=null,M=-1,$=5,R=-1;function E(){return!(e.unstable_now()-R<$)}function A(){if(k!==null){var I=e.unstable_now();R=I;var L=!0;try{L=k(!0,I)}finally{L?N():(v=!1,k=null)}}else v=!1}var N;if(typeof g=="function")N=function(){g(A)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,D=_.port2;_.port1.onmessage=A,N=function(){D.postMessage(null)}}else N=function(){S(A,0)};function O(I){k=I,v||(v=!0,N())}function j(I,L){M=S(function(){I(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){w||b||(w=!0,O(T))},e.unstable_forceFrameRate=function(I){0>I||125J?(I.sortIndex=F,t(c,I),n(l)===null&&I===n(c)&&(p?(h(M),M=-1):p=!0,j(x,F-J))):(I.sortIndex=ie,t(l,I),w||b||(w=!0,O(T))),I},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(I){var L=f;return function(){var F=f;f=L;try{return I.apply(this,arguments)}finally{f=F}}}})(cx);lx.exports=cx;var fT=lx.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ux=y,qn=fT;function Te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ip=Object.prototype.hasOwnProperty,pT=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,iv={},lv={};function hT(e){return Ip.call(lv,e)?!0:Ip.call(iv,e)?!1:pT.test(e)?lv[e]=!0:(iv[e]=!0,!1)}function mT(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gT(e,t,n,r){if(t===null||typeof t>"u"||mT(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mn(e,t,n,r,o,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var fn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fn[e]=new Mn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fn[t]=new Mn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fn[e]=new Mn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fn[e]=new Mn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){fn[e]=new Mn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fn[e]=new Mn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fn[e]=new Mn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fn[e]=new Mn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fn[e]=new Mn(e,5,!1,e.toLowerCase(),null,!1,!1)});var lm=/[\-:]([a-z])/g;function cm(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(lm,cm);fn[t]=new Mn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(lm,cm);fn[t]=new Mn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(lm,cm);fn[t]=new Mn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fn[e]=new Mn(e,1,!1,e.toLowerCase(),null,!1,!1)});fn.xlinkHref=new Mn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fn[e]=new Mn(e,1,!1,e.toLowerCase(),null,!0,!0)});function um(e,t,n,r){var o=fn.hasOwnProperty(t)?fn[t]:null;(o!==null?o.type!==0:r||!(2i||o[a]!==s[i]){var l=` +`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=i);break}}}finally{zf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ji(e):""}function vT(e){switch(e.tag){case 5:return ji(e.type);case 16:return ji("Lazy");case 13:return ji("Suspense");case 19:return ji("SuspenseList");case 0:case 2:case 15:return e=Vf(e.type,!1),e;case 11:return e=Vf(e.type.render,!1),e;case 1:return e=Vf(e.type,!0),e;default:return""}}function Np(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fa:return"Fragment";case da:return"Portal";case Op:return"Profiler";case dm:return"StrictMode";case Lp:return"Suspense";case Ap:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case px:return(e.displayName||"Context")+".Consumer";case fx:return(e._context.displayName||"Context")+".Provider";case fm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pm:return t=e.displayName||null,t!==null?t:Np(e.type)||"Memo";case Fo:t=e._payload,e=e._init;try{return Np(e(t))}catch{}}return null}function yT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Np(t);case 8:return t===dm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ns(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bT(e){var t=mx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kc(e){e._valueTracker||(e._valueTracker=bT(e))}function gx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Su(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jp(e,t){var n=t.checked;return Bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ns(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function vx(e,t){t=t.checked,t!=null&&um(e,"checked",t,!1)}function Fp(e,t){vx(e,t);var n=ns(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bp(e,t.type,n):t.hasOwnProperty("defaultValue")&&Bp(e,t.type,ns(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Bp(e,t,n){(t!=="number"||Su(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fi=Array.isArray;function Ra(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Tc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xT=["Webkit","ms","Moz","O"];Object.keys(Gi).forEach(function(e){xT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gi[t]=Gi[e]})});function Cx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gi.hasOwnProperty(e)&&Gi[e]?(""+t).trim():t+"px"}function wx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Cx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var CT=Bt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Up(e,t){if(t){if(CT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function Wp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hp=null;function hm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yp=null,$a=null,Da=null;function hv(e){if(e=oc(e)){if(typeof Yp!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=Sd(t),Yp(e.stateNode,e.type,t))}}function Sx(e){$a?Da?Da.push(e):Da=[e]:$a=e}function kx(){if($a){var e=$a,t=Da;if(Da=$a=null,hv(e),t)for(e=0;e>>=0,e===0?32:31-(_T(e)/IT|0)|0}var Pc=64,Mc=4194304;function Bi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,a=n&268435455;if(a!==0){var i=a&~o;i!==0?r=Bi(i):(s&=a,s!==0&&(r=Bi(s)))}else a=n&~o,a!==0?r=Bi(a):s!==0&&(r=Bi(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function nc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$r(t),e[t]=n}function NT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=qi),Sv=" ",kv=!1;function Wx(e,t){switch(e){case"keyup":return dP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pa=!1;function pP(e,t){switch(e){case"compositionend":return Hx(t);case"keypress":return t.which!==32?null:(kv=!0,Sv);case"textInput":return e=t.data,e===Sv&&kv?null:e;default:return null}}function hP(e,t){if(pa)return e==="compositionend"||!wm&&Wx(e,t)?(e=Vx(),nu=bm=Ho=null,pa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Rv(n)}}function Zx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qx(){for(var e=window,t=Su();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Su(e.document)}return t}function Sm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function SP(e){var t=qx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zx(n.ownerDocument.documentElement,n)){if(r!==null&&Sm(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=$v(n,s);var a=$v(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ha=null,Xp=null,Xi=null,Jp=!1;function Dv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jp||ha==null||ha!==Su(r)||(r=ha,"selectionStart"in r&&Sm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xi&&xl(Xi,r)||(Xi=r,r=Du(Xp,"onSelect"),0va||(e.current=sh[va],sh[va]=null,va--)}function Mt(e,t){va++,sh[va]=e.current,e.current=t}var rs={},bn=cs(rs),En=cs(!1),_s=rs;function Wa(e,t){var n=e.type.contextTypes;if(!n)return rs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function _n(e){return e=e.childContextTypes,e!=null}function _u(){$t(En),$t(bn)}function Nv(e,t,n){if(bn.current!==rs)throw Error(Te(168));Mt(bn,t),Mt(En,n)}function s1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Te(108,yT(e)||"Unknown",o));return Bt({},n,r)}function Iu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rs,_s=bn.current,Mt(bn,e),Mt(En,En.current),!0}function jv(e,t,n){var r=e.stateNode;if(!r)throw Error(Te(169));n?(e=s1(e,t,_s),r.__reactInternalMemoizedMergedChildContext=e,$t(En),$t(bn),Mt(bn,e)):$t(En),Mt(En,n)}var uo=null,kd=!1,np=!1;function a1(e){uo===null?uo=[e]:uo.push(e)}function LP(e){kd=!0,a1(e)}function us(){if(!np&&uo!==null){np=!0;var e=0,t=bt;try{var n=uo;for(bt=1;e>=a,o-=a,po=1<<32-$r(t)+o|n<M?($=k,k=null):$=k.sibling;var R=f(h,k,C[M],x);if(R===null){k===null&&(k=$);break}e&&k&&R.alternate===null&&t(h,k),g=s(R,g,M),v===null?T=R:v.sibling=R,v=R,k=$}if(M===C.length)return n(h,k),It&&ys(h,M),T;if(k===null){for(;MM?($=k,k=null):$=k.sibling;var E=f(h,k,R.value,x);if(E===null){k===null&&(k=$);break}e&&k&&E.alternate===null&&t(h,k),g=s(E,g,M),v===null?T=E:v.sibling=E,v=E,k=$}if(R.done)return n(h,k),It&&ys(h,M),T;if(k===null){for(;!R.done;M++,R=C.next())R=d(h,R.value,x),R!==null&&(g=s(R,g,M),v===null?T=R:v.sibling=R,v=R);return It&&ys(h,M),T}for(k=r(h,k);!R.done;M++,R=C.next())R=b(k,h,M,R.value,x),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?M:R.key),g=s(R,g,M),v===null?T=R:v.sibling=R,v=R);return e&&k.forEach(function(A){return t(h,A)}),It&&ys(h,M),T}function S(h,g,C,x){if(typeof C=="object"&&C!==null&&C.type===fa&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Sc:e:{for(var T=C.key,v=g;v!==null;){if(v.key===T){if(T=C.type,T===fa){if(v.tag===7){n(h,v.sibling),g=o(v,C.props.children),g.return=h,h=g;break e}}else if(v.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Fo&&Hv(T)===v.type){n(h,v.sibling),g=o(v,C.props),g.ref=Si(h,v,C),g.return=h,h=g;break e}n(h,v);break}else t(h,v);v=v.sibling}C.type===fa?(g=Rs(C.props.children,h.mode,x,C.key),g.return=h,h=g):(x=uu(C.type,C.key,C.props,null,h.mode,x),x.ref=Si(h,g,C),x.return=h,h=x)}return a(h);case da:e:{for(v=C.key;g!==null;){if(g.key===v)if(g.tag===4&&g.stateNode.containerInfo===C.containerInfo&&g.stateNode.implementation===C.implementation){n(h,g.sibling),g=o(g,C.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=up(C,h.mode,x),g.return=h,h=g}return a(h);case Fo:return v=C._init,S(h,g,v(C._payload),x)}if(Fi(C))return w(h,g,C,x);if(yi(C))return p(h,g,C,x);Oc(h,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,g!==null&&g.tag===6?(n(h,g.sibling),g=o(g,C),g.return=h,h=g):(n(h,g),g=cp(C,h.mode,x),g.return=h,h=g),a(h)):n(h,g)}return S}var Ya=h1(!0),m1=h1(!1),sc={},Xr=cs(sc),kl=cs(sc),Tl=cs(sc);function ks(e){if(e===sc)throw Error(Te(174));return e}function _m(e,t){switch(Mt(Tl,t),Mt(kl,e),Mt(Xr,sc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vp(t,e)}$t(Xr),Mt(Xr,t)}function Ka(){$t(Xr),$t(kl),$t(Tl)}function g1(e){ks(Tl.current);var t=ks(Xr.current),n=Vp(t,e.type);t!==n&&(Mt(kl,e),Mt(Xr,n))}function Im(e){kl.current===e&&($t(Xr),$t(kl))}var Nt=cs(0);function Fu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rp=[];function Om(){for(var e=0;en?n:4,e(!0);var r=op.transition;op.transition={};try{e(!1),t()}finally{bt=n,op.transition=r}}function _1(){return mr().memoizedState}function FP(e,t,n){var r=Jo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},I1(e))O1(t,n);else if(n=u1(e,t,n,r),n!==null){var o=kn();Dr(n,e,r,o),L1(n,t,r)}}function BP(e,t,n){var r=Jo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(I1(e))O1(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,i=s(a,n);if(o.hasEagerState=!0,o.eagerState=i,Ir(i,a)){var l=t.interleaved;l===null?(o.next=o,Dm(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=u1(e,t,o,r),n!==null&&(o=kn(),Dr(n,e,r,o),L1(n,t,r))}}function I1(e){var t=e.alternate;return e===jt||t!==null&&t===jt}function O1(e,t){Ji=Bu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function L1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gm(e,n)}}var zu={readContext:hr,useCallback:pn,useContext:pn,useEffect:pn,useImperativeHandle:pn,useInsertionEffect:pn,useLayoutEffect:pn,useMemo:pn,useReducer:pn,useRef:pn,useState:pn,useDebugValue:pn,useDeferredValue:pn,useTransition:pn,useMutableSource:pn,useSyncExternalStore:pn,useId:pn,unstable_isNewReconciler:!1},zP={readContext:hr,useCallback:function(e,t){return Wr().memoizedState=[e,t===void 0?null:t],e},useContext:hr,useEffect:Kv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,au(4194308,4,M1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return au(4194308,4,e,t)},useInsertionEffect:function(e,t){return au(4,2,e,t)},useMemo:function(e,t){var n=Wr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=FP.bind(null,jt,e),[r.memoizedState,e]},useRef:function(e){var t=Wr();return e={current:e},t.memoizedState=e},useState:Yv,useDebugValue:Fm,useDeferredValue:function(e){return Wr().memoizedState=e},useTransition:function(){var e=Yv(!1),t=e[0];return e=jP.bind(null,e[1]),Wr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=jt,o=Wr();if(It){if(n===void 0)throw Error(Te(407));n=n()}else{if(n=t(),an===null)throw Error(Te(349));Os&30||b1(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Kv(C1.bind(null,r,s,e),[e]),r.flags|=2048,Rl(9,x1.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Wr(),t=an.identifierPrefix;if(It){var n=ho,r=po;n=(r&~(1<<32-$r(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Gr]=t,e[Sl]=r,W1(e,t,!1,!1),t.stateNode=e;e:{switch(a=Wp(n,r),n){case"dialog":Rt("cancel",e),Rt("close",e),o=r;break;case"iframe":case"object":case"embed":Rt("load",e),o=r;break;case"video":case"audio":for(o=0;oZa&&(t.flags|=128,r=!0,ki(s,!1),t.lanes=4194304)}else{if(!r)if(e=Fu(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ki(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!It)return hn(t),null}else 2*Gt()-s.renderingStartTime>Za&&n!==1073741824&&(t.flags|=128,r=!0,ki(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(n=s.last,n!==null?n.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Gt(),t.sibling=null,n=Nt.current,Mt(Nt,r?n&1|2:n&1),t):(hn(t),null);case 22:case 23:return Hm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Un&1073741824&&(hn(t),t.subtreeFlags&6&&(t.flags|=8192)):hn(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function ZP(e,t){switch(Tm(t),t.tag){case 1:return _n(t.type)&&_u(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(),$t(En),$t(bn),Om(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Im(t),null;case 13:if($t(Nt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(Nt),null;case 4:return Ka(),null;case 10:return $m(t.type._context),null;case 22:case 23:return Hm(),null;case 24:return null;default:return null}}var Ac=!1,vn=!1,qP=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Ca(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Wt(e,t,r)}else n.current=null}function vh(e,t,n){try{n()}catch(r){Wt(e,t,r)}}var ny=!1;function QP(e,t){if(eh=Ru,e=qx(),Sm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,i=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var b;d!==n||o!==0&&d.nodeType!==3||(i=a+o),d!==s||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(b=d.firstChild)!==null;)f=d,d=b;for(;;){if(d===e)break t;if(f===n&&++c===o&&(i=a),f===s&&++u===r&&(l=a),(b=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=b}n=i===-1||l===-1?null:{start:i,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(th={focusedElem:e,selectionRange:n},Ru=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){t=Ve;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var p=w.memoizedProps,S=w.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?p:Sr(t.type,p),S);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch(x){Wt(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}return w=ny,ny=!1,w}function el(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&vh(t,n,s)}o=o.next}while(o!==r)}}function Md(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function yh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function K1(e){var t=e.alternate;t!==null&&(e.alternate=null,K1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Gr],delete t[Sl],delete t[oh],delete t[IP],delete t[OP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function G1(e){return e.tag===5||e.tag===3||e.tag===4}function ry(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||G1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Eu));else if(r!==4&&(e=e.child,e!==null))for(bh(e,t,n),e=e.sibling;e!==null;)bh(e,t,n),e=e.sibling}function xh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xh(e,t,n),e=e.sibling;e!==null;)xh(e,t,n),e=e.sibling}var cn=null,kr=!1;function Oo(e,t,n){for(n=n.child;n!==null;)Z1(e,t,n),n=n.sibling}function Z1(e,t,n){if(Qr&&typeof Qr.onCommitFiberUnmount=="function")try{Qr.onCommitFiberUnmount(bd,n)}catch{}switch(n.tag){case 5:vn||Ca(n,t);case 6:var r=cn,o=kr;cn=null,Oo(e,t,n),cn=r,kr=o,cn!==null&&(kr?(e=cn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):cn.removeChild(n.stateNode));break;case 18:cn!==null&&(kr?(e=cn,n=n.stateNode,e.nodeType===8?tp(e.parentNode,n):e.nodeType===1&&tp(e,n),yl(e)):tp(cn,n.stateNode));break;case 4:r=cn,o=kr,cn=n.stateNode.containerInfo,kr=!0,Oo(e,t,n),cn=r,kr=o;break;case 0:case 11:case 14:case 15:if(!vn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&vh(n,t,a),o=o.next}while(o!==r)}Oo(e,t,n);break;case 1:if(!vn&&(Ca(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Wt(n,t,i)}Oo(e,t,n);break;case 21:Oo(e,t,n);break;case 22:n.mode&1?(vn=(r=vn)||n.memoizedState!==null,Oo(e,t,n),vn=r):Oo(e,t,n);break;default:Oo(e,t,n)}}function oy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qP),t.forEach(function(r){var o=aM.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function wr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~s}if(r=o,r=Gt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*JP(r/1960))-r,10e?16:e,Yo===null)var r=!1;else{if(e=Yo,Yo=null,Wu=0,ft&6)throw Error(Te(331));var o=ft;for(ft|=4,Ve=e.current;Ve!==null;){var s=Ve,a=s.child;if(Ve.flags&16){var i=s.deletions;if(i!==null){for(var l=0;lGt()-Um?Ms(e,0):Vm|=n),In(e,t)}function rC(e,t){t===0&&(e.mode&1?(t=Mc,Mc<<=1,!(Mc&130023424)&&(Mc=4194304)):t=1);var n=kn();e=Co(e,t),e!==null&&(nc(e,t,n),In(e,n))}function sM(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rC(e,n)}function aM(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Te(314))}r!==null&&r.delete(t),rC(e,n)}var oC;oC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||En.current)$n=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $n=!1,KP(e,t,n);$n=!!(e.flags&131072)}else $n=!1,It&&t.flags&1048576&&i1(t,Lu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iu(e,t),e=t.pendingProps;var o=Wa(t,bn.current);_a(t,n),o=Am(null,t,r,e,o,n);var s=Nm();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_n(r)?(s=!0,Iu(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Em(t),o.updater=Td,t.stateNode=o,o._reactInternals=t,uh(t,r,e,n),t=ph(null,t,r,!0,s,n)):(t.tag=0,It&&s&&km(t),Sn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=lM(r),e=Sr(r,e),o){case 0:t=fh(null,t,r,e,n);break e;case 1:t=Jv(null,t,r,e,n);break e;case 11:t=Qv(null,t,r,e,n);break e;case 14:t=Xv(null,t,r,Sr(r.type,e),n);break e}throw Error(Te(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Sr(r,o),fh(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Sr(r,o),Jv(e,t,r,o,n);case 3:e:{if(z1(t),e===null)throw Error(Te(387));r=t.pendingProps,s=t.memoizedState,o=s.element,d1(e,t),ju(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Ga(Error(Te(423)),t),t=ey(e,t,r,n,o);break e}else if(r!==o){o=Ga(Error(Te(424)),t),t=ey(e,t,r,n,o);break e}else for(Kn=qo(t.stateNode.containerInfo.firstChild),Gn=t,It=!0,Pr=null,n=m1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ha(),r===o){t=wo(e,t,n);break e}Sn(e,t,r,n)}t=t.child}return t;case 5:return g1(t),e===null&&ih(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,a=o.children,nh(r,o)?a=null:s!==null&&nh(r,s)&&(t.flags|=32),B1(e,t),Sn(e,t,a,n),t.child;case 6:return e===null&&ih(t),null;case 13:return V1(e,t,n);case 4:return _m(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ya(t,null,r,n):Sn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Sr(r,o),Qv(e,t,r,o,n);case 7:return Sn(e,t,t.pendingProps,n),t.child;case 8:return Sn(e,t,t.pendingProps.children,n),t.child;case 12:return Sn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,Mt(Au,r._currentValue),r._currentValue=a,s!==null)if(Ir(s.value,a)){if(s.children===o.children&&!En.current){t=wo(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var i=s.dependencies;if(i!==null){a=s.child;for(var l=i.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=vo(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),lh(s.return,n,t),i.lanes|=n;break}l=l.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(Te(341));a.lanes|=n,i=a.alternate,i!==null&&(i.lanes|=n),lh(a,n,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Sn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,_a(t,n),o=hr(o),r=r(o),t.flags|=1,Sn(e,t,r,n),t.child;case 14:return r=t.type,o=Sr(r,t.pendingProps),o=Sr(r.type,o),Xv(e,t,r,o,n);case 15:return j1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Sr(r,o),iu(e,t),t.tag=1,_n(r)?(e=!0,Iu(t)):e=!1,_a(t,n),p1(t,r,o),uh(t,r,o,n),ph(null,t,r,!0,e,n);case 19:return U1(e,t,n);case 22:return F1(e,t,n)}throw Error(Te(156,t.tag))};function sC(e,t){return Ex(e,t)}function iM(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dr(e,t,n,r){return new iM(e,t,n,r)}function Km(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lM(e){if(typeof e=="function")return Km(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fm)return 11;if(e===pm)return 14}return 2}function es(e,t){var n=e.alternate;return n===null?(n=dr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function uu(e,t,n,r,o,s){var a=2;if(r=e,typeof e=="function")Km(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case fa:return Rs(n.children,o,s,t);case dm:a=8,o|=8;break;case Op:return e=dr(12,n,t,o|2),e.elementType=Op,e.lanes=s,e;case Lp:return e=dr(13,n,t,o),e.elementType=Lp,e.lanes=s,e;case Ap:return e=dr(19,n,t,o),e.elementType=Ap,e.lanes=s,e;case hx:return $d(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fx:a=10;break e;case px:a=9;break e;case fm:a=11;break e;case pm:a=14;break e;case Fo:a=16,r=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=dr(a,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Rs(e,t,n,r){return e=dr(7,e,r,t),e.lanes=n,e}function $d(e,t,n,r){return e=dr(22,e,r,t),e.elementType=hx,e.lanes=n,e.stateNode={isHidden:!1},e}function cp(e,t,n){return e=dr(6,e,null,t),e.lanes=n,e}function up(e,t,n){return t=dr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cM(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wf(0),this.expirationTimes=Wf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gm(e,t,n,r,o,s,a,i,l){return e=new cM(e,t,n,i,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=dr(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Em(s),e}function uM(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cC)}catch(e){console.error(e)}}cC(),ix.exports=er;var Od=ix.exports;const Fc=Eo(Od);var fy=Od;av.createRoot=fy.createRoot,av.hydrateRoot=fy.hydrateRoot;/** + * @remix-run/router v1.9.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function qa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gM(){return Math.random().toString(36).substr(2,8)}function hy(e,t){return{usr:e.state,key:e.key,idx:t}}function Dl(e,t,n,r){return n===void 0&&(n=null),_t({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ds(t):t,{state:n,key:t&&t.key||r||gM()})}function os(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ds(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function vM(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,a=o.history,i=Jt.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(_t({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){i=Jt.Pop;let S=u(),h=S==null?null:S-c;c=S,l&&l({action:i,location:p.location,delta:h})}function f(S,h){i=Jt.Push;let g=Dl(p.location,S,h);c=u()+1;let C=hy(g,c),x=p.createHref(g);try{a.pushState(C,"",x)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(x)}s&&l&&l({action:i,location:p.location,delta:1})}function b(S,h){i=Jt.Replace;let g=Dl(p.location,S,h);c=u();let C=hy(g,c),x=p.createHref(g);a.replaceState(C,"",x),s&&l&&l({action:i,location:p.location,delta:0})}function w(S){let h=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof S=="string"?S:os(S);return nt(h,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,h)}let p={get action(){return i},get location(){return e(o,a)},listen(S){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(py,d),l=S,()=>{o.removeEventListener(py,d),l=null}},createHref(S){return t(o,S)},createURL:w,encodeLocation(S){let h=w(S);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:f,replace:b,go(S){return a.go(S)}};return p}var Kt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Kt||(Kt={}));const yM=new Set(["lazy","caseSensitive","path","id","index","children"]);function bM(e){return e.index===!0}function Th(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,s)=>{let a=[...n,s],i=typeof o.id=="string"?o.id:a.join("-");if(nt(o.index!==!0||!o.children,"Cannot specify children on an index route"),nt(!r[i],'Found a route id collision on id "'+i+`". Route id's must be globally unique within Data Router usages`),bM(o)){let l=_t({},o,t(o),{id:i});return r[i]=l,l}else{let l=_t({},o,t(o),{id:i,children:void 0});return r[i]=l,o.children&&(l.children=Th(o.children,t,a,r)),l}})}function Sa(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ds(t):t,o=So(r.pathname||"/",n);if(o==null)return null;let s=dC(e);xM(s);let a=null;for(let i=0;a==null&&i{let l={relativePath:i===void 0?s.path||"":i,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};l.relativePath.startsWith("/")&&(nt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Jr([r,l.relativePath]),u=n.concat(l);s.children&&s.children.length>0&&(nt(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),dC(s.children,t,u,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:MM(c,s.index),routesMeta:u})};return e.forEach((s,a)=>{var i;if(s.path===""||!((i=s.path)!=null&&i.includes("?")))o(s,a);else for(let l of fC(s.path))o(s,a,l)}),t}function fC(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let a=fC(r.join("/")),i=[];return i.push(...a.map(l=>l===""?s:[s,l].join("/"))),o&&i.push(...a),i.map(l=>e.startsWith("/")&&l===""?"/":l)}function xM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:RM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const CM=/^:\w+$/,wM=3,SM=2,kM=1,TM=10,PM=-2,my=e=>e==="*";function MM(e,t){let n=e.split("/"),r=n.length;return n.some(my)&&(r+=PM),t&&(r+=SM),n.filter(o=>!my(o)).reduce((o,s)=>o+(CM.test(s)?wM:s===""?kM:TM),r)}function RM(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function $M(e,t){let{routesMeta:n}=e,r={},o="/",s=[];for(let a=0;a{if(u==="*"){let f=i[d]||"";a=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}return c[u]=IM(i[d]||"",u),c},{}),pathname:s,pathnameBase:a,pattern:e}}function EM(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),qa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,i)=>(r.push(i),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function _M(e){try{return decodeURI(e)}catch(t){return qa(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function IM(e,t){try{return decodeURIComponent(e)}catch(n){return qa(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function So(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function OM(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ds(e):e;return{pathname:n?n.startsWith("/")?n:LM(n,t):t,search:NM(r),hash:jM(o)}}function LM(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function dp(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Ld(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Xm(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ds(e):(o=_t({},e),nt(!o.pathname||!o.pathname.includes("?"),dp("?","pathname","search",o)),nt(!o.pathname||!o.pathname.includes("#"),dp("#","pathname","hash",o)),nt(!o.search||!o.search.includes("#"),dp("#","search","hash",o)));let s=e===""||o.pathname==="",a=s?"/":o.pathname,i;if(r||a==null)i=n;else{let d=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}i=d>=0?t[d]:"/"}let l=OM(o,i),c=a&&a!=="/"&&a.endsWith("/"),u=(s||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Jr=e=>e.join("/").replace(/\/\/+/g,"/"),AM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),NM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,nH=function(t,n){n===void 0&&(n={});let r=typeof n=="number"?{status:n}:n,o=new Headers(r.headers);return o.has("Content-Type")||o.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(t),_t({},r,{headers:o}))};class Jm{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function pC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const hC=["post","put","patch","delete"],FM=new Set(hC),BM=["get",...hC],zM=new Set(BM),VM=new Set([301,302,303,307,308]),UM=new Set([307,308]),fp={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},WM={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Pi={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},mC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HM=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function YM(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;nt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let W=e.detectErrorBoundary;o=B=>({hasErrorBoundary:W(B)})}else o=HM;let s={},a=Th(e.routes,o,void 0,s),i,l=e.basename||"/",c=_t({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),u=null,d=new Set,f=null,b=null,w=null,p=e.hydrationData!=null,S=Sa(a,e.history.location,l),h=null;if(S==null){let W=ar(404,{pathname:e.history.location.pathname}),{matches:B,route:Y}=Sy(a);S=B,h={[Y.id]:W}}let g=!S.some(W=>W.route.lazy)&&(!S.some(W=>W.route.loader)||e.hydrationData!=null),C,x={historyAction:e.history.action,location:e.history.location,matches:S,initialized:g,navigation:fp,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||h,fetchers:new Map,blockers:new Map},T=Jt.Pop,v=!1,k,M=!1,$=!1,R=[],E=[],A=new Map,N=0,_=-1,D=new Map,O=new Set,j=new Map,I=new Map,L=new Map,F=!1;function J(){return u=e.history.listen(W=>{let{action:B,location:Y,delta:fe}=W;if(F){F=!1;return}qa(L.size===0||fe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Pe=Ee({currentLocation:x.location,nextLocation:Y,historyAction:B});if(Pe&&fe!=null){F=!0,e.history.go(fe*-1),Ue(Pe,{state:"blocked",location:Y,proceed(){Ue(Pe,{state:"proceeding",proceed:void 0,reset:void 0,location:Y}),e.history.go(fe)},reset(){let _e=new Map(x.blockers);_e.set(Pe,Pi),U({blockers:_e})}});return}return oe(B,Y)}),x.initialized||oe(Jt.Pop,x.location),C}function ie(){u&&u(),d.clear(),k&&k.abort(),x.fetchers.forEach((W,B)=>$e(B)),x.blockers.forEach((W,B)=>He(B))}function ue(W){return d.add(W),()=>d.delete(W)}function U(W){x=_t({},x,W),d.forEach(B=>B(x))}function Q(W,B){var Y,fe;let Pe=x.actionData!=null&&x.navigation.formMethod!=null&&Tr(x.navigation.formMethod)&&x.navigation.state==="loading"&&((Y=W.state)==null?void 0:Y._isRedirect)!==!0,_e;B.actionData?Object.keys(B.actionData).length>0?_e=B.actionData:_e=null:Pe?_e=x.actionData:_e=null;let Be=B.loaderData?wy(x.loaderData,B.loaderData,B.matches||[],B.errors):x.loaderData,je=x.blockers;je.size>0&&(je=new Map(je),je.forEach((lt,Ye)=>je.set(Ye,Pi)));let Ne=v===!0||x.navigation.formMethod!=null&&Tr(x.navigation.formMethod)&&((fe=W.state)==null?void 0:fe._isRedirect)!==!0;i&&(a=i,i=void 0),M||T===Jt.Pop||(T===Jt.Push?e.history.push(W,W.state):T===Jt.Replace&&e.history.replace(W,W.state)),U(_t({},B,{actionData:_e,loaderData:Be,historyAction:T,location:W,initialized:!0,navigation:fp,revalidation:"idle",restoreScrollPosition:wt(W,B.matches||x.matches),preventScrollReset:Ne,blockers:je})),T=Jt.Pop,v=!1,M=!1,$=!1,R=[],E=[]}async function K(W,B){if(typeof W=="number"){e.history.go(W);return}let Y=Ph(x.location,x.matches,l,c.v7_prependBasename,W,B==null?void 0:B.fromRouteId,B==null?void 0:B.relative),{path:fe,submission:Pe,error:_e}=gy(c.v7_normalizeFormMethod,!1,Y,B),Be=x.location,je=Dl(x.location,fe,B&&B.state);je=_t({},je,e.history.encodeLocation(je));let Ne=B&&B.replace!=null?B.replace:void 0,lt=Jt.Push;Ne===!0?lt=Jt.Replace:Ne===!1||Pe!=null&&Tr(Pe.formMethod)&&Pe.formAction===x.location.pathname+x.location.search&&(lt=Jt.Replace);let Ye=B&&"preventScrollReset"in B?B.preventScrollReset===!0:void 0,Ge=Ee({currentLocation:Be,nextLocation:je,historyAction:lt});if(Ge){Ue(Ge,{state:"blocked",location:je,proceed(){Ue(Ge,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),K(W,B)},reset(){let et=new Map(x.blockers);et.set(Ge,Pi),U({blockers:et})}});return}return await oe(lt,je,{submission:Pe,pendingError:_e,preventScrollReset:Ye,replace:B&&B.replace})}function H(){if(Re(),U({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){oe(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}oe(T||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation})}}async function oe(W,B,Y){k&&k.abort(),k=null,T=W,M=(Y&&Y.startUninterruptedRevalidation)===!0,yt(x.location,x.matches),v=(Y&&Y.preventScrollReset)===!0;let fe=i||a,Pe=Y&&Y.overrideNavigation,_e=Sa(fe,B,l);if(!_e){let et=ar(404,{pathname:B.pathname}),{matches:st,route:Fn}=Sy(fe);we(),Q(B,{matches:st,loaderData:{},errors:{[Fn.id]:et}});return}if(x.initialized&&!$&&QM(x.location,B)&&!(Y&&Y.submission&&Tr(Y.submission.formMethod))){Q(B,{matches:_e});return}k=new AbortController;let Be=Ri(e.history,B,k.signal,Y&&Y.submission),je,Ne;if(Y&&Y.pendingError)Ne={[ka(_e).route.id]:Y.pendingError};else if(Y&&Y.submission&&Tr(Y.submission.formMethod)){let et=await me(Be,B,Y.submission,_e,{replace:Y.replace});if(et.shortCircuited)return;je=et.pendingActionData,Ne=et.pendingActionError,Pe=pp(B,Y.submission),Be=new Request(Be.url,{signal:Be.signal})}let{shortCircuited:lt,loaderData:Ye,errors:Ge}=await ye(Be,B,_e,Pe,Y&&Y.submission,Y&&Y.fetcherSubmission,Y&&Y.replace,je,Ne);lt||(k=null,Q(B,_t({matches:_e},je?{actionData:je}:{},{loaderData:Ye,errors:Ge})))}async function me(W,B,Y,fe,Pe){Pe===void 0&&(Pe={}),Re();let _e=tR(B,Y);U({navigation:_e});let Be,je=Rh(fe,B);if(!je.route.action&&!je.route.lazy)Be={type:Kt.error,error:ar(405,{method:W.method,pathname:B.pathname,routeId:je.route.id})};else if(Be=await Mi("action",W,je,fe,s,o,l),W.signal.aborted)return{shortCircuited:!0};if(Oa(Be)){let Ne;return Pe&&Pe.replace!=null?Ne=Pe.replace:Ne=Be.location===x.location.pathname+x.location.search,await se(x,Be,{submission:Y,replace:Ne}),{shortCircuited:!0}}if(rl(Be)){let Ne=ka(fe,je.route.id);return(Pe&&Pe.replace)!==!0&&(T=Jt.Push),{pendingActionData:{},pendingActionError:{[Ne.route.id]:Be.error}}}if(Ts(Be))throw ar(400,{type:"defer-action"});return{pendingActionData:{[je.route.id]:Be.data}}}async function ye(W,B,Y,fe,Pe,_e,Be,je,Ne){let lt=fe||pp(B,Pe),Ye=Pe||_e||Py(lt),Ge=i||a,[et,st]=vy(e.history,x,Y,Ye,B,$,R,E,j,O,Ge,l,je,Ne);if(we(Xe=>!(Y&&Y.some(zt=>zt.route.id===Xe))||et&&et.some(zt=>zt.route.id===Xe)),_=++N,et.length===0&&st.length===0){let Xe=te();return Q(B,_t({matches:Y,loaderData:{},errors:Ne||null},je?{actionData:je}:{},Xe?{fetchers:new Map(x.fetchers)}:{})),{shortCircuited:!0}}if(!M){st.forEach(zt=>{let le=x.fetchers.get(zt.key),re=$i(void 0,le?le.data:void 0);x.fetchers.set(zt.key,re)});let Xe=je||x.actionData;U(_t({navigation:lt},Xe?Object.keys(Xe).length===0?{actionData:null}:{actionData:Xe}:{},st.length>0?{fetchers:new Map(x.fetchers)}:{}))}st.forEach(Xe=>{A.has(Xe.key)&&G(Xe.key),Xe.controller&&A.set(Xe.key,Xe.controller)});let Fn=()=>st.forEach(Xe=>G(Xe.key));k&&k.signal.addEventListener("abort",Fn);let{results:Cn,loaderResults:Dt,fetcherResults:Pt}=await Oe(x.matches,Y,et,st,W);if(W.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",Fn),st.forEach(Xe=>A.delete(Xe.key));let Ot=ky(Cn);if(Ot){if(Ot.idx>=et.length){let Xe=st[Ot.idx-et.length].key;O.add(Xe)}return await se(x,Ot.result,{replace:Be}),{shortCircuited:!0}}let{loaderData:nn,errors:Bn}=Cy(x,Y,et,Dt,Ne,st,Pt,I);I.forEach((Xe,zt)=>{Xe.subscribe(le=>{(le||Xe.done)&&I.delete(zt)})});let rn=te(),zn=De(_),zr=rn||zn||st.length>0;return _t({loaderData:nn,errors:Bn},zr?{fetchers:new Map(x.fetchers)}:{})}function ee(W){return x.fetchers.get(W)||WM}function pe(W,B,Y,fe){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");A.has(W)&&G(W);let Pe=i||a,_e=Ph(x.location,x.matches,l,c.v7_prependBasename,Y,B,fe==null?void 0:fe.relative),Be=Sa(Pe,_e,l);if(!Be){ge(W,B,ar(404,{pathname:_e}));return}let{path:je,submission:Ne,error:lt}=gy(c.v7_normalizeFormMethod,!0,_e,fe);if(lt){ge(W,B,lt);return}let Ye=Rh(Be,je);if(v=(fe&&fe.preventScrollReset)===!0,Ne&&Tr(Ne.formMethod)){X(W,B,je,Ye,Be,Ne);return}j.set(W,{routeId:B,path:je}),he(W,B,je,Ye,Be,Ne)}async function X(W,B,Y,fe,Pe,_e){if(Re(),j.delete(W),!fe.route.action&&!fe.route.lazy){let de=ar(405,{method:_e.formMethod,pathname:Y,routeId:B});ge(W,B,de);return}let Be=x.fetchers.get(W),je=nR(_e,Be);x.fetchers.set(W,je),U({fetchers:new Map(x.fetchers)});let Ne=new AbortController,lt=Ri(e.history,Y,Ne.signal,_e);A.set(W,Ne);let Ye=N,Ge=await Mi("action",lt,fe,Pe,s,o,l);if(lt.signal.aborted){A.get(W)===Ne&&A.delete(W);return}if(Oa(Ge))if(A.delete(W),_>Ye){let de=sa(void 0);x.fetchers.set(W,de),U({fetchers:new Map(x.fetchers)});return}else{O.add(W);let de=$i(_e);return x.fetchers.set(W,de),U({fetchers:new Map(x.fetchers)}),se(x,Ge,{fetcherSubmission:_e})}if(rl(Ge)){ge(W,B,Ge.error);return}if(Ts(Ge))throw ar(400,{type:"defer-action"});let et=x.navigation.location||x.location,st=Ri(e.history,et,Ne.signal),Fn=i||a,Cn=x.navigation.state!=="idle"?Sa(Fn,x.navigation.location,l):x.matches;nt(Cn,"Didn't find any matches after fetcher action");let Dt=++N;D.set(W,Dt);let Pt=$i(_e,Ge.data);x.fetchers.set(W,Pt);let[Ot,nn]=vy(e.history,x,Cn,_e,et,$,R,E,j,O,Fn,l,{[fe.route.id]:Ge.data},void 0);nn.filter(de=>de.key!==W).forEach(de=>{let Le=de.key,tt=x.fetchers.get(Le),Lt=$i(void 0,tt?tt.data:void 0);x.fetchers.set(Le,Lt),A.has(Le)&&G(Le),de.controller&&A.set(Le,de.controller)}),U({fetchers:new Map(x.fetchers)});let Bn=()=>nn.forEach(de=>G(de.key));Ne.signal.addEventListener("abort",Bn);let{results:rn,loaderResults:zn,fetcherResults:zr}=await Oe(x.matches,Cn,Ot,nn,st);if(Ne.signal.aborted)return;Ne.signal.removeEventListener("abort",Bn),D.delete(W),A.delete(W),nn.forEach(de=>A.delete(de.key));let Xe=ky(rn);if(Xe){if(Xe.idx>=Ot.length){let de=nn[Xe.idx-Ot.length].key;O.add(de)}return se(x,Xe.result)}let{loaderData:zt,errors:le}=Cy(x,x.matches,Ot,zn,void 0,nn,zr,I);if(x.fetchers.has(W)){let de=sa(Ge.data);x.fetchers.set(W,de)}let re=De(Dt);x.navigation.state==="loading"&&Dt>_?(nt(T,"Expected pending action"),k&&k.abort(),Q(x.navigation.location,{matches:Cn,loaderData:zt,errors:le,fetchers:new Map(x.fetchers)})):(U(_t({errors:le,loaderData:wy(x.loaderData,zt,Cn,le)},re||nn.length>0?{fetchers:new Map(x.fetchers)}:{})),$=!1)}async function he(W,B,Y,fe,Pe,_e){let Be=x.fetchers.get(W),je=$i(_e,Be?Be.data:void 0);x.fetchers.set(W,je),U({fetchers:new Map(x.fetchers)});let Ne=new AbortController,lt=Ri(e.history,Y,Ne.signal);A.set(W,Ne);let Ye=N,Ge=await Mi("loader",lt,fe,Pe,s,o,l);if(Ts(Ge)&&(Ge=await yC(Ge,lt.signal,!0)||Ge),A.get(W)===Ne&&A.delete(W),lt.signal.aborted)return;if(Oa(Ge))if(_>Ye){let st=sa(void 0);x.fetchers.set(W,st),U({fetchers:new Map(x.fetchers)});return}else{O.add(W),await se(x,Ge);return}if(rl(Ge)){let st=ka(x.matches,B);x.fetchers.delete(W),U({fetchers:new Map(x.fetchers),errors:{[st.route.id]:Ge.error}});return}nt(!Ts(Ge),"Unhandled fetcher deferred data");let et=sa(Ge.data);x.fetchers.set(W,et),U({fetchers:new Map(x.fetchers)})}async function se(W,B,Y){let{submission:fe,fetcherSubmission:Pe,replace:_e}=Y===void 0?{}:Y;B.revalidate&&($=!0);let Be=Dl(W.location,B.location,{_isRedirect:!0});if(nt(Be,"Expected a location on the redirect navigation"),n){let et=!1;if(B.reloadDocument)et=!0;else if(mC.test(B.location)){const st=e.history.createURL(B.location);et=st.origin!==t.location.origin||So(st.pathname,l)==null}if(et){_e?t.location.replace(B.location):t.location.assign(B.location);return}}k=null;let je=_e===!0?Jt.Replace:Jt.Push,{formMethod:Ne,formAction:lt,formEncType:Ye}=W.navigation;!fe&&!Pe&&Ne&<&&Ye&&(fe=Py(W.navigation));let Ge=fe||Pe;if(UM.has(B.status)&&Ge&&Tr(Ge.formMethod))await oe(je,Be,{submission:_t({},Ge,{formAction:B.location}),preventScrollReset:v});else{let et=pp(Be,fe);await oe(je,Be,{overrideNavigation:et,fetcherSubmission:Pe,preventScrollReset:v})}}async function Oe(W,B,Y,fe,Pe){let _e=await Promise.all([...Y.map(Ne=>Mi("loader",Pe,Ne,B,s,o,l)),...fe.map(Ne=>Ne.matches&&Ne.match&&Ne.controller?Mi("loader",Ri(e.history,Ne.path,Ne.controller.signal),Ne.match,Ne.matches,s,o,l):{type:Kt.error,error:ar(404,{pathname:Ne.path})})]),Be=_e.slice(0,Y.length),je=_e.slice(Y.length);return await Promise.all([Ty(W,Y,Be,Be.map(()=>Pe.signal),!1,x.loaderData),Ty(W,fe.map(Ne=>Ne.match),je,fe.map(Ne=>Ne.controller?Ne.controller.signal:null),!0)]),{results:_e,loaderResults:Be,fetcherResults:je}}function Re(){$=!0,R.push(...we()),j.forEach((W,B)=>{A.has(B)&&(E.push(B),G(B))})}function ge(W,B,Y){let fe=ka(x.matches,B);$e(W),U({errors:{[fe.route.id]:Y},fetchers:new Map(x.fetchers)})}function $e(W){let B=x.fetchers.get(W);A.has(W)&&!(B&&B.state==="loading"&&D.has(W))&&G(W),j.delete(W),D.delete(W),O.delete(W),x.fetchers.delete(W)}function G(W){let B=A.get(W);nt(B,"Expected fetch controller: "+W),B.abort(),A.delete(W)}function Z(W){for(let B of W){let Y=ee(B),fe=sa(Y.data);x.fetchers.set(B,fe)}}function te(){let W=[],B=!1;for(let Y of O){let fe=x.fetchers.get(Y);nt(fe,"Expected fetcher: "+Y),fe.state==="loading"&&(O.delete(Y),W.push(Y),B=!0)}return Z(W),B}function De(W){let B=[];for(let[Y,fe]of D)if(fe0}function Ae(W,B){let Y=x.blockers.get(W)||Pi;return L.get(W)!==B&&L.set(W,B),Y}function He(W){x.blockers.delete(W),L.delete(W)}function Ue(W,B){let Y=x.blockers.get(W)||Pi;nt(Y.state==="unblocked"&&B.state==="blocked"||Y.state==="blocked"&&B.state==="blocked"||Y.state==="blocked"&&B.state==="proceeding"||Y.state==="blocked"&&B.state==="unblocked"||Y.state==="proceeding"&&B.state==="unblocked","Invalid blocker state transition: "+Y.state+" -> "+B.state);let fe=new Map(x.blockers);fe.set(W,B),U({blockers:fe})}function Ee(W){let{currentLocation:B,nextLocation:Y,historyAction:fe}=W;if(L.size===0)return;L.size>1&&qa(!1,"A router only supports one blocker at a time");let Pe=Array.from(L.entries()),[_e,Be]=Pe[Pe.length-1],je=x.blockers.get(_e);if(!(je&&je.state==="proceeding")&&Be({currentLocation:B,nextLocation:Y,historyAction:fe}))return _e}function we(W){let B=[];return I.forEach((Y,fe)=>{(!W||W(fe))&&(Y.cancel(),B.push(fe),I.delete(fe))}),B}function ke(W,B,Y){if(f=W,w=B,b=Y||null,!p&&x.navigation===fp){p=!0;let fe=wt(x.location,x.matches);fe!=null&&U({restoreScrollPosition:fe})}return()=>{f=null,w=null,b=null}}function qe(W,B){return b&&b(W,B.map(fe=>uC(fe,x.loaderData)))||W.key}function yt(W,B){if(f&&w){let Y=qe(W,B);f[Y]=w()}}function wt(W,B){if(f){let Y=qe(W,B),fe=f[Y];if(typeof fe=="number")return fe}return null}function Se(W){s={},i=Th(W,o,void 0,s)}return C={get basename(){return l},get state(){return x},get routes(){return a},initialize:J,subscribe:ue,enableScrollRestoration:ke,navigate:K,fetch:pe,revalidate:H,createHref:W=>e.history.createHref(W),encodeLocation:W=>e.history.encodeLocation(W),getFetcher:ee,deleteFetcher:$e,dispose:ie,getBlocker:Ae,deleteBlocker:He,_internalFetchControllers:A,_internalActiveDeferreds:I,_internalSetRoutes:Se},C}function KM(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ph(e,t,n,r,o,s,a){let i,l;if(s!=null&&a!=="path"){i=[];for(let u of t)if(i.push(u),u.route.id===s){l=u;break}}else i=t,l=t[t.length-1];let c=Xm(o||".",Ld(i).map(u=>u.pathnameBase),So(e.pathname,n)||e.pathname,a==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!eg(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Jr([n,c.pathname])),os(c)}function gy(e,t,n,r){if(!r||!KM(r))return{path:n};if(r.formMethod&&!eR(r.formMethod))return{path:n,error:ar(405,{method:r.formMethod})};let o=()=>({path:n,error:ar(400,{type:"invalid-body"})}),s=r.formMethod||"get",a=e?s.toUpperCase():s.toLowerCase(),i=vC(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Tr(a))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((b,w)=>{let[p,S]=w;return""+b+p+"="+S+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:i,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!Tr(a))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:i,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}nt(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=Mh(r.formData),c=r.formData;else if(r.body instanceof FormData)l=Mh(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=xy(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=xy(l)}catch{return o()}let u={formMethod:a,formAction:i,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Tr(u.formMethod))return{path:n,submission:u};let d=ds(n);return t&&d.search&&eg(d.search)&&l.append("index",""),d.search="?"+l,{path:os(d),submission:u}}function GM(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function vy(e,t,n,r,o,s,a,i,l,c,u,d,f,b){let w=b?Object.values(b)[0]:f?Object.values(f)[0]:void 0,p=e.createURL(t.location),S=e.createURL(o),h=b?Object.keys(b)[0]:void 0,C=GM(n,h).filter((T,v)=>{if(T.route.lazy)return!0;if(T.route.loader==null)return!1;if(ZM(t.loaderData,t.matches[v],T)||a.some($=>$===T.route.id))return!0;let k=t.matches[v],M=T;return yy(T,_t({currentUrl:p,currentParams:k.params,nextUrl:S,nextParams:M.params},r,{actionResult:w,defaultShouldRevalidate:s||p.pathname+p.search===S.pathname+S.search||p.search!==S.search||gC(k,M)}))}),x=[];return l.forEach((T,v)=>{if(!n.some(E=>E.route.id===T.routeId))return;let k=Sa(u,T.path,d);if(!k){x.push({key:v,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(v),$=Rh(k,T.path),R=!1;c.has(v)?R=!1:i.includes(v)?R=!0:M&&M.state!=="idle"&&M.data===void 0?R=s:R=yy($,_t({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:n[n.length-1].params},r,{actionResult:w,defaultShouldRevalidate:s})),R&&x.push({key:v,routeId:T.routeId,path:T.path,matches:k,match:$,controller:new AbortController})}),[C,x]}function ZM(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function gC(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function yy(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function by(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];nt(o,"No route found in manifest");let s={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";qa(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!yM.has(a)&&(s[a]=r[a])}Object.assign(o,s),Object.assign(o,_t({},t(o),{lazy:void 0}))}async function Mi(e,t,n,r,o,s,a,i){i===void 0&&(i={});let l,c,u,d=w=>{let p,S=new Promise((h,g)=>p=g);return u=()=>p(),t.signal.addEventListener("abort",u),Promise.race([w({request:t,params:n.params,context:i.requestContext}),S])};try{let w=n.route[e];if(n.route.lazy)if(w){let p,S=await Promise.all([d(w).catch(h=>{p=h}),by(n.route,s,o)]);if(p)throw p;c=S[0]}else if(await by(n.route,s,o),w=n.route[e],w)c=await d(w);else if(e==="action"){let p=new URL(t.url),S=p.pathname+p.search;throw ar(405,{method:t.method,pathname:S,routeId:n.route.id})}else return{type:Kt.data,data:void 0};else if(w)c=await d(w);else{let p=new URL(t.url),S=p.pathname+p.search;throw ar(404,{pathname:S})}nt(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(w){l=Kt.error,c=w}finally{u&&t.signal.removeEventListener("abort",u)}if(JM(c)){let w=c.status;if(VM.has(w)){let h=c.headers.get("Location");if(nt(h,"Redirects returned/thrown from loaders/actions must have a Location header"),!mC.test(h))h=Ph(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,h);else if(!i.isStaticRequest){let g=new URL(t.url),C=h.startsWith("//")?new URL(g.protocol+h):new URL(h),x=So(C.pathname,a)!=null;C.origin===g.origin&&x&&(h=C.pathname+C.search+C.hash)}if(i.isStaticRequest)throw c.headers.set("Location",h),c;return{type:Kt.redirect,status:w,location:h,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(i.isRouteRequest)throw{type:l===Kt.error?Kt.error:Kt.data,response:c};let p,S=c.headers.get("Content-Type");return S&&/\bapplication\/json\b/.test(S)?p=await c.json():p=await c.text(),l===Kt.error?{type:l,error:new Jm(w,c.statusText,p),headers:c.headers}:{type:Kt.data,data:p,statusCode:c.status,headers:c.headers}}if(l===Kt.error)return{type:l,error:c};if(XM(c)){var f,b;return{type:Kt.deferred,deferredData:c,statusCode:(f=c.init)==null?void 0:f.status,headers:((b=c.init)==null?void 0:b.headers)&&new Headers(c.init.headers)}}return{type:Kt.data,data:c}}function Ri(e,t,n,r){let o=e.createURL(vC(t)).toString(),s={signal:n};if(r&&Tr(r.formMethod)){let{formMethod:a,formEncType:i}=r;s.method=a.toUpperCase(),i==="application/json"?(s.headers=new Headers({"Content-Type":i}),s.body=JSON.stringify(r.json)):i==="text/plain"?s.body=r.text:i==="application/x-www-form-urlencoded"&&r.formData?s.body=Mh(r.formData):s.body=r.formData}return new Request(o,s)}function Mh(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function xy(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function qM(e,t,n,r,o){let s={},a=null,i,l=!1,c={};return n.forEach((u,d)=>{let f=t[d].route.id;if(nt(!Oa(u),"Cannot handle redirect results in processLoaderData"),rl(u)){let b=ka(e,f),w=u.error;r&&(w=Object.values(r)[0],r=void 0),a=a||{},a[b.route.id]==null&&(a[b.route.id]=w),s[f]=void 0,l||(l=!0,i=pC(u.error)?u.error.status:500),u.headers&&(c[f]=u.headers)}else Ts(u)?(o.set(f,u.deferredData),s[f]=u.deferredData.data):s[f]=u.data,u.statusCode!=null&&u.statusCode!==200&&!l&&(i=u.statusCode),u.headers&&(c[f]=u.headers)}),r&&(a=r,s[Object.keys(r)[0]]=void 0),{loaderData:s,errors:a,statusCode:i||200,loaderHeaders:c}}function Cy(e,t,n,r,o,s,a,i){let{loaderData:l,errors:c}=qM(t,n,r,o,i);for(let u=0;ur.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Sy(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ar(e,t){let{pathname:n,routeId:r,method:o,type:s}=t===void 0?{}:t,a="Unknown Server Error",i="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?i="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":s==="defer-action"?i="defer() is not supported in actions":s==="invalid-body"&&(i="Unable to encode submission body")):e===403?(a="Forbidden",i='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",i='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?i="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(i='Invalid request method "'+o.toUpperCase()+'"')),new Jm(e||500,a,new Error(i),!0)}function ky(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Oa(n))return{result:n,idx:t}}}function vC(e){let t=typeof e=="string"?ds(e):e;return os(_t({},t,{hash:""}))}function QM(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ts(e){return e.type===Kt.deferred}function rl(e){return e.type===Kt.error}function Oa(e){return(e&&e.type)===Kt.redirect}function XM(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function JM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function eR(e){return zM.has(e.toLowerCase())}function Tr(e){return FM.has(e.toLowerCase())}async function Ty(e,t,n,r,o,s){for(let a=0;ad.route.id===l.route.id),u=c!=null&&!gC(c,l)&&(s&&s[l.route.id])!==void 0;if(Ts(i)&&(o||u)){let d=r[a];nt(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await yC(i,d,o).then(f=>{f&&(n[a]=f||n[a])})}}}async function yC(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Kt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Kt.error,error:o}}return{type:Kt.data,data:e.deferredData.data}}}function eg(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Rh(e,t){let n=typeof t=="string"?ds(t).search:t.search;if(e[e.length-1].route.index&&eg(n||""))return e[e.length-1];let r=Ld(e);return r[r.length-1]}function Py(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:s,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function pp(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function tR(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function $i(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function nR(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function sa(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}/** + * React Router v6.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),a=y.useRef(!1);return xC(()=>{a.current=!0}),y.useCallback(function(l,c){if(c===void 0&&(c={}),!a.current)return;if(typeof l=="number"){n.go(l);return}let u=Xm(l,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Jr([t,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[t,n,s,o,e])}const sR=y.createContext(null);function aR(e){let t=y.useContext(Ar).outlet;return t&&y.createElement(sR.Provider,{value:e},t)}function rH(){let{matches:e}=y.useContext(Ar),t=e[e.length-1];return t?t.params:{}}function rg(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=y.useContext(Ar),{pathname:o}=Ks(),s=JSON.stringify(Ld(r).map(a=>a.pathnameBase));return y.useMemo(()=>Xm(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function iR(e,t,n){ic()||nt(!1);let{navigator:r}=y.useContext(Io),{matches:o}=y.useContext(Ar),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let i=s?s.pathnameBase:"/";s&&s.route;let l=Ks(),c;c=l;let u=c.pathname||"/",d=i==="/"?u:u.slice(i.length)||"/",f=Sa(e,{pathname:d});return fR(f&&f.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:Jr([i,r.encodeLocation?r.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?i:Jr([i,r.encodeLocation?r.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n)}function lR(){let e=vR(),t=pC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:o},n):null,null)}const cR=y.createElement(lR,null);class uR extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?y.createElement(Ar.Provider,{value:this.props.routeContext},y.createElement(bC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dR(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(ac);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Ar.Provider,{value:t},r)}function fR(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let s=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let i=s.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));i>=0||nt(!1),s=s.slice(0,Math.min(s.length,i+1))}return s.reduceRight((i,l,c)=>{let u=l.route.id?a==null?void 0:a[l.route.id]:null,d=null;n&&(d=l.route.errorElement||cR);let f=t.concat(s.slice(0,c+1)),b=()=>{let w;return u?w=d:l.route.Component?w=y.createElement(l.route.Component,null):l.route.element?w=l.route.element:w=i,y.createElement(dR,{match:l,routeContext:{outlet:i,matches:f,isDataRoute:n!=null},children:w})};return n&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?y.createElement(uR,{location:n.location,revalidation:n.revalidation,component:d,error:u,children:b(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):b()},null)}var og=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(og||{}),Or=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Or||{});function wC(e){let t=y.useContext(ac);return t||nt(!1),t}function fi(e){let t=y.useContext(tg);return t||nt(!1),t}function pR(e){let t=y.useContext(Ar);return t||nt(!1),t}function Ad(e){let t=pR(),n=t.matches[t.matches.length-1];return n.route.id||nt(!1),n.route.id}function hR(){return Ad(Or.UseRouteId)}function mR(){return fi(Or.UseNavigation).navigation}function oH(){let e=wC(og.UseRevalidator),t=fi(Or.UseRevalidator);return y.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function gR(){let{matches:e,loaderData:t}=fi(Or.UseMatches);return y.useMemo(()=>e.map(n=>uC(n,t)),[e,t])}function sH(){let e=fi(Or.UseLoaderData),t=Ad(Or.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function aH(){let e=fi(Or.UseActionData);return y.useContext(Ar)||nt(!1),Object.values((e==null?void 0:e.actionData)||{})[0]}function vR(){var e;let t=y.useContext(bC),n=fi(Or.UseRouteError),r=Ad(Or.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function yR(){let{router:e}=wC(og.UseNavigateStable),t=Ad(Or.UseNavigateStable),n=y.useRef(!1);return xC(()=>{n.current=!0}),y.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,$h({fromRouteId:t},s)))},[e,t])}const bR="startTransition",My=wu[bR];function iH(e){let{fallbackElement:t,router:n,future:r}=e,[o,s]=y.useState(n.state),{v7_startTransition:a}=r||{},i=y.useCallback(d=>{a&&My?My(()=>s(d)):s(d)},[s,a]);y.useLayoutEffect(()=>n.subscribe(i),[n,i]);let l=y.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:d=>n.navigate(d),push:(d,f,b)=>n.navigate(d,{state:f,preventScrollReset:b==null?void 0:b.preventScrollReset}),replace:(d,f,b)=>n.navigate(d,{replace:!0,state:f,preventScrollReset:b==null?void 0:b.preventScrollReset})}),[n]),c=n.basename||"/",u=y.useMemo(()=>({router:n,navigator:l,static:!1,basename:c}),[n,l,c]);return y.createElement(y.Fragment,null,y.createElement(ac.Provider,{value:u},y.createElement(tg.Provider,{value:o},y.createElement(CR,{basename:c,location:o.location,navigationType:o.historyAction,navigator:l},o.initialized?y.createElement(xR,{routes:n.routes,state:o}):t))),null)}function xR(e){let{routes:t,state:n}=e;return iR(t,void 0,n)}function lH(e){return aR(e.context)}function CR(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Jt.Pop,navigator:s,static:a=!1}=e;ic()&&nt(!1);let i=t.replace(/^\/*/,"/"),l=y.useMemo(()=>({basename:i,navigator:s,static:a}),[i,s,a]);typeof r=="string"&&(r=ds(r));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:b="default"}=r,w=y.useMemo(()=>{let p=So(c,i);return p==null?null:{location:{pathname:p,search:u,hash:d,state:f,key:b},navigationType:o}},[i,c,u,d,f,b,o]);return w==null?null:y.createElement(Io.Provider,{value:l},y.createElement(ng.Provider,{children:n,value:w}))}new Promise(()=>{});function wR(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:y.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}const du="get",hp="application/x-www-form-urlencoded";function Nd(e){return e!=null&&typeof e.tagName=="string"}function SR(e){return Nd(e)&&e.tagName.toLowerCase()==="button"}function kR(e){return Nd(e)&&e.tagName.toLowerCase()==="form"}function TR(e){return Nd(e)&&e.tagName.toLowerCase()==="input"}function PR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function MR(e,t){return e.button===0&&(!t||t==="_self")&&!PR(e)}function Dh(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function RR(e,t){let n=Dh(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}let Bc=null;function $R(){if(Bc===null)try{new FormData(document.createElement("form"),0),Bc=!1}catch{Bc=!0}return Bc}const DR=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function mp(e){return e!=null&&!DR.has(e)?null:e}function ER(e,t){let n,r,o,s,a;if(kR(e)){let i=e.getAttribute("action");r=i?So(i,t):null,n=e.getAttribute("method")||du,o=mp(e.getAttribute("enctype"))||hp,s=new FormData(e)}else if(SR(e)||TR(e)&&(e.type==="submit"||e.type==="image")){let i=e.form;if(i==null)throw new Error('Cannot submit a