diff --git a/.github/workflows/Deploy-shinyapps.io.yaml b/.github/workflows/Deploy-shinyapps.io.yaml index 47f5fb9c..2d7e694e 100644 --- a/.github/workflows/Deploy-shinyapps.io.yaml +++ b/.github/workflows/Deploy-shinyapps.io.yaml @@ -19,10 +19,10 @@ jobs: - name: Check out the repository uses: actions/checkout@v3 - - name: Set up Node 19.5.0 + - name: Set up Node 19.9.0 uses: actions/setup-node@v3 with: - node-version: '19.5.0' + node-version: '19.9.0' architecture: 'x64' cache: 'yarn' cache-dependency-path: 'Client/yarn.lock' @@ -37,7 +37,7 @@ jobs: - uses: r-lib/actions/setup-r@v2 with: - r-version: '4.2.2' + r-version: '4.2.3' use-public-rspm: true - uses: r-lib/actions/setup-r-dependencies@v2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 94ad3813..df12eba9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ ## 3.0.0 +###### _April 15 2023_ + +- Update dependencies + + +## 3.0.0 + +###### _April 3 2023_ + +- Dynamically compute the number of cuts for RD with trend + + +## 3.0.0 + ###### _March 26 2023_ - Set constraints and step in delta4Fac input diff --git a/Client/package.json b/Client/package.json index 4d40bc23..c1632f91 100644 --- a/Client/package.json +++ b/Client/package.json @@ -27,16 +27,16 @@ "dependencies": { "@emotion/react": "^11.10.6", "@emotion/styled": "^11.10.6", - "@mui/icons-material": "^5.11.11", - "@mui/lab": "5.0.0-alpha.124", - "@mui/material": "^5.11.14", - "@mui/system": "^5.11.14", + "@mui/icons-material": "^5.11.16", + "@mui/lab": "5.0.0-alpha.126", + "@mui/material": "^5.12.0", + "@mui/system": "^5.12.0", "echarts": "^5.4.2", "echarts-for-react": "^3.0.2", "file-saver": "^2.0.5", "jquery": "^3.6.4", "lodash": "^4.17.21", - "mobx": "^6.8.0", + "mobx": "^6.9.0", "mobx-react": "^7.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -44,9 +44,9 @@ "tslib": "^2.5.0" }, "devDependencies": { - "@babel/core": "^7.21.3", + "@babel/core": "^7.21.4", "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/preset-env": "^7.20.2", + "@babel/preset-env": "^7.21.4", "@babel/preset-react": "^7.18.6", "@types/webpack-merge": "^5.0.0", "babel-loader": "^9.1.2", @@ -56,10 +56,10 @@ "filemanager-webpack-plugin": "^8.0.0", "html-webpack-plugin": "^5.5.0", "terser-webpack-plugin": "^5.3.7", - "webpack": "^5.76.3", + "webpack": "^5.79.0", "webpack-bundle-analyzer": "^4.8.0", "webpack-cli": "^5.0.1", - "webpack-dev-server": "^4.13.1", + "webpack-dev-server": "^4.13.2", "webpack-merge": "^5.8.0", "webpack-plugin-modern-npm": "^0.1.0" }, diff --git a/Client/yarn.lock b/Client/yarn.lock index 50785b21..60d71146 100644 --- a/Client/yarn.lock +++ b/Client/yarn.lock @@ -33,6 +33,15 @@ __metadata: languageName: node linkType: hard +"@babel/code-frame@npm:^7.21.4": + version: 7.21.4 + resolution: "@babel/code-frame@npm:7.21.4" + dependencies: + "@babel/highlight": ^7.18.6 + checksum: e5390e6ec1ac58dcef01d4f18eaf1fd2f1325528661ff6d4a5de8979588b9f5a8e852a54a91b923846f7a5c681b217f0a45c2524eb9560553160cd963b7d592c + languageName: node + linkType: hard + "@babel/compat-data@npm:^7.17.7, @babel/compat-data@npm:^7.18.8": version: 7.18.8 resolution: "@babel/compat-data@npm:7.18.8" @@ -40,13 +49,6 @@ __metadata: languageName: node linkType: hard -"@babel/compat-data@npm:^7.20.0, @babel/compat-data@npm:^7.20.1": - version: 7.20.1 - resolution: "@babel/compat-data@npm:7.20.1" - checksum: 989b9b7a6fe43c547bb8329241bd0ba6983488b83d29cc59de35536272ee6bb4cc7487ba6c8a4bceebb3a57f8c5fea1434f80bbbe75202bc79bc1110f955ff25 - languageName: node - linkType: hard - "@babel/compat-data@npm:^7.20.5": version: 7.20.10 resolution: "@babel/compat-data@npm:7.20.10" @@ -54,26 +56,33 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.21.3": - version: 7.21.3 - resolution: "@babel/core@npm:7.21.3" +"@babel/compat-data@npm:^7.21.4": + version: 7.21.4 + resolution: "@babel/compat-data@npm:7.21.4" + checksum: 5f8b98c66f2ffba9f3c3a82c0cf354c52a0ec5ad4797b370dc32bdcd6e136ac4febe5e93d76ce76e175632e2dbf6ce9f46319aa689fcfafa41b6e49834fa4b66 + languageName: node + linkType: hard + +"@babel/core@npm:^7.21.4": + version: 7.21.4 + resolution: "@babel/core@npm:7.21.4" dependencies: "@ampproject/remapping": ^2.2.0 - "@babel/code-frame": ^7.18.6 - "@babel/generator": ^7.21.3 - "@babel/helper-compilation-targets": ^7.20.7 + "@babel/code-frame": ^7.21.4 + "@babel/generator": ^7.21.4 + "@babel/helper-compilation-targets": ^7.21.4 "@babel/helper-module-transforms": ^7.21.2 "@babel/helpers": ^7.21.0 - "@babel/parser": ^7.21.3 + "@babel/parser": ^7.21.4 "@babel/template": ^7.20.7 - "@babel/traverse": ^7.21.3 - "@babel/types": ^7.21.3 + "@babel/traverse": ^7.21.4 + "@babel/types": ^7.21.4 convert-source-map: ^1.7.0 debug: ^4.1.0 gensync: ^1.0.0-beta.2 json5: ^2.2.2 semver: ^6.3.0 - checksum: bef25fbea96f461bf79bd1d0e4f0cdce679fd5ada464a89c1141ddba59ae1adfdbb23e04440c266ed525712d33d5ffd818cd8b0c25b1dee0e648d5559516153a + checksum: a3beebb2cc79908a02f27a07dc381bcb34e8ecc58fa99f568ad0934c49e12111fc977ee9c5b51eb7ea2da66f63155d37c4dd96b6472eaeecfc35843ccb56bf3d languageName: node linkType: hard @@ -99,28 +108,6 @@ __metadata: languageName: node linkType: hard -"@babel/generator@npm:^7.20.0": - version: 7.20.0 - resolution: "@babel/generator@npm:7.20.0" - dependencies: - "@babel/types": ^7.20.0 - "@jridgewell/gen-mapping": ^0.3.2 - jsesc: ^2.5.1 - checksum: df2fef0ac305cf031013e311d4582b15b5c297fd538bec71e6cae3b689189ac4be6055482487b06da1be2f007b8985d5162a84e14e43a20435b8c89551910509 - languageName: node - linkType: hard - -"@babel/generator@npm:^7.20.1": - version: 7.20.3 - resolution: "@babel/generator@npm:7.20.3" - dependencies: - "@babel/types": ^7.20.2 - "@jridgewell/gen-mapping": ^0.3.2 - jsesc: ^2.5.1 - checksum: 4b72ccb6c278f90ec1fda7607f0a5cd16af6ba3110747be12fc7f8f97646e467a5c452030973e3915af83a350846f6236b206261cd0d084c9c584288bcaa2bed - languageName: node - linkType: hard - "@babel/generator@npm:^7.21.1": version: 7.21.1 resolution: "@babel/generator@npm:7.21.1" @@ -133,15 +120,15 @@ __metadata: languageName: node linkType: hard -"@babel/generator@npm:^7.21.3": - version: 7.21.3 - resolution: "@babel/generator@npm:7.21.3" +"@babel/generator@npm:^7.21.4": + version: 7.21.4 + resolution: "@babel/generator@npm:7.21.4" dependencies: - "@babel/types": ^7.21.3 + "@babel/types": ^7.21.4 "@jridgewell/gen-mapping": ^0.3.2 "@jridgewell/trace-mapping": ^0.3.17 jsesc: ^2.5.1 - checksum: be6bb5a32a0273260b91210d4137b7b5da148a2db8dd324654275cb0af865ae59de5e1536e93ac83423b2586415059e1c24cf94293026755cf995757238da749 + checksum: 9ffbb526a53bb8469b5402f7b5feac93809b09b2a9f82fcbfcdc5916268a65dae746a1f2479e03ba4fb0776facd7c892191f63baa61ab69b2cfdb24f7b92424d languageName: node linkType: hard @@ -187,32 +174,33 @@ __metadata: languageName: node linkType: hard -"@babel/helper-compilation-targets@npm:^7.20.0": - version: 7.20.0 - resolution: "@babel/helper-compilation-targets@npm:7.20.0" +"@babel/helper-compilation-targets@npm:^7.20.7": + version: 7.20.7 + resolution: "@babel/helper-compilation-targets@npm:7.20.7" dependencies: - "@babel/compat-data": ^7.20.0 + "@babel/compat-data": ^7.20.5 "@babel/helper-validator-option": ^7.18.6 browserslist: ^4.21.3 + lru-cache: ^5.1.1 semver: ^6.3.0 peerDependencies: "@babel/core": ^7.0.0 - checksum: bc183f2109648849c8fde0b3c5cf08adf2f7ad6dc617b546fd20f34c8ef574ee5ee293c8d1bd0ed0221212e8f5907cdc2c42097870f1dcc769a654107d82c95b + checksum: 8c32c873ba86e2e1805b30e0807abd07188acbe00ebb97576f0b09061cc65007f1312b589eccb4349c5a8c7f8bb9f2ab199d41da7030bf103d9f347dcd3a3cf4 languageName: node linkType: hard -"@babel/helper-compilation-targets@npm:^7.20.7": - version: 7.20.7 - resolution: "@babel/helper-compilation-targets@npm:7.20.7" +"@babel/helper-compilation-targets@npm:^7.21.4": + version: 7.21.4 + resolution: "@babel/helper-compilation-targets@npm:7.21.4" dependencies: - "@babel/compat-data": ^7.20.5 - "@babel/helper-validator-option": ^7.18.6 + "@babel/compat-data": ^7.21.4 + "@babel/helper-validator-option": ^7.21.0 browserslist: ^4.21.3 lru-cache: ^5.1.1 semver: ^6.3.0 peerDependencies: "@babel/core": ^7.0.0 - checksum: 8c32c873ba86e2e1805b30e0807abd07188acbe00ebb97576f0b09061cc65007f1312b589eccb4349c5a8c7f8bb9f2ab199d41da7030bf103d9f347dcd3a3cf4 + checksum: bf9c7d3e7e6adff9222c05d898724cd4ee91d7eb9d52222c7ad2a22955620c2872cc2d9bdf0e047df8efdb79f4e3af2a06b53f509286145feccc4d10ddc318be languageName: node linkType: hard @@ -233,6 +221,24 @@ __metadata: languageName: node linkType: hard +"@babel/helper-create-class-features-plugin@npm:^7.21.0": + version: 7.21.4 + resolution: "@babel/helper-create-class-features-plugin@npm:7.21.4" + dependencies: + "@babel/helper-annotate-as-pure": ^7.18.6 + "@babel/helper-environment-visitor": ^7.18.9 + "@babel/helper-function-name": ^7.21.0 + "@babel/helper-member-expression-to-functions": ^7.21.0 + "@babel/helper-optimise-call-expression": ^7.18.6 + "@babel/helper-replace-supers": ^7.20.7 + "@babel/helper-skip-transparent-expression-wrappers": ^7.20.0 + "@babel/helper-split-export-declaration": ^7.18.6 + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 9123ca80a4894aafdb1f0bc08e44f6be7b12ed1fbbe99c501b484f9b1a17ff296b6c90c18c222047d53c276f07f17b4de857946fa9d0aa207023b03e4cc716f2 + languageName: node + linkType: hard + "@babel/helper-create-regexp-features-plugin@npm:^7.14.5": version: 7.14.5 resolution: "@babel/helper-create-regexp-features-plugin@npm:7.14.5" @@ -257,15 +263,15 @@ __metadata: languageName: node linkType: hard -"@babel/helper-create-regexp-features-plugin@npm:^7.19.0": - version: 7.19.0 - resolution: "@babel/helper-create-regexp-features-plugin@npm:7.19.0" +"@babel/helper-create-regexp-features-plugin@npm:^7.20.5": + version: 7.21.4 + resolution: "@babel/helper-create-regexp-features-plugin@npm:7.21.4" dependencies: "@babel/helper-annotate-as-pure": ^7.18.6 - regexpu-core: ^5.1.0 + regexpu-core: ^5.3.1 peerDependencies: "@babel/core": ^7.0.0 - checksum: 811cc90afe9fc25a74ed37fc0c1361a4a91b0b940235dd3958e3f03b366d40a903b40fc93b51bcb93be774aba573219f8f215664bea1d1301f58797ca6854f3f + checksum: 78334865db2cd1d64d103bd0d96dee2818b0387d10aa973c084e245e829df32652bca530803e397b7158af4c02b9b21d5a9601c29bdfbb8d54a3d4ad894e067b languageName: node linkType: hard @@ -328,16 +334,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-function-name@npm:^7.19.0": - version: 7.19.0 - resolution: "@babel/helper-function-name@npm:7.19.0" - dependencies: - "@babel/template": ^7.18.10 - "@babel/types": ^7.19.0 - checksum: eac1f5db428ba546270c2b8d750c24eb528b8fcfe50c81de2e0bdebf0e20f24bec688d4331533b782e4a907fad435244621ca2193cfcf80a86731299840e0f6e - languageName: node - linkType: hard - "@babel/helper-function-name@npm:^7.21.0": version: 7.21.0 resolution: "@babel/helper-function-name@npm:7.21.0" @@ -366,12 +362,12 @@ __metadata: languageName: node linkType: hard -"@babel/helper-member-expression-to-functions@npm:^7.18.9": - version: 7.18.9 - resolution: "@babel/helper-member-expression-to-functions@npm:7.18.9" +"@babel/helper-member-expression-to-functions@npm:^7.20.7, @babel/helper-member-expression-to-functions@npm:^7.21.0": + version: 7.21.0 + resolution: "@babel/helper-member-expression-to-functions@npm:7.21.0" dependencies: - "@babel/types": ^7.18.9 - checksum: fcf8184e3b55051c4286b2cbedf0eccc781d0f3c9b5cbaba582eca19bf0e8d87806cdb7efc8554fcb969ceaf2b187d5ea748d40022d06ec7739fbb18c1b19a7a + "@babel/types": ^7.21.0 + checksum: 49cbb865098195fe82ba22da3a8fe630cde30dcd8ebf8ad5f9a24a2b685150c6711419879cf9d99b94dad24cff9244d8c2a890d3d7ec75502cd01fe58cff5b5d languageName: node linkType: hard @@ -400,23 +396,7 @@ __metadata: languageName: node linkType: hard -"@babel/helper-module-transforms@npm:^7.19.6": - version: 7.19.6 - resolution: "@babel/helper-module-transforms@npm:7.19.6" - dependencies: - "@babel/helper-environment-visitor": ^7.18.9 - "@babel/helper-module-imports": ^7.18.6 - "@babel/helper-simple-access": ^7.19.4 - "@babel/helper-split-export-declaration": ^7.18.6 - "@babel/helper-validator-identifier": ^7.19.1 - "@babel/template": ^7.18.10 - "@babel/traverse": ^7.19.6 - "@babel/types": ^7.19.4 - checksum: c28692b37d4b5abacc775bcab52a74f44a493f38c58cb72b56a6c6d67a97485dd8aff6f26905abd1a924d3261a171d0214a9fb76f48d8598f1e35b8b29284792 - languageName: node - linkType: hard - -"@babel/helper-module-transforms@npm:^7.21.2": +"@babel/helper-module-transforms@npm:^7.20.11, @babel/helper-module-transforms@npm:^7.21.2": version: 7.21.2 resolution: "@babel/helper-module-transforms@npm:7.21.2" dependencies: @@ -476,20 +456,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-remap-async-to-generator@npm:^7.18.6": - version: 7.18.6 - resolution: "@babel/helper-remap-async-to-generator@npm:7.18.6" - dependencies: - "@babel/helper-annotate-as-pure": ^7.18.6 - "@babel/helper-environment-visitor": ^7.18.6 - "@babel/helper-wrap-function": ^7.18.6 - "@babel/types": ^7.18.6 - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 83e890624da9413c74a8084f6b5f7bfe93abad8a6e1a33464f3086e2a1336751672e6ac6d74dddd35b641d19584cc0f93d02c52a4f33385b3be5b40942fe30da - languageName: node - linkType: hard - "@babel/helper-remap-async-to-generator@npm:^7.18.9": version: 7.18.9 resolution: "@babel/helper-remap-async-to-generator@npm:7.18.9" @@ -517,16 +483,17 @@ __metadata: languageName: node linkType: hard -"@babel/helper-replace-supers@npm:^7.19.1": - version: 7.19.1 - resolution: "@babel/helper-replace-supers@npm:7.19.1" +"@babel/helper-replace-supers@npm:^7.20.7": + version: 7.20.7 + resolution: "@babel/helper-replace-supers@npm:7.20.7" dependencies: "@babel/helper-environment-visitor": ^7.18.9 - "@babel/helper-member-expression-to-functions": ^7.18.9 + "@babel/helper-member-expression-to-functions": ^7.20.7 "@babel/helper-optimise-call-expression": ^7.18.6 - "@babel/traverse": ^7.19.1 - "@babel/types": ^7.19.0 - checksum: a0e4bf79ebe7d2bb5947169e47a0b4439c73fb0ec57d446cf3ea81b736721129ec373c3f94d2ebd2716b26dd65f8e6c083dac898170d42905e7ba815a2f52c25 + "@babel/template": ^7.20.7 + "@babel/traverse": ^7.20.7 + "@babel/types": ^7.20.7 + checksum: b8e0087c9b0c1446e3c6f3f72b73b7e03559c6b570e2cfbe62c738676d9ebd8c369a708cf1a564ef88113b4330750a50232ee1131d303d478b7a5e65e46fbc7c languageName: node linkType: hard @@ -539,15 +506,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-simple-access@npm:^7.19.4": - version: 7.19.4 - resolution: "@babel/helper-simple-access@npm:7.19.4" - dependencies: - "@babel/types": ^7.19.4 - checksum: 964cb1ec36b69aabbb02f8d5ee1d680ebbb628611a6740958d9b05107ab16c0492044e430618ae42b1f8ea73e4e1bafe3750e8ebc959d6f3277d9cfbe1a94880 - languageName: node - linkType: hard - "@babel/helper-simple-access@npm:^7.20.2": version: 7.20.2 resolution: "@babel/helper-simple-access@npm:7.20.2" @@ -557,12 +515,12 @@ __metadata: languageName: node linkType: hard -"@babel/helper-skip-transparent-expression-wrappers@npm:^7.18.9": - version: 7.18.9 - resolution: "@babel/helper-skip-transparent-expression-wrappers@npm:7.18.9" +"@babel/helper-skip-transparent-expression-wrappers@npm:^7.20.0": + version: 7.20.0 + resolution: "@babel/helper-skip-transparent-expression-wrappers@npm:7.20.0" dependencies: - "@babel/types": ^7.18.9 - checksum: 6e93ccd10248293082606a4b3e30eed32c6f796d378f6b662796c88f462f348aa368aadeb48eb410cfcc8250db93b2d6627c2e55662530f08fc25397e588d68a + "@babel/types": ^7.20.0 + checksum: 34da8c832d1c8a546e45d5c1d59755459ffe43629436707079989599b91e8c19e50e73af7a4bd09c95402d389266731b0d9c5f69e372d8ebd3a709c05c80d7dd languageName: node linkType: hard @@ -617,15 +575,10 @@ __metadata: languageName: node linkType: hard -"@babel/helper-wrap-function@npm:^7.18.6": - version: 7.18.6 - resolution: "@babel/helper-wrap-function@npm:7.18.6" - dependencies: - "@babel/helper-function-name": ^7.18.6 - "@babel/template": ^7.18.6 - "@babel/traverse": ^7.18.6 - "@babel/types": ^7.18.6 - checksum: b7a4f59b302ed77407e5c2005d8677ebdeabbfa69230e15f80b5e06cc532369c1e48399ec3e67dd3341e7ab9b3f84f17a255e2c1ec4e0d42bb571a4dac5472d6 +"@babel/helper-validator-option@npm:^7.21.0": + version: 7.21.0 + resolution: "@babel/helper-validator-option@npm:7.21.0" + checksum: 8ece4c78ffa5461fd8ab6b6e57cc51afad59df08192ed5d84b475af4a7193fc1cb794b59e3e7be64f3cdc4df7ac78bf3dbb20c129d7757ae078e6279ff8c2f07 languageName: node linkType: hard @@ -692,24 +645,6 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.20.0": - version: 7.20.0 - resolution: "@babel/parser@npm:7.20.0" - bin: - parser: ./bin/babel-parser.js - checksum: d54d68e45ff1b9a0c50a3f79d9031f482eb58f18928525949dc20da5b1658ee79167e756129371fd75d3e8fc7e218ab707727145a68958636be9672c7b71768e - languageName: node - linkType: hard - -"@babel/parser@npm:^7.20.1": - version: 7.20.3 - resolution: "@babel/parser@npm:7.20.3" - bin: - parser: ./bin/babel-parser.js - checksum: 33bcdb45de65a3cf27ed376cb34f32be3c3485a10e3252f8d0126f6a034efc3145c0d219e57fcd5a8956361552008bc30b9bae4a723823fb3633027071be8a45 - languageName: node - linkType: hard - "@babel/parser@npm:^7.20.7": version: 7.20.7 resolution: "@babel/parser@npm:7.20.7" @@ -728,12 +663,12 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.21.3": - version: 7.21.3 - resolution: "@babel/parser@npm:7.21.3" +"@babel/parser@npm:^7.21.4": + version: 7.21.4 + resolution: "@babel/parser@npm:7.21.4" bin: parser: ./bin/babel-parser.js - checksum: a71e6456a1260c2a943736b56cc0acdf5f2a53c6c79e545f56618967e51f9b710d1d3359264e7c979313a7153741b1d95ad8860834cc2ab4ce4f428b13cc07be + checksum: de610ecd1bff331766d0c058023ca11a4f242bfafefc42caf926becccfb6756637d167c001987ca830dd4b34b93c629a4cef63f8c8c864a8564cdfde1989ac77 languageName: node linkType: hard @@ -748,30 +683,30 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@npm:^7.18.9": - version: 7.18.9 - resolution: "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@npm:7.18.9" +"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@npm:^7.20.7": + version: 7.20.7 + resolution: "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@npm:7.20.7" dependencies: - "@babel/helper-plugin-utils": ^7.18.9 - "@babel/helper-skip-transparent-expression-wrappers": ^7.18.9 - "@babel/plugin-proposal-optional-chaining": ^7.18.9 + "@babel/helper-plugin-utils": ^7.20.2 + "@babel/helper-skip-transparent-expression-wrappers": ^7.20.0 + "@babel/plugin-proposal-optional-chaining": ^7.20.7 peerDependencies: "@babel/core": ^7.13.0 - checksum: 93abb5cb179a13db171bfc2cdf79489598f43c50cc174f97a2b7bb1d44d24ade7109665a20cf4e317ad6c1c730f036f06478f7c7e789b4240be1abdb60d6452f + checksum: d610f532210bee5342f5b44a12395ccc6d904e675a297189bc1e401cc185beec09873da523466d7fec34ae1574f7a384235cba1ccc9fe7b89ba094167897c845 languageName: node linkType: hard -"@babel/plugin-proposal-async-generator-functions@npm:^7.20.1": - version: 7.20.1 - resolution: "@babel/plugin-proposal-async-generator-functions@npm:7.20.1" +"@babel/plugin-proposal-async-generator-functions@npm:^7.20.7": + version: 7.20.7 + resolution: "@babel/plugin-proposal-async-generator-functions@npm:7.20.7" dependencies: "@babel/helper-environment-visitor": ^7.18.9 - "@babel/helper-plugin-utils": ^7.19.0 + "@babel/helper-plugin-utils": ^7.20.2 "@babel/helper-remap-async-to-generator": ^7.18.9 "@babel/plugin-syntax-async-generators": ^7.8.4 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 518483a68c5618932109913eb7316ed5e656c575cbd9d22667bc0451e35a1be45f8eaeb8e2065834b36c8a93c4840f78cebf8f1d067b07c422f7be16d58eca60 + checksum: 111109ee118c9e69982f08d5e119eab04190b36a0f40e22e873802d941956eee66d2aa5a15f5321e51e3f9aa70a91136451b987fe15185ef8cc547ac88937723 languageName: node linkType: hard @@ -787,16 +722,16 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-proposal-class-static-block@npm:^7.18.6": - version: 7.18.6 - resolution: "@babel/plugin-proposal-class-static-block@npm:7.18.6" +"@babel/plugin-proposal-class-static-block@npm:^7.21.0": + version: 7.21.0 + resolution: "@babel/plugin-proposal-class-static-block@npm:7.21.0" dependencies: - "@babel/helper-create-class-features-plugin": ^7.18.6 - "@babel/helper-plugin-utils": ^7.18.6 + "@babel/helper-create-class-features-plugin": ^7.21.0 + "@babel/helper-plugin-utils": ^7.20.2 "@babel/plugin-syntax-class-static-block": ^7.14.5 peerDependencies: "@babel/core": ^7.12.0 - checksum: b8d7ae99ed5ad784f39e7820e3ac03841f91d6ed60ab4a98c61d6112253da36013e12807bae4ffed0ef3cb318e47debac112ed614e03b403fb8b075b09a828ee + checksum: 236c0ad089e7a7acab776cc1d355330193314bfcd62e94e78f2df35817c6144d7e0e0368976778afd6b7c13e70b5068fa84d7abbf967d4f182e60d03f9ef802b languageName: node linkType: hard @@ -836,15 +771,15 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-proposal-logical-assignment-operators@npm:^7.18.9": - version: 7.18.9 - resolution: "@babel/plugin-proposal-logical-assignment-operators@npm:7.18.9" +"@babel/plugin-proposal-logical-assignment-operators@npm:^7.20.7": + version: 7.20.7 + resolution: "@babel/plugin-proposal-logical-assignment-operators@npm:7.20.7" dependencies: - "@babel/helper-plugin-utils": ^7.18.9 + "@babel/helper-plugin-utils": ^7.20.2 "@babel/plugin-syntax-logical-assignment-operators": ^7.10.4 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: dd87fa4a48c6408c5e85dbd6405a65cc8fe909e3090030df46df90df64cdf3e74007381a58ed87608778ee597eff7395d215274009bb3f5d8964b2db5557754f + checksum: cdd7b8136cc4db3f47714d5266f9e7b592a2ac5a94a5878787ce08890e97c8ab1ca8e94b27bfeba7b0f2b1549a026d9fc414ca2196de603df36fb32633bbdc19 languageName: node linkType: hard @@ -872,18 +807,18 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-proposal-object-rest-spread@npm:^7.20.2": - version: 7.20.2 - resolution: "@babel/plugin-proposal-object-rest-spread@npm:7.20.2" +"@babel/plugin-proposal-object-rest-spread@npm:^7.20.7": + version: 7.20.7 + resolution: "@babel/plugin-proposal-object-rest-spread@npm:7.20.7" dependencies: - "@babel/compat-data": ^7.20.1 - "@babel/helper-compilation-targets": ^7.20.0 + "@babel/compat-data": ^7.20.5 + "@babel/helper-compilation-targets": ^7.20.7 "@babel/helper-plugin-utils": ^7.20.2 "@babel/plugin-syntax-object-rest-spread": ^7.8.3 - "@babel/plugin-transform-parameters": ^7.20.1 + "@babel/plugin-transform-parameters": ^7.20.7 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 9764d1a4735fcd384fdb9b6c6ccb20d1bea2f88f648640d26ce5d9cd5880ce1e389d2f852d7bea7e86ff343726225dc16e1deb92c7b3dc5c5721ed905a602318 + checksum: 1329db17009964bc644484c660eab717cb3ca63ac0ab0f67c651a028d1bc2ead51dc4064caea283e46994f1b7221670a35cbc0b4beb6273f55e915494b5aa0b2 languageName: node linkType: hard @@ -899,16 +834,16 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-proposal-optional-chaining@npm:^7.18.9": - version: 7.18.9 - resolution: "@babel/plugin-proposal-optional-chaining@npm:7.18.9" +"@babel/plugin-proposal-optional-chaining@npm:^7.20.7, @babel/plugin-proposal-optional-chaining@npm:^7.21.0": + version: 7.21.0 + resolution: "@babel/plugin-proposal-optional-chaining@npm:7.21.0" dependencies: - "@babel/helper-plugin-utils": ^7.18.9 - "@babel/helper-skip-transparent-expression-wrappers": ^7.18.9 + "@babel/helper-plugin-utils": ^7.20.2 + "@babel/helper-skip-transparent-expression-wrappers": ^7.20.0 "@babel/plugin-syntax-optional-chaining": ^7.8.3 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: f2db40e26172f07c50b635cb61e1f36165de3ba868fcf608d967642f0d044b7c6beb0e7ecf17cbd421144b99e1eae7ad6031ded92925343bb0ed1d08707b514f + checksum: 11c5449e01b18bb8881e8e005a577fa7be2fe5688e2382c8822d51f8f7005342a301a46af7b273b1f5645f9a7b894c428eee8526342038a275ef6ba4c8d8d746 languageName: node linkType: hard @@ -924,17 +859,17 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-proposal-private-property-in-object@npm:^7.18.6": - version: 7.18.6 - resolution: "@babel/plugin-proposal-private-property-in-object@npm:7.18.6" +"@babel/plugin-proposal-private-property-in-object@npm:^7.21.0": + version: 7.21.0 + resolution: "@babel/plugin-proposal-private-property-in-object@npm:7.21.0" dependencies: "@babel/helper-annotate-as-pure": ^7.18.6 - "@babel/helper-create-class-features-plugin": ^7.18.6 - "@babel/helper-plugin-utils": ^7.18.6 + "@babel/helper-create-class-features-plugin": ^7.21.0 + "@babel/helper-plugin-utils": ^7.20.2 "@babel/plugin-syntax-private-property-in-object": ^7.14.5 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: c8e56a972930730345f39f2384916fd8e711b3f4b4eae2ca9740e99958980118120d5cc9b6ac150f0965a5a35f825910e2c3013d90be3e9993ab6111df444569 + checksum: add881a6a836635c41d2710551fdf777e2c07c0b691bf2baacc5d658dd64107479df1038680d6e67c468bfc6f36fb8920025d6bac2a1df0a81b867537d40ae78 languageName: node linkType: hard @@ -1138,27 +1073,27 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-arrow-functions@npm:^7.18.6": - version: 7.18.6 - resolution: "@babel/plugin-transform-arrow-functions@npm:7.18.6" +"@babel/plugin-transform-arrow-functions@npm:^7.20.7": + version: 7.20.7 + resolution: "@babel/plugin-transform-arrow-functions@npm:7.20.7" dependencies: - "@babel/helper-plugin-utils": ^7.18.6 + "@babel/helper-plugin-utils": ^7.20.2 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 900f5c695755062b91eec74da6f9092f40b8fada099058b92576f1e23c55e9813ec437051893a9b3c05cefe39e8ac06303d4a91b384e1c03dd8dc1581ea11602 + checksum: b43cabe3790c2de7710abe32df9a30005eddb2050dadd5d122c6872f679e5710e410f1b90c8f99a2aff7b614cccfecf30e7fd310236686f60d3ed43fd80b9847 languageName: node linkType: hard -"@babel/plugin-transform-async-to-generator@npm:^7.18.6": - version: 7.18.6 - resolution: "@babel/plugin-transform-async-to-generator@npm:7.18.6" +"@babel/plugin-transform-async-to-generator@npm:^7.20.7": + version: 7.20.7 + resolution: "@babel/plugin-transform-async-to-generator@npm:7.20.7" dependencies: "@babel/helper-module-imports": ^7.18.6 - "@babel/helper-plugin-utils": ^7.18.6 - "@babel/helper-remap-async-to-generator": ^7.18.6 + "@babel/helper-plugin-utils": ^7.20.2 + "@babel/helper-remap-async-to-generator": ^7.18.9 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: c2cca47468cf1aeefdc7ec35d670e195c86cee4de28a1970648c46a88ce6bd1806ef0bab27251b9e7fb791bb28a64dcd543770efd899f28ee5f7854e64e873d3 + checksum: fe9ee8a5471b4317c1b9ea92410ace8126b52a600d7cfbfe1920dcac6fb0fad647d2e08beb4fd03c630eb54430e6c72db11e283e3eddc49615c68abd39430904 languageName: node linkType: hard @@ -1173,55 +1108,56 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-block-scoping@npm:^7.20.2": - version: 7.20.2 - resolution: "@babel/plugin-transform-block-scoping@npm:7.20.2" +"@babel/plugin-transform-block-scoping@npm:^7.21.0": + version: 7.21.0 + resolution: "@babel/plugin-transform-block-scoping@npm:7.21.0" dependencies: "@babel/helper-plugin-utils": ^7.20.2 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 550b983277557ecfa3ef1e7a2367eaa9e0616a56f0d4106812cbc8aeca057b0f0b8bbc5c548b9b3b57399868f916e89e17303c802c8c46d18fba5bc174d4e794 + checksum: 15aacaadbecf96b53a750db1be4990b0d89c7f5bc3e1794b63b49fb219638c1fd25d452d15566d7e5ddf5b5f4e1a0a0055c35c1c7aee323c7b114bf49f66f4b0 languageName: node linkType: hard -"@babel/plugin-transform-classes@npm:^7.20.2": - version: 7.20.2 - resolution: "@babel/plugin-transform-classes@npm:7.20.2" +"@babel/plugin-transform-classes@npm:^7.21.0": + version: 7.21.0 + resolution: "@babel/plugin-transform-classes@npm:7.21.0" dependencies: "@babel/helper-annotate-as-pure": ^7.18.6 - "@babel/helper-compilation-targets": ^7.20.0 + "@babel/helper-compilation-targets": ^7.20.7 "@babel/helper-environment-visitor": ^7.18.9 - "@babel/helper-function-name": ^7.19.0 + "@babel/helper-function-name": ^7.21.0 "@babel/helper-optimise-call-expression": ^7.18.6 "@babel/helper-plugin-utils": ^7.20.2 - "@babel/helper-replace-supers": ^7.19.1 + "@babel/helper-replace-supers": ^7.20.7 "@babel/helper-split-export-declaration": ^7.18.6 globals: ^11.1.0 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 57f3467a8eb7853cdb61cda963cfb6c6568ad276d77c9de2ff5a2194650010217aa318ef3733975537c6fb906b73a019afb6ea650b01852e7d2e1fab4034361b + checksum: 088ae152074bd0e90f64659169255bfe50393e637ec8765cb2a518848b11b0299e66b91003728fd0a41563a6fdc6b8d548ece698a314fd5447f5489c22e466b7 languageName: node linkType: hard -"@babel/plugin-transform-computed-properties@npm:^7.18.9": - version: 7.18.9 - resolution: "@babel/plugin-transform-computed-properties@npm:7.18.9" +"@babel/plugin-transform-computed-properties@npm:^7.20.7": + version: 7.20.7 + resolution: "@babel/plugin-transform-computed-properties@npm:7.20.7" dependencies: - "@babel/helper-plugin-utils": ^7.18.9 + "@babel/helper-plugin-utils": ^7.20.2 + "@babel/template": ^7.20.7 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: a6bfbea207827d77592628973c0e8cc3319db636506bdc6e81e21582de2e767890e6975b382d0511e9ec3773b9f43691185df90832883bbf9251f688d27fbc1d + checksum: be70e54bda8b469146459f429e5f2bd415023b87b2d5af8b10e48f465ffb02847a3ed162ca60378c004b82db848e4d62e90010d41ded7e7176b6d8d1c2911139 languageName: node linkType: hard -"@babel/plugin-transform-destructuring@npm:^7.20.2": - version: 7.20.2 - resolution: "@babel/plugin-transform-destructuring@npm:7.20.2" +"@babel/plugin-transform-destructuring@npm:^7.21.3": + version: 7.21.3 + resolution: "@babel/plugin-transform-destructuring@npm:7.21.3" dependencies: "@babel/helper-plugin-utils": ^7.20.2 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 09033e09b28ca1b0d46a8d82f5a677b1d718a739b3c199886908c3ef1af23369317d0c429b21507d480ee82721c15892a9893be18e50ad6fc219e69312f4b097 + checksum: 43ebbe0bfa20287e34427be7c2200ce096c20913775ea75268fb47fe0e55f9510800587e6052c42fe6dffa0daaad95dd465c3e312fd1ef9785648384c45417ac languageName: node linkType: hard @@ -1272,14 +1208,14 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-for-of@npm:^7.18.8": - version: 7.18.8 - resolution: "@babel/plugin-transform-for-of@npm:7.18.8" +"@babel/plugin-transform-for-of@npm:^7.21.0": + version: 7.21.0 + resolution: "@babel/plugin-transform-for-of@npm:7.21.0" dependencies: - "@babel/helper-plugin-utils": ^7.18.6 + "@babel/helper-plugin-utils": ^7.20.2 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: ca64c623cf0c7a80ab6f07ebd3e6e4ade95e2ae806696f70b43eafe6394fa8ce21f2b1ffdd15df2067f7363d2ecfe26472a97c6c774403d2163fa05f50c98f17 + checksum: 2f3f86ca1fab2929fcda6a87e4303d5c635b5f96dc9a45fd4ca083308a3020c79ac33b9543eb4640ef2b79f3586a00ab2d002a7081adb9e9d7440dce30781034 languageName: node linkType: hard @@ -1318,42 +1254,42 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-modules-amd@npm:^7.19.6": - version: 7.19.6 - resolution: "@babel/plugin-transform-modules-amd@npm:7.19.6" +"@babel/plugin-transform-modules-amd@npm:^7.20.11": + version: 7.20.11 + resolution: "@babel/plugin-transform-modules-amd@npm:7.20.11" dependencies: - "@babel/helper-module-transforms": ^7.19.6 - "@babel/helper-plugin-utils": ^7.19.0 + "@babel/helper-module-transforms": ^7.20.11 + "@babel/helper-plugin-utils": ^7.20.2 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 4236aad970025bc10c772c1589b1e2eab8b7681933bb5ffa6e395d4c1a52532b28c47c553e3011b4272ea81e5ab39fe969eb5349584e8390e59771055c467d42 + checksum: 23665c1c20c8f11c89382b588fb9651c0756d130737a7625baeaadbd3b973bc5bfba1303bedffa8fb99db1e6d848afb01016e1df2b69b18303e946890c790001 languageName: node linkType: hard -"@babel/plugin-transform-modules-commonjs@npm:^7.19.6": - version: 7.19.6 - resolution: "@babel/plugin-transform-modules-commonjs@npm:7.19.6" +"@babel/plugin-transform-modules-commonjs@npm:^7.21.2": + version: 7.21.2 + resolution: "@babel/plugin-transform-modules-commonjs@npm:7.21.2" dependencies: - "@babel/helper-module-transforms": ^7.19.6 - "@babel/helper-plugin-utils": ^7.19.0 - "@babel/helper-simple-access": ^7.19.4 + "@babel/helper-module-transforms": ^7.21.2 + "@babel/helper-plugin-utils": ^7.20.2 + "@babel/helper-simple-access": ^7.20.2 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 85d46945ab5ba3fff89e962d560a5d40253f228b9659a697683db3de07c0236e8cd60e5eb41958007359951a42bc268bf32350fcdb5b4a86f58dff1e032c096e + checksum: 65aa06e3e3792f39b99eb5f807034693ff0ecf80438580f7ae504f4c4448ef04147b1889ea5e6f60f3ad4a12ebbb57c6f1f979a249dadbd8d11fe22f4441918b languageName: node linkType: hard -"@babel/plugin-transform-modules-systemjs@npm:^7.19.6": - version: 7.19.6 - resolution: "@babel/plugin-transform-modules-systemjs@npm:7.19.6" +"@babel/plugin-transform-modules-systemjs@npm:^7.20.11": + version: 7.20.11 + resolution: "@babel/plugin-transform-modules-systemjs@npm:7.20.11" dependencies: "@babel/helper-hoist-variables": ^7.18.6 - "@babel/helper-module-transforms": ^7.19.6 - "@babel/helper-plugin-utils": ^7.19.0 + "@babel/helper-module-transforms": ^7.20.11 + "@babel/helper-plugin-utils": ^7.20.2 "@babel/helper-validator-identifier": ^7.19.1 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 8526431cc81ea3eb232ad50862d0ed1cbb422b5251d14a8d6610d0ca0617f6e75f35179e98eb1235d0cccb980120350b9f112594e5646dd45378d41eaaf87342 + checksum: 4546c47587f88156d66c7eb7808e903cf4bb3f6ba6ac9bc8e3af2e29e92eb9f0b3f44d52043bfd24eb25fa7827fd7b6c8bfeac0cac7584e019b87e1ecbd0e673 languageName: node linkType: hard @@ -1369,15 +1305,15 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-named-capturing-groups-regex@npm:^7.19.1": - version: 7.19.1 - resolution: "@babel/plugin-transform-named-capturing-groups-regex@npm:7.19.1" +"@babel/plugin-transform-named-capturing-groups-regex@npm:^7.20.5": + version: 7.20.5 + resolution: "@babel/plugin-transform-named-capturing-groups-regex@npm:7.20.5" dependencies: - "@babel/helper-create-regexp-features-plugin": ^7.19.0 - "@babel/helper-plugin-utils": ^7.19.0 + "@babel/helper-create-regexp-features-plugin": ^7.20.5 + "@babel/helper-plugin-utils": ^7.20.2 peerDependencies: "@babel/core": ^7.0.0 - checksum: 8a40f5d04f2140c44fe890a5a3fd72abc2a88445443ac2bd92e1e85d9366d3eb8f1ebb7e2c89d2daeaf213d9b28cb65605502ac9b155936d48045eeda6053494 + checksum: 528c95fb1087e212f17e1c6456df041b28a83c772b9c93d2e407c9d03b72182b0d9d126770c1d6e0b23aab052599ceaf25ed6a2c0627f4249be34a83f6fae853 languageName: node linkType: hard @@ -1404,14 +1340,14 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-parameters@npm:^7.20.1": - version: 7.20.3 - resolution: "@babel/plugin-transform-parameters@npm:7.20.3" +"@babel/plugin-transform-parameters@npm:^7.20.7, @babel/plugin-transform-parameters@npm:^7.21.3": + version: 7.21.3 + resolution: "@babel/plugin-transform-parameters@npm:7.21.3" dependencies: "@babel/helper-plugin-utils": ^7.20.2 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 69054c93d744574e06b0244623140718ecba87e1cc34bd5c7bd5824fd4dbef764ac4832046ea1ba5d2c6a2f12e03289555c9f65f0aafae4871f3d740ff61b9ec + checksum: c92128d7b1fcf54e2cab186c196bbbf55a9a6de11a83328dc2602649c9dc6d16ef73712beecd776cd49bfdc624b5f56740f4a53568d3deb9505ec666bc869da3 languageName: node linkType: hard @@ -1475,15 +1411,15 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-regenerator@npm:^7.18.6": - version: 7.18.6 - resolution: "@babel/plugin-transform-regenerator@npm:7.18.6" +"@babel/plugin-transform-regenerator@npm:^7.20.5": + version: 7.20.5 + resolution: "@babel/plugin-transform-regenerator@npm:7.20.5" dependencies: - "@babel/helper-plugin-utils": ^7.18.6 - regenerator-transform: ^0.15.0 + "@babel/helper-plugin-utils": ^7.20.2 + regenerator-transform: ^0.15.1 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 60bd482cb0343c714f85c3e19a13b3b5fa05ee336c079974091c0b35e263307f4e661f4555dff90707a87d5efe19b1d51835db44455405444ac1813e268ad750 + checksum: 13164861e71fb23d84c6270ef5330b03c54d5d661c2c7468f28e21c4f8598558ca0c8c3cb1d996219352946e849d270a61372bc93c8fbe9676e78e3ffd0dea07 languageName: node linkType: hard @@ -1509,15 +1445,15 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-spread@npm:^7.19.0": - version: 7.19.0 - resolution: "@babel/plugin-transform-spread@npm:7.19.0" +"@babel/plugin-transform-spread@npm:^7.20.7": + version: 7.20.7 + resolution: "@babel/plugin-transform-spread@npm:7.20.7" dependencies: - "@babel/helper-plugin-utils": ^7.19.0 - "@babel/helper-skip-transparent-expression-wrappers": ^7.18.9 + "@babel/helper-plugin-utils": ^7.20.2 + "@babel/helper-skip-transparent-expression-wrappers": ^7.20.0 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: e73a4deb095999185e70b524d0ff4e35df50fcda58299e700a6149a15bbc1a9b369ef1cef384e15a54b3c3ce316cc0f054dbf249dcd0d1ca59f4281dd4df9718 + checksum: 8ea698a12da15718aac7489d4cde10beb8a3eea1f66167d11ab1e625033641e8b328157fd1a0b55dd6531933a160c01fc2e2e61132a385cece05f26429fd0cc2 languageName: node linkType: hard @@ -1577,30 +1513,30 @@ __metadata: languageName: node linkType: hard -"@babel/preset-env@npm:^7.20.2": - version: 7.20.2 - resolution: "@babel/preset-env@npm:7.20.2" +"@babel/preset-env@npm:^7.21.4": + version: 7.21.4 + resolution: "@babel/preset-env@npm:7.21.4" dependencies: - "@babel/compat-data": ^7.20.1 - "@babel/helper-compilation-targets": ^7.20.0 + "@babel/compat-data": ^7.21.4 + "@babel/helper-compilation-targets": ^7.21.4 "@babel/helper-plugin-utils": ^7.20.2 - "@babel/helper-validator-option": ^7.18.6 + "@babel/helper-validator-option": ^7.21.0 "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": ^7.18.6 - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": ^7.18.9 - "@babel/plugin-proposal-async-generator-functions": ^7.20.1 + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": ^7.20.7 + "@babel/plugin-proposal-async-generator-functions": ^7.20.7 "@babel/plugin-proposal-class-properties": ^7.18.6 - "@babel/plugin-proposal-class-static-block": ^7.18.6 + "@babel/plugin-proposal-class-static-block": ^7.21.0 "@babel/plugin-proposal-dynamic-import": ^7.18.6 "@babel/plugin-proposal-export-namespace-from": ^7.18.9 "@babel/plugin-proposal-json-strings": ^7.18.6 - "@babel/plugin-proposal-logical-assignment-operators": ^7.18.9 + "@babel/plugin-proposal-logical-assignment-operators": ^7.20.7 "@babel/plugin-proposal-nullish-coalescing-operator": ^7.18.6 "@babel/plugin-proposal-numeric-separator": ^7.18.6 - "@babel/plugin-proposal-object-rest-spread": ^7.20.2 + "@babel/plugin-proposal-object-rest-spread": ^7.20.7 "@babel/plugin-proposal-optional-catch-binding": ^7.18.6 - "@babel/plugin-proposal-optional-chaining": ^7.18.9 + "@babel/plugin-proposal-optional-chaining": ^7.21.0 "@babel/plugin-proposal-private-methods": ^7.18.6 - "@babel/plugin-proposal-private-property-in-object": ^7.18.6 + "@babel/plugin-proposal-private-property-in-object": ^7.21.0 "@babel/plugin-proposal-unicode-property-regex": ^7.18.6 "@babel/plugin-syntax-async-generators": ^7.8.4 "@babel/plugin-syntax-class-properties": ^7.12.13 @@ -1617,40 +1553,40 @@ __metadata: "@babel/plugin-syntax-optional-chaining": ^7.8.3 "@babel/plugin-syntax-private-property-in-object": ^7.14.5 "@babel/plugin-syntax-top-level-await": ^7.14.5 - "@babel/plugin-transform-arrow-functions": ^7.18.6 - "@babel/plugin-transform-async-to-generator": ^7.18.6 + "@babel/plugin-transform-arrow-functions": ^7.20.7 + "@babel/plugin-transform-async-to-generator": ^7.20.7 "@babel/plugin-transform-block-scoped-functions": ^7.18.6 - "@babel/plugin-transform-block-scoping": ^7.20.2 - "@babel/plugin-transform-classes": ^7.20.2 - "@babel/plugin-transform-computed-properties": ^7.18.9 - "@babel/plugin-transform-destructuring": ^7.20.2 + "@babel/plugin-transform-block-scoping": ^7.21.0 + "@babel/plugin-transform-classes": ^7.21.0 + "@babel/plugin-transform-computed-properties": ^7.20.7 + "@babel/plugin-transform-destructuring": ^7.21.3 "@babel/plugin-transform-dotall-regex": ^7.18.6 "@babel/plugin-transform-duplicate-keys": ^7.18.9 "@babel/plugin-transform-exponentiation-operator": ^7.18.6 - "@babel/plugin-transform-for-of": ^7.18.8 + "@babel/plugin-transform-for-of": ^7.21.0 "@babel/plugin-transform-function-name": ^7.18.9 "@babel/plugin-transform-literals": ^7.18.9 "@babel/plugin-transform-member-expression-literals": ^7.18.6 - "@babel/plugin-transform-modules-amd": ^7.19.6 - "@babel/plugin-transform-modules-commonjs": ^7.19.6 - "@babel/plugin-transform-modules-systemjs": ^7.19.6 + "@babel/plugin-transform-modules-amd": ^7.20.11 + "@babel/plugin-transform-modules-commonjs": ^7.21.2 + "@babel/plugin-transform-modules-systemjs": ^7.20.11 "@babel/plugin-transform-modules-umd": ^7.18.6 - "@babel/plugin-transform-named-capturing-groups-regex": ^7.19.1 + "@babel/plugin-transform-named-capturing-groups-regex": ^7.20.5 "@babel/plugin-transform-new-target": ^7.18.6 "@babel/plugin-transform-object-super": ^7.18.6 - "@babel/plugin-transform-parameters": ^7.20.1 + "@babel/plugin-transform-parameters": ^7.21.3 "@babel/plugin-transform-property-literals": ^7.18.6 - "@babel/plugin-transform-regenerator": ^7.18.6 + "@babel/plugin-transform-regenerator": ^7.20.5 "@babel/plugin-transform-reserved-words": ^7.18.6 "@babel/plugin-transform-shorthand-properties": ^7.18.6 - "@babel/plugin-transform-spread": ^7.19.0 + "@babel/plugin-transform-spread": ^7.20.7 "@babel/plugin-transform-sticky-regex": ^7.18.6 "@babel/plugin-transform-template-literals": ^7.18.9 "@babel/plugin-transform-typeof-symbol": ^7.18.9 "@babel/plugin-transform-unicode-escapes": ^7.18.10 "@babel/plugin-transform-unicode-regex": ^7.18.6 "@babel/preset-modules": ^0.1.5 - "@babel/types": ^7.20.2 + "@babel/types": ^7.21.4 babel-plugin-polyfill-corejs2: ^0.3.3 babel-plugin-polyfill-corejs3: ^0.6.0 babel-plugin-polyfill-regenerator: ^0.4.1 @@ -1658,7 +1594,7 @@ __metadata: semver: ^6.3.0 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: ece2d7e9c7789db6116e962b8e1a55eb55c110c44c217f0c8f6ffea4ca234954e66557f7bd019b7affadf7fbb3a53ccc807e93fc935aacd48146234b73b6947e + checksum: 1e328674c4b39e985fa81e5a8eee9aaab353dea4ff1f28f454c5e27a6498c762e25d42e827f5bfc9d7acf6c9b8bc317b5283aa7c83d9fd03c1a89e5c08f334f9 languageName: node linkType: hard @@ -1693,6 +1629,13 @@ __metadata: languageName: node linkType: hard +"@babel/regjsgen@npm:^0.8.0": + version: 0.8.0 + resolution: "@babel/regjsgen@npm:0.8.0" + checksum: 89c338fee774770e5a487382170711014d49a68eb281e74f2b5eac88f38300a4ad545516a7786a8dd5702e9cf009c94c2f582d200f077ac5decd74c56b973730 + languageName: node + linkType: hard + "@babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.18.3": version: 7.18.9 resolution: "@babel/runtime@npm:7.18.9" @@ -1789,39 +1732,21 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.19.1": - version: 7.20.1 - resolution: "@babel/traverse@npm:7.20.1" +"@babel/traverse@npm:^7.20.7, @babel/traverse@npm:^7.21.4": + version: 7.21.4 + resolution: "@babel/traverse@npm:7.21.4" dependencies: - "@babel/code-frame": ^7.18.6 - "@babel/generator": ^7.20.1 + "@babel/code-frame": ^7.21.4 + "@babel/generator": ^7.21.4 "@babel/helper-environment-visitor": ^7.18.9 - "@babel/helper-function-name": ^7.19.0 - "@babel/helper-hoist-variables": ^7.18.6 - "@babel/helper-split-export-declaration": ^7.18.6 - "@babel/parser": ^7.20.1 - "@babel/types": ^7.20.0 - debug: ^4.1.0 - globals: ^11.1.0 - checksum: 6696176d574b7ff93466848010bc7e94b250169379ec2a84f1b10da46a7cc2018ea5e3a520c3078487db51e3a4afab9ecff48f25d1dbad8c1319362f4148fb4b - languageName: node - linkType: hard - -"@babel/traverse@npm:^7.19.6": - version: 7.20.0 - resolution: "@babel/traverse@npm:7.20.0" - dependencies: - "@babel/code-frame": ^7.18.6 - "@babel/generator": ^7.20.0 - "@babel/helper-environment-visitor": ^7.18.9 - "@babel/helper-function-name": ^7.19.0 + "@babel/helper-function-name": ^7.21.0 "@babel/helper-hoist-variables": ^7.18.6 "@babel/helper-split-export-declaration": ^7.18.6 - "@babel/parser": ^7.20.0 - "@babel/types": ^7.20.0 + "@babel/parser": ^7.21.4 + "@babel/types": ^7.21.4 debug: ^4.1.0 globals: ^11.1.0 - checksum: 19615ec2c3467f929dfa2ae98494961a2c7b333b6628e1c7643188d936abc167c41f5af541b692b1ca776a4d066291a7eb8b22f98aba3d496f362bae4c2082cd + checksum: f22f067c2d9b6497abf3d4e53ea71f3aa82a21f2ed434dd69b8c5767f11f2a4c24c8d2f517d2312c9e5248e5c69395fdca1c95a2b3286122c75f5783ddb6f53c languageName: node linkType: hard @@ -1843,24 +1768,6 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.21.3": - version: 7.21.3 - resolution: "@babel/traverse@npm:7.21.3" - dependencies: - "@babel/code-frame": ^7.18.6 - "@babel/generator": ^7.21.3 - "@babel/helper-environment-visitor": ^7.18.9 - "@babel/helper-function-name": ^7.21.0 - "@babel/helper-hoist-variables": ^7.18.6 - "@babel/helper-split-export-declaration": ^7.18.6 - "@babel/parser": ^7.21.3 - "@babel/types": ^7.21.3 - debug: ^4.1.0 - globals: ^11.1.0 - checksum: 0af5bcd47a2fc501592b90ac1feae9d449afb9ab0772a4f6e68230f4cd3a475795d538c1de3f880fe3414b6c2820bac84d02c6549eea796f39d74a603717447b - languageName: node - linkType: hard - "@babel/types@npm:^7.15.4, @babel/types@npm:^7.4.4, @babel/types@npm:^7.8.3": version: 7.15.6 resolution: "@babel/types@npm:7.15.6" @@ -1902,28 +1809,6 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.19.0": - version: 7.19.3 - resolution: "@babel/types@npm:7.19.3" - dependencies: - "@babel/helper-string-parser": ^7.18.10 - "@babel/helper-validator-identifier": ^7.19.1 - to-fast-properties: ^2.0.0 - checksum: 34a5b3db3b99a1a80ec2a784c2bb0e48769a38f1526dc377a5753a3ac5e5704663c405a393117ecc7a9df9da07b01625be7c4c3fee43ae46aba23b0c40928d77 - languageName: node - linkType: hard - -"@babel/types@npm:^7.19.4": - version: 7.19.4 - resolution: "@babel/types@npm:7.19.4" - dependencies: - "@babel/helper-string-parser": ^7.19.4 - "@babel/helper-validator-identifier": ^7.19.1 - to-fast-properties: ^2.0.0 - checksum: 4032f6407093f80dd4f4764be676f7527d2a5c0381586967cd79683cf8af01cdc16745a381b9cef045f702f0c9b0dffd880d84ee55dad59ba01bd23d5d52a8e0 - languageName: node - linkType: hard - "@babel/types@npm:^7.20.0": version: 7.20.0 resolution: "@babel/types@npm:7.20.0" @@ -1968,14 +1853,14 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.21.3": - version: 7.21.3 - resolution: "@babel/types@npm:7.21.3" +"@babel/types@npm:^7.21.4": + version: 7.21.4 + resolution: "@babel/types@npm:7.21.4" dependencies: "@babel/helper-string-parser": ^7.19.4 "@babel/helper-validator-identifier": ^7.19.1 to-fast-properties: ^2.0.0 - checksum: b750274718ba9cefd0b81836c464009bb6ba339fccce51b9baff497a0a2d96c044c61dc90cf203cec0adc770454b53a9681c3f7716883c802b85ab84c365ba35 + checksum: 587bc55a91ce003b0f8aa10d70070f8006560d7dc0360dc0406d306a2cb2a10154e2f9080b9c37abec76907a90b330a536406cb75e6bdc905484f37b75c73219 languageName: node linkType: hard @@ -2025,6 +1910,19 @@ __metadata: languageName: node linkType: hard +"@emotion/cache@npm:^11.10.7": + version: 11.10.7 + resolution: "@emotion/cache@npm:11.10.7" + dependencies: + "@emotion/memoize": ^0.8.0 + "@emotion/sheet": ^1.2.1 + "@emotion/utils": ^1.2.0 + "@emotion/weak-memoize": ^0.3.0 + stylis: 4.1.3 + checksum: 6b1efed2dffc93dac419409d91f6d57a200d858ec5ffa4b7c30080fdbd93db431ff86bb779c5b8830b8373f3c5dd754d9beb386604ed2667c7d55608ff653dfc + languageName: node + linkType: hard + "@emotion/hash@npm:^0.9.0": version: 0.9.0 resolution: "@emotion/hash@npm:0.9.0" @@ -2239,15 +2137,15 @@ __metadata: languageName: node linkType: hard -"@mui/base@npm:5.0.0-alpha.122": - version: 5.0.0-alpha.122 - resolution: "@mui/base@npm:5.0.0-alpha.122" +"@mui/base@npm:5.0.0-alpha.125": + version: 5.0.0-alpha.125 + resolution: "@mui/base@npm:5.0.0-alpha.125" dependencies: "@babel/runtime": ^7.21.0 "@emotion/is-prop-valid": ^1.2.0 - "@mui/types": ^7.2.3 - "@mui/utils": ^5.11.13 - "@popperjs/core": ^2.11.6 + "@mui/types": ^7.2.4 + "@mui/utils": ^5.12.0 + "@popperjs/core": ^2.11.7 clsx: ^1.2.1 prop-types: ^15.8.1 react-is: ^18.2.0 @@ -2258,20 +2156,20 @@ __metadata: peerDependenciesMeta: "@types/react": optional: true - checksum: 6d229f6f736074a41e0cf787cc5ef98eba23a52044d7edf22fcc42f03250275fd1b4bb4a7ab47fc1f1aec06bf777bde5474229cc381e515eefee8876f2d8cd5c + checksum: e96f31429ee9f6a30e8cd8e6e3da34b7ff8727184a0cb40d098ed029aba758cb3fd884c1b2600b69610bc11cd15831db98a7baafe899df7c9ebcd2de9c5387e0 languageName: node linkType: hard -"@mui/core-downloads-tracker@npm:^5.11.14": - version: 5.11.14 - resolution: "@mui/core-downloads-tracker@npm:5.11.14" - checksum: 8b1b42e125b15136ee82d2cb48354202b87beb8e20defcf3a8b758b033732444d09446d85a28c23b0dcaa8b5d067bc20bdd654c9adf551d826b142b4b09d7dd7 +"@mui/core-downloads-tracker@npm:^5.12.0": + version: 5.12.0 + resolution: "@mui/core-downloads-tracker@npm:5.12.0" + checksum: 9c5d56f517043a7fa888301f7e598bf993c672d15916c334975e112b53c41a39431ab681e8dabee1505dd4c5c0ee638fc9bdaca274dd20cae92cf710be66fa3b languageName: node linkType: hard -"@mui/icons-material@npm:^5.11.11": - version: 5.11.11 - resolution: "@mui/icons-material@npm:5.11.11" +"@mui/icons-material@npm:^5.11.16": + version: 5.11.16 + resolution: "@mui/icons-material@npm:5.11.16" dependencies: "@babel/runtime": ^7.21.0 peerDependencies: @@ -2281,19 +2179,19 @@ __metadata: peerDependenciesMeta: "@types/react": optional: true - checksum: 6ec89f3c68aaedd521f6a5106964394c410b08cec6875166d3ee97dcbaf2983c67d3b19cd58113d767d9f934cc0e9439fb5856e45471f5094656c0f87bbefecd + checksum: db70426b6ede049307b951fc622c6ab3b156a24589242bebbc7effd4b0df2d3c7aca93796ed8dfdf20776248778a798724c7a112f8f687c3b4a1ae813f98fb17 languageName: node linkType: hard -"@mui/lab@npm:5.0.0-alpha.124": - version: 5.0.0-alpha.124 - resolution: "@mui/lab@npm:5.0.0-alpha.124" +"@mui/lab@npm:5.0.0-alpha.126": + version: 5.0.0-alpha.126 + resolution: "@mui/lab@npm:5.0.0-alpha.126" dependencies: "@babel/runtime": ^7.21.0 - "@mui/base": 5.0.0-alpha.122 - "@mui/system": ^5.11.14 - "@mui/types": ^7.2.3 - "@mui/utils": ^5.11.13 + "@mui/base": 5.0.0-alpha.125 + "@mui/system": ^5.12.0 + "@mui/types": ^7.2.4 + "@mui/utils": ^5.12.0 clsx: ^1.2.1 prop-types: ^15.8.1 react-is: ^18.2.0 @@ -2311,23 +2209,23 @@ __metadata: optional: true "@types/react": optional: true - checksum: bc96ada0f2eec0bdb1ed0aa0ad03e7d8c41f50f3c0869114e5c21c4b428a7a1de476e6858b6d1d308cc70a587fd802b81fd2b6e890c5d9debdc6983ae5ff516e + checksum: f3b60b69e7b105d1a8a00686c6035267bfdd3ab0103146f7b0a0eaaf8d8fb14725a96e312cb5feedc5d0d8660db4b370f63b54e4cbf48236e1ed641f5177c63c languageName: node linkType: hard -"@mui/material@npm:^5.11.14": - version: 5.11.14 - resolution: "@mui/material@npm:5.11.14" +"@mui/material@npm:^5.12.0": + version: 5.12.0 + resolution: "@mui/material@npm:5.12.0" dependencies: "@babel/runtime": ^7.21.0 - "@mui/base": 5.0.0-alpha.122 - "@mui/core-downloads-tracker": ^5.11.14 - "@mui/system": ^5.11.14 - "@mui/types": ^7.2.3 - "@mui/utils": ^5.11.13 + "@mui/base": 5.0.0-alpha.125 + "@mui/core-downloads-tracker": ^5.12.0 + "@mui/system": ^5.12.0 + "@mui/types": ^7.2.4 + "@mui/utils": ^5.12.0 "@types/react-transition-group": ^4.4.5 clsx: ^1.2.1 - csstype: ^3.1.1 + csstype: ^3.1.2 prop-types: ^15.8.1 react-is: ^18.2.0 react-transition-group: ^4.4.5 @@ -2344,16 +2242,16 @@ __metadata: optional: true "@types/react": optional: true - checksum: 48fdd56ee55da6d551b8b716b8a080afe2276a62e0441efdd58be3b10ab1204d196a8ecc5f35ac23b8e9c7f5d6884ce37966cdcf8846771fe8ccc5ca626a8e1e + checksum: 9e25d90a9f72974f657f12086bda8518f1f0e4907f2194540ff18ab88a24fed2e61ae2c99ad5df545110f5c5712bbbf12bfd40c01422262107eff430a34832a6 languageName: node linkType: hard -"@mui/private-theming@npm:^5.11.13": - version: 5.11.13 - resolution: "@mui/private-theming@npm:5.11.13" +"@mui/private-theming@npm:^5.12.0": + version: 5.12.0 + resolution: "@mui/private-theming@npm:5.12.0" dependencies: "@babel/runtime": ^7.21.0 - "@mui/utils": ^5.11.13 + "@mui/utils": ^5.12.0 prop-types: ^15.8.1 peerDependencies: "@types/react": ^17.0.0 || ^18.0.0 @@ -2361,17 +2259,17 @@ __metadata: peerDependenciesMeta: "@types/react": optional: true - checksum: 9e5e02c6482945d9fa52e920fb206fb032d1b1df4bb06ea9d032babb53ed171e3b5a7969091072a5d04b0ab52c90f01ba51b90ba27730019d3f7eccc49ca4628 + checksum: 761bc7a57e1643c2c4c327886882fa5efc7bacae1c6fffe6be4197f49d337261c916a883d96996445efcdedc0672251725c1e5b264b6250d6c9527fd0cafcc62 languageName: node linkType: hard -"@mui/styled-engine@npm:^5.11.11": - version: 5.11.11 - resolution: "@mui/styled-engine@npm:5.11.11" +"@mui/styled-engine@npm:^5.12.0": + version: 5.12.0 + resolution: "@mui/styled-engine@npm:5.12.0" dependencies: "@babel/runtime": ^7.21.0 - "@emotion/cache": ^11.10.5 - csstype: ^3.1.1 + "@emotion/cache": ^11.10.7 + csstype: ^3.1.2 prop-types: ^15.8.1 peerDependencies: "@emotion/react": ^11.4.1 @@ -2382,21 +2280,21 @@ __metadata: optional: true "@emotion/styled": optional: true - checksum: 63b71aafe79afbe1638a31d9cc1361d11edd5b4a8eacc50da86d83b5db11c9a1713c5744d1533360488aef85afc8d4a5429517447b78b598493c7a7d639390dd + checksum: 4a415473cf62aa05012f667dd2e9b1dc2fb175be5b0c4d0b8df541e2dac3d7db410e920e0d5910c8e2b8996a4fb51f74d79483e2878a9b5c0d334498f5537d74 languageName: node linkType: hard -"@mui/system@npm:^5.11.14": - version: 5.11.14 - resolution: "@mui/system@npm:5.11.14" +"@mui/system@npm:^5.12.0": + version: 5.12.0 + resolution: "@mui/system@npm:5.12.0" dependencies: "@babel/runtime": ^7.21.0 - "@mui/private-theming": ^5.11.13 - "@mui/styled-engine": ^5.11.11 - "@mui/types": ^7.2.3 - "@mui/utils": ^5.11.13 + "@mui/private-theming": ^5.12.0 + "@mui/styled-engine": ^5.12.0 + "@mui/types": ^7.2.4 + "@mui/utils": ^5.12.0 clsx: ^1.2.1 - csstype: ^3.1.1 + csstype: ^3.1.2 prop-types: ^15.8.1 peerDependencies: "@emotion/react": ^11.5.0 @@ -2410,25 +2308,25 @@ __metadata: optional: true "@types/react": optional: true - checksum: a9df588ee7358438244ba5115f1f3bfe548b4c9077280204b6f6d4b98f20fd93f76bc36bf1430848b64e5c3a495ecb0e5000379932faa3dfb92360a34262f301 + checksum: c8ba7af5e9118114fdab922f57ddee23f43a1b0a7cfa9c963ca7bfcb233f95b8bfdef688f73aa2972e787e8ba9d5f3d7c6b5824d7c396de779b0ebaa55625f6b languageName: node linkType: hard -"@mui/types@npm:^7.2.3": - version: 7.2.3 - resolution: "@mui/types@npm:7.2.3" +"@mui/types@npm:^7.2.4": + version: 7.2.4 + resolution: "@mui/types@npm:7.2.4" peerDependencies: "@types/react": "*" peerDependenciesMeta: "@types/react": optional: true - checksum: b8511cb78f8df25c8978317ad3fd585c782116b657f2d32233352c09d415c77040e532f41bbe96de6ad46be87138767d3129a9f0de3561900a9a64db7693bce4 + checksum: 16bea0547492193a22fd1794382f314698a114f6c673825314c66b56766c3a9d305992cc495684722b7be16a1ecf7e6e48a79caa64f90c439b530e8c02611a61 languageName: node linkType: hard -"@mui/utils@npm:^5.11.13": - version: 5.11.13 - resolution: "@mui/utils@npm:5.11.13" +"@mui/utils@npm:^5.12.0": + version: 5.12.0 + resolution: "@mui/utils@npm:5.12.0" dependencies: "@babel/runtime": ^7.21.0 "@types/prop-types": ^15.7.5 @@ -2437,7 +2335,7 @@ __metadata: react-is: ^18.2.0 peerDependencies: react: ^17.0.0 || ^18.0.0 - checksum: 0f403f2635fd5cd39c013b9d4defa2cf1ecc023e35b8c9866d6123792480dcafe47207e43420c10b0d030e64df31e78adfdb8248e2476da27f07d80ed0b44927 + checksum: 87b2c7468803b083f50af28d7c215c45291e73fef16570848b596d0f1cde1fc613c20e8951f431217b31451de254744abd50eda5013dedec4982420b5bf1c6b6 languageName: node linkType: hard @@ -2495,10 +2393,10 @@ __metadata: languageName: node linkType: hard -"@popperjs/core@npm:^2.11.6": - version: 2.11.6 - resolution: "@popperjs/core@npm:2.11.6" - checksum: 47fb328cec1924559d759b48235c78574f2d71a8a6c4c03edb6de5d7074078371633b91e39bbf3f901b32aa8af9b9d8f82834856d2f5737a23475036b16817f0 +"@popperjs/core@npm:^2.11.7": + version: 2.11.7 + resolution: "@popperjs/core@npm:2.11.7" + checksum: 5b6553747899683452a1d28898c1b39173a4efd780e74360bfcda8eb42f1c5e819602769c81a10920fc68c881d07fb40429604517d499567eac079cfa6470f19 languageName: node linkType: hard @@ -2583,10 +2481,10 @@ __metadata: languageName: node linkType: hard -"@types/estree@npm:^0.0.51": - version: 0.0.51 - resolution: "@types/estree@npm:0.0.51" - checksum: e56a3bcf759fd9185e992e7fdb3c6a5f81e8ff120e871641607581fb3728d16c811702a7d40fa5f869b7f7b4437ab6a87eb8d98ffafeee51e85bbe955932a189 +"@types/estree@npm:^1.0.0": + version: 1.0.0 + resolution: "@types/estree@npm:1.0.0" + checksum: 910d97fb7092c6738d30a7430ae4786a38542023c6302b95d46f49420b797f21619cdde11fa92b338366268795884111c2eb10356e4bd2c8ad5b92941e9e6443 languageName: node linkType: hard @@ -3579,24 +3477,10 @@ __metadata: languageName: node linkType: hard -"caniuse-lite@npm:^1.0.30001265": - version: 1.0.30001270 - resolution: "caniuse-lite@npm:1.0.30001270" - checksum: bee685ddf96f707f124c417f9bf7d84e4e57d5cfeaa3d0ccb79c50a09d7c74786fbe7ec89d733ccc1d0fddd593e9eb3fded5ae12b1ad5a3998a32eecbe0b191c - languageName: node - linkType: hard - -"caniuse-lite@npm:^1.0.30001332": - version: 1.0.30001335 - resolution: "caniuse-lite@npm:1.0.30001335" - checksum: fe08b49ec6cb76cc69958ff001cf89d0a8ef9f35e0c8028b65981585046384f76e007d64dea372a34ca56d91caa83cc614c00779fe2b4d378aa0e68696374f67 - languageName: node - linkType: hard - -"caniuse-lite@npm:^1.0.30001400": - version: 1.0.30001414 - resolution: "caniuse-lite@npm:1.0.30001414" - checksum: 97210cfd15ded093b20c33d35bef9711a88402c3345411dad420c991a41a3e38ad17fd66721e8334c86e9b2e4aa2c1851d3631f1441afb73b92d93b2b8ca890d +"caniuse-lite@npm:^1.0.30001265, caniuse-lite@npm:^1.0.30001332, caniuse-lite@npm:^1.0.30001400": + version: 1.0.30001478 + resolution: "caniuse-lite@npm:1.0.30001478" + checksum: 27a370dcb32a6a35e186307aabc570da1cd0fccc849913665e7df6822a87286de99509b163304e0586c23c539a991717fb68ed84b85bbd21b2cb86475ae5ffb2 languageName: node linkType: hard @@ -3977,10 +3861,10 @@ __metadata: languageName: node linkType: hard -"csstype@npm:^3.1.1": - version: 3.1.1 - resolution: "csstype@npm:3.1.1" - checksum: 1f7b4f5fdd955b7444b18ebdddf3f5c699159f13e9cf8ac9027ae4a60ae226aef9bbb14a6e12ca7dba3358b007cee6354b116e720262867c398de6c955ea451d +"csstype@npm:^3.1.2": + version: 3.1.2 + resolution: "csstype@npm:3.1.2" + checksum: e1a52e6c25c1314d6beef5168da704ab29c5186b877c07d822bd0806717d9a265e8493a2e35ca7e68d0f5d472d43fac1cdce70fd79fd0853dff81f3028d857b5 languageName: node linkType: hard @@ -4318,10 +4202,10 @@ __metadata: languageName: node linkType: hard -"es-module-lexer@npm:^0.9.0": - version: 0.9.3 - resolution: "es-module-lexer@npm:0.9.3" - checksum: 84bbab23c396281db2c906c766af58b1ae2a1a2599844a504df10b9e8dc77ec800b3211fdaa133ff700f5703d791198807bba25d9667392d27a5e9feda344da8 +"es-module-lexer@npm:^1.2.1": + version: 1.2.1 + resolution: "es-module-lexer@npm:1.2.1" + checksum: c4145b853e1491eaa5d591e4580926d242978c38071ad3d09165c3b6d50314cc0ae3bf6e1dec81a9e53768b9299df2063d2e4a67d7742a5029ddeae6c4fc26f0 languageName: node linkType: hard @@ -4888,16 +4772,16 @@ fsevents@~2.3.2: version: 0.0.0-use.local resolution: "hiv-platform@workspace:." dependencies: - "@babel/core": ^7.21.3 + "@babel/core": ^7.21.4 "@babel/plugin-proposal-class-properties": ^7.18.6 - "@babel/preset-env": ^7.20.2 + "@babel/preset-env": ^7.21.4 "@babel/preset-react": ^7.18.6 "@emotion/react": ^11.10.6 "@emotion/styled": ^11.10.6 - "@mui/icons-material": ^5.11.11 - "@mui/lab": 5.0.0-alpha.124 - "@mui/material": ^5.11.14 - "@mui/system": ^5.11.14 + "@mui/icons-material": ^5.11.16 + "@mui/lab": 5.0.0-alpha.126 + "@mui/material": ^5.12.0 + "@mui/system": ^5.12.0 "@types/webpack-merge": ^5.0.0 babel-loader: ^9.1.2 clean-webpack-plugin: ^4.0.0 @@ -4910,17 +4794,17 @@ fsevents@~2.3.2: html-webpack-plugin: ^5.5.0 jquery: ^3.6.4 lodash: ^4.17.21 - mobx: ^6.8.0 + mobx: ^6.9.0 mobx-react: ^7.6.0 react: ^18.2.0 react-dom: ^18.2.0 serializr: ^3.0.2 terser-webpack-plugin: ^5.3.7 tslib: ^2.5.0 - webpack: ^5.76.3 + webpack: ^5.79.0 webpack-bundle-analyzer: ^4.8.0 webpack-cli: ^5.0.1 - webpack-dev-server: ^4.13.1 + webpack-dev-server: ^4.13.2 webpack-merge: ^5.8.0 webpack-plugin-modern-npm: ^0.1.0 languageName: unknown @@ -5411,17 +5295,6 @@ fsevents@~2.3.2: languageName: node linkType: hard -"jest-worker@npm:^27.0.6": - version: 27.3.1 - resolution: "jest-worker@npm:27.3.1" - dependencies: - "@types/node": "*" - merge-stream: ^2.0.0 - supports-color: ^8.0.0 - checksum: 125d46939d894ef8cf1ffbbf6c63cee10f28218698db3949704d5f613a353f56502da50d3425ec722927c7948c5742d0306f63ad5064a432574b8b217b9ceeba - languageName: node - linkType: hard - "jest-worker@npm:^27.4.5": version: 27.5.1 resolution: "jest-worker@npm:27.5.1" @@ -5944,10 +5817,10 @@ fsevents@~2.3.2: languageName: node linkType: hard -"mobx@npm:^6.8.0": - version: 6.8.0 - resolution: "mobx@npm:6.8.0" - checksum: f09bb079292ea59023a7e35a9c73ed577e3de9a0175ec3d5a2adc8192e2e3a352b29ec0981ee06d1d63f701f81bb7fc6cc19fd9089edf84a754a8a75ef00ef7f +"mobx@npm:^6.9.0": + version: 6.9.0 + resolution: "mobx@npm:6.9.0" + checksum: ae03e95334887305c49d3e63e54f5e5e571b21f6a649fc0b7f6f1afd83470db63d8ab3e7c4b9e6ace2aaf6eded5255878c5f69d293efa9fd35af3d640b4a4756 languageName: node linkType: hard @@ -6195,15 +6068,6 @@ fsevents@~2.3.2: languageName: node linkType: hard -"p-limit@npm:^3.1.0": - version: 3.1.0 - resolution: "p-limit@npm:3.1.0" - dependencies: - yocto-queue: ^0.1.0 - checksum: 7c3690c4dbf62ef625671e20b7bdf1cbc9534e83352a2780f165b0d3ceba21907e77ad63401708145ca4e25bfc51636588d89a8c0aeb715e6c37d1c066430360 - languageName: node - linkType: hard - "p-locate@npm:^4.1.0": version: 4.1.0 resolution: "p-locate@npm:4.1.0" @@ -6632,6 +6496,15 @@ fsevents@~2.3.2: languageName: node linkType: hard +"regenerate-unicode-properties@npm:^10.1.0": + version: 10.1.0 + resolution: "regenerate-unicode-properties@npm:10.1.0" + dependencies: + regenerate: ^1.4.2 + checksum: b1a8929588433ab8b9dc1a34cf3665b3b472f79f2af6ceae00d905fc496b332b9af09c6718fb28c730918f19a00dc1d7310adbaa9b72a2ec7ad2f435da8ace17 + languageName: node + linkType: hard + "regenerate-unicode-properties@npm:^9.0.0": version: 9.0.0 resolution: "regenerate-unicode-properties@npm:9.0.0" @@ -6662,12 +6535,12 @@ fsevents@~2.3.2: languageName: node linkType: hard -"regenerator-transform@npm:^0.15.0": - version: 0.15.0 - resolution: "regenerator-transform@npm:0.15.0" +"regenerator-transform@npm:^0.15.1": + version: 0.15.1 + resolution: "regenerator-transform@npm:0.15.1" dependencies: "@babel/runtime": ^7.8.4 - checksum: 86e54849ab1167618d28bb56d214c52a983daf29b0d115c976d79840511420049b6b42c9ebdf187defa8e7129bdd74b6dd266420d0d3868c9fa7f793b5d15d49 + checksum: 2d15bdeadbbfb1d12c93f5775493d85874dbe1d405bec323da5c61ec6e701bc9eea36167483e1a5e752de9b2df59ab9a2dfff6bf3784f2b28af2279a673d29a4 languageName: node linkType: hard @@ -6699,6 +6572,20 @@ fsevents@~2.3.2: languageName: node linkType: hard +"regexpu-core@npm:^5.3.1": + version: 5.3.2 + resolution: "regexpu-core@npm:5.3.2" + dependencies: + "@babel/regjsgen": ^0.8.0 + regenerate: ^1.4.2 + regenerate-unicode-properties: ^10.1.0 + regjsparser: ^0.9.1 + unicode-match-property-ecmascript: ^2.0.0 + unicode-match-property-value-ecmascript: ^2.1.0 + checksum: 95bb97088419f5396e07769b7de96f995f58137ad75fac5811fb5fe53737766dfff35d66a0ee66babb1eb55386ef981feaef392f9df6d671f3c124812ba24da2 + languageName: node + linkType: hard + "regjsgen@npm:^0.5.2": version: 0.5.2 resolution: "regjsgen@npm:0.5.2" @@ -6735,6 +6622,17 @@ fsevents@~2.3.2: languageName: node linkType: hard +"regjsparser@npm:^0.9.1": + version: 0.9.1 + resolution: "regjsparser@npm:0.9.1" + dependencies: + jsesc: ~0.5.0 + bin: + regjsparser: bin/parser + checksum: 5e1b76afe8f1d03c3beaf9e0d935dd467589c3625f6d65fb8ffa14f224d783a0fed4bf49c2c1b8211043ef92b6117313419edf055a098ed8342e340586741afc + languageName: node + linkType: hard + "relateurl@npm:^0.2.7": version: 0.2.7 resolution: "relateurl@npm:0.2.7" @@ -7000,15 +6898,6 @@ resolve@^1.14.2: languageName: node linkType: hard -"serialize-javascript@npm:^6.0.0": - version: 6.0.0 - resolution: "serialize-javascript@npm:6.0.0" - dependencies: - randombytes: ^2.1.0 - checksum: 56f90b562a1bdc92e55afb3e657c6397c01a902c588c0fe3d4c490efdcc97dcd2a3074ba12df9e94630f33a5ce5b76a74784a7041294628a6f4306e0ec84bf93 - languageName: node - linkType: hard - "serialize-javascript@npm:^6.0.1": version: 6.0.1 resolution: "serialize-javascript@npm:6.0.1" @@ -7193,7 +7082,7 @@ resolve@^1.14.2: languageName: node linkType: hard -"source-map@npm:^0.6.0, source-map@npm:^0.6.1, source-map@npm:~0.6.0": +"source-map@npm:^0.6.0, source-map@npm:~0.6.0": version: 0.6.1 resolution: "source-map@npm:0.6.1" checksum: 59ce8640cf3f3124f64ac289012c2b8bd377c238e316fb323ea22fbfe83da07d81e000071d7242cad7a23cd91c7de98e4df8830ec3f133cb6133a5f6e9f67bc2 @@ -7383,29 +7272,6 @@ resolve@^1.14.2: languageName: node linkType: hard -"terser-webpack-plugin@npm:^5.1.3": - version: 5.2.4 - resolution: "terser-webpack-plugin@npm:5.2.4" - dependencies: - jest-worker: ^27.0.6 - p-limit: ^3.1.0 - schema-utils: ^3.1.1 - serialize-javascript: ^6.0.0 - source-map: ^0.6.1 - terser: ^5.7.2 - peerDependencies: - webpack: ^5.1.0 - peerDependenciesMeta: - "@swc/core": - optional: true - esbuild: - optional: true - uglify-js: - optional: true - checksum: ddbcdd28f9620ecacc9b50ff31776485ad012c7f1cbef53825e4fc334a78d82e2344346e5595751916494951bc64717004c07b03ad88deeb3df4a5f76c559cc9 - languageName: node - linkType: hard - "terser-webpack-plugin@npm:^5.3.7": version: 5.3.7 resolution: "terser-webpack-plugin@npm:5.3.7" @@ -7548,6 +7414,13 @@ resolve@^1.14.2: languageName: node linkType: hard +"unicode-match-property-value-ecmascript@npm:^2.1.0": + version: 2.1.0 + resolution: "unicode-match-property-value-ecmascript@npm:2.1.0" + checksum: 8d6f5f586b9ce1ed0e84a37df6b42fdba1317a05b5df0c249962bd5da89528771e2d149837cad11aa26bcb84c35355cb9f58a10c3d41fa3b899181ece6c85220 + languageName: node + linkType: hard + "unicode-property-aliases-ecmascript@npm:^2.0.0": version: 2.0.0 resolution: "unicode-property-aliases-ecmascript@npm:2.0.0" @@ -7733,9 +7606,9 @@ resolve@^1.14.2: languageName: node linkType: hard -"webpack-dev-server@npm:^4.13.1": - version: 4.13.1 - resolution: "webpack-dev-server@npm:4.13.1" +"webpack-dev-server@npm:^4.13.2": + version: 4.13.2 + resolution: "webpack-dev-server@npm:4.13.2" dependencies: "@types/bonjour": ^3.5.9 "@types/connect-history-api-fallback": ^1.3.5 @@ -7776,7 +7649,7 @@ resolve@^1.14.2: optional: true bin: webpack-dev-server: bin/webpack-dev-server.js - checksum: f70611544b7d964a31eb3d934d7c2b376b97e6927a89e03b2e21cfa5812bb639625cd18fd350de1604ba6c455b324135523a894032f28c69d90d90682e4f3b7d + checksum: 9bf573abf05b0e0f1e8219820f6264e25a0f8ee6aebed3c0d0449c24a37f88b575972e0a2bec426112ee37d48c8f5090e7754aa1873206d3c9b6344a54718232 languageName: node linkType: hard @@ -7804,12 +7677,12 @@ resolve@^1.14.2: languageName: node linkType: hard -"webpack@npm:^5.76.3": - version: 5.76.3 - resolution: "webpack@npm:5.76.3" +"webpack@npm:^5.79.0": + version: 5.79.0 + resolution: "webpack@npm:5.79.0" dependencies: "@types/eslint-scope": ^3.7.3 - "@types/estree": ^0.0.51 + "@types/estree": ^1.0.0 "@webassemblyjs/ast": 1.11.1 "@webassemblyjs/wasm-edit": 1.11.1 "@webassemblyjs/wasm-parser": 1.11.1 @@ -7818,7 +7691,7 @@ resolve@^1.14.2: browserslist: ^4.14.5 chrome-trace-event: ^1.0.2 enhanced-resolve: ^5.10.0 - es-module-lexer: ^0.9.0 + es-module-lexer: ^1.2.1 eslint-scope: 5.1.1 events: ^3.2.0 glob-to-regexp: ^0.4.1 @@ -7829,7 +7702,7 @@ resolve@^1.14.2: neo-async: ^2.6.2 schema-utils: ^3.1.0 tapable: ^2.1.1 - terser-webpack-plugin: ^5.1.3 + terser-webpack-plugin: ^5.3.7 watchpack: ^2.4.0 webpack-sources: ^3.2.3 peerDependenciesMeta: @@ -7837,7 +7710,7 @@ resolve@^1.14.2: optional: true bin: webpack: bin/webpack.js - checksum: 363f536b56971d056e34ab4cffa4cbc630b220e51be1a8c3adea87d9f0b51c49cfc7c3720d6614a1fd2c8c63f1ab3100db916fe8367c8bb9299327ff8c3f856d + checksum: 3fbd82dadc75c8f823c900c5d50263830b77e6be6a8abb26eec12f93dec94c2f07fa44c1ef1f28319682404e532d9707ed04ed6cb89af87ca7d544e435d8ef95 languageName: node linkType: hard @@ -7944,13 +7817,6 @@ resolve@^1.14.2: languageName: node linkType: hard -"yocto-queue@npm:^0.1.0": - version: 0.1.0 - resolution: "yocto-queue@npm:0.1.0" - checksum: f77b3d8d00310def622123df93d4ee654fc6a0096182af8bd60679ddcdfb3474c56c6c7190817c84a2785648cdee9d721c0154eb45698c62176c322fb46fc700 - languageName: node - linkType: hard - "zip-stream@npm:^4.1.0": version: 4.1.0 resolution: "zip-stream@npm:4.1.0" diff --git a/Server/DESCRIPTION b/Server/DESCRIPTION index 124cd678..f36220e7 100644 --- a/Server/DESCRIPTION +++ b/Server/DESCRIPTION @@ -2,7 +2,7 @@ Package: hivPlatform Type: Package Title: HIV Platform Version: 3.0.0 -Date: 2023-03-26 +Date: 2023-04-15 Authors@R: c(person('Magdalena', 'Rosinska', email = 'mrosinska@pzh.gov.pl', role = c('aut', 'cph')), person('Nikos', 'Pantazis', email = 'npantaz@med.uoa.gr', role = c('aut')), person('Ard', 'van Sighem', diff --git a/Server/NAMESPACE b/Server/NAMESPACE index 183ff5b9..291fb355 100644 --- a/Server/NAMESPACE +++ b/Server/NAMESPACE @@ -19,6 +19,7 @@ export(GetAvailableStrata) export(GetAverageHIVModelOutputs) export(GetAveragePreMigrCounts) export(GetBootstrapFitStats) +export(GetCuts) export(GetDate) export(GetDiagnosisYearDensityPlot) export(GetHIVPlotData) diff --git a/Server/R/GetCuts.R b/Server/R/GetCuts.R new file mode 100644 index 00000000..611951bc --- /dev/null +++ b/Server/R/GetCuts.R @@ -0,0 +1,30 @@ +#' GetCuts +#' +#' Get cuts for VarX to be used in RD estimation with time trend +#' +#' @param data data +#' @param count count of cuts +#' +#' @return vector of integers +#' +#' @examples +#' data <- data.table::data.table( +#' VarXs = 58L:68L +#' ) +#' GetCuts(data, count = 3L) +#' +#' @export +GetCuts <- function( + data, + count = 3L +) { + dt <- data[, .(Count = .N), keyby = .(VarXs)] + groupSize <- ceiling(nrow(dt) / count) + dt[, Id := seq_len(.N)] + dt[, tgroup := (Id - 1L) %/% groupSize + 1L] + dt[, nextTGroup := shift(tgroup, -1)] + dt[is.na(nextTGroup), nextTGroup := tgroup + 1] + dt[, groupChange := tgroup != nextTGroup] + cuts <- dt[groupChange == TRUE, sort(unique(VarXs))] + return(cuts) +} diff --git a/Server/inst/adjustments/2.RD_trend.R b/Server/inst/adjustments/2.RD_trend.R index 5d01f56a..4e73d76e 100644 --- a/Server/inst/adjustments/2.RD_trend.R +++ b/Server/inst/adjustments/2.RD_trend.R @@ -205,7 +205,8 @@ list( paste(stratVarNamesTrend, collapse = ' + ') ) ) - cuts <- compData[, c(max(VarXs) - 7L, max(VarXs) - 3L, max(VarXs))] + cuts <- GetCuts(data = copy(compData), count = 3L) + PrintAlert('Cuts determined: {cuts}') tGroups <- seq_along(cuts) # Run fitting per imputation separately diff --git a/Server/inst/app/www/js/main.js b/Server/inst/app/www/js/main.js index 49a430e5..b9610ccc 100644 --- a/Server/inst/app/www/js/main.js +++ b/Server/inst/app/www/js/main.js @@ -1 +1 @@ -(()=>{"use strict";var e,t,a,r={8034:(e,t,a)=>{var r=a(9953),n=a(9431),l=a(6499);const i=jQuery;var s=a.n(i),o=a(5288),m=a(8378),c=a(3646),u=a(8428),d=a(8553),g=a(4015),p=a(1759),h=a(3666),E=a(3645),M=a(4631),S=a(3853),y=a(1050),D=a(5250),b=a(3029),f=a(4808),P=a(5100);const x=e=>null==e;function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{pages:t,activePageId:a,onPageChange:n}=e;return r.createElement("div",{style:{minWidth:"220px",maxWidth:"220px",backgroundColor:"white",padding:"12px 8px 12px 12px"}},r.createElement(S.Z,{nonLinear:!0,activeStep:a,orientation:"vertical"},t.map(((e,t)=>{const a={};return x(e.description)||(a.optional=r.createElement(h.Z,{width:"150px",textAlign:"left"},r.createElement(p.Z,{variant:"caption"},e.description))),r.createElement(y.Z,{key:t,completed:e.completed,disabled:e.disabled},r.createElement(D.Z,C({onClick:()=>n(t)},a),e.title),e.subPages.length>0&&r.createElement(P.Z,null,r.createElement(b.Z,null,e.subPages.map(((a,l)=>r.createElement(f.ZP,{button:!0,key:l,selected:l===e.activeSubPageId,disabled:a.disabled,onClick:()=>n(t,l)},a.title))))))}))))}));var A=a(3697),v=a(8611),I=a(8201),R=a(7606),T=a(7505);const N=({progress:e})=>x(e)?null:r.createElement(T.Z,{variant:"determinate",value:100*e,color:"secondary",sx:{marginTop:"10px",marginBottom:"10px",height:"5px"}}),F=(0,l.Pi)((e=>{const{appMgr:t,open:a,onClose:n}=e,[l,i]=r.useState(null);return r.createElement(A.ZP,{anchor:"right",open:a,onClose:n},r.createElement(h.Z,{width:300,p:2},r.createElement(b.Z,{dense:!0},r.createElement(v.Z,null,r.createElement(p.Z,{variant:"button"},"Application")),r.createElement(f.ZP,null,r.createElement(R.Z,{color:"primary",size:"small",component:"label",onClick:()=>t.saveState()},"Save state")),r.createElement(f.ZP,null,r.createElement(R.Z,{color:"primary",size:"small",component:"label"},"Load state",r.createElement("input",{hidden:!0,type:"file",accept:".rds",onChange:e=>t.loadState(e.target),id:"loadStateBtn"}))),r.createElement(N,{progress:t.loadStateProgress}),r.createElement(f.ZP,null,r.createElement(R.Z,{color:"primary",size:"small",component:"a",href:"./",target:"_blank"},"Open another instance"))),r.createElement(v.Z,null,r.createElement(p.Z,{variant:"button"},"Documentation")),r.createElement(f.ZP,null,r.createElement(R.Z,{color:"primary",size:"small",component:"a",href:"./www/docs/HIVPlatform_2.0.0_manual.pdf",target:"_blank"},"Open manual pdf")),r.createElement(v.Z,null,r.createElement(p.Z,{variant:"button"},"Options")),r.createElement(f.ZP,null,r.createElement(I.Z,{label:"Seed value",helperText:"Leave empty value to enable random seed",type:"number",fullWidth:!0,defaultValue:t.seedText,onChange:e=>i(parseInt(e.target.value))})),r.createElement(f.ZP,null,r.createElement(R.Z,{color:"primary",size:"small",onClick:()=>t.btnClicked("seed",l)},"Apply"))))}));var O=a(43),w=a(2580),Y=a(1310),_=a(2093),L=a(2289),j=a(434),B=a(5126);const k=e=>{const{title:t,description:a,moreText:n,image:l,onClick:i}=e,[s,o]=r.useState(!1);return r.createElement(w.Z,null,r.createElement(Y.Z,{onClick:i},r.createElement(L.Z,{style:{height:300},image:l}),r.createElement(_.Z,null,r.createElement(p.Z,{gutterBottom:!0,variant:"h5",component:"h2"},t),r.createElement(p.Z,{variant:"body2",color:"textSecondary",component:"p"},a))),r.createElement(j.Z,{disableSpacing:!0},r.createElement(R.Z,{onClick:()=>o(!s),size:"small",color:"primary"},s?"Read less...":"Read more...")),r.createElement(B.Z,{in:s,timeout:"auto",unmountOnExit:!0},r.createElement(_.Z,null,n)))},U=e=>{const t=e.appMgr,a=()=>t.uiStateMgr.setActivePageId(1),n=r.createElement(r.Fragment,null,r.createElement("p",null,"The ",r.createElement("b",null,"HIV Estimates Accuracy Tool")," is an application that uses statistical methods to calculate adjusted estimates from HIV surveillance data."),r.createElement("p",null,"Missing data are a well-recognised problem within surveillance systems. When values for some variables are missing and cases with missing values are excluded from analysis, it may lead to biased and potentially less precise estimates. Reporting delay, the time from case diagnosis to notification, can lead to problems when analysing the most recent years given that information on certain cases or variables may not have been collected yet due to national reporting process characteristics."),r.createElement("p",null,"With this tool you can correct missing data for the variables age, gender, transmission category and CD4 count. Additionally, the tool allows for correction of delays in reporting. The adjustments may be used separately or in combination."),r.createElement("p",null,"The tool accepts HIV case-based surveillance data and requires a minimum set of variables routinely collected at national public health systems."),r.createElement("p",null,"A complete instruction ",r.createElement("a",{href:"#"},"manual")," will guide you through the tool. The manual can also be consulted to interpret the outputs. The outputs include results in the form of a report containing tables and graphs, and datasets in various file formats, in which the corrections have been incorporated and are ready for further analysis.")),l=r.createElement(r.Fragment,null,r.createElement("p",null,"The ",r.createElement("b",null,"HIV Modelling Tool")," is an application that can estimate How many people are getting infected with HIV, how many are being missed or not being reported and how many should be on treatment."),r.createElement("p",null,"The tool uses CD4 back calculation methods to estimate the number of people living with HIV, including those not yet diagnosed. The tool can also estimate the annual number of new HIV infections, the average time between infection and diagnosis, and the number of undiagnosed people CD4 category."),r.createElement("p",null,"The tool accepts a minimum required set of variables: HIV cases, AIDS cases and HIVAIDS cases and, if available, CD4 count at HIV diagnosis. The tool uses aggregated HIV surveillance data or case-based data. Data adjusted by the Accuracy tool can thereafter be used as input data for this tool. When data on these parameters are provided, the tool also accounts for mortality and migration."),r.createElement("p",null,"A complete instruction manual will guide you through the tool. The ",r.createElement("a",{href:"#"},"manual")," can also be consulted to interpret the outputs and to aid in the selection of some parameters using clear and well instructed examples.")),i=r.createElement(r.Fragment,null,r.createElement("p",null,"The two tools were combined into one flexible tool that manages all inputs, adjustments and outputs in one simple workflow. After uploading HIV cased-based data, the data can be initially adjusted for missing information and/or reporting delay and then automatically used as input data to the modelling tool, where estimates of HIV incidence, prevalence and the undiagnosed number of people living with HIV can be made."));return r.createElement(O.ZP,{container:!0,direction:"row",justifyContent:"space-evenly",alignItems:"baseline"},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{width:"50%",m:"auto",p:5},r.createElement("p",null,"HIV continues to be of significant public health importance in the European Union as well as globally. To evaluate and direct prevention efforts, it is crucial to understand the pattern of new HIV infections, or HIV incidence, among groups most at risk of infection. It is also important to estimate the size of the total population of persons living with HIV, including those that are not yet diagnosed, in order to understand the burden of HIV and the need for antiretroviral treatment and other HIV-related care. Accurate surveillance data are crucial to achieve reliable parameter estimates."),r.createElement("p",null,"The ECDC HIV Modelling Platform provides a set of tools to support users to obtain reliable parameter estimates to appropriately direct and evaluate public health responses."))),r.createElement(O.ZP,{item:!0,xs:3},r.createElement(k,{title:"Accuracy",description:"Adjust case-based data for missing values and reporting delay",moreText:n,image:"www/img/accuracy.png",onClick:a})),r.createElement(O.ZP,{item:!0,xs:3},r.createElement(k,{title:"Modelling",description:"Estimate number of PLHIV and incidence",moreText:l,image:"www/img/modelling.png",onClick:a})),r.createElement(O.ZP,{item:!0,xs:3},r.createElement(k,{title:"All-in-one",description:"Accuracy adjustements and modelling integrated in one tool",moreText:i,image:"www/img/all-in-one.png",onClick:a})))};var H=a(4351);function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{children:t,...a}=e;return r.createElement(p.Z,G({component:"div",role:"tabpanel",style:{flexGrow:1}},a),t)};var z=a(3682),W=a(911),Q=a(7401),J=a(1592),K=a(1012),q=a(7707),X=a(5890),ee=a(8336);function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{children:t,...a}=e;return r.createElement(R.Z,te({variant:"contained",color:"primary",component:"span",sx:{color:"white"}},a),t)};var re=a(6783);function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{valid:t,msg:a,...n}=e;if(x(t))return null;const l=t?"success":"error";return r.createElement(re.Z,ne({severity:l},n,{style:{marginTop:10}}),a)},ie=(e,t=2)=>{if(x(e))return"";if(0===e)return"0 Bytes";const a=t<0?0:t,r=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,r)).toFixed(a))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]};function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(K.Z,se({sx:{width:142,fontWeight:"bold"}},e)),me=e=>r.createElement(K.Z,se({sx:{maxWidth:0,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},e)),ce=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.uiStateMgr.summaryPageEnabled,onClick:()=>t.uiStateMgr.setActivePageId(2)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Upload case-based data")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement("input",{style:{display:"none"},id:"caseUploadBtn",className:"uploadBtn",type:"file",accept:".csv, .rds, .txt, .xls, .xlsx, .zip",onChange:e=>t.caseBasedDataMgr.uploadData(e.target)}),r.createElement(z.Z,{title:"Select case-based data file",arrow:!0},r.createElement("label",{htmlFor:"caseUploadBtn"},r.createElement(ae,{sx:{marginBottom:"6px",color:"white"}},r.createElement(ee.Z,null)," Upload data"))),r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Maximum file size: 100MB",r.createElement("br",null),"Supported files types: rds, txt, csv, xls, xlsx (uncompressed and zip archives)"),r.createElement(N,{progress:t.caseBasedDataMgr.uploadProgress}),r.createElement(le,{valid:t.caseBasedDataMgr.actionValid,msg:t.caseBasedDataMgr.actionMessage})),r.createElement(O.ZP,{item:!0,xs:10},!t.caseBasedDataMgr.actionValid&&r.createElement(Q.Z,{sx:{color:"#eee",fontSize:"600px"}}),t.caseBasedDataMgr.actionValid&&r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(p.Z,{variant:"overline"},"Uploaded file details"),r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:6},r.createElement(W.Z,null,r.createElement(J.Z,null,r.createElement(q.Z,null,r.createElement(oe,null,"File name"),r.createElement(me,null,t.caseBasedDataMgr.fileName)),r.createElement(q.Z,null,r.createElement(oe,null,"File size"),r.createElement(me,null,ie(t.caseBasedDataMgr.fileSize))),r.createElement(q.Z,null,r.createElement(oe,null,"File type"),r.createElement(me,null,t.caseBasedDataMgr.fileType)),r.createElement(q.Z,null,r.createElement(oe,null,"Number of records"),r.createElement(me,null,t.caseBasedDataMgr.recordCount))))),r.createElement(O.ZP,{item:!0,xs:6},r.createElement(W.Z,null,r.createElement(J.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(oe,null,"Column names")),r.createElement(q.Z,null,r.createElement(me,{sx:{whiteSpace:"normal"}},r.createElement("div",{style:{overflow:"auto",maxHeight:"164px"}},t.caseBasedDataMgr.columnNamesString))))))))))}));var ue=a(2736),de=a(8464),ge=a(8418),pe=a(8874),he=a(5822),Ee=a(3132),Me=a(7084),Se=a(5572);function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{onChange:t,validationFunc:a,helperText:n,...l}=e,[i,s]=r.useState(!1),[o,m]=r.useState(""),c=o||n;return r.createElement(I.Z,ye({},l,{error:i,helperText:c,onChange:e=>{const{value:r}=e.target,l=a(r),i=l!==n,o=!i;s(i),m(l),t&&t(r,o)},inputProps:{autoComplete:"new-password",form:{autoComplete:"off"}}}))})),be=(e,t)=>-1!==t.indexOf(e),fe=e=>Array.isArray(e),Pe=e=>fe(e)?e:[e],xe=(e,t)=>{t=Pe(t);return e.filter(((e,a)=>-1===t.indexOf(a)))},Ce=(0,l.Pi)((e=>{const{i:t,isSelected:a,onSelectClick:n,el:l,appMgr:i}=e,[s,o]=r.useState(""),[m,c]=r.useState([]);r.useEffect((()=>{o(l.GroupedRegionOfOrigin)}),[l.GroupedRegionOfOrigin]),r.useEffect((()=>{c(i.origGroupMgr.usedNames)}),[i.origGroupMgr.usedNames]);const u=i.origGroupMgr.unusedOrigins,d=l.FullRegionOfOrigin.concat(u),g=r.createElement(pe.Z,{inputProps:{"aria-labelledby":`labelId${t}`},color:"primary",checked:a,onClick:n}),p=r.createElement(De,{sx:{width:"100%","& .MuiInputBase-root":{fontSize:"0.75rem"}},helperText:"",value:s,validationFunc:e=>{let a="";return""===(e=e.trim())?a="Name is empty":be(e,xe(m,t))&&(a="Name is used"),a},onChange:(e,a)=>{o(e),a&&i.origGroupMgr.setGroupName(t,e)},onInput:e=>{e.target.value=(""+e.target.value).toUpperCase()}}),h=r.createElement(ge.Z,{sx:{width:"100%",fontSize:"0.75rem"},value:l.MigrantRegionOfOrigin||"",onChange:e=>{const a=""==e.target.value?null:e.target.value;i.origGroupMgr.setMigrantOrigin(t,a)}},r.createElement(he.Z,{value:"",dense:!0}),r.createElement(he.Z,{value:"REPCOUNTRY",dense:!0},"REPCOUNTRY"),r.createElement(he.Z,{value:"EUROPE-NORTH AMERICA",dense:!0},"EUROPE-NORTH AMERICA"),r.createElement(he.Z,{value:"AFRICA",dense:!0},"AFRICA"),r.createElement(he.Z,{value:"ASIA",dense:!0},"ASIA"),r.createElement(he.Z,{value:"CARIBBEAN-LATIN AMERICA",dense:!0},"CARIBBEAN-LATIN AMERICA"),r.createElement(he.Z,{value:"OTHER",dense:!0},"OTHER"),r.createElement(he.Z,{value:"UNK",dense:!0},"UNK")),E=r.createElement(ge.Z,{multiple:!0,renderValue:e=>r.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},e.map((e=>r.createElement(Se.Z,{key:e,label:e,sx:{margin:"2px"},color:"info",size:"small"})))),value:l.FullRegionOfOrigin,sx:{width:"100%",fontSize:"0.75rem","&:before":{borderBottom:"0px solid black"}},onChange:e=>i.origGroupMgr.setGroupOrigin(t,e.target.value)},d.map(((e,t)=>r.createElement(he.Z,{key:t,value:e,dense:!0},e))));return r.createElement(q.Z,{hover:!0,role:"checkbox"},r.createElement(K.Z,{padding:"checkbox",sx:{verticalAlign:"top"}},g),r.createElement(K.Z,{id:`labelId${t}`,scope:"row",sx:{padding:"4px 20px 6px 0px",verticalAlign:"top"}},p),r.createElement(K.Z,{scope:"row",sx:{padding:"4px 4px 6px 0px",verticalAlign:"top"}},h),r.createElement(K.Z,{sx:{padding:"0px 4px 0px 16px",verticalAlign:"top",maxWidth:"300px"}},E),r.createElement(K.Z,{align:"right",sx:{padding:"4px 16px 0px 16px",verticalAlign:"top"}},l.groupCount))})),Ze=e=>{const{selectedCount:t,onAddClick:a,onDeleteClick:n,addDisabled:l}=e,i=0===t;return r.createElement(g.Z,null,r.createElement(p.Z,{variant:"subtitle1",component:"div",style:{flex:"1 1 100%"}},t," selected"),r.createElement(R.Z,{color:"primary",disabled:i,onClick:n},"Delete"),r.createElement(R.Z,{color:"primary",disabled:l,onClick:a},"Add"))},Ae=(e,t)=>{t=Pe(t);return e.filter((e=>-1===t.indexOf(e)))},ve=(0,l.Pi)((e=>{const{appMgr:t}=e,[a,n]=r.useState([]),l=t.origGroupMgr.distributionArray,i=t.origGroupMgr.groupingsJS,s=e=>t=>{let r=[];r=-1===a.indexOf(e)?r.concat(a,e):Ae(a,e),n(r)},o=i.length,m=a.length,c=e=>-1!==a.indexOf(e);return r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:2},r.createElement(p.Z,{variant:"overline"},"Distribution of region of origin"),r.createElement(W.Z,{size:"small"},r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,null,"FullRegionOfOrigin"),r.createElement(K.Z,{align:"right"},"Count"))),r.createElement(J.Z,null,l.map(((e,t)=>r.createElement(q.Z,{key:t},r.createElement(K.Z,null,e.origin),r.createElement(K.Z,{align:"right"},e.count))))))),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(p.Z,{variant:"overline"},"Migrant variable regrouping"),r.createElement(Ee.Z,{sx:{width:"100%",fontSize:"0.75rem"}},r.createElement(ge.Z,{value:t.origGroupMgr.preset,onChange:e=>{const a=e.target.value;t.inputValueSet("groupingPresetSelect",a),t.origGroupMgr.setPreset(a)},sx:{width:"100%",fontSize:"0.75rem"}},r.createElement(v.Z,null,r.createElement(p.Z,{variant:"overline"},"General presets")),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + OTHER",dense:!0},"REPCOUNTRY + UNK + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + SUB-SAHARAN AFRICA + OTHER",dense:!0},"REPCOUNTRY + UNK + SUB-SAHARAN AFRICA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + 3 most prevalent regions + OTHER",dense:!0},"REPCOUNTRY + UNK + 3 most prevalent regions + OTHER"),r.createElement(he.Z,{value:"Custom",dense:!0},"Custom"),r.createElement(v.Z,null,r.createElement(H.Z,null)),r.createElement(v.Z,null,r.createElement(p.Z,{variant:"overline"},"Migrant-module specific presets")),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + AFRICA + ASIA + OTHER",dense:!0},"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + AFRICA + ASIA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-OTHER-NORTH AMERICA + AFRICA + ASIA + OTHER",dense:!0},"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-NORTH AMERICA-OTHER + AFRICA + ASIA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + OTHER",dense:!0},"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + AFRICA + ASIA + CARIBBEAN-LATIN AMERICA + OTHER",dense:!0},"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + AFRICA + ASIA + CARIBBEAN-LATIN AMERICA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-OTHER-NORTH AMERICA + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + OTHER",dense:!0},"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-NORTH AMERICA-OTHER + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-OTHER-NORTH AMERICA + AFRICA + ASIA + CARIBBEAN-LATIN AMERICA + OTHER",dense:!0},"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-NORTH AMERICA-OTHER + AFRICA + ASIA + CARIBBEAN-LATIN AMERICA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + CARIBBEAN-LATIN AMERICA + OTHER",dense:!0},"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + CARIBBEAN-LATIN AMERICA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-OTHER-NORTH AMERICA + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + CARIBBEAN-LATIN AMERICA + OTHER",dense:!0},"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-NORTH AMERICA-OTHER + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + CARIBBEAN-LATIN AMERICA + OTHER")),r.createElement(Me.Z,null,"Select regrouping preset")),r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,{padding:"checkbox"},r.createElement(pe.Z,{inputProps:{"aria-label":"select all"},color:"primary",onClick:e=>{if(e.target.checked){const e=i.map(((e,t)=>t));n(e)}else n([])},checked:o>0&&m===o})),r.createElement(K.Z,{width:250,sx:{padding:"0px 20px 0px 0px"}},"Grouped Region Of Origin"),r.createElement(K.Z,{width:250,padding:"none"},"Region For Migration Module Parameter"),r.createElement(K.Z,null,"FullRegionOfOrigin"),r.createElement(K.Z,{align:"right",width:"10%"},"Count"))),r.createElement(J.Z,null,i.map(((e,a)=>r.createElement(Ce,{key:a,i:a,el:e,appMgr:t,isSelected:c(a),onSelectClick:s(a)}))))),r.createElement(Ze,{selectedCount:m,onAddClick:()=>{t.origGroupMgr.addEmptyGrouping()},onDeleteClick:()=>{t.origGroupMgr.removeGroupings(a),n([])}}),r.createElement(re.Z,{severity:"info"},'Records with value "UNK" are removed from the dataset processed for migration.',r.createElement("br",null),'Region "CARIBBEAN-LATIN AMERICA" is combined with region "OTHER" for migration module parameter.'),r.createElement(le,{valid:t.origGroupMgr.migrantCompatibleStatus,msg:t.origGroupMgr.migrantCompatibleMessage}))))})),Ie=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Migrant variable regrouping")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(ae,{sx:{marginBottom:"6px",color:"white"},onClick:()=>t.origGroupMgr.applyGroupings(),disabled:!t.uiStateMgr.caseBasedOrigGroupingEnabled},r.createElement(ue.Z,null)," Apply regrouping"),r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Migrant variable can be created by grouping regions.",r.createElement("br",null),"Choose preset or define custom grouping and press 'Apply regrouping' button."),r.createElement(le,{valid:t.origGroupMgr.actionValid,msg:t.origGroupMgr.actionMessage})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(ve,e)))}));var Re=a(7687),Te=a(1574),Ne=a(3846);const Fe=(0,l.Pi)((e=>{const{appMgr:t}=e;let a=[];null!==t.caseBasedDataMgr.columnNames&&(a=t.caseBasedDataMgr.columnNames.slice().sort().concat(""));const n=e=>a=>{t.attrMappingMgr.setDefVal(e,a.target.value)},l=t.attrMappingMgr.mapping.map(((e,l)=>{return r.createElement(q.Z,{key:l},r.createElement(K.Z,null,`${l+1}.`),r.createElement(K.Z,null,e.attribute),r.createElement(K.Z,{sx:{padding:"4px 16px 0px 16px"}},r.createElement(Re.Z,{value:e.origColName||"",onChange:(i=e.attribute,(e,a)=>{t.attrMappingMgr.setOrigCol(i,a)}),options:a,renderInput:e=>r.createElement(I.Z,e),sx:{input:{fontSize:"0.75rem"}},autoComplete:!0,autoHighlight:!0,selectOnFocus:!0,clearOnBlur:!0,handleHomeEndKeys:!0,blurOnSelect:!0,clearOnEscape:!0})),r.createElement(K.Z,{sx:{padding:"4px 16px 0px 16px"}},r.createElement(Te.Z,{sx:{width:"100%",fontSize:"0.75rem"},onChange:n(e.attribute),disabled:!!e.origColName})),r.createElement(K.Z,null,r.createElement(p.Z,{variant:"overline"},e.type)));var i}));return r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Attribute mapping")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(ae,{sx:{marginBottom:"6px",color:"white"},onClick:()=>t.attrMappingMgr.applyMapping(),disabled:!t.attrMappingMgr.actionValid},r.createElement(Ne.Z,null)," Apply mapping"),r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Input data must mapped to internal attributes.",r.createElement("br",null),"Adjust mapping and press 'Apply mapping' button."),r.createElement(le,{valid:t.attrMappingMgr.actionValid,msg:t.attrMappingMgr.actionMessage})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(p.Z,{variant:"overline"},"Attribute mapping"),r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,{width:"8%"},"Idx"),r.createElement(K.Z,{width:"23%"},"Attribute"),r.createElement(K.Z,{width:"23%"},"Uploaded data column"),r.createElement(K.Z,{width:"23%"},"Override value"),r.createElement(K.Z,{width:"23%"},"Type"))),r.createElement(J.Z,null,l)),r.createElement(re.Z,{severity:"info"},"Date of diagnosis is the date of HIV diagnosis in the reporting country."))))})),Oe=(0,l.Pi)((e=>{const{appMgr:t}=e,a=r.createElement(H.Z,{light:!0,style:{margin:"30px 0"}});return r.createElement(V,null,r.createElement(ce,e),t.uiStateMgr.caseBasedAttrMappingEnabled&&r.createElement(r.Fragment,null,a,r.createElement(Fe,e)),t.uiStateMgr.caseBasedOrigGroupingProvisioned&&r.createElement(r.Fragment,null,a,r.createElement(Ie,e)))}));var we=a(8112);function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(K.Z,Ye({sx:{width:142,fontWeight:"bold"}},e)),Le=e=>r.createElement(K.Z,Ye({sx:{maxWidth:0,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},e)),je=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.uiStateMgr.modellingPageEnabled,onClick:()=>t.uiStateMgr.setActivePageId(4)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Upload aggregated data")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement("input",{style:{display:"none"},id:"aggrUploadBtn",className:"uploadBtn",type:"file",accept:".csv, .zip",onChange:e=>t.aggrDataMgr.uploadData(e.target)}),r.createElement(z.Z,{title:"Select aggregated data file",arrow:!0},r.createElement("label",{htmlFor:"aggrUploadBtn"},r.createElement(ae,{sx:{marginBottom:"6px",color:"white"}},r.createElement(ee.Z,null)," Upload data"))),r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Maximum file size: 100MB",r.createElement("br",null),"Supported files types: csv (zip archives)"),r.createElement(N,{progress:t.aggrDataMgr.fileUploadProgress}),r.createElement(le,{valid:t.aggrDataMgr.actionValid,msg:t.aggrDataMgr.actionMessage})),r.createElement(O.ZP,{item:!0,xs:10},!t.aggrDataMgr.actionValid&&r.createElement(we.Z,{sx:{color:"#eee",fontSize:"600px"}}),t.aggrDataMgr.actionValid&&r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(p.Z,{variant:"overline"},"Uploaded file details"),r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:6},r.createElement(W.Z,null,r.createElement(J.Z,null,r.createElement(q.Z,null,r.createElement(_e,null,"File name"),r.createElement(Le,null,t.aggrDataMgr.fileName)),r.createElement(q.Z,null,r.createElement(_e,null,"File size"),r.createElement(Le,null,ie(t.aggrDataMgr.fileSize))),r.createElement(q.Z,null,r.createElement(_e,null,"File type"),r.createElement(Le,null,t.aggrDataMgr.fileType))))),r.createElement(O.ZP,{item:!0,xs:6},r.createElement(W.Z,null,r.createElement(J.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(_e,null,"Data names")),r.createElement(q.Z,null,r.createElement(Le,{sx:{whiteSpace:"normal"}},r.createElement("div",{style:{overflow:"auto",maxHeight:164}},t.aggrDataMgr.dataNamesString))),r.createElement(q.Z,{hover:!1},r.createElement(_e,null,"Population names")),r.createElement(q.Z,null,r.createElement(Le,{sx:{whiteSpace:"normal"}},r.createElement("div",{style:{overflow:"auto",maxHeight:164}},t.aggrDataMgr.populationNamesString)))))))))))})),Be=(0,l.Pi)((e=>{const{appMgr:t}=e,a=t.uiStateMgr.activeSubPageId;return r.createElement(r.Fragment,null,0===a&&r.createElement(Oe,e),1===a&&r.createElement(je,e))}));var ke=a(9571),Ue=a(5494),He=a(3984),Ge=a(9923),Ve=a(8856),ze=a(1741),We=a(9105),$e=a(8e3),Qe=a(9682),Je=a(8311),Ke=a(3672),qe=a(3618);Ve.D([$e.N,Qe.N,Je.N,Ke.N,We.N,qe.N]);const Xe=(0,l.Pi)((e=>{const t=r.useRef(null),{xAxisLabel:a,xCategories:n,maleData:l,femaleData:i}=e,s={textStyle:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'},grid:{top:40,right:90,bottom:40,left:60},xAxis:{type:"category",name:a,data:n,nameLocation:"center",nameTextStyle:{padding:[10,0,0,0]},axisTick:{show:!1},axisLine:{show:!1}},yAxis:{type:"value",name:"Count",nameLocation:"center",nameGap:45,splitLine:{show:!1}},series:[{name:"Male",data:l,type:"bar",stack:!0,barCategoryGap:1,color:"#69b023"},{name:"Female",data:i,type:"bar",stack:!0,barCategoryGap:1,color:"#7bbcc0"}],animationEasing:"elasticOut",animationDelayUpdate:e=>5*e,tooltip:{trigger:"axis"},legend:{orient:"vertical",right:0,top:"middle"}};return r.createElement(Ge.Z,{echarts:ze,option:s,style:{height:"200px",width:"100%"},notMerge:!0,lazyUpdate:!0,opts:{},ref:t})})),et=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(O.ZP,{item:!0,xs:2},r.createElement(Ue.Z,{control:r.createElement(He.Z,{checked:t.summaryDataMgr.diagYearPlotData.filter.applyInAdjustments,onChange:e=>t.summaryDataMgr.setDiagYearFilterApply(e.target.checked),color:"primary",size:"small"}),label:"Apply this data selection in adjustments"})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(p.Z,{variant:"overline"},"Diagnosis year"),r.createElement("div",{style:{padding:"40px 105px 0 65px"}},r.createElement(ke.ZP,{min:t.summaryDataMgr.diagYearPlotData.filter.scaleMinYear,max:t.summaryDataMgr.diagYearPlotData.filter.scaleMaxYear,marks:!0,value:[t.summaryDataMgr.diagYearPlotData.filter.valueMinYear,t.summaryDataMgr.diagYearPlotData.filter.valueMaxYear],onChange:(e,a)=>{t.summaryDataMgr.setDiagYearFilterMinYear(a[0]),t.summaryDataMgr.setDiagYearFilterMaxYear(a[1])},valueLabelDisplay:"on",valueLabelFormat:e=>e.toFixed(),"aria-labelledby":"range-slider",getAriaLabel:e=>e.toFixed(),getAriaValueText:e=>e.toFixed(),color:"secondary",sx:{"& *":{fontSize:"9px"}}})),r.createElement(Xe,{xAxisLabel:"Diagnosis year",xCategories:t.summaryDataMgr.diagYearPlotData.chartCategories,maleData:t.summaryDataMgr.diagYearPlotData.chartData[0].data,femaleData:t.summaryDataMgr.diagYearPlotData.chartData[1].data}))))})),tt=e=>4*(e%1+.125).toFixed(3),at=e=>Math.floor(e)+"Q"+tt(e),rt=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(O.ZP,{item:!0,xs:2},r.createElement(Ue.Z,{control:r.createElement(He.Z,{value:t.summaryDataMgr.notifQuarterPlotData.filter.applyInAdjustments,onChange:e=>t.summaryDataMgr.setNotifQuarterFilterApply(e.target.checked),color:"primary",size:"small"}),label:"Apply this data selection in adjustments"})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(p.Z,{variant:"overline"},"Notification quarter"),r.createElement("div",{style:{padding:"40px 105px 0 65px"}},r.createElement(ke.ZP,{min:t.summaryDataMgr.notifQuarterPlotData.filter.scaleMinYear,max:t.summaryDataMgr.notifQuarterPlotData.filter.scaleMaxYear,step:null,marks:t.summaryDataMgr.notifQuarterSliderMarks,value:[t.summaryDataMgr.notifQuarterPlotData.filter.valueMinYear,t.summaryDataMgr.notifQuarterPlotData.filter.valueMaxYear],onChange:(e,a)=>{t.summaryDataMgr.setNotifQuarterFilterMinYear(a[0]),t.summaryDataMgr.setNotifQuarterFilterMaxYear(a[1])},valueLabelDisplay:"on",valueLabelFormat:e=>at(e),"aria-labelledby":"range-slider",color:"secondary",sx:{"& *":{fontSize:"9px"}}})),r.createElement(Xe,{xAxisLabel:"Notification quarter",xCategories:t.summaryDataMgr.notifQuarterChartCategories,maleData:t.summaryDataMgr.notifQuarterPlotData.chartData[0].data,femaleData:t.summaryDataMgr.notifQuarterPlotData.chartData[1].data}))))}));var nt=a(7163),lt=a(3891),it=a(2234),st=a(8353),ot=a(9865),mt=a(8279);const ct=(e,t=2)=>{if(x(e))return"";if(isNaN(e))return e;const a=Math.pow(10,t),r=Math.round((e+Number.EPSILON)*a)/a;return Number(r).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:t})},ut=(e,t=2)=>`${ct(100*e,t)}%`;Ve.D([$e.N,Qe.N,Je.N,Ke.N,st.N,ot.N,mt.N,We.N,it.N,qe.N]);const dt=e=>{const{xCategories:t,data1:a,data2:n,data3:l,options:i}=e,s={textStyle:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'},grid:[{left:5,width:"30%",height:"347px",containLabel:!0,tooltip:{formatter:e=>`${e.marker} ${e.name}: ${ut(e.value,2)}`}},{left:"center",width:"30%",height:"347px",containLabel:!0,tooltip:{formatter:e=>`${e.marker} ${e.name}: ${e.value[2]?"Present":"Missing"}`}},{right:15,width:"30%",height:"300px",containLabel:!0,tooltip:{formatter:e=>`${e.marker} Combination ${e.name}: ${ut(e.value,2)}`}}],xAxis:[{gridIndex:0,type:"category",data:t,axisLabel:{rotate:45},axisTick:{show:!1},axisLine:{show:!1}},{gridIndex:1,type:"category",data:t,splitArea:{show:!0},axisLabel:{rotate:45},axisTick:{show:!1},axisLine:{show:!1}},{gridIndex:2,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:e=>ut(e,0)}}],yAxis:[{id:"test",gridIndex:0,name:"Relative frequency of missing data",nameTextStyle:{align:"left"},nameLocation:"end",axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:e=>ut(e,0)}},{gridIndex:1,type:"category",name:"Missing data pattern",nameTextStyle:{align:"left"},nameLocation:"end",axisLabel:{show:!1},axisLine:{show:!1},axisTick:{show:!1}},{gridIndex:2,type:"category",axisTick:{show:!1},axisLine:{show:!1}},{gridIndex:2,position:"right",type:"category",data:l[2],axisTick:{show:!1},axisLine:{show:!1}}],visualMap:{type:"piecewise",seriesIndex:1,min:0,max:1,pieces:[{min:0,max:.9999999,color:"#ddd",label:"Missing"},{min:.9999999,color:"#69b023",label:"Present"}],show:!1},series:[{type:"bar",barCategoryGap:1,color:"#cccccc",data:a,xAxisIndex:0,yAxisIndex:0,visualMap:!1},{type:"heatmap",data:n,xAxisIndex:1,yAxisIndex:1,itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{itemStyle:{borderColor:"#fff",borderWidth:1}}},{name:"Present",type:"bar",data:l[0],xAxisIndex:2,yAxisIndex:2,barCategoryGap:1,color:"#69b023",stack:!0},{name:"Missing",type:"bar",data:l[1],xAxisIndex:2,yAxisIndex:2,barCategoryGap:1,color:"#ccc",stack:!0}],tooltip:{trigger:"item"},toolbox:{show:!0,feature:{dataZoom:{yAxisIndex:"none"},saveAsImage:{pixelRatio:2,name:"MissingnessPattern",title:"Save"}}},legend:{}},o=Object.assign({},s,i);return r.createElement(Ge.Z,{echarts:ze,option:o,style:{height:"410px",width:"100%"},notMerge:!0,lazyUpdate:!0,opts:{}})};var gt=a(2154),pt=a(5138);Ve.D([$e.N,Qe.N,Je.N,pt.N,Ke.N,gt.N,qe.N]);const ht=(0,l.Pi)((e=>{const{yLabelName:t,xCategories:a,data:n,options:l}=e,i={textStyle:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'},grid:{top:40,right:15,bottom:40,left:60},xAxis:{type:"category",name:"Diagnosis year",data:a,nameLocation:"center",nameTextStyle:{padding:[10,0,0,0]},boundaryGap:!1},yAxis:{type:"value",name:t,nameLocation:"center",nameGap:45,axisLabel:{formatter:e=>ut(e,0)}},series:[{name:n[0].name,type:"line",data:n[0].data},{name:n[1].name,type:"line",data:n[1].data},{name:n[2].name,type:"line",data:n[2].data},{name:n[3].name,type:"line",data:n[3].data}],tooltip:{trigger:"axis",formatter:e=>`\n Year: ${e[0].axisValue}
\n ${e.map((e=>`${e.marker} ${e.seriesName}: ${ut(e.value,2)}`)).join("
")}\n `},toolbox:{show:!0,feature:{dataZoom:{},restore:{},saveAsImage:{pixelRatio:2,name:"MissingnessDistribution",title:"Save"}}},legend:{}},s=Object.assign({},i,l);return r.createElement(Ge.Z,{echarts:ze,option:s,notMerge:!0,lazyUpdate:!0,opts:{}})})),Et=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Missing data summary: key variables")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Percentages of cases for which the information was not available (missing) for one or more of the key variables: CD4 count, transmission category, migrant status or age."),r.createElement(Ee.Z,{component:"fieldset"},r.createElement(lt.Z,{name:"missDataSelection",value:t.summaryDataMgr.missPlotSelection,onChange:e=>t.summaryDataMgr.setMissPlotSelection(e.target.value)},r.createElement(Ue.Z,{value:"all",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"All"}),r.createElement(Ue.Z,{value:"female",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Female"}),r.createElement(Ue.Z,{value:"male",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Male"})))),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(O.ZP,{container:!0},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(dt,{xCategories:t.summaryDataMgr.missPlotData.plot1.chartCategories,data1:t.summaryDataMgr.missPlot1Series,data2:t.summaryDataMgr.missPlot2Series,data3:t.summaryDataMgr.missPlot3Series})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(ht,{yLabelName:"Proportion of missing values",xCategories:t.summaryDataMgr.missPlot4Categories,data:t.summaryDataMgr.missPlot4Series}))))))}));var Mt=a(7481);Ve.D([$e.N,Qe.N,Je.N,pt.N,Ke.N,Mt.N,gt.N,qe.N]);const St=(0,l.Pi)((e=>{const{yLabelName:t,data:a,q95:n}=e,l={textStyle:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'},grid:{top:40,right:10,bottom:40,left:60},xAxis:{type:"value",name:"Notification time in quarters of the year",nameLocation:"center",nameTextStyle:{padding:[10,0,0,0]},boundaryGap:!1},yAxis:{type:"value",name:t,nameLocation:"center",nameGap:45},series:[{name:a[0].name,type:"line",data:a[0].data,showSymbol:!1,areaStyle:{opacity:.4},color:"#69b023",markLine:{data:[[{name:`95% of cases reported by ${n} quarters`,xAxis:n,y:40},{xAxis:n,y:260}]],lineStyle:{color:"#bedfe1"},label:{position:"start",distance:10,formatter:"{a|{b}}",rich:{a:{color:"#000",backgroundColor:"#bedfe1",padding:5,borderRadius:5}}}}}],tooltip:{trigger:"axis",formatter:e=>`\n ${e[0].marker} Quarter ${e[0].axisValueLabel}: ${ct(e[0].value[1],6)}\n `},toolbox:{show:!0,feature:{dataZoom:{},restore:{},saveAsImage:{pixelRatio:2,name:"ReportingDelays",title:"Save"}}}};return r.createElement(Ge.Z,{echarts:ze,option:l,notMerge:!0,lazyUpdate:!0,opts:{}})})),yt=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Reporting delays summary")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Average reporting delay for cases notified within a quarter and the upper bound for typical average delay values. Quarters when the average delay exceeds the upper bound may indicate cleaning events in surveillance."),r.createElement(Ee.Z,{component:"fieldset"},r.createElement(lt.Z,{name:"repDelDataSelection",value:t.summaryDataMgr.repDelPlotSelection,onChange:e=>t.summaryDataMgr.setRepDelPlotSelection(e.target.value)},r.createElement(Ue.Z,{value:"all",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"All"}),r.createElement(Ue.Z,{value:"female",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Female"}),r.createElement(Ue.Z,{value:"male",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Male"})))),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(St,{yLabelName:"Proportion of reported with delay",data:t.summaryDataMgr.repDelPlot.series,q95:t.summaryDataMgr.repDelPlot.q95}))))})),Dt=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.uiStateMgr.caseBasedAdjustmentsStageEnabled,onClick:()=>t.uiStateMgr.setActiveStepId(3)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Select case-based data for summary")),r.createElement(et,e),r.createElement(rt,e),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"body1"},"Number of records in the selection: ",t.summaryDataMgr.selectedCount," (out of ",t.summaryDataMgr.totalCount,", ",ut(t.summaryDataMgr.selectedCount/t.summaryDataMgr.totalCount),")")),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(H.Z,{light:!0,sx:{margin:"30px 0px"}})),r.createElement(Et,e),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(H.Z,{light:!0,sx:{margin:"30px 0px"}})),r.createElement(yt,e)))})),bt=()=>r.createElement(r.Fragment,null,r.createElement(p.Z,{variant:"overline"},"No parameters"),r.createElement(p.Z,null,"No Multiple Imputations adjustment selected"));var ft=a(3830);const Pt=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(p.Z,{variant:"overline"},"Joint Modelling - JOMO parameters"),r.createElement("form",{noValidate:!0,autoComplete:"off"},r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Number of imputations",helperText:"Type the number of data sets to input",type:"number",value:t.adjustMgr.miJomoSettings.nimp,onChange:e=>t.adjustMgr.setMIJomoNimp(e.target.value),onBlur:e=>t.adjustMgr.setMIJomoNimp(Math.min(Math.max(e.target.value,2),50)),fullWidth:!0,InputProps:{inputProps:{min:2,max:50}},sx:{marginBottom:"20px"}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Number of burn-in iterations",helperText:"Type the number of inital iterations to skip before imputing",type:"number",value:t.adjustMgr.miJomoSettings.nburn,onChange:e=>t.adjustMgr.setMIJomoNburn(e.target.value),onBlur:e=>t.adjustMgr.setMIJomoNburn(Math.min(Math.max(e.target.value,100),1e4)),fullWidth:!0,InputProps:{inputProps:{min:100,max:1e4}},sx:{marginBottom:"20px"}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Number of iterations between two successive imputations",type:"number",value:t.adjustMgr.miJomoSettings.nbetween,onChange:e=>t.adjustMgr.setMIJomoNbetween(e.target.value),onBlur:e=>t.adjustMgr.setMIJomoNbetween(Math.min(Math.max(e.target.value,100),1e4)),fullWidth:!0,InputProps:{inputProps:{min:100,max:1e4}},sx:{marginBottom:"20px"}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(p.Z,{id:"discrete-slider",gutterBottom:!0},"Number of degrees of freedom for spline of diagnosis calendar year"),r.createElement(ke.ZP,{min:3,max:5,value:t.adjustMgr.miJomoSettings.nsdf,onChange:(e,a)=>t.adjustMgr.setMIJomoNsdf(a),marks:[{value:3,label:3},{value:4,label:4},{value:5,label:5}]})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(ft.Z,{row:!0},r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.miJomoSettings.imputeRD,onChange:(e,a)=>t.adjustMgr.setMIJomoImputeRD(a),name:"check",color:"primary"}),label:"Impute reporting delays inputs"}))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(R.Z,{color:"primary",onClick:e=>t.adjustMgr.restoreMIDefaults("jomo")},"Restore defaults")))))})),xt=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(p.Z,{variant:"overline"},"Chained Equations - MICE parameters"),r.createElement("form",{noValidate:!0,autoComplete:"off"},r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Number of imputations",helperText:"Type the number of data sets to input",type:"number",value:t.adjustMgr.miMiceSettings.nimp,onChange:e=>t.adjustMgr.setMIMiceNimp(e.target.value),onBlur:e=>t.adjustMgr.setMIMiceNimp(Math.min(Math.max(e.target.value,2),50)),fullWidth:!0,InputProps:{inputProps:{min:2,max:50}},sx:{marginBottom:"20px"}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Number of mice iterations",helperText:"Type the number of mice iterations",type:"number",value:t.adjustMgr.miMiceSettings.nit,onChange:e=>t.adjustMgr.setMIMiceNit(e.target.value),onBlur:e=>t.adjustMgr.setMIMiceNit(Math.min(Math.max(e.target.value,2),50)),fullWidth:!0,InputProps:{inputProps:{min:2,max:50}},sx:{marginBottom:"20px"}})),r.createElement(O.ZP,{item:!0,xs:4}),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(p.Z,{id:"discrete-slider",gutterBottom:!0},"Number of degrees of freedom for spline of diagnosis calendar year"),r.createElement(ke.ZP,{min:3,max:5,value:t.adjustMgr.miMiceSettings.nsdf,onChange:(e,a)=>t.adjustMgr.setMIMiceNsdf(a),marks:[{value:3,label:3},{value:4,label:4},{value:5,label:5}]})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(ft.Z,{row:!0},r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.miMiceSettings.imputeRD,onChange:(e,a)=>t.adjustMgr.setMIMiceImputeRD(a),name:"check",color:"primary"}),label:"Impute reporting delays inputs"}))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(R.Z,{color:"primary",onClick:e=>t.adjustMgr.restoreMIDefaults("mice")},"Restore defaults")))))})),Ct=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(O.ZP,{item:!0,xs:2},"Multiple Imputations type:",r.createElement("br",null),r.createElement(Ee.Z,{component:"fieldset"},r.createElement(lt.Z,{name:"miAdjustType",value:t.adjustMgr.miAdjustType,onChange:e=>t.adjustMgr.setMIAdjustType(e.target.value)},r.createElement(Ue.Z,{value:"none",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"None"}),r.createElement(Ue.Z,{value:"jomo",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Joint Modelling - JOMO"}),r.createElement(Ue.Z,{value:"mice",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Chained Equations - MICE"})))),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10,minHeight:283}},"none"===t.adjustMgr.miAdjustType&&r.createElement(bt,null),"jomo"===t.adjustMgr.miAdjustType&&r.createElement(Pt,e),"mice"===t.adjustMgr.miAdjustType&&r.createElement(xt,e))))})),Zt=()=>r.createElement(r.Fragment,null,r.createElement(p.Z,{variant:"overline"},"No parameters"),r.createElement(p.Z,null,"No Reporting Delays adjustment selected")),At=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(p.Z,{variant:"overline"},"Reporting Delays - without trend parameters"),r.createElement("form",{noValidate:!0,autoComplete:"off"},r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Diagnosis start year",helperText:"Enter the start year for diagnosis",type:"number",value:t.adjustMgr.rdWithoutTrendSettings.startYear,onChange:e=>t.adjustMgr.setRDWithoutStartYear(e.target.value),onBlur:e=>t.adjustMgr.setRDWithoutStartYear(Math.min(Math.max(e.target.value,1975),2030)),fullWidth:!0,InputProps:{inputProps:{min:1975,max:2030}},style:{marginBottom:20}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Notification end year",helperText:"Enter the end year for notification",type:"number",value:t.adjustMgr.rdWithoutTrendSettings.endYear,onChange:e=>t.adjustMgr.setRDWithoutEndYear(e.target.value),onBlur:e=>t.adjustMgr.setRDWithoutEndYear(Math.min(Math.max(e.target.value,1975),2030)),fullWidth:!0,InputProps:{inputProps:{min:1975,max:2030}},style:{marginBottom:20}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Notification end quarter (integer between 1 and 4)",type:"number",value:t.adjustMgr.rdWithoutTrendSettings.endQrt,onChange:e=>t.adjustMgr.setRDWithoutEndQrt(e.target.value),onBlur:e=>t.adjustMgr.setRDWithoutEndQrt(Math.min(Math.max(e.target.value,1),4)),fullWidth:!0,InputProps:{inputProps:{min:1,max:4}},style:{marginBottom:20}})),r.createElement(O.ZP,{item:!0,xs:4},"Stratify by:",r.createElement(ft.Z,{row:!0},r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.rdWithoutTrendSettings.stratGender,onChange:(e,a)=>t.adjustMgr.setRDWithoutStratGender(a),name:"check",color:"primary"}),label:"Gender"}),r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.rdWithoutTrendSettings.stratTrans,onChange:(e,a)=>t.adjustMgr.setRDWithoutStratTrans(a),name:"check",color:"primary"}),label:"Transmission"}),r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.rdWithoutTrendSettings.stratMigr,onChange:(e,a)=>t.adjustMgr.setRDWithoutStratMigr(a),name:"check",color:"primary"}),label:"Migration"}))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(R.Z,{color:"primary",onClick:e=>t.adjustMgr.restoreRDDefaults("withoutTrend")},"Restore defaults")))))})),vt=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(p.Z,{variant:"overline"},"Reporting Delays - with trend parameters"),r.createElement("form",{noValidate:!0,autoComplete:"off"},r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Diagnosis start year",helperText:"Enter the start year for diagnosis",type:"number",value:t.adjustMgr.rdWithTrendSettings.startYear,onChange:e=>t.adjustMgr.setRDWithStartYear(e.target.value),onBlur:e=>t.adjustMgr.setRDWithStartYear(Math.min(Math.max(e.target.value,1975),2030)),fullWidth:!0,InputProps:{inputProps:{min:1975,max:2030}},style:{marginBottom:20}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Notification end year",helperText:"Enter the end year for notification",type:"number",value:t.adjustMgr.rdWithTrendSettings.endYear,onChange:e=>t.adjustMgr.setRDWithEndYear(e.target.value),onBlur:e=>t.adjustMgr.setRDWithEndYear(Math.min(Math.max(e.target.value,1975),2030)),fullWidth:!0,InputProps:{inputProps:{min:1975,max:2030}},style:{marginBottom:20}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Notification end quarter (integer between 1 and 4)",type:"number",value:t.adjustMgr.rdWithTrendSettings.endQrt,onChange:e=>t.adjustMgr.setRDWithEndQrt(e.target.value),onBlur:e=>t.adjustMgr.setRDWithEndQrt(Math.min(Math.max(e.target.value,1),4)),fullWidth:!0,InputProps:{inputProps:{min:1,max:4}},style:{marginBottom:20}})),r.createElement(O.ZP,{item:!0,xs:4},"Stratify by:",r.createElement(ft.Z,{row:!0},r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.rdWithTrendSettings.stratGender,onChange:(e,a)=>t.adjustMgr.setRDWithStratGender(a),name:"check",color:"primary"}),label:"Gender"}),r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.rdWithTrendSettings.stratTrans,onChange:(e,a)=>t.adjustMgr.setRDWithStratTrans(a),name:"check",color:"primary"}),label:"Transmission"}),r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.rdWithTrendSettings.stratMigr,onChange:(e,a)=>t.adjustMgr.setRDWithStratMigr(a),name:"check",color:"primary"}),label:"Migration"}))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(R.Z,{color:"primary",onClick:e=>t.adjustMgr.restoreRDDefaults("withTrend")},"Restore defaults")))))})),It=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(O.ZP,{item:!0,xs:2},"Reporting Delays type:",r.createElement("br",null),r.createElement(Ee.Z,{component:"fieldset"},r.createElement(lt.Z,{name:"rdAdjustType",value:t.adjustMgr.rdAdjustType,onChange:e=>t.adjustMgr.setRDAdjustType(e.target.value)},r.createElement(Ue.Z,{value:"none",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"None"}),r.createElement(Ue.Z,{value:"withoutTrend",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Without trend"}),r.createElement(Ue.Z,{value:"withTrend",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"With trend"})))),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10,minHeight:263}},"none"===t.adjustMgr.rdAdjustType&&r.createElement(Zt,null),"withoutTrend"===t.adjustMgr.rdAdjustType&&r.createElement(At,e),"withTrend"===t.adjustMgr.rdAdjustType&&r.createElement(vt,e))))})),Rt=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.adjustMgr.adjustmentSelected,onClick:e=>t.uiStateMgr.setActivePageId(3,1)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Case-based data adjustments parameters")),r.createElement(Ct,e),r.createElement(It,e)))}));var Tt=a(5698),Nt=a(6068),Ft=a(741);const Ot=(0,l.Pi)((e=>{const{progress:t}=e;return x(t)|!t?null:r.createElement(T.Z,{color:"secondary",sx:{marginTop:"10px",marginBottom:"10px",height:"5px"}})})),wt=(0,l.Pi)((e=>{const{appMgr:t}=e,[a,n]=r.useState(0);return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.uiStateMgr.reportsPageEnabled,onClick:e=>t.uiStateMgr.setActivePageId(4)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Case-based data adjustments run")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(ae,{onClick:()=>t.adjustMgr.runAdjustments(),disabled:!t.adjustMgr.adjustmentSelected||t.adjustMgr.adjustmentsRunInProgress},r.createElement(Tt.Z,null)," Run adjustments"),r.createElement(R.Z,{onClick:()=>t.adjustMgr.cancelAdjustments(),color:"primary",style:{marginLeft:20},disabled:!t.adjustMgr.adjustmentsRunInProgress},"Cancel"),r.createElement(Ot,{progress:t.adjustMgr.adjustmentsRunProgress})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(Nt.Z,{value:a,onChange:(e,t)=>n(t),indicatorColor:"primary",textColor:"primary"},r.createElement(Ft.Z,{label:"Run log",disabled:x(t.adjustMgr.adjustmentsRunLog)}),r.createElement(Ft.Z,{label:"Diagnostics",disabled:x(t.adjustMgr.adjustmentsReport)})),0===a&&r.createElement(r.Fragment,null,r.createElement("pre",{dangerouslySetInnerHTML:{__html:t.adjustMgr.adjustmentsRunLog},style:{overflowX:"auto",fontSize:"0.75rem"}})),1===a&&r.createElement(r.Fragment,null,r.createElement("div",{dangerouslySetInnerHTML:{__html:t.adjustMgr.adjustmentsReport},style:{overflowX:"auto"}}))))))})),Yt=(0,l.Pi)((e=>{const{appMgr:t}=e,a=t.uiStateMgr.activeSubPageId;return r.createElement(r.Fragment,null,0===a&&r.createElement(Rt,e),1===a&&r.createElement(wt,e))}));var _t=a(3650);const Lt=e=>e&&"object"==typeof e,jt=(...e)=>be(!0,e.map(x))?e[0]:e.reduce(((e,t)=>(Object.keys(t).forEach((a=>{const r=e[a],n=t[a];fe(r)&&fe(n)?e[a]=r.concat(...n):Lt(r)&&Lt(n)?e[a]=jt(r,n):e[a]=n})),e)),{}),Bt=jt;Ve.D([$e.N,Qe.N,Je.N,Ke.N,ot.N,_t.N,it.N,qe.N]);const kt=e=>{const{data:t,options:a}=e;if(x(t))return r.createElement("div",null,"No plot data available");const n=18*t.chartCategoriesY.length+110,l={textStyle:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'},grid:{top:80,right:0,bottom:0,left:90},xAxis:{type:"category",name:t.titleX,nameLocation:"center",nameTextStyle:{fontWeight:"bold"},nameGap:35,data:t.chartCategoriesX,position:"top",axisLabel:{fontSize:11},axisTick:{show:!1},axisLine:{show:!1}},yAxis:{type:"category",name:"Year of Arrival",nameLocation:"center",nameGap:45,data:t.chartCategoriesY,inverse:!1,axisLabel:{fontSize:11},axisLine:{show:!1},axisTick:{show:!1}},visualMap:{type:"continuous",calculable:!0,orient:"horizontal",right:80,top:"top",inRange:{color:["#bedfe1","#69b023"]},padding:0,min:0,max:t.dataMax,align:"top",textStyle:{fontSize:11,color:"rgb(110, 112, 121)"}},series:[{type:"heatmap",data:t.seriesData,label:{show:!0,fontSize:10,formatter:e=>ct(e.data[2],0)},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{itemStyle:{borderColor:"#fff",borderWidth:1}}}],tooltip:{trigger:"item"},toolbox:{show:!0,feature:{dataZoom:{yAxisIndex:"none"},saveAsImage:{pixelRatio:2,name:"MissingnessPattern",title:"Save"}}},legend:{}},i=Bt(l,a);return r.createElement(Ge.Z,{echarts:ze,option:i,style:{height:`${n}px`,width:"100%"},notMerge:!0,lazyUpdate:!0,opts:{}})};function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(p.Z,Ut({variant:"caption",component:"div"},e));function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const o=l?ut:ct,m=e?{fontWeight:"bold",backgroundColor:"#f9f9f9"}:null;let c=!isNaN(t)&&""!==t,u="";x(t)?x(a)||x(n)||(u=`${o(a,i)} - ${o(n,i)}`,c=!0):u=o(t,i);const d=Bt({align:c?"right":"left"},s);return r.createElement(K.Z,Gt({},d,{sx:m}),u)})),zt=(0,l.Pi)((e=>{const{missingness:t}=e;let a=null;return a=x(t)||fe(t)&&0===t.length?r.createElement("div",null,"No table data available"):r.createElement(W.Z,{size:"small"},r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1,sx:{backgroundColor:"#bedfe1"}},r.createElement(K.Z,{align:"right"},"Priority"),r.createElement(K.Z,{align:"left",width:"700px"},"Missing variable"),r.createElement(K.Z,{align:"right"},"Number of excluded cases"))),r.createElement(J.Z,null,t.map(((e,t)=>r.createElement(q.Z,{key:t},r.createElement(Vt,{value:e.IsTotalRow?null:t+1,isTotal:e.IsTotalRow,align:"right"}),r.createElement(Vt,{value:e.Excluded,isTotal:e.IsTotalRow,align:"left"}),r.createElement(Vt,{value:e.Count,isTotal:e.IsTotalRow,align:"right"})))))),r.createElement(r.Fragment,null,r.createElement(Ht,null,"Table 1. Number of excluded cases"),a)}));var Wt=a(2347),$t=a(1829);const Qt=(0,l.Pi)((e=>{const{migrMgr:t}=e,a=(e,a)=>t.setYodRegion(a),n=x(t.yodDistr)?0:t.yodDistr.chartCategoriesX.length-1,l=Math.max(n-20+1,0);let i=null;return x(t.yodDistr)||(i=r.createElement(Wt.Z,{exclusive:!0,size:"small",color:"primary",value:t.yodRegion,onChange:a},r.createElement($t.Z,{value:"ALL"},"ALL"),r.createElement($t.Z,{value:"AFRICA"},"AFRICA"),r.createElement($t.Z,{value:"EUROPE-NORTH AMERICA"},"EUROPE-NORTH AMERICA"),r.createElement($t.Z,{value:"ASIA"},"ASIA"),r.createElement($t.Z,{value:"OTHER"},"OTHER"))),r.createElement(r.Fragment,null,r.createElement(Ht,null,"Figure 2. Average number of cases by the Year of Arrival and Year of Diagnosis"),i,r.createElement(kt,{data:t.yodDistr,options:{xAxis:{inverse:!0},title:{subtext:"Last 20 years selected by default",subtextStyle:{fontSize:11}},dataZoom:[{type:"slider",xAxisIndex:0,top:51,height:25,startValue:l,endValue:n,handleSize:"80%",showDetail:!1,borderColor:"transparent",fillerColor:"transparent"}]}}))})),Jt=({section:e,isTotal:t=!1,caption:a=""})=>{let n=[];return""!==a&&(n=[r.createElement(q.Z,{key:-1},r.createElement(Vt,{value:a,isTotal:!0,colSpan:7}))]),n=n.concat(e.map(((e,a)=>r.createElement(q.Z,{key:a},r.createElement(Vt,{value:e.Category,isTotal:t}),r.createElement(Vt,{value:e.Count,isTotal:t}),r.createElement(Vt,{value:e.Algorithm,isTotal:t,align:"right"}),r.createElement(Vt,{value:e.PriorProp,isTotal:t,isPerc:!0}),r.createElement(Vt,{lb:e.PriorPropLB,ub:e.PriorPropUB,isTotal:t,isPerc:!0}),r.createElement(Vt,{value:e.PostProp,isTotal:t,isPerc:!0}),r.createElement(Vt,{lb:e.PostPropLB,ub:e.PostPropUB,isTotal:t,isPerc:!0}))))),n},Kt=(0,l.Pi)((({migrMgr:e})=>{const t=e.tableDistr,a=t=>e.setTableRegion(t.target.value);let n=null;x(e.yodDistr)||(n=r.createElement(Wt.Z,{exclusive:!0,size:"small",color:"primary",value:e.tableRegion,onChange:a,sx:{marginBottom:"5px"}},r.createElement($t.Z,{value:"ALL"},"ALL"),r.createElement($t.Z,{value:"AFRICA"},"AFRICA"),r.createElement($t.Z,{value:"EUROPE-NORTH AMERICA"},"EUROPE-NORTH AMERICA"),r.createElement($t.Z,{value:"ASIA"},"ASIA"),r.createElement($t.Z,{value:"OTHER"},"OTHER")));let l=null;return l=x(t)?r.createElement(W.Z,{size:"small"},r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1,sx:{backgroundColor:"#bedfe1"}},r.createElement(K.Z,{width:"220px",rowSpan:2},"Category"),r.createElement(K.Z,{align:"right",rowSpan:2},"Count"),r.createElement(K.Z,{align:"right",rowSpan:2},"Algorithm"),r.createElement(K.Z,{align:"right",colSpan:2,sx:{textAlign:"center"}},"Infected prior to arrival"),r.createElement(K.Z,{align:"right",colSpan:2,sx:{textAlign:"center"}},"Infected post arrival")),r.createElement(q.Z,{hover:!1,sx:{backgroundColor:"#bedfe1"}},r.createElement(K.Z,{align:"right"},"Proportion"),r.createElement(K.Z,{align:"right"},"95% CI"),r.createElement(K.Z,{align:"right"},"Proportion"),r.createElement(K.Z,{align:"right"},"95% CI"))),r.createElement(J.Z,null,r.createElement(q.Z,null,r.createElement(Vt,{value:"Total",isTotal:!0}),r.createElement(Vt,{value:0,isTotal:!0}),r.createElement(Vt,{value:null,isTotal:!0}),r.createElement(Vt,{value:null,isTotal:!0}),r.createElement(Vt,{value:null,isTotal:!0}),r.createElement(Vt,{value:null,isTotal:!0})))):r.createElement(W.Z,{size:"small"},r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1,sx:{backgroundColor:"#bedfe1"}},r.createElement(K.Z,{width:"220px",rowSpan:2},"Category"),r.createElement(K.Z,{align:"right",rowSpan:2},"Count"),r.createElement(K.Z,{align:"right",rowSpan:2},"Algorithm"),r.createElement(K.Z,{align:"right",colSpan:2,sx:{textAlign:"center"}},"Infected prior to arrival"),r.createElement(K.Z,{align:"right",colSpan:2,sx:{textAlign:"center"}},"Infected post arrival")),r.createElement(q.Z,{hover:!1,sx:{backgroundColor:"#bedfe1"}},r.createElement(K.Z,{align:"right"},"Proportion"),r.createElement(K.Z,{align:"right"},"95% CI"),r.createElement(K.Z,{align:"right"},"Proportion"),r.createElement(K.Z,{align:"right"},"95% CI"))),r.createElement(J.Z,null,r.createElement(Jt,{section:t.Total,isTotal:!0}),r.createElement(Jt,{section:t.Sex,caption:"Sex:"}),r.createElement(Jt,{section:t.AgeGroup,caption:"Age Group:"}),r.createElement(Jt,{section:t.Transmission,caption:"Transmission:"}),r.createElement(Jt,{section:t.GroupedRegionOfOrigin,caption:"Grouped Region Of Origin:"}))),r.createElement(r.Fragment,null,r.createElement(Ht,null,"Table 2. Proportion of migrants infected post arrival by sex, age group and transmission category"),n,l)}));var qt=a(1780),Xt=a(192);Ve.D([$e.N,Qe.N,Je.N,Ke.N,gt.N,qt.N,Xt.N]);const ea=(0,l.Pi)((({title:e,xAxisTitle:t="Year",yAxisTitle:a="Proportion",data:n,legendOptions:l={orient:"vertical",right:0,top:"center",selector:!0},color:i=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],format:s="number",showConfBounds:o=!0})=>{const m=e=>{let t=null;return x(e)||(t=e.map((e=>isFinite(e[1])?o?(isFinite(e[2])&&!x(e[2])||(e[2]=e[1]),isFinite(e[3])&&!x(e[3])||(e[3]=e[1]),e):[e[0],e[1],null,null,e[4],null]:[e[0],null,null,null,null,null]))),t},c=(e,t)=>{if(e.context.rendered)return;const a=t.visual("color"),r=e.dataIndexInside,n=t.value(0,r),l=t.value(1,r),i=t.coord([n,l]),s=t.value(0,r+1),o=t.value(1,r+1),m=t.coord([s,o]),c={x1:i[0],y1:i[1],x2:m[0],y2:m[1]},u=t.coord([n,t.value(2,r)]),d=t.coord([n,t.value(3,r)]),g=t.coord([s,t.value(3,r+1)]),p=t.coord([s,t.value(2,r+1)]),h=[u,d,g,p];let E=[];return u!==d&&p!==g&&E.push({type:"polygon",shape:{points:h},style:{fill:a,opacity:.3}}),E.push({type:"line",shape:c,style:{stroke:a,fill:"none",lineDash:t.value(4,r)&&t.value(4,r+1)?null:[2]}}),E.push({type:"circle",shape:{cx:i[0],cy:i[1],r:2},style:{fill:a}}),{type:"group",children:E}};let u=[],d=[],g={},p=[];n.forEach(((e,t)=>((e,t)=>{x(e)||(d.push({name:e.name,type:"custom",renderItem:c,encode:{x:"x",y:["y","lb","ub"],tooltip:["x","y","lb","ub"]},dimensions:["x","y","lb","ub","used"],datasetIndex:t}),u.push({name:e.name}),g[e.name]=!x(e.selected)&&e.selected,p.push({source:m(e.values)}))})(e,t)));const h="number"===s?ct:ut,E={textStyle:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'},grid:{top:40,right:"horizontal"===l.orient?30:240,bottom:40,left:65},title:{text:e},xAxis:{type:"category",nameLocation:"center",name:t,nameTextStyle:{padding:[10,0,0,0]},axisTick:{alignWithLabel:!0},boundaryGap:!1,axisPointer:{type:"shadow",snap:!0}},yAxis:{type:"value",name:a,nameLocation:"center",nameGap:50,axisLabel:{formatter:e=>h(e,0)}},series:d,color:i,dataset:p,tooltip:{trigger:"axis",formatter:e=>{const t=e.map((e=>{let t="";if(!x(e.value[2])&&!x(e.value[3])){let a="";x(e.value[5])||(a=`, Count: ${ct(e.value[5])}`),t=` (${h(e.value[2],0)} - ${h(e.value[3],0)})${a}`}return`${e.marker} ${e.seriesName}: ${h(e.value[1],0)}${t}`})).join("
");return`\n Year: ${e[0].axisValue}
\n ${t}\n `},textStyle:{fontSize:12}},toolbox:{show:!0,feature:{dataZoom:{yAxisIndex:"none"},saveAsImage:{pixelRatio:2,title:"Save"}}},legend:{data:u,selected:g,orient:"vertical",right:0,top:"center",selector:!0,textStyle:{fontSize:11},...l}};return r.createElement(Ge.Z,{echarts:ze,option:E,style:{height:"300px",width:"100%"},notMerge:!0,lazyUpdate:!0,opts:{}})})),ta=(0,l.Pi)((({migrMgr:e})=>{const{arrivalPlotData:t,diagnosisPlotData:a}=e;let n=null;n=x(t)?r.createElement("div",null,"No plot data available"):r.createElement(ea,{xAxisTitle:"Year of Arrival",data:t,format:"percentage",showConfBounds:e.showConfBounds});let l=null;return l=x(a)?r.createElement("div",null,"No plot data available"):r.createElement(ea,{xAxisTitle:"Year of Diagnosis",data:a,format:"percentage",showConfBounds:e.showConfBounds}),r.createElement(r.Fragment,null,r.createElement(Ue.Z,{control:r.createElement(He.Z,{checked:e.showConfBounds,onChange:t=>e.setShowConfBounds(t.target.checked),color:"primary",size:"small"}),label:"Show confidence bounds in charts below",sx:{marginTop:1,marginBottom:1}}),r.createElement(Ht,null,"Figure 3. Proportion of migrants infected post arrival by region of origin and year of arrival"),n,r.createElement(Ht,{sx:{marginTop:1}},"Figure 4. Proportion of migrants infected post arrival by region of origin and year of diagnosis"),l)})),aa=(0,l.Pi)((({migrMgr:e})=>{const t=e.confBounds,a=(t,a)=>e.setPropTableStrat(a);let n=null;x(t)||(n=r.createElement(Wt.Z,{size:"small",color:"primary",value:e.propTableStrat,onChange:a,sx:{marginBottom:"5px"}},r.createElement($t.Z,{value:"Gender"},"Sex"),r.createElement($t.Z,{value:"AgeGroup"},"Age Group"),r.createElement($t.Z,{value:"Transmission"},"Transmission"),r.createElement($t.Z,{value:"GroupedRegionOfOrigin"},"Grouped Region Of Origin")));const l=!1;let i=null;return i=x(t)?r.createElement("div",null,"No table data available"):r.createElement(W.Z,{size:"small"},r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1,sx:{backgroundColor:"#bedfe1"}},r.createElement(K.Z,{width:"220px",rowSpan:2},"Category"),r.createElement(K.Z,{align:"right",rowSpan:2},"Count"),r.createElement(K.Z,{align:"right",rowSpan:2},"Algorithm"),r.createElement(K.Z,{align:"right",colSpan:2,sx:{textAlign:"center"}},"Infected prior to arrival"),r.createElement(K.Z,{align:"right",colSpan:2,sx:{textAlign:"center"}},"Infected post arrival")),r.createElement(q.Z,{hover:!1,sx:{backgroundColor:"#bedfe1"}},r.createElement(K.Z,{align:"right"},"Proportion"),r.createElement(K.Z,{align:"right"},"95% CI"),r.createElement(K.Z,{align:"right"},"Proportion"),r.createElement(K.Z,{align:"right"},"95% CI"))),r.createElement(J.Z,null,t.map(((e,t)=>r.createElement(q.Z,{key:t},r.createElement(Vt,{value:e.Category,isTotal:l}),r.createElement(Vt,{value:e.Count,isTotal:l}),r.createElement(Vt,{value:e.Algorithm,isTotal:l,align:"right"}),r.createElement(Vt,{value:e.PriorProp,isTotal:l,isPerc:!0}),r.createElement(Vt,{lb:e.PriorPropLB,ub:e.PriorPropUB,isTotal:l,isPerc:!0}),r.createElement(Vt,{value:e.PostProp,isTotal:l,isPerc:!0}),r.createElement(Vt,{lb:e.PostPropLB,ub:e.PostPropUB,isTotal:l,isPerc:!0})))))),r.createElement(r.Fragment,null,n,i)})),ra=(0,l.Pi)((e=>{const{appMgr:t}=e,[a,n]=r.useState(0);return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!0,onClick:e=>t.uiStateMgr.setActivePageId(4)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Migrant modelling run")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(ae,{onClick:()=>t.migrMgr.run(),disabled:t.migrMgr.runInProgress},r.createElement(Tt.Z,null)," Run migration"),r.createElement(R.Z,{onClick:()=>t.migrMgr.cancel(),color:"primary",style:{marginLeft:20},disabled:!t.migrMgr.runInProgress},"Cancel"),r.createElement(Ot,{progress:t.migrMgr.runProgress})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(Nt.Z,{value:a,onChange:(e,t)=>n(t),indicatorColor:"primary",textColor:"primary"},r.createElement(Ft.Z,{label:"Run log"}),r.createElement(Ft.Z,{label:"Diagnostics",disabled:x(t.migrMgr.inputStats)})),0===a&&r.createElement(r.Fragment,null,r.createElement("pre",{dangerouslySetInnerHTML:{__html:t.migrMgr.runLog},style:{overflowX:"auto",fontSize:"0.75rem"}})),1===a&&r.createElement("div",{style:{maxWidth:1e3}},r.createElement("h3",null,"1. Overview"),r.createElement("p",null,"Estimates of the time of infection require the following variables: Sex, transmission category, Region of Origin, AIDS diagnosis. CD4 count and VL are used if available. In addition, the time of infection must be compared to the arrival time and the estimation based on the cases for which both Year of Arrival and Year of Diagnosis are known."),r.createElement("p",null,"It is possible to run the migration estimation on the original dataset, but it is recommended to use the imputation first. If multiple imputations adjustment was run before the migrant module, then all results are computed as average over imputations and presented rounded to the nearest integer."),r.createElement("p",null,"The estimation is performed for adults only."),r.createElement("h3",null,"2. Excluded data overview"),r.createElement(zt,{missingness:t.migrMgr.missingness}),r.createElement("h3",null,"3. Description of data used in estimation"),r.createElement(Ht,null,"Figure 1. Average number of cases by Year of Arrival and Region For Migration Module"),r.createElement(kt,{data:t.migrMgr.regionDistr}),r.createElement("br",null),r.createElement(Qt,{migrMgr:t.migrMgr}),r.createElement("h3",null,"4. Estimates of the proportion of the migrants infected prior and post arrival"),r.createElement(Kt,{migrMgr:t.migrMgr}),r.createElement("br",null),r.createElement(aa,{migrMgr:t.migrMgr}),r.createElement(ta,{migrMgr:t.migrMgr}))))))})),na=(e,t)=>((e,t,a)=>{a/=100;const r=t*Math.min(a,1-a)/100,n=t=>{const n=(t+e/30)%12,l=a-r*Math.max(Math.min(n-3,9-n,1),-1);return Math.round(255*l).toString(16).padStart(2,"0")};return`#${n(0)}${n(8)}${n(4)}`})(t,40+60*e,95-40*e),la=(0,l.Pi)((e=>{const{i:t,isSelected:a,onSelectClick:n,population:l,appMgr:i}=e;return r.createElement(q.Z,{hover:!0,role:"checkbox"},r.createElement(K.Z,{padding:"checkbox",sx:{verticalAlign:"top"}},r.createElement(pe.Z,{inputProps:{"aria-labelledby":`labelId${t}`},color:"primary",checked:a,onClick:n})),r.createElement(K.Z,{sx:{padding:"4px 16px 0px 16px",maxWidth:"300px",verticalAlign:"top"}},r.createElement(ge.Z,{multiple:!0,renderValue:e=>r.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},e.map((e=>r.createElement(Se.Z,{key:e,label:e,sx:{margin:"2px"},color:"secondary"})))),value:l.variables,style:{width:"100%",fontSize:"0.75rem"},onChange:e=>{i.popMgr.setPopulationVariables(t,e.target.value)}},i.popMgr.availableVariables.map(((e,t)=>r.createElement(he.Z,{key:t,value:e.Name,dense:!0},`${e.Name} (${e.Code})`))))),r.createElement(K.Z,null,r.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},l.strata.map((e=>r.createElement(Se.Z,{key:e.Combination,label:`${e.Combination} (${ut(e.Perc)})`,style:{margin:2,backgroundColor:`${na(e.Perc,214)}`}}))))))})),ia=(0,l.Pi)((e=>{const{appMgr:t}=e,[a,n]=r.useState([]),l=t.popMgr.populationsJS,i=e=>t=>{const r=a.indexOf(e);let l=[];-1===r?l=l.concat(a,e):0===r?l=l.concat(a.slice(1)):r===a.length-1?l=l.concat(a.slice(0,-1)):r>0&&(l=l.concat(a.slice(0,r),a.slice(r+1))),n(l)},s=l.length,o=a.length,m=e=>-1!==a.indexOf(e);return r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(p.Z,{variant:"overline"},"Case-base data populations"),r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,{padding:"checkbox"},r.createElement(pe.Z,{inputProps:{"aria-label":"select all"},color:"primary",onClick:e=>{if(e.target.checked){const e=l.map(((e,t)=>t));n(e)}else n([])},checked:s>0&&o===s})),r.createElement(K.Z,{width:"50%"},"Selected variables"),r.createElement(K.Z,{width:"50%"},"Defined populations"))),r.createElement(J.Z,null,l.map(((e,a)=>r.createElement(la,{key:a,i:a,population:e,appMgr:t,isSelected:m(a),onSelectClick:i(a)}))))),r.createElement(Ze,{selectedCount:o,onAddClick:()=>{t.popMgr.addEmptyPopulation()},onDeleteClick:()=>{t.popMgr.removePopulations(a),n([])},addDisabled:!t.uiStateMgr.caseBasedOrigGroupingProvisioned}))})),sa=(0,l.Pi)((e=>{const{isSelected:t,onSelectClick:a,el:n,appMgr:l}=e,i=(e,t)=>{t&&l.popCombMgr.setCombinationName(n.id,e)},s=e=>{l.popCombMgr.setCombinationCasePopulations(n.id,e.target.value)},o=e=>{l.popCombMgr.setCombinationAggrPopulations(n.id,e.target.value)},m=e=>{let t="";return""===e&&(t="Please, specify a unique name"),t};let c=null,u=null,d=null,g=null;return n.id===l.popCombMgr.combinationAllId?(u=n.name,d="All data available",g="All data available after selection above"):(c=r.createElement(pe.Z,{inputProps:{"aria-labelledby":`labelId${n.id}`},color:"primary",checked:t,onClick:a}),u=r.createElement(De,{value:n.name,validationFunc:m,onChange:i,helperText:"",sx:{width:"100%","& .MuiInputBase-root":{fontSize:"0.75rem"}}}),d=r.createElement(ge.Z,{multiple:!0,renderValue:e=>r.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},e.map((e=>r.createElement(Se.Z,{key:e,label:e,sx:{margin:"2px"},color:"secondary"})))),value:n.casePopulations,disabled:0===l.popMgr.definedPopulations.length,onChange:s,sx:{width:"100%",fontSize:"0.75rem","&:before":{borderBottom:"0px solid black"}}},l.popMgr.definedPopulations.map(((e,t)=>r.createElement(he.Z,{key:t,value:e,dense:!0},e)))),g=r.createElement(ge.Z,{multiple:!0,renderValue:e=>r.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},e.map((e=>r.createElement(Se.Z,{key:e,label:e,sx:{margin:"2px"},color:"secondary"})))),value:n.aggrPopulations,onChange:o,sx:{width:"100%",fontSize:"0.75rem","&:before":{borderBottom:"0px solid black"}}},l.aggrDataMgr.populationNames.map(((e,t)=>r.createElement(he.Z,{key:t,value:e,dense:!0},e))))),r.createElement(q.Z,{hover:!0,role:"checkbox"},r.createElement(K.Z,{padding:"checkbox",sx:{verticalAlign:"top"}},c),r.createElement(K.Z,{id:`labelId${n.id}`,scope:"row",sx:{padding:"4px 4px 6px 0px",verticalAlign:"top"}},u),r.createElement(K.Z,{sx:{padding:"4px 4px 0px 16px",verticalAlign:"top"}},d),r.createElement(K.Z,{sx:{padding:"4px 4px 0px 16px",verticalAlign:"top"}},g))})),oa=(0,l.Pi)((e=>{const{appMgr:t}=e,[a,n]=r.useState([]),l=t.popCombMgr.combinationsArray,i=e=>()=>{let t=[];t=-1===a.indexOf(e)?t.concat(a,e):Ae(a,e),n(t)},s=l.length-1,o=a.length;return r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(p.Z,{variant:"overline"},"Populations combinations"),r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,{padding:"checkbox"},r.createElement(pe.Z,{inputProps:{"aria-label":"select all"},color:"primary",onClick:e=>{if(e.target.checked){const e=Ae(l.map((e=>e.id)),t.popCombMgr.combinationAllId);n(e)}else n([])},checked:s>0&&o===s})),r.createElement(K.Z,{width:"30%",padding:"none"},"Combination name"),r.createElement(K.Z,{width:"35%"},"Case-based populations"),r.createElement(K.Z,{width:"35%"},"Aggregated populations"))),r.createElement(J.Z,null,l.map(((e,n)=>{return r.createElement(sa,{key:n,el:e,appMgr:t,isSelected:(l=e.id,-1!==a.indexOf(l)),onSelectClick:i(e.id)});var l})))),r.createElement(Ze,{selectedCount:o,onAddClick:()=>{t.popCombMgr.addEmptyCombination()},onDeleteClick:()=>{t.popCombMgr.removeCombinations(a),n([])}}))})),ma=(0,l.Pi)((({i:e,rowCount:t,dataFile:a,appMgr:n})=>{const l=(e,t)=>{n.aggrDataMgr.setDataFileYears(a.name,t)},i="Dead"!==a.name&&n.modelMgr.migrConnFlag,s=i?{color:"rgba(0, 0, 0, 0.26)"}:null;let o=null;return(1===t||t>1&&0===e)&&(o=r.createElement(K.Z,{rowSpan:t,sx:{pt:5,pr:3,pb:1}},r.createElement(ke.ZP,{min:n.aggrDataMgr.rangeYears[0],max:n.aggrDataMgr.rangeYears[1],marks:!0,value:a.years,onChange:l,sx:{"& *":{fontSize:"9px"}},valueLabelDisplay:"on",valueLabelFormat:e=>e.toFixed(),"aria-labelledby":"range-slider",getAriaLabel:e=>e.toFixed(),getAriaValueText:e=>e.toFixed(),color:"secondary",disabled:i}))),r.createElement(q.Z,{hover:!i},r.createElement(K.Z,{sx:s},a.name),r.createElement(K.Z,null,r.createElement(He.Z,{color:"primary",checked:a.use,onChange:e=>{n.aggrDataMgr.setDataFileUse(a.name,e.target.checked)},size:"small",disabled:i})),o)})),ca=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(p.Z,{variant:"overline"},"Aggregated data selection"),r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,{width:"320px"},"Data type"),r.createElement(K.Z,{width:"100px"},"Use"),r.createElement(K.Z,null,"Years"))),r.createElement(J.Z,null,t.aggrDataMgr.dataFiles.map(((e,a)=>r.createElement(ma,{key:a,i:a,rowCount:1,dataFile:e,appMgr:t}))))))})),ua=e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",onClick:e=>t.uiStateMgr.setActivePageId(4,1)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Case-based data")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(p.Z,null,"Create populations from data"),r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Stratify data by values present in the data. Select one or more variables.")),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(ia,e)),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(H.Z,{light:!0,style:{margin:"30px 0"}})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Aggregated data")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(p.Z,null,"Select data for modelling"),r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Only years present in the aggregated data set will overwrite case-based derived data.")),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(ca,e)),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(H.Z,{light:!0,style:{margin:"30px 0"}})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Combine populations")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Combine case-based and aggregated data populations.")),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(oa,e))))},da=(0,l.Pi)((e=>{const{i:t,isSelected:a,onSelectClick:n,interval:l,collection:i}=e,s=e=>i.setIntervalStartYear(t,e.target.value);let o=null;return o=0===t?l.startYear:r.createElement(Te.Z,{style:{width:"100%",fontSize:"0.75rem"},value:l.startYear,type:"number",onChange:s}),r.createElement(q.Z,{hover:!0,role:"checkbox"},r.createElement(K.Z,{padding:"checkbox"},r.createElement(pe.Z,{inputProps:{"aria-labelledby":`labelId${t}`},color:"primary",checked:a,onClick:n})),r.createElement(K.Z,{id:"labelId1",scope:"row",padding:"none"},o),r.createElement(K.Z,{sx:{textAlign:"center"}},l.endYear),r.createElement(K.Z,{padding:"checkbox",sx:{textAlign:"center"}},r.createElement(pe.Z,{color:"primary",checked:l.jump,onChange:e=>i.setIntervalJump(t,e.target.checked)})),r.createElement(K.Z,{padding:"checkbox",sx:{textAlign:"center"}},r.createElement(pe.Z,{color:"primary",checked:l.diffByCD4,onChange:e=>i.setIntervalDiffByCD4(t,e.target.checked)})),r.createElement(K.Z,{padding:"checkbox",sx:{textAlign:"center"}},r.createElement(pe.Z,{color:"primary",checked:l.changeInInterval,onChange:e=>i.setIntervalChangeInInterval(t,e.target.checked)})))})),ga=(0,l.Pi)((e=>{const{timeIntCollMgr:t}=e,[a,n]=r.useState([]),l=t.selectedEditCollection,i=l.intervals,s=e=>t=>{const r=a.indexOf(e);let l=[];-1===r?l=l.concat(a,e):0===r?l=l.concat(a.slice(1)):r===a.length-1?l=l.concat(a.slice(0,-1)):r>0&&(l=l.concat(a.slice(0,r),a.slice(r+1))),n(l)},o=i.length,m=a.length,c=e=>-1!==a.indexOf(e);return r.createElement(X.Z,{style:{padding:10}},r.createElement(p.Z,{variant:"overline"},"Collection: ",l.name),r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,{padding:"checkbox"},r.createElement(pe.Z,{inputProps:{"aria-label":"select all"},color:"primary",onClick:e=>{if(e.target.checked){const e=i.map(((e,t)=>t));n(e)}else n([])},checked:o>0&&m===o})," "),r.createElement(K.Z,{width:"20%",padding:"none"},"Start year"),r.createElement(K.Z,{width:"20%",sx:{textAlign:"center"}},"End year"),r.createElement(K.Z,{width:"20%",sx:{textAlign:"center"}},"Jump"),r.createElement(K.Z,{width:"20%",sx:{textAlign:"center"}},"Change by CD4 count"),r.createElement(K.Z,{width:"20%",sx:{textAlign:"center"}},"Change in interval"))),r.createElement(J.Z,null,i.map(((e,t)=>r.createElement(da,{key:t,i:t,interval:e,collection:l,isSelected:c(t),onSelectClick:s(t)}))))),r.createElement(Ze,{selectedCount:m,onAddClick:()=>{l.addEmptyInterval()},onDeleteClick:()=>{l.removeIntervals(a),n([])}}))})),pa=(0,l.Pi)((e=>{const{timeIntCollMgr:t}=e,a=t.defaultEditCollectionSelected;return r.createElement(r.Fragment,null,r.createElement(ge.Z,{value:t.selectedEditCollectionId,onChange:e=>t.setSelectedEditCollectionId(e.target.value),style:{width:"100%",fontSize:"0.75rem"}},t.collectionsArray.map(((e,t)=>r.createElement(he.Z,{key:t,value:e.id,dense:!0},e.name)))),r.createElement(R.Z,{color:"primary",onClick:()=>t.deleteSelectedEditCollection(),disabled:a},"Delete"),r.createElement(R.Z,{color:"primary",onClick:()=>t.addNewCollection()},"Add"))})),ha=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",onClick:()=>t.uiStateMgr.setActivePageId(4,2)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Load model parameters file")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement("input",{style:{display:"none"},id:"modelUploadBtn",type:"file",accept:".xml, .zip",onChange:e=>{const a=e.target.files[0];t.modelMgr.setModelsParamFile(a),e.target.value=null}}),r.createElement(z.Z,{title:"Select XML model file",arrow:!0},r.createElement("label",{htmlFor:"modelUploadBtn"},r.createElement(ae,null,r.createElement(ee.Z,null)," Load model"))),r.createElement(z.Z,{title:"Save XML model file",arrow:!0},r.createElement("span",null,r.createElement(R.Z,{sx:{marginTop:"6px",marginBottom:"6px",marginLeft:"20px"},color:"primary",onClick:e=>t.modelMgr.saveModelsParamFile()},"Save model"))),r.createElement(p.Z,{variant:"body2",color:"textSecondary",style:{marginTop:10}},"Parameters loaded from model file override those determined from data.",r.createElement("br",null),"Supported files types: xml (uncompressed and zip archives)")),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(p.Z,{variant:"overline"},"Uploaded file details"),r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(W.Z,null,r.createElement(J.Z,null,r.createElement(q.Z,null,r.createElement(K.Z,{width:100},"File name"),r.createElement(K.Z,null,t.modelMgr.modelsParamFileName)))))))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(H.Z,{light:!0,style:{margin:"30px 0"}})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Time intervals and diagnosis rates modelling")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(pa,{timeIntCollMgr:t.modelMgr.timeIntCollMgr})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(ga,{timeIntCollMgr:t.modelMgr.timeIntCollMgr}))))})),Ea=e=>{const{minYear:t,maxYear:a,value:n,onChange:l}=e;return r.createElement(ke.ZP,{min:t,max:a,value:n,marks:!0,onChange:l,sx:{"& *":{fontSize:"9px"}},valueLabelDisplay:"on",valueLabelFormat:e=>e.toFixed(),"aria-labelledby":"range-slider",getAriaLabel:e=>e.toFixed(),getAriaValueText:e=>e.toFixed(),color:"secondary"})},Ma=(0,l.Pi)((e=>{const{appMgr:t}=e,a=t.modelMgr.optimalYears.All[0]-1,n=t.modelMgr.optimalYears.All[1];return r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(p.Z,{variant:"overline"},"Advanced parameters"),r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,{width:"50px"},"Idx"),r.createElement(K.Z,{width:"330px"},"Parameter"),r.createElement(K.Z,null,"Value"))),r.createElement(J.Z,null,r.createElement(q.Z,null,r.createElement(K.Z,null,"1."),r.createElement(K.Z,null,"Range of calculations"),r.createElement(K.Z,{sx:{pt:5,pr:3,pb:1}},r.createElement(Ea,{minYear:a,maxYear:n,value:[t.modelMgr.minYear,t.modelMgr.maxYear],onChange:(e,a)=>{t.modelMgr.setMinYear(a[0]),t.modelMgr.setMaxYear(a[1])}}))),r.createElement(q.Z,null,r.createElement(K.Z,null,"2."),r.createElement(K.Z,null,"HIV diagnoses, total"),r.createElement(K.Z,{sx:{pt:5,pr:3,pb:1}},r.createElement(Ea,{minYear:a,maxYear:n,value:[t.modelMgr.minFitPos,t.modelMgr.maxFitPos],onChange:(e,a)=>{t.modelMgr.setMinFitPos(a[0]),t.modelMgr.setMaxFitPos(a[1])}}))),r.createElement(q.Z,null,r.createElement(K.Z,null,"3."),r.createElement(K.Z,null,"HIV diagnoses, by CD4 count"),r.createElement(K.Z,{sx:{pt:5,pr:3,pb:1}},r.createElement(Ea,{minYear:a,maxYear:n,value:[t.modelMgr.minFitCD4,t.modelMgr.maxFitCD4],onChange:(e,a)=>{t.modelMgr.setMinFitCD4(a[0]),t.modelMgr.setMaxFitCD4(a[1])}}))),r.createElement(q.Z,null,r.createElement(K.Z,null,"4."),r.createElement(K.Z,null,"AIDS diagnoses, total"),r.createElement(K.Z,{sx:{pt:5,pr:3,pb:1}},r.createElement(Ea,{minYear:a,maxYear:n,value:[t.modelMgr.minFitAIDS,t.modelMgr.maxFitAIDS],onChange:(e,a)=>{t.modelMgr.setMinFitAIDS(a[0]),t.modelMgr.setMaxFitAIDS(a[1])}}))),r.createElement(q.Z,null,r.createElement(K.Z,null,"5."),r.createElement(K.Z,null,"HIV/AIDS diagnoses, total"),r.createElement(K.Z,{sx:{pt:5,pr:3,pb:1}},r.createElement(Ea,{minYear:a,maxYear:n,value:[t.modelMgr.minFitHIVAIDS,t.modelMgr.maxFitHIVAIDS],onChange:(e,a)=>{t.modelMgr.setMinFitHIVAIDS(a[0]),t.modelMgr.setMaxFitHIVAIDS(a[1])}}))),r.createElement(q.Z,null,r.createElement(K.Z,null,"6."),r.createElement(K.Z,null,"Do you have data from the start of the epidemic?"),r.createElement(K.Z,null,r.createElement(lt.Z,{row:!0,value:t.modelMgr.fullData,onChange:e=>t.modelMgr.setFullData("true"===e.target.value)},r.createElement(Ue.Z,{value:!0,control:r.createElement(nt.Z,{color:"primary"}),label:"Yes"}),r.createElement(Ue.Z,{value:!1,control:r.createElement(nt.Z,{color:"primary"}),label:"No"})))),r.createElement(q.Z,null,r.createElement(K.Z,null,"7."),r.createElement(K.Z,null,"Knots count"),r.createElement(K.Z,null,r.createElement(Te.Z,{style:{width:"120px",fontSize:"0.75rem"},value:t.modelMgr.knotsCount,onChange:e=>{const a=parseInt(e.target.value);t.modelMgr.setKnotsCount(a)},type:"number",inputProps:{min:1,max:10}}))),r.createElement(q.Z,null,r.createElement(K.Z,null,"8."),r.createElement(K.Z,null,"Start at zero"),r.createElement(K.Z,null,r.createElement(lt.Z,{row:!0,value:t.modelMgr.startIncZero,onChange:e=>t.modelMgr.setStartIncZero("true"===e.target.value)},r.createElement(Ue.Z,{value:!0,control:r.createElement(nt.Z,{color:"primary"}),label:"Yes"}),r.createElement(Ue.Z,{value:!1,control:r.createElement(nt.Z,{color:"primary"}),label:"No"})))),r.createElement(q.Z,null,r.createElement(K.Z,null,"9."),r.createElement(K.Z,null,"Prevent sudden changes at end of observation interval"),r.createElement(K.Z,null,r.createElement(lt.Z,{row:!0,value:t.modelMgr.maxIncCorr,onChange:e=>t.modelMgr.setMaxIncCorr("true"===e.target.value)},r.createElement(Ue.Z,{value:!0,control:r.createElement(nt.Z,{color:"primary"}),label:"Yes"}),r.createElement(Ue.Z,{value:!1,control:r.createElement(nt.Z,{color:"primary"}),label:"No"})))),r.createElement(q.Z,null,r.createElement(K.Z,null,"10."),r.createElement(K.Z,null,"Maximum likelihood distribution"),r.createElement(K.Z,null,r.createElement(lt.Z,{row:!0,value:t.modelMgr.distributionFit,onChange:e=>t.modelMgr.setDistributionFit(e.target.value)},r.createElement(Ue.Z,{value:"POISSON",control:r.createElement(nt.Z,{color:"primary"}),label:"Poisson"}),r.createElement(Ue.Z,{value:"NEGATIVE_BINOMIAL",control:r.createElement(nt.Z,{color:"primary"}),label:"Negative Binomial"})))),r.createElement(q.Z,null,r.createElement(K.Z,null,"11."),r.createElement(K.Z,null,"Extra diagnosis rate due to non-AIDS symptoms"),r.createElement(K.Z,null,r.createElement(Te.Z,{style:{width:"120px",fontSize:"0.75rem"},value:t.modelMgr.delta4Fac,onChange:e=>t.modelMgr.setDelta4Fac(e.target.value),type:"number",inputProps:{min:0,max:10,step:.01}}))),r.createElement(q.Z,null,r.createElement(K.Z,null,"12."),r.createElement(K.Z,null,"Country-specific settings"),r.createElement(K.Z,null,r.createElement(ge.Z,{value:t.modelMgr.country,onChange:e=>t.modelMgr.setCountry(e.target.value),style:{width:"120px",fontSize:"0.75rem"}},r.createElement(he.Z,{value:"OTHER",dense:!0},"Other"),r.createElement(he.Z,{value:"NL",dense:!0},"NL")))))))})),Sa=e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",onClick:e=>t.uiStateMgr.setActivePageId(4,3)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Advanced paramaters")),r.createElement(O.ZP,{item:!0,xs:2}),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(Ma,e))))},ya=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.uiStateMgr.bootstrapEnabled,onClick:e=>t.uiStateMgr.setActivePageId(4,4)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Perform main fit of HIV model")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"1. Migrant connection"),r.createElement(lt.Z,{row:!0,value:t.modelMgr.migrConnFlag,onChange:e=>t.modelMgr.setMigrConnFlag("true"===e.target.value)},r.createElement(Ue.Z,{value:!0,control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Yes"}),r.createElement(Ue.Z,{value:!1,control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"No"})),r.createElement(Me.Z,null,"Enable alternative HIV modelling processing with migrant status information used."),r.createElement(p.Z,{variant:"body2",color:"textSecondary",style:{marginTop:20}},"2. Population"),r.createElement(Ee.Z,{style:{width:"100%"}},r.createElement(ge.Z,{value:t.popCombMgr.selectedCombination.id,onChange:e=>{t.popCombMgr.setSelectedCombination(e.target.value)},style:{width:"100%",fontSize:"0.75rem"}},t.popCombMgr.combinationsArray.map((e=>r.createElement(he.Z,{key:e.id,value:e.id,dense:!0},e.name)))),r.createElement(Me.Z,null,"Select population")),r.createElement(p.Z,{variant:"body2",color:"textSecondary",style:{width:"100%",marginTop:20}},"3. Time intervals and diagnosis rates"),r.createElement(Ee.Z,{style:{marginBottom:20}},r.createElement(ge.Z,{value:t.modelMgr.timeIntCollMgr.selectedRunCollectionId,onChange:e=>{t.modelMgr.timeIntCollMgr.setSelectedRunCollectionId(e.target.value)},style:{width:"100%",fontSize:"0.75rem"}},t.modelMgr.timeIntCollMgr.collectionsArray.map(((e,t)=>r.createElement(he.Z,{key:t,value:e.id,dense:!0},e.name)))),r.createElement(Me.Z,null,"Select time intervals and diagnosis rates modelling matrix")),r.createElement(ae,{onClick:()=>{t.modelMgr.runModels()},disabled:t.modelMgr.modelsRunInProgress}," Run main model"),r.createElement(R.Z,{onClick:()=>{t.modelMgr.cancelModels()},color:"primary",style:{marginLeft:20},disabled:!t.modelMgr.modelsRunInProgress},"Cancel"),r.createElement(Ot,{progress:t.modelMgr.modelsRunProgress})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(p.Z,{variant:"overline"},"Run log"),r.createElement("pre",{dangerouslySetInnerHTML:{__html:t.modelMgr.modelsRunLog},style:{overflowX:"auto",fontSize:"0.75rem"}})))))})),Da=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.uiStateMgr.modellingOutputsEnabled,onClick:e=>t.uiStateMgr.setActivePageId(4,5)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Perform bootstrap fit of HIV model")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(Ee.Z,{style:{width:"100%",marginTop:20}},r.createElement(Te.Z,{style:{width:"100%",fontSize:"0.75rem"},value:t.modelMgr.bootstrapCount,onChange:e=>t.modelMgr.setBootstrapCount(e.target.value),type:"number"}),r.createElement(Me.Z,null,"Set the number of iterations")),r.createElement(Ee.Z,{sx:{marginTop:"20px",marginBottom:"20px",width:"100%"}},r.createElement(lt.Z,{row:!0,value:t.modelMgr.bootstrapType,onChange:e=>t.modelMgr.setBootstrapType(e.target.value)},r.createElement(Ue.Z,{value:"PARAMETRIC",control:r.createElement(nt.Z,{color:"primary"}),label:"Parametric",sx:{"& span":{fontSize:"0.75rem"}}}),r.createElement(Ue.Z,{value:"NON-PARAMETRIC",control:r.createElement(nt.Z,{color:"primary"}),label:"Non-parametric",disabled:!t.uiStateMgr.nonParametricBootstrapEnabled,sx:{"& span":{fontSize:"0.75rem"}}})),r.createElement(Me.Z,null,"Set the bootstrap type")),r.createElement(ae,{onClick:()=>t.modelMgr.runBootstrap(),disabled:t.modelMgr.bootstrapRunInProgress},"Run bootstrap"),r.createElement(R.Z,{onClick:()=>t.modelMgr.cancelBootstrap(),color:"primary",style:{marginLeft:20},disabled:!t.modelMgr.bootstrapRunInProgress},"Cancel"),r.createElement(Ot,{progress:t.modelMgr.bootstrapRunProgress})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(p.Z,{variant:"overline"},"Run log"),r.createElement("pre",{dangerouslySetInnerHTML:{__html:t.modelMgr.bootstrapRunLog},style:{overflowX:"auto",fontSize:"0.75rem"}})))))}));var ba=a(2688);const fa=(0,l.Pi)((e=>{const{tableData:t,maxHeight:a}=e;return x(t)?null:r.createElement(ba.Z,{style:{maxHeight:a||300}},r.createElement(W.Z,{size:"small",stickyHeader:!0,sx:{"& > .MuiTableHead-root":{"& > .MuiTableRow-root":{"& > .MuiTableCell-root":{padding:"5px",fontSize:"0.6rem",backgroundColor:"white",textAlign:"right",whiteSpace:"nowrap"}}},"& > .MuiTableBody-root":{"& > .MuiTableRow-root":{"& > .MuiTableCell-root":{padding:"5px",fontSize:"0.6rem",backgroundColor:"transparent",textAlign:"right",whiteSpace:"nowrap"}}}}},r.createElement(de.Z,null,r.createElement(q.Z,null,t.colNames.map(((e,t)=>r.createElement(K.Z,{key:t},e))))),r.createElement(J.Z,null,t.values.map(((e,a)=>r.createElement(q.Z,{hover:!0,key:a},t.colNames.map(((e,n)=>r.createElement(K.Z,{key:n},t.values[a][n])))))))))})),Pa=(0,l.Pi)((e=>{const{appMgr:t}=e;if(x(t.modelMgr.plotData))return null;const a=["#69b023","#c7c7c7"],n={orient:"horizontal",left:"center",top:0,selector:!1};return r.createElement(O.ZP,{container:!0,spacing:2,style:{marginTop:20}},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"A. HIV diagnoses, total")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:t.modelMgr.gofTable1Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:t.modelMgr.gofPlot1Data,legendOptions:n,color:a,showConfBounds:t.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"B. HIV diagnoses, CD4 ","≥"," 500")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:t.modelMgr.gofTable2Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:t.modelMgr.gofPlot2Data,legendOptions:n,color:a,showConfBounds:t.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"C. HIV diagnoses, CD4 350 - 499")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:t.modelMgr.gofTable3Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:t.modelMgr.gofPlot3Data,legendOptions:n,color:a,showConfBounds:t.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"D. HIV diagnoses, CD4 200 - 349")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:t.modelMgr.gofTable4Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:t.modelMgr.gofPlot4Data,legendOptions:n,color:a,showConfBounds:t.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"E. HIV diagnoses, CD4 ","<"," 200")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:t.modelMgr.gofTable5Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:t.modelMgr.gofPlot5Data,legendOptions:n,color:a,showConfBounds:t.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"F. HIV/AIDS diagnoses")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:t.modelMgr.gofTable6Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:t.modelMgr.gofPlot6Data,legendOptions:n,color:a,showConfBounds:t.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"G. AIDS diagnoses, total")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:t.modelMgr.gofTable7Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:t.modelMgr.gofPlot7Data,legendOptions:n,color:a,showConfBounds:t.modelMgr.showConfBounds})))})),xa=(0,l.Pi)((e=>{const{appMgr:t}=e;return x(t.modelMgr.plotData)?null:r.createElement(O.ZP,{container:!0,spacing:2,style:{marginTop:20}},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"A. Main results")),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(fa,{tableData:t.modelMgr.mainOutputTableData,maxHeight:"100%"})))})),Ca=(0,l.Pi)((({appMgr:e})=>{if(x(e.modelMgr.plotData))return null;const t=["#69b023","#7bbcc0","#9d8b56","#ce80ce","#c7c7c7"],a={orient:"horizontal",left:"center",top:0,selector:!1};return console.log(e.modelMgr.outputTable1Data),r.createElement(O.ZP,{container:!0,spacing:2,style:{marginTop:20}},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"A. HIV infections per year")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:e.modelMgr.outputTable1Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:e.modelMgr.outputPlot1Data,legendOptions:a,color:t,showConfBounds:e.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"B. Time to diagnosis")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:e.modelMgr.outputTable2Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Years",data:e.modelMgr.outputPlot2Data,legendOptions:a,color:t,showConfBounds:e.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"C. Total number of HIV-infected"),r.createElement(p.Z,{variant:"body2",color:"textSecondary",sx:{mt:1}},"Count of undiagnosed migrants can be underestimated")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:e.modelMgr.outputTable3Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:e.modelMgr.outputPlot3Data,legendOptions:a,color:t,showConfBounds:e.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"D. Proportion undiagnosed of all those alive")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:e.modelMgr.outputTable4Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Proportion",data:e.modelMgr.outputPlot4Data,legendOptions:a,color:t,showConfBounds:e.modelMgr.showConfBounds})))})),Za=(0,l.Pi)((e=>{const{appMgr:t}=e,[a,n]=r.useState(0);return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",onClick:()=>t.uiStateMgr.setActivePageId(6)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"HIV Modelling results")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(Ue.Z,{control:r.createElement(He.Z,{checked:t.modelMgr.showConfBounds,onChange:e=>t.modelMgr.setShowConfBounds(e.target.checked),color:"primary",size:"small"}),label:"Show confidence bounds"}),r.createElement(p.Z,{variant:"body2",color:"textSecondary",sx:{mt:1}},"Enable plotting confidence bounds in the output plots if available."),r.createElement(p.Z,{variant:"body2",color:"textSecondary",sx:{mt:1}},'Dotted curves represent data not used in the modelling (see year ranges in tab "Advanced").')),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(Nt.Z,{value:a,onChange:(e,t)=>n(t),indicatorColor:"primary",textColor:"primary"},r.createElement(Ft.Z,{label:"Goodness of fit"}),r.createElement(Ft.Z,{label:"Tables"}),r.createElement(Ft.Z,{label:"Graphs"})),0===a&&r.createElement(Pa,{appMgr:t}),1===a&&r.createElement(xa,{appMgr:t}),2===a&&r.createElement(Ca,{appMgr:t})))))})),Aa=(0,l.Pi)((e=>{const{appMgr:t}=e,a=t.uiStateMgr.activeSubPageId;return r.createElement(r.Fragment,null,0===a&&r.createElement(ua,e),1===a&&r.createElement(ha,e),2===a&&r.createElement(Sa,e),3===a&&r.createElement(ya,e),4===a&&r.createElement(Da,e),5===a&&r.createElement(Za,e))}));var va=a(3376);const Ia=(0,l.Pi)((e=>{const{appMgr:t}=e,a=["reportHTML","reportPDF","reportLATEX","reportWORD"];r.useEffect((()=>(t.unbindShiny(a),t.bindShiny(),()=>t.unbindShiny(a))));return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.uiStateMgr.outputsPageEnabled,onClick:()=>t.uiStateMgr.setActivePageId(6)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Select report")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(Ee.Z,{style:{width:"100%",marginTop:20,marginBottom:20}},r.createElement(ge.Z,{value:1,style:{width:"100%",fontSize:"0.75rem"}},r.createElement(he.Z,{value:1,dense:!0},"Report on adjusted data")),r.createElement(Me.Z,null,"Select report type")),r.createElement(ae,{onClick:()=>t.reportMgr.createReport(),disabled:t.reportMgr.creatingReportInProgress},"Create report"),r.createElement(R.Z,{onClick:()=>t.reportMgr.cancelCreatingReport(),color:"primary",style:{marginLeft:20},disabled:!t.reportMgr.creatingReportInProgress},"Cancel"),r.createElement(Ot,{progress:t.reportMgr.creatingReportInProgress})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(p.Z,{variant:"overline"},"Parameters for report on adjusted data"),r.createElement(ft.Z,null,r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.reportMgr.adjustReportParams.reportingDelay,onChange:(e,a)=>t.reportMgr.setAdjustReportReportingDelay(a),color:"primary"}),label:"Adjust count of cases for reporting delay"}),r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.reportMgr.adjustReportParams.smoothing,onChange:(e,a)=>t.reportMgr.setAdjustReportSmoothing(a),color:"primary"}),label:"Apply plot curves smoothing"}),r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.reportMgr.adjustReportParams.cd4ConfInt,onChange:(e,a)=>t.reportMgr.setAdjustReportCD4ConfInt(a),color:"primary"}),label:"Plot inter-quartile range in CD4 count plots"})),r.createElement(R.Z,{color:"primary",onClick:()=>t.reportMgr.restoreDefaults()},"Restore defaults"))),t.reportMgr.report&&r.createElement(r.Fragment,null,r.createElement(O.ZP,{item:!0,xs:12},r.createElement(H.Z,{light:!0,style:{margin:"30px 0"}})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"View and download")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(va.Z,{download:!0,href:"#",id:"reportHTML",className:"shiny-download-link"},"HTML"),r.createElement(va.Z,{download:!0,href:"#",id:"reportPDF",className:"shiny-download-link",style:{marginLeft:10}},"PDF"),r.createElement(va.Z,{download:!0,href:"#",id:"reportLATEX",className:"shiny-download-link",style:{marginLeft:10}},"Latex"),r.createElement(va.Z,{download:!0,href:"#",id:"reportWORD",className:"shiny-download-link",style:{marginLeft:10}},"MS Word")),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement("div",{dangerouslySetInnerHTML:{__html:t.reportMgr.report},style:{overflowX:"auto"}}))))))})),Ra=(0,l.Pi)((e=>{const{appMgr:t}=e,a=["downAdjDataCSV","downAdjDataRDS","downAdjDataDTA","downRepDelDataCSV","downRepDelDataRDS","downRepDelDataDTA","downMainFitDetailedRDS","downMainFitCSV","downMainFitRDS","downMainFitDTA","downBootFitDetailedRDS","downBootFitCSV","downBootFitRDS","downBootFitDTA","downBootStatDetailedRDS","downBootStatCSV","downBootStatRDS","downBootStatDTA","downFitXLSM","downFitXLSX"];r.useEffect((()=>(t.unbindShiny(a),t.bindShiny(),()=>t.unbindShiny(a))));let n=null;n=t.uiStateMgr.adjustmentsOutputsEnabled?r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downAdjDataCSV",className:"shiny-download-link"},"csv (text)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downAdjDataRDS",className:"shiny-download-link"},"rds (R)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downAdjDataDTA",className:"shiny-download-link"},"dta (Stata)")):r.createElement(r.Fragment,null,"csv (text) | rds (R) | dta (Stata)");let l=null;l=t.uiStateMgr.repDelOutputsEnabled?r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downRepDelDataCSV",className:"shiny-download-link"},"csv (text)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downRepDelDataRDS",className:"shiny-download-link"},"rds (R)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downRepDelDataDTA",className:"shiny-download-link"},"dta (Stata)")):r.createElement(r.Fragment,null,"csv (text) | rds (R) | dta (Stata)");let i=null,s=null,o=null;t.uiStateMgr.modellingOutputsEnabled?(i=r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downMainFitDetailedRDS",className:"shiny-download-link"},"rds (R)")),s=r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downMainFitCSV",className:"shiny-download-link"},"csv (text)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downMainFitRDS",className:"shiny-download-link"},"rds (R)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downMainFitDTA",className:"shiny-download-link"},"dta (Stata)")),o=r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downFitXLSM",className:"shiny-download-link"},"xlsm (Excel with Macro - automatic refresh)")," |",r.createElement("br",null),r.createElement(va.Z,{download:!0,href:"#",id:"downFitXLSX",className:"shiny-download-link"},"xlsx (Excel without Macro - manual refresh)"))):(i=r.createElement(r.Fragment,null,"rds (R)"),s=r.createElement(r.Fragment,null,"csv (text) | rds (R) | dta (Stata)"),o=r.createElement(r.Fragment,null,"xlsm (Excel with Macro - automatic refresh) |",r.createElement("br",null),"xlsx (Excel without Macro - manual refresh)"));let m=null,c=null,u=null,d=null;return t.uiStateMgr.bootstrapOutputsEnabled?(m=r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downBootFitDetailedRDS",className:"shiny-download-link"},"rds (R)")),c=r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downBootFitCSV",className:"shiny-download-link"},"csv (text)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downBootFitRDS",className:"shiny-download-link"},"rds (R)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downBootFitDTA",className:"shiny-download-link"},"dta (Stata)")),u=r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downBootStatDetailedRDS",className:"shiny-download-link"},"rds (R)")),d=r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downBootStatCSV",className:"shiny-download-link"},"csv (text)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downBootStatRDS",className:"shiny-download-link"},"rds (R)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downBootStatDTA",className:"shiny-download-link"},"dta (Stata)"))):(m=r.createElement(r.Fragment,null,"rds (R)"),c=r.createElement(r.Fragment,null,"csv (text) | rds (R) | dta (Stata)"),u=r.createElement(r.Fragment,null,"rds (R)"),d=r.createElement(r.Fragment,null,"csv (text) | rds (R) | dta (Stata)")),r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2,style:{paddingTop:43}},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Outputs")),r.createElement(O.ZP,{item:!0,xs:2},"Adjustments"),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,null,r.createElement(K.Z,{width:"300px"},"Description"),r.createElement(K.Z,{width:"320px"},"Format"),r.createElement(K.Z,null,"Description"))),r.createElement(J.Z,null,r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Adjusted case-based data"),r.createElement(K.Z,null,n),r.createElement(K.Z,null,"Flat table")),r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Reporting delays distribution"),r.createElement(K.Z,null,l),r.createElement(K.Z,null,"Flat table")))))),r.createElement(O.ZP,{item:!0,xs:2},"HIV Model"),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,null,r.createElement(K.Z,{width:"300px"},"Description"),r.createElement(K.Z,{width:"320px"},"Format"),r.createElement(K.Z,null,"Description"))),r.createElement(J.Z,null,r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Detailed main fit model results"),r.createElement(K.Z,null,i),r.createElement(K.Z,null,"R list object")),r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Main outputs of main fit model"),r.createElement(K.Z,null,s),r.createElement(K.Z,null,"Flat table")),r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Detailed bootstrap fits model results"),r.createElement(K.Z,null,m),r.createElement(K.Z,null,"R list object")),r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Main outputs of bootstrap fits"),r.createElement(K.Z,null,c),r.createElement(K.Z,null,"Flat table")),r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Detailed bootstrap statistics results"),r.createElement(K.Z,null,u),r.createElement(K.Z,null,"R list object")),r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Main outputs bootstrap statistics"),r.createElement(K.Z,null,d),r.createElement(K.Z,null,"Flat table")),r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Main outputs of main fit and bootstrap"),r.createElement(K.Z,null,o),r.createElement(K.Z,null,"Excel file with tables and charts"))))))))}));var Ta=a(7467),Na=a(598);const Fa=(0,l.Pi)((e=>{const{notificationsMgr:t}=e,a=(e,a)=>{"clickaway"!==a&&t.clearMsg()};return r.createElement(Ta.Z,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:t.hasMsg,autoHideDuration:5e3,onClose:a,message:t.msgInfo.msg,action:r.createElement(r.Fragment,null,r.createElement(E.Z,{size:"small","aria-label":"close",color:"inherit",onClick:a},r.createElement(Na.Z,{fontSize:"small"})))})}));function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(p.Z,Oa({component:"div",role:"tabpanel",hidden:t!==e,id:`wrapped-tabpanel-${e}`,"aria-labelledby":`wrapped-tab-${e}`,style:{flexGrow:1,overflowY:"scroll"}},n),t===e&&r.createElement(h.Z,{p:2},a)),Ya=(0,l.f3)("appMgr")((0,l.Pi)((e=>{const{appMgr:t}=e,[a,n]=r.useState(!1);{const e=e=>{e.preventDefault(),e.returnValue=""};r.useEffect((()=>(window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e))),[])}const l=t.shinyReady?"#69b023":"#f44336",i=r.createElement(d.Z,{position:"sticky",sx:{backgroundColor:`${l}`}},r.createElement(g.Z,{variant:"dense",disableGutters:!0},r.createElement(p.Z,{variant:"h4",sx:{fontWeight:"bold",color:"white",ml:"10px"}},t.packageDetails.Title),r.createElement(p.Z,{variant:"overline",sx:{color:"white",ml:"20px",lineHeight:1.5}},"Version: ",t.packageDetails.Version," ",r.createElement("br",null),"Build date: ",t.packageDetails.Date),r.createElement(h.Z,{flexGrow:1}),r.createElement(p.Z,{variant:"overline",sx:{color:"white"}},"Engine state: ",t.shinyStateHuman),r.createElement(E.Z,{onClick:()=>n(!a),size:"large",sx:{color:"white"}},r.createElement(M.Z,null))));return r.createElement(h.Z,{display:"flex",flexGrow:1,flexDirection:"column",sx:{overflow:"hidden"},p:0},r.createElement(F,Oa({},e,{open:a,onClose:()=>n(!1)})),i,r.createElement(h.Z,{display:"flex",flexGrow:1,flexDirection:"row",sx:{overflow:"hidden",backgroundColor:"#fafafa"},p:0},r.createElement(Z,{pages:t.uiStateMgr.pages,activePageId:t.uiStateMgr.activePageId,onPageChange:(e,a)=>{t.uiStateMgr.setActivePageId(e,a)}}),r.createElement(wa,{pageId:0,activePageId:t.uiStateMgr.activePageId},r.createElement(U,e)),r.createElement(wa,{pageId:1,activePageId:t.uiStateMgr.activePageId},r.createElement(Be,e)),r.createElement(wa,{pageId:2,activePageId:t.uiStateMgr.activePageId},r.createElement(Dt,e)),r.createElement(wa,{pageId:3,activePageId:t.uiStateMgr.activePageId},r.createElement(Yt,e)),r.createElement(wa,{pageId:4,activePageId:t.uiStateMgr.activePageId},r.createElement(ra,e)),r.createElement(wa,{pageId:5,activePageId:t.uiStateMgr.activePageId},r.createElement(Aa,e)),r.createElement(wa,{pageId:6,activePageId:t.uiStateMgr.activePageId},r.createElement(Ia,e)),r.createElement(wa,{pageId:7,activePageId:t.uiStateMgr.activePageId},r.createElement(Ra,e))),r.createElement(Fa,{notificationsMgr:t.notificationsMgr}))}))),_a=(0,m.Z)({typography:{fontSize:12},palette:{primary:{main:"#69b023"},secondary:{main:"#bedfe1"}},components:{MuiStepLabel:{styleOverrides:{label:{color:"black","&.Mui-active":{fontWeight:"bold"},"&.Mui-completed":{fontWeight:"bold"},"&.Mui-disabled":{color:"rgba(0, 0, 0, 0.5)"}},iconContainer:{"& text":{fill:"white"}}}},MuiStepConnector:{styleOverrides:{vertical:{marginLeft:"10px"}}},MuiStepContent:{styleOverrides:{root:{marginLeft:"10px","& .MuiList-root":{paddingBottom:"0px"},"& .MuiButtonBase-root":{padding:"6px",fontSize:"0.75rem"}}}},MuiAutocomplete:{styleOverrides:{option:{fontSize:"0.75rem"}}},MuiTableRow:{defaultProps:{hover:!0},styleOverrides:{root:{"&:last-child td":{borderBottom:"0px"}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:"1px solid rgba(240, 240, 240, 1)"},head:{fontWeight:"bold"}}},MuiSelect:{defaultProps:{variant:"standard"},styleOverrides:{select:{paddingBottom:"5px"}}},MuiTextField:{defaultProps:{variant:"standard"}}}}),La=()=>r.createElement(c.Z,{injectFirst:!0},r.createElement(u.Z,{theme:_a},r.createElement(r.Fragment,null,r.createElement(o.ZP,null),r.createElement(Ya,null))));var ja=a(1003),Ba=a(9514);class ka{rootMgr=null;lastEventType=null;completedSteps=null;pages=[{title:"Welcome",completed:!1,disabled:!1,subPages:[]},{title:"Input data upload",completed:!1,disabled:!0,subPages:[{title:"Case-based data",disabled:!1},{title:"Aggregated data",disabled:!1}],activeSubPageId:0},{title:"Case-based data summary",completed:!1,disabled:!0,subPages:[],description:"Subset of case-based data can be selected here for adjustments and modelling"},{title:"Adjustments",completed:!1,disabled:!0,subPages:[{title:"Inputs",disabled:!1},{title:"Run",disabled:!1}],activeSubPageId:0},{title:"Migration",completed:!1,disabled:!1,subPages:[]},{title:"Modelling",completed:!1,disabled:!0,subPages:[{title:"Populations",disabled:!1},{title:"Inputs",disabled:!1},{title:"Advanced",disabled:!1},{title:"Run Main Fit",disabled:!1},{title:"Run Bootstrap",disabled:!1},{title:"Tables and charts",disabled:!1}],activeSubPageId:0},{title:"Reports",completed:!1,disabled:!0,subPages:[]},{title:"Outputs",completed:!1,disabled:!0,subPages:[]}];activePageId=0;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{completedSteps:ja.LO,pages:ja.LO,activePageId:ja.LO,lastEventType:ja.LO,pagesTitles:ja.Fl,uploadPageEnabled:ja.Fl,summaryPageEnabled:ja.Fl,adjustmentsPageEnabled:ja.Fl,migrantPageEnabled:ja.Fl,modellingPageEnabled:ja.Fl,reportsPageEnabled:ja.Fl,outputsPageEnabled:ja.Fl,caseBasedAttrMappingEnabled:ja.Fl,caseBasedOrigGroupingProvisioned:ja.Fl,caseBasedOrigGroupingEnabled:ja.Fl,migrConnEnabled:ja.Fl,bootstrapEnabled:ja.Fl,adjustmentsOutputsEnabled:ja.Fl,repDelOutputsEnabled:ja.Fl,modellingOutputsEnabled:ja.Fl,bootstrapOutputsEnabled:ja.Fl,caseBasedDataUnloadEnabled:ja.Fl,aggrDataUnloadEnabled:ja.Fl,setCompletedSteps:ja.aD,setActivePageId:ja.aD,setLastEventType:ja.aD,setSubPageDisabledStatus:ja.aD,setUIState:ja.aD})}get pagesTitles(){return this.pages.map((e=>e.title))}get activeSubPageId(){return this.pages[this.activePageId].activeSubPageId}get uploadPageEnabled(){return be("SESSION_INITIALIZED",this.completedSteps)}get summaryPageEnabled(){return be("CASE_BASED_SUMMARY",this.completedSteps)}get adjustmentsPageEnabled(){return be("CASE_BASED_ORIGIN_GROUPING",this.completedSteps)}get migrantPageEnabled(){return be("CASE_BASED_ORIGIN_GROUPING",this.completedSteps)&&this.rootMgr.migrMgr.dataCompatibleFlag}get modellingPageEnabled(){return be("CASE_BASED_ORIGIN_GROUPING",this.completedSteps)||be("AGGR_READ",this.completedSteps)}get reportsPageEnabled(){return be("CASE_BASED_ADJUSTMENTS",this.completedSteps)}get outputsPageEnabled(){return be("CASE_BASED_ADJUSTMENTS",this.completedSteps)||be("MODELLING",this.completedSteps)}get caseBasedAttrMappingEnabled(){return be("CASE_BASED_READ",this.completedSteps)}get caseBasedDataUnloadEnabled(){return be("CASE_BASED_READ",this.completedSteps)}get aggrDataUnloadEnabled(){return be("AGGR_READ",this.completedSteps)}get caseBasedOrigGroupingProvisioned(){return be("CASE_BASED_ATTR_MAPPING",this.completedSteps)}get caseBasedOrigGroupingEnabled(){return this.caseBasedOrigGroupingProvisioned&&0===this.rootMgr.origGroupMgr.unusedOrigins.length}get migrConnEnabled(){return be("CASE_BASED_MIGRATION",this.completedSteps)}get bootstrapEnabled(){return be("MODELLING",this.completedSteps)}get nonParametricBootstrapEnabled(){return be("CASE_BASED_ORIGIN_GROUPING",this.completedSteps)}get adjustmentsOutputsEnabled(){return be("CASE_BASED_ADJUSTMENTS",this.completedSteps)}get repDelOutputsEnabled(){return be("CASE_BASED_ADJUSTMENTS",this.completedSteps)&&be("REPORTING_DELAYS",this.rootMgr.adjustMgr.runAdjustmentsTypes)}get modellingOutputsEnabled(){return be("MODELLING",this.completedSteps)}get bootstrapOutputsEnabled(){return be("BOOTSTRAP",this.completedSteps)}setCompletedSteps=e=>{this.completedSteps=Pe(e),this.refreshPagesStatus()};setActivePageId=(e,t=-1)=>{this.pages[e].disabled?this.rootMgr.notificationsMgr.setMsg("Page this link refers to is not enabled"):(this.activePageId=e,-1!==t&&t{this.pages[e].subPages[t].disabled=a};setLastEventType=e=>this.lastEventType=e;refreshPagesStatus=()=>{this.pages[0].completed=this.activePageId>0,this.pages[1].completed=this.activePageId>1,this.pages[2].completed=this.activePageId>2,this.pages[3].completed=this.activePageId>3,this.pages[4].completed=this.activePageId>4,this.pages[1].disabled=!this.uploadPageEnabled,this.pages[2].disabled=!this.summaryPageEnabled,this.pages[3].disabled=!this.adjustmentsPageEnabled,this.pages[4].disabled=!this.migrantPageEnabled,this.pages[5].disabled=!this.modellingPageEnabled,this.pages[6].disabled=!this.reportsPageEnabled,this.pages[7].disabled=!this.outputsPageEnabled,this.setSubPageDisabledStatus(5,4,!this.bootstrapEnabled),this.setSubPageDisabledStatus(5,5,!this.modellingOutputsEnabled)};setUIState=e=>{this.lastEventType=e.lastEventType,this.completedSteps=e.completedSteps,this.pages=e.pages,this.activePageId=e.activePageId}}const Ua=e=>`${e}_${("000000"+(2176782336*Math.random()<<0).toString(36)).slice(-6)}`;class Ha{rootMgr=null;msgInfo={key:null,msg:null};constructor(e){this.rootMgr=e,(0,ja.rC)(this,{msgInfo:ja.LO,hasMsg:ja.Fl,setMsg:ja.aD,clearMsg:ja.aD,setUIState:ja.aD})}get hasMsg(){return null!==this.msgInfo.msg}setMsg=e=>{this.msgInfo={msg:e,key:Ua("msg")}};clearMsg=()=>{this.msgInfo={key:null,msg:null}};setUIState=e=>{this.msgInfo=e.msgInfo}}class Ga{rootMgr=null;mapping=[];actionStatus=null;actionMessage=null;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{mapping:ja.LO,actionStatus:ja.LO,actionMessage:ja.LO,setMapping:ja.aD,setOrigCol:ja.aD,setDefVal:ja.aD,applyMapping:ja.aD,setActionStatus:ja.aD,setActionMessage:ja.aD,actionValid:ja.Fl,setUIState:ja.aD})}setMapping=e=>{this.mapping=e,this.runCheck()};setActionStatus=e=>this.actionStatus=e;setActionMessage=e=>this.actionMessage=e;setOrigCol=(e,t)=>{const a=this.mapping.findIndex((t=>t.attribute===e));-1!==a?(this.mapping[a].origColName=""!==t?t:null,this.runCheck()):console.log(`AttrMappingManager.setOrigCol: cannot find element with Attribute "${e}"`)};setDefVal=(e,t)=>{const a=this.mapping.findIndex((t=>t.attribute===e));-1!==a?(this.mapping[a].defaultValue=""!==t?t:null,this.runCheck()):console.log(`AttrMappingManager.setDefVal: cannot find element with Attribute "${e}"`)};applyMapping=()=>{this.rootMgr.btnClicked("attrMapping:AttrMappingArray",this.mapping)};runCheck=()=>{const e=[...this.mapping.filter((e=>e.origColName)).map((e=>e.origColName)).reduce(((e,t)=>e.set(t,(e.get(t)||0)+1)),new Map)].filter((e=>e[1]>1)).map((e=>e[0]));let t=null,a=null;e.length>0?(a="FAIL",t=`Column${e.length>1?"s":""} "${e.join(", ")}" ${e.length>1?"are":"is"} mapped multiple times`):(a="SUCCESS",t="Attribute mapping is valid"),this.setActionStatus(a),this.setActionMessage(t)};get actionValid(){return x(this.actionStatus)?null:"SUCCESS"===this.actionStatus}setUIState=e=>{this.mapping=e.mapping,this.actionStatus=e.actionStatus,this.actionMessage=e.actionMessage}}const Va=(e,t)=>{let a=Pe(t).map((t=>parseFloat(t.replace(e,""))));return Math.max(0,Math.max.apply(null,a.filter((e=>!isNaN(e)))))+1};class za{rootMgr=null;distribution={FullRegionOfOrigin:[],Count:[]};groupings=[];preset="REPCOUNTRY + UNK + OTHER";repCountryGroupingIdx=null;actionStatus=null;actionMessage=null;migrantCompatibleStatus=null;migrantCompatibleMessage=null;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{distribution:ja.LO,groupings:ja.LO,preset:ja.LO,actionStatus:ja.LO,actionMessage:ja.LO,migrantCompatibleStatus:ja.LO,migrantCompatibleMessage:ja.LO,distributionArray:ja.Fl,origins:ja.Fl,usedOrigins:ja.Fl,unusedOrigins:ja.Fl,groupingsJS:ja.Fl,usedNames:ja.Fl,setDistribution:ja.aD,setGroupings:ja.aD,setPreset:ja.aD,setGroupName:ja.aD,setGroupOrigin:ja.aD,setMigrantOrigin:ja.aD,removeGroupings:ja.aD,addEmptyGrouping:ja.aD,applyGroupings:ja.aD,setActionStatus:ja.aD,setActionMessage:ja.aD,actionValid:ja.Fl,setUIState:ja.aD}),(0,ja.EH)((()=>{this.rootMgr.inputValueSet("checkOriginGrouping:OriginGroupingArray",this.groupingsJS)}))}get distributionArray(){const e=this.distribution.FullRegionOfOrigin,t=this.distribution.Count;return e.map(((a,r)=>({origin:e[r],count:t[r]})))}get origins(){return this.distribution.FullRegionOfOrigin.slice().sort()}get usedOrigins(){return[].concat.apply([],this.groupings.map((e=>e.FullRegionOfOrigin)))}get unusedOrigins(){return this.origins.filter((e=>!this.usedOrigins.includes(e)))}get groupingsJS(){return(0,ja.ZN)(this.groupings)}get usedNames(){return this.groupings.map((e=>e.GroupedRegionOfOrigin))}setDistribution=e=>this.distribution=e;setGroupings=e=>{this.groupings=e.map((e=>({GroupedRegionOfOrigin:e.GroupedRegionOfOrigin,FullRegionOfOrigin:Pe(e.FullRegionOfOrigin),MigrantRegionOfOrigin:e.MigrantRegionOfOrigin,groupCount:0}))),this.computeGroupCounts()};setPreset=e=>this.preset=e;setActionStatus=e=>this.actionStatus=e;setActionMessage=e=>this.actionMessage=e;setMigrantCompatibleStatus=e=>this.migrantCompatibleStatus=e;setMigrantCompatibleMessage=e=>this.migrantCompatibleMessage=e;setGroupName=(e,t)=>{this.groupings[e].GroupedRegionOfOrigin=t,this.preset="Custom"};setGroupOrigin=(e,t)=>{this.groupings[e].FullRegionOfOrigin=t,this.computeGroupCounts(),this.preset="Custom"};setMigrantOrigin=(e,t)=>{this.groupings[e].MigrantRegionOfOrigin=t,this.computeGroupCounts(),this.preset="Custom"};removeGroupings=e=>{this.groupings=xe(this.groupings,e),this.computeGroupCounts(),this.preset="Custom"};addEmptyGrouping=()=>{this.groupings.push({GroupedRegionOfOrigin:`Group ${Va("Group ",this.usedNames)}`,FullRegionOfOrigin:[],MigrantRegionOfOrigin:"",groupCount:0}),this.computeGroupCounts(),this.preset="Custom"};applyGroupings=()=>{this.rootMgr.btnClicked("originGrouping:OriginGroupingArray",this.groupings)};computeGroupCounts=()=>{this.groupings.forEach((e=>{e.groupCount=e.FullRegionOfOrigin.reduce(((e,t)=>{const a=this.distributionArray.findIndex((e=>e.origin==t));return-1!==a?e+this.distributionArray[a].count:e}),0)}))};get actionValid(){return x(this.actionStatus)?null:"SUCCESS"===this.actionStatus}setUIState=e=>{this.distribution=e.distribution,this.groupings=e.groupings,this.preset=e.preset,this.actionStatus=e.actionStatus,this.actionMessage=e.actionMessage,this.migrantCompatibleStatus=e.migrantCompatibleStatus,this.migrantCompatibleMessage=e.migrantCompatibleMessage}}const Wa=e=>{var t=e.data("currentUploader");t&&t.abort(),e.removeAttr("data-restore")};var $a=function(e){this.files=e,this.fileIndex=-1,this.aborted=!1,this.completed=!1,this.$run()};function Qa(e,t,a){var r=$(t);Wa(r);var n=t.files;0!==n.length&&(this.shinyapp=e,this.id=t.id,this.el=t,this.progressCallback=a,$a.call(this,n))}(function(){this.onBegin=function(e,t){setTimeout(t,0)},this.onFile=function(e,t){setTimeout(t,0)},this.onComplete=function(){},this.onAbort=function(){},this.abort=function(){this.completed||this.aborted||(this.aborted=!0,this.onAbort())},this.$getRun=function(){var e=this,t=!1;return function(){t||(t=!0,e.$run())}},this.$run=function(){if(!this.aborted&&!this.completed){if(this.fileIndex<0)return this.fileIndex=0,void this.onBegin(this.files,this.$getRun());if(this.fileIndex===this.files.length)return this.completed=!0,void this.onComplete();var e=this.files[this.fileIndex++];this.onFile(e,this.$getRun())}}}).call($a.prototype),$.extend(Qa.prototype,$a.prototype),function(){this.makeRequest=function(e,t,a,r,n){this.shinyapp.makeRequest(e,t,a,r,n)},this.onBegin=function(e,t){var a=this;this.onProgress(0),this.totalBytes=0,this.progressBytes=0,$.each(e,(function(e,t){a.totalBytes+=t.size}));var r=$.map(e,(function(e){return{name:e.name,size:e.size,type:e.type}}));this.makeRequest("uploadInit",[r],(function(e){a.jobId=e.jobId,a.uploadUrl=e.uploadUrl,t()}),(function(e){a.onError(e)}))},this.onFile=function(e,t){var a=this;this.onProgress(0),$.ajax(this.uploadUrl,{type:"POST",cache:!1,xhr:function(){var e=$.ajaxSettings.xhr();return e.upload&&(e.upload.onprogress=function(e){e.lengthComputable&&a.onProgress((a.progressBytes+e.loaded)/a.totalBytes)}),e},data:e,contentType:"application/octet-stream",processData:!1,success:function(){a.progressBytes+=e.size,t()},error:function(e,t){a.onError(e.responseText||t)}})},this.onComplete=function(){var e=this,t=$.map(this.files,(function(e){return{name:e.name,size:e.size,type:e.type}})),a=jQuery.Event("shiny:inputchanged");a.name=this.id,a.value=t,a.el=this.el,a.inputType="shiny.fileupload",$(document).trigger(a),this.makeRequest("uploadEnd",[this.jobId,this.id],(function(){e.onProgress(null)}),(function(t){e.onError(t)}))},this.onError=function(e){console.log("onError: ",e),this.progressCallback(null)},this.onAbort=function(){console.log("onAbort"),this.progressCallback(null)},this.onProgress=function(e){this.progressCallback(e)}}.call(Qa.prototype);class Ja{rootMgr=null;fileName=null;fileSize=null;fileType=null;filePath=null;columnNames=[];recordCount=null;uploadProgress=null;actionStatus=null;actionMessage=null;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{fileName:ja.LO,fileSize:ja.LO,fileType:ja.LO,filePath:ja.LO,columnNames:ja.LO,recordCount:ja.LO,uploadProgress:ja.LO,actionStatus:ja.LO,actionMessage:ja.LO,setFileName:ja.aD,setFileSize:ja.aD,setFileType:ja.aD,setFilePath:ja.aD,setRecordCount:ja.aD,setColumnNames:ja.aD,setColumnNames:ja.aD,uploadData:ja.aD,unloadData:ja.aD,setUploadProgress:ja.aD,setActionStatus:ja.aD,setActionMessage:ja.aD,columnNamesString:ja.Fl,actionValid:ja.Fl,setUIState:ja.aD})}setFileName=e=>this.fileName=e;setFileSize=e=>this.fileSize=e;setFileType=e=>this.fileType=e;setFilePath=e=>this.filePath=e;setRecordCount=e=>this.recordCount=e;setColumnNames=e=>this.columnNames=Pe(e);setUploadProgress=e=>this.uploadProgress=e;setActionStatus=e=>this.actionStatus=e;setActionMessage=e=>this.actionMessage=e;uploadData=e=>{$(e).data("currentUploader",new Qa(Shiny.shinyapp,e,this.setUploadProgress))};unloadData=()=>{this.rootMgr.btnClicked("unloadCaseBasedData")};get columnNamesString(){return null===this.columnNames?"":this.columnNames.join(", ")}get actionValid(){return x(this.actionStatus)?null:"SUCCESS"===this.actionStatus}setUIState=e=>{this.fileName=e.fileName,this.fileSize=e.fileSize,this.fileType=e.fileType,this.filePath=e.filePath,this.columnNames=e.columnNames,this.recordCount=e.recordCount,this.uploadProgress=e.uploadProgress,this.actionStatus=e.actionStatus,this.actionMessage=e.actionMessage}}class Ka{rootMgr=null;fileName=null;fileSize=null;fileType=null;filePath=null;dataFiles=[];origDataFiles=[];rangeYears=null;dataFileNameToIdxMap=new Map;populationNames=[];fileUploadProgress=null;actionStatus=null;actionMessage=null;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{fileName:ja.LO,fileSize:ja.LO,fileType:ja.LO,filePath:ja.LO,populationNames:ja.LO,fileUploadProgress:ja.LO,dataFiles:ja.LO.deep,origDataFiles:ja.LO,rangeYears:ja.LO,actionStatus:ja.LO,actionMessage:ja.LO,dataNames:ja.Fl,dataNamesString:ja.Fl,populationNamesString:ja.Fl,setFileName:ja.aD,setFileSize:ja.aD,setFileType:ja.aD,setFilePath:ja.aD,setDataFiles:ja.aD,setDataFileUse:ja.aD,setDataFileYears:ja.aD,setPopulationNames:ja.aD,setFileUploadProgress:ja.aD,uploadData:ja.aD,setActionStatus:ja.aD,setActionMessage:ja.aD,setRangeYears:ja.aD,actionValid:ja.Fl,setUIState:ja.aD}),(0,ja.EH)((()=>this.rootMgr.inputValueSet("aggrFilters:AggrFilters",(0,ja.ZN)(this.dataFiles))),{delay:1e3})}setFileName=e=>this.fileName=e;setFileSize=e=>this.fileSize=e;setFileType=e=>this.fileType=e;setFilePath=e=>this.filePath=e;setDataFiles=e=>{this.origDataFiles=Pe(e),this.dataFiles=Pe(e),this.dataFileNameToIdxMap=new Map(this.dataFiles.map(((e,t)=>[e.name,t])))};setDataFileUse=(e,t)=>{this.dataFiles[this.dataFileNameToIdxMap.get(e)].use=t};setDataFileYears=(e,t)=>this.dataFiles[this.dataFileNameToIdxMap.get(e)].years=t;setPopulationNames=e=>this.populationNames=Pe(e).sort();setFileUploadProgress=e=>this.fileUploadProgress=e;setRangeYears=e=>this.rangeYears=e;uploadData=e=>{$(e).data("currentUploader",new Qa(Shiny.shinyapp,e,this.setFileUploadProgress))};setActionStatus=e=>this.actionStatus=e;setActionMessage=e=>this.actionMessage=e;get dataNames(){return this.dataFiles.map((e=>e.name))}get dataNamesString(){return null===this.dataNames?"":this.dataNames.join(", ")}get populationNamesString(){return null===this.populationNames?"":this.populationNames.join(", ")}get actionValid(){return x(this.actionStatus)?null:"SUCCESS"===this.actionStatus}setUIState=e=>{this.fileName=e.fileName,this.fileSize=e.fileSize,this.fileType=e.fileType,this.filePath=e.filePath,this.dataFiles=e.dataFiles,this.origDataFiles=e.origDataFiles,this.rangeYears=e.rangeYears,this.dataFileNameToIdxMap=e.dataFileNameToIdxMap,this.populationNames=e.populationNames,this.fileUploadProgress=e.fileUploadProgress,this.actionStatus=e.actionStatus,this.actionMessage=e.actionMessage}}class qa{rootMgr=null;selectedCount=null;totalCount=null;diagYearPlotData={filter:{scaleMinYear:null,scaleMaxYear:null,valueMinYear:null,valueMaxYear:null,applyInAdjustments:null},chartCategories:[],chartData:[]};notifQuarterPlotData={filter:{scaleMinYear:null,scaleMaxYear:null,valueMinYear:null,valueMaxYear:null,applyInAdjustments:null},chartCategories:[],chartData:[]};missPlotData={plot1:{chartCategories:[],chartData:{all:[],female:[],male:[]}},plot2:{chartCategories:[],chartData:{all:[],female:[],male:[]}},plot3:{chartData:{all:[],female:[],male:[]}},plot4:{chartCategories:[],chartData:{all:[],female:[],male:[]}}};missPlotSelection="all";repDelPlotData={chartData:{all:{q95:0,series:[]},female:{q95:0,series:[]},male:{q95:0,series:[]}}};repDelPlotSelection="all";dispose=null;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{selectedCount:ja.LO,totalCount:ja.LO,diagYearPlotData:ja.LO,notifQuarterPlotData:ja.LO,missPlotData:ja.LO,missPlotSelection:ja.LO,repDelPlotData:ja.LO,repDelPlotSelection:ja.LO,reset:ja.aD,setSelectedCount:ja.aD,setTotalCount:ja.aD,setDiagYearPlotData:ja.aD,setDiagYearFilterApply:ja.aD,setDiagYearFilterMinYear:ja.aD,setDiagYearFilterMaxYear:ja.aD,setNotifQuarterPlotData:ja.aD,setNotifQuarterFilterApply:ja.aD,setNotifQuarterFilterMinYear:ja.aD,setNotifQuarterFilterMaxYear:ja.aD,setMissPlotData:ja.aD,setMissPlotSelection:ja.aD,setRepDelPlotData:ja.aD,setRepDelPlotSelection:ja.aD,notifQuarterSliderMarks:ja.Fl,notifQuarterChartCategories:ja.Fl,missPlot1Series:ja.Fl,missPlot2Series:ja.Fl,missPlot3Series:ja.Fl,missPlot4Series:ja.Fl,repDelPlot:ja.Fl,missPlot3Categories:ja.Fl,missPlot4Categories:ja.Fl,filters:ja.Fl,setUIState:ja.aD}),this.dispose=(0,ja.U5)((()=>this.filters),(e=>{console.log("Filters changed"),this.rootMgr.inputValueSet("summaryFilters",e)}),{delay:1e3})}setSelectedCount=e=>this.selectedCount=e;setTotalCount=e=>this.totalCount=e;setDiagYearPlotData=e=>this.diagYearPlotData=e;setDiagYearFilterApply=e=>this.diagYearPlotData.filter.applyInAdjustments=e;setDiagYearFilterMinYear=e=>{this.diagYearPlotData.filter.valueMinYear!==e&&(this.diagYearPlotData.filter.valueMinYear=e)};setDiagYearFilterMaxYear=e=>{this.diagYearPlotData.filter.valueMaxYear!==e&&(this.diagYearPlotData.filter.valueMaxYear=e)};setNotifQuarterPlotData=e=>this.notifQuarterPlotData=e;setNotifQuarterFilterApply=e=>this.notifQuarterPlotData.filter.applyInAdjustments=e;setNotifQuarterFilterMinYear=e=>{this.notifQuarterPlotData.filter.valueMinYear!==e&&(this.notifQuarterPlotData.filter.valueMinYear=e)};setNotifQuarterFilterMaxYear=e=>{this.notifQuarterPlotData.filter.valueMaxYear!==e&&(this.notifQuarterPlotData.filter.valueMaxYear=e)};setMissPlotData=e=>this.missPlotData=e;setMissPlotSelection=e=>this.missPlotSelection=e;setRepDelPlotData=e=>this.repDelPlotData=e;setRepDelPlotSelection=e=>this.repDelPlotSelection=e;get notifQuarterSliderMarks(){return this.notifQuarterPlotData.chartCategories.map((e=>({value:e,label:""})))}get notifQuarterChartCategories(){return this.notifQuarterPlotData.chartCategories.map((e=>at(e)))}get missPlot1Series(){return this.missPlotData.plot1.chartData[this.missPlotSelection]}get missPlot2Series(){return this.missPlotData.plot2.chartData[this.missPlotSelection]}get missPlot3Series(){const e=this.missPlotData.plot3.chartData[this.missPlotSelection];let t=["Present","Missing"].map((t=>e.map((e=>e.name===t?e.y:0))));return t[2]=e.map((e=>ut(e.y))),t}get missPlot4Series(){return this.missPlotData.plot4.chartData[this.missPlotSelection]}get repDelPlot(){const e=(0,ja.ZN)(this.repDelPlotData.chartData[this.repDelPlotSelection]);return{q95:e.q95,series:[{name:"density",data:e.series}]}}get missPlot3Categories(){return this.missPlotData.plot3.chartData[this.missPlotSelection].map((e=>`${(100*e.y).toFixed(2)} %`))}get missPlot4Categories(){return this.missPlotData.plot4.chartCategories}get filters(){return{DiagYear:{ApplyInAdjustments:this.diagYearPlotData.filter.applyInAdjustments,MinYear:this.diagYearPlotData.filter.valueMinYear,MaxYear:this.diagYearPlotData.filter.valueMaxYear},NotifQuarter:{ApplyInAdjustments:this.notifQuarterPlotData.filter.applyInAdjustments,MinYear:this.notifQuarterPlotData.filter.valueMinYear,MaxYear:this.notifQuarterPlotData.filter.valueMaxYear}}}reset=()=>{this.selectedCount=null,this.totalCount=null,this.diagYearPlotData={filter:{scaleMinYear:null,scaleMaxYear:null,valueMinYear:null,valueMaxYear:null,applyInAdjustments:null},chartCategories:[],chartData:[]},this.notifQuarterPlotData={filter:{scaleMinYear:null,scaleMaxYear:null,valueMinYear:null,valueMaxYear:null,applyInAdjustments:null},chartCategories:[],chartData:[]},this.missPlotData={plot1:{chartCategories:[],chartData:{all:[],female:[],male:[]}},plot2:{chartCategories:[],chartData:{all:[],female:[],male:[]}},plot3:{chartData:{all:[],female:[],male:[]}},plot4:{chartCategories:[],chartData:{all:[],female:[],male:[]}}},this.missPlotSelection="all",this.repDelPlotData={chartData:{all:{q95:0,series:[]},female:{q95:0,series:[]},male:{q95:0,series:[]}}},this.repDelPlotSelection="all"};setUIState=e=>{this.dispose(),this.selectedCount=e.selectedCount,this.totalCount=e.totalCount,this.diagYearPlotData=e.diagYearPlotData,this.notifQuarterPlotData=e.notifQuarterPlotData,this.missPlotData=e.missPlotData,this.missPlotSelection=e.missPlotSelection,this.repDelPlotData=e.repDelPlotData,this.repDelPlotSelection=e.repDelPlotSelection,this.dispose=(0,ja.U5)((()=>this.filters),(e=>{console.log("Filters changed"),this.rootMgr.inputValueSet("summaryFilters",e)}),{delay:1e3,fireImmediately:!1})}}class Xa{rootMgr=null;miAdjustType="none";miJomoSettings={nimp:5,nburn:1e3,nbetween:500,nsdf:4,imputeRD:!1};miMiceSettings={nimp:5,nit:10,nsdf:4,imputeRD:!1};rdAdjustType="none";dataBounds={startYear:2e3,endYear:2017,endQrt:1};rdWithoutTrendSettings={startYear:2e3,endYear:2017,endQrt:1,stratGender:!1,stratTrans:!1,stratMigr:!1};rdWithTrendSettings={startYear:2e3,endYear:2017,endQrt:1,stratGender:!1,stratTrans:!1,stratMigr:!1};adjustmentsRunProgress=null;adjustmentsRunLog=null;adjustmentsReport=null;runAdjustmentsTypes=[];constructor(e){this.rootMgr=e,(0,ja.rC)(this,{miAdjustType:ja.LO,miJomoSettings:ja.LO,miMiceSettings:ja.LO,rdAdjustType:ja.LO,rdWithoutTrendSettings:ja.LO,rdWithTrendSettings:ja.LO,adjustmentsRunProgress:ja.LO,adjustmentsRunLog:ja.LO,adjustmentsReport:ja.LO,runAdjustmentsTypes:ja.LO,miParams:ja.Fl,rdParams:ja.Fl,adjustmentSelected:ja.Fl,adjustmentsRunInProgress:ja.Fl,setRunAdjustmentsTypes:ja.aD,setMIAdjustType:ja.aD,setRDAdjustType:ja.aD,setMIJomoNimp:ja.aD,setMIJomoNburn:ja.aD,setMIJomoNbetween:ja.aD,setMIJomoNsdf:ja.aD,setMIJomoImputeRD:ja.aD,setMIMiceNimp:ja.aD,setMIMiceNit:ja.aD,setMIMiceNsdf:ja.aD,setMIMiceImputeRD:ja.aD,restoreMIDefaults:ja.aD,restoreRDDefaults:ja.aD,setRDWithoutStartYear:ja.aD,setRDWithoutEndYear:ja.aD,setRDWithoutEndQrt:ja.aD,setRDWithoutStratGender:ja.aD,setRDWithoutStratTrans:ja.aD,setRDWithoutStratMigr:ja.aD,setRDWithStartYear:ja.aD,setRDWithEndYear:ja.aD,setRDWithEndQrt:ja.aD,setRDWithStratGender:ja.aD,setRDWithStratTrans:ja.aD,setRDWithStratMigr:ja.aD,runAdjustments:ja.aD,cancelAdjustments:ja.aD,setAdjustmentsRunProgress:ja.aD,setAdjustmentsRunLog:ja.aD,setAdjustmentsReport:ja.aD,setDataBounds:ja.aD,setUIState:ja.aD}),(0,ja.EH)((()=>{this.rootMgr.uiStateMgr.setSubPageDisabledStatus(3,1,!this.adjustmentSelected)}))}get miParams(){let e=null;return"jomo"===this.miAdjustType?e=this.miJomoSettings:"mice"===this.miAdjustType&&(e=this.miMiceSettings),e}get rdParams(){let e=null;return"withoutTrend"===this.rdAdjustType?e=this.rdWithoutTrendSettings:"withTrend"===this.rdAdjustType&&(e=this.rdWithTrendSettings),e}get adjustmentSelected(){return"none"!==this.miAdjustType||"none"!==this.rdAdjustType}get adjustmentsRunInProgress(){return null!==this.adjustmentsRunProgress}setRunAdjustmentsTypes=e=>this.runAdjustmentsTypes=Pe(e);setMIAdjustType=e=>this.miAdjustType=e;setMIJomoNimp=e=>this.miJomoSettings.nimp=e;setMIJomoNburn=e=>this.miJomoSettings.nburn=e;setMIJomoNbetween=e=>this.miJomoSettings.nbetween=e;setMIJomoNsdf=e=>this.miJomoSettings.nsdf=e;setMIJomoImputeRD=e=>this.miJomoSettings.imputeRD=e;setMIMiceNimp=e=>this.miMiceSettings.nimp=e;setMIMiceNit=e=>this.miMiceSettings.nit=e;setMIMiceNsdf=e=>this.miMiceSettings.nsdf=e;setMIMiceImputeRD=e=>this.miMiceSettings.imputeRD=e;restoreMIDefaults=e=>{"jomo"===e?this.miJomoSettings={nimp:5,nburn:1e3,nbetween:500,nsdf:4,imputeRD:!1}:"mice"===e&&(this.miMiceSettings={nimp:5,nit:5,nsdf:4,imputeRD:!1})};setRDAdjustType=e=>this.rdAdjustType=e;setRDWithoutStartYear=e=>this.rdWithoutTrendSettings.startYear=e;setRDWithoutEndYear=e=>this.rdWithoutTrendSettings.endYear=e;setRDWithoutEndQrt=e=>this.rdWithoutTrendSettings.endQrt=e;setRDWithoutStratGender=e=>this.rdWithoutTrendSettings.stratGender=e;setRDWithoutStratTrans=e=>this.rdWithoutTrendSettings.stratTrans=e;setRDWithoutStratMigr=e=>this.rdWithoutTrendSettings.stratMigr=e;setRDWithStartYear=e=>this.rdWithTrendSettings.startYear=e;setRDWithEndYear=e=>this.rdWithTrendSettings.endYear=e;setRDWithEndQrt=e=>this.rdWithTrendSettings.endQrt=e;setRDWithStratGender=e=>this.rdWithTrendSettings.stratGender=e;setRDWithStratTrans=e=>this.rdWithTrendSettings.stratTrans=e;setRDWithStratMigr=e=>this.rdWithTrendSettings.stratMigr=e;setDataBounds=e=>this.dataBounds=e;restoreRDDefaults=e=>{"withoutTrend"===e?this.rdWithoutTrendSettings={startYear:this.dataBounds.startYear,endYear:this.dataBounds.endYear,endQrt:this.dataBounds.endQrt,stratGender:!1,stratTrans:!1,stratMigr:!1}:"withTrend"===e&&(this.rdWithTrendSettings={startYear:this.dataBounds.startYear,endYear:this.dataBounds.endYear,endQrt:this.dataBounds.endQrt,stratGender:!1,stratTrans:!1,stratMigr:!1})};runAdjustments=()=>{this.rootMgr.btnClicked("runAdjustBtn",{MIAdjustType:this.miAdjustType,MIParams:this.miParams,RDAdjustType:this.rdAdjustType,RDParams:this.rdParams})};cancelAdjustments=()=>this.rootMgr.btnClicked("cancelAdjustBtn");setAdjustmentsRunProgress=e=>this.adjustmentsRunProgress=e;setAdjustmentsRunLog=e=>this.adjustmentsRunLog=e;setAdjustmentsReport=e=>this.adjustmentsReport=e;setUIState=e=>{this.miAdjustType=e.miAdjustType,this.miJomoSettings=e.miJomoSettings,this.miMiceSettings=e.miMiceSettings,this.rdAdjustType=e.rdAdjustType,this.dataBounds=e.dataBounds,this.rdWithoutTrendSettings=e.rdWithoutTrendSettings,this.rdWithTrendSettings=e.rdWithTrendSettings,this.adjustmentsRunProgress=e.adjustmentsRunProgress,this.adjustmentsRunLog=e.adjustmentsRunLog,this.adjustmentsReport=e.adjustmentsReport}}class er{rootMgr=null;availableVariables=[];availableStrata={};populations=[];constructor(e){this.rootMgr=e,(0,ja.rC)(this,{availableVariables:ja.LO,availableStrata:ja.LO,populations:ja.LO,addEmptyPopulation:ja.aD,removePopulations:ja.aD,setPopulationVariables:ja.aD,setAvailableVariables:ja.aD,setAvailableStrata:ja.aD,populationsJS:ja.Fl,availableVarNames:ja.Fl,definedPopulations:ja.Fl})}addEmptyPopulation=()=>{this.populations.push({id:Ua("Population"),variables:[],variablesKey:null,strata:[]})};setAvailableVariables=e=>{null==e&&(e=[]),this.availableVariables=e,this.populations=[]};setAvailableStrata=e=>{null==e&&(e={}),this.availableStrata=e,this.populations=[]};removePopulations=e=>{this.populations=xe(this.populations,e)};setPopulationVariables=(e,t)=>{var a,r;this.populations[e].variables=(a=this.availableVarNames,r=t,a.filter((e=>-1!==r.indexOf(e)))),this.populations[e].variablesKey=this.populations[e].variables.join(", "),this.populations[e].strata=this.availableStrata[this.populations[e].variablesKey]};get populationsJS(){return(0,ja.ZN)(this.populations)}get availableVarNames(){return this.availableVariables.map((e=>e.Name))}get definedPopulations(){return[...new Set(this.populations.map((e=>e.strata.map((e=>e.Combination)))).flat())]}setUIState=e=>{this.availableVariables=e.availableVariables,this.availableStrata=e.availableStrata,this.populations=e.populations}}class tr{parentMgr=null;combinations=new Map;selectedCombination=null;combinationAllId=null;constructor(e){this.parentMgr=e,(0,ja.rC)(this,{combinations:ja.LO,combinationAllId:ja.LO,selectedCombination:ja.LO,addEmptyCombination:ja.aD,removeCombinations:ja.aD,setSelectedCombination:ja.aD,setCombinationName:ja.aD,setCombinationName:ja.aD,setCombinationCasePopulations:ja.aD,setCombinationAggrPopulations:ja.aD,syncCasePopulations:ja.aD,syncAggrPopulations:ja.aD,combinationAll:ja.Fl,combinationsArray:ja.Fl,combinationsNames:ja.Fl});const t=Ua("combination");this.addEmptyCombination(t,"All data"),this.setSelectedCombination(t),this.combinationAllId=t,(0,ja.EH)((()=>{this.syncCasePopulations(this.parentMgr.popMgr.definedPopulations)})),(0,ja.EH)((()=>{this.syncAggrPopulations(this.parentMgr.aggrDataMgr.populationNames)}))}addEmptyCombination=(e=null,t=null)=>{x(e)&&(e=Ua("combination")),x(t)&&(t=`Combination ${Va("Combination ",this.combinationsNames)}`);const a={id:e,name:t,casePopulations:[],aggrPopulations:[]};return this.combinations.set(e,a),e};removeCombinations=e=>{e.forEach((e=>{this.combinations.has(e)&&this.combinations.delete(e)})),this.selectedCombination=this.combinationsArray[this.combinationsArray.length-1]};setSelectedCombination=e=>{this.combinations.has(e)&&(this.selectedCombination=this.combinations.get(e))};setCombinationName=(e,t)=>{this.combinations.has(e)&&(this.combinations.get(e).name=t)};setCombinationCasePopulations=(e,t)=>{this.combinations.has(e)&&(this.combinations.get(e).casePopulations=t)};setCombinationAggrPopulations=(e,t)=>{this.combinations.has(e)&&(this.combinations.get(e).aggrPopulations=t)};syncCasePopulations=e=>{this.combinations.forEach((t=>{t.casePopulations=t.casePopulations.filter((t=>e.includes(t)))}))};syncAggrPopulations=e=>{this.combinations.forEach((t=>{t.aggrPopulations=t.aggrPopulations.filter((t=>e.includes(t)))})),this.combinationAll.aggrPopulations=e};get combinationAll(){return this.combinations.has(this.combinationAllId)?this.combinations.get(this.combinationAllId):null}get combinationsArray(){return Array.from(this.combinations.values())}get combinationsNames(){return this.combinationsArray.map((e=>e.name))}setUIState=e=>{this.combinations=new Map;for(const[t,a]of Object.entries(e.combinations))this.combinations.set(t,a);this.setSelectedCombination(e.selectedCombination),this.combinationAllId=e.combinationAllId}}class ar{parentMgr=null;constructor(e,t,a=null){this.parentMgr=e,this.id=Ua("timeIntervals"),this.name=t,this.minYear=e.minYear,this.maxYear=e.maxYear,x(a)?this.createIntervals(this.minYear,this.maxYear,5,1984):this.intervals=a,(0,ja.rC)(this,{id:ja.LO,name:ja.LO,intervals:ja.LO,minYear:ja.LO,maxYear:ja.LO,setMinYear:ja.aD,setMaxYear:ja.aD,setIntervals:ja.aD,addInterval:ja.aD,addEmptyInterval:ja.aD,removeIntervals:ja.aD,setId:ja.aD,setName:ja.aD,setIntervalStartYear:ja.aD,setIntervalJump:ja.aD,setIntervalChangeInInterval:ja.aD,setIntervalDiffByCD4:ja.aD,intervalsJS:ja.Fl,maxStartYear:ja.Fl})}id=null;name="";intervals=[];minYear=null;maxYear=null;setId=e=>this.id=e;setName=e=>this.name=e;setMinYear=e=>{this.minYear=e,this.intervals.forEach((e=>e.startYear=Math.max(this.minYear,e.startYear))),this.reinitializeEndYears()};setMaxYear=e=>{this.maxYear=e,this.reinitializeEndYears()};setIntervals=(e,t,a)=>{this.minYear=e,this.maxYear=t,this.intervals=a};createIntervals=(e,t,a,r=0)=>{if(a>0){this.minYear=e,this.maxYear=t;let n=e;for(let l=0;l0&&r>=e&&(i=e,o=r),this.addInterval(i,o,0!==l,!1,!1),n=o,o===t)break}}};addInterval=(e,t,a,r,n)=>{this.intervals.push({startYear:e,endYear:t,jump:a,changeInInterval:r,diffByCD4:n})};addEmptyInterval=()=>{this.addInterval(this.maxStartYear,this.maxYear,!1,!1,!1),this.reinitializeEndYears()};removeIntervals=e=>{e.length===this.intervals.length&&(e=xe(e,0)),this.intervals=xe(this.intervals,e),this.reinitializeEndYears()};setIntervalStartYear=(e,t)=>{t>=this.minYear&&t<=this.maxYear&&(this.intervals[e].startYear=t,this.reinitializeEndYears())};setIntervalJump=(e,t)=>this.intervals[e].jump=t;setIntervalChangeInInterval=(e,t)=>this.intervals[e].changeInInterval=t;setIntervalDiffByCD4=(e,t)=>this.intervals[e].diffByCD4=t;get intervalsJS(){return(0,ja.ZN)(this.intervals)}get maxStartYear(){return 0===this.intervals.length?this.minYear:Math.max.apply(null,this.intervals.map((e=>e.startYear)))}reinitializeEndYears=()=>{const e=this.intervals.length;if(e>0){this.intervals[0].startYear=this.minYear,this.intervals.sort(((e,t)=>e.startYear{this.collections.forEach((e=>e.setMinYear(this.minYear)))})),(0,ja.EH)((()=>{this.collections.forEach((e=>e.setMaxYear(this.maxYear)))}))}collections=new Map;minYear=null;maxYear=null;selectedEditCollectionId=null;selectedRunCollectionId=null;setIntervals=(e,t,a)=>{x(this.selectedEditCollection)||this.selectedEditCollection.setIntervals(e,t,a)};setMinYear=e=>this.minYear=e;setMaxYear=e=>this.maxYear=e;addNewCollection=(e=null,t=null)=>{x(e)&&(e=0===this.collections.size?"Default":`Set ${Va("Set ",this.collectionsNames)}`);const a=new ar(this,e,t);this.collections.set(a.id,a),this.selectedEditCollectionId=a.id};deleteSelectedEditCollection=()=>{this.collections.has(this.selectedEditCollectionId)&&this.collections.delete(this.selectedEditCollectionId);const e=(0,ja.XP)(this.collections);this.selectedEditCollectionId=e[e.length-1],this.selectedRunCollectionId=this.selectedEditCollectionId};setSelectedEditCollectionId=e=>this.selectedEditCollectionId=e;setSelectedRunCollectionId=e=>this.selectedRunCollectionId=e;get selectedEditCollection(){let e=null;return this.collections.has(this.selectedEditCollectionId)&&(e=this.collections.get(this.selectedEditCollectionId)),e}get selectedRunCollection(){let e=null;return this.collections.has(this.selectedRunCollectionId)&&(e=this.collections.get(this.selectedRunCollectionId)),e}get defaultEditCollectionSelected(){return"DEFAULT"===this.selectedEditCollection.name.toUpperCase()}get collectionsArray(){return(0,ja.VO)(this.collections)}get collectionsNames(){return this.collectionsArray.map((e=>e.name))}setParentMgr=e=>this.parentMgr=e;setCollections=e=>{this.collections=new Map;for(const[t,a]of Object.entries(e)){const e=new ar(this,a.name,a.intervals);e.setId(a.id),e.setMinYear(a.minYear),e.setMaxYear(a.maxYear),this.collections.set(e.id,e)}}}const nr=(e,t,a,r=null)=>{let n=e.createElement(a);return x(r)||(n.innerHTML=r),t.appendChild(n),n},lr=e=>{{var t=(new DOMParser).parseFromString(e,"text/xml"),a=(new DOMParser).parseFromString(['',' ',' ',' '," ",' ',' '," ",' ',""].join("\n"),"text/xml");const r=new XSLTProcessor;r.importStylesheet(a);const n=r.transformToDocument(t);return(new XMLSerializer).serializeToString(n)}},ir=e=>e<10?"0"+e:e;var sr=a(2160),or=a.n(sr);class mr{id="ModelsManager";parentMgr=null;timeIntCollMgr=null;constructor(e){this.parentMgr=e,this.timeIntCollMgr=new rr(this),(0,ja.rC)(this,{modelsParamFile:ja.LO,modelsParamFileName:ja.LO,rangeYears:ja.LO,optimalYears:ja.LO,minYear:ja.LO,maxYear:ja.LO,minFitPos:ja.LO,maxFitPos:ja.LO,minFitCD4:ja.LO,maxFitCD4:ja.LO,minFitAIDS:ja.LO,maxFitAIDS:ja.LO,minFitHIVAIDS:ja.LO,maxFitHIVAIDS:ja.LO,fullData:ja.LO,knotsCount:ja.LO,startIncZero:ja.LO,maxIncCorr:ja.LO,distributionFit:ja.LO,delta4Fac:ja.LO,country:ja.LO,modelsRunProgress:ja.LO,modelsRunLog:ja.LO,bootstrapRunProgress:ja.LO,bootstrapRunLog:ja.LO,bootstrapCount:ja.LO,bootstrapType:ja.LO,plotData:ja.LO,migrConnFlag:ja.LO,showConfBounds:ja.LO,setModelsParamFile:ja.aD,saveModelsParamFile:ja.aD,setModelsParamFileName:ja.aD,setMinYear:ja.aD,setMaxYear:ja.aD,setMinFitPos:ja.aD,setMaxFitPos:ja.aD,setMinFitCD4:ja.aD,setMaxFitCD4:ja.aD,setMinFitAIDS:ja.aD,setMaxFitAIDS:ja.aD,setMinFitHIVAIDS:ja.aD,setMaxFitHIVAIDS:ja.aD,setFullData:ja.aD,setKnotsCount:ja.aD,setStartIncZero:ja.aD,setMaxIncCorr:ja.aD,setDistributionFit:ja.aD,setDelta4Fac:ja.aD,setCountry:ja.aD,setBootstrapCount:ja.aD,setBootstrapType:ja.aD,setRangeYears:ja.aD,setOptimalYears:ja.aD,runModels:ja.aD,cancelModels:ja.aD,setModelsRunProgress:ja.aD,setModelsRunLog:ja.aD,runBootstrap:ja.aD,cancelBootstrap:ja.aD,setMigrConnFlag:ja.aD,setShowConfBounds:ja.aD,modelsRunInProgress:ja.Fl,bootstrapRunInProgress:ja.Fl,gofTable1Data:ja.Fl,gofTable2Data:ja.Fl,gofTable3Data:ja.Fl,gofTable4Data:ja.Fl,gofTable5Data:ja.Fl,gofTable6Data:ja.Fl,gofTable7Data:ja.Fl,gofPlot1Data:ja.Fl,gofPlot2Data:ja.Fl,gofPlot3Data:ja.Fl,gofPlot4Data:ja.Fl,gofPlot5Data:ja.Fl,gofPlot6Data:ja.Fl,gofPlot7Data:ja.Fl,outputTable1Data:ja.Fl,outputTable2Data:ja.Fl,outputTable3Data:ja.Fl,outputTable4Data:ja.Fl,outputPlot1Data:ja.Fl,outputPlot2Data:ja.Fl,outputPlot3Data:ja.Fl,outputPlot4Data:ja.Fl,mainOutputTableData:ja.Fl}),(0,ja.EH)((()=>{this.timeIntCollMgr.setMinYear(this.minYear)})),(0,ja.EH)((()=>{this.timeIntCollMgr.setMaxYear(this.maxYear)})),(0,ja.EH)((()=>this.parentMgr.inputValueSet("migrConnFlag",this.migrConnFlag)),{delay:1e3})}modelsParamFile=null;modelsParamFileName="";rangeYears=null;optimalYears=null;minYear=1980;maxYear=2016;minFitPos=1979;maxFitPos=1979;minFitCD4=1984;maxFitCD4=2016;minFitAIDS=1980;maxFitAIDS=1995;minFitHIVAIDS=1996;maxFitHIVAIDS=2016;fullData=!0;knotsCount=4;startIncZero=!0;maxIncCorr=!0;distributionFit="POISSON";delta4Fac=0;country="OTHER";bootstrapCount=100;bootstrapType="PARAMETRIC";modelsRunProgress=null;modelsRunLog=null;bootstrapRunProgress=null;bootstrapRunLog=null;migrConnFlag=!1;showConfBounds=!0;plotData=null;colsDescriptions={N_HIV_D:"Data",N_HIV_Obs_M:"Model",N_CD4_1_D:"Data",N_CD4_1_Obs_M:"Model",N_CD4_2_D:"Data",N_CD4_2_Obs_M:"Model",N_CD4_3_D:"Data",N_CD4_3_Obs_M:"Model",N_CD4_4_D:"Data",N_CD4_4_Obs_M:"Model",N_HIVAIDS_D:"Data",N_HIVAIDS_Obs_M:"Model",N_AIDS_D:"Data",N_AIDS_M:"Model",N_Inf_M:"New incident infections",NewMigrantInfectionsPerArrYear:"New arrivals of infected migrants",InfectionsTotal:"Total",t_diag:"Time to diagnosis",N_Alive_Diag_M:"Diagnosed from model",CumNewMigrantDiagnosesPerDiagYear:"Diagnosed migrants",N_Und:"Undiagnosed from model",CumUndiagnosedMigrantCases:"Undiagnosed migrants",AliveTotal:"Alive",N_Und_Alive_p:"Proportion of undiagnosed",UndiagnosedFrac:"Proportion of undiagnosed"};setModelsParamFile=e=>{e&&(this.modelsParamFile=e,this.modelsParamFileName=e.name,(e=>{const t=new FileReader;return new Promise(((a,r)=>{t.onload=e=>{a(e.target.result)},t.onerror=r,t.readAsText(e)}))})(this.modelsParamFile).then((0,ja.aD)("success",(e=>{this.parentMgr.btnClicked("xmlModel",e)})),(0,ja.aD)("error",(e=>console.log(e)))))};saveModelsParamFile=()=>{let e=(new DOMParser).parseFromString("","text/xml"),t=e.getElementsByTagName("Model")[0];nr(e,t,"FileVersion",2);let a=nr(e,t,"Meta");nr(e,a,"Name","HIVModel"),nr(e,a,"Author","HIV Platform"),nr(e,a,"Description","Model file exported by HIV Platform"),nr(e,a,"InputDataPath","./"),nr(e,a,"OutputResultsPath","./");let r=nr(e,a,"RiskGroups"),n=nr(e,r,"RiskGroup");nr(e,n,"Name","Default"),nr(e,n,"CreatedByDefault",!0),nr(e,n,"FitMinYear",this.minYear);let l=nr(e,n,"RiskCategories");(0,ja.ZN)(this.parentMgr.aggrDataMgr.populationNames).forEach((t=>{let a=nr(e,l,"RiskCategory");nr(e,a,"Name",t),nr(e,a,"IsSelected",!0)}));let i=nr(e,t,"IncidenceModel");nr(e,i,"Run","True"),nr(e,i,"MinYear",this.minYear),nr(e,i,"MaxYear",this.maxYear),nr(e,i,"MinFitPos",this.minFitPos),nr(e,i,"MaxFitPos",this.maxFitPos),nr(e,i,"MinFitCD4",this.minFitCD4),nr(e,i,"MaxFitCD4",this.maxFitCD4),nr(e,i,"MinFitAIDS",this.minFitAIDS),nr(e,i,"MaxFitAIDS",this.maxFitAIDS),nr(e,i,"MinFitHIVAIDS",this.minFitHIVAIDS),nr(e,i,"MaxFitHIVAIDS",this.maxFitHIVAIDS),nr(e,i,"Country",this.country),nr(e,i,"KnotsCount",this.knotsCount),nr(e,i,"StartIncZer",this.startIncZero),nr(e,i,"DistributionFit",this.distributionFit),nr(e,i,"RDisp",50),nr(e,i,"Delta4Fac",this.delta4Fac),nr(e,i,"MaxIncCorr",this.maxIncCorr),nr(e,i,"SplineType","B-splines"),nr(e,i,"FullData",this.fullData);let s=nr(e,i,"Bootstrap");nr(e,s,"StartIter",0),nr(e,s,"IterCount",this.bootstrapCount);let o=nr(e,i,"DiagnosisRates");(0,ja.ZN)(this.timeIntCollMgr.selectedRunCollection.intervals).forEach((t=>{let a=nr(e,o,"Interval");nr(e,a,"Description","Test"),nr(e,a,"StartYear",t.startYear),nr(e,a,"Jump",t.jump),nr(e,a,"ChangingInInterval",t.changeInInterval),nr(e,a,"DifferentByCD4",t.diffByCD4)}));let m=nr(e,t,"LondonModel");nr(e,m,"Run",!1),nr(e,m,"RunType1",!0),nr(e,m,"RunType2",!0),nr(e,m,"MinYear",this.minYear),nr(e,m,"MaxYear",this.maxYear),nr(e,m,"BootstrapIterCount",5e4),nr(e,m,"RateW",2);const c=(new XMLSerializer).serializeToString(e),u=new Blob([['',lr(c)].join("\n")],{type:"text/xml"}),d=((e,t="dd/mm/yyyy")=>{var a=e.getDate(),r=e.getMonth(),n=e.getFullYear(),l=e.getHours(),i=e.getMinutes(),s=e.getSeconds(),o=e.getMilliseconds(),m=ir(l),c=ir(i),u=ir(s),d=ir(a),g=r+1,p=ir(g),h=n+"",E=h.substring(2,2);return t.replace("hh",m).replace("h",l).replace("mm",c).replace("m",i).replace("ss",u).replace("s",s).replace("S",o).replace("dd",d).replace("d",a).replace("MM",p).replace("M",g).replace("yyyy",h).replace("yy",E)})(new Date,"yyyyMMdd_hhmmss");or().saveAs(u,`HIVModel_${d}.xml`)};setModelsParamFileName=e=>this.modelsParamFileName=e;setRangeYears=e=>this.rangeYears=e;setOptimalYears=e=>{this.optimalYears=e,this.setMinYear(e.All[0]),this.setMaxYear(e.All[1]),this.setMinFitPos(e.HIV[0]),this.setMaxFitPos(e.HIV[1]),this.setMinFitCD4(e.HIVCD4[0]),this.setMaxFitCD4(e.HIVCD4[1]),this.setMinFitAIDS(e.AIDS[0]),this.setMaxFitAIDS(e.AIDS[1]),this.setMinFitHIVAIDS(e.HIVAIDS[0]),this.setMaxFitHIVAIDS(e.HIVAIDS[1])};setMinYear=e=>this.minYear=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMaxYear=e=>this.maxYear=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMinFitPos=e=>this.minFitPos=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMaxFitPos=e=>this.maxFitPos=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMinFitCD4=e=>this.minFitCD4=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMaxFitCD4=e=>this.maxFitCD4=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMinFitAIDS=e=>this.minFitAIDS=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMaxFitAIDS=e=>this.maxFitAIDS=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMinFitHIVAIDS=e=>this.minFitHIVAIDS=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMaxFitHIVAIDS=e=>this.maxFitHIVAIDS=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setFullData=e=>this.fullData=e;setKnotsCount=e=>this.knotsCount=e;setStartIncZero=e=>this.startIncZero=e;setMaxIncCorr=e=>this.maxIncCorr=e;setDistributionFit=e=>this.distributionFit=e;setDelta4Fac=e=>this.delta4Fac=parseFloat(e);setCountry=e=>this.country=e;setBootstrapCount=e=>this.bootstrapCount=e;setBootstrapType=e=>this.bootstrapType=e;setPlotData=e=>this.plotData=e;setModelsRunProgress=e=>this.modelsRunProgress=e;setModelsRunLog=e=>this.modelsRunLog=e;runModels=()=>{const e={minYear:this.minYear,maxYear:this.maxYear,minFitPos:this.minFitPos,maxFitPos:this.maxFitPos,minFitCD4:this.minFitCD4,maxFitCD4:this.maxFitCD4,minFitAIDS:this.minFitAIDS,maxFitAIDS:this.maxFitAIDS,minFitHIVAIDS:this.minFitHIVAIDS,maxFitHIVAIDS:this.maxFitHIVAIDS,fullData:this.fullData,knotsCount:this.knotsCount,startIncZero:this.startIncZero,maxIncCorr:this.maxIncCorr,distributionFit:this.distributionFit,delta4Fac:this.delta4Fac,country:this.country,timeIntervals:(0,ja.ZN)(this.timeIntCollMgr.selectedRunCollection.intervals),popCombination:(0,ja.ZN)(this.parentMgr.popCombMgr.selectedCombination)};this.parentMgr.btnClicked("runModelBtn:HIVModelParams",e)};cancelModels=()=>this.parentMgr.btnClicked("cancelModelBtn");setBootstrapRunProgress=e=>this.bootstrapRunProgress=e;setBootstrapRunLog=e=>this.bootstrapRunLog=e;runBootstrap=()=>this.parentMgr.btnClicked("runBootstrapBtn",{count:this.bootstrapCount,type:this.bootstrapType});cancelBootstrap=()=>this.parentMgr.btnClicked("cancelBootstrapBtn");setMigrConnFlag=e=>this.migrConnFlag=e;setShowConfBounds=e=>this.showConfBounds=e;get modelsRunInProgress(){return null!==this.modelsRunProgress}get bootstrapRunInProgress(){return null!==this.bootstrapRunProgress}get gofTable1Data(){return this.getTableData(["Year","N_HIV_D","N_HIV_Obs_M"])}get gofPlot1Data(){return[this.getPlotSeries("N_HIV_D"),this.getPlotSeries("N_HIV_Obs_M")]}get gofTable2Data(){return this.getTableData(["Year","N_CD4_1_D","N_CD4_1_Obs_M"])}get gofPlot2Data(){return[this.getPlotSeries("N_CD4_1_D"),this.getPlotSeries("N_CD4_1_Obs_M")]}get gofTable3Data(){return this.getTableData(["Year","N_CD4_2_D","N_CD4_2_Obs_M"])}get gofPlot3Data(){return[this.getPlotSeries("N_CD4_2_D"),this.getPlotSeries("N_CD4_2_Obs_M")]}get gofTable4Data(){return this.getTableData(["Year","N_CD4_3_D","N_CD4_3_Obs_M"])}get gofPlot4Data(){return[this.getPlotSeries("N_CD4_3_D"),this.getPlotSeries("N_CD4_3_Obs_M")]}get gofTable5Data(){return this.getTableData(["Year","N_CD4_4_D","N_CD4_4_Obs_M"])}get gofPlot5Data(){return[this.getPlotSeries("N_CD4_4_D"),this.getPlotSeries("N_CD4_4_Obs_M")]}get gofTable6Data(){return this.getTableData(["Year","N_HIVAIDS_D","N_HIVAIDS_Obs_M"])}get gofPlot6Data(){return[this.getPlotSeries("N_HIVAIDS_D"),this.getPlotSeries("N_HIVAIDS_Obs_M")]}get gofTable7Data(){return this.getTableData(["Year","N_AIDS_D","N_AIDS_M"])}get gofPlot7Data(){return[this.getPlotSeries("N_AIDS_D"),this.getPlotSeries("N_AIDS_M")]}get outputTable1Data(){return this.getTableData(["Year","N_Inf_M","NewMigrantDiagnosesPerArrYear","InfectionsTotal"])}get outputPlot1Data(){return[this.getPlotSeries("N_Inf_M"),this.getPlotSeries("NewMigrantDiagnosesPerArrYear"),this.getPlotSeries("InfectionsTotal")]}get outputTable2Data(){return this.getTableData(["Year","t_diag"])}get outputPlot2Data(){return[this.getPlotSeries("t_diag")]}get outputTable3Data(){return this.getTableData(["Year","N_Alive_Diag_M","CumNewMigrantDiagnosesPerDiagYear","N_Und","CumUndiagnosedMigrantCases","AliveTotal"])}get outputPlot3Data(){return[this.getPlotSeries("N_Alive_Diag_M"),this.getPlotSeries("CumNewMigrantDiagnosesPerDiagYear"),this.getPlotSeries("N_Und"),this.getPlotSeries("CumUndiagnosedMigrantCases"),this.getPlotSeries("AliveTotal")]}get outputTable4Data(){return this.migrConnFlag?this.getTableData(["Year","UndiagnosedFrac"]):this.getTableData(["Year","N_Und_Alive_p"])}get outputPlot4Data(){return this.migrConnFlag?[this.getPlotSeries("UndiagnosedFrac")]:[this.getPlotSeries("N_Und_Alive_p")]}get mainOutputTableData(){return this.getTableData(["Year","N_HIV_D","N_HIV_Obs_M","N_CD4_1_D","N_CD4_2_D","N_CD4_3_D","N_CD4_4_D","N_CD4_1_Obs_M","N_CD4_2_Obs_M","N_CD4_3_Obs_M","N_CD4_4_Obs_M","N_AIDS_D","N_AIDS_M","N_HIVAIDS_D","N_HIVAIDS_Obs_M","N_Inf_M","t_diag","t_diag_p25","t_diag_p50","t_diag_p75","N_Alive","N_Alive_Diag_M","N_Und","N_Und_Alive_p","N_Und_CD4_3_M","N_Und_CD4_4_M"])}getTableData=e=>{if(x(this.plotData))return null;{const t=this.plotData.Year.map(((t,a)=>e.map((e=>this.getTableEntry(e,a)))));return{colNames:e,values:t}}};getTableEntry=(e,t)=>{if("Year"===e)return this.plotData.Year[t];const a=this.plotData[e]?this.plotData[e][t]:null;if(x(a)||!isFinite(a))return"";if(!this.showConfBounds||!this.plotData[e+"_LB"]||!this.plotData[e+"_UB"])return ct(a);let r=this.plotData[e+"_LB"]?this.plotData[e+"_LB"][t]:null,n=this.plotData[e+"_UB"]?this.plotData[e+"_UB"][t]:null;return isFinite(r)&&!x(r)||(r=a),isFinite(n)&&!x(n)||(n=a),`${ct(a)} (${ct(r)} - ${ct(n)})`};getPlotSeries=e=>{if(x(this.plotData))return null;{const t=this.plotData.Year.map(((t,a)=>[t,this.plotData[e]?this.plotData[e][a]:null,this.plotData[e+"_LB"]?this.plotData[e+"_LB"][a]:null,this.plotData[e+"_UB"]?this.plotData[e+"_UB"][a]:null,!this.plotData[e+"_Used"]||this.plotData[e+"_Used"][a]]));return{name:this.colsDescriptions[e],values:t,selected:!0}}};setUIState=e=>{this.id=e.id,this.modelsParamFile=e.modelsParamFile,this.modelsParamFileName=e.modelsParamFileName,this.rangeYears=e.rangeYears,this.optimalYears=e.optimalYears,this.minYear=e.minYear,this.maxYear=e.maxYear,this.minFitPos=e.minFitPos,this.maxFitPos=e.maxFitPos,this.minFitCD4=e.minFitCD4,this.maxFitCD4=e.maxFitCD4,this.minFitAIDS=e.minFitAIDS,this.maxFitAIDS=e.maxFitAIDS,this.minFitHIVAIDS=e.minFitHIVAIDS,this.maxFitHIVAIDS=e.maxFitHIVAIDS,this.fullData=e.fullData,this.knotsCount=e.knotsCount,this.startIncZero=e.startIncZero,this.maxIncCorr=e.maxIncCorr,this.distributionFit=e.distributionFit,this.delta4Fac=e.delta4Fac,this.country=e.country,this.bootstrapCount=e.bootstrapCount,this.bootstrapType=e.bootstrapType,this.modelsRunProgress=e.modelsRunProgress,this.modelsRunLog=e.modelsRunLog,this.bootstrapRunProgress=e.bootstrapRunProgress,this.bootstrapRunLog=e.bootstrapRunLog,this.plotData=e.plotData;new rr(this)}}class cr{rootMgr=null;report=null;adjustReportParams={reportingDelay:!0,smoothing:!1,cd4ConfInt:!1};creatingReportInProgress=!1;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{report:ja.LO,adjustReportParams:ja.LO,creatingReportInProgress:ja.LO,setReport:ja.aD,setAdjustReportReportingDelay:ja.aD,setAdjustReportSmoothing:ja.aD,setAdjustReportCD4ConfInt:ja.aD,restoreDefaults:ja.aD,createReport:ja.aD,cancelCreatingReport:ja.aD,setCreatingReportInProgress:ja.aD})}setReport=e=>this.report=e;setAdjustReportReportingDelay=e=>this.adjustReportParams.reportingDelay=e;setAdjustReportSmoothing=e=>this.adjustReportParams.smoothing=e;setAdjustReportCD4ConfInt=e=>this.adjustReportParams.cd4ConfInt=e;setCreatingReportInProgress=e=>this.creatingReportInProgress=e;createReport=()=>{this.rootMgr.btnClicked("createReportBtn",Object.assign({name:"Main Report"},this.adjustReportParams))};cancelCreatingReport=()=>this.rootMgr.btnClicked("cancelCreatingReportBtn");restoreDefaults=()=>{this.adjustReportParams={reportingDelay:!0,smoothing:!1,cd4ConfInt:!1}};setUIState=e=>{this.report=e.report,this.adjustReportParams=e.adjustReportParams,this.creatingReportInProgress=e.creatingReportInProgress}}class ur{rootMgr=null;runProgress=null;runLog=null;inputStats=null;outputStats=null;outputPlots=null;confBounds=null;dataCompatibleFlag=null;yodRegion="ALL";tableRegion="ALL";propTableStrat=[];showConfBounds=!0;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{runProgress:ja.LO,runLog:ja.LO,inputStats:ja.LO,outputStats:ja.LO,outputPlots:ja.LO,confBounds:ja.LO,yodRegion:ja.LO,tableRegion:ja.LO,propTableStrat:ja.LO,dataCompatibleFlag:ja.LO,showConfBounds:ja.LO,runInProgress:ja.Fl,missingness:ja.Fl,regionDistr:ja.Fl,yodDistr:ja.Fl,tableDistr:ja.Fl,arrivalPlotData:ja.Fl,diagnosisPlotData:ja.Fl,setRunProgress:ja.aD,setRunLog:ja.aD,setInputStats:ja.aD,setOutputStats:ja.aD,setOutputPlots:ja.aD,setConfBounds:ja.aD,setYodRegion:ja.aD,setTableRegion:ja.aD,setDataCompatibleFlag:ja.aD,setPropTableStrat:ja.aD,setShowConfBounds:ja.aD,run:ja.aD,cancel:ja.aD}),(0,ja.EH)((()=>this.rootMgr.inputValueSet("propTableStrat",(0,ja.ZN)(this.propTableStrat))),{delay:1e3}),(0,ja.EH)((()=>this.rootMgr.inputValueSet("migrRegion",(0,ja.ZN)(this.tableRegion))),{delay:1e3})}get runInProgress(){return null!==this.runProgress}get missingness(){let e=null;return x(this.inputStats)||x(this.inputStats.Missingness)||(e=this.inputStats.Missingness),e}get regionDistr(){let e=null;return x(this.inputStats)||x(this.inputStats.RegionDistr)||(e=this.inputStats.RegionDistr),e}get yodDistr(){let e=null;return""===this.yodRegion||x(this.inputStats)||x(this.inputStats.YODDistr)||(e=this.inputStats.YODDistr[this.yodRegion]),e}get tableDistr(){let e=null;return""===this.tableRegion||x(this.outputStats)||x(this.outputStats.TableDistr)||x(this.outputStats.TableDistr[this.tableRegion])||(e=this.outputStats.TableDistr[this.tableRegion]),e}get arrivalPlotData(){let e=null;return x(this.outputPlots)||x(this.outputPlots.ArrivalPlotData)||(e=this.outputPlots.ArrivalPlotData.map((e=>({name:e.GroupedRegionOfOrigin,values:e.PlotData.YearOfArrival.map(((t,a)=>[t,e.PlotData.PostProp[a],e.PlotData.PostPropLB[a],e.PlotData.PostPropUB[a],!0,e.PlotData.Count[a]])),selected:"ALL"===e.GroupedRegionOfOrigin})))),e}get diagnosisPlotData(){let e=null;return x(this.outputPlots)||x(this.outputPlots.DiagnosisPlotData)||(e=this.outputPlots.DiagnosisPlotData.map((e=>({name:e.GroupedRegionOfOrigin,values:e.PlotData.YearOfHIVDiagnosis.map(((t,a)=>[t,e.PlotData.PostProp[a],e.PlotData.PostPropLB[a],e.PlotData.PostPropUB[a],!0,e.PlotData.Count[a]])),selected:"ALL"===e.GroupedRegionOfOrigin})))),e}setRunProgress=e=>this.runProgress=e;setRunLog=e=>this.runLog=e;setInputStats=e=>this.inputStats=e;setOutputStats=e=>this.outputStats=e;setOutputPlots=e=>this.outputPlots=e;setConfBounds=e=>this.confBounds=e;setYodRegion=e=>this.yodRegion=e;setTableRegion=e=>this.tableRegion=e;setDataCompatibleFlag=e=>this.dataCompatibleFlag=e;setPropTableStrat=e=>this.propTableStrat=e;setShowConfBounds=e=>this.showConfBounds=e;run=()=>this.rootMgr.btnClicked("runMigrantBtn");cancel=()=>this.rootMgr.btnClicked("cancelMigrantBtn");setUIState=e=>{this.runProgress=e.runProgress,this.runLog=e.runLog,this.inputStats=e.inputStats,this.outputStats=e.outputStats,this.outputPlots=e.outputPlots,this.confBounds=e.confBounds,this.dataCompatibleFlag=e.dataCompatibleFlag,this.yodRegion=e.yodRegion,this.tableRegion=e.tableRegion,this.propTableStrat=e.propTableStrat,this.showConfBounds=e.showConfBounds}}const dr=(e,t)=>or().saveAs(function(e,t){t=t||"";for(var a=1024,r=atob(e),n=r.length,l=Math.ceil(n/a),i=new Array(l),s=0;s{if(console.log("onShinyEvent",e.type,e),this.loadingUIState&&"UI_STATE_LOADED"!==e.type)console.log("Loading UI state - ignoring events");else switch(e.type){case"PACKAGE_DETAILS_SENT":"SUCCESS"===e.payload.ActionStatus&&this.setPackageDetails(e.payload.PackageDetails);break;case"UI_STATE_READY_FOR_LOAD":"SUCCESS"===e.payload.ActionStatus&&(this.loadingUIState=!0,this.setUIState(JSON.parse(e.payload.UIState))),this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"UI_STATE_LOADED":"SUCCESS"===e.payload.ActionStatus&&(this.loadingUIState=!1,this.inputValueSet("test",!0)),this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"COMPLETED_STEPS_SET":"SUCCESS"===e.payload.ActionStatus&&this.uiStateMgr.setCompletedSteps(e.payload.CompletedSteps);break;case"CASE_BASED_DATA_UPLOADED":this.caseBasedDataMgr.setActionStatus(e.payload.ActionStatus),this.caseBasedDataMgr.setActionMessage(e.payload.ActionMessage),"SUCCESS"===e.payload.ActionStatus&&(this.caseBasedDataMgr.setFileName(e.payload.FileName),this.caseBasedDataMgr.setFilePath(e.payload.FilePath),this.caseBasedDataMgr.setFileSize(e.payload.FileSize),this.caseBasedDataMgr.setFileType(e.payload.FileType),this.uiStateMgr.setLastEventType(e.type));break;case"CASE_BASED_DATA_READ":this.caseBasedDataMgr.setActionStatus(e.payload.ActionStatus),this.caseBasedDataMgr.setActionMessage(e.payload.ActionMessage),"SUCCESS"===e.payload.ActionStatus&&(this.caseBasedDataMgr.setColumnNames(e.payload.ColumnNames),this.caseBasedDataMgr.setRecordCount(e.payload.RecordCount),this.attrMappingMgr.setMapping(e.payload.AttrMapping),this.summaryDataMgr.reset(),this.notificationsMgr.setMsg("Case-based data uploaded"),this.uiStateMgr.setLastEventType(e.type));break;case"CASE_BASED_ATTRIBUTE_MAPPING_APPLY_START":"SUCCESS"===e.payload.ActionStatus&&this.notificationsMgr.setMsg("Applying attribute mapping");break;case"CASE_BASED_ATTRIBUTE_MAPPING_APPLY_END":this.attrMappingMgr.setActionStatus(e.payload.ActionStatus),this.attrMappingMgr.setActionMessage(e.payload.ActionMessage),"SUCCESS"===e.payload.ActionStatus?(this.origGroupMgr.setDistribution(e.payload.OriginDistribution),this.origGroupMgr.setPreset(e.payload.OriginGroupingPreset),this.origGroupMgr.setGroupings(e.payload.OriginGrouping),this.notificationsMgr.setMsg("Attribute mapping has been applied"),this.summaryDataMgr.reset(),this.uiStateMgr.setLastEventType(e.type)):(this.notificationsMgr.setMsg("Attribute mapping could not be applied"),this.uiStateMgr.setLastEventType("CASE_BASED_DATA_READ"));break;case"CASE_BASED_DATA_ORIGIN_GROUPING_PREPARED":"SUCCESS"===e.payload.ActionStatus?(this.origGroupMgr.setPreset(e.payload.OriginGroupingPreset),this.origGroupMgr.setGroupings(e.payload.OriginGrouping)):this.notificationsMgr.setMsg("There was a problem with setting this origin grouping");break;case"CASE_BASED_DATA_ORIGIN_GROUPING_MIGRANT_CHECKED":this.origGroupMgr.setMigrantCompatibleStatus(e.payload.ActionStatus),this.origGroupMgr.setMigrantCompatibleMessage(e.payload.ActionMessage);break;case"CASE_BASED_DATA_ORIGIN_GROUPING_APPLIED":this.origGroupMgr.setActionStatus(e.payload.ActionStatus),this.origGroupMgr.setActionMessage(e.payload.ActionMessage),"SUCCESS"===e.payload.ActionStatus?(this.summaryDataMgr.reset(),this.summaryDataMgr.setDiagYearPlotData(e.payload.Summary.DiagYearPlotData),this.summaryDataMgr.setNotifQuarterPlotData(e.payload.Summary.NotifQuarterPlotData),this.adjustMgr.setRDWithoutStartYear(e.payload.Summary.DiagYearPlotData.filter.scaleMinYear),this.adjustMgr.setRDWithoutEndYear(Math.round(e.payload.Summary.NotifQuarterPlotData.filter.scaleMaxYear)),this.adjustMgr.setRDWithoutEndQrt(tt(e.payload.Summary.NotifQuarterPlotData.filter.scaleMaxYear)),this.adjustMgr.setRDWithStartYear(e.payload.Summary.DiagYearPlotData.filter.scaleMinYear),this.adjustMgr.setRDWithEndYear(Math.round(e.payload.Summary.NotifQuarterPlotData.filter.scaleMaxYear)),this.adjustMgr.setRDWithEndQrt(tt(e.payload.Summary.NotifQuarterPlotData.filter.scaleMaxYear)),this.adjustMgr.setDataBounds({startYear:e.payload.Summary.DiagYearPlotData.filter.scaleMinYear,endYear:Math.round(e.payload.Summary.NotifQuarterPlotData.filter.scaleMaxYear),endQrt:tt(e.payload.Summary.NotifQuarterPlotData.filter.scaleMaxYear)}),this.migrMgr.setDataCompatibleFlag(e.payload.MigrantCompatibility.Valid),this.uiStateMgr.setLastEventType(e.type)):this.uiStateMgr.setLastEventType("CASE_BASED_ATTRIBUTE_MAPPING_APPLY_END"),this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"CASE_BASED_SUMMARY_DATA_PREPARED":"SUCCESS"===e.payload.ActionStatus?(this.summaryDataMgr.setSelectedCount(e.payload.Summary.SelectedCount),this.summaryDataMgr.setTotalCount(e.payload.Summary.TotalCount),this.summaryDataMgr.setMissPlotData(e.payload.Summary.MissPlotData),this.summaryDataMgr.setRepDelPlotData(e.payload.Summary.RepDelPlotData)):this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"ADJUSTMENTS_RUN_STARTED":"SUCCESS"===e.payload.ActionStatus&&(this.adjustMgr.setAdjustmentsRunProgress(1),this.adjustMgr.setAdjustmentsReport(null));break;case"ADJUSTMENTS_RUN_LOG_SET":"SUCCESS"===e.payload.ActionStatus&&this.adjustMgr.setAdjustmentsRunLog(e.payload.RunLog);break;case"ADJUSTMENTS_RUN_FINISHED":this.adjustMgr.setAdjustmentsRunProgress(null),"SUCCESS"===e.payload.ActionStatus?(this.uiStateMgr.setLastEventType(e.type),this.adjustMgr.setAdjustmentsReport(e.payload.AdjustmentsReport),this.adjustMgr.setRunAdjustmentsTypes(e.payload.RunAdjustmentsTypes),this.notificationsMgr.setMsg("Adjustment run finished")):this.notificationsMgr.setMsg("Adjustment run failed");break;case"ADJUSTMENTS_RUN_CANCELLED":this.adjustMgr.setAdjustmentsRunProgress(null),"SUCCESS"===e.payload.ActionStatus&&this.notificationsMgr.setMsg("Adjustment run cancelled");break;case"MIGRATION_RUN_STARTED":"SUCCESS"===e.payload.ActionStatus&&(this.migrMgr.setRunProgress(1),this.migrMgr.setInputStats(null),this.migrMgr.setOutputStats(null),this.migrMgr.setOutputPlots(null));break;case"MIGRATION_RUN_LOG_SET":"SUCCESS"===e.payload.ActionStatus&&this.migrMgr.setRunLog(e.payload.RunLog);break;case"MIGRATION_RUN_FINISHED":this.migrMgr.setRunProgress(null),"SUCCESS"===e.payload.ActionStatus?(this.uiStateMgr.setLastEventType(e.type),this.migrMgr.setInputStats(e.payload.InputStats),this.migrMgr.setOutputStats(e.payload.OutputStats),this.migrMgr.setOutputPlots(e.payload.OutputPlots),this.migrMgr.setConfBounds(e.payload.ConfBounds),this.notificationsMgr.setMsg("Migration run finished")):this.notificationsMgr.setMsg("Migration run failed");break;case"MIGRATION_RUN_CANCELLED":this.migrMgr.setRunProgress(null),"SUCCESS"===e.payload.ActionStatus&&this.notificationsMgr.setMsg("Migration run cancelled");break;case"MIGRATION_CONF_BOUNDS_COMPUTED":"SUCCESS"===e.payload.ActionStatus&&this.migrMgr.setConfBounds(e.payload.ConfBounds);break;case"CREATING_REPORT_STARTED":"SUCCESS"===e.payload.ActionStatus&&(this.reportMgr.setCreatingReportInProgress(!0),this.reportMgr.setReport(null),this.notificationsMgr.setMsg("Creating report started"));break;case"CREATING_REPORT_FINISHED":"SUCCESS"===e.payload.ActionStatus?(this.uiStateMgr.setLastEventType(e.type),this.reportMgr.setReport(e.payload.Report),this.notificationsMgr.setMsg("Creating report finished")):this.notificationsMgr.setMsg("Creating report failed"),this.reportMgr.setCreatingReportInProgress(!1);break;case"AGGR_DATA_UPLOADED":this.aggrDataMgr.setActionStatus(e.payload.ActionStatus),this.aggrDataMgr.setActionMessage(e.payload.ActionMessage),"SUCCESS"===e.payload.ActionStatus&&(this.aggrDataMgr.setFileName(e.payload.FileName),this.aggrDataMgr.setFilePath(e.payload.FilePath),this.aggrDataMgr.setFileSize(e.payload.FileSize),this.aggrDataMgr.setFileType(e.payload.FileType));break;case"AGGR_DATA_READ":this.aggrDataMgr.setActionStatus(e.payload.ActionStatus),this.aggrDataMgr.setActionMessage(e.payload.ActionMessage),"SUCCESS"===e.payload.ActionStatus&&(this.aggrDataMgr.setDataFiles(e.payload.DataFiles),this.aggrDataMgr.setPopulationNames(e.payload.PopulationNames),this.aggrDataMgr.setRangeYears(e.payload.RangeYears),this.notificationsMgr.setMsg("Aggregated data uploaded"));break;case"AVAILABLE_STRATA_SET":"SUCCESS"===e.payload.ActionStatus&&(this.popMgr.setAvailableVariables(e.payload.AvailableVariables),this.popMgr.setAvailableStrata(e.payload.AvailableStrata));break;case"MODELS_PARAMS_LOADED":"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setMinYear(e.payload.Params.minYear),this.modelMgr.setMaxYear(e.payload.Params.maxYear),this.modelMgr.setMinFitPos(e.payload.Params.minFitPos),this.modelMgr.setMaxFitPos(e.payload.Params.maxFitPos),this.modelMgr.setMinFitCD4(e.payload.Params.minFitCD4),this.modelMgr.setMaxFitCD4(e.payload.Params.maxFitCD4),this.modelMgr.setMinFitAIDS(e.payload.Params.minFitAIDS),this.modelMgr.setMaxFitAIDS(e.payload.Params.maxFitAIDS),this.modelMgr.setMinFitHIVAIDS(e.payload.Params.minFitHIVAIDS),this.modelMgr.setMaxFitHIVAIDS(e.payload.Params.maxFitHIVAIDS),this.modelMgr.setFullData(e.payload.Params.fullData),this.modelMgr.setKnotsCount(e.payload.Params.knotsCount),this.modelMgr.setStartIncZero(e.payload.Params.startIncZero),this.modelMgr.setMaxIncCorr(e.payload.Params.maxIncCorr),this.modelMgr.setDistributionFit(e.payload.Params.distributionFit),this.modelMgr.setDelta4Fac(e.payload.Params.delta4Fac),this.modelMgr.setCountry(e.payload.Params.country),this.modelMgr.timeIntCollMgr.setIntervals(e.payload.Params.minYear,e.payload.Params.maxYear,e.payload.Params.timeIntervals));break;case"MODELS_YEAR_RANGES_DETERMINED":"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setRangeYears(e.payload.Years.Range),this.modelMgr.setOptimalYears(e.payload.Years.Optimal)),this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"MODELS_RUN_STARTED":"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setModelsRunProgress(1),this.modelMgr.setModelsRunLog(null)),this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"MODELS_RUN_LOG_SET":"SUCCESS"===e.payload.ActionStatus&&this.modelMgr.setModelsRunLog(e.payload.RunLog);break;case"MODELS_RUN_FINISHED":this.modelMgr.setModelsRunProgress(null),"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setPlotData(e.payload.PlotData),this.uiStateMgr.setLastEventType(e.type)),this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"MODELS_RUN_CANCELLED":"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setModelsRunProgress(null),this.notificationsMgr.setMsg(e.payload.ActionMessage));break;case"BOOTSTRAP_RUN_STARTED":"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setBootstrapRunProgress(1),this.modelMgr.setBootstrapRunLog(null));break;case"BOOTSTRAP_RUN_LOG_SET":"SUCCESS"===e.payload.ActionStatus&&this.modelMgr.setBootstrapRunLog(e.payload.RunLog);break;case"BOOTSTRAP_RUN_FINISHED":this.modelMgr.setBootstrapRunProgress(null),"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setPlotData(e.payload.PlotData),this.uiStateMgr.setLastEventType(e.type)),this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"BOOTSTRAP_RUN_CANCELLED":"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setBootstrapRunProgress(null),this.notificationsMgr.setMsg(e.payload.ActionMessage));break;case"SEED_SET":"SUCCESS"===e.payload.ActionStatus&&(this.setSeed(e.payload.Seed),this.notificationsMgr.setMsg(e.payload.ActionMessage));break;case"SAVE_STATE":"SUCCESS"===e.payload.ActionStatus&&(dr(e.payload.Data,e.payload.FileName),this.notificationsMgr.setMsg(e.payload.ActionMessage))}};constructor(){this.uiStateMgr=new ka(this),this.notificationsMgr=new Ha(this),this.caseBasedDataMgr=new Ja(this),this.aggrDataMgr=new Ka(this),this.attrMappingMgr=new Ga(this),this.origGroupMgr=new za(this),this.summaryDataMgr=new qa(this),this.adjustMgr=new Xa(this),this.popMgr=new er(this),this.popCombMgr=new tr(this),this.modelMgr=new mr(this),this.reportMgr=new cr(this),this.migrMgr=new ur(this),(0,ja.rC)(this,{packageDetails:ja.LO,loadingUIState:ja.LO,shinyState:ja.LO,shinyMessage:ja.LO,loadStateProgress:ja.LO,seed:ja.LO,seedText:ja.Fl,shinyReady:ja.Fl,jsonShinyMessage:ja.Fl,setPackageDetails:ja.aD,setShinyState:ja.aD,btnClicked:ja.aD,inputValueSet:ja.aD,setShinyMessage:ja.aD,unbindShiny:ja.aD,bindShiny:ja.aD,saveState:ja.aD,loadState:ja.aD,setUIState:ja.aD,setLoadStateProgress:ja.aD,setSeed:ja.aD});const e=this;$((()=>{console.log("Application manager created. Binding shiny server events handlers."),$(document).on("shiny:disconnected",(()=>e.setShinyState("DISCONNECTED"))),$(document).on("shiny:connected",(()=>e.setShinyState("CONNECTED"))),$(document).on("shiny:sessioninitialized",(()=>e.setShinyState("SESSION_INITIALIZED"))),$(document).on("shiny:message",(t=>e.setShinyMessage(t))),$(document).on("shiny:inputchanged",(e=>console.log("shiny:inputchanged:",e))),$(document).on("shiny:filedownload",(e=>console.log("shiny:filedownload:",e)))}))}get shinyReady(){return"SESSION_INITIALIZED"===this.shinyState||"DEBUGGING"===this.shinyState}get jsonShinyMessage(){return JSON.stringify(this.shinyMessage)}get seedText(){return x(this.seed)?"":this.seed}get shinyStateHuman(){let e="";switch(this.shinyState){case"DISCONNECTED":e="DISCONNECTED";break;case"CONNECTED":e="INITIALIZING";break;case"DEBUGGING":case"SESSION_INITIALIZED":e="READY"}return e}setPackageDetails=e=>this.packageDetails=e;setShinyState=e=>{this.shinyState=e,"SESSION_INITIALIZED"===e&&Shiny.addCustomMessageHandler("shinyHandler",this.onShinyEvent)};btnClicked=(e,t="")=>{x(window.Shiny)||!this.shinyReady||this.loadingUIState?console.log("btnClicked: Shiny is not available",e,(0,ja.ZN)(t)):Shiny.setInputValue(e,t,{priority:"event"})};inputValueSet=(e,t,a=!1)=>{x(window.Shiny)||!this.shinyReady||this.loadingUIState&&!a?console.log("inputValueSet: Shiny is not available",e,(0,ja.ZN)(t)):Shiny.setInputValue(e,t)};setShinyMessage=e=>this.shinyMessage=e;setSeed=e=>{this.seed=""===e?null:e};unbindShiny=e=>{!x(window.Shiny)&&this.shinyReady?(window.Shiny.unbindAll(),Pe(e).forEach((e=>delete window.Shiny.shinyapp.$bindings[e]))):console.log("unbindShinyInputs: Shiny is not available")};bindShiny=()=>{!x(window.Shiny)&&this.shinyReady?window.Shiny.bindAll():console.log("bindShinyInputs: Shiny is not available")};saveState=()=>{const e=(0,Ba.qC)(this),t=JSON.stringify(e,{},2);this.btnClicked("saveStateBtn",t)};loadState=e=>{$(e).data("currentUploader",new Qa(Shiny.shinyapp,e,this.setLoadStateProgress))};setUIState=e=>{this.loadingUIState=!0,this.shinyState=e.shinyState,this.uiStateMgr.setUIState(e.uiStateMgr),this.notificationsMgr.setUIState(e.notificationsMgr),this.attrMappingMgr.setUIState(e.attrMappingMgr),this.origGroupMgr.setUIState(e.origGroupMgr),this.caseBasedDataMgr.setUIState(e.caseBasedDataMgr),this.aggrDataMgr.setUIState(e.aggrDataMgr),this.summaryDataMgr.setUIState(e.summaryDataMgr),this.adjustMgr.setUIState(e.adjustMgr),this.popMgr.setUIState(e.popMgr),this.popCombMgr.setUIState(e.popCombMgr),this.modelMgr.setUIState(e.modelMgr),this.reportMgr.setUIState(e.reportMgr),this.migrMgr.setUIState(e.migrMgr),this.inputValueSet("loadingUIStateDone",!0,!0)};setLoadStateProgress=e=>this.loadStateProgress=e}class pr{}class hr{}(0,Ba.yu)(hr,{parentMgr:(0,Ba.YP)(pr),id:(0,Ba.Ru)(),name:(0,Ba.Ru)(),intervals:(0,Ba.pb)((0,Ba.LZ)()),minYear:(0,Ba.Ru)(),maxYear:(0,Ba.Ru)()}),(0,Ba.yu)(pr,{id:(0,Ba.QU)(),parentMgr:(0,Ba.YP)(mr),collections:(0,Ba.UI)((0,Ba.Ry)(hr)),minYear:(0,Ba.Ru)(),maxYear:(0,Ba.Ru)(),selectedEditCollectionId:(0,Ba.Ru)(),selectedRunCollectionId:(0,Ba.Ru)()}),(0,Ba.yu)(mr,{id:(0,Ba.QU)(),timeIntCollMgr:(0,Ba.Ry)(pr),modelsParamFile:(0,Ba.Ru)(),modelsParamFileName:(0,Ba.Ru)(),rangeYears:(0,Ba.LZ)(),optimalYears:(0,Ba.LZ)(),minYear:(0,Ba.Ru)(),maxYear:(0,Ba.Ru)(),minFitPos:(0,Ba.Ru)(),maxFitPos:(0,Ba.Ru)(),minFitCD4:(0,Ba.Ru)(),maxFitCD4:(0,Ba.Ru)(),minFitAIDS:(0,Ba.Ru)(),maxFitAIDS:(0,Ba.Ru)(),minFitHIVAIDS:(0,Ba.Ru)(),maxFitHIVAIDS:(0,Ba.Ru)(),fullData:(0,Ba.Ru)(),knotsCount:(0,Ba.Ru)(),startIncZero:(0,Ba.Ru)(),maxIncCorr:(0,Ba.Ru)(),distributionFit:(0,Ba.Ru)(),delta4Fac:(0,Ba.Ru)(),country:(0,Ba.Ru)(),bootstrapCount:(0,Ba.Ru)(),bootstrapType:(0,Ba.Ru)(),modelsRunProgress:(0,Ba.Ru)(),modelsRunLog:(0,Ba.Ru)(),bootstrapRunProgress:(0,Ba.Ru)(),bootstrapRunLog:(0,Ba.Ru)(),migrConnFlag:(0,Ba.Ru)(),showConfBounds:(0,Ba.Ru)(),plotData:(0,Ba.LZ)()}),(0,Ba.yu)(cr,{rootMgr:(0,Ba.YP)(gr),report:(0,Ba.Ru)(),adjustReportParams:(0,Ba.LZ)(),creatingReportInProgress:(0,Ba.Ru)()});class Er{}(0,Ba.yu)(Er,{id:(0,Ba.QU)(),name:(0,Ba.Ru)(),aggrPopulations:(0,Ba.pb)((0,Ba.Ru)()),casePopulations:(0,Ba.pb)((0,Ba.Ru)())}),(0,Ba.yu)(tr,{rootMgr:(0,Ba.YP)(gr),combinations:(0,Ba.UI)((0,Ba.Ry)(Er)),selectedCombination:(0,Ba.YP)(Er),combinationAllId:(0,Ba.Ru)()}),(0,Ba.yu)(er,{rootMgr:(0,Ba.YP)(gr),availableVariables:(0,Ba.pb)((0,Ba.LZ)()),availableStrata:(0,Ba.LZ)(),populations:(0,Ba.pb)((0,Ba.LZ)())}),(0,Ba.yu)(Xa,{rootMgr:(0,Ba.YP)(gr),miAdjustType:(0,Ba.Ru)(),miJomoSettings:(0,Ba.LZ)(),miMiceSettings:(0,Ba.LZ)(),rdAdjustType:(0,Ba.Ru)(),dataBounds:(0,Ba.LZ)(),rdWithoutTrendSettings:(0,Ba.LZ)(),rdWithTrendSettings:(0,Ba.LZ)(),adjustmentsRunProgress:(0,Ba.Ru)(),adjustmentsRunLog:(0,Ba.Ru)(),adjustmentsReport:(0,Ba.Ru)(),runAdjustmentsTypes:(0,Ba.pb)((0,Ba.Ru)())}),(0,Ba.yu)(qa,{rootMgr:(0,Ba.YP)(gr),selectedCount:(0,Ba.Ru)(),totalCount:(0,Ba.Ru)(),diagYearPlotData:(0,Ba.LZ)(),notifQuarterPlotData:(0,Ba.LZ)(),missPlotData:(0,Ba.LZ)(),missPlotSelection:(0,Ba.Ru)(),repDelPlotData:(0,Ba.LZ)(),repDelPlotSelection:(0,Ba.Ru)()}),(0,Ba.yu)(Ka,{rootMgr:(0,Ba.YP)(gr),fileName:(0,Ba.Ru)(),fileSize:(0,Ba.Ru)(),fileType:(0,Ba.Ru)(),filePath:(0,Ba.Ru)(),dataFiles:(0,Ba.LZ)(),origDataFiles:(0,Ba.LZ)(),rangeYears:(0,Ba.LZ)(),dataFileNameToIdxMap:(0,Ba.UI)(),populationNames:(0,Ba.pb)((0,Ba.Ru)()),fileUploadProgress:(0,Ba.Ru)(),actionStatus:(0,Ba.Ru)(),actionMessage:(0,Ba.Ru)()}),(0,Ba.yu)(Ja,{rootMgr:(0,Ba.YP)(gr),fileName:(0,Ba.Ru)(),fileSize:(0,Ba.Ru)(),fileType:(0,Ba.Ru)(),filePath:(0,Ba.Ru)(),columnNames:(0,Ba.pb)((0,Ba.Ru)()),recordCount:(0,Ba.Ru)(),uploadProgress:(0,Ba.Ru)(),actionStatus:(0,Ba.Ru)(),actionMessage:(0,Ba.Ru)()}),(0,Ba.yu)(za,{rootMgr:(0,Ba.YP)(gr),distribution:(0,Ba.LZ)(),groupings:(0,Ba.pb)((0,Ba.LZ)()),preset:(0,Ba.Ru)(),actionStatus:(0,Ba.Ru)(),actionMessage:(0,Ba.Ru)(),migrantCompatibleStatus:(0,Ba.Ru)(),migrantCompatibleMessage:(0,Ba.Ru)()}),(0,Ba.yu)(Ga,{rootMgr:(0,Ba.YP)(gr),mapping:(0,Ba.pb)((0,Ba.LZ)()),actionStatus:(0,Ba.Ru)(),actionMessage:(0,Ba.Ru)()}),(0,Ba.yu)(Ha,{rootMgr:(0,Ba.YP)(gr),msgInfo:(0,Ba.LZ)()}),(0,Ba.yu)(ka,{rootMgr:(0,Ba.YP)(gr),lastEventType:(0,Ba.Ru)(),completedSteps:(0,Ba.pb)((0,Ba.Ru)()),pages:(0,Ba.pb)((0,Ba.LZ)()),activePageId:(0,Ba.Ru)()}),(0,Ba.yu)(ur,{runLog:(0,Ba.Ru)(),runProgress:(0,Ba.Ru)(),inputStats:(0,Ba.LZ)(),outputStats:(0,Ba.LZ)(),outputPlots:(0,Ba.LZ)(),confBounds:(0,Ba.LZ)(),yodRegion:(0,Ba.Ru)(),tableRegion:(0,Ba.Ru)(),propTableStrat:(0,Ba.LZ)(),dataCompatibleFlag:(0,Ba.LZ)(),showConfBounds:(0,Ba.LZ)()}),(0,Ba.yu)(gr,{id:(0,Ba.QU)(),shinyState:(0,Ba.Ru)(),uiStateMgr:(0,Ba.Ry)(ka),notificationsMgr:(0,Ba.Ry)(Ha),attrMappingMgr:(0,Ba.Ry)(Ga),origGroupMgr:(0,Ba.Ry)(za),caseBasedDataMgr:(0,Ba.Ry)(Ja),aggrDataMgr:(0,Ba.Ry)(Ka),summaryDataMgr:(0,Ba.Ry)(qa),adjustMgr:(0,Ba.Ry)(Xa),popMgr:(0,Ba.Ry)(er),popCombMgr:(0,Ba.Ry)(tr),modelMgr:(0,Ba.Ry)(mr),reportMgr:(0,Ba.Ry)(cr),migrMgr:(0,Ba.Ry)(ur)}),window.jQuery=s(),window.$=s();const Mr=new gr,Sr=document.getElementById("app");n.createRoot(Sr).render(r.createElement(l.zt,{appMgr:Mr},r.createElement(r.StrictMode,null,r.createElement(La,null))))}},n={};function l(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e].call(a.exports,a,a.exports,l),a.exports}l.m=r,e=[],l.O=(t,a,r,n)=>{if(!a){var i=1/0;for(c=0;c=n)&&Object.keys(l.O).every((e=>l.O[e](a[o])))?a.splice(o--,1):(s=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[a,r,n]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var n=Object.create(null);l.r(n);var i={};t=t||[null,a({}),a([]),a(a)];for(var s=2&r&&e;"object"==typeof s&&!~t.indexOf(s);s=a(s))Object.getOwnPropertyNames(s).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,l.d(n,i),n},l.d=(e,t)=>{for(var a in t)l.o(t,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={179:0};l.O.j=t=>0===e[t];var t=(t,a)=>{var r,n,[i,s,o]=a,m=0;if(i.some((t=>0!==e[t]))){for(r in s)l.o(s,r)&&(l.m[r]=s[r]);if(o)var c=o(l)}for(t&&t(a);ml(8034)));i=l.O(i)})(); \ No newline at end of file +(()=>{"use strict";var e,t,a,r={8034:(e,t,a)=>{var r=a(9953),n=a(9431),l=a(6499);const i=jQuery;var s=a.n(i),o=a(4339),m=a(1712),c=a(3177),u=a(9014),d=a(2625),g=a(5793),p=a(7878),h=a(4501),E=a(2048),M=a(4263),S=a(5990),y=a(1631),D=a(2991),b=a(3160),f=a(1709),P=a(3336);const x=e=>null==e;function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{pages:t,activePageId:a,onPageChange:n}=e;return r.createElement("div",{style:{minWidth:"220px",maxWidth:"220px",backgroundColor:"white",padding:"12px 8px 12px 12px"}},r.createElement(S.Z,{nonLinear:!0,activeStep:a,orientation:"vertical"},t.map(((e,t)=>{const a={};return x(e.description)||(a.optional=r.createElement(h.Z,{width:"150px",textAlign:"left"},r.createElement(p.Z,{variant:"caption"},e.description))),r.createElement(y.Z,{key:t,completed:e.completed,disabled:e.disabled},r.createElement(D.Z,C({onClick:()=>n(t)},a),e.title),e.subPages.length>0&&r.createElement(P.Z,null,r.createElement(b.Z,null,e.subPages.map(((a,l)=>r.createElement(f.ZP,{button:!0,key:l,selected:l===e.activeSubPageId,disabled:a.disabled,onClick:()=>n(t,l)},a.title))))))}))))}));var A=a(7674),v=a(3605),I=a(223),R=a(9493),T=a(7464);const N=({progress:e})=>x(e)?null:r.createElement(T.Z,{variant:"determinate",value:100*e,color:"secondary",sx:{marginTop:"10px",marginBottom:"10px",height:"5px"}}),F=(0,l.Pi)((e=>{const{appMgr:t,open:a,onClose:n}=e,[l,i]=r.useState(null);return r.createElement(A.ZP,{anchor:"right",open:a,onClose:n},r.createElement(h.Z,{width:300,p:2},r.createElement(b.Z,{dense:!0},r.createElement(v.Z,null,r.createElement(p.Z,{variant:"button"},"Application")),r.createElement(f.ZP,null,r.createElement(R.Z,{color:"primary",size:"small",component:"label",onClick:()=>t.saveState()},"Save state")),r.createElement(f.ZP,null,r.createElement(R.Z,{color:"primary",size:"small",component:"label"},"Load state",r.createElement("input",{hidden:!0,type:"file",accept:".rds",onChange:e=>t.loadState(e.target),id:"loadStateBtn"}))),r.createElement(N,{progress:t.loadStateProgress}),r.createElement(f.ZP,null,r.createElement(R.Z,{color:"primary",size:"small",component:"a",href:"./",target:"_blank"},"Open another instance"))),r.createElement(v.Z,null,r.createElement(p.Z,{variant:"button"},"Documentation")),r.createElement(f.ZP,null,r.createElement(R.Z,{color:"primary",size:"small",component:"a",href:"./www/docs/HIVPlatform_2.0.0_manual.pdf",target:"_blank"},"Open manual pdf")),r.createElement(v.Z,null,r.createElement(p.Z,{variant:"button"},"Options")),r.createElement(f.ZP,null,r.createElement(I.Z,{label:"Seed value",helperText:"Leave empty value to enable random seed",type:"number",fullWidth:!0,defaultValue:t.seedText,onChange:e=>i(parseInt(e.target.value))})),r.createElement(f.ZP,null,r.createElement(R.Z,{color:"primary",size:"small",onClick:()=>t.btnClicked("seed",l)},"Apply"))))}));var O=a(9217),w=a(4307),Y=a(8931),_=a(6352),L=a(6792),j=a(2175),B=a(7842);const k=e=>{const{title:t,description:a,moreText:n,image:l,onClick:i}=e,[s,o]=r.useState(!1);return r.createElement(w.Z,null,r.createElement(Y.Z,{onClick:i},r.createElement(L.Z,{style:{height:300},image:l}),r.createElement(_.Z,null,r.createElement(p.Z,{gutterBottom:!0,variant:"h5",component:"h2"},t),r.createElement(p.Z,{variant:"body2",color:"textSecondary",component:"p"},a))),r.createElement(j.Z,{disableSpacing:!0},r.createElement(R.Z,{onClick:()=>o(!s),size:"small",color:"primary"},s?"Read less...":"Read more...")),r.createElement(B.Z,{in:s,timeout:"auto",unmountOnExit:!0},r.createElement(_.Z,null,n)))},U=e=>{const t=e.appMgr,a=()=>t.uiStateMgr.setActivePageId(1),n=r.createElement(r.Fragment,null,r.createElement("p",null,"The ",r.createElement("b",null,"HIV Estimates Accuracy Tool")," is an application that uses statistical methods to calculate adjusted estimates from HIV surveillance data."),r.createElement("p",null,"Missing data are a well-recognised problem within surveillance systems. When values for some variables are missing and cases with missing values are excluded from analysis, it may lead to biased and potentially less precise estimates. Reporting delay, the time from case diagnosis to notification, can lead to problems when analysing the most recent years given that information on certain cases or variables may not have been collected yet due to national reporting process characteristics."),r.createElement("p",null,"With this tool you can correct missing data for the variables age, gender, transmission category and CD4 count. Additionally, the tool allows for correction of delays in reporting. The adjustments may be used separately or in combination."),r.createElement("p",null,"The tool accepts HIV case-based surveillance data and requires a minimum set of variables routinely collected at national public health systems."),r.createElement("p",null,"A complete instruction ",r.createElement("a",{href:"#"},"manual")," will guide you through the tool. The manual can also be consulted to interpret the outputs. The outputs include results in the form of a report containing tables and graphs, and datasets in various file formats, in which the corrections have been incorporated and are ready for further analysis.")),l=r.createElement(r.Fragment,null,r.createElement("p",null,"The ",r.createElement("b",null,"HIV Modelling Tool")," is an application that can estimate How many people are getting infected with HIV, how many are being missed or not being reported and how many should be on treatment."),r.createElement("p",null,"The tool uses CD4 back calculation methods to estimate the number of people living with HIV, including those not yet diagnosed. The tool can also estimate the annual number of new HIV infections, the average time between infection and diagnosis, and the number of undiagnosed people CD4 category."),r.createElement("p",null,"The tool accepts a minimum required set of variables: HIV cases, AIDS cases and HIVAIDS cases and, if available, CD4 count at HIV diagnosis. The tool uses aggregated HIV surveillance data or case-based data. Data adjusted by the Accuracy tool can thereafter be used as input data for this tool. When data on these parameters are provided, the tool also accounts for mortality and migration."),r.createElement("p",null,"A complete instruction manual will guide you through the tool. The ",r.createElement("a",{href:"#"},"manual")," can also be consulted to interpret the outputs and to aid in the selection of some parameters using clear and well instructed examples.")),i=r.createElement(r.Fragment,null,r.createElement("p",null,"The two tools were combined into one flexible tool that manages all inputs, adjustments and outputs in one simple workflow. After uploading HIV cased-based data, the data can be initially adjusted for missing information and/or reporting delay and then automatically used as input data to the modelling tool, where estimates of HIV incidence, prevalence and the undiagnosed number of people living with HIV can be made."));return r.createElement(O.ZP,{container:!0,direction:"row",justifyContent:"space-evenly",alignItems:"baseline"},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{width:"50%",m:"auto",p:5},r.createElement("p",null,"HIV continues to be of significant public health importance in the European Union as well as globally. To evaluate and direct prevention efforts, it is crucial to understand the pattern of new HIV infections, or HIV incidence, among groups most at risk of infection. It is also important to estimate the size of the total population of persons living with HIV, including those that are not yet diagnosed, in order to understand the burden of HIV and the need for antiretroviral treatment and other HIV-related care. Accurate surveillance data are crucial to achieve reliable parameter estimates."),r.createElement("p",null,"The ECDC HIV Modelling Platform provides a set of tools to support users to obtain reliable parameter estimates to appropriately direct and evaluate public health responses."))),r.createElement(O.ZP,{item:!0,xs:3},r.createElement(k,{title:"Accuracy",description:"Adjust case-based data for missing values and reporting delay",moreText:n,image:"www/img/accuracy.png",onClick:a})),r.createElement(O.ZP,{item:!0,xs:3},r.createElement(k,{title:"Modelling",description:"Estimate number of PLHIV and incidence",moreText:l,image:"www/img/modelling.png",onClick:a})),r.createElement(O.ZP,{item:!0,xs:3},r.createElement(k,{title:"All-in-one",description:"Accuracy adjustements and modelling integrated in one tool",moreText:i,image:"www/img/all-in-one.png",onClick:a})))};var H=a(4910);function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{children:t,...a}=e;return r.createElement(p.Z,G({component:"div",role:"tabpanel",style:{flexGrow:1}},a),t)};var z=a(1124),W=a(6748),Q=a(4642),J=a(5388),K=a(7691),q=a(8071),X=a(3188),ee=a(8289);function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{children:t,...a}=e;return r.createElement(R.Z,te({variant:"contained",color:"primary",component:"span",sx:{color:"white"}},a),t)};var re=a(2705);function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{valid:t,msg:a,...n}=e;if(x(t))return null;const l=t?"success":"error";return r.createElement(re.Z,ne({severity:l},n,{style:{marginTop:10}}),a)},ie=(e,t=2)=>{if(x(e))return"";if(0===e)return"0 Bytes";const a=t<0?0:t,r=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,r)).toFixed(a))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]};function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(K.Z,se({sx:{width:142,fontWeight:"bold"}},e)),me=e=>r.createElement(K.Z,se({sx:{maxWidth:0,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},e)),ce=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.uiStateMgr.summaryPageEnabled,onClick:()=>t.uiStateMgr.setActivePageId(2)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Upload case-based data")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement("input",{style:{display:"none"},id:"caseUploadBtn",className:"uploadBtn",type:"file",accept:".csv, .rds, .txt, .xls, .xlsx, .zip",onChange:e=>t.caseBasedDataMgr.uploadData(e.target)}),r.createElement(z.Z,{title:"Select case-based data file",arrow:!0},r.createElement("label",{htmlFor:"caseUploadBtn"},r.createElement(ae,{sx:{marginBottom:"6px",color:"white"}},r.createElement(ee.Z,null)," Upload data"))),r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Maximum file size: 100MB",r.createElement("br",null),"Supported files types: rds, txt, csv, xls, xlsx (uncompressed and zip archives)"),r.createElement(N,{progress:t.caseBasedDataMgr.uploadProgress}),r.createElement(le,{valid:t.caseBasedDataMgr.actionValid,msg:t.caseBasedDataMgr.actionMessage})),r.createElement(O.ZP,{item:!0,xs:10},!t.caseBasedDataMgr.actionValid&&r.createElement(Q.Z,{sx:{color:"#eee",fontSize:"600px"}}),t.caseBasedDataMgr.actionValid&&r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(p.Z,{variant:"overline"},"Uploaded file details"),r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:6},r.createElement(W.Z,null,r.createElement(J.Z,null,r.createElement(q.Z,null,r.createElement(oe,null,"File name"),r.createElement(me,null,t.caseBasedDataMgr.fileName)),r.createElement(q.Z,null,r.createElement(oe,null,"File size"),r.createElement(me,null,ie(t.caseBasedDataMgr.fileSize))),r.createElement(q.Z,null,r.createElement(oe,null,"File type"),r.createElement(me,null,t.caseBasedDataMgr.fileType)),r.createElement(q.Z,null,r.createElement(oe,null,"Number of records"),r.createElement(me,null,t.caseBasedDataMgr.recordCount))))),r.createElement(O.ZP,{item:!0,xs:6},r.createElement(W.Z,null,r.createElement(J.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(oe,null,"Column names")),r.createElement(q.Z,null,r.createElement(me,{sx:{whiteSpace:"normal"}},r.createElement("div",{style:{overflow:"auto",maxHeight:"164px"}},t.caseBasedDataMgr.columnNamesString))))))))))}));var ue=a(585),de=a(2082),ge=a(9719),pe=a(9296),he=a(9505),Ee=a(8580),Me=a(1684),Se=a(3774);function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{onChange:t,validationFunc:a,helperText:n,...l}=e,[i,s]=r.useState(!1),[o,m]=r.useState(""),c=o||n;return r.createElement(I.Z,ye({},l,{error:i,helperText:c,onChange:e=>{const{value:r}=e.target,l=a(r),i=l!==n,o=!i;s(i),m(l),t&&t(r,o)},inputProps:{autoComplete:"new-password",form:{autoComplete:"off"}}}))})),be=(e,t)=>-1!==t.indexOf(e),fe=e=>Array.isArray(e),Pe=e=>fe(e)?e:[e],xe=(e,t)=>{t=Pe(t);return e.filter(((e,a)=>-1===t.indexOf(a)))},Ce=(0,l.Pi)((e=>{const{i:t,isSelected:a,onSelectClick:n,el:l,appMgr:i}=e,[s,o]=r.useState(""),[m,c]=r.useState([]);r.useEffect((()=>{o(l.GroupedRegionOfOrigin)}),[l.GroupedRegionOfOrigin]),r.useEffect((()=>{c(i.origGroupMgr.usedNames)}),[i.origGroupMgr.usedNames]);const u=i.origGroupMgr.unusedOrigins,d=l.FullRegionOfOrigin.concat(u),g=r.createElement(pe.Z,{inputProps:{"aria-labelledby":`labelId${t}`},color:"primary",checked:a,onClick:n}),p=r.createElement(De,{sx:{width:"100%","& .MuiInputBase-root":{fontSize:"0.75rem"}},helperText:"",value:s,validationFunc:e=>{let a="";return""===(e=e.trim())?a="Name is empty":be(e,xe(m,t))&&(a="Name is used"),a},onChange:(e,a)=>{o(e),a&&i.origGroupMgr.setGroupName(t,e)},onInput:e=>{e.target.value=(""+e.target.value).toUpperCase()}}),h=r.createElement(ge.Z,{sx:{width:"100%",fontSize:"0.75rem"},value:l.MigrantRegionOfOrigin||"",onChange:e=>{const a=""==e.target.value?null:e.target.value;i.origGroupMgr.setMigrantOrigin(t,a)}},r.createElement(he.Z,{value:"",dense:!0}),r.createElement(he.Z,{value:"REPCOUNTRY",dense:!0},"REPCOUNTRY"),r.createElement(he.Z,{value:"EUROPE-NORTH AMERICA",dense:!0},"EUROPE-NORTH AMERICA"),r.createElement(he.Z,{value:"AFRICA",dense:!0},"AFRICA"),r.createElement(he.Z,{value:"ASIA",dense:!0},"ASIA"),r.createElement(he.Z,{value:"CARIBBEAN-LATIN AMERICA",dense:!0},"CARIBBEAN-LATIN AMERICA"),r.createElement(he.Z,{value:"OTHER",dense:!0},"OTHER"),r.createElement(he.Z,{value:"UNK",dense:!0},"UNK")),E=r.createElement(ge.Z,{multiple:!0,renderValue:e=>r.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},e.map((e=>r.createElement(Se.Z,{key:e,label:e,sx:{margin:"2px"},color:"info",size:"small"})))),value:l.FullRegionOfOrigin,sx:{width:"100%",fontSize:"0.75rem","&:before":{borderBottom:"0px solid black"}},onChange:e=>i.origGroupMgr.setGroupOrigin(t,e.target.value)},d.map(((e,t)=>r.createElement(he.Z,{key:t,value:e,dense:!0},e))));return r.createElement(q.Z,{hover:!0,role:"checkbox"},r.createElement(K.Z,{padding:"checkbox",sx:{verticalAlign:"top"}},g),r.createElement(K.Z,{id:`labelId${t}`,scope:"row",sx:{padding:"4px 20px 6px 0px",verticalAlign:"top"}},p),r.createElement(K.Z,{scope:"row",sx:{padding:"4px 4px 6px 0px",verticalAlign:"top"}},h),r.createElement(K.Z,{sx:{padding:"0px 4px 0px 16px",verticalAlign:"top",maxWidth:"300px"}},E),r.createElement(K.Z,{align:"right",sx:{padding:"4px 16px 0px 16px",verticalAlign:"top"}},l.groupCount))})),Ze=e=>{const{selectedCount:t,onAddClick:a,onDeleteClick:n,addDisabled:l}=e,i=0===t;return r.createElement(g.Z,null,r.createElement(p.Z,{variant:"subtitle1",component:"div",style:{flex:"1 1 100%"}},t," selected"),r.createElement(R.Z,{color:"primary",disabled:i,onClick:n},"Delete"),r.createElement(R.Z,{color:"primary",disabled:l,onClick:a},"Add"))},Ae=(e,t)=>{t=Pe(t);return e.filter((e=>-1===t.indexOf(e)))},ve=(0,l.Pi)((e=>{const{appMgr:t}=e,[a,n]=r.useState([]),l=t.origGroupMgr.distributionArray,i=t.origGroupMgr.groupingsJS,s=e=>t=>{let r=[];r=-1===a.indexOf(e)?r.concat(a,e):Ae(a,e),n(r)},o=i.length,m=a.length,c=e=>-1!==a.indexOf(e);return r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:2},r.createElement(p.Z,{variant:"overline"},"Distribution of region of origin"),r.createElement(W.Z,{size:"small"},r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,null,"FullRegionOfOrigin"),r.createElement(K.Z,{align:"right"},"Count"))),r.createElement(J.Z,null,l.map(((e,t)=>r.createElement(q.Z,{key:t},r.createElement(K.Z,null,e.origin),r.createElement(K.Z,{align:"right"},e.count))))))),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(p.Z,{variant:"overline"},"Migrant variable regrouping"),r.createElement(Ee.Z,{sx:{width:"100%",fontSize:"0.75rem"}},r.createElement(ge.Z,{value:t.origGroupMgr.preset,onChange:e=>{const a=e.target.value;t.inputValueSet("groupingPresetSelect",a),t.origGroupMgr.setPreset(a)},sx:{width:"100%",fontSize:"0.75rem"}},r.createElement(v.Z,null,r.createElement(p.Z,{variant:"overline"},"General presets")),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + OTHER",dense:!0},"REPCOUNTRY + UNK + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + SUB-SAHARAN AFRICA + OTHER",dense:!0},"REPCOUNTRY + UNK + SUB-SAHARAN AFRICA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + 3 most prevalent regions + OTHER",dense:!0},"REPCOUNTRY + UNK + 3 most prevalent regions + OTHER"),r.createElement(he.Z,{value:"Custom",dense:!0},"Custom"),r.createElement(v.Z,null,r.createElement(H.Z,null)),r.createElement(v.Z,null,r.createElement(p.Z,{variant:"overline"},"Migrant-module specific presets")),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + AFRICA + ASIA + OTHER",dense:!0},"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + AFRICA + ASIA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-OTHER-NORTH AMERICA + AFRICA + ASIA + OTHER",dense:!0},"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-NORTH AMERICA-OTHER + AFRICA + ASIA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + OTHER",dense:!0},"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + AFRICA + ASIA + CARIBBEAN-LATIN AMERICA + OTHER",dense:!0},"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + AFRICA + ASIA + CARIBBEAN-LATIN AMERICA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-OTHER-NORTH AMERICA + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + OTHER",dense:!0},"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-NORTH AMERICA-OTHER + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-OTHER-NORTH AMERICA + AFRICA + ASIA + CARIBBEAN-LATIN AMERICA + OTHER",dense:!0},"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-NORTH AMERICA-OTHER + AFRICA + ASIA + CARIBBEAN-LATIN AMERICA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + CARIBBEAN-LATIN AMERICA + OTHER",dense:!0},"REPCOUNTRY + UNK + EUROPE-NORTH AMERICA + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + CARIBBEAN-LATIN AMERICA + OTHER"),r.createElement(he.Z,{value:"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-OTHER-NORTH AMERICA + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + CARIBBEAN-LATIN AMERICA + OTHER",dense:!0},"REPCOUNTRY + UNK + EASTERN EUROPE + EUROPE-NORTH AMERICA-OTHER + SUB-SAHARAN AFRICA + AFRICA-OTHER + ASIA + CARIBBEAN-LATIN AMERICA + OTHER")),r.createElement(Me.Z,null,"Select regrouping preset")),r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,{padding:"checkbox"},r.createElement(pe.Z,{inputProps:{"aria-label":"select all"},color:"primary",onClick:e=>{if(e.target.checked){const e=i.map(((e,t)=>t));n(e)}else n([])},checked:o>0&&m===o})),r.createElement(K.Z,{width:250,sx:{padding:"0px 20px 0px 0px"}},"Grouped Region Of Origin"),r.createElement(K.Z,{width:250,padding:"none"},"Region For Migration Module Parameter"),r.createElement(K.Z,null,"FullRegionOfOrigin"),r.createElement(K.Z,{align:"right",width:"10%"},"Count"))),r.createElement(J.Z,null,i.map(((e,a)=>r.createElement(Ce,{key:a,i:a,el:e,appMgr:t,isSelected:c(a),onSelectClick:s(a)}))))),r.createElement(Ze,{selectedCount:m,onAddClick:()=>{t.origGroupMgr.addEmptyGrouping()},onDeleteClick:()=>{t.origGroupMgr.removeGroupings(a),n([])}}),r.createElement(re.Z,{severity:"info"},'Records with value "UNK" are removed from the dataset processed for migration.',r.createElement("br",null),'Region "CARIBBEAN-LATIN AMERICA" is combined with region "OTHER" for migration module parameter.'),r.createElement(le,{valid:t.origGroupMgr.migrantCompatibleStatus,msg:t.origGroupMgr.migrantCompatibleMessage}))))})),Ie=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Migrant variable regrouping")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(ae,{sx:{marginBottom:"6px",color:"white"},onClick:()=>t.origGroupMgr.applyGroupings(),disabled:!t.uiStateMgr.caseBasedOrigGroupingEnabled},r.createElement(ue.Z,null)," Apply regrouping"),r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Migrant variable can be created by grouping regions.",r.createElement("br",null),"Choose preset or define custom grouping and press 'Apply regrouping' button."),r.createElement(le,{valid:t.origGroupMgr.actionValid,msg:t.origGroupMgr.actionMessage})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(ve,e)))}));var Re=a(7751),Te=a(5226),Ne=a(9238);const Fe=(0,l.Pi)((e=>{const{appMgr:t}=e;let a=[];null!==t.caseBasedDataMgr.columnNames&&(a=t.caseBasedDataMgr.columnNames.slice().sort().concat(""));const n=e=>a=>{t.attrMappingMgr.setDefVal(e,a.target.value)},l=t.attrMappingMgr.mapping.map(((e,l)=>{return r.createElement(q.Z,{key:l},r.createElement(K.Z,null,`${l+1}.`),r.createElement(K.Z,null,e.attribute),r.createElement(K.Z,{sx:{padding:"4px 16px 0px 16px"}},r.createElement(Re.Z,{value:e.origColName||"",onChange:(i=e.attribute,(e,a)=>{t.attrMappingMgr.setOrigCol(i,a)}),options:a,renderInput:e=>r.createElement(I.Z,e),sx:{input:{fontSize:"0.75rem"}},autoComplete:!0,autoHighlight:!0,selectOnFocus:!0,clearOnBlur:!0,handleHomeEndKeys:!0,blurOnSelect:!0,clearOnEscape:!0})),r.createElement(K.Z,{sx:{padding:"4px 16px 0px 16px"}},r.createElement(Te.Z,{sx:{width:"100%",fontSize:"0.75rem"},onChange:n(e.attribute),disabled:!!e.origColName})),r.createElement(K.Z,null,r.createElement(p.Z,{variant:"overline"},e.type)));var i}));return r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Attribute mapping")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(ae,{sx:{marginBottom:"6px",color:"white"},onClick:()=>t.attrMappingMgr.applyMapping(),disabled:!t.attrMappingMgr.actionValid},r.createElement(Ne.Z,null)," Apply mapping"),r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Input data must mapped to internal attributes.",r.createElement("br",null),"Adjust mapping and press 'Apply mapping' button."),r.createElement(le,{valid:t.attrMappingMgr.actionValid,msg:t.attrMappingMgr.actionMessage})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(p.Z,{variant:"overline"},"Attribute mapping"),r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,{width:"8%"},"Idx"),r.createElement(K.Z,{width:"23%"},"Attribute"),r.createElement(K.Z,{width:"23%"},"Uploaded data column"),r.createElement(K.Z,{width:"23%"},"Override value"),r.createElement(K.Z,{width:"23%"},"Type"))),r.createElement(J.Z,null,l)),r.createElement(re.Z,{severity:"info"},"Date of diagnosis is the date of HIV diagnosis in the reporting country."))))})),Oe=(0,l.Pi)((e=>{const{appMgr:t}=e,a=r.createElement(H.Z,{light:!0,style:{margin:"30px 0"}});return r.createElement(V,null,r.createElement(ce,e),t.uiStateMgr.caseBasedAttrMappingEnabled&&r.createElement(r.Fragment,null,a,r.createElement(Fe,e)),t.uiStateMgr.caseBasedOrigGroupingProvisioned&&r.createElement(r.Fragment,null,a,r.createElement(Ie,e)))}));var we=a(2342);function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(K.Z,Ye({sx:{width:142,fontWeight:"bold"}},e)),Le=e=>r.createElement(K.Z,Ye({sx:{maxWidth:0,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},e)),je=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.uiStateMgr.modellingPageEnabled,onClick:()=>t.uiStateMgr.setActivePageId(4)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Upload aggregated data")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement("input",{style:{display:"none"},id:"aggrUploadBtn",className:"uploadBtn",type:"file",accept:".csv, .zip",onChange:e=>t.aggrDataMgr.uploadData(e.target)}),r.createElement(z.Z,{title:"Select aggregated data file",arrow:!0},r.createElement("label",{htmlFor:"aggrUploadBtn"},r.createElement(ae,{sx:{marginBottom:"6px",color:"white"}},r.createElement(ee.Z,null)," Upload data"))),r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Maximum file size: 100MB",r.createElement("br",null),"Supported files types: csv (zip archives)"),r.createElement(N,{progress:t.aggrDataMgr.fileUploadProgress}),r.createElement(le,{valid:t.aggrDataMgr.actionValid,msg:t.aggrDataMgr.actionMessage})),r.createElement(O.ZP,{item:!0,xs:10},!t.aggrDataMgr.actionValid&&r.createElement(we.Z,{sx:{color:"#eee",fontSize:"600px"}}),t.aggrDataMgr.actionValid&&r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(p.Z,{variant:"overline"},"Uploaded file details"),r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:6},r.createElement(W.Z,null,r.createElement(J.Z,null,r.createElement(q.Z,null,r.createElement(_e,null,"File name"),r.createElement(Le,null,t.aggrDataMgr.fileName)),r.createElement(q.Z,null,r.createElement(_e,null,"File size"),r.createElement(Le,null,ie(t.aggrDataMgr.fileSize))),r.createElement(q.Z,null,r.createElement(_e,null,"File type"),r.createElement(Le,null,t.aggrDataMgr.fileType))))),r.createElement(O.ZP,{item:!0,xs:6},r.createElement(W.Z,null,r.createElement(J.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(_e,null,"Data names")),r.createElement(q.Z,null,r.createElement(Le,{sx:{whiteSpace:"normal"}},r.createElement("div",{style:{overflow:"auto",maxHeight:164}},t.aggrDataMgr.dataNamesString))),r.createElement(q.Z,{hover:!1},r.createElement(_e,null,"Population names")),r.createElement(q.Z,null,r.createElement(Le,{sx:{whiteSpace:"normal"}},r.createElement("div",{style:{overflow:"auto",maxHeight:164}},t.aggrDataMgr.populationNamesString)))))))))))})),Be=(0,l.Pi)((e=>{const{appMgr:t}=e,a=t.uiStateMgr.activeSubPageId;return r.createElement(r.Fragment,null,0===a&&r.createElement(Oe,e),1===a&&r.createElement(je,e))}));var ke=a(3348),Ue=a(1922),He=a(6055),Ge=a(9923),Ve=a(8856),ze=a(1741),We=a(9105),$e=a(8e3),Qe=a(9682),Je=a(8311),Ke=a(3672),qe=a(3618);Ve.D([$e.N,Qe.N,Je.N,Ke.N,We.N,qe.N]);const Xe=(0,l.Pi)((e=>{const t=r.useRef(null),{xAxisLabel:a,xCategories:n,maleData:l,femaleData:i}=e,s={textStyle:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'},grid:{top:40,right:90,bottom:40,left:60},xAxis:{type:"category",name:a,data:n,nameLocation:"center",nameTextStyle:{padding:[10,0,0,0]},axisTick:{show:!1},axisLine:{show:!1}},yAxis:{type:"value",name:"Count",nameLocation:"center",nameGap:45,splitLine:{show:!1}},series:[{name:"Male",data:l,type:"bar",stack:!0,barCategoryGap:1,color:"#69b023"},{name:"Female",data:i,type:"bar",stack:!0,barCategoryGap:1,color:"#7bbcc0"}],animationEasing:"elasticOut",animationDelayUpdate:e=>5*e,tooltip:{trigger:"axis"},legend:{orient:"vertical",right:0,top:"middle"}};return r.createElement(Ge.Z,{echarts:ze,option:s,style:{height:"200px",width:"100%"},notMerge:!0,lazyUpdate:!0,opts:{},ref:t})})),et=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(O.ZP,{item:!0,xs:2},r.createElement(Ue.Z,{control:r.createElement(He.Z,{checked:t.summaryDataMgr.diagYearPlotData.filter.applyInAdjustments,onChange:e=>t.summaryDataMgr.setDiagYearFilterApply(e.target.checked),color:"primary",size:"small"}),label:"Apply this data selection in adjustments"})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(p.Z,{variant:"overline"},"Diagnosis year"),r.createElement("div",{style:{padding:"40px 105px 0 65px"}},r.createElement(ke.ZP,{min:t.summaryDataMgr.diagYearPlotData.filter.scaleMinYear,max:t.summaryDataMgr.diagYearPlotData.filter.scaleMaxYear,marks:!0,value:[t.summaryDataMgr.diagYearPlotData.filter.valueMinYear,t.summaryDataMgr.diagYearPlotData.filter.valueMaxYear],onChange:(e,a)=>{t.summaryDataMgr.setDiagYearFilterMinYear(a[0]),t.summaryDataMgr.setDiagYearFilterMaxYear(a[1])},valueLabelDisplay:"on",valueLabelFormat:e=>e.toFixed(),"aria-labelledby":"range-slider",getAriaLabel:e=>e.toFixed(),getAriaValueText:e=>e.toFixed(),color:"secondary",sx:{"& *":{fontSize:"9px"}}})),r.createElement(Xe,{xAxisLabel:"Diagnosis year",xCategories:t.summaryDataMgr.diagYearPlotData.chartCategories,maleData:t.summaryDataMgr.diagYearPlotData.chartData[0].data,femaleData:t.summaryDataMgr.diagYearPlotData.chartData[1].data}))))})),tt=e=>4*(e%1+.125).toFixed(3),at=e=>Math.floor(e)+"Q"+tt(e),rt=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(O.ZP,{item:!0,xs:2},r.createElement(Ue.Z,{control:r.createElement(He.Z,{value:t.summaryDataMgr.notifQuarterPlotData.filter.applyInAdjustments,onChange:e=>t.summaryDataMgr.setNotifQuarterFilterApply(e.target.checked),color:"primary",size:"small"}),label:"Apply this data selection in adjustments"})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(p.Z,{variant:"overline"},"Notification quarter"),r.createElement("div",{style:{padding:"40px 105px 0 65px"}},r.createElement(ke.ZP,{min:t.summaryDataMgr.notifQuarterPlotData.filter.scaleMinYear,max:t.summaryDataMgr.notifQuarterPlotData.filter.scaleMaxYear,step:null,marks:t.summaryDataMgr.notifQuarterSliderMarks,value:[t.summaryDataMgr.notifQuarterPlotData.filter.valueMinYear,t.summaryDataMgr.notifQuarterPlotData.filter.valueMaxYear],onChange:(e,a)=>{t.summaryDataMgr.setNotifQuarterFilterMinYear(a[0]),t.summaryDataMgr.setNotifQuarterFilterMaxYear(a[1])},valueLabelDisplay:"on",valueLabelFormat:e=>at(e),"aria-labelledby":"range-slider",color:"secondary",sx:{"& *":{fontSize:"9px"}}})),r.createElement(Xe,{xAxisLabel:"Notification quarter",xCategories:t.summaryDataMgr.notifQuarterChartCategories,maleData:t.summaryDataMgr.notifQuarterPlotData.chartData[0].data,femaleData:t.summaryDataMgr.notifQuarterPlotData.chartData[1].data}))))}));var nt=a(2706),lt=a(3487),it=a(2234),st=a(8353),ot=a(9865),mt=a(8279);const ct=(e,t=2)=>{if(x(e))return"";if(isNaN(e))return e;const a=Math.pow(10,t),r=Math.round((e+Number.EPSILON)*a)/a;return Number(r).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:t})},ut=(e,t=2)=>`${ct(100*e,t)}%`;Ve.D([$e.N,Qe.N,Je.N,Ke.N,st.N,ot.N,mt.N,We.N,it.N,qe.N]);const dt=e=>{const{xCategories:t,data1:a,data2:n,data3:l,options:i}=e,s={textStyle:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'},grid:[{left:5,width:"30%",height:"347px",containLabel:!0,tooltip:{formatter:e=>`${e.marker} ${e.name}: ${ut(e.value,2)}`}},{left:"center",width:"30%",height:"347px",containLabel:!0,tooltip:{formatter:e=>`${e.marker} ${e.name}: ${e.value[2]?"Present":"Missing"}`}},{right:15,width:"30%",height:"300px",containLabel:!0,tooltip:{formatter:e=>`${e.marker} Combination ${e.name}: ${ut(e.value,2)}`}}],xAxis:[{gridIndex:0,type:"category",data:t,axisLabel:{rotate:45},axisTick:{show:!1},axisLine:{show:!1}},{gridIndex:1,type:"category",data:t,splitArea:{show:!0},axisLabel:{rotate:45},axisTick:{show:!1},axisLine:{show:!1}},{gridIndex:2,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:e=>ut(e,0)}}],yAxis:[{id:"test",gridIndex:0,name:"Relative frequency of missing data",nameTextStyle:{align:"left"},nameLocation:"end",axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:e=>ut(e,0)}},{gridIndex:1,type:"category",name:"Missing data pattern",nameTextStyle:{align:"left"},nameLocation:"end",axisLabel:{show:!1},axisLine:{show:!1},axisTick:{show:!1}},{gridIndex:2,type:"category",axisTick:{show:!1},axisLine:{show:!1}},{gridIndex:2,position:"right",type:"category",data:l[2],axisTick:{show:!1},axisLine:{show:!1}}],visualMap:{type:"piecewise",seriesIndex:1,min:0,max:1,pieces:[{min:0,max:.9999999,color:"#ddd",label:"Missing"},{min:.9999999,color:"#69b023",label:"Present"}],show:!1},series:[{type:"bar",barCategoryGap:1,color:"#cccccc",data:a,xAxisIndex:0,yAxisIndex:0,visualMap:!1},{type:"heatmap",data:n,xAxisIndex:1,yAxisIndex:1,itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{itemStyle:{borderColor:"#fff",borderWidth:1}}},{name:"Present",type:"bar",data:l[0],xAxisIndex:2,yAxisIndex:2,barCategoryGap:1,color:"#69b023",stack:!0},{name:"Missing",type:"bar",data:l[1],xAxisIndex:2,yAxisIndex:2,barCategoryGap:1,color:"#ccc",stack:!0}],tooltip:{trigger:"item"},toolbox:{show:!0,feature:{dataZoom:{yAxisIndex:"none"},saveAsImage:{pixelRatio:2,name:"MissingnessPattern",title:"Save"}}},legend:{}},o=Object.assign({},s,i);return r.createElement(Ge.Z,{echarts:ze,option:o,style:{height:"410px",width:"100%"},notMerge:!0,lazyUpdate:!0,opts:{}})};var gt=a(2154),pt=a(5138);Ve.D([$e.N,Qe.N,Je.N,pt.N,Ke.N,gt.N,qe.N]);const ht=(0,l.Pi)((e=>{const{yLabelName:t,xCategories:a,data:n,options:l}=e,i={textStyle:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'},grid:{top:40,right:15,bottom:40,left:60},xAxis:{type:"category",name:"Diagnosis year",data:a,nameLocation:"center",nameTextStyle:{padding:[10,0,0,0]},boundaryGap:!1},yAxis:{type:"value",name:t,nameLocation:"center",nameGap:45,axisLabel:{formatter:e=>ut(e,0)}},series:[{name:n[0].name,type:"line",data:n[0].data},{name:n[1].name,type:"line",data:n[1].data},{name:n[2].name,type:"line",data:n[2].data},{name:n[3].name,type:"line",data:n[3].data}],tooltip:{trigger:"axis",formatter:e=>`\n Year: ${e[0].axisValue}
\n ${e.map((e=>`${e.marker} ${e.seriesName}: ${ut(e.value,2)}`)).join("
")}\n `},toolbox:{show:!0,feature:{dataZoom:{},restore:{},saveAsImage:{pixelRatio:2,name:"MissingnessDistribution",title:"Save"}}},legend:{}},s=Object.assign({},i,l);return r.createElement(Ge.Z,{echarts:ze,option:s,notMerge:!0,lazyUpdate:!0,opts:{}})})),Et=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Missing data summary: key variables")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Percentages of cases for which the information was not available (missing) for one or more of the key variables: CD4 count, transmission category, migrant status or age."),r.createElement(Ee.Z,{component:"fieldset"},r.createElement(lt.Z,{name:"missDataSelection",value:t.summaryDataMgr.missPlotSelection,onChange:e=>t.summaryDataMgr.setMissPlotSelection(e.target.value)},r.createElement(Ue.Z,{value:"all",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"All"}),r.createElement(Ue.Z,{value:"female",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Female"}),r.createElement(Ue.Z,{value:"male",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Male"})))),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(O.ZP,{container:!0},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(dt,{xCategories:t.summaryDataMgr.missPlotData.plot1.chartCategories,data1:t.summaryDataMgr.missPlot1Series,data2:t.summaryDataMgr.missPlot2Series,data3:t.summaryDataMgr.missPlot3Series})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(ht,{yLabelName:"Proportion of missing values",xCategories:t.summaryDataMgr.missPlot4Categories,data:t.summaryDataMgr.missPlot4Series}))))))}));var Mt=a(7481);Ve.D([$e.N,Qe.N,Je.N,pt.N,Ke.N,Mt.N,gt.N,qe.N]);const St=(0,l.Pi)((e=>{const{yLabelName:t,data:a,q95:n}=e,l={textStyle:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'},grid:{top:40,right:10,bottom:40,left:60},xAxis:{type:"value",name:"Notification time in quarters of the year",nameLocation:"center",nameTextStyle:{padding:[10,0,0,0]},boundaryGap:!1},yAxis:{type:"value",name:t,nameLocation:"center",nameGap:45},series:[{name:a[0].name,type:"line",data:a[0].data,showSymbol:!1,areaStyle:{opacity:.4},color:"#69b023",markLine:{data:[[{name:`95% of cases reported by ${n} quarters`,xAxis:n,y:40},{xAxis:n,y:260}]],lineStyle:{color:"#bedfe1"},label:{position:"start",distance:10,formatter:"{a|{b}}",rich:{a:{color:"#000",backgroundColor:"#bedfe1",padding:5,borderRadius:5}}}}}],tooltip:{trigger:"axis",formatter:e=>`\n ${e[0].marker} Quarter ${e[0].axisValueLabel}: ${ct(e[0].value[1],6)}\n `},toolbox:{show:!0,feature:{dataZoom:{},restore:{},saveAsImage:{pixelRatio:2,name:"ReportingDelays",title:"Save"}}}};return r.createElement(Ge.Z,{echarts:ze,option:l,notMerge:!0,lazyUpdate:!0,opts:{}})})),yt=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Reporting delays summary")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Average reporting delay for cases notified within a quarter and the upper bound for typical average delay values. Quarters when the average delay exceeds the upper bound may indicate cleaning events in surveillance."),r.createElement(Ee.Z,{component:"fieldset"},r.createElement(lt.Z,{name:"repDelDataSelection",value:t.summaryDataMgr.repDelPlotSelection,onChange:e=>t.summaryDataMgr.setRepDelPlotSelection(e.target.value)},r.createElement(Ue.Z,{value:"all",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"All"}),r.createElement(Ue.Z,{value:"female",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Female"}),r.createElement(Ue.Z,{value:"male",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Male"})))),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(St,{yLabelName:"Proportion of reported with delay",data:t.summaryDataMgr.repDelPlot.series,q95:t.summaryDataMgr.repDelPlot.q95}))))})),Dt=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.uiStateMgr.caseBasedAdjustmentsStageEnabled,onClick:()=>t.uiStateMgr.setActiveStepId(3)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Select case-based data for summary")),r.createElement(et,e),r.createElement(rt,e),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"body1"},"Number of records in the selection: ",t.summaryDataMgr.selectedCount," (out of ",t.summaryDataMgr.totalCount,", ",ut(t.summaryDataMgr.selectedCount/t.summaryDataMgr.totalCount),")")),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(H.Z,{light:!0,sx:{margin:"30px 0px"}})),r.createElement(Et,e),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(H.Z,{light:!0,sx:{margin:"30px 0px"}})),r.createElement(yt,e)))})),bt=()=>r.createElement(r.Fragment,null,r.createElement(p.Z,{variant:"overline"},"No parameters"),r.createElement(p.Z,null,"No Multiple Imputations adjustment selected"));var ft=a(7604);const Pt=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(p.Z,{variant:"overline"},"Joint Modelling - JOMO parameters"),r.createElement("form",{noValidate:!0,autoComplete:"off"},r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Number of imputations",helperText:"Type the number of data sets to input",type:"number",value:t.adjustMgr.miJomoSettings.nimp,onChange:e=>t.adjustMgr.setMIJomoNimp(e.target.value),onBlur:e=>t.adjustMgr.setMIJomoNimp(Math.min(Math.max(e.target.value,2),50)),fullWidth:!0,InputProps:{inputProps:{min:2,max:50}},sx:{marginBottom:"20px"}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Number of burn-in iterations",helperText:"Type the number of inital iterations to skip before imputing",type:"number",value:t.adjustMgr.miJomoSettings.nburn,onChange:e=>t.adjustMgr.setMIJomoNburn(e.target.value),onBlur:e=>t.adjustMgr.setMIJomoNburn(Math.min(Math.max(e.target.value,100),1e4)),fullWidth:!0,InputProps:{inputProps:{min:100,max:1e4}},sx:{marginBottom:"20px"}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Number of iterations between two successive imputations",type:"number",value:t.adjustMgr.miJomoSettings.nbetween,onChange:e=>t.adjustMgr.setMIJomoNbetween(e.target.value),onBlur:e=>t.adjustMgr.setMIJomoNbetween(Math.min(Math.max(e.target.value,100),1e4)),fullWidth:!0,InputProps:{inputProps:{min:100,max:1e4}},sx:{marginBottom:"20px"}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(p.Z,{id:"discrete-slider",gutterBottom:!0},"Number of degrees of freedom for spline of diagnosis calendar year"),r.createElement(ke.ZP,{min:3,max:5,value:t.adjustMgr.miJomoSettings.nsdf,onChange:(e,a)=>t.adjustMgr.setMIJomoNsdf(a),marks:[{value:3,label:3},{value:4,label:4},{value:5,label:5}]})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(ft.Z,{row:!0},r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.miJomoSettings.imputeRD,onChange:(e,a)=>t.adjustMgr.setMIJomoImputeRD(a),name:"check",color:"primary"}),label:"Impute reporting delays inputs"}))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(R.Z,{color:"primary",onClick:e=>t.adjustMgr.restoreMIDefaults("jomo")},"Restore defaults")))))})),xt=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(p.Z,{variant:"overline"},"Chained Equations - MICE parameters"),r.createElement("form",{noValidate:!0,autoComplete:"off"},r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Number of imputations",helperText:"Type the number of data sets to input",type:"number",value:t.adjustMgr.miMiceSettings.nimp,onChange:e=>t.adjustMgr.setMIMiceNimp(e.target.value),onBlur:e=>t.adjustMgr.setMIMiceNimp(Math.min(Math.max(e.target.value,2),50)),fullWidth:!0,InputProps:{inputProps:{min:2,max:50}},sx:{marginBottom:"20px"}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Number of mice iterations",helperText:"Type the number of mice iterations",type:"number",value:t.adjustMgr.miMiceSettings.nit,onChange:e=>t.adjustMgr.setMIMiceNit(e.target.value),onBlur:e=>t.adjustMgr.setMIMiceNit(Math.min(Math.max(e.target.value,2),50)),fullWidth:!0,InputProps:{inputProps:{min:2,max:50}},sx:{marginBottom:"20px"}})),r.createElement(O.ZP,{item:!0,xs:4}),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(p.Z,{id:"discrete-slider",gutterBottom:!0},"Number of degrees of freedom for spline of diagnosis calendar year"),r.createElement(ke.ZP,{min:3,max:5,value:t.adjustMgr.miMiceSettings.nsdf,onChange:(e,a)=>t.adjustMgr.setMIMiceNsdf(a),marks:[{value:3,label:3},{value:4,label:4},{value:5,label:5}]})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(ft.Z,{row:!0},r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.miMiceSettings.imputeRD,onChange:(e,a)=>t.adjustMgr.setMIMiceImputeRD(a),name:"check",color:"primary"}),label:"Impute reporting delays inputs"}))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(R.Z,{color:"primary",onClick:e=>t.adjustMgr.restoreMIDefaults("mice")},"Restore defaults")))))})),Ct=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(O.ZP,{item:!0,xs:2},"Multiple Imputations type:",r.createElement("br",null),r.createElement(Ee.Z,{component:"fieldset"},r.createElement(lt.Z,{name:"miAdjustType",value:t.adjustMgr.miAdjustType,onChange:e=>t.adjustMgr.setMIAdjustType(e.target.value)},r.createElement(Ue.Z,{value:"none",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"None"}),r.createElement(Ue.Z,{value:"jomo",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Joint Modelling - JOMO"}),r.createElement(Ue.Z,{value:"mice",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Chained Equations - MICE"})))),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10,minHeight:283}},"none"===t.adjustMgr.miAdjustType&&r.createElement(bt,null),"jomo"===t.adjustMgr.miAdjustType&&r.createElement(Pt,e),"mice"===t.adjustMgr.miAdjustType&&r.createElement(xt,e))))})),Zt=()=>r.createElement(r.Fragment,null,r.createElement(p.Z,{variant:"overline"},"No parameters"),r.createElement(p.Z,null,"No Reporting Delays adjustment selected")),At=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(p.Z,{variant:"overline"},"Reporting Delays - without trend parameters"),r.createElement("form",{noValidate:!0,autoComplete:"off"},r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Diagnosis start year",helperText:"Enter the start year for diagnosis",type:"number",value:t.adjustMgr.rdWithoutTrendSettings.startYear,onChange:e=>t.adjustMgr.setRDWithoutStartYear(e.target.value),onBlur:e=>t.adjustMgr.setRDWithoutStartYear(Math.min(Math.max(e.target.value,1975),2030)),fullWidth:!0,InputProps:{inputProps:{min:1975,max:2030}},style:{marginBottom:20}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Notification end year",helperText:"Enter the end year for notification",type:"number",value:t.adjustMgr.rdWithoutTrendSettings.endYear,onChange:e=>t.adjustMgr.setRDWithoutEndYear(e.target.value),onBlur:e=>t.adjustMgr.setRDWithoutEndYear(Math.min(Math.max(e.target.value,1975),2030)),fullWidth:!0,InputProps:{inputProps:{min:1975,max:2030}},style:{marginBottom:20}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Notification end quarter (integer between 1 and 4)",type:"number",value:t.adjustMgr.rdWithoutTrendSettings.endQrt,onChange:e=>t.adjustMgr.setRDWithoutEndQrt(e.target.value),onBlur:e=>t.adjustMgr.setRDWithoutEndQrt(Math.min(Math.max(e.target.value,1),4)),fullWidth:!0,InputProps:{inputProps:{min:1,max:4}},style:{marginBottom:20}})),r.createElement(O.ZP,{item:!0,xs:4},"Stratify by:",r.createElement(ft.Z,{row:!0},r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.rdWithoutTrendSettings.stratGender,onChange:(e,a)=>t.adjustMgr.setRDWithoutStratGender(a),name:"check",color:"primary"}),label:"Gender"}),r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.rdWithoutTrendSettings.stratTrans,onChange:(e,a)=>t.adjustMgr.setRDWithoutStratTrans(a),name:"check",color:"primary"}),label:"Transmission"}),r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.rdWithoutTrendSettings.stratMigr,onChange:(e,a)=>t.adjustMgr.setRDWithoutStratMigr(a),name:"check",color:"primary"}),label:"Migration"}))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(R.Z,{color:"primary",onClick:e=>t.adjustMgr.restoreRDDefaults("withoutTrend")},"Restore defaults")))))})),vt=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(p.Z,{variant:"overline"},"Reporting Delays - with trend parameters"),r.createElement("form",{noValidate:!0,autoComplete:"off"},r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Diagnosis start year",helperText:"Enter the start year for diagnosis",type:"number",value:t.adjustMgr.rdWithTrendSettings.startYear,onChange:e=>t.adjustMgr.setRDWithStartYear(e.target.value),onBlur:e=>t.adjustMgr.setRDWithStartYear(Math.min(Math.max(e.target.value,1975),2030)),fullWidth:!0,InputProps:{inputProps:{min:1975,max:2030}},style:{marginBottom:20}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Notification end year",helperText:"Enter the end year for notification",type:"number",value:t.adjustMgr.rdWithTrendSettings.endYear,onChange:e=>t.adjustMgr.setRDWithEndYear(e.target.value),onBlur:e=>t.adjustMgr.setRDWithEndYear(Math.min(Math.max(e.target.value,1975),2030)),fullWidth:!0,InputProps:{inputProps:{min:1975,max:2030}},style:{marginBottom:20}})),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(I.Z,{label:"Notification end quarter (integer between 1 and 4)",type:"number",value:t.adjustMgr.rdWithTrendSettings.endQrt,onChange:e=>t.adjustMgr.setRDWithEndQrt(e.target.value),onBlur:e=>t.adjustMgr.setRDWithEndQrt(Math.min(Math.max(e.target.value,1),4)),fullWidth:!0,InputProps:{inputProps:{min:1,max:4}},style:{marginBottom:20}})),r.createElement(O.ZP,{item:!0,xs:4},"Stratify by:",r.createElement(ft.Z,{row:!0},r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.rdWithTrendSettings.stratGender,onChange:(e,a)=>t.adjustMgr.setRDWithStratGender(a),name:"check",color:"primary"}),label:"Gender"}),r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.rdWithTrendSettings.stratTrans,onChange:(e,a)=>t.adjustMgr.setRDWithStratTrans(a),name:"check",color:"primary"}),label:"Transmission"}),r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.adjustMgr.rdWithTrendSettings.stratMigr,onChange:(e,a)=>t.adjustMgr.setRDWithStratMigr(a),name:"check",color:"primary"}),label:"Migration"}))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(R.Z,{color:"primary",onClick:e=>t.adjustMgr.restoreRDDefaults("withTrend")},"Restore defaults")))))})),It=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(r.Fragment,null,r.createElement(O.ZP,{item:!0,xs:2},"Reporting Delays type:",r.createElement("br",null),r.createElement(Ee.Z,{component:"fieldset"},r.createElement(lt.Z,{name:"rdAdjustType",value:t.adjustMgr.rdAdjustType,onChange:e=>t.adjustMgr.setRDAdjustType(e.target.value)},r.createElement(Ue.Z,{value:"none",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"None"}),r.createElement(Ue.Z,{value:"withoutTrend",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Without trend"}),r.createElement(Ue.Z,{value:"withTrend",control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"With trend"})))),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10,minHeight:263}},"none"===t.adjustMgr.rdAdjustType&&r.createElement(Zt,null),"withoutTrend"===t.adjustMgr.rdAdjustType&&r.createElement(At,e),"withTrend"===t.adjustMgr.rdAdjustType&&r.createElement(vt,e))))})),Rt=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.adjustMgr.adjustmentSelected,onClick:e=>t.uiStateMgr.setActivePageId(3,1)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Case-based data adjustments parameters")),r.createElement(Ct,e),r.createElement(It,e)))}));var Tt=a(4476),Nt=a(6885),Ft=a(4563);const Ot=(0,l.Pi)((e=>{const{progress:t}=e;return x(t)|!t?null:r.createElement(T.Z,{color:"secondary",sx:{marginTop:"10px",marginBottom:"10px",height:"5px"}})})),wt=(0,l.Pi)((e=>{const{appMgr:t}=e,[a,n]=r.useState(0);return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.uiStateMgr.reportsPageEnabled,onClick:e=>t.uiStateMgr.setActivePageId(4)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Case-based data adjustments run")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(ae,{onClick:()=>t.adjustMgr.runAdjustments(),disabled:!t.adjustMgr.adjustmentSelected||t.adjustMgr.adjustmentsRunInProgress},r.createElement(Tt.Z,null)," Run adjustments"),r.createElement(R.Z,{onClick:()=>t.adjustMgr.cancelAdjustments(),color:"primary",style:{marginLeft:20},disabled:!t.adjustMgr.adjustmentsRunInProgress},"Cancel"),r.createElement(Ot,{progress:t.adjustMgr.adjustmentsRunProgress})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(Nt.Z,{value:a,onChange:(e,t)=>n(t),indicatorColor:"primary",textColor:"primary"},r.createElement(Ft.Z,{label:"Run log",disabled:x(t.adjustMgr.adjustmentsRunLog)}),r.createElement(Ft.Z,{label:"Diagnostics",disabled:x(t.adjustMgr.adjustmentsReport)})),0===a&&r.createElement(r.Fragment,null,r.createElement("pre",{dangerouslySetInnerHTML:{__html:t.adjustMgr.adjustmentsRunLog},style:{overflowX:"auto",fontSize:"0.75rem"}})),1===a&&r.createElement(r.Fragment,null,r.createElement("div",{dangerouslySetInnerHTML:{__html:t.adjustMgr.adjustmentsReport},style:{overflowX:"auto"}}))))))})),Yt=(0,l.Pi)((e=>{const{appMgr:t}=e,a=t.uiStateMgr.activeSubPageId;return r.createElement(r.Fragment,null,0===a&&r.createElement(Rt,e),1===a&&r.createElement(wt,e))}));var _t=a(3650);const Lt=e=>e&&"object"==typeof e,jt=(...e)=>be(!0,e.map(x))?e[0]:e.reduce(((e,t)=>(Object.keys(t).forEach((a=>{const r=e[a],n=t[a];fe(r)&&fe(n)?e[a]=r.concat(...n):Lt(r)&&Lt(n)?e[a]=jt(r,n):e[a]=n})),e)),{}),Bt=jt;Ve.D([$e.N,Qe.N,Je.N,Ke.N,ot.N,_t.N,it.N,qe.N]);const kt=e=>{const{data:t,options:a}=e;if(x(t))return r.createElement("div",null,"No plot data available");const n=18*t.chartCategoriesY.length+110,l={textStyle:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'},grid:{top:80,right:0,bottom:0,left:90},xAxis:{type:"category",name:t.titleX,nameLocation:"center",nameTextStyle:{fontWeight:"bold"},nameGap:35,data:t.chartCategoriesX,position:"top",axisLabel:{fontSize:11},axisTick:{show:!1},axisLine:{show:!1}},yAxis:{type:"category",name:"Year of Arrival",nameLocation:"center",nameGap:45,data:t.chartCategoriesY,inverse:!1,axisLabel:{fontSize:11},axisLine:{show:!1},axisTick:{show:!1}},visualMap:{type:"continuous",calculable:!0,orient:"horizontal",right:80,top:"top",inRange:{color:["#bedfe1","#69b023"]},padding:0,min:0,max:t.dataMax,align:"top",textStyle:{fontSize:11,color:"rgb(110, 112, 121)"}},series:[{type:"heatmap",data:t.seriesData,label:{show:!0,fontSize:10,formatter:e=>ct(e.data[2],0)},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{itemStyle:{borderColor:"#fff",borderWidth:1}}}],tooltip:{trigger:"item"},toolbox:{show:!0,feature:{dataZoom:{yAxisIndex:"none"},saveAsImage:{pixelRatio:2,name:"MissingnessPattern",title:"Save"}}},legend:{}},i=Bt(l,a);return r.createElement(Ge.Z,{echarts:ze,option:i,style:{height:`${n}px`,width:"100%"},notMerge:!0,lazyUpdate:!0,opts:{}})};function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(p.Z,Ut({variant:"caption",component:"div"},e));function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const o=l?ut:ct,m=e?{fontWeight:"bold",backgroundColor:"#f9f9f9"}:null;let c=!isNaN(t)&&""!==t,u="";x(t)?x(a)||x(n)||(u=`${o(a,i)} - ${o(n,i)}`,c=!0):u=o(t,i);const d=Bt({align:c?"right":"left"},s);return r.createElement(K.Z,Gt({},d,{sx:m}),u)})),zt=(0,l.Pi)((e=>{const{missingness:t}=e;let a=null;return a=x(t)||fe(t)&&0===t.length?r.createElement("div",null,"No table data available"):r.createElement(W.Z,{size:"small"},r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1,sx:{backgroundColor:"#bedfe1"}},r.createElement(K.Z,{align:"right"},"Priority"),r.createElement(K.Z,{align:"left",width:"700px"},"Missing variable"),r.createElement(K.Z,{align:"right"},"Number of excluded cases"))),r.createElement(J.Z,null,t.map(((e,t)=>r.createElement(q.Z,{key:t},r.createElement(Vt,{value:e.IsTotalRow?null:t+1,isTotal:e.IsTotalRow,align:"right"}),r.createElement(Vt,{value:e.Excluded,isTotal:e.IsTotalRow,align:"left"}),r.createElement(Vt,{value:e.Count,isTotal:e.IsTotalRow,align:"right"})))))),r.createElement(r.Fragment,null,r.createElement(Ht,null,"Table 1. Number of excluded cases"),a)}));var Wt=a(5649),$t=a(1008);const Qt=(0,l.Pi)((e=>{const{migrMgr:t}=e,a=(e,a)=>t.setYodRegion(a),n=x(t.yodDistr)?0:t.yodDistr.chartCategoriesX.length-1,l=Math.max(n-20+1,0);let i=null;return x(t.yodDistr)||(i=r.createElement(Wt.Z,{exclusive:!0,size:"small",color:"primary",value:t.yodRegion,onChange:a},r.createElement($t.Z,{value:"ALL"},"ALL"),r.createElement($t.Z,{value:"AFRICA"},"AFRICA"),r.createElement($t.Z,{value:"EUROPE-NORTH AMERICA"},"EUROPE-NORTH AMERICA"),r.createElement($t.Z,{value:"ASIA"},"ASIA"),r.createElement($t.Z,{value:"OTHER"},"OTHER"))),r.createElement(r.Fragment,null,r.createElement(Ht,null,"Figure 2. Average number of cases by the Year of Arrival and Year of Diagnosis"),i,r.createElement(kt,{data:t.yodDistr,options:{xAxis:{inverse:!0},title:{subtext:"Last 20 years selected by default",subtextStyle:{fontSize:11}},dataZoom:[{type:"slider",xAxisIndex:0,top:51,height:25,startValue:l,endValue:n,handleSize:"80%",showDetail:!1,borderColor:"transparent",fillerColor:"transparent"}]}}))})),Jt=({section:e,isTotal:t=!1,caption:a=""})=>{let n=[];return""!==a&&(n=[r.createElement(q.Z,{key:-1},r.createElement(Vt,{value:a,isTotal:!0,colSpan:7}))]),n=n.concat(e.map(((e,a)=>r.createElement(q.Z,{key:a},r.createElement(Vt,{value:e.Category,isTotal:t}),r.createElement(Vt,{value:e.Count,isTotal:t}),r.createElement(Vt,{value:e.Algorithm,isTotal:t,align:"right"}),r.createElement(Vt,{value:e.PriorProp,isTotal:t,isPerc:!0}),r.createElement(Vt,{lb:e.PriorPropLB,ub:e.PriorPropUB,isTotal:t,isPerc:!0}),r.createElement(Vt,{value:e.PostProp,isTotal:t,isPerc:!0}),r.createElement(Vt,{lb:e.PostPropLB,ub:e.PostPropUB,isTotal:t,isPerc:!0}))))),n},Kt=(0,l.Pi)((({migrMgr:e})=>{const t=e.tableDistr,a=t=>e.setTableRegion(t.target.value);let n=null;x(e.yodDistr)||(n=r.createElement(Wt.Z,{exclusive:!0,size:"small",color:"primary",value:e.tableRegion,onChange:a,sx:{marginBottom:"5px"}},r.createElement($t.Z,{value:"ALL"},"ALL"),r.createElement($t.Z,{value:"AFRICA"},"AFRICA"),r.createElement($t.Z,{value:"EUROPE-NORTH AMERICA"},"EUROPE-NORTH AMERICA"),r.createElement($t.Z,{value:"ASIA"},"ASIA"),r.createElement($t.Z,{value:"OTHER"},"OTHER")));let l=null;return l=x(t)?r.createElement(W.Z,{size:"small"},r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1,sx:{backgroundColor:"#bedfe1"}},r.createElement(K.Z,{width:"220px",rowSpan:2},"Category"),r.createElement(K.Z,{align:"right",rowSpan:2},"Count"),r.createElement(K.Z,{align:"right",rowSpan:2},"Algorithm"),r.createElement(K.Z,{align:"right",colSpan:2,sx:{textAlign:"center"}},"Infected prior to arrival"),r.createElement(K.Z,{align:"right",colSpan:2,sx:{textAlign:"center"}},"Infected post arrival")),r.createElement(q.Z,{hover:!1,sx:{backgroundColor:"#bedfe1"}},r.createElement(K.Z,{align:"right"},"Proportion"),r.createElement(K.Z,{align:"right"},"95% CI"),r.createElement(K.Z,{align:"right"},"Proportion"),r.createElement(K.Z,{align:"right"},"95% CI"))),r.createElement(J.Z,null,r.createElement(q.Z,null,r.createElement(Vt,{value:"Total",isTotal:!0}),r.createElement(Vt,{value:0,isTotal:!0}),r.createElement(Vt,{value:null,isTotal:!0}),r.createElement(Vt,{value:null,isTotal:!0}),r.createElement(Vt,{value:null,isTotal:!0}),r.createElement(Vt,{value:null,isTotal:!0})))):r.createElement(W.Z,{size:"small"},r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1,sx:{backgroundColor:"#bedfe1"}},r.createElement(K.Z,{width:"220px",rowSpan:2},"Category"),r.createElement(K.Z,{align:"right",rowSpan:2},"Count"),r.createElement(K.Z,{align:"right",rowSpan:2},"Algorithm"),r.createElement(K.Z,{align:"right",colSpan:2,sx:{textAlign:"center"}},"Infected prior to arrival"),r.createElement(K.Z,{align:"right",colSpan:2,sx:{textAlign:"center"}},"Infected post arrival")),r.createElement(q.Z,{hover:!1,sx:{backgroundColor:"#bedfe1"}},r.createElement(K.Z,{align:"right"},"Proportion"),r.createElement(K.Z,{align:"right"},"95% CI"),r.createElement(K.Z,{align:"right"},"Proportion"),r.createElement(K.Z,{align:"right"},"95% CI"))),r.createElement(J.Z,null,r.createElement(Jt,{section:t.Total,isTotal:!0}),r.createElement(Jt,{section:t.Sex,caption:"Sex:"}),r.createElement(Jt,{section:t.AgeGroup,caption:"Age Group:"}),r.createElement(Jt,{section:t.Transmission,caption:"Transmission:"}),r.createElement(Jt,{section:t.GroupedRegionOfOrigin,caption:"Grouped Region Of Origin:"}))),r.createElement(r.Fragment,null,r.createElement(Ht,null,"Table 2. Proportion of migrants infected post arrival by sex, age group and transmission category"),n,l)}));var qt=a(1780),Xt=a(8553);Ve.D([$e.N,Qe.N,Je.N,Ke.N,gt.N,qt.N,Xt.N]);const ea=(0,l.Pi)((({title:e,xAxisTitle:t="Year",yAxisTitle:a="Proportion",data:n,legendOptions:l={orient:"vertical",right:0,top:"center",selector:!0},color:i=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],format:s="number",showConfBounds:o=!0})=>{const m=e=>{let t=null;return x(e)||(t=e.map((e=>isFinite(e[1])?o?(isFinite(e[2])&&!x(e[2])||(e[2]=e[1]),isFinite(e[3])&&!x(e[3])||(e[3]=e[1]),e):[e[0],e[1],null,null,e[4],null]:[e[0],null,null,null,null,null]))),t},c=(e,t)=>{if(e.context.rendered)return;const a=t.visual("color"),r=e.dataIndexInside,n=t.value(0,r),l=t.value(1,r),i=t.coord([n,l]),s=t.value(0,r+1),o=t.value(1,r+1),m=t.coord([s,o]),c={x1:i[0],y1:i[1],x2:m[0],y2:m[1]},u=t.coord([n,t.value(2,r)]),d=t.coord([n,t.value(3,r)]),g=t.coord([s,t.value(3,r+1)]),p=t.coord([s,t.value(2,r+1)]),h=[u,d,g,p];let E=[];return u!==d&&p!==g&&E.push({type:"polygon",shape:{points:h},style:{fill:a,opacity:.3}}),E.push({type:"line",shape:c,style:{stroke:a,fill:"none",lineDash:t.value(4,r)&&t.value(4,r+1)?null:[2]}}),E.push({type:"circle",shape:{cx:i[0],cy:i[1],r:2},style:{fill:a}}),{type:"group",children:E}};let u=[],d=[],g={},p=[];n.forEach(((e,t)=>((e,t)=>{x(e)||(d.push({name:e.name,type:"custom",renderItem:c,encode:{x:"x",y:["y","lb","ub"],tooltip:["x","y","lb","ub"]},dimensions:["x","y","lb","ub","used"],datasetIndex:t}),u.push({name:e.name}),g[e.name]=!x(e.selected)&&e.selected,p.push({source:m(e.values)}))})(e,t)));const h="number"===s?ct:ut,E={textStyle:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'},grid:{top:40,right:"horizontal"===l.orient?30:240,bottom:40,left:65},title:{text:e},xAxis:{type:"category",nameLocation:"center",name:t,nameTextStyle:{padding:[10,0,0,0]},axisTick:{alignWithLabel:!0},boundaryGap:!1,axisPointer:{type:"shadow",snap:!0}},yAxis:{type:"value",name:a,nameLocation:"center",nameGap:50,axisLabel:{formatter:e=>h(e,0)}},series:d,color:i,dataset:p,tooltip:{trigger:"axis",formatter:e=>{const t=e.map((e=>{let t="";if(!x(e.value[2])&&!x(e.value[3])){let a="";x(e.value[5])||(a=`, Count: ${ct(e.value[5])}`),t=` (${h(e.value[2],0)} - ${h(e.value[3],0)})${a}`}return`${e.marker} ${e.seriesName}: ${h(e.value[1],0)}${t}`})).join("
");return`\n Year: ${e[0].axisValue}
\n ${t}\n `},textStyle:{fontSize:12}},toolbox:{show:!0,feature:{dataZoom:{yAxisIndex:"none"},saveAsImage:{pixelRatio:2,title:"Save"}}},legend:{data:u,selected:g,orient:"vertical",right:0,top:"center",selector:!0,textStyle:{fontSize:11},...l}};return r.createElement(Ge.Z,{echarts:ze,option:E,style:{height:"300px",width:"100%"},notMerge:!0,lazyUpdate:!0,opts:{}})})),ta=(0,l.Pi)((({migrMgr:e})=>{const{arrivalPlotData:t,diagnosisPlotData:a}=e;let n=null;n=x(t)?r.createElement("div",null,"No plot data available"):r.createElement(ea,{xAxisTitle:"Year of Arrival",data:t,format:"percentage",showConfBounds:e.showConfBounds});let l=null;return l=x(a)?r.createElement("div",null,"No plot data available"):r.createElement(ea,{xAxisTitle:"Year of Diagnosis",data:a,format:"percentage",showConfBounds:e.showConfBounds}),r.createElement(r.Fragment,null,r.createElement(Ue.Z,{control:r.createElement(He.Z,{checked:e.showConfBounds,onChange:t=>e.setShowConfBounds(t.target.checked),color:"primary",size:"small"}),label:"Show confidence bounds in charts below",sx:{marginTop:1,marginBottom:1}}),r.createElement(Ht,null,"Figure 3. Proportion of migrants infected post arrival by region of origin and year of arrival"),n,r.createElement(Ht,{sx:{marginTop:1}},"Figure 4. Proportion of migrants infected post arrival by region of origin and year of diagnosis"),l)})),aa=(0,l.Pi)((({migrMgr:e})=>{const t=e.confBounds,a=(t,a)=>e.setPropTableStrat(a);let n=null;x(t)||(n=r.createElement(Wt.Z,{size:"small",color:"primary",value:e.propTableStrat,onChange:a,sx:{marginBottom:"5px"}},r.createElement($t.Z,{value:"Gender"},"Sex"),r.createElement($t.Z,{value:"AgeGroup"},"Age Group"),r.createElement($t.Z,{value:"Transmission"},"Transmission"),r.createElement($t.Z,{value:"GroupedRegionOfOrigin"},"Grouped Region Of Origin")));const l=!1;let i=null;return i=x(t)?r.createElement("div",null,"No table data available"):r.createElement(W.Z,{size:"small"},r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1,sx:{backgroundColor:"#bedfe1"}},r.createElement(K.Z,{width:"220px",rowSpan:2},"Category"),r.createElement(K.Z,{align:"right",rowSpan:2},"Count"),r.createElement(K.Z,{align:"right",rowSpan:2},"Algorithm"),r.createElement(K.Z,{align:"right",colSpan:2,sx:{textAlign:"center"}},"Infected prior to arrival"),r.createElement(K.Z,{align:"right",colSpan:2,sx:{textAlign:"center"}},"Infected post arrival")),r.createElement(q.Z,{hover:!1,sx:{backgroundColor:"#bedfe1"}},r.createElement(K.Z,{align:"right"},"Proportion"),r.createElement(K.Z,{align:"right"},"95% CI"),r.createElement(K.Z,{align:"right"},"Proportion"),r.createElement(K.Z,{align:"right"},"95% CI"))),r.createElement(J.Z,null,t.map(((e,t)=>r.createElement(q.Z,{key:t},r.createElement(Vt,{value:e.Category,isTotal:l}),r.createElement(Vt,{value:e.Count,isTotal:l}),r.createElement(Vt,{value:e.Algorithm,isTotal:l,align:"right"}),r.createElement(Vt,{value:e.PriorProp,isTotal:l,isPerc:!0}),r.createElement(Vt,{lb:e.PriorPropLB,ub:e.PriorPropUB,isTotal:l,isPerc:!0}),r.createElement(Vt,{value:e.PostProp,isTotal:l,isPerc:!0}),r.createElement(Vt,{lb:e.PostPropLB,ub:e.PostPropUB,isTotal:l,isPerc:!0})))))),r.createElement(r.Fragment,null,n,i)})),ra=(0,l.Pi)((e=>{const{appMgr:t}=e,[a,n]=r.useState(0);return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!0,onClick:e=>t.uiStateMgr.setActivePageId(4)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Migrant modelling run")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(ae,{onClick:()=>t.migrMgr.run(),disabled:t.migrMgr.runInProgress},r.createElement(Tt.Z,null)," Run migration"),r.createElement(R.Z,{onClick:()=>t.migrMgr.cancel(),color:"primary",style:{marginLeft:20},disabled:!t.migrMgr.runInProgress},"Cancel"),r.createElement(Ot,{progress:t.migrMgr.runProgress})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(Nt.Z,{value:a,onChange:(e,t)=>n(t),indicatorColor:"primary",textColor:"primary"},r.createElement(Ft.Z,{label:"Run log"}),r.createElement(Ft.Z,{label:"Diagnostics",disabled:x(t.migrMgr.inputStats)})),0===a&&r.createElement(r.Fragment,null,r.createElement("pre",{dangerouslySetInnerHTML:{__html:t.migrMgr.runLog},style:{overflowX:"auto",fontSize:"0.75rem"}})),1===a&&r.createElement("div",{style:{maxWidth:1e3}},r.createElement("h3",null,"1. Overview"),r.createElement("p",null,"Estimates of the time of infection require the following variables: Sex, transmission category, Region of Origin, AIDS diagnosis. CD4 count and VL are used if available. In addition, the time of infection must be compared to the arrival time and the estimation based on the cases for which both Year of Arrival and Year of Diagnosis are known."),r.createElement("p",null,"It is possible to run the migration estimation on the original dataset, but it is recommended to use the imputation first. If multiple imputations adjustment was run before the migrant module, then all results are computed as average over imputations and presented rounded to the nearest integer."),r.createElement("p",null,"The estimation is performed for adults only."),r.createElement("h3",null,"2. Excluded data overview"),r.createElement(zt,{missingness:t.migrMgr.missingness}),r.createElement("h3",null,"3. Description of data used in estimation"),r.createElement(Ht,null,"Figure 1. Average number of cases by Year of Arrival and Region For Migration Module"),r.createElement(kt,{data:t.migrMgr.regionDistr}),r.createElement("br",null),r.createElement(Qt,{migrMgr:t.migrMgr}),r.createElement("h3",null,"4. Estimates of the proportion of the migrants infected prior and post arrival"),r.createElement(Kt,{migrMgr:t.migrMgr}),r.createElement("br",null),r.createElement(aa,{migrMgr:t.migrMgr}),r.createElement(ta,{migrMgr:t.migrMgr}))))))})),na=(e,t)=>((e,t,a)=>{a/=100;const r=t*Math.min(a,1-a)/100,n=t=>{const n=(t+e/30)%12,l=a-r*Math.max(Math.min(n-3,9-n,1),-1);return Math.round(255*l).toString(16).padStart(2,"0")};return`#${n(0)}${n(8)}${n(4)}`})(t,40+60*e,95-40*e),la=(0,l.Pi)((e=>{const{i:t,isSelected:a,onSelectClick:n,population:l,appMgr:i}=e;return r.createElement(q.Z,{hover:!0,role:"checkbox"},r.createElement(K.Z,{padding:"checkbox",sx:{verticalAlign:"top"}},r.createElement(pe.Z,{inputProps:{"aria-labelledby":`labelId${t}`},color:"primary",checked:a,onClick:n})),r.createElement(K.Z,{sx:{padding:"4px 16px 0px 16px",maxWidth:"300px",verticalAlign:"top"}},r.createElement(ge.Z,{multiple:!0,renderValue:e=>r.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},e.map((e=>r.createElement(Se.Z,{key:e,label:e,sx:{margin:"2px"},color:"secondary"})))),value:l.variables,style:{width:"100%",fontSize:"0.75rem"},onChange:e=>{i.popMgr.setPopulationVariables(t,e.target.value)}},i.popMgr.availableVariables.map(((e,t)=>r.createElement(he.Z,{key:t,value:e.Name,dense:!0},`${e.Name} (${e.Code})`))))),r.createElement(K.Z,null,r.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},l.strata.map((e=>r.createElement(Se.Z,{key:e.Combination,label:`${e.Combination} (${ut(e.Perc)})`,style:{margin:2,backgroundColor:`${na(e.Perc,214)}`}}))))))})),ia=(0,l.Pi)((e=>{const{appMgr:t}=e,[a,n]=r.useState([]),l=t.popMgr.populationsJS,i=e=>t=>{const r=a.indexOf(e);let l=[];-1===r?l=l.concat(a,e):0===r?l=l.concat(a.slice(1)):r===a.length-1?l=l.concat(a.slice(0,-1)):r>0&&(l=l.concat(a.slice(0,r),a.slice(r+1))),n(l)},s=l.length,o=a.length,m=e=>-1!==a.indexOf(e);return r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(p.Z,{variant:"overline"},"Case-base data populations"),r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,{padding:"checkbox"},r.createElement(pe.Z,{inputProps:{"aria-label":"select all"},color:"primary",onClick:e=>{if(e.target.checked){const e=l.map(((e,t)=>t));n(e)}else n([])},checked:s>0&&o===s})),r.createElement(K.Z,{width:"50%"},"Selected variables"),r.createElement(K.Z,{width:"50%"},"Defined populations"))),r.createElement(J.Z,null,l.map(((e,a)=>r.createElement(la,{key:a,i:a,population:e,appMgr:t,isSelected:m(a),onSelectClick:i(a)}))))),r.createElement(Ze,{selectedCount:o,onAddClick:()=>{t.popMgr.addEmptyPopulation()},onDeleteClick:()=>{t.popMgr.removePopulations(a),n([])},addDisabled:!t.uiStateMgr.caseBasedOrigGroupingProvisioned}))})),sa=(0,l.Pi)((e=>{const{isSelected:t,onSelectClick:a,el:n,appMgr:l}=e,i=(e,t)=>{t&&l.popCombMgr.setCombinationName(n.id,e)},s=e=>{l.popCombMgr.setCombinationCasePopulations(n.id,e.target.value)},o=e=>{l.popCombMgr.setCombinationAggrPopulations(n.id,e.target.value)},m=e=>{let t="";return""===e&&(t="Please, specify a unique name"),t};let c=null,u=null,d=null,g=null;return n.id===l.popCombMgr.combinationAllId?(u=n.name,d="All data available",g="All data available after selection above"):(c=r.createElement(pe.Z,{inputProps:{"aria-labelledby":`labelId${n.id}`},color:"primary",checked:t,onClick:a}),u=r.createElement(De,{value:n.name,validationFunc:m,onChange:i,helperText:"",sx:{width:"100%","& .MuiInputBase-root":{fontSize:"0.75rem"}}}),d=r.createElement(ge.Z,{multiple:!0,renderValue:e=>r.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},e.map((e=>r.createElement(Se.Z,{key:e,label:e,sx:{margin:"2px"},color:"secondary"})))),value:n.casePopulations,disabled:0===l.popMgr.definedPopulations.length,onChange:s,sx:{width:"100%",fontSize:"0.75rem","&:before":{borderBottom:"0px solid black"}}},l.popMgr.definedPopulations.map(((e,t)=>r.createElement(he.Z,{key:t,value:e,dense:!0},e)))),g=r.createElement(ge.Z,{multiple:!0,renderValue:e=>r.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},e.map((e=>r.createElement(Se.Z,{key:e,label:e,sx:{margin:"2px"},color:"secondary"})))),value:n.aggrPopulations,onChange:o,sx:{width:"100%",fontSize:"0.75rem","&:before":{borderBottom:"0px solid black"}}},l.aggrDataMgr.populationNames.map(((e,t)=>r.createElement(he.Z,{key:t,value:e,dense:!0},e))))),r.createElement(q.Z,{hover:!0,role:"checkbox"},r.createElement(K.Z,{padding:"checkbox",sx:{verticalAlign:"top"}},c),r.createElement(K.Z,{id:`labelId${n.id}`,scope:"row",sx:{padding:"4px 4px 6px 0px",verticalAlign:"top"}},u),r.createElement(K.Z,{sx:{padding:"4px 4px 0px 16px",verticalAlign:"top"}},d),r.createElement(K.Z,{sx:{padding:"4px 4px 0px 16px",verticalAlign:"top"}},g))})),oa=(0,l.Pi)((e=>{const{appMgr:t}=e,[a,n]=r.useState([]),l=t.popCombMgr.combinationsArray,i=e=>()=>{let t=[];t=-1===a.indexOf(e)?t.concat(a,e):Ae(a,e),n(t)},s=l.length-1,o=a.length;return r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(p.Z,{variant:"overline"},"Populations combinations"),r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,{padding:"checkbox"},r.createElement(pe.Z,{inputProps:{"aria-label":"select all"},color:"primary",onClick:e=>{if(e.target.checked){const e=Ae(l.map((e=>e.id)),t.popCombMgr.combinationAllId);n(e)}else n([])},checked:s>0&&o===s})),r.createElement(K.Z,{width:"30%",padding:"none"},"Combination name"),r.createElement(K.Z,{width:"35%"},"Case-based populations"),r.createElement(K.Z,{width:"35%"},"Aggregated populations"))),r.createElement(J.Z,null,l.map(((e,n)=>{return r.createElement(sa,{key:n,el:e,appMgr:t,isSelected:(l=e.id,-1!==a.indexOf(l)),onSelectClick:i(e.id)});var l})))),r.createElement(Ze,{selectedCount:o,onAddClick:()=>{t.popCombMgr.addEmptyCombination()},onDeleteClick:()=>{t.popCombMgr.removeCombinations(a),n([])}}))})),ma=(0,l.Pi)((({i:e,rowCount:t,dataFile:a,appMgr:n})=>{const l=(e,t)=>{n.aggrDataMgr.setDataFileYears(a.name,t)},i="Dead"!==a.name&&n.modelMgr.migrConnFlag,s=i?{color:"rgba(0, 0, 0, 0.26)"}:null;let o=null;return(1===t||t>1&&0===e)&&(o=r.createElement(K.Z,{rowSpan:t,sx:{pt:5,pr:3,pb:1}},r.createElement(ke.ZP,{min:n.aggrDataMgr.rangeYears[0],max:n.aggrDataMgr.rangeYears[1],marks:!0,value:a.years,onChange:l,sx:{"& *":{fontSize:"9px"}},valueLabelDisplay:"on",valueLabelFormat:e=>e.toFixed(),"aria-labelledby":"range-slider",getAriaLabel:e=>e.toFixed(),getAriaValueText:e=>e.toFixed(),color:"secondary",disabled:i}))),r.createElement(q.Z,{hover:!i},r.createElement(K.Z,{sx:s},a.name),r.createElement(K.Z,null,r.createElement(He.Z,{color:"primary",checked:a.use,onChange:e=>{n.aggrDataMgr.setDataFileUse(a.name,e.target.checked)},size:"small",disabled:i})),o)})),ca=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(p.Z,{variant:"overline"},"Aggregated data selection"),r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,{width:"320px"},"Data type"),r.createElement(K.Z,{width:"100px"},"Use"),r.createElement(K.Z,null,"Years"))),r.createElement(J.Z,null,t.aggrDataMgr.dataFiles.map(((e,a)=>r.createElement(ma,{key:a,i:a,rowCount:1,dataFile:e,appMgr:t}))))))})),ua=e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",onClick:e=>t.uiStateMgr.setActivePageId(4,1)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Case-based data")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(p.Z,null,"Create populations from data"),r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Stratify data by values present in the data. Select one or more variables.")),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(ia,e)),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(H.Z,{light:!0,style:{margin:"30px 0"}})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Aggregated data")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(p.Z,null,"Select data for modelling"),r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Only years present in the aggregated data set will overwrite case-based derived data.")),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(ca,e)),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(H.Z,{light:!0,style:{margin:"30px 0"}})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Combine populations")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"Combine case-based and aggregated data populations.")),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(oa,e))))},da=(0,l.Pi)((e=>{const{i:t,isSelected:a,onSelectClick:n,interval:l,collection:i}=e,s=e=>i.setIntervalStartYear(t,e.target.value);let o=null;return o=0===t?l.startYear:r.createElement(Te.Z,{style:{width:"100%",fontSize:"0.75rem"},value:l.startYear,type:"number",onChange:s}),r.createElement(q.Z,{hover:!0,role:"checkbox"},r.createElement(K.Z,{padding:"checkbox"},r.createElement(pe.Z,{inputProps:{"aria-labelledby":`labelId${t}`},color:"primary",checked:a,onClick:n})),r.createElement(K.Z,{id:"labelId1",scope:"row",padding:"none"},o),r.createElement(K.Z,{sx:{textAlign:"center"}},l.endYear),r.createElement(K.Z,{padding:"checkbox",sx:{textAlign:"center"}},r.createElement(pe.Z,{color:"primary",checked:l.jump,onChange:e=>i.setIntervalJump(t,e.target.checked)})),r.createElement(K.Z,{padding:"checkbox",sx:{textAlign:"center"}},r.createElement(pe.Z,{color:"primary",checked:l.diffByCD4,onChange:e=>i.setIntervalDiffByCD4(t,e.target.checked)})),r.createElement(K.Z,{padding:"checkbox",sx:{textAlign:"center"}},r.createElement(pe.Z,{color:"primary",checked:l.changeInInterval,onChange:e=>i.setIntervalChangeInInterval(t,e.target.checked)})))})),ga=(0,l.Pi)((e=>{const{timeIntCollMgr:t}=e,[a,n]=r.useState([]),l=t.selectedEditCollection,i=l.intervals,s=e=>t=>{const r=a.indexOf(e);let l=[];-1===r?l=l.concat(a,e):0===r?l=l.concat(a.slice(1)):r===a.length-1?l=l.concat(a.slice(0,-1)):r>0&&(l=l.concat(a.slice(0,r),a.slice(r+1))),n(l)},o=i.length,m=a.length,c=e=>-1!==a.indexOf(e);return r.createElement(X.Z,{style:{padding:10}},r.createElement(p.Z,{variant:"overline"},"Collection: ",l.name),r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,{padding:"checkbox"},r.createElement(pe.Z,{inputProps:{"aria-label":"select all"},color:"primary",onClick:e=>{if(e.target.checked){const e=i.map(((e,t)=>t));n(e)}else n([])},checked:o>0&&m===o})," "),r.createElement(K.Z,{width:"20%",padding:"none"},"Start year"),r.createElement(K.Z,{width:"20%",sx:{textAlign:"center"}},"End year"),r.createElement(K.Z,{width:"20%",sx:{textAlign:"center"}},"Jump"),r.createElement(K.Z,{width:"20%",sx:{textAlign:"center"}},"Change by CD4 count"),r.createElement(K.Z,{width:"20%",sx:{textAlign:"center"}},"Change in interval"))),r.createElement(J.Z,null,i.map(((e,t)=>r.createElement(da,{key:t,i:t,interval:e,collection:l,isSelected:c(t),onSelectClick:s(t)}))))),r.createElement(Ze,{selectedCount:m,onAddClick:()=>{l.addEmptyInterval()},onDeleteClick:()=>{l.removeIntervals(a),n([])}}))})),pa=(0,l.Pi)((e=>{const{timeIntCollMgr:t}=e,a=t.defaultEditCollectionSelected;return r.createElement(r.Fragment,null,r.createElement(ge.Z,{value:t.selectedEditCollectionId,onChange:e=>t.setSelectedEditCollectionId(e.target.value),style:{width:"100%",fontSize:"0.75rem"}},t.collectionsArray.map(((e,t)=>r.createElement(he.Z,{key:t,value:e.id,dense:!0},e.name)))),r.createElement(R.Z,{color:"primary",onClick:()=>t.deleteSelectedEditCollection(),disabled:a},"Delete"),r.createElement(R.Z,{color:"primary",onClick:()=>t.addNewCollection()},"Add"))})),ha=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",onClick:()=>t.uiStateMgr.setActivePageId(4,2)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Load model parameters file")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement("input",{style:{display:"none"},id:"modelUploadBtn",type:"file",accept:".xml, .zip",onChange:e=>{const a=e.target.files[0];t.modelMgr.setModelsParamFile(a),e.target.value=null}}),r.createElement(z.Z,{title:"Select XML model file",arrow:!0},r.createElement("label",{htmlFor:"modelUploadBtn"},r.createElement(ae,null,r.createElement(ee.Z,null)," Load model"))),r.createElement(z.Z,{title:"Save XML model file",arrow:!0},r.createElement("span",null,r.createElement(R.Z,{sx:{marginTop:"6px",marginBottom:"6px",marginLeft:"20px"},color:"primary",onClick:e=>t.modelMgr.saveModelsParamFile()},"Save model"))),r.createElement(p.Z,{variant:"body2",color:"textSecondary",style:{marginTop:10}},"Parameters loaded from model file override those determined from data.",r.createElement("br",null),"Supported files types: xml (uncompressed and zip archives)")),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(p.Z,{variant:"overline"},"Uploaded file details"),r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(W.Z,null,r.createElement(J.Z,null,r.createElement(q.Z,null,r.createElement(K.Z,{width:100},"File name"),r.createElement(K.Z,null,t.modelMgr.modelsParamFileName)))))))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(H.Z,{light:!0,style:{margin:"30px 0"}})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Time intervals and diagnosis rates modelling")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(pa,{timeIntCollMgr:t.modelMgr.timeIntCollMgr})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(ga,{timeIntCollMgr:t.modelMgr.timeIntCollMgr}))))})),Ea=e=>{const{minYear:t,maxYear:a,value:n,onChange:l}=e;return r.createElement(ke.ZP,{min:t,max:a,value:n,marks:!0,onChange:l,sx:{"& *":{fontSize:"9px"}},valueLabelDisplay:"on",valueLabelFormat:e=>e.toFixed(),"aria-labelledby":"range-slider",getAriaLabel:e=>e.toFixed(),getAriaValueText:e=>e.toFixed(),color:"secondary"})},Ma=(0,l.Pi)((e=>{const{appMgr:t}=e,a=t.modelMgr.optimalYears.All[0]-1,n=t.modelMgr.optimalYears.All[1];return r.createElement(X.Z,{sx:{padding:"10px"}},r.createElement(p.Z,{variant:"overline"},"Advanced parameters"),r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,{hover:!1},r.createElement(K.Z,{width:"50px"},"Idx"),r.createElement(K.Z,{width:"330px"},"Parameter"),r.createElement(K.Z,null,"Value"))),r.createElement(J.Z,null,r.createElement(q.Z,null,r.createElement(K.Z,null,"1."),r.createElement(K.Z,null,"Range of calculations"),r.createElement(K.Z,{sx:{pt:5,pr:3,pb:1}},r.createElement(Ea,{minYear:a,maxYear:n,value:[t.modelMgr.minYear,t.modelMgr.maxYear],onChange:(e,a)=>{t.modelMgr.setMinYear(a[0]),t.modelMgr.setMaxYear(a[1])}}))),r.createElement(q.Z,null,r.createElement(K.Z,null,"2."),r.createElement(K.Z,null,"HIV diagnoses, total"),r.createElement(K.Z,{sx:{pt:5,pr:3,pb:1}},r.createElement(Ea,{minYear:a,maxYear:n,value:[t.modelMgr.minFitPos,t.modelMgr.maxFitPos],onChange:(e,a)=>{t.modelMgr.setMinFitPos(a[0]),t.modelMgr.setMaxFitPos(a[1])}}))),r.createElement(q.Z,null,r.createElement(K.Z,null,"3."),r.createElement(K.Z,null,"HIV diagnoses, by CD4 count"),r.createElement(K.Z,{sx:{pt:5,pr:3,pb:1}},r.createElement(Ea,{minYear:a,maxYear:n,value:[t.modelMgr.minFitCD4,t.modelMgr.maxFitCD4],onChange:(e,a)=>{t.modelMgr.setMinFitCD4(a[0]),t.modelMgr.setMaxFitCD4(a[1])}}))),r.createElement(q.Z,null,r.createElement(K.Z,null,"4."),r.createElement(K.Z,null,"AIDS diagnoses, total"),r.createElement(K.Z,{sx:{pt:5,pr:3,pb:1}},r.createElement(Ea,{minYear:a,maxYear:n,value:[t.modelMgr.minFitAIDS,t.modelMgr.maxFitAIDS],onChange:(e,a)=>{t.modelMgr.setMinFitAIDS(a[0]),t.modelMgr.setMaxFitAIDS(a[1])}}))),r.createElement(q.Z,null,r.createElement(K.Z,null,"5."),r.createElement(K.Z,null,"HIV/AIDS diagnoses, total"),r.createElement(K.Z,{sx:{pt:5,pr:3,pb:1}},r.createElement(Ea,{minYear:a,maxYear:n,value:[t.modelMgr.minFitHIVAIDS,t.modelMgr.maxFitHIVAIDS],onChange:(e,a)=>{t.modelMgr.setMinFitHIVAIDS(a[0]),t.modelMgr.setMaxFitHIVAIDS(a[1])}}))),r.createElement(q.Z,null,r.createElement(K.Z,null,"6."),r.createElement(K.Z,null,"Do you have data from the start of the epidemic?"),r.createElement(K.Z,null,r.createElement(lt.Z,{row:!0,value:t.modelMgr.fullData,onChange:e=>t.modelMgr.setFullData("true"===e.target.value)},r.createElement(Ue.Z,{value:!0,control:r.createElement(nt.Z,{color:"primary"}),label:"Yes"}),r.createElement(Ue.Z,{value:!1,control:r.createElement(nt.Z,{color:"primary"}),label:"No"})))),r.createElement(q.Z,null,r.createElement(K.Z,null,"7."),r.createElement(K.Z,null,"Knots count"),r.createElement(K.Z,null,r.createElement(Te.Z,{style:{width:"120px",fontSize:"0.75rem"},value:t.modelMgr.knotsCount,onChange:e=>{const a=parseInt(e.target.value);t.modelMgr.setKnotsCount(a)},type:"number",inputProps:{min:1,max:10}}))),r.createElement(q.Z,null,r.createElement(K.Z,null,"8."),r.createElement(K.Z,null,"Start at zero"),r.createElement(K.Z,null,r.createElement(lt.Z,{row:!0,value:t.modelMgr.startIncZero,onChange:e=>t.modelMgr.setStartIncZero("true"===e.target.value)},r.createElement(Ue.Z,{value:!0,control:r.createElement(nt.Z,{color:"primary"}),label:"Yes"}),r.createElement(Ue.Z,{value:!1,control:r.createElement(nt.Z,{color:"primary"}),label:"No"})))),r.createElement(q.Z,null,r.createElement(K.Z,null,"9."),r.createElement(K.Z,null,"Prevent sudden changes at end of observation interval"),r.createElement(K.Z,null,r.createElement(lt.Z,{row:!0,value:t.modelMgr.maxIncCorr,onChange:e=>t.modelMgr.setMaxIncCorr("true"===e.target.value)},r.createElement(Ue.Z,{value:!0,control:r.createElement(nt.Z,{color:"primary"}),label:"Yes"}),r.createElement(Ue.Z,{value:!1,control:r.createElement(nt.Z,{color:"primary"}),label:"No"})))),r.createElement(q.Z,null,r.createElement(K.Z,null,"10."),r.createElement(K.Z,null,"Maximum likelihood distribution"),r.createElement(K.Z,null,r.createElement(lt.Z,{row:!0,value:t.modelMgr.distributionFit,onChange:e=>t.modelMgr.setDistributionFit(e.target.value)},r.createElement(Ue.Z,{value:"POISSON",control:r.createElement(nt.Z,{color:"primary"}),label:"Poisson"}),r.createElement(Ue.Z,{value:"NEGATIVE_BINOMIAL",control:r.createElement(nt.Z,{color:"primary"}),label:"Negative Binomial"})))),r.createElement(q.Z,null,r.createElement(K.Z,null,"11."),r.createElement(K.Z,null,"Extra diagnosis rate due to non-AIDS symptoms"),r.createElement(K.Z,null,r.createElement(Te.Z,{style:{width:"120px",fontSize:"0.75rem"},value:t.modelMgr.delta4Fac,onChange:e=>t.modelMgr.setDelta4Fac(e.target.value),type:"number",inputProps:{min:0,max:10,step:.01}}))),r.createElement(q.Z,null,r.createElement(K.Z,null,"12."),r.createElement(K.Z,null,"Country-specific settings"),r.createElement(K.Z,null,r.createElement(ge.Z,{value:t.modelMgr.country,onChange:e=>t.modelMgr.setCountry(e.target.value),style:{width:"120px",fontSize:"0.75rem"}},r.createElement(he.Z,{value:"OTHER",dense:!0},"Other"),r.createElement(he.Z,{value:"NL",dense:!0},"NL")))))))})),Sa=e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",onClick:e=>t.uiStateMgr.setActivePageId(4,3)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Advanced paramaters")),r.createElement(O.ZP,{item:!0,xs:2}),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(Ma,e))))},ya=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.uiStateMgr.bootstrapEnabled,onClick:e=>t.uiStateMgr.setActivePageId(4,4)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Perform main fit of HIV model")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(p.Z,{variant:"body2",color:"textSecondary"},"1. Migrant connection"),r.createElement(lt.Z,{row:!0,value:t.modelMgr.migrConnFlag,onChange:e=>t.modelMgr.setMigrConnFlag("true"===e.target.value)},r.createElement(Ue.Z,{value:!0,control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"Yes"}),r.createElement(Ue.Z,{value:!1,control:r.createElement(nt.Z,{color:"primary",size:"small"}),label:"No"})),r.createElement(Me.Z,null,"Enable alternative HIV modelling processing with migrant status information used."),r.createElement(p.Z,{variant:"body2",color:"textSecondary",style:{marginTop:20}},"2. Population"),r.createElement(Ee.Z,{style:{width:"100%"}},r.createElement(ge.Z,{value:t.popCombMgr.selectedCombination.id,onChange:e=>{t.popCombMgr.setSelectedCombination(e.target.value)},style:{width:"100%",fontSize:"0.75rem"}},t.popCombMgr.combinationsArray.map((e=>r.createElement(he.Z,{key:e.id,value:e.id,dense:!0},e.name)))),r.createElement(Me.Z,null,"Select population")),r.createElement(p.Z,{variant:"body2",color:"textSecondary",style:{width:"100%",marginTop:20}},"3. Time intervals and diagnosis rates"),r.createElement(Ee.Z,{style:{marginBottom:20}},r.createElement(ge.Z,{value:t.modelMgr.timeIntCollMgr.selectedRunCollectionId,onChange:e=>{t.modelMgr.timeIntCollMgr.setSelectedRunCollectionId(e.target.value)},style:{width:"100%",fontSize:"0.75rem"}},t.modelMgr.timeIntCollMgr.collectionsArray.map(((e,t)=>r.createElement(he.Z,{key:t,value:e.id,dense:!0},e.name)))),r.createElement(Me.Z,null,"Select time intervals and diagnosis rates modelling matrix")),r.createElement(ae,{onClick:()=>{t.modelMgr.runModels()},disabled:t.modelMgr.modelsRunInProgress}," Run main model"),r.createElement(R.Z,{onClick:()=>{t.modelMgr.cancelModels()},color:"primary",style:{marginLeft:20},disabled:!t.modelMgr.modelsRunInProgress},"Cancel"),r.createElement(Ot,{progress:t.modelMgr.modelsRunProgress})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(p.Z,{variant:"overline"},"Run log"),r.createElement("pre",{dangerouslySetInnerHTML:{__html:t.modelMgr.modelsRunLog},style:{overflowX:"auto",fontSize:"0.75rem"}})))))})),Da=(0,l.Pi)((e=>{const{appMgr:t}=e;return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.uiStateMgr.modellingOutputsEnabled,onClick:e=>t.uiStateMgr.setActivePageId(4,5)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Perform bootstrap fit of HIV model")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(Ee.Z,{style:{width:"100%",marginTop:20}},r.createElement(Te.Z,{style:{width:"100%",fontSize:"0.75rem"},value:t.modelMgr.bootstrapCount,onChange:e=>t.modelMgr.setBootstrapCount(e.target.value),type:"number"}),r.createElement(Me.Z,null,"Set the number of iterations")),r.createElement(Ee.Z,{sx:{marginTop:"20px",marginBottom:"20px",width:"100%"}},r.createElement(lt.Z,{row:!0,value:t.modelMgr.bootstrapType,onChange:e=>t.modelMgr.setBootstrapType(e.target.value)},r.createElement(Ue.Z,{value:"PARAMETRIC",control:r.createElement(nt.Z,{color:"primary"}),label:"Parametric",sx:{"& span":{fontSize:"0.75rem"}}}),r.createElement(Ue.Z,{value:"NON-PARAMETRIC",control:r.createElement(nt.Z,{color:"primary"}),label:"Non-parametric",disabled:!t.uiStateMgr.nonParametricBootstrapEnabled,sx:{"& span":{fontSize:"0.75rem"}}})),r.createElement(Me.Z,null,"Set the bootstrap type")),r.createElement(ae,{onClick:()=>t.modelMgr.runBootstrap(),disabled:t.modelMgr.bootstrapRunInProgress},"Run bootstrap"),r.createElement(R.Z,{onClick:()=>t.modelMgr.cancelBootstrap(),color:"primary",style:{marginLeft:20},disabled:!t.modelMgr.bootstrapRunInProgress},"Cancel"),r.createElement(Ot,{progress:t.modelMgr.bootstrapRunProgress})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(p.Z,{variant:"overline"},"Run log"),r.createElement("pre",{dangerouslySetInnerHTML:{__html:t.modelMgr.bootstrapRunLog},style:{overflowX:"auto",fontSize:"0.75rem"}})))))}));var ba=a(3958);const fa=(0,l.Pi)((e=>{const{tableData:t,maxHeight:a}=e;return x(t)?null:r.createElement(ba.Z,{style:{maxHeight:a||300}},r.createElement(W.Z,{size:"small",stickyHeader:!0,sx:{"& > .MuiTableHead-root":{"& > .MuiTableRow-root":{"& > .MuiTableCell-root":{padding:"5px",fontSize:"0.6rem",backgroundColor:"white",textAlign:"right",whiteSpace:"nowrap"}}},"& > .MuiTableBody-root":{"& > .MuiTableRow-root":{"& > .MuiTableCell-root":{padding:"5px",fontSize:"0.6rem",backgroundColor:"transparent",textAlign:"right",whiteSpace:"nowrap"}}}}},r.createElement(de.Z,null,r.createElement(q.Z,null,t.colNames.map(((e,t)=>r.createElement(K.Z,{key:t},e))))),r.createElement(J.Z,null,t.values.map(((e,a)=>r.createElement(q.Z,{hover:!0,key:a},t.colNames.map(((e,n)=>r.createElement(K.Z,{key:n},t.values[a][n])))))))))})),Pa=(0,l.Pi)((e=>{const{appMgr:t}=e;if(x(t.modelMgr.plotData))return null;const a=["#69b023","#c7c7c7"],n={orient:"horizontal",left:"center",top:0,selector:!1};return r.createElement(O.ZP,{container:!0,spacing:2,style:{marginTop:20}},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"A. HIV diagnoses, total")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:t.modelMgr.gofTable1Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:t.modelMgr.gofPlot1Data,legendOptions:n,color:a,showConfBounds:t.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"B. HIV diagnoses, CD4 ","≥"," 500")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:t.modelMgr.gofTable2Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:t.modelMgr.gofPlot2Data,legendOptions:n,color:a,showConfBounds:t.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"C. HIV diagnoses, CD4 350 - 499")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:t.modelMgr.gofTable3Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:t.modelMgr.gofPlot3Data,legendOptions:n,color:a,showConfBounds:t.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"D. HIV diagnoses, CD4 200 - 349")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:t.modelMgr.gofTable4Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:t.modelMgr.gofPlot4Data,legendOptions:n,color:a,showConfBounds:t.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"E. HIV diagnoses, CD4 ","<"," 200")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:t.modelMgr.gofTable5Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:t.modelMgr.gofPlot5Data,legendOptions:n,color:a,showConfBounds:t.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"F. HIV/AIDS diagnoses")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:t.modelMgr.gofTable6Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:t.modelMgr.gofPlot6Data,legendOptions:n,color:a,showConfBounds:t.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"G. AIDS diagnoses, total")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:t.modelMgr.gofTable7Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:t.modelMgr.gofPlot7Data,legendOptions:n,color:a,showConfBounds:t.modelMgr.showConfBounds})))})),xa=(0,l.Pi)((e=>{const{appMgr:t}=e;return x(t.modelMgr.plotData)?null:r.createElement(O.ZP,{container:!0,spacing:2,style:{marginTop:20}},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"A. Main results")),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(fa,{tableData:t.modelMgr.mainOutputTableData,maxHeight:"100%"})))})),Ca=(0,l.Pi)((({appMgr:e})=>{if(x(e.modelMgr.plotData))return null;const t=["#69b023","#7bbcc0","#9d8b56","#ce80ce","#c7c7c7"],a={orient:"horizontal",left:"center",top:0,selector:!1};return console.log(e.modelMgr.outputTable1Data),r.createElement(O.ZP,{container:!0,spacing:2,style:{marginTop:20}},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"A. HIV infections per year")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:e.modelMgr.outputTable1Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:e.modelMgr.outputPlot1Data,legendOptions:a,color:t,showConfBounds:e.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"B. Time to diagnosis")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:e.modelMgr.outputTable2Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Years",data:e.modelMgr.outputPlot2Data,legendOptions:a,color:t,showConfBounds:e.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"C. Total number of HIV-infected"),r.createElement(p.Z,{variant:"body2",color:"textSecondary",sx:{mt:1}},"Count of undiagnosed migrants can be underestimated")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:e.modelMgr.outputTable3Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Count",data:e.modelMgr.outputPlot3Data,legendOptions:a,color:t,showConfBounds:e.modelMgr.showConfBounds})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"D. Proportion undiagnosed of all those alive")),r.createElement(O.ZP,{item:!0,xs:4},r.createElement(fa,{tableData:e.modelMgr.outputTable4Data})),r.createElement(O.ZP,{item:!0,xs:8},r.createElement(ea,{xAxisTitle:"Year",yAxisTitle:"Proportion",data:e.modelMgr.outputPlot4Data,legendOptions:a,color:t,showConfBounds:e.modelMgr.showConfBounds})))})),Za=(0,l.Pi)((e=>{const{appMgr:t}=e,[a,n]=r.useState(0);return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",onClick:()=>t.uiStateMgr.setActivePageId(6)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"HIV Modelling results")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(Ue.Z,{control:r.createElement(He.Z,{checked:t.modelMgr.showConfBounds,onChange:e=>t.modelMgr.setShowConfBounds(e.target.checked),color:"primary",size:"small"}),label:"Show confidence bounds"}),r.createElement(p.Z,{variant:"body2",color:"textSecondary",sx:{mt:1}},"Enable plotting confidence bounds in the output plots if available."),r.createElement(p.Z,{variant:"body2",color:"textSecondary",sx:{mt:1}},'Dotted curves represent data not used in the modelling (see year ranges in tab "Advanced").')),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(Nt.Z,{value:a,onChange:(e,t)=>n(t),indicatorColor:"primary",textColor:"primary"},r.createElement(Ft.Z,{label:"Goodness of fit"}),r.createElement(Ft.Z,{label:"Tables"}),r.createElement(Ft.Z,{label:"Graphs"})),0===a&&r.createElement(Pa,{appMgr:t}),1===a&&r.createElement(xa,{appMgr:t}),2===a&&r.createElement(Ca,{appMgr:t})))))})),Aa=(0,l.Pi)((e=>{const{appMgr:t}=e,a=t.uiStateMgr.activeSubPageId;return r.createElement(r.Fragment,null,0===a&&r.createElement(ua,e),1===a&&r.createElement(ha,e),2===a&&r.createElement(Sa,e),3===a&&r.createElement(ya,e),4===a&&r.createElement(Da,e),5===a&&r.createElement(Za,e))}));var va=a(3043);const Ia=(0,l.Pi)((e=>{const{appMgr:t}=e,a=["reportHTML","reportPDF","reportLATEX","reportWORD"];r.useEffect((()=>(t.unbindShiny(a),t.bindShiny(),()=>t.unbindShiny(a))));return r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(h.Z,{display:"flex",justifyContent:"flex-end"},r.createElement(R.Z,{size:"small",color:"primary",disabled:!t.uiStateMgr.outputsPageEnabled,onClick:()=>t.uiStateMgr.setActivePageId(6)},"Next step"))),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Select report")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(Ee.Z,{style:{width:"100%",marginTop:20,marginBottom:20}},r.createElement(ge.Z,{value:1,style:{width:"100%",fontSize:"0.75rem"}},r.createElement(he.Z,{value:1,dense:!0},"Report on adjusted data")),r.createElement(Me.Z,null,"Select report type")),r.createElement(ae,{onClick:()=>t.reportMgr.createReport(),disabled:t.reportMgr.creatingReportInProgress},"Create report"),r.createElement(R.Z,{onClick:()=>t.reportMgr.cancelCreatingReport(),color:"primary",style:{marginLeft:20},disabled:!t.reportMgr.creatingReportInProgress},"Cancel"),r.createElement(Ot,{progress:t.reportMgr.creatingReportInProgress})),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(p.Z,{variant:"overline"},"Parameters for report on adjusted data"),r.createElement(ft.Z,null,r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.reportMgr.adjustReportParams.reportingDelay,onChange:(e,a)=>t.reportMgr.setAdjustReportReportingDelay(a),color:"primary"}),label:"Adjust count of cases for reporting delay"}),r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.reportMgr.adjustReportParams.smoothing,onChange:(e,a)=>t.reportMgr.setAdjustReportSmoothing(a),color:"primary"}),label:"Apply plot curves smoothing"}),r.createElement(Ue.Z,{control:r.createElement(pe.Z,{checked:t.reportMgr.adjustReportParams.cd4ConfInt,onChange:(e,a)=>t.reportMgr.setAdjustReportCD4ConfInt(a),color:"primary"}),label:"Plot inter-quartile range in CD4 count plots"})),r.createElement(R.Z,{color:"primary",onClick:()=>t.reportMgr.restoreDefaults()},"Restore defaults"))),t.reportMgr.report&&r.createElement(r.Fragment,null,r.createElement(O.ZP,{item:!0,xs:12},r.createElement(H.Z,{light:!0,style:{margin:"30px 0"}})),r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"View and download")),r.createElement(O.ZP,{item:!0,xs:2},r.createElement(va.Z,{download:!0,href:"#",id:"reportHTML",className:"shiny-download-link"},"HTML"),r.createElement(va.Z,{download:!0,href:"#",id:"reportPDF",className:"shiny-download-link",style:{marginLeft:10}},"PDF"),r.createElement(va.Z,{download:!0,href:"#",id:"reportLATEX",className:"shiny-download-link",style:{marginLeft:10}},"Latex"),r.createElement(va.Z,{download:!0,href:"#",id:"reportWORD",className:"shiny-download-link",style:{marginLeft:10}},"MS Word")),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement("div",{dangerouslySetInnerHTML:{__html:t.reportMgr.report},style:{overflowX:"auto"}}))))))})),Ra=(0,l.Pi)((e=>{const{appMgr:t}=e,a=["downAdjDataCSV","downAdjDataRDS","downAdjDataDTA","downRepDelDataCSV","downRepDelDataRDS","downRepDelDataDTA","downMainFitDetailedRDS","downMainFitCSV","downMainFitRDS","downMainFitDTA","downBootFitDetailedRDS","downBootFitCSV","downBootFitRDS","downBootFitDTA","downBootStatDetailedRDS","downBootStatCSV","downBootStatRDS","downBootStatDTA","downFitXLSM","downFitXLSX"];r.useEffect((()=>(t.unbindShiny(a),t.bindShiny(),()=>t.unbindShiny(a))));let n=null;n=t.uiStateMgr.adjustmentsOutputsEnabled?r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downAdjDataCSV",className:"shiny-download-link"},"csv (text)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downAdjDataRDS",className:"shiny-download-link"},"rds (R)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downAdjDataDTA",className:"shiny-download-link"},"dta (Stata)")):r.createElement(r.Fragment,null,"csv (text) | rds (R) | dta (Stata)");let l=null;l=t.uiStateMgr.repDelOutputsEnabled?r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downRepDelDataCSV",className:"shiny-download-link"},"csv (text)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downRepDelDataRDS",className:"shiny-download-link"},"rds (R)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downRepDelDataDTA",className:"shiny-download-link"},"dta (Stata)")):r.createElement(r.Fragment,null,"csv (text) | rds (R) | dta (Stata)");let i=null,s=null,o=null;t.uiStateMgr.modellingOutputsEnabled?(i=r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downMainFitDetailedRDS",className:"shiny-download-link"},"rds (R)")),s=r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downMainFitCSV",className:"shiny-download-link"},"csv (text)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downMainFitRDS",className:"shiny-download-link"},"rds (R)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downMainFitDTA",className:"shiny-download-link"},"dta (Stata)")),o=r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downFitXLSM",className:"shiny-download-link"},"xlsm (Excel with Macro - automatic refresh)")," |",r.createElement("br",null),r.createElement(va.Z,{download:!0,href:"#",id:"downFitXLSX",className:"shiny-download-link"},"xlsx (Excel without Macro - manual refresh)"))):(i=r.createElement(r.Fragment,null,"rds (R)"),s=r.createElement(r.Fragment,null,"csv (text) | rds (R) | dta (Stata)"),o=r.createElement(r.Fragment,null,"xlsm (Excel with Macro - automatic refresh) |",r.createElement("br",null),"xlsx (Excel without Macro - manual refresh)"));let m=null,c=null,u=null,d=null;return t.uiStateMgr.bootstrapOutputsEnabled?(m=r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downBootFitDetailedRDS",className:"shiny-download-link"},"rds (R)")),c=r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downBootFitCSV",className:"shiny-download-link"},"csv (text)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downBootFitRDS",className:"shiny-download-link"},"rds (R)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downBootFitDTA",className:"shiny-download-link"},"dta (Stata)")),u=r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downBootStatDetailedRDS",className:"shiny-download-link"},"rds (R)")),d=r.createElement(r.Fragment,null,r.createElement(va.Z,{download:!0,href:"#",id:"downBootStatCSV",className:"shiny-download-link"},"csv (text)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downBootStatRDS",className:"shiny-download-link"},"rds (R)")," | ",r.createElement(va.Z,{download:!0,href:"#",id:"downBootStatDTA",className:"shiny-download-link"},"dta (Stata)"))):(m=r.createElement(r.Fragment,null,"rds (R)"),c=r.createElement(r.Fragment,null,"csv (text) | rds (R) | dta (Stata)"),u=r.createElement(r.Fragment,null,"rds (R)"),d=r.createElement(r.Fragment,null,"csv (text) | rds (R) | dta (Stata)")),r.createElement(V,null,r.createElement(O.ZP,{container:!0,spacing:2,style:{paddingTop:43}},r.createElement(O.ZP,{item:!0,xs:12},r.createElement(p.Z,{variant:"h6"},"Outputs")),r.createElement(O.ZP,{item:!0,xs:2},"Adjustments"),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,null,r.createElement(K.Z,{width:"300px"},"Description"),r.createElement(K.Z,{width:"320px"},"Format"),r.createElement(K.Z,null,"Description"))),r.createElement(J.Z,null,r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Adjusted case-based data"),r.createElement(K.Z,null,n),r.createElement(K.Z,null,"Flat table")),r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Reporting delays distribution"),r.createElement(K.Z,null,l),r.createElement(K.Z,null,"Flat table")))))),r.createElement(O.ZP,{item:!0,xs:2},"HIV Model"),r.createElement(O.ZP,{item:!0,xs:10},r.createElement(X.Z,{style:{padding:10}},r.createElement(W.Z,null,r.createElement(de.Z,null,r.createElement(q.Z,null,r.createElement(K.Z,{width:"300px"},"Description"),r.createElement(K.Z,{width:"320px"},"Format"),r.createElement(K.Z,null,"Description"))),r.createElement(J.Z,null,r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Detailed main fit model results"),r.createElement(K.Z,null,i),r.createElement(K.Z,null,"R list object")),r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Main outputs of main fit model"),r.createElement(K.Z,null,s),r.createElement(K.Z,null,"Flat table")),r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Detailed bootstrap fits model results"),r.createElement(K.Z,null,m),r.createElement(K.Z,null,"R list object")),r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Main outputs of bootstrap fits"),r.createElement(K.Z,null,c),r.createElement(K.Z,null,"Flat table")),r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Detailed bootstrap statistics results"),r.createElement(K.Z,null,u),r.createElement(K.Z,null,"R list object")),r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Main outputs bootstrap statistics"),r.createElement(K.Z,null,d),r.createElement(K.Z,null,"Flat table")),r.createElement(q.Z,{hover:!0},r.createElement(K.Z,null,"Main outputs of main fit and bootstrap"),r.createElement(K.Z,null,o),r.createElement(K.Z,null,"Excel file with tables and charts"))))))))}));var Ta=a(1313),Na=a(6558);const Fa=(0,l.Pi)((e=>{const{notificationsMgr:t}=e,a=(e,a)=>{"clickaway"!==a&&t.clearMsg()};return r.createElement(Ta.Z,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:t.hasMsg,autoHideDuration:5e3,onClose:a,message:t.msgInfo.msg,action:r.createElement(r.Fragment,null,r.createElement(E.Z,{size:"small","aria-label":"close",color:"inherit",onClick:a},r.createElement(Na.Z,{fontSize:"small"})))})}));function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(p.Z,Oa({component:"div",role:"tabpanel",hidden:t!==e,id:`wrapped-tabpanel-${e}`,"aria-labelledby":`wrapped-tab-${e}`,style:{flexGrow:1,overflowY:"scroll"}},n),t===e&&r.createElement(h.Z,{p:2},a)),Ya=(0,l.f3)("appMgr")((0,l.Pi)((e=>{const{appMgr:t}=e,[a,n]=r.useState(!1);{const e=e=>{e.preventDefault(),e.returnValue=""};r.useEffect((()=>(window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e))),[])}const l=t.shinyReady?"#69b023":"#f44336",i=r.createElement(d.Z,{position:"sticky",sx:{backgroundColor:`${l}`}},r.createElement(g.Z,{variant:"dense",disableGutters:!0},r.createElement(p.Z,{variant:"h4",sx:{fontWeight:"bold",color:"white",ml:"10px"}},t.packageDetails.Title),r.createElement(p.Z,{variant:"overline",sx:{color:"white",ml:"20px",lineHeight:1.5}},"Version: ",t.packageDetails.Version," ",r.createElement("br",null),"Build date: ",t.packageDetails.Date),r.createElement(h.Z,{flexGrow:1}),r.createElement(p.Z,{variant:"overline",sx:{color:"white"}},"Engine state: ",t.shinyStateHuman),r.createElement(E.Z,{onClick:()=>n(!a),size:"large",sx:{color:"white"}},r.createElement(M.Z,null))));return r.createElement(h.Z,{display:"flex",flexGrow:1,flexDirection:"column",sx:{overflow:"hidden"},p:0},r.createElement(F,Oa({},e,{open:a,onClose:()=>n(!1)})),i,r.createElement(h.Z,{display:"flex",flexGrow:1,flexDirection:"row",sx:{overflow:"hidden",backgroundColor:"#fafafa"},p:0},r.createElement(Z,{pages:t.uiStateMgr.pages,activePageId:t.uiStateMgr.activePageId,onPageChange:(e,a)=>{t.uiStateMgr.setActivePageId(e,a)}}),r.createElement(wa,{pageId:0,activePageId:t.uiStateMgr.activePageId},r.createElement(U,e)),r.createElement(wa,{pageId:1,activePageId:t.uiStateMgr.activePageId},r.createElement(Be,e)),r.createElement(wa,{pageId:2,activePageId:t.uiStateMgr.activePageId},r.createElement(Dt,e)),r.createElement(wa,{pageId:3,activePageId:t.uiStateMgr.activePageId},r.createElement(Yt,e)),r.createElement(wa,{pageId:4,activePageId:t.uiStateMgr.activePageId},r.createElement(ra,e)),r.createElement(wa,{pageId:5,activePageId:t.uiStateMgr.activePageId},r.createElement(Aa,e)),r.createElement(wa,{pageId:6,activePageId:t.uiStateMgr.activePageId},r.createElement(Ia,e)),r.createElement(wa,{pageId:7,activePageId:t.uiStateMgr.activePageId},r.createElement(Ra,e))),r.createElement(Fa,{notificationsMgr:t.notificationsMgr}))}))),_a=(0,m.Z)({typography:{fontSize:12},palette:{primary:{main:"#69b023"},secondary:{main:"#bedfe1"}},components:{MuiStepLabel:{styleOverrides:{label:{color:"black","&.Mui-active":{fontWeight:"bold"},"&.Mui-completed":{fontWeight:"bold"},"&.Mui-disabled":{color:"rgba(0, 0, 0, 0.5)"}},iconContainer:{"& text":{fill:"white"}}}},MuiStepConnector:{styleOverrides:{vertical:{marginLeft:"10px"}}},MuiStepContent:{styleOverrides:{root:{marginLeft:"10px","& .MuiList-root":{paddingBottom:"0px"},"& .MuiButtonBase-root":{padding:"6px",fontSize:"0.75rem"}}}},MuiAutocomplete:{styleOverrides:{option:{fontSize:"0.75rem"}}},MuiTableRow:{defaultProps:{hover:!0},styleOverrides:{root:{"&:last-child td":{borderBottom:"0px"}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:"1px solid rgba(240, 240, 240, 1)"},head:{fontWeight:"bold"}}},MuiSelect:{defaultProps:{variant:"standard"},styleOverrides:{select:{paddingBottom:"5px"}}},MuiTextField:{defaultProps:{variant:"standard"}}}}),La=()=>r.createElement(c.Z,{injectFirst:!0},r.createElement(u.Z,{theme:_a},r.createElement(r.Fragment,null,r.createElement(o.ZP,null),r.createElement(Ya,null))));var ja=a(5381),Ba=a(9514);class ka{rootMgr=null;lastEventType=null;completedSteps=null;pages=[{title:"Welcome",completed:!1,disabled:!1,subPages:[]},{title:"Input data upload",completed:!1,disabled:!0,subPages:[{title:"Case-based data",disabled:!1},{title:"Aggregated data",disabled:!1}],activeSubPageId:0},{title:"Case-based data summary",completed:!1,disabled:!0,subPages:[],description:"Subset of case-based data can be selected here for adjustments and modelling"},{title:"Adjustments",completed:!1,disabled:!0,subPages:[{title:"Inputs",disabled:!1},{title:"Run",disabled:!1}],activeSubPageId:0},{title:"Migration",completed:!1,disabled:!1,subPages:[]},{title:"Modelling",completed:!1,disabled:!0,subPages:[{title:"Populations",disabled:!1},{title:"Inputs",disabled:!1},{title:"Advanced",disabled:!1},{title:"Run Main Fit",disabled:!1},{title:"Run Bootstrap",disabled:!1},{title:"Tables and charts",disabled:!1}],activeSubPageId:0},{title:"Reports",completed:!1,disabled:!0,subPages:[]},{title:"Outputs",completed:!1,disabled:!0,subPages:[]}];activePageId=0;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{completedSteps:ja.LO,pages:ja.LO,activePageId:ja.LO,lastEventType:ja.LO,pagesTitles:ja.Fl,uploadPageEnabled:ja.Fl,summaryPageEnabled:ja.Fl,adjustmentsPageEnabled:ja.Fl,migrantPageEnabled:ja.Fl,modellingPageEnabled:ja.Fl,reportsPageEnabled:ja.Fl,outputsPageEnabled:ja.Fl,caseBasedAttrMappingEnabled:ja.Fl,caseBasedOrigGroupingProvisioned:ja.Fl,caseBasedOrigGroupingEnabled:ja.Fl,migrConnEnabled:ja.Fl,bootstrapEnabled:ja.Fl,adjustmentsOutputsEnabled:ja.Fl,repDelOutputsEnabled:ja.Fl,modellingOutputsEnabled:ja.Fl,bootstrapOutputsEnabled:ja.Fl,caseBasedDataUnloadEnabled:ja.Fl,aggrDataUnloadEnabled:ja.Fl,setCompletedSteps:ja.aD,setActivePageId:ja.aD,setLastEventType:ja.aD,setSubPageDisabledStatus:ja.aD,setUIState:ja.aD})}get pagesTitles(){return this.pages.map((e=>e.title))}get activeSubPageId(){return this.pages[this.activePageId].activeSubPageId}get uploadPageEnabled(){return be("SESSION_INITIALIZED",this.completedSteps)}get summaryPageEnabled(){return be("CASE_BASED_SUMMARY",this.completedSteps)}get adjustmentsPageEnabled(){return be("CASE_BASED_ORIGIN_GROUPING",this.completedSteps)}get migrantPageEnabled(){return be("CASE_BASED_ORIGIN_GROUPING",this.completedSteps)&&this.rootMgr.migrMgr.dataCompatibleFlag}get modellingPageEnabled(){return be("CASE_BASED_ORIGIN_GROUPING",this.completedSteps)||be("AGGR_READ",this.completedSteps)}get reportsPageEnabled(){return be("CASE_BASED_ADJUSTMENTS",this.completedSteps)}get outputsPageEnabled(){return be("CASE_BASED_ADJUSTMENTS",this.completedSteps)||be("MODELLING",this.completedSteps)}get caseBasedAttrMappingEnabled(){return be("CASE_BASED_READ",this.completedSteps)}get caseBasedDataUnloadEnabled(){return be("CASE_BASED_READ",this.completedSteps)}get aggrDataUnloadEnabled(){return be("AGGR_READ",this.completedSteps)}get caseBasedOrigGroupingProvisioned(){return be("CASE_BASED_ATTR_MAPPING",this.completedSteps)}get caseBasedOrigGroupingEnabled(){return this.caseBasedOrigGroupingProvisioned&&0===this.rootMgr.origGroupMgr.unusedOrigins.length}get migrConnEnabled(){return be("CASE_BASED_MIGRATION",this.completedSteps)}get bootstrapEnabled(){return be("MODELLING",this.completedSteps)}get nonParametricBootstrapEnabled(){return be("CASE_BASED_ORIGIN_GROUPING",this.completedSteps)}get adjustmentsOutputsEnabled(){return be("CASE_BASED_ADJUSTMENTS",this.completedSteps)}get repDelOutputsEnabled(){return be("CASE_BASED_ADJUSTMENTS",this.completedSteps)&&be("REPORTING_DELAYS",this.rootMgr.adjustMgr.runAdjustmentsTypes)}get modellingOutputsEnabled(){return be("MODELLING",this.completedSteps)}get bootstrapOutputsEnabled(){return be("BOOTSTRAP",this.completedSteps)}setCompletedSteps=e=>{this.completedSteps=Pe(e),this.refreshPagesStatus()};setActivePageId=(e,t=-1)=>{this.pages[e].disabled?this.rootMgr.notificationsMgr.setMsg("Page this link refers to is not enabled"):(this.activePageId=e,-1!==t&&t{this.pages[e].subPages[t].disabled=a};setLastEventType=e=>this.lastEventType=e;refreshPagesStatus=()=>{this.pages[0].completed=this.activePageId>0,this.pages[1].completed=this.activePageId>1,this.pages[2].completed=this.activePageId>2,this.pages[3].completed=this.activePageId>3,this.pages[4].completed=this.activePageId>4,this.pages[1].disabled=!this.uploadPageEnabled,this.pages[2].disabled=!this.summaryPageEnabled,this.pages[3].disabled=!this.adjustmentsPageEnabled,this.pages[4].disabled=!this.migrantPageEnabled,this.pages[5].disabled=!this.modellingPageEnabled,this.pages[6].disabled=!this.reportsPageEnabled,this.pages[7].disabled=!this.outputsPageEnabled,this.setSubPageDisabledStatus(5,4,!this.bootstrapEnabled),this.setSubPageDisabledStatus(5,5,!this.modellingOutputsEnabled)};setUIState=e=>{this.lastEventType=e.lastEventType,this.completedSteps=e.completedSteps,this.pages=e.pages,this.activePageId=e.activePageId}}const Ua=e=>`${e}_${("000000"+(2176782336*Math.random()<<0).toString(36)).slice(-6)}`;class Ha{rootMgr=null;msgInfo={key:null,msg:null};constructor(e){this.rootMgr=e,(0,ja.rC)(this,{msgInfo:ja.LO,hasMsg:ja.Fl,setMsg:ja.aD,clearMsg:ja.aD,setUIState:ja.aD})}get hasMsg(){return null!==this.msgInfo.msg}setMsg=e=>{this.msgInfo={msg:e,key:Ua("msg")}};clearMsg=()=>{this.msgInfo={key:null,msg:null}};setUIState=e=>{this.msgInfo=e.msgInfo}}class Ga{rootMgr=null;mapping=[];actionStatus=null;actionMessage=null;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{mapping:ja.LO,actionStatus:ja.LO,actionMessage:ja.LO,setMapping:ja.aD,setOrigCol:ja.aD,setDefVal:ja.aD,applyMapping:ja.aD,setActionStatus:ja.aD,setActionMessage:ja.aD,actionValid:ja.Fl,setUIState:ja.aD})}setMapping=e=>{this.mapping=e,this.runCheck()};setActionStatus=e=>this.actionStatus=e;setActionMessage=e=>this.actionMessage=e;setOrigCol=(e,t)=>{const a=this.mapping.findIndex((t=>t.attribute===e));-1!==a?(this.mapping[a].origColName=""!==t?t:null,this.runCheck()):console.log(`AttrMappingManager.setOrigCol: cannot find element with Attribute "${e}"`)};setDefVal=(e,t)=>{const a=this.mapping.findIndex((t=>t.attribute===e));-1!==a?(this.mapping[a].defaultValue=""!==t?t:null,this.runCheck()):console.log(`AttrMappingManager.setDefVal: cannot find element with Attribute "${e}"`)};applyMapping=()=>{this.rootMgr.btnClicked("attrMapping:AttrMappingArray",this.mapping)};runCheck=()=>{const e=[...this.mapping.filter((e=>e.origColName)).map((e=>e.origColName)).reduce(((e,t)=>e.set(t,(e.get(t)||0)+1)),new Map)].filter((e=>e[1]>1)).map((e=>e[0]));let t=null,a=null;e.length>0?(a="FAIL",t=`Column${e.length>1?"s":""} "${e.join(", ")}" ${e.length>1?"are":"is"} mapped multiple times`):(a="SUCCESS",t="Attribute mapping is valid"),this.setActionStatus(a),this.setActionMessage(t)};get actionValid(){return x(this.actionStatus)?null:"SUCCESS"===this.actionStatus}setUIState=e=>{this.mapping=e.mapping,this.actionStatus=e.actionStatus,this.actionMessage=e.actionMessage}}const Va=(e,t)=>{let a=Pe(t).map((t=>parseFloat(t.replace(e,""))));return Math.max(0,Math.max.apply(null,a.filter((e=>!isNaN(e)))))+1};class za{rootMgr=null;distribution={FullRegionOfOrigin:[],Count:[]};groupings=[];preset="REPCOUNTRY + UNK + OTHER";repCountryGroupingIdx=null;actionStatus=null;actionMessage=null;migrantCompatibleStatus=null;migrantCompatibleMessage=null;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{distribution:ja.LO,groupings:ja.LO,preset:ja.LO,actionStatus:ja.LO,actionMessage:ja.LO,migrantCompatibleStatus:ja.LO,migrantCompatibleMessage:ja.LO,distributionArray:ja.Fl,origins:ja.Fl,usedOrigins:ja.Fl,unusedOrigins:ja.Fl,groupingsJS:ja.Fl,usedNames:ja.Fl,setDistribution:ja.aD,setGroupings:ja.aD,setPreset:ja.aD,setGroupName:ja.aD,setGroupOrigin:ja.aD,setMigrantOrigin:ja.aD,removeGroupings:ja.aD,addEmptyGrouping:ja.aD,applyGroupings:ja.aD,setActionStatus:ja.aD,setActionMessage:ja.aD,actionValid:ja.Fl,setUIState:ja.aD}),(0,ja.EH)((()=>{this.rootMgr.inputValueSet("checkOriginGrouping:OriginGroupingArray",this.groupingsJS)}))}get distributionArray(){const e=this.distribution.FullRegionOfOrigin,t=this.distribution.Count;return e.map(((a,r)=>({origin:e[r],count:t[r]})))}get origins(){return this.distribution.FullRegionOfOrigin.slice().sort()}get usedOrigins(){return[].concat.apply([],this.groupings.map((e=>e.FullRegionOfOrigin)))}get unusedOrigins(){return this.origins.filter((e=>!this.usedOrigins.includes(e)))}get groupingsJS(){return(0,ja.ZN)(this.groupings)}get usedNames(){return this.groupings.map((e=>e.GroupedRegionOfOrigin))}setDistribution=e=>this.distribution=e;setGroupings=e=>{this.groupings=e.map((e=>({GroupedRegionOfOrigin:e.GroupedRegionOfOrigin,FullRegionOfOrigin:Pe(e.FullRegionOfOrigin),MigrantRegionOfOrigin:e.MigrantRegionOfOrigin,groupCount:0}))),this.computeGroupCounts()};setPreset=e=>this.preset=e;setActionStatus=e=>this.actionStatus=e;setActionMessage=e=>this.actionMessage=e;setMigrantCompatibleStatus=e=>this.migrantCompatibleStatus=e;setMigrantCompatibleMessage=e=>this.migrantCompatibleMessage=e;setGroupName=(e,t)=>{this.groupings[e].GroupedRegionOfOrigin=t,this.preset="Custom"};setGroupOrigin=(e,t)=>{this.groupings[e].FullRegionOfOrigin=t,this.computeGroupCounts(),this.preset="Custom"};setMigrantOrigin=(e,t)=>{this.groupings[e].MigrantRegionOfOrigin=t,this.computeGroupCounts(),this.preset="Custom"};removeGroupings=e=>{this.groupings=xe(this.groupings,e),this.computeGroupCounts(),this.preset="Custom"};addEmptyGrouping=()=>{this.groupings.push({GroupedRegionOfOrigin:`Group ${Va("Group ",this.usedNames)}`,FullRegionOfOrigin:[],MigrantRegionOfOrigin:"",groupCount:0}),this.computeGroupCounts(),this.preset="Custom"};applyGroupings=()=>{this.rootMgr.btnClicked("originGrouping:OriginGroupingArray",this.groupings)};computeGroupCounts=()=>{this.groupings.forEach((e=>{e.groupCount=e.FullRegionOfOrigin.reduce(((e,t)=>{const a=this.distributionArray.findIndex((e=>e.origin==t));return-1!==a?e+this.distributionArray[a].count:e}),0)}))};get actionValid(){return x(this.actionStatus)?null:"SUCCESS"===this.actionStatus}setUIState=e=>{this.distribution=e.distribution,this.groupings=e.groupings,this.preset=e.preset,this.actionStatus=e.actionStatus,this.actionMessage=e.actionMessage,this.migrantCompatibleStatus=e.migrantCompatibleStatus,this.migrantCompatibleMessage=e.migrantCompatibleMessage}}const Wa=e=>{var t=e.data("currentUploader");t&&t.abort(),e.removeAttr("data-restore")};var $a=function(e){this.files=e,this.fileIndex=-1,this.aborted=!1,this.completed=!1,this.$run()};function Qa(e,t,a){var r=$(t);Wa(r);var n=t.files;0!==n.length&&(this.shinyapp=e,this.id=t.id,this.el=t,this.progressCallback=a,$a.call(this,n))}(function(){this.onBegin=function(e,t){setTimeout(t,0)},this.onFile=function(e,t){setTimeout(t,0)},this.onComplete=function(){},this.onAbort=function(){},this.abort=function(){this.completed||this.aborted||(this.aborted=!0,this.onAbort())},this.$getRun=function(){var e=this,t=!1;return function(){t||(t=!0,e.$run())}},this.$run=function(){if(!this.aborted&&!this.completed){if(this.fileIndex<0)return this.fileIndex=0,void this.onBegin(this.files,this.$getRun());if(this.fileIndex===this.files.length)return this.completed=!0,void this.onComplete();var e=this.files[this.fileIndex++];this.onFile(e,this.$getRun())}}}).call($a.prototype),$.extend(Qa.prototype,$a.prototype),function(){this.makeRequest=function(e,t,a,r,n){this.shinyapp.makeRequest(e,t,a,r,n)},this.onBegin=function(e,t){var a=this;this.onProgress(0),this.totalBytes=0,this.progressBytes=0,$.each(e,(function(e,t){a.totalBytes+=t.size}));var r=$.map(e,(function(e){return{name:e.name,size:e.size,type:e.type}}));this.makeRequest("uploadInit",[r],(function(e){a.jobId=e.jobId,a.uploadUrl=e.uploadUrl,t()}),(function(e){a.onError(e)}))},this.onFile=function(e,t){var a=this;this.onProgress(0),$.ajax(this.uploadUrl,{type:"POST",cache:!1,xhr:function(){var e=$.ajaxSettings.xhr();return e.upload&&(e.upload.onprogress=function(e){e.lengthComputable&&a.onProgress((a.progressBytes+e.loaded)/a.totalBytes)}),e},data:e,contentType:"application/octet-stream",processData:!1,success:function(){a.progressBytes+=e.size,t()},error:function(e,t){a.onError(e.responseText||t)}})},this.onComplete=function(){var e=this,t=$.map(this.files,(function(e){return{name:e.name,size:e.size,type:e.type}})),a=jQuery.Event("shiny:inputchanged");a.name=this.id,a.value=t,a.el=this.el,a.inputType="shiny.fileupload",$(document).trigger(a),this.makeRequest("uploadEnd",[this.jobId,this.id],(function(){e.onProgress(null)}),(function(t){e.onError(t)}))},this.onError=function(e){console.log("onError: ",e),this.progressCallback(null)},this.onAbort=function(){console.log("onAbort"),this.progressCallback(null)},this.onProgress=function(e){this.progressCallback(e)}}.call(Qa.prototype);class Ja{rootMgr=null;fileName=null;fileSize=null;fileType=null;filePath=null;columnNames=[];recordCount=null;uploadProgress=null;actionStatus=null;actionMessage=null;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{fileName:ja.LO,fileSize:ja.LO,fileType:ja.LO,filePath:ja.LO,columnNames:ja.LO,recordCount:ja.LO,uploadProgress:ja.LO,actionStatus:ja.LO,actionMessage:ja.LO,setFileName:ja.aD,setFileSize:ja.aD,setFileType:ja.aD,setFilePath:ja.aD,setRecordCount:ja.aD,setColumnNames:ja.aD,setColumnNames:ja.aD,uploadData:ja.aD,unloadData:ja.aD,setUploadProgress:ja.aD,setActionStatus:ja.aD,setActionMessage:ja.aD,columnNamesString:ja.Fl,actionValid:ja.Fl,setUIState:ja.aD})}setFileName=e=>this.fileName=e;setFileSize=e=>this.fileSize=e;setFileType=e=>this.fileType=e;setFilePath=e=>this.filePath=e;setRecordCount=e=>this.recordCount=e;setColumnNames=e=>this.columnNames=Pe(e);setUploadProgress=e=>this.uploadProgress=e;setActionStatus=e=>this.actionStatus=e;setActionMessage=e=>this.actionMessage=e;uploadData=e=>{$(e).data("currentUploader",new Qa(Shiny.shinyapp,e,this.setUploadProgress))};unloadData=()=>{this.rootMgr.btnClicked("unloadCaseBasedData")};get columnNamesString(){return null===this.columnNames?"":this.columnNames.join(", ")}get actionValid(){return x(this.actionStatus)?null:"SUCCESS"===this.actionStatus}setUIState=e=>{this.fileName=e.fileName,this.fileSize=e.fileSize,this.fileType=e.fileType,this.filePath=e.filePath,this.columnNames=e.columnNames,this.recordCount=e.recordCount,this.uploadProgress=e.uploadProgress,this.actionStatus=e.actionStatus,this.actionMessage=e.actionMessage}}class Ka{rootMgr=null;fileName=null;fileSize=null;fileType=null;filePath=null;dataFiles=[];origDataFiles=[];rangeYears=null;dataFileNameToIdxMap=new Map;populationNames=[];fileUploadProgress=null;actionStatus=null;actionMessage=null;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{fileName:ja.LO,fileSize:ja.LO,fileType:ja.LO,filePath:ja.LO,populationNames:ja.LO,fileUploadProgress:ja.LO,dataFiles:ja.LO.deep,origDataFiles:ja.LO,rangeYears:ja.LO,actionStatus:ja.LO,actionMessage:ja.LO,dataNames:ja.Fl,dataNamesString:ja.Fl,populationNamesString:ja.Fl,setFileName:ja.aD,setFileSize:ja.aD,setFileType:ja.aD,setFilePath:ja.aD,setDataFiles:ja.aD,setDataFileUse:ja.aD,setDataFileYears:ja.aD,setPopulationNames:ja.aD,setFileUploadProgress:ja.aD,uploadData:ja.aD,setActionStatus:ja.aD,setActionMessage:ja.aD,setRangeYears:ja.aD,actionValid:ja.Fl,setUIState:ja.aD}),(0,ja.EH)((()=>this.rootMgr.inputValueSet("aggrFilters:AggrFilters",(0,ja.ZN)(this.dataFiles))),{delay:1e3})}setFileName=e=>this.fileName=e;setFileSize=e=>this.fileSize=e;setFileType=e=>this.fileType=e;setFilePath=e=>this.filePath=e;setDataFiles=e=>{this.origDataFiles=Pe(e),this.dataFiles=Pe(e),this.dataFileNameToIdxMap=new Map(this.dataFiles.map(((e,t)=>[e.name,t])))};setDataFileUse=(e,t)=>{this.dataFiles[this.dataFileNameToIdxMap.get(e)].use=t};setDataFileYears=(e,t)=>this.dataFiles[this.dataFileNameToIdxMap.get(e)].years=t;setPopulationNames=e=>this.populationNames=Pe(e).sort();setFileUploadProgress=e=>this.fileUploadProgress=e;setRangeYears=e=>this.rangeYears=e;uploadData=e=>{$(e).data("currentUploader",new Qa(Shiny.shinyapp,e,this.setFileUploadProgress))};setActionStatus=e=>this.actionStatus=e;setActionMessage=e=>this.actionMessage=e;get dataNames(){return this.dataFiles.map((e=>e.name))}get dataNamesString(){return null===this.dataNames?"":this.dataNames.join(", ")}get populationNamesString(){return null===this.populationNames?"":this.populationNames.join(", ")}get actionValid(){return x(this.actionStatus)?null:"SUCCESS"===this.actionStatus}setUIState=e=>{this.fileName=e.fileName,this.fileSize=e.fileSize,this.fileType=e.fileType,this.filePath=e.filePath,this.dataFiles=e.dataFiles,this.origDataFiles=e.origDataFiles,this.rangeYears=e.rangeYears,this.dataFileNameToIdxMap=e.dataFileNameToIdxMap,this.populationNames=e.populationNames,this.fileUploadProgress=e.fileUploadProgress,this.actionStatus=e.actionStatus,this.actionMessage=e.actionMessage}}class qa{rootMgr=null;selectedCount=null;totalCount=null;diagYearPlotData={filter:{scaleMinYear:null,scaleMaxYear:null,valueMinYear:null,valueMaxYear:null,applyInAdjustments:null},chartCategories:[],chartData:[]};notifQuarterPlotData={filter:{scaleMinYear:null,scaleMaxYear:null,valueMinYear:null,valueMaxYear:null,applyInAdjustments:null},chartCategories:[],chartData:[]};missPlotData={plot1:{chartCategories:[],chartData:{all:[],female:[],male:[]}},plot2:{chartCategories:[],chartData:{all:[],female:[],male:[]}},plot3:{chartData:{all:[],female:[],male:[]}},plot4:{chartCategories:[],chartData:{all:[],female:[],male:[]}}};missPlotSelection="all";repDelPlotData={chartData:{all:{q95:0,series:[]},female:{q95:0,series:[]},male:{q95:0,series:[]}}};repDelPlotSelection="all";dispose=null;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{selectedCount:ja.LO,totalCount:ja.LO,diagYearPlotData:ja.LO,notifQuarterPlotData:ja.LO,missPlotData:ja.LO,missPlotSelection:ja.LO,repDelPlotData:ja.LO,repDelPlotSelection:ja.LO,reset:ja.aD,setSelectedCount:ja.aD,setTotalCount:ja.aD,setDiagYearPlotData:ja.aD,setDiagYearFilterApply:ja.aD,setDiagYearFilterMinYear:ja.aD,setDiagYearFilterMaxYear:ja.aD,setNotifQuarterPlotData:ja.aD,setNotifQuarterFilterApply:ja.aD,setNotifQuarterFilterMinYear:ja.aD,setNotifQuarterFilterMaxYear:ja.aD,setMissPlotData:ja.aD,setMissPlotSelection:ja.aD,setRepDelPlotData:ja.aD,setRepDelPlotSelection:ja.aD,notifQuarterSliderMarks:ja.Fl,notifQuarterChartCategories:ja.Fl,missPlot1Series:ja.Fl,missPlot2Series:ja.Fl,missPlot3Series:ja.Fl,missPlot4Series:ja.Fl,repDelPlot:ja.Fl,missPlot3Categories:ja.Fl,missPlot4Categories:ja.Fl,filters:ja.Fl,setUIState:ja.aD}),this.dispose=(0,ja.U5)((()=>this.filters),(e=>{console.log("Filters changed"),this.rootMgr.inputValueSet("summaryFilters",e)}),{delay:1e3})}setSelectedCount=e=>this.selectedCount=e;setTotalCount=e=>this.totalCount=e;setDiagYearPlotData=e=>this.diagYearPlotData=e;setDiagYearFilterApply=e=>this.diagYearPlotData.filter.applyInAdjustments=e;setDiagYearFilterMinYear=e=>{this.diagYearPlotData.filter.valueMinYear!==e&&(this.diagYearPlotData.filter.valueMinYear=e)};setDiagYearFilterMaxYear=e=>{this.diagYearPlotData.filter.valueMaxYear!==e&&(this.diagYearPlotData.filter.valueMaxYear=e)};setNotifQuarterPlotData=e=>this.notifQuarterPlotData=e;setNotifQuarterFilterApply=e=>this.notifQuarterPlotData.filter.applyInAdjustments=e;setNotifQuarterFilterMinYear=e=>{this.notifQuarterPlotData.filter.valueMinYear!==e&&(this.notifQuarterPlotData.filter.valueMinYear=e)};setNotifQuarterFilterMaxYear=e=>{this.notifQuarterPlotData.filter.valueMaxYear!==e&&(this.notifQuarterPlotData.filter.valueMaxYear=e)};setMissPlotData=e=>this.missPlotData=e;setMissPlotSelection=e=>this.missPlotSelection=e;setRepDelPlotData=e=>this.repDelPlotData=e;setRepDelPlotSelection=e=>this.repDelPlotSelection=e;get notifQuarterSliderMarks(){return this.notifQuarterPlotData.chartCategories.map((e=>({value:e,label:""})))}get notifQuarterChartCategories(){return this.notifQuarterPlotData.chartCategories.map((e=>at(e)))}get missPlot1Series(){return this.missPlotData.plot1.chartData[this.missPlotSelection]}get missPlot2Series(){return this.missPlotData.plot2.chartData[this.missPlotSelection]}get missPlot3Series(){const e=this.missPlotData.plot3.chartData[this.missPlotSelection];let t=["Present","Missing"].map((t=>e.map((e=>e.name===t?e.y:0))));return t[2]=e.map((e=>ut(e.y))),t}get missPlot4Series(){return this.missPlotData.plot4.chartData[this.missPlotSelection]}get repDelPlot(){const e=(0,ja.ZN)(this.repDelPlotData.chartData[this.repDelPlotSelection]);return{q95:e.q95,series:[{name:"density",data:e.series}]}}get missPlot3Categories(){return this.missPlotData.plot3.chartData[this.missPlotSelection].map((e=>`${(100*e.y).toFixed(2)} %`))}get missPlot4Categories(){return this.missPlotData.plot4.chartCategories}get filters(){return{DiagYear:{ApplyInAdjustments:this.diagYearPlotData.filter.applyInAdjustments,MinYear:this.diagYearPlotData.filter.valueMinYear,MaxYear:this.diagYearPlotData.filter.valueMaxYear},NotifQuarter:{ApplyInAdjustments:this.notifQuarterPlotData.filter.applyInAdjustments,MinYear:this.notifQuarterPlotData.filter.valueMinYear,MaxYear:this.notifQuarterPlotData.filter.valueMaxYear}}}reset=()=>{this.selectedCount=null,this.totalCount=null,this.diagYearPlotData={filter:{scaleMinYear:null,scaleMaxYear:null,valueMinYear:null,valueMaxYear:null,applyInAdjustments:null},chartCategories:[],chartData:[]},this.notifQuarterPlotData={filter:{scaleMinYear:null,scaleMaxYear:null,valueMinYear:null,valueMaxYear:null,applyInAdjustments:null},chartCategories:[],chartData:[]},this.missPlotData={plot1:{chartCategories:[],chartData:{all:[],female:[],male:[]}},plot2:{chartCategories:[],chartData:{all:[],female:[],male:[]}},plot3:{chartData:{all:[],female:[],male:[]}},plot4:{chartCategories:[],chartData:{all:[],female:[],male:[]}}},this.missPlotSelection="all",this.repDelPlotData={chartData:{all:{q95:0,series:[]},female:{q95:0,series:[]},male:{q95:0,series:[]}}},this.repDelPlotSelection="all"};setUIState=e=>{this.dispose(),this.selectedCount=e.selectedCount,this.totalCount=e.totalCount,this.diagYearPlotData=e.diagYearPlotData,this.notifQuarterPlotData=e.notifQuarterPlotData,this.missPlotData=e.missPlotData,this.missPlotSelection=e.missPlotSelection,this.repDelPlotData=e.repDelPlotData,this.repDelPlotSelection=e.repDelPlotSelection,this.dispose=(0,ja.U5)((()=>this.filters),(e=>{console.log("Filters changed"),this.rootMgr.inputValueSet("summaryFilters",e)}),{delay:1e3,fireImmediately:!1})}}class Xa{rootMgr=null;miAdjustType="none";miJomoSettings={nimp:5,nburn:1e3,nbetween:500,nsdf:4,imputeRD:!1};miMiceSettings={nimp:5,nit:10,nsdf:4,imputeRD:!1};rdAdjustType="none";dataBounds={startYear:2e3,endYear:2017,endQrt:1};rdWithoutTrendSettings={startYear:2e3,endYear:2017,endQrt:1,stratGender:!1,stratTrans:!1,stratMigr:!1};rdWithTrendSettings={startYear:2e3,endYear:2017,endQrt:1,stratGender:!1,stratTrans:!1,stratMigr:!1};adjustmentsRunProgress=null;adjustmentsRunLog=null;adjustmentsReport=null;runAdjustmentsTypes=[];constructor(e){this.rootMgr=e,(0,ja.rC)(this,{miAdjustType:ja.LO,miJomoSettings:ja.LO,miMiceSettings:ja.LO,rdAdjustType:ja.LO,rdWithoutTrendSettings:ja.LO,rdWithTrendSettings:ja.LO,adjustmentsRunProgress:ja.LO,adjustmentsRunLog:ja.LO,adjustmentsReport:ja.LO,runAdjustmentsTypes:ja.LO,miParams:ja.Fl,rdParams:ja.Fl,adjustmentSelected:ja.Fl,adjustmentsRunInProgress:ja.Fl,setRunAdjustmentsTypes:ja.aD,setMIAdjustType:ja.aD,setRDAdjustType:ja.aD,setMIJomoNimp:ja.aD,setMIJomoNburn:ja.aD,setMIJomoNbetween:ja.aD,setMIJomoNsdf:ja.aD,setMIJomoImputeRD:ja.aD,setMIMiceNimp:ja.aD,setMIMiceNit:ja.aD,setMIMiceNsdf:ja.aD,setMIMiceImputeRD:ja.aD,restoreMIDefaults:ja.aD,restoreRDDefaults:ja.aD,setRDWithoutStartYear:ja.aD,setRDWithoutEndYear:ja.aD,setRDWithoutEndQrt:ja.aD,setRDWithoutStratGender:ja.aD,setRDWithoutStratTrans:ja.aD,setRDWithoutStratMigr:ja.aD,setRDWithStartYear:ja.aD,setRDWithEndYear:ja.aD,setRDWithEndQrt:ja.aD,setRDWithStratGender:ja.aD,setRDWithStratTrans:ja.aD,setRDWithStratMigr:ja.aD,runAdjustments:ja.aD,cancelAdjustments:ja.aD,setAdjustmentsRunProgress:ja.aD,setAdjustmentsRunLog:ja.aD,setAdjustmentsReport:ja.aD,setDataBounds:ja.aD,setUIState:ja.aD}),(0,ja.EH)((()=>{this.rootMgr.uiStateMgr.setSubPageDisabledStatus(3,1,!this.adjustmentSelected)}))}get miParams(){let e=null;return"jomo"===this.miAdjustType?e=this.miJomoSettings:"mice"===this.miAdjustType&&(e=this.miMiceSettings),e}get rdParams(){let e=null;return"withoutTrend"===this.rdAdjustType?e=this.rdWithoutTrendSettings:"withTrend"===this.rdAdjustType&&(e=this.rdWithTrendSettings),e}get adjustmentSelected(){return"none"!==this.miAdjustType||"none"!==this.rdAdjustType}get adjustmentsRunInProgress(){return null!==this.adjustmentsRunProgress}setRunAdjustmentsTypes=e=>this.runAdjustmentsTypes=Pe(e);setMIAdjustType=e=>this.miAdjustType=e;setMIJomoNimp=e=>this.miJomoSettings.nimp=e;setMIJomoNburn=e=>this.miJomoSettings.nburn=e;setMIJomoNbetween=e=>this.miJomoSettings.nbetween=e;setMIJomoNsdf=e=>this.miJomoSettings.nsdf=e;setMIJomoImputeRD=e=>this.miJomoSettings.imputeRD=e;setMIMiceNimp=e=>this.miMiceSettings.nimp=e;setMIMiceNit=e=>this.miMiceSettings.nit=e;setMIMiceNsdf=e=>this.miMiceSettings.nsdf=e;setMIMiceImputeRD=e=>this.miMiceSettings.imputeRD=e;restoreMIDefaults=e=>{"jomo"===e?this.miJomoSettings={nimp:5,nburn:1e3,nbetween:500,nsdf:4,imputeRD:!1}:"mice"===e&&(this.miMiceSettings={nimp:5,nit:5,nsdf:4,imputeRD:!1})};setRDAdjustType=e=>this.rdAdjustType=e;setRDWithoutStartYear=e=>this.rdWithoutTrendSettings.startYear=e;setRDWithoutEndYear=e=>this.rdWithoutTrendSettings.endYear=e;setRDWithoutEndQrt=e=>this.rdWithoutTrendSettings.endQrt=e;setRDWithoutStratGender=e=>this.rdWithoutTrendSettings.stratGender=e;setRDWithoutStratTrans=e=>this.rdWithoutTrendSettings.stratTrans=e;setRDWithoutStratMigr=e=>this.rdWithoutTrendSettings.stratMigr=e;setRDWithStartYear=e=>this.rdWithTrendSettings.startYear=e;setRDWithEndYear=e=>this.rdWithTrendSettings.endYear=e;setRDWithEndQrt=e=>this.rdWithTrendSettings.endQrt=e;setRDWithStratGender=e=>this.rdWithTrendSettings.stratGender=e;setRDWithStratTrans=e=>this.rdWithTrendSettings.stratTrans=e;setRDWithStratMigr=e=>this.rdWithTrendSettings.stratMigr=e;setDataBounds=e=>this.dataBounds=e;restoreRDDefaults=e=>{"withoutTrend"===e?this.rdWithoutTrendSettings={startYear:this.dataBounds.startYear,endYear:this.dataBounds.endYear,endQrt:this.dataBounds.endQrt,stratGender:!1,stratTrans:!1,stratMigr:!1}:"withTrend"===e&&(this.rdWithTrendSettings={startYear:this.dataBounds.startYear,endYear:this.dataBounds.endYear,endQrt:this.dataBounds.endQrt,stratGender:!1,stratTrans:!1,stratMigr:!1})};runAdjustments=()=>{this.rootMgr.btnClicked("runAdjustBtn",{MIAdjustType:this.miAdjustType,MIParams:this.miParams,RDAdjustType:this.rdAdjustType,RDParams:this.rdParams})};cancelAdjustments=()=>this.rootMgr.btnClicked("cancelAdjustBtn");setAdjustmentsRunProgress=e=>this.adjustmentsRunProgress=e;setAdjustmentsRunLog=e=>this.adjustmentsRunLog=e;setAdjustmentsReport=e=>this.adjustmentsReport=e;setUIState=e=>{this.miAdjustType=e.miAdjustType,this.miJomoSettings=e.miJomoSettings,this.miMiceSettings=e.miMiceSettings,this.rdAdjustType=e.rdAdjustType,this.dataBounds=e.dataBounds,this.rdWithoutTrendSettings=e.rdWithoutTrendSettings,this.rdWithTrendSettings=e.rdWithTrendSettings,this.adjustmentsRunProgress=e.adjustmentsRunProgress,this.adjustmentsRunLog=e.adjustmentsRunLog,this.adjustmentsReport=e.adjustmentsReport}}class er{rootMgr=null;availableVariables=[];availableStrata={};populations=[];constructor(e){this.rootMgr=e,(0,ja.rC)(this,{availableVariables:ja.LO,availableStrata:ja.LO,populations:ja.LO,addEmptyPopulation:ja.aD,removePopulations:ja.aD,setPopulationVariables:ja.aD,setAvailableVariables:ja.aD,setAvailableStrata:ja.aD,populationsJS:ja.Fl,availableVarNames:ja.Fl,definedPopulations:ja.Fl})}addEmptyPopulation=()=>{this.populations.push({id:Ua("Population"),variables:[],variablesKey:null,strata:[]})};setAvailableVariables=e=>{null==e&&(e=[]),this.availableVariables=e,this.populations=[]};setAvailableStrata=e=>{null==e&&(e={}),this.availableStrata=e,this.populations=[]};removePopulations=e=>{this.populations=xe(this.populations,e)};setPopulationVariables=(e,t)=>{var a,r;this.populations[e].variables=(a=this.availableVarNames,r=t,a.filter((e=>-1!==r.indexOf(e)))),this.populations[e].variablesKey=this.populations[e].variables.join(", "),this.populations[e].strata=this.availableStrata[this.populations[e].variablesKey]};get populationsJS(){return(0,ja.ZN)(this.populations)}get availableVarNames(){return this.availableVariables.map((e=>e.Name))}get definedPopulations(){return[...new Set(this.populations.map((e=>e.strata.map((e=>e.Combination)))).flat())]}setUIState=e=>{this.availableVariables=e.availableVariables,this.availableStrata=e.availableStrata,this.populations=e.populations}}class tr{parentMgr=null;combinations=new Map;selectedCombination=null;combinationAllId=null;constructor(e){this.parentMgr=e,(0,ja.rC)(this,{combinations:ja.LO,combinationAllId:ja.LO,selectedCombination:ja.LO,addEmptyCombination:ja.aD,removeCombinations:ja.aD,setSelectedCombination:ja.aD,setCombinationName:ja.aD,setCombinationName:ja.aD,setCombinationCasePopulations:ja.aD,setCombinationAggrPopulations:ja.aD,syncCasePopulations:ja.aD,syncAggrPopulations:ja.aD,combinationAll:ja.Fl,combinationsArray:ja.Fl,combinationsNames:ja.Fl});const t=Ua("combination");this.addEmptyCombination(t,"All data"),this.setSelectedCombination(t),this.combinationAllId=t,(0,ja.EH)((()=>{this.syncCasePopulations(this.parentMgr.popMgr.definedPopulations)})),(0,ja.EH)((()=>{this.syncAggrPopulations(this.parentMgr.aggrDataMgr.populationNames)}))}addEmptyCombination=(e=null,t=null)=>{x(e)&&(e=Ua("combination")),x(t)&&(t=`Combination ${Va("Combination ",this.combinationsNames)}`);const a={id:e,name:t,casePopulations:[],aggrPopulations:[]};return this.combinations.set(e,a),e};removeCombinations=e=>{e.forEach((e=>{this.combinations.has(e)&&this.combinations.delete(e)})),this.selectedCombination=this.combinationsArray[this.combinationsArray.length-1]};setSelectedCombination=e=>{this.combinations.has(e)&&(this.selectedCombination=this.combinations.get(e))};setCombinationName=(e,t)=>{this.combinations.has(e)&&(this.combinations.get(e).name=t)};setCombinationCasePopulations=(e,t)=>{this.combinations.has(e)&&(this.combinations.get(e).casePopulations=t)};setCombinationAggrPopulations=(e,t)=>{this.combinations.has(e)&&(this.combinations.get(e).aggrPopulations=t)};syncCasePopulations=e=>{this.combinations.forEach((t=>{t.casePopulations=t.casePopulations.filter((t=>e.includes(t)))}))};syncAggrPopulations=e=>{this.combinations.forEach((t=>{t.aggrPopulations=t.aggrPopulations.filter((t=>e.includes(t)))})),this.combinationAll.aggrPopulations=e};get combinationAll(){return this.combinations.has(this.combinationAllId)?this.combinations.get(this.combinationAllId):null}get combinationsArray(){return Array.from(this.combinations.values())}get combinationsNames(){return this.combinationsArray.map((e=>e.name))}setUIState=e=>{this.combinations=new Map;for(const[t,a]of Object.entries(e.combinations))this.combinations.set(t,a);this.setSelectedCombination(e.selectedCombination),this.combinationAllId=e.combinationAllId}}class ar{parentMgr=null;constructor(e,t,a=null){this.parentMgr=e,this.id=Ua("timeIntervals"),this.name=t,this.minYear=e.minYear,this.maxYear=e.maxYear,x(a)?this.createIntervals(this.minYear,this.maxYear,5,1984):this.intervals=a,(0,ja.rC)(this,{id:ja.LO,name:ja.LO,intervals:ja.LO,minYear:ja.LO,maxYear:ja.LO,setMinYear:ja.aD,setMaxYear:ja.aD,setIntervals:ja.aD,addInterval:ja.aD,addEmptyInterval:ja.aD,removeIntervals:ja.aD,setId:ja.aD,setName:ja.aD,setIntervalStartYear:ja.aD,setIntervalJump:ja.aD,setIntervalChangeInInterval:ja.aD,setIntervalDiffByCD4:ja.aD,intervalsJS:ja.Fl,maxStartYear:ja.Fl})}id=null;name="";intervals=[];minYear=null;maxYear=null;setId=e=>this.id=e;setName=e=>this.name=e;setMinYear=e=>{this.minYear=e,this.intervals.forEach((e=>e.startYear=Math.max(this.minYear,e.startYear))),this.reinitializeEndYears()};setMaxYear=e=>{this.maxYear=e,this.reinitializeEndYears()};setIntervals=(e,t,a)=>{this.minYear=e,this.maxYear=t,this.intervals=a};createIntervals=(e,t,a,r=0)=>{if(a>0){this.minYear=e,this.maxYear=t;let n=e;for(let l=0;l0&&r>=e&&(i=e,o=r),this.addInterval(i,o,0!==l,!1,!1),n=o,o===t)break}}};addInterval=(e,t,a,r,n)=>{this.intervals.push({startYear:e,endYear:t,jump:a,changeInInterval:r,diffByCD4:n})};addEmptyInterval=()=>{this.addInterval(this.maxStartYear,this.maxYear,!1,!1,!1),this.reinitializeEndYears()};removeIntervals=e=>{e.length===this.intervals.length&&(e=xe(e,0)),this.intervals=xe(this.intervals,e),this.reinitializeEndYears()};setIntervalStartYear=(e,t)=>{t>=this.minYear&&t<=this.maxYear&&(this.intervals[e].startYear=t,this.reinitializeEndYears())};setIntervalJump=(e,t)=>this.intervals[e].jump=t;setIntervalChangeInInterval=(e,t)=>this.intervals[e].changeInInterval=t;setIntervalDiffByCD4=(e,t)=>this.intervals[e].diffByCD4=t;get intervalsJS(){return(0,ja.ZN)(this.intervals)}get maxStartYear(){return 0===this.intervals.length?this.minYear:Math.max.apply(null,this.intervals.map((e=>e.startYear)))}reinitializeEndYears=()=>{const e=this.intervals.length;if(e>0){this.intervals[0].startYear=this.minYear,this.intervals.sort(((e,t)=>e.startYear{this.collections.forEach((e=>e.setMinYear(this.minYear)))})),(0,ja.EH)((()=>{this.collections.forEach((e=>e.setMaxYear(this.maxYear)))}))}collections=new Map;minYear=null;maxYear=null;selectedEditCollectionId=null;selectedRunCollectionId=null;setIntervals=(e,t,a)=>{x(this.selectedEditCollection)||this.selectedEditCollection.setIntervals(e,t,a)};setMinYear=e=>this.minYear=e;setMaxYear=e=>this.maxYear=e;addNewCollection=(e=null,t=null)=>{x(e)&&(e=0===this.collections.size?"Default":`Set ${Va("Set ",this.collectionsNames)}`);const a=new ar(this,e,t);this.collections.set(a.id,a),this.selectedEditCollectionId=a.id};deleteSelectedEditCollection=()=>{this.collections.has(this.selectedEditCollectionId)&&this.collections.delete(this.selectedEditCollectionId);const e=(0,ja.XP)(this.collections);this.selectedEditCollectionId=e[e.length-1],this.selectedRunCollectionId=this.selectedEditCollectionId};setSelectedEditCollectionId=e=>this.selectedEditCollectionId=e;setSelectedRunCollectionId=e=>this.selectedRunCollectionId=e;get selectedEditCollection(){let e=null;return this.collections.has(this.selectedEditCollectionId)&&(e=this.collections.get(this.selectedEditCollectionId)),e}get selectedRunCollection(){let e=null;return this.collections.has(this.selectedRunCollectionId)&&(e=this.collections.get(this.selectedRunCollectionId)),e}get defaultEditCollectionSelected(){return"DEFAULT"===this.selectedEditCollection.name.toUpperCase()}get collectionsArray(){return(0,ja.VO)(this.collections)}get collectionsNames(){return this.collectionsArray.map((e=>e.name))}setParentMgr=e=>this.parentMgr=e;setCollections=e=>{this.collections=new Map;for(const[t,a]of Object.entries(e)){const e=new ar(this,a.name,a.intervals);e.setId(a.id),e.setMinYear(a.minYear),e.setMaxYear(a.maxYear),this.collections.set(e.id,e)}}}const nr=(e,t,a,r=null)=>{let n=e.createElement(a);return x(r)||(n.innerHTML=r),t.appendChild(n),n},lr=e=>{{var t=(new DOMParser).parseFromString(e,"text/xml"),a=(new DOMParser).parseFromString(['',' ',' ',' '," ",' ',' '," ",' ',""].join("\n"),"text/xml");const r=new XSLTProcessor;r.importStylesheet(a);const n=r.transformToDocument(t);return(new XMLSerializer).serializeToString(n)}},ir=e=>e<10?"0"+e:e;var sr=a(2160),or=a.n(sr);class mr{id="ModelsManager";parentMgr=null;timeIntCollMgr=null;constructor(e){this.parentMgr=e,this.timeIntCollMgr=new rr(this),(0,ja.rC)(this,{modelsParamFile:ja.LO,modelsParamFileName:ja.LO,rangeYears:ja.LO,optimalYears:ja.LO,minYear:ja.LO,maxYear:ja.LO,minFitPos:ja.LO,maxFitPos:ja.LO,minFitCD4:ja.LO,maxFitCD4:ja.LO,minFitAIDS:ja.LO,maxFitAIDS:ja.LO,minFitHIVAIDS:ja.LO,maxFitHIVAIDS:ja.LO,fullData:ja.LO,knotsCount:ja.LO,startIncZero:ja.LO,maxIncCorr:ja.LO,distributionFit:ja.LO,delta4Fac:ja.LO,country:ja.LO,modelsRunProgress:ja.LO,modelsRunLog:ja.LO,bootstrapRunProgress:ja.LO,bootstrapRunLog:ja.LO,bootstrapCount:ja.LO,bootstrapType:ja.LO,plotData:ja.LO,migrConnFlag:ja.LO,showConfBounds:ja.LO,setModelsParamFile:ja.aD,saveModelsParamFile:ja.aD,setModelsParamFileName:ja.aD,setMinYear:ja.aD,setMaxYear:ja.aD,setMinFitPos:ja.aD,setMaxFitPos:ja.aD,setMinFitCD4:ja.aD,setMaxFitCD4:ja.aD,setMinFitAIDS:ja.aD,setMaxFitAIDS:ja.aD,setMinFitHIVAIDS:ja.aD,setMaxFitHIVAIDS:ja.aD,setFullData:ja.aD,setKnotsCount:ja.aD,setStartIncZero:ja.aD,setMaxIncCorr:ja.aD,setDistributionFit:ja.aD,setDelta4Fac:ja.aD,setCountry:ja.aD,setBootstrapCount:ja.aD,setBootstrapType:ja.aD,setRangeYears:ja.aD,setOptimalYears:ja.aD,runModels:ja.aD,cancelModels:ja.aD,setModelsRunProgress:ja.aD,setModelsRunLog:ja.aD,runBootstrap:ja.aD,cancelBootstrap:ja.aD,setMigrConnFlag:ja.aD,setShowConfBounds:ja.aD,modelsRunInProgress:ja.Fl,bootstrapRunInProgress:ja.Fl,gofTable1Data:ja.Fl,gofTable2Data:ja.Fl,gofTable3Data:ja.Fl,gofTable4Data:ja.Fl,gofTable5Data:ja.Fl,gofTable6Data:ja.Fl,gofTable7Data:ja.Fl,gofPlot1Data:ja.Fl,gofPlot2Data:ja.Fl,gofPlot3Data:ja.Fl,gofPlot4Data:ja.Fl,gofPlot5Data:ja.Fl,gofPlot6Data:ja.Fl,gofPlot7Data:ja.Fl,outputTable1Data:ja.Fl,outputTable2Data:ja.Fl,outputTable3Data:ja.Fl,outputTable4Data:ja.Fl,outputPlot1Data:ja.Fl,outputPlot2Data:ja.Fl,outputPlot3Data:ja.Fl,outputPlot4Data:ja.Fl,mainOutputTableData:ja.Fl}),(0,ja.EH)((()=>{this.timeIntCollMgr.setMinYear(this.minYear)})),(0,ja.EH)((()=>{this.timeIntCollMgr.setMaxYear(this.maxYear)})),(0,ja.EH)((()=>this.parentMgr.inputValueSet("migrConnFlag",this.migrConnFlag)),{delay:1e3})}modelsParamFile=null;modelsParamFileName="";rangeYears=null;optimalYears=null;minYear=1980;maxYear=2016;minFitPos=1979;maxFitPos=1979;minFitCD4=1984;maxFitCD4=2016;minFitAIDS=1980;maxFitAIDS=1995;minFitHIVAIDS=1996;maxFitHIVAIDS=2016;fullData=!0;knotsCount=4;startIncZero=!0;maxIncCorr=!0;distributionFit="POISSON";delta4Fac=0;country="OTHER";bootstrapCount=100;bootstrapType="PARAMETRIC";modelsRunProgress=null;modelsRunLog=null;bootstrapRunProgress=null;bootstrapRunLog=null;migrConnFlag=!1;showConfBounds=!0;plotData=null;colsDescriptions={N_HIV_D:"Data",N_HIV_Obs_M:"Model",N_CD4_1_D:"Data",N_CD4_1_Obs_M:"Model",N_CD4_2_D:"Data",N_CD4_2_Obs_M:"Model",N_CD4_3_D:"Data",N_CD4_3_Obs_M:"Model",N_CD4_4_D:"Data",N_CD4_4_Obs_M:"Model",N_HIVAIDS_D:"Data",N_HIVAIDS_Obs_M:"Model",N_AIDS_D:"Data",N_AIDS_M:"Model",N_Inf_M:"New incident infections",NewMigrantInfectionsPerArrYear:"New arrivals of infected migrants",InfectionsTotal:"Total",t_diag:"Time to diagnosis",N_Alive_Diag_M:"Diagnosed from model",CumNewMigrantDiagnosesPerDiagYear:"Diagnosed migrants",N_Und:"Undiagnosed from model",CumUndiagnosedMigrantCases:"Undiagnosed migrants",AliveTotal:"Alive",N_Und_Alive_p:"Proportion of undiagnosed",UndiagnosedFrac:"Proportion of undiagnosed"};setModelsParamFile=e=>{e&&(this.modelsParamFile=e,this.modelsParamFileName=e.name,(e=>{const t=new FileReader;return new Promise(((a,r)=>{t.onload=e=>{a(e.target.result)},t.onerror=r,t.readAsText(e)}))})(this.modelsParamFile).then((0,ja.aD)("success",(e=>{this.parentMgr.btnClicked("xmlModel",e)})),(0,ja.aD)("error",(e=>console.log(e)))))};saveModelsParamFile=()=>{let e=(new DOMParser).parseFromString("","text/xml"),t=e.getElementsByTagName("Model")[0];nr(e,t,"FileVersion",2);let a=nr(e,t,"Meta");nr(e,a,"Name","HIVModel"),nr(e,a,"Author","HIV Platform"),nr(e,a,"Description","Model file exported by HIV Platform"),nr(e,a,"InputDataPath","./"),nr(e,a,"OutputResultsPath","./");let r=nr(e,a,"RiskGroups"),n=nr(e,r,"RiskGroup");nr(e,n,"Name","Default"),nr(e,n,"CreatedByDefault",!0),nr(e,n,"FitMinYear",this.minYear);let l=nr(e,n,"RiskCategories");(0,ja.ZN)(this.parentMgr.aggrDataMgr.populationNames).forEach((t=>{let a=nr(e,l,"RiskCategory");nr(e,a,"Name",t),nr(e,a,"IsSelected",!0)}));let i=nr(e,t,"IncidenceModel");nr(e,i,"Run","True"),nr(e,i,"MinYear",this.minYear),nr(e,i,"MaxYear",this.maxYear),nr(e,i,"MinFitPos",this.minFitPos),nr(e,i,"MaxFitPos",this.maxFitPos),nr(e,i,"MinFitCD4",this.minFitCD4),nr(e,i,"MaxFitCD4",this.maxFitCD4),nr(e,i,"MinFitAIDS",this.minFitAIDS),nr(e,i,"MaxFitAIDS",this.maxFitAIDS),nr(e,i,"MinFitHIVAIDS",this.minFitHIVAIDS),nr(e,i,"MaxFitHIVAIDS",this.maxFitHIVAIDS),nr(e,i,"Country",this.country),nr(e,i,"KnotsCount",this.knotsCount),nr(e,i,"StartIncZer",this.startIncZero),nr(e,i,"DistributionFit",this.distributionFit),nr(e,i,"RDisp",50),nr(e,i,"Delta4Fac",this.delta4Fac),nr(e,i,"MaxIncCorr",this.maxIncCorr),nr(e,i,"SplineType","B-splines"),nr(e,i,"FullData",this.fullData);let s=nr(e,i,"Bootstrap");nr(e,s,"StartIter",0),nr(e,s,"IterCount",this.bootstrapCount);let o=nr(e,i,"DiagnosisRates");(0,ja.ZN)(this.timeIntCollMgr.selectedRunCollection.intervals).forEach((t=>{let a=nr(e,o,"Interval");nr(e,a,"Description","Test"),nr(e,a,"StartYear",t.startYear),nr(e,a,"Jump",t.jump),nr(e,a,"ChangingInInterval",t.changeInInterval),nr(e,a,"DifferentByCD4",t.diffByCD4)}));let m=nr(e,t,"LondonModel");nr(e,m,"Run",!1),nr(e,m,"RunType1",!0),nr(e,m,"RunType2",!0),nr(e,m,"MinYear",this.minYear),nr(e,m,"MaxYear",this.maxYear),nr(e,m,"BootstrapIterCount",5e4),nr(e,m,"RateW",2);const c=(new XMLSerializer).serializeToString(e),u=new Blob([['',lr(c)].join("\n")],{type:"text/xml"}),d=((e,t="dd/mm/yyyy")=>{var a=e.getDate(),r=e.getMonth(),n=e.getFullYear(),l=e.getHours(),i=e.getMinutes(),s=e.getSeconds(),o=e.getMilliseconds(),m=ir(l),c=ir(i),u=ir(s),d=ir(a),g=r+1,p=ir(g),h=n+"",E=h.substring(2,2);return t.replace("hh",m).replace("h",l).replace("mm",c).replace("m",i).replace("ss",u).replace("s",s).replace("S",o).replace("dd",d).replace("d",a).replace("MM",p).replace("M",g).replace("yyyy",h).replace("yy",E)})(new Date,"yyyyMMdd_hhmmss");or().saveAs(u,`HIVModel_${d}.xml`)};setModelsParamFileName=e=>this.modelsParamFileName=e;setRangeYears=e=>this.rangeYears=e;setOptimalYears=e=>{this.optimalYears=e,this.setMinYear(e.All[0]),this.setMaxYear(e.All[1]),this.setMinFitPos(e.HIV[0]),this.setMaxFitPos(e.HIV[1]),this.setMinFitCD4(e.HIVCD4[0]),this.setMaxFitCD4(e.HIVCD4[1]),this.setMinFitAIDS(e.AIDS[0]),this.setMaxFitAIDS(e.AIDS[1]),this.setMinFitHIVAIDS(e.HIVAIDS[0]),this.setMaxFitHIVAIDS(e.HIVAIDS[1])};setMinYear=e=>this.minYear=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMaxYear=e=>this.maxYear=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMinFitPos=e=>this.minFitPos=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMaxFitPos=e=>this.maxFitPos=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMinFitCD4=e=>this.minFitCD4=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMaxFitCD4=e=>this.maxFitCD4=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMinFitAIDS=e=>this.minFitAIDS=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMaxFitAIDS=e=>this.maxFitAIDS=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMinFitHIVAIDS=e=>this.minFitHIVAIDS=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setMaxFitHIVAIDS=e=>this.maxFitHIVAIDS=Math.min(Math.max(this.optimalYears.All[0]-1,parseInt(e)),this.optimalYears.All[1]);setFullData=e=>this.fullData=e;setKnotsCount=e=>this.knotsCount=e;setStartIncZero=e=>this.startIncZero=e;setMaxIncCorr=e=>this.maxIncCorr=e;setDistributionFit=e=>this.distributionFit=e;setDelta4Fac=e=>this.delta4Fac=parseFloat(e);setCountry=e=>this.country=e;setBootstrapCount=e=>this.bootstrapCount=e;setBootstrapType=e=>this.bootstrapType=e;setPlotData=e=>this.plotData=e;setModelsRunProgress=e=>this.modelsRunProgress=e;setModelsRunLog=e=>this.modelsRunLog=e;runModels=()=>{const e={minYear:this.minYear,maxYear:this.maxYear,minFitPos:this.minFitPos,maxFitPos:this.maxFitPos,minFitCD4:this.minFitCD4,maxFitCD4:this.maxFitCD4,minFitAIDS:this.minFitAIDS,maxFitAIDS:this.maxFitAIDS,minFitHIVAIDS:this.minFitHIVAIDS,maxFitHIVAIDS:this.maxFitHIVAIDS,fullData:this.fullData,knotsCount:this.knotsCount,startIncZero:this.startIncZero,maxIncCorr:this.maxIncCorr,distributionFit:this.distributionFit,delta4Fac:this.delta4Fac,country:this.country,timeIntervals:(0,ja.ZN)(this.timeIntCollMgr.selectedRunCollection.intervals),popCombination:(0,ja.ZN)(this.parentMgr.popCombMgr.selectedCombination)};this.parentMgr.btnClicked("runModelBtn:HIVModelParams",e)};cancelModels=()=>this.parentMgr.btnClicked("cancelModelBtn");setBootstrapRunProgress=e=>this.bootstrapRunProgress=e;setBootstrapRunLog=e=>this.bootstrapRunLog=e;runBootstrap=()=>this.parentMgr.btnClicked("runBootstrapBtn",{count:this.bootstrapCount,type:this.bootstrapType});cancelBootstrap=()=>this.parentMgr.btnClicked("cancelBootstrapBtn");setMigrConnFlag=e=>this.migrConnFlag=e;setShowConfBounds=e=>this.showConfBounds=e;get modelsRunInProgress(){return null!==this.modelsRunProgress}get bootstrapRunInProgress(){return null!==this.bootstrapRunProgress}get gofTable1Data(){return this.getTableData(["Year","N_HIV_D","N_HIV_Obs_M"])}get gofPlot1Data(){return[this.getPlotSeries("N_HIV_D"),this.getPlotSeries("N_HIV_Obs_M")]}get gofTable2Data(){return this.getTableData(["Year","N_CD4_1_D","N_CD4_1_Obs_M"])}get gofPlot2Data(){return[this.getPlotSeries("N_CD4_1_D"),this.getPlotSeries("N_CD4_1_Obs_M")]}get gofTable3Data(){return this.getTableData(["Year","N_CD4_2_D","N_CD4_2_Obs_M"])}get gofPlot3Data(){return[this.getPlotSeries("N_CD4_2_D"),this.getPlotSeries("N_CD4_2_Obs_M")]}get gofTable4Data(){return this.getTableData(["Year","N_CD4_3_D","N_CD4_3_Obs_M"])}get gofPlot4Data(){return[this.getPlotSeries("N_CD4_3_D"),this.getPlotSeries("N_CD4_3_Obs_M")]}get gofTable5Data(){return this.getTableData(["Year","N_CD4_4_D","N_CD4_4_Obs_M"])}get gofPlot5Data(){return[this.getPlotSeries("N_CD4_4_D"),this.getPlotSeries("N_CD4_4_Obs_M")]}get gofTable6Data(){return this.getTableData(["Year","N_HIVAIDS_D","N_HIVAIDS_Obs_M"])}get gofPlot6Data(){return[this.getPlotSeries("N_HIVAIDS_D"),this.getPlotSeries("N_HIVAIDS_Obs_M")]}get gofTable7Data(){return this.getTableData(["Year","N_AIDS_D","N_AIDS_M"])}get gofPlot7Data(){return[this.getPlotSeries("N_AIDS_D"),this.getPlotSeries("N_AIDS_M")]}get outputTable1Data(){return this.getTableData(["Year","N_Inf_M","NewMigrantDiagnosesPerArrYear","InfectionsTotal"])}get outputPlot1Data(){return[this.getPlotSeries("N_Inf_M"),this.getPlotSeries("NewMigrantDiagnosesPerArrYear"),this.getPlotSeries("InfectionsTotal")]}get outputTable2Data(){return this.getTableData(["Year","t_diag"])}get outputPlot2Data(){return[this.getPlotSeries("t_diag")]}get outputTable3Data(){return this.getTableData(["Year","N_Alive_Diag_M","CumNewMigrantDiagnosesPerDiagYear","N_Und","CumUndiagnosedMigrantCases","AliveTotal"])}get outputPlot3Data(){return[this.getPlotSeries("N_Alive_Diag_M"),this.getPlotSeries("CumNewMigrantDiagnosesPerDiagYear"),this.getPlotSeries("N_Und"),this.getPlotSeries("CumUndiagnosedMigrantCases"),this.getPlotSeries("AliveTotal")]}get outputTable4Data(){return this.migrConnFlag?this.getTableData(["Year","UndiagnosedFrac"]):this.getTableData(["Year","N_Und_Alive_p"])}get outputPlot4Data(){return this.migrConnFlag?[this.getPlotSeries("UndiagnosedFrac")]:[this.getPlotSeries("N_Und_Alive_p")]}get mainOutputTableData(){return this.getTableData(["Year","N_HIV_D","N_HIV_Obs_M","N_CD4_1_D","N_CD4_2_D","N_CD4_3_D","N_CD4_4_D","N_CD4_1_Obs_M","N_CD4_2_Obs_M","N_CD4_3_Obs_M","N_CD4_4_Obs_M","N_AIDS_D","N_AIDS_M","N_HIVAIDS_D","N_HIVAIDS_Obs_M","N_Inf_M","t_diag","t_diag_p25","t_diag_p50","t_diag_p75","N_Alive","N_Alive_Diag_M","N_Und","N_Und_Alive_p","N_Und_CD4_3_M","N_Und_CD4_4_M"])}getTableData=e=>{if(x(this.plotData))return null;{const t=this.plotData.Year.map(((t,a)=>e.map((e=>this.getTableEntry(e,a)))));return{colNames:e,values:t}}};getTableEntry=(e,t)=>{if("Year"===e)return this.plotData.Year[t];const a=this.plotData[e]?this.plotData[e][t]:null;if(x(a)||!isFinite(a))return"";if(!this.showConfBounds||!this.plotData[e+"_LB"]||!this.plotData[e+"_UB"])return ct(a);let r=this.plotData[e+"_LB"]?this.plotData[e+"_LB"][t]:null,n=this.plotData[e+"_UB"]?this.plotData[e+"_UB"][t]:null;return isFinite(r)&&!x(r)||(r=a),isFinite(n)&&!x(n)||(n=a),`${ct(a)} (${ct(r)} - ${ct(n)})`};getPlotSeries=e=>{if(x(this.plotData))return null;{const t=this.plotData.Year.map(((t,a)=>[t,this.plotData[e]?this.plotData[e][a]:null,this.plotData[e+"_LB"]?this.plotData[e+"_LB"][a]:null,this.plotData[e+"_UB"]?this.plotData[e+"_UB"][a]:null,!this.plotData[e+"_Used"]||this.plotData[e+"_Used"][a]]));return{name:this.colsDescriptions[e],values:t,selected:!0}}};setUIState=e=>{this.id=e.id,this.modelsParamFile=e.modelsParamFile,this.modelsParamFileName=e.modelsParamFileName,this.rangeYears=e.rangeYears,this.optimalYears=e.optimalYears,this.minYear=e.minYear,this.maxYear=e.maxYear,this.minFitPos=e.minFitPos,this.maxFitPos=e.maxFitPos,this.minFitCD4=e.minFitCD4,this.maxFitCD4=e.maxFitCD4,this.minFitAIDS=e.minFitAIDS,this.maxFitAIDS=e.maxFitAIDS,this.minFitHIVAIDS=e.minFitHIVAIDS,this.maxFitHIVAIDS=e.maxFitHIVAIDS,this.fullData=e.fullData,this.knotsCount=e.knotsCount,this.startIncZero=e.startIncZero,this.maxIncCorr=e.maxIncCorr,this.distributionFit=e.distributionFit,this.delta4Fac=e.delta4Fac,this.country=e.country,this.bootstrapCount=e.bootstrapCount,this.bootstrapType=e.bootstrapType,this.modelsRunProgress=e.modelsRunProgress,this.modelsRunLog=e.modelsRunLog,this.bootstrapRunProgress=e.bootstrapRunProgress,this.bootstrapRunLog=e.bootstrapRunLog,this.plotData=e.plotData;new rr(this)}}class cr{rootMgr=null;report=null;adjustReportParams={reportingDelay:!0,smoothing:!1,cd4ConfInt:!1};creatingReportInProgress=!1;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{report:ja.LO,adjustReportParams:ja.LO,creatingReportInProgress:ja.LO,setReport:ja.aD,setAdjustReportReportingDelay:ja.aD,setAdjustReportSmoothing:ja.aD,setAdjustReportCD4ConfInt:ja.aD,restoreDefaults:ja.aD,createReport:ja.aD,cancelCreatingReport:ja.aD,setCreatingReportInProgress:ja.aD})}setReport=e=>this.report=e;setAdjustReportReportingDelay=e=>this.adjustReportParams.reportingDelay=e;setAdjustReportSmoothing=e=>this.adjustReportParams.smoothing=e;setAdjustReportCD4ConfInt=e=>this.adjustReportParams.cd4ConfInt=e;setCreatingReportInProgress=e=>this.creatingReportInProgress=e;createReport=()=>{this.rootMgr.btnClicked("createReportBtn",Object.assign({name:"Main Report"},this.adjustReportParams))};cancelCreatingReport=()=>this.rootMgr.btnClicked("cancelCreatingReportBtn");restoreDefaults=()=>{this.adjustReportParams={reportingDelay:!0,smoothing:!1,cd4ConfInt:!1}};setUIState=e=>{this.report=e.report,this.adjustReportParams=e.adjustReportParams,this.creatingReportInProgress=e.creatingReportInProgress}}class ur{rootMgr=null;runProgress=null;runLog=null;inputStats=null;outputStats=null;outputPlots=null;confBounds=null;dataCompatibleFlag=null;yodRegion="ALL";tableRegion="ALL";propTableStrat=[];showConfBounds=!0;constructor(e){this.rootMgr=e,(0,ja.rC)(this,{runProgress:ja.LO,runLog:ja.LO,inputStats:ja.LO,outputStats:ja.LO,outputPlots:ja.LO,confBounds:ja.LO,yodRegion:ja.LO,tableRegion:ja.LO,propTableStrat:ja.LO,dataCompatibleFlag:ja.LO,showConfBounds:ja.LO,runInProgress:ja.Fl,missingness:ja.Fl,regionDistr:ja.Fl,yodDistr:ja.Fl,tableDistr:ja.Fl,arrivalPlotData:ja.Fl,diagnosisPlotData:ja.Fl,setRunProgress:ja.aD,setRunLog:ja.aD,setInputStats:ja.aD,setOutputStats:ja.aD,setOutputPlots:ja.aD,setConfBounds:ja.aD,setYodRegion:ja.aD,setTableRegion:ja.aD,setDataCompatibleFlag:ja.aD,setPropTableStrat:ja.aD,setShowConfBounds:ja.aD,run:ja.aD,cancel:ja.aD}),(0,ja.EH)((()=>this.rootMgr.inputValueSet("propTableStrat",(0,ja.ZN)(this.propTableStrat))),{delay:1e3}),(0,ja.EH)((()=>this.rootMgr.inputValueSet("migrRegion",(0,ja.ZN)(this.tableRegion))),{delay:1e3})}get runInProgress(){return null!==this.runProgress}get missingness(){let e=null;return x(this.inputStats)||x(this.inputStats.Missingness)||(e=this.inputStats.Missingness),e}get regionDistr(){let e=null;return x(this.inputStats)||x(this.inputStats.RegionDistr)||(e=this.inputStats.RegionDistr),e}get yodDistr(){let e=null;return""===this.yodRegion||x(this.inputStats)||x(this.inputStats.YODDistr)||(e=this.inputStats.YODDistr[this.yodRegion]),e}get tableDistr(){let e=null;return""===this.tableRegion||x(this.outputStats)||x(this.outputStats.TableDistr)||x(this.outputStats.TableDistr[this.tableRegion])||(e=this.outputStats.TableDistr[this.tableRegion]),e}get arrivalPlotData(){let e=null;return x(this.outputPlots)||x(this.outputPlots.ArrivalPlotData)||(e=this.outputPlots.ArrivalPlotData.map((e=>({name:e.GroupedRegionOfOrigin,values:e.PlotData.YearOfArrival.map(((t,a)=>[t,e.PlotData.PostProp[a],e.PlotData.PostPropLB[a],e.PlotData.PostPropUB[a],!0,e.PlotData.Count[a]])),selected:"ALL"===e.GroupedRegionOfOrigin})))),e}get diagnosisPlotData(){let e=null;return x(this.outputPlots)||x(this.outputPlots.DiagnosisPlotData)||(e=this.outputPlots.DiagnosisPlotData.map((e=>({name:e.GroupedRegionOfOrigin,values:e.PlotData.YearOfHIVDiagnosis.map(((t,a)=>[t,e.PlotData.PostProp[a],e.PlotData.PostPropLB[a],e.PlotData.PostPropUB[a],!0,e.PlotData.Count[a]])),selected:"ALL"===e.GroupedRegionOfOrigin})))),e}setRunProgress=e=>this.runProgress=e;setRunLog=e=>this.runLog=e;setInputStats=e=>this.inputStats=e;setOutputStats=e=>this.outputStats=e;setOutputPlots=e=>this.outputPlots=e;setConfBounds=e=>this.confBounds=e;setYodRegion=e=>this.yodRegion=e;setTableRegion=e=>this.tableRegion=e;setDataCompatibleFlag=e=>this.dataCompatibleFlag=e;setPropTableStrat=e=>this.propTableStrat=e;setShowConfBounds=e=>this.showConfBounds=e;run=()=>this.rootMgr.btnClicked("runMigrantBtn");cancel=()=>this.rootMgr.btnClicked("cancelMigrantBtn");setUIState=e=>{this.runProgress=e.runProgress,this.runLog=e.runLog,this.inputStats=e.inputStats,this.outputStats=e.outputStats,this.outputPlots=e.outputPlots,this.confBounds=e.confBounds,this.dataCompatibleFlag=e.dataCompatibleFlag,this.yodRegion=e.yodRegion,this.tableRegion=e.tableRegion,this.propTableStrat=e.propTableStrat,this.showConfBounds=e.showConfBounds}}const dr=(e,t)=>or().saveAs(function(e,t){t=t||"";for(var a=1024,r=atob(e),n=r.length,l=Math.ceil(n/a),i=new Array(l),s=0;s{if(console.log("onShinyEvent",e.type,e),this.loadingUIState&&"UI_STATE_LOADED"!==e.type)console.log("Loading UI state - ignoring events");else switch(e.type){case"PACKAGE_DETAILS_SENT":"SUCCESS"===e.payload.ActionStatus&&this.setPackageDetails(e.payload.PackageDetails);break;case"UI_STATE_READY_FOR_LOAD":"SUCCESS"===e.payload.ActionStatus&&(this.loadingUIState=!0,this.setUIState(JSON.parse(e.payload.UIState))),this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"UI_STATE_LOADED":"SUCCESS"===e.payload.ActionStatus&&(this.loadingUIState=!1,this.inputValueSet("test",!0)),this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"COMPLETED_STEPS_SET":"SUCCESS"===e.payload.ActionStatus&&this.uiStateMgr.setCompletedSteps(e.payload.CompletedSteps);break;case"CASE_BASED_DATA_UPLOADED":this.caseBasedDataMgr.setActionStatus(e.payload.ActionStatus),this.caseBasedDataMgr.setActionMessage(e.payload.ActionMessage),"SUCCESS"===e.payload.ActionStatus&&(this.caseBasedDataMgr.setFileName(e.payload.FileName),this.caseBasedDataMgr.setFilePath(e.payload.FilePath),this.caseBasedDataMgr.setFileSize(e.payload.FileSize),this.caseBasedDataMgr.setFileType(e.payload.FileType),this.uiStateMgr.setLastEventType(e.type));break;case"CASE_BASED_DATA_READ":this.caseBasedDataMgr.setActionStatus(e.payload.ActionStatus),this.caseBasedDataMgr.setActionMessage(e.payload.ActionMessage),"SUCCESS"===e.payload.ActionStatus&&(this.caseBasedDataMgr.setColumnNames(e.payload.ColumnNames),this.caseBasedDataMgr.setRecordCount(e.payload.RecordCount),this.attrMappingMgr.setMapping(e.payload.AttrMapping),this.summaryDataMgr.reset(),this.notificationsMgr.setMsg("Case-based data uploaded"),this.uiStateMgr.setLastEventType(e.type));break;case"CASE_BASED_ATTRIBUTE_MAPPING_APPLY_START":"SUCCESS"===e.payload.ActionStatus&&this.notificationsMgr.setMsg("Applying attribute mapping");break;case"CASE_BASED_ATTRIBUTE_MAPPING_APPLY_END":this.attrMappingMgr.setActionStatus(e.payload.ActionStatus),this.attrMappingMgr.setActionMessage(e.payload.ActionMessage),"SUCCESS"===e.payload.ActionStatus?(this.origGroupMgr.setDistribution(e.payload.OriginDistribution),this.origGroupMgr.setPreset(e.payload.OriginGroupingPreset),this.origGroupMgr.setGroupings(e.payload.OriginGrouping),this.notificationsMgr.setMsg("Attribute mapping has been applied"),this.summaryDataMgr.reset(),this.uiStateMgr.setLastEventType(e.type)):(this.notificationsMgr.setMsg("Attribute mapping could not be applied"),this.uiStateMgr.setLastEventType("CASE_BASED_DATA_READ"));break;case"CASE_BASED_DATA_ORIGIN_GROUPING_PREPARED":"SUCCESS"===e.payload.ActionStatus?(this.origGroupMgr.setPreset(e.payload.OriginGroupingPreset),this.origGroupMgr.setGroupings(e.payload.OriginGrouping)):this.notificationsMgr.setMsg("There was a problem with setting this origin grouping");break;case"CASE_BASED_DATA_ORIGIN_GROUPING_MIGRANT_CHECKED":this.origGroupMgr.setMigrantCompatibleStatus(e.payload.ActionStatus),this.origGroupMgr.setMigrantCompatibleMessage(e.payload.ActionMessage);break;case"CASE_BASED_DATA_ORIGIN_GROUPING_APPLIED":this.origGroupMgr.setActionStatus(e.payload.ActionStatus),this.origGroupMgr.setActionMessage(e.payload.ActionMessage),"SUCCESS"===e.payload.ActionStatus?(this.summaryDataMgr.reset(),this.summaryDataMgr.setDiagYearPlotData(e.payload.Summary.DiagYearPlotData),this.summaryDataMgr.setNotifQuarterPlotData(e.payload.Summary.NotifQuarterPlotData),this.adjustMgr.setRDWithoutStartYear(e.payload.Summary.DiagYearPlotData.filter.scaleMinYear),this.adjustMgr.setRDWithoutEndYear(Math.round(e.payload.Summary.NotifQuarterPlotData.filter.scaleMaxYear)),this.adjustMgr.setRDWithoutEndQrt(tt(e.payload.Summary.NotifQuarterPlotData.filter.scaleMaxYear)),this.adjustMgr.setRDWithStartYear(e.payload.Summary.DiagYearPlotData.filter.scaleMinYear),this.adjustMgr.setRDWithEndYear(Math.round(e.payload.Summary.NotifQuarterPlotData.filter.scaleMaxYear)),this.adjustMgr.setRDWithEndQrt(tt(e.payload.Summary.NotifQuarterPlotData.filter.scaleMaxYear)),this.adjustMgr.setDataBounds({startYear:e.payload.Summary.DiagYearPlotData.filter.scaleMinYear,endYear:Math.round(e.payload.Summary.NotifQuarterPlotData.filter.scaleMaxYear),endQrt:tt(e.payload.Summary.NotifQuarterPlotData.filter.scaleMaxYear)}),this.migrMgr.setDataCompatibleFlag(e.payload.MigrantCompatibility.Valid),this.uiStateMgr.setLastEventType(e.type)):this.uiStateMgr.setLastEventType("CASE_BASED_ATTRIBUTE_MAPPING_APPLY_END"),this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"CASE_BASED_SUMMARY_DATA_PREPARED":"SUCCESS"===e.payload.ActionStatus?(this.summaryDataMgr.setSelectedCount(e.payload.Summary.SelectedCount),this.summaryDataMgr.setTotalCount(e.payload.Summary.TotalCount),this.summaryDataMgr.setMissPlotData(e.payload.Summary.MissPlotData),this.summaryDataMgr.setRepDelPlotData(e.payload.Summary.RepDelPlotData)):this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"ADJUSTMENTS_RUN_STARTED":"SUCCESS"===e.payload.ActionStatus&&(this.adjustMgr.setAdjustmentsRunProgress(1),this.adjustMgr.setAdjustmentsReport(null));break;case"ADJUSTMENTS_RUN_LOG_SET":"SUCCESS"===e.payload.ActionStatus&&this.adjustMgr.setAdjustmentsRunLog(e.payload.RunLog);break;case"ADJUSTMENTS_RUN_FINISHED":this.adjustMgr.setAdjustmentsRunProgress(null),"SUCCESS"===e.payload.ActionStatus?(this.uiStateMgr.setLastEventType(e.type),this.adjustMgr.setAdjustmentsReport(e.payload.AdjustmentsReport),this.adjustMgr.setRunAdjustmentsTypes(e.payload.RunAdjustmentsTypes),this.notificationsMgr.setMsg("Adjustment run finished")):this.notificationsMgr.setMsg("Adjustment run failed");break;case"ADJUSTMENTS_RUN_CANCELLED":this.adjustMgr.setAdjustmentsRunProgress(null),"SUCCESS"===e.payload.ActionStatus&&this.notificationsMgr.setMsg("Adjustment run cancelled");break;case"MIGRATION_RUN_STARTED":"SUCCESS"===e.payload.ActionStatus&&(this.migrMgr.setRunProgress(1),this.migrMgr.setInputStats(null),this.migrMgr.setOutputStats(null),this.migrMgr.setOutputPlots(null));break;case"MIGRATION_RUN_LOG_SET":"SUCCESS"===e.payload.ActionStatus&&this.migrMgr.setRunLog(e.payload.RunLog);break;case"MIGRATION_RUN_FINISHED":this.migrMgr.setRunProgress(null),"SUCCESS"===e.payload.ActionStatus?(this.uiStateMgr.setLastEventType(e.type),this.migrMgr.setInputStats(e.payload.InputStats),this.migrMgr.setOutputStats(e.payload.OutputStats),this.migrMgr.setOutputPlots(e.payload.OutputPlots),this.migrMgr.setConfBounds(e.payload.ConfBounds),this.notificationsMgr.setMsg("Migration run finished")):this.notificationsMgr.setMsg("Migration run failed");break;case"MIGRATION_RUN_CANCELLED":this.migrMgr.setRunProgress(null),"SUCCESS"===e.payload.ActionStatus&&this.notificationsMgr.setMsg("Migration run cancelled");break;case"MIGRATION_CONF_BOUNDS_COMPUTED":"SUCCESS"===e.payload.ActionStatus&&this.migrMgr.setConfBounds(e.payload.ConfBounds);break;case"CREATING_REPORT_STARTED":"SUCCESS"===e.payload.ActionStatus&&(this.reportMgr.setCreatingReportInProgress(!0),this.reportMgr.setReport(null),this.notificationsMgr.setMsg("Creating report started"));break;case"CREATING_REPORT_FINISHED":"SUCCESS"===e.payload.ActionStatus?(this.uiStateMgr.setLastEventType(e.type),this.reportMgr.setReport(e.payload.Report),this.notificationsMgr.setMsg("Creating report finished")):this.notificationsMgr.setMsg("Creating report failed"),this.reportMgr.setCreatingReportInProgress(!1);break;case"AGGR_DATA_UPLOADED":this.aggrDataMgr.setActionStatus(e.payload.ActionStatus),this.aggrDataMgr.setActionMessage(e.payload.ActionMessage),"SUCCESS"===e.payload.ActionStatus&&(this.aggrDataMgr.setFileName(e.payload.FileName),this.aggrDataMgr.setFilePath(e.payload.FilePath),this.aggrDataMgr.setFileSize(e.payload.FileSize),this.aggrDataMgr.setFileType(e.payload.FileType));break;case"AGGR_DATA_READ":this.aggrDataMgr.setActionStatus(e.payload.ActionStatus),this.aggrDataMgr.setActionMessage(e.payload.ActionMessage),"SUCCESS"===e.payload.ActionStatus&&(this.aggrDataMgr.setDataFiles(e.payload.DataFiles),this.aggrDataMgr.setPopulationNames(e.payload.PopulationNames),this.aggrDataMgr.setRangeYears(e.payload.RangeYears),this.notificationsMgr.setMsg("Aggregated data uploaded"));break;case"AVAILABLE_STRATA_SET":"SUCCESS"===e.payload.ActionStatus&&(this.popMgr.setAvailableVariables(e.payload.AvailableVariables),this.popMgr.setAvailableStrata(e.payload.AvailableStrata));break;case"MODELS_PARAMS_LOADED":"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setMinYear(e.payload.Params.minYear),this.modelMgr.setMaxYear(e.payload.Params.maxYear),this.modelMgr.setMinFitPos(e.payload.Params.minFitPos),this.modelMgr.setMaxFitPos(e.payload.Params.maxFitPos),this.modelMgr.setMinFitCD4(e.payload.Params.minFitCD4),this.modelMgr.setMaxFitCD4(e.payload.Params.maxFitCD4),this.modelMgr.setMinFitAIDS(e.payload.Params.minFitAIDS),this.modelMgr.setMaxFitAIDS(e.payload.Params.maxFitAIDS),this.modelMgr.setMinFitHIVAIDS(e.payload.Params.minFitHIVAIDS),this.modelMgr.setMaxFitHIVAIDS(e.payload.Params.maxFitHIVAIDS),this.modelMgr.setFullData(e.payload.Params.fullData),this.modelMgr.setKnotsCount(e.payload.Params.knotsCount),this.modelMgr.setStartIncZero(e.payload.Params.startIncZero),this.modelMgr.setMaxIncCorr(e.payload.Params.maxIncCorr),this.modelMgr.setDistributionFit(e.payload.Params.distributionFit),this.modelMgr.setDelta4Fac(e.payload.Params.delta4Fac),this.modelMgr.setCountry(e.payload.Params.country),this.modelMgr.timeIntCollMgr.setIntervals(e.payload.Params.minYear,e.payload.Params.maxYear,e.payload.Params.timeIntervals));break;case"MODELS_YEAR_RANGES_DETERMINED":"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setRangeYears(e.payload.Years.Range),this.modelMgr.setOptimalYears(e.payload.Years.Optimal)),this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"MODELS_RUN_STARTED":"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setModelsRunProgress(1),this.modelMgr.setModelsRunLog(null)),this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"MODELS_RUN_LOG_SET":"SUCCESS"===e.payload.ActionStatus&&this.modelMgr.setModelsRunLog(e.payload.RunLog);break;case"MODELS_RUN_FINISHED":this.modelMgr.setModelsRunProgress(null),"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setPlotData(e.payload.PlotData),this.uiStateMgr.setLastEventType(e.type)),this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"MODELS_RUN_CANCELLED":"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setModelsRunProgress(null),this.notificationsMgr.setMsg(e.payload.ActionMessage));break;case"BOOTSTRAP_RUN_STARTED":"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setBootstrapRunProgress(1),this.modelMgr.setBootstrapRunLog(null));break;case"BOOTSTRAP_RUN_LOG_SET":"SUCCESS"===e.payload.ActionStatus&&this.modelMgr.setBootstrapRunLog(e.payload.RunLog);break;case"BOOTSTRAP_RUN_FINISHED":this.modelMgr.setBootstrapRunProgress(null),"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setPlotData(e.payload.PlotData),this.uiStateMgr.setLastEventType(e.type)),this.notificationsMgr.setMsg(e.payload.ActionMessage);break;case"BOOTSTRAP_RUN_CANCELLED":"SUCCESS"===e.payload.ActionStatus&&(this.modelMgr.setBootstrapRunProgress(null),this.notificationsMgr.setMsg(e.payload.ActionMessage));break;case"SEED_SET":"SUCCESS"===e.payload.ActionStatus&&(this.setSeed(e.payload.Seed),this.notificationsMgr.setMsg(e.payload.ActionMessage));break;case"SAVE_STATE":"SUCCESS"===e.payload.ActionStatus&&(dr(e.payload.Data,e.payload.FileName),this.notificationsMgr.setMsg(e.payload.ActionMessage))}};constructor(){this.uiStateMgr=new ka(this),this.notificationsMgr=new Ha(this),this.caseBasedDataMgr=new Ja(this),this.aggrDataMgr=new Ka(this),this.attrMappingMgr=new Ga(this),this.origGroupMgr=new za(this),this.summaryDataMgr=new qa(this),this.adjustMgr=new Xa(this),this.popMgr=new er(this),this.popCombMgr=new tr(this),this.modelMgr=new mr(this),this.reportMgr=new cr(this),this.migrMgr=new ur(this),(0,ja.rC)(this,{packageDetails:ja.LO,loadingUIState:ja.LO,shinyState:ja.LO,shinyMessage:ja.LO,loadStateProgress:ja.LO,seed:ja.LO,seedText:ja.Fl,shinyReady:ja.Fl,jsonShinyMessage:ja.Fl,setPackageDetails:ja.aD,setShinyState:ja.aD,btnClicked:ja.aD,inputValueSet:ja.aD,setShinyMessage:ja.aD,unbindShiny:ja.aD,bindShiny:ja.aD,saveState:ja.aD,loadState:ja.aD,setUIState:ja.aD,setLoadStateProgress:ja.aD,setSeed:ja.aD});const e=this;$((()=>{console.log("Application manager created. Binding shiny server events handlers."),$(document).on("shiny:disconnected",(()=>e.setShinyState("DISCONNECTED"))),$(document).on("shiny:connected",(()=>e.setShinyState("CONNECTED"))),$(document).on("shiny:sessioninitialized",(()=>e.setShinyState("SESSION_INITIALIZED"))),$(document).on("shiny:message",(t=>e.setShinyMessage(t))),$(document).on("shiny:inputchanged",(e=>console.log("shiny:inputchanged:",e))),$(document).on("shiny:filedownload",(e=>console.log("shiny:filedownload:",e)))}))}get shinyReady(){return"SESSION_INITIALIZED"===this.shinyState||"DEBUGGING"===this.shinyState}get jsonShinyMessage(){return JSON.stringify(this.shinyMessage)}get seedText(){return x(this.seed)?"":this.seed}get shinyStateHuman(){let e="";switch(this.shinyState){case"DISCONNECTED":e="DISCONNECTED";break;case"CONNECTED":e="INITIALIZING";break;case"DEBUGGING":case"SESSION_INITIALIZED":e="READY"}return e}setPackageDetails=e=>this.packageDetails=e;setShinyState=e=>{this.shinyState=e,"SESSION_INITIALIZED"===e&&Shiny.addCustomMessageHandler("shinyHandler",this.onShinyEvent)};btnClicked=(e,t="")=>{x(window.Shiny)||!this.shinyReady||this.loadingUIState?console.log("btnClicked: Shiny is not available",e,(0,ja.ZN)(t)):Shiny.setInputValue(e,t,{priority:"event"})};inputValueSet=(e,t,a=!1)=>{x(window.Shiny)||!this.shinyReady||this.loadingUIState&&!a?console.log("inputValueSet: Shiny is not available",e,(0,ja.ZN)(t)):Shiny.setInputValue(e,t)};setShinyMessage=e=>this.shinyMessage=e;setSeed=e=>{this.seed=""===e?null:e};unbindShiny=e=>{!x(window.Shiny)&&this.shinyReady?(window.Shiny.unbindAll(),Pe(e).forEach((e=>delete window.Shiny.shinyapp.$bindings[e]))):console.log("unbindShinyInputs: Shiny is not available")};bindShiny=()=>{!x(window.Shiny)&&this.shinyReady?window.Shiny.bindAll():console.log("bindShinyInputs: Shiny is not available")};saveState=()=>{const e=(0,Ba.qC)(this),t=JSON.stringify(e,{},2);this.btnClicked("saveStateBtn",t)};loadState=e=>{$(e).data("currentUploader",new Qa(Shiny.shinyapp,e,this.setLoadStateProgress))};setUIState=e=>{this.loadingUIState=!0,this.shinyState=e.shinyState,this.uiStateMgr.setUIState(e.uiStateMgr),this.notificationsMgr.setUIState(e.notificationsMgr),this.attrMappingMgr.setUIState(e.attrMappingMgr),this.origGroupMgr.setUIState(e.origGroupMgr),this.caseBasedDataMgr.setUIState(e.caseBasedDataMgr),this.aggrDataMgr.setUIState(e.aggrDataMgr),this.summaryDataMgr.setUIState(e.summaryDataMgr),this.adjustMgr.setUIState(e.adjustMgr),this.popMgr.setUIState(e.popMgr),this.popCombMgr.setUIState(e.popCombMgr),this.modelMgr.setUIState(e.modelMgr),this.reportMgr.setUIState(e.reportMgr),this.migrMgr.setUIState(e.migrMgr),this.inputValueSet("loadingUIStateDone",!0,!0)};setLoadStateProgress=e=>this.loadStateProgress=e}class pr{}class hr{}(0,Ba.yu)(hr,{parentMgr:(0,Ba.YP)(pr),id:(0,Ba.Ru)(),name:(0,Ba.Ru)(),intervals:(0,Ba.pb)((0,Ba.LZ)()),minYear:(0,Ba.Ru)(),maxYear:(0,Ba.Ru)()}),(0,Ba.yu)(pr,{id:(0,Ba.QU)(),parentMgr:(0,Ba.YP)(mr),collections:(0,Ba.UI)((0,Ba.Ry)(hr)),minYear:(0,Ba.Ru)(),maxYear:(0,Ba.Ru)(),selectedEditCollectionId:(0,Ba.Ru)(),selectedRunCollectionId:(0,Ba.Ru)()}),(0,Ba.yu)(mr,{id:(0,Ba.QU)(),timeIntCollMgr:(0,Ba.Ry)(pr),modelsParamFile:(0,Ba.Ru)(),modelsParamFileName:(0,Ba.Ru)(),rangeYears:(0,Ba.LZ)(),optimalYears:(0,Ba.LZ)(),minYear:(0,Ba.Ru)(),maxYear:(0,Ba.Ru)(),minFitPos:(0,Ba.Ru)(),maxFitPos:(0,Ba.Ru)(),minFitCD4:(0,Ba.Ru)(),maxFitCD4:(0,Ba.Ru)(),minFitAIDS:(0,Ba.Ru)(),maxFitAIDS:(0,Ba.Ru)(),minFitHIVAIDS:(0,Ba.Ru)(),maxFitHIVAIDS:(0,Ba.Ru)(),fullData:(0,Ba.Ru)(),knotsCount:(0,Ba.Ru)(),startIncZero:(0,Ba.Ru)(),maxIncCorr:(0,Ba.Ru)(),distributionFit:(0,Ba.Ru)(),delta4Fac:(0,Ba.Ru)(),country:(0,Ba.Ru)(),bootstrapCount:(0,Ba.Ru)(),bootstrapType:(0,Ba.Ru)(),modelsRunProgress:(0,Ba.Ru)(),modelsRunLog:(0,Ba.Ru)(),bootstrapRunProgress:(0,Ba.Ru)(),bootstrapRunLog:(0,Ba.Ru)(),migrConnFlag:(0,Ba.Ru)(),showConfBounds:(0,Ba.Ru)(),plotData:(0,Ba.LZ)()}),(0,Ba.yu)(cr,{rootMgr:(0,Ba.YP)(gr),report:(0,Ba.Ru)(),adjustReportParams:(0,Ba.LZ)(),creatingReportInProgress:(0,Ba.Ru)()});class Er{}(0,Ba.yu)(Er,{id:(0,Ba.QU)(),name:(0,Ba.Ru)(),aggrPopulations:(0,Ba.pb)((0,Ba.Ru)()),casePopulations:(0,Ba.pb)((0,Ba.Ru)())}),(0,Ba.yu)(tr,{rootMgr:(0,Ba.YP)(gr),combinations:(0,Ba.UI)((0,Ba.Ry)(Er)),selectedCombination:(0,Ba.YP)(Er),combinationAllId:(0,Ba.Ru)()}),(0,Ba.yu)(er,{rootMgr:(0,Ba.YP)(gr),availableVariables:(0,Ba.pb)((0,Ba.LZ)()),availableStrata:(0,Ba.LZ)(),populations:(0,Ba.pb)((0,Ba.LZ)())}),(0,Ba.yu)(Xa,{rootMgr:(0,Ba.YP)(gr),miAdjustType:(0,Ba.Ru)(),miJomoSettings:(0,Ba.LZ)(),miMiceSettings:(0,Ba.LZ)(),rdAdjustType:(0,Ba.Ru)(),dataBounds:(0,Ba.LZ)(),rdWithoutTrendSettings:(0,Ba.LZ)(),rdWithTrendSettings:(0,Ba.LZ)(),adjustmentsRunProgress:(0,Ba.Ru)(),adjustmentsRunLog:(0,Ba.Ru)(),adjustmentsReport:(0,Ba.Ru)(),runAdjustmentsTypes:(0,Ba.pb)((0,Ba.Ru)())}),(0,Ba.yu)(qa,{rootMgr:(0,Ba.YP)(gr),selectedCount:(0,Ba.Ru)(),totalCount:(0,Ba.Ru)(),diagYearPlotData:(0,Ba.LZ)(),notifQuarterPlotData:(0,Ba.LZ)(),missPlotData:(0,Ba.LZ)(),missPlotSelection:(0,Ba.Ru)(),repDelPlotData:(0,Ba.LZ)(),repDelPlotSelection:(0,Ba.Ru)()}),(0,Ba.yu)(Ka,{rootMgr:(0,Ba.YP)(gr),fileName:(0,Ba.Ru)(),fileSize:(0,Ba.Ru)(),fileType:(0,Ba.Ru)(),filePath:(0,Ba.Ru)(),dataFiles:(0,Ba.LZ)(),origDataFiles:(0,Ba.LZ)(),rangeYears:(0,Ba.LZ)(),dataFileNameToIdxMap:(0,Ba.UI)(),populationNames:(0,Ba.pb)((0,Ba.Ru)()),fileUploadProgress:(0,Ba.Ru)(),actionStatus:(0,Ba.Ru)(),actionMessage:(0,Ba.Ru)()}),(0,Ba.yu)(Ja,{rootMgr:(0,Ba.YP)(gr),fileName:(0,Ba.Ru)(),fileSize:(0,Ba.Ru)(),fileType:(0,Ba.Ru)(),filePath:(0,Ba.Ru)(),columnNames:(0,Ba.pb)((0,Ba.Ru)()),recordCount:(0,Ba.Ru)(),uploadProgress:(0,Ba.Ru)(),actionStatus:(0,Ba.Ru)(),actionMessage:(0,Ba.Ru)()}),(0,Ba.yu)(za,{rootMgr:(0,Ba.YP)(gr),distribution:(0,Ba.LZ)(),groupings:(0,Ba.pb)((0,Ba.LZ)()),preset:(0,Ba.Ru)(),actionStatus:(0,Ba.Ru)(),actionMessage:(0,Ba.Ru)(),migrantCompatibleStatus:(0,Ba.Ru)(),migrantCompatibleMessage:(0,Ba.Ru)()}),(0,Ba.yu)(Ga,{rootMgr:(0,Ba.YP)(gr),mapping:(0,Ba.pb)((0,Ba.LZ)()),actionStatus:(0,Ba.Ru)(),actionMessage:(0,Ba.Ru)()}),(0,Ba.yu)(Ha,{rootMgr:(0,Ba.YP)(gr),msgInfo:(0,Ba.LZ)()}),(0,Ba.yu)(ka,{rootMgr:(0,Ba.YP)(gr),lastEventType:(0,Ba.Ru)(),completedSteps:(0,Ba.pb)((0,Ba.Ru)()),pages:(0,Ba.pb)((0,Ba.LZ)()),activePageId:(0,Ba.Ru)()}),(0,Ba.yu)(ur,{runLog:(0,Ba.Ru)(),runProgress:(0,Ba.Ru)(),inputStats:(0,Ba.LZ)(),outputStats:(0,Ba.LZ)(),outputPlots:(0,Ba.LZ)(),confBounds:(0,Ba.LZ)(),yodRegion:(0,Ba.Ru)(),tableRegion:(0,Ba.Ru)(),propTableStrat:(0,Ba.LZ)(),dataCompatibleFlag:(0,Ba.LZ)(),showConfBounds:(0,Ba.LZ)()}),(0,Ba.yu)(gr,{id:(0,Ba.QU)(),shinyState:(0,Ba.Ru)(),uiStateMgr:(0,Ba.Ry)(ka),notificationsMgr:(0,Ba.Ry)(Ha),attrMappingMgr:(0,Ba.Ry)(Ga),origGroupMgr:(0,Ba.Ry)(za),caseBasedDataMgr:(0,Ba.Ry)(Ja),aggrDataMgr:(0,Ba.Ry)(Ka),summaryDataMgr:(0,Ba.Ry)(qa),adjustMgr:(0,Ba.Ry)(Xa),popMgr:(0,Ba.Ry)(er),popCombMgr:(0,Ba.Ry)(tr),modelMgr:(0,Ba.Ry)(mr),reportMgr:(0,Ba.Ry)(cr),migrMgr:(0,Ba.Ry)(ur)}),window.jQuery=s(),window.$=s();const Mr=new gr,Sr=document.getElementById("app");n.createRoot(Sr).render(r.createElement(l.zt,{appMgr:Mr},r.createElement(r.StrictMode,null,r.createElement(La,null))))}},n={};function l(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e].call(a.exports,a,a.exports,l),a.exports}l.m=r,e=[],l.O=(t,a,r,n)=>{if(!a){var i=1/0;for(c=0;c=n)&&Object.keys(l.O).every((e=>l.O[e](a[o])))?a.splice(o--,1):(s=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[a,r,n]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var n=Object.create(null);l.r(n);var i={};t=t||[null,a({}),a([]),a(a)];for(var s=2&r&&e;"object"==typeof s&&!~t.indexOf(s);s=a(s))Object.getOwnPropertyNames(s).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,l.d(n,i),n},l.d=(e,t)=>{for(var a in t)l.o(t,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={179:0};l.O.j=t=>0===e[t];var t=(t,a)=>{var r,n,[i,s,o]=a,m=0;if(i.some((t=>0!==e[t]))){for(r in s)l.o(s,r)&&(l.m[r]=s[r]);if(o)var c=o(l)}for(t&&t(a);ml(8034)));i=l.O(i)})(); \ No newline at end of file diff --git a/Server/inst/app/www/js/vendors.js b/Server/inst/app/www/js/vendors.js index f2e99ea4..9a7969b7 100644 --- a/Server/inst/app/www/js/vendors.js +++ b/Server/inst/app/www/js/vendors.js @@ -1,5 +1,5 @@ /*! For license information please see vendors.js.LICENSE.txt */ -(self.webpackChunkhiv_platform=self.webpackChunkhiv_platform||[]).push([[216],{9616:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,T:()=>l,w:()=>s});var r=n(9953),i=n(540),o=(n(6803),n(2194),(0,r.createContext)("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null));var a=o.Provider,s=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(o);return e(t,i,n)}))},l=(0,r.createContext)({})},6504:(e,t,n)=>{"use strict";n.d(t,{F4:()=>c,iv:()=>u,xB:()=>l});var r=n(9953),i=(n(540),n(9616)),o=(n(6976),n(9685)),a=n(6803),s=n(2194),l=(0,i.w)((function(e,t){var n=e.styles,l=(0,a.O)([n],void 0,(0,r.useContext)(i.T)),u=(0,r.useRef)();return(0,s.j)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),u.current=[n,r],function(){n.flush()}}),[t]),(0,s.j)((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.My)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null}));function u(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";var r;n.d(t,{L:()=>a,j:()=>s});var i=n(9953),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},6603:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(9953),i=n(7966),o=n(1888),a=n(904),s=n(5183),l=n(1874);const u=r.forwardRef((function(e,t){const{children:n,container:u,disablePortal:c=!1}=e,[d,p]=r.useState(null),h=(0,o.Z)(r.isValidElement(n)?n.ref:null,t);if((0,a.Z)((()=>{c||p(function(e){return"function"==typeof e?e():e}(u)||document.body)}),[u,c]),(0,a.Z)((()=>{if(d&&!c)return(0,s.Z)(t,d),()=>{(0,s.Z)(t,null)}}),[t,d,c]),c){if(r.isValidElement(n)){const e={ref:h};return r.cloneElement(n,e)}return(0,l.jsx)(r.Fragment,{children:n})}return(0,l.jsx)(r.Fragment,{children:d?i.createPortal(n,d):d})}))},7920:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var r=n(9953);n(1874);const i={disableDefaultClasses:!1},o=r.createContext(i);function a(e){const{disableDefaultClasses:t}=r.useContext(o);return n=>t?"":e(n)}},59:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(557),i=n(2083);function o(e,t,n){return void 0===e||(0,i.Z)(e)?t:(0,r.Z)({},t,{ownerState:(0,r.Z)({},t.ownerState,n)})}},2:(e,t,n)=>{"use strict";function r(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}n.d(t,{Z:()=>r})},2083:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e}n.d(t,{Z:()=>r})},8724:(e,t,n)=>{"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{Z:()=>r})},5852:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(557),i=n(1551),o=n(1888),a=n(59),s=n(4923),l=n(2);function u(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}var c=n(8724);const d=["elementType","externalSlotProps","ownerState"];function p(e){var t;const{elementType:n,externalSlotProps:p,ownerState:h}=e,f=(0,i.Z)(e,d),g=(0,c.Z)(p,h),{props:m,internalRef:v}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:a}=e;if(!t){const e=(0,s.Z)(null==o?void 0:o.className,null==i?void 0:i.className,a,null==n?void 0:n.className),t=(0,r.Z)({},null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),l=(0,r.Z)({},n,o,i);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const c=(0,l.Z)((0,r.Z)({},o,i)),d=u(i),p=u(o),h=t(c),f=(0,s.Z)(null==h?void 0:h.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==i?void 0:i.className),g=(0,r.Z)({},null==h?void 0:h.style,null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),m=(0,r.Z)({},h,n,p,d);return f.length>0&&(m.className=f),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:h.ref}}((0,r.Z)({},f,{externalSlotProps:g})),y=(0,o.Z)(v,null==g?void 0:g.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.Z)(n,(0,r.Z)({},m,{ref:y}),h)}},3846:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9859)),o=n(1874),a=(0,i.default)((0,o.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),"Assignment");t.Z=a},598:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9859)),o=n(1874),a=(0,i.default)((0,o.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"}),"Close");t.Z=a},8336:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9859)),o=n(1874),a=(0,i.default)((0,o.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"}),"CloudUpload");t.Z=a},5698:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9859)),o=n(1874),a=(0,i.default)((0,o.jsx)("path",{d:"M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9 1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1l-5.2 2.2v4.7h2v-3.4l1.8-.7-1.6 8.1-4.9-1-.4 2 7 1.4z"}),"DirectionsRun");t.Z=a},2736:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9859)),o=n(1874),a=(0,i.default)((0,o.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"Group");t.Z=a},4631:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9859)),o=n(1874),a=(0,i.default)((0,o.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.Z=a},7401:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9859)),o=n(1874),a=(0,i.default)((0,o.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"People");t.Z=a},8112:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9859)),o=n(1874),a=(0,i.default)((0,o.jsx)("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z"}),"TableChart");t.Z=a},9859:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(7143)},6783:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1280),u=n(1628),c=n(6820),d=n(8115),p=n(5890),h=n(2112),f=n(7824);function g(e){return(0,f.Z)("MuiAlert",e)}const m=(0,h.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var v=n(3645),y=n(1704),b=n(1874);const x=(0,y.Z)((0,b.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"),_=(0,y.Z)((0,b.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),w=(0,y.Z)((0,b.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"),S=(0,y.Z)((0,b.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");var k=n(6476);const C=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],M=(0,u.ZP)(p.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,d.Z)(n.color||n.severity)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?l._j:l.$n,r="light"===e.palette.mode?l.$n:l._j,o=t.color||t.severity;return(0,i.Z)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===t.variant&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${m.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&"outlined"===t.variant&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${m.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&"filled"===t.variant&&(0,i.Z)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))})),Z=(0,u.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),T=(0,u.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),O=(0,u.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),P={success:(0,b.jsx)(x,{fontSize:"inherit"}),warning:(0,b.jsx)(_,{fontSize:"inherit"}),error:(0,b.jsx)(w,{fontSize:"inherit"}),info:(0,b.jsx)(S,{fontSize:"inherit"})},I=o.forwardRef((function(e,t){var n,o,l,u,p,h;const f=(0,c.Z)({props:e,name:"MuiAlert"}),{action:m,children:y,className:x,closeText:_="Close",color:w,components:S={},componentsProps:I={},icon:A,iconMapping:R=P,onClose:D,role:L="alert",severity:E="success",slotProps:N={},slots:z={},variant:B="standard"}=f,F=(0,r.Z)(f,C),j=(0,i.Z)({},f,{color:w,severity:E,variant:B}),V=(e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`${t}${(0,d.Z)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,s.Z)(o,g,i)})(j),$=null!=(n=null!=(o=z.closeButton)?o:S.CloseButton)?n:v.Z,W=null!=(l=null!=(u=z.closeIcon)?u:S.CloseIcon)?l:k.Z,H=null!=(p=N.closeButton)?p:I.closeButton,G=null!=(h=N.closeIcon)?h:I.closeIcon;return(0,b.jsxs)(M,(0,i.Z)({role:L,elevation:0,ownerState:j,className:(0,a.Z)(V.root,x),ref:t},F,{children:[!1!==A?(0,b.jsx)(Z,{ownerState:j,className:V.icon,children:A||R[E]||P[E]}):null,(0,b.jsx)(T,{ownerState:j,className:V.message,children:y}),null!=m?(0,b.jsx)(O,{ownerState:j,className:V.action,children:m}):null,null==m&&D?(0,b.jsx)(O,{ownerState:j,className:V.action,children:(0,b.jsx)($,(0,i.Z)({size:"small","aria-label":_,title:_,color:"inherit",onClick:D},H,{children:(0,b.jsx)(W,(0,i.Z)({fontSize:"small"},G))}))}):null]}))}))},8553:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1628),u=n(6820),c=n(8115),d=n(5890),p=n(2112),h=n(7824);function f(e){return(0,h.Z)("MuiAppBar",e)}(0,p.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);var g=n(1874);const m=["className","color","enableColorOnDark","position"],v=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,y=(0,l.ZP)(d.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,c.Z)(n.position)}`],t[`color${(0,c.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return(0,i.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&(0,i.Z)({},"default"===t.color&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&(0,i.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&(0,i.Z)({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:v(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:v(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:v(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:v(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),b=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiAppBar"}),{className:o,color:l="primary",enableColorOnDark:d=!1,position:p="fixed"}=n,h=(0,r.Z)(n,m),v=(0,i.Z)({},n,{color:l,position:p,enableColorOnDark:d}),b=(e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${(0,c.Z)(t)}`,`position${(0,c.Z)(n)}`]};return(0,s.Z)(i,f,r)})(v);return(0,g.jsx)(y,(0,i.Z)({square:!0,component:"header",ownerState:v,elevation:4,className:(0,a.Z)(b.root,o,"fixed"===p&&"mui-fixed"),ref:t},h))}))},7687:(e,t,n)=>{"use strict";n.d(t,{Z:()=>J});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(5525),u=n(1584);const c=e=>{const t=o.useRef({});return o.useEffect((()=>{t.current=e})),t.current};var d=n(731),p=n(5183);function h(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function f(e,t){for(let n=0;n{let u=a?s.trim():s;n&&(u=u.toLowerCase()),t&&(u=h(u));const c=u?e.filter((e=>{let r=(o||l)(e);return n&&(r=r.toLowerCase()),t&&(r=h(r)),"start"===i?0===r.indexOf(u):r.indexOf(u)>-1})):e;return"number"==typeof r?c.slice(0,r):c}}(),m=5,v=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function y(e){const{unstable_isActiveElementInListbox:t=v,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:a=!1,autoSelect:s=!1,blurOnSelect:h=!1,clearOnBlur:y=!e.freeSolo,clearOnEscape:b=!1,componentName:x="useAutocomplete",defaultValue:_=(e.multiple?[]:null),disableClearable:w=!1,disableCloseOnSelect:S=!1,disabled:k,disabledItemsFocusable:C=!1,disableListWrap:M=!1,filterOptions:Z=g,filterSelectedOptions:T=!1,freeSolo:O=!1,getOptionDisabled:P,getOptionLabel:I=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:A,handleHomeEndKeys:R=!e.freeSolo,id:D,includeInputInList:L=!1,inputValue:E,isOptionEqualToValue:N=((e,t)=>e===t),multiple:z=!1,onChange:B,onClose:F,onHighlightChange:j,onInputChange:V,onOpen:$,open:W,openOnFocus:H=!1,options:G,readOnly:U=!1,selectOnFocus:q=!e.freeSolo,value:Y}=e,X=(0,l.Z)(D);let K=I;K=e=>{const t=I(e);return"string"!=typeof t?String(t):t};const Q=o.useRef(!1),J=o.useRef(!0),ee=o.useRef(null),te=o.useRef(null),[ne,re]=o.useState(null),[ie,oe]=o.useState(-1),ae=a?0:-1,se=o.useRef(ae),[le,ue]=(0,u.Z)({controlled:Y,default:_,name:x}),[ce,de]=(0,u.Z)({controlled:E,default:"",name:x,state:"inputValue"}),[pe,he]=o.useState(!1),fe=o.useCallback(((e,t)=>{if(!(z?le.length!T||!(z?le:[le]).some((t=>null!==t&&N(e,t))))),{inputValue:be&&ve?"":ce,getOptionLabel:K}):[],we=c({filteredOptions:_e,value:le});o.useEffect((()=>{const e=le!==we.value;pe&&!e||O&&!e||fe(null,le)}),[le,fe,pe,we.value,O]);const Se=ge&&_e.length>0&&!U;const ke=(0,d.Z)((e=>{-1===e?ee.current.focus():ne.querySelector(`[data-tag-index="${e}"]`).focus()}));o.useEffect((()=>{z&&ie>le.length-1&&(oe(-1),ke(-1))}),[le,z,ie,ke]);const Ce=(0,d.Z)((({event:e,index:t,reason:r="auto"})=>{if(se.current=t,-1===t?ee.current.removeAttribute("aria-activedescendant"):ee.current.setAttribute("aria-activedescendant",`${X}-option-${t}`),j&&j(e,-1===t?null:_e[t],r),!te.current)return;const i=te.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));const o=te.current.parentElement.querySelector('[role="listbox"]');if(!o)return;if(-1===t)return void(o.scrollTop=0);const a=te.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${n}-focused`),"keyboard"===r&&a.classList.add(`${n}-focusVisible`),o.scrollHeight>o.clientHeight&&"mouse"!==r)){const e=a,t=o.clientHeight+o.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?o.scrollTop=n-o.clientHeight:e.offsetTop-e.offsetHeight*(A?1.3:0){if(!xe)return;const o=function(e,t){if(!te.current||-1===e)return-1;let n=e;for(;;){if("next"===t&&n===_e.length||"previous"===t&&-1===n)return-1;const e=te.current.querySelector(`[data-option-index="${n}"]`),r=!C&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||r))return n;n+="next"===t?1:-1}}((()=>{const e=_e.length-1;if("reset"===t)return ae;if("start"===t)return 0;if("end"===t)return e;const n=se.current+t;return n<0?-1===n&&L?-1:M&&-1!==se.current||Math.abs(t)>1?0:e:n>e?n===e+1&&L?-1:M||Math.abs(t)>1?e:0:n})(),n);if(Ce({index:o,reason:i,event:e}),r&&"reset"!==t)if(-1===o)ee.current.value=ce;else{const e=K(_e[o]);ee.current.value=e;0===e.toLowerCase().indexOf(ce.toLowerCase())&&ce.length>0&&ee.current.setSelectionRange(ce.length,e.length)}})),Ze=o.useCallback((()=>{if(!xe)return;if((()=>{if(-1!==se.current&&we.filteredOptions&&we.filteredOptions.length!==_e.length&&(z?le.length===we.value.length&&we.value.every(((e,t)=>K(le[t])===K(e))):(e=we.value,t=le,(e?K(e):"")===(t?K(t):"")))){const e=we.filteredOptions[se.current];if(e&&_e.some((t=>K(t)===K(e))))return!0}var e,t;return!1})())return;const e=z?le[0]:le;if(0!==_e.length&&null!=e){if(te.current)if(null==e)se.current>=_e.length-1?Ce({index:_e.length-1}):Ce({index:se.current});else{const t=_e[se.current];if(z&&t&&-1!==f(le,(e=>N(t,e))))return;const n=f(_e,(t=>N(t,e)));-1===n?Me({diff:"reset"}):Ce({index:n})}}else Me({diff:"reset"})}),[_e.length,!z&&le,T,Me,Ce,xe,ce,z]),Te=(0,d.Z)((e=>{(0,p.Z)(te,e),e&&Ze()}));o.useEffect((()=>{Ze()}),[Ze]);const Oe=e=>{ge||(me(!0),ye(!0),$&&$(e))},Pe=(e,t)=>{ge&&(me(!1),F&&F(e,t))},Ie=(e,t,n,r)=>{if(z){if(le.length===t.length&&le.every(((e,n)=>e===t[n])))return}else if(le===t)return;B&&B(e,t,n,r),ue(t)},Ae=o.useRef(!1),Re=(e,t,n="selectOption",r="options")=>{let i=n,o=t;if(z){o=Array.isArray(le)?le.slice():[];const e=f(o,(e=>N(t,e)));-1===e?o.push(t):"freeSolo"!==r&&(o.splice(e,1),i="removeOption")}fe(e,o),Ie(e,o,i,{option:t}),S||e&&(e.ctrlKey||e.metaKey)||Pe(e,i),(!0===h||"touch"===h&&Ae.current||"mouse"===h&&!Ae.current)&&ee.current.blur()};const De=(e,t)=>{if(!z)return;""===ce&&Pe(e,"toggleInput");let n=ie;-1===ie?""===ce&&"previous"===t&&(n=le.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===le.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===le.length||"previous"===t&&-1===n)return-1;const e=ne.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),oe(n),ke(n)},Le=e=>{Q.current=!0,de(""),V&&V(e,"","clear"),Ie(e,z?[]:null,"clear")},Ee=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==ie&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(oe(-1),ke(-1)),229!==t.which))switch(t.key){case"Home":xe&&R&&(t.preventDefault(),Me({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":xe&&R&&(t.preventDefault(),Me({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Me({diff:-m,direction:"previous",reason:"keyboard",event:t}),Oe(t);break;case"PageDown":t.preventDefault(),Me({diff:m,direction:"next",reason:"keyboard",event:t}),Oe(t);break;case"ArrowDown":t.preventDefault(),Me({diff:1,direction:"next",reason:"keyboard",event:t}),Oe(t);break;case"ArrowUp":t.preventDefault(),Me({diff:-1,direction:"previous",reason:"keyboard",event:t}),Oe(t);break;case"ArrowLeft":De(t,"previous");break;case"ArrowRight":De(t,"next");break;case"Enter":if(-1!==se.current&&xe){const e=_e[se.current],n=!!P&&P(e);if(t.preventDefault(),n)return;Re(t,e,"selectOption"),r&&ee.current.setSelectionRange(ee.current.value.length,ee.current.value.length)}else O&&""!==ce&&!1===be&&(z&&t.preventDefault(),Re(t,ce,"createOption","freeSolo"));break;case"Escape":xe?(t.preventDefault(),t.stopPropagation(),Pe(t,"escape")):b&&(""!==ce||z&&le.length>0)&&(t.preventDefault(),t.stopPropagation(),Le(t));break;case"Backspace":if(z&&!U&&""===ce&&le.length>0){const e=-1===ie?le.length-1:ie,n=le.slice();n.splice(e,1),Ie(t,n,"removeOption",{option:le[e]})}break;case"Delete":if(z&&!U&&""===ce&&le.length>0&&-1!==ie){const e=ie,n=le.slice();n.splice(e,1),Ie(t,n,"removeOption",{option:le[e]})}}},Ne=e=>{he(!0),H&&!Q.current&&Oe(e)},ze=e=>{t(te)?ee.current.focus():(he(!1),J.current=!0,Q.current=!1,s&&-1!==se.current&&xe?Re(e,_e[se.current],"blur"):s&&O&&""!==ce?Re(e,ce,"blur","freeSolo"):y&&fe(e,le),Pe(e,"blur"))},Be=e=>{const t=e.target.value;ce!==t&&(de(t),ye(!1),V&&V(e,t,"input")),""===t?w||z||Ie(e,null,"clear"):Oe(e)},Fe=e=>{Ce({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},je=e=>{Ce({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ae.current=!0},Ve=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Re(e,_e[t],"selectOption"),Ae.current=!1},$e=e=>t=>{const n=le.slice();n.splice(e,1),Ie(t,n,"removeOption",{option:le[e]})},We=e=>{ge?Pe(e,"toggleInput"):Oe(e)},He=e=>{e.target.getAttribute("id")!==X&&e.preventDefault()},Ge=()=>{ee.current.focus(),q&&J.current&&ee.current.selectionEnd-ee.current.selectionStart==0&&ee.current.select(),J.current=!1},Ue=e=>{""!==ce&&ge||We(e)};let qe=O&&ce.length>0;qe=qe||(z?le.length>0:null!==le);let Ye=_e;if(A){new Map;Ye=_e.reduce(((e,t,n)=>{const r=A(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return k&&pe&&ze(),{getRootProps:(e={})=>(0,i.Z)({"aria-owns":Se?`${X}-listbox`:null},e,{onKeyDown:Ee(e),onMouseDown:He,onClick:Ge}),getInputLabelProps:()=>({id:`${X}-label`,htmlFor:X}),getInputProps:()=>({id:X,value:ce,onBlur:ze,onFocus:Ne,onChange:Be,onMouseDown:Ue,"aria-activedescendant":xe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Se?`${X}-listbox`:void 0,"aria-expanded":Se,autoComplete:"off",ref:ee,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:k}),getClearProps:()=>({tabIndex:-1,onClick:Le}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:We}),getTagProps:({index:e})=>(0,i.Z)({key:e,"data-tag-index":e,tabIndex:-1},!U&&{onDelete:$e(e)}),getListboxProps:()=>({role:"listbox",id:`${X}-listbox`,"aria-labelledby":`${X}-label`,ref:Te,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(z?le:[le]).some((e=>null!=e&&N(t,e))),r=!!P&&P(t);return{key:K(t),tabIndex:-1,role:"option",id:`${X}-option-${e}`,onMouseOver:Fe,onClick:Ve,onTouchStart:je,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:X,inputValue:ce,value:le,dirty:qe,expanded:xe&&ne,popupOpen:xe,focused:pe||-1!==ie,anchorEl:ne,setAnchorEl:re,focusedTag:ie,groupedOptions:Ye}}var b=n(1280),x=n(4428),_=n(8611),w=n(5890),S=n(3645),k=n(5572),C=n(4579),M=n(5214),Z=n(3953),T=n(8249),O=n(6476),P=n(7799),I=n(6820),A=n(1628),R=n(2112),D=n(7824);function L(e){return(0,D.Z)("MuiAutocomplete",e)}const E=(0,R.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var N,z,B=n(8115),F=n(1874);const j=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],V=(0,A.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${E.tag}`]:t.tag},{[`& .${E.tag}`]:t[`tagSize${(0,B.Z)(s)}`]},{[`& .${E.inputRoot}`]:t.inputRoot},{[`& .${E.input}`]:t.input},{[`& .${E.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})((({ownerState:e})=>(0,i.Z)({[`&.${E.focused} .${E.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${E.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${E.tag}`]:(0,i.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${E.inputRoot}`]:{flexWrap:"wrap",[`.${E.hasPopupIcon}&, .${E.hasClearIcon}&`]:{paddingRight:30},[`.${E.hasPopupIcon}.${E.hasClearIcon}&`]:{paddingRight:56},[`& .${E.input}`]:{width:0,minWidth:30}},[`& .${C.Z.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${C.Z.root}.${M.Z.sizeSmall}`]:{[`& .${C.Z.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Z.Z.root}`]:{padding:9,[`.${E.hasPopupIcon}&, .${E.hasClearIcon}&`]:{paddingRight:39},[`.${E.hasPopupIcon}.${E.hasClearIcon}&`]:{paddingRight:65},[`& .${E.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${E.endAdornment}`]:{right:9}},[`& .${Z.Z.root}.${M.Z.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${E.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${T.Z.root}`]:{paddingTop:19,paddingLeft:8,[`.${E.hasPopupIcon}&, .${E.hasClearIcon}&`]:{paddingRight:39},[`.${E.hasPopupIcon}.${E.hasClearIcon}&`]:{paddingRight:65},[`& .${T.Z.input}`]:{padding:"7px 4px"},[`& .${E.endAdornment}`]:{right:9}},[`& .${T.Z.root}.${M.Z.sizeSmall}`]:{paddingBottom:1,[`& .${T.Z.input}`]:{padding:"2.5px 4px"}},[`& .${M.Z.hiddenLabel}`]:{paddingTop:8},[`& .${T.Z.root}.${M.Z.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${E.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${T.Z.root}.${M.Z.hiddenLabel}.${M.Z.sizeSmall}`]:{[`& .${E.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${E.input}`]:(0,i.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})}))),$=(0,A.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),W=(0,A.ZP)(S.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),H=(0,A.ZP)(S.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,i.Z)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})((({ownerState:e})=>(0,i.Z)({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"}))),G=(0,A.ZP)(x.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${E.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((({theme:e,ownerState:t})=>(0,i.Z)({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"}))),U=(0,A.ZP)(w.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,i.Z)({},e.typography.body1,{overflow:"auto"}))),q=(0,A.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Y=(0,A.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),X=(0,A.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${E.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${E.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${E.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,b.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${E.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,b.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${E.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,b.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),K=(0,A.ZP)(_.Z,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Q=(0,A.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${E.option}`]:{paddingLeft:24}}),J=o.forwardRef((function(e,t){var n,l,u,c;const d=(0,I.Z)({props:e,name:"MuiAutocomplete"}),{autoComplete:p=!1,autoHighlight:h=!1,autoSelect:f=!1,blurOnSelect:g=!1,ChipProps:m,className:v,clearIcon:b=N||(N=(0,F.jsx)(O.Z,{fontSize:"small"})),clearOnBlur:_=!d.freeSolo,clearOnEscape:S=!1,clearText:C="Clear",closeText:M="Close",componentsProps:Z={},defaultValue:T=(d.multiple?[]:null),disableClearable:A=!1,disableCloseOnSelect:R=!1,disabled:D=!1,disabledItemsFocusable:E=!1,disableListWrap:J=!1,disablePortal:ee=!1,filterSelectedOptions:te=!1,forcePopupIcon:ne="auto",freeSolo:re=!1,fullWidth:ie=!1,getLimitTagsText:oe=(e=>`+${e}`),getOptionLabel:ae=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:se,handleHomeEndKeys:le=!d.freeSolo,includeInputInList:ue=!1,limitTags:ce=-1,ListboxComponent:de="ul",ListboxProps:pe,loading:he=!1,loadingText:fe="Loading…",multiple:ge=!1,noOptionsText:me="No options",openOnFocus:ve=!1,openText:ye="Open",PaperComponent:be=w.Z,PopperComponent:xe=x.Z,popupIcon:_e=z||(z=(0,F.jsx)(P.Z,{})),readOnly:we=!1,renderGroup:Se,renderInput:ke,renderOption:Ce,renderTags:Me,selectOnFocus:Ze=!d.freeSolo,size:Te="medium",slotProps:Oe={}}=d,Pe=(0,r.Z)(d,j),{getRootProps:Ie,getInputProps:Ae,getInputLabelProps:Re,getPopupIndicatorProps:De,getClearProps:Le,getTagProps:Ee,getListboxProps:Ne,getOptionProps:ze,value:Be,dirty:Fe,expanded:je,id:Ve,popupOpen:$e,focused:We,focusedTag:He,anchorEl:Ge,setAnchorEl:Ue,inputValue:qe,groupedOptions:Ye}=y((0,i.Z)({},d,{componentName:"Autocomplete"})),Xe=!A&&!D&&Fe&&!we,Ke=(!re||!0===ne)&&!1!==ne,Qe=(0,i.Z)({},d,{disablePortal:ee,expanded:je,focused:We,fullWidth:ie,hasClearIcon:Xe,hasPopupIcon:Ke,inputFocused:-1===He,popupOpen:$e,size:Te}),Je=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:l,inputFocused:u,popupOpen:c,size:d}=e,p={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag",`tagSize${(0,B.Z)(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,s.Z)(p,L,t)})(Qe);let et;if(ge&&Be.length>0){const e=e=>(0,i.Z)({className:Je.tag,disabled:D},Ee(e));et=Me?Me(Be,e,Qe):Be.map(((t,n)=>(0,F.jsx)(k.Z,(0,i.Z)({label:ae(t),size:Te},e({index:n}),m))))}if(ce>-1&&Array.isArray(et)){const e=et.length-ce;!We&&e>0&&(et=et.splice(0,ce),et.push((0,F.jsx)("span",{className:Je.tag,children:oe(e)},et.length)))}const tt=Se||(e=>(0,F.jsxs)("li",{children:[(0,F.jsx)(K,{className:Je.groupLabel,ownerState:Qe,component:"div",children:e.group}),(0,F.jsx)(Q,{className:Je.groupUl,ownerState:Qe,children:e.children})]},e.key)),nt=Ce||((e,t)=>(0,F.jsx)("li",(0,i.Z)({},e,{children:ae(t)}))),rt=(e,t)=>{const n=ze({option:e,index:t});return nt((0,i.Z)({},n,{className:Je.option}),e,{selected:n["aria-selected"],index:t,inputValue:qe})},it=null!=(n=Oe.clearIndicator)?n:Z.clearIndicator,ot=null!=(l=Oe.paper)?l:Z.paper,at=null!=(u=Oe.popper)?u:Z.popper,st=null!=(c=Oe.popupIndicator)?c:Z.popupIndicator;return(0,F.jsxs)(o.Fragment,{children:[(0,F.jsx)(V,(0,i.Z)({ref:t,className:(0,a.Z)(Je.root,v),ownerState:Qe},Ie(Pe),{children:ke({id:Ve,disabled:D,fullWidth:!0,size:"small"===Te?"small":void 0,InputLabelProps:Re(),InputProps:(0,i.Z)({ref:Ue,className:Je.inputRoot,startAdornment:et},(Xe||Ke)&&{endAdornment:(0,F.jsxs)($,{className:Je.endAdornment,ownerState:Qe,children:[Xe?(0,F.jsx)(W,(0,i.Z)({},Le(),{"aria-label":C,title:C,ownerState:Qe},it,{className:(0,a.Z)(Je.clearIndicator,null==it?void 0:it.className),children:b})):null,Ke?(0,F.jsx)(H,(0,i.Z)({},De(),{disabled:D,"aria-label":$e?M:ye,title:$e?M:ye,ownerState:Qe},st,{className:(0,a.Z)(Je.popupIndicator,null==st?void 0:st.className),children:_e})):null]})}),inputProps:(0,i.Z)({className:Je.input,disabled:D,readOnly:we},Ae())})})),Ge?(0,F.jsx)(G,(0,i.Z)({as:xe,disablePortal:ee,style:{width:Ge?Ge.clientWidth:null},ownerState:Qe,role:"presentation",anchorEl:Ge,open:$e},at,{className:(0,a.Z)(Je.popper,null==at?void 0:at.className),children:(0,F.jsxs)(U,(0,i.Z)({ownerState:Qe,as:be},ot,{className:(0,a.Z)(Je.paper,null==ot?void 0:ot.className),children:[he&&0===Ye.length?(0,F.jsx)(q,{className:Je.loading,ownerState:Qe,children:fe}):null,0!==Ye.length||re||he?null:(0,F.jsx)(Y,{className:Je.noOptions,ownerState:Qe,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:me}),Ye.length>0?(0,F.jsx)(X,(0,i.Z)({as:de,className:Je.listbox,ownerState:Qe},Ne(),pe,{children:Ye.map(((e,t)=>se?tt({key:e.key,group:e.group,children:e.options.map(((t,n)=>rt(t,e.index+n)))}):rt(e,t)))})):null]}))})):null]})}))},3666:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(4479),l=n(7933),u=n(3907),c=n(9335),d=n(1874);const p=["className","component"];var h=n(4747);const f=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:h}=e,f=(0,s.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z);return o.forwardRef((function(e,o){const s=(0,c.Z)(t),l=(0,u.Z)(e),{className:g,component:m="div"}=l,v=(0,i.Z)(l,p);return(0,d.jsx)(f,(0,r.Z)({as:m,ref:o,className:(0,a.Z)(g,h?h(n):n),theme:s},v))}))}({defaultTheme:(0,n(8378).Z)(),defaultClassName:"MuiBox-root",generateClassName:h.Z.generate}),g=f},1459:(e,t,n)=>{"use strict";n.d(t,{Z:()=>H});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(8842),l=n(1628),u=n(6820),c=n(4717),d=n(2373),p=n(5826),h=n(5421);function f(){return f=Object.assign||function(e){for(var t=1;t{if(!u&&null!=c){const e=setTimeout(c,d);return()=>{clearTimeout(e)}}}),[c,u,d]),(0,k.jsx)("span",{className:f,style:g,children:(0,k.jsx)("span",{className:m})})};var M=n(2112);const Z=(0,M.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),T=["center","classes","className"];let O,P,I,A,R=e=>e;const D=(0,S.F4)(O||(O=R` +(self.webpackChunkhiv_platform=self.webpackChunkhiv_platform||[]).push([[216],{9616:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,T:()=>l,w:()=>s});var r=n(9953),i=n(4280),o=(n(6803),n(2194),(0,r.createContext)("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null));var a=o.Provider,s=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(o);return e(t,i,n)}))},l=(0,r.createContext)({})},6504:(e,t,n)=>{"use strict";n.d(t,{F4:()=>c,iv:()=>u,xB:()=>l});var r=n(9953),i=(n(4280),n(9616)),o=(n(6976),n(9685)),a=n(6803),s=n(2194),l=(0,i.w)((function(e,t){var n=e.styles,l=(0,a.O)([n],void 0,(0,r.useContext)(i.T)),u=(0,r.useRef)();return(0,s.j)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),u.current=[n,r],function(){n.flush()}}),[t]),(0,s.j)((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.My)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null}));function u(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";var r;n.d(t,{L:()=>a,j:()=>s});var i=n(9953),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},7042:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(9953),i=n(7966),o=n(2569),a=n(7291),s=n(2658),l=n(1874);const u=r.forwardRef((function(e,t){const{children:n,container:u,disablePortal:c=!1}=e,[d,p]=r.useState(null),h=(0,o.Z)(r.isValidElement(n)?n.ref:null,t);if((0,a.Z)((()=>{c||p(function(e){return"function"==typeof e?e():e}(u)||document.body)}),[u,c]),(0,a.Z)((()=>{if(d&&!c)return(0,s.Z)(t,d),()=>{(0,s.Z)(t,null)}}),[t,d,c]),c){if(r.isValidElement(n)){const e={ref:h};return r.cloneElement(n,e)}return(0,l.jsx)(r.Fragment,{children:n})}return(0,l.jsx)(r.Fragment,{children:d?i.createPortal(n,d):d})}))},44:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var r=n(9953);n(1874);const i={disableDefaultClasses:!1},o=r.createContext(i);function a(e){const{disableDefaultClasses:t}=r.useContext(o);return n=>t?"":e(n)}},9396:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(557),i=n(435);function o(e,t,n){return void 0===e||(0,i.Z)(e)?t:(0,r.Z)({},t,{ownerState:(0,r.Z)({},t.ownerState,n)})}},2566:(e,t,n)=>{"use strict";function r(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}n.d(t,{Z:()=>r})},435:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e}n.d(t,{Z:()=>r})},7086:(e,t,n)=>{"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{Z:()=>r})},1647:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(557),i=n(1551),o=n(2569),a=n(9396),s=n(4923),l=n(2566);function u(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}var c=n(7086);const d=["elementType","externalSlotProps","ownerState"];function p(e){var t;const{elementType:n,externalSlotProps:p,ownerState:h}=e,f=(0,i.Z)(e,d),g=(0,c.Z)(p,h),{props:m,internalRef:v}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:a}=e;if(!t){const e=(0,s.Z)(null==o?void 0:o.className,null==i?void 0:i.className,a,null==n?void 0:n.className),t=(0,r.Z)({},null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),l=(0,r.Z)({},n,o,i);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const c=(0,l.Z)((0,r.Z)({},o,i)),d=u(i),p=u(o),h=t(c),f=(0,s.Z)(null==h?void 0:h.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==i?void 0:i.className),g=(0,r.Z)({},null==h?void 0:h.style,null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),m=(0,r.Z)({},h,n,p,d);return f.length>0&&(m.className=f),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:h.ref}}((0,r.Z)({},f,{externalSlotProps:g})),y=(0,o.Z)(v,null==g?void 0:g.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.Z)(n,(0,r.Z)({},m,{ref:y}),h)}},9238:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9196)),o=n(1874),a=(0,i.default)((0,o.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),"Assignment");t.Z=a},6558:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9196)),o=n(1874),a=(0,i.default)((0,o.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"}),"Close");t.Z=a},8289:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9196)),o=n(1874),a=(0,i.default)((0,o.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"}),"CloudUpload");t.Z=a},4476:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9196)),o=n(1874),a=(0,i.default)((0,o.jsx)("path",{d:"M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9 1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1l-5.2 2.2v4.7h2v-3.4l1.8-.7-1.6 8.1-4.9-1-.4 2 7 1.4z"}),"DirectionsRun");t.Z=a},585:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9196)),o=n(1874),a=(0,i.default)((0,o.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"Group");t.Z=a},4263:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9196)),o=n(1874),a=(0,i.default)((0,o.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.Z=a},4642:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9196)),o=n(1874),a=(0,i.default)((0,o.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"People");t.Z=a},2342:(e,t,n)=>{"use strict";var r=n(959);t.Z=void 0;var i=r(n(9196)),o=n(1874),a=(0,i.default)((0,o.jsx)("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z"}),"TableChart");t.Z=a},9196:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(5367)},2705:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(852),u=n(2829),c=n(3265),d=n(7996),p=n(3188),h=n(6799),f=n(1176);function g(e){return(0,f.Z)("MuiAlert",e)}const m=(0,h.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var v=n(2048),y=n(7718),b=n(1874);const x=(0,y.Z)((0,b.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"),_=(0,y.Z)((0,b.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),w=(0,y.Z)((0,b.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"),S=(0,y.Z)((0,b.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");var k=n(4963);const C=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],M=(0,u.ZP)(p.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,d.Z)(n.color||n.severity)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?l._j:l.$n,r="light"===e.palette.mode?l.$n:l._j,o=t.color||t.severity;return(0,i.Z)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===t.variant&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${m.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&"outlined"===t.variant&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${m.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&"filled"===t.variant&&(0,i.Z)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))})),Z=(0,u.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),T=(0,u.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),O=(0,u.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),P={success:(0,b.jsx)(x,{fontSize:"inherit"}),warning:(0,b.jsx)(_,{fontSize:"inherit"}),error:(0,b.jsx)(w,{fontSize:"inherit"}),info:(0,b.jsx)(S,{fontSize:"inherit"})},I=o.forwardRef((function(e,t){var n,o,l,u,p,h;const f=(0,c.Z)({props:e,name:"MuiAlert"}),{action:m,children:y,className:x,closeText:_="Close",color:w,components:S={},componentsProps:I={},icon:A,iconMapping:R=P,onClose:D,role:L="alert",severity:E="success",slotProps:N={},slots:z={},variant:B="standard"}=f,F=(0,r.Z)(f,C),j=(0,i.Z)({},f,{color:w,severity:E,variant:B}),$=(e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`${t}${(0,d.Z)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,s.Z)(o,g,i)})(j),V=null!=(n=null!=(o=z.closeButton)?o:S.CloseButton)?n:v.Z,W=null!=(l=null!=(u=z.closeIcon)?u:S.CloseIcon)?l:k.Z,H=null!=(p=N.closeButton)?p:I.closeButton,G=null!=(h=N.closeIcon)?h:I.closeIcon;return(0,b.jsxs)(M,(0,i.Z)({role:L,elevation:0,ownerState:j,className:(0,a.Z)($.root,x),ref:t},F,{children:[!1!==A?(0,b.jsx)(Z,{ownerState:j,className:$.icon,children:A||R[E]||P[E]}):null,(0,b.jsx)(T,{ownerState:j,className:$.message,children:y}),null!=m?(0,b.jsx)(O,{ownerState:j,className:$.action,children:m}):null,null==m&&D?(0,b.jsx)(O,{ownerState:j,className:$.action,children:(0,b.jsx)(V,(0,i.Z)({size:"small","aria-label":_,title:_,color:"inherit",onClick:D},H,{children:(0,b.jsx)(W,(0,i.Z)({fontSize:"small"},G))}))}):null]}))}))},2625:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(2829),u=n(3265),c=n(7996),d=n(3188),p=n(6799),h=n(1176);function f(e){return(0,h.Z)("MuiAppBar",e)}(0,p.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);var g=n(1874);const m=["className","color","enableColorOnDark","position"],v=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,y=(0,l.ZP)(d.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,c.Z)(n.position)}`],t[`color${(0,c.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return(0,i.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&(0,i.Z)({},"default"===t.color&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&(0,i.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&(0,i.Z)({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:v(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:v(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:v(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:v(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),b=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiAppBar"}),{className:o,color:l="primary",enableColorOnDark:d=!1,position:p="fixed"}=n,h=(0,r.Z)(n,m),v=(0,i.Z)({},n,{color:l,position:p,enableColorOnDark:d}),b=(e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${(0,c.Z)(t)}`,`position${(0,c.Z)(n)}`]};return(0,s.Z)(i,f,r)})(v);return(0,g.jsx)(y,(0,i.Z)({square:!0,component:"header",ownerState:v,elevation:4,className:(0,a.Z)(b.root,o,"fixed"===p&&"mui-fixed"),ref:t},h))}))},7751:(e,t,n)=>{"use strict";n.d(t,{Z:()=>J});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(6317),u=n(6286);const c=e=>{const t=o.useRef({});return o.useEffect((()=>{t.current=e})),t.current};var d=n(4394),p=n(2658);function h(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function f(e,t){for(let n=0;n{let u=a?s.trim():s;n&&(u=u.toLowerCase()),t&&(u=h(u));const c=u?e.filter((e=>{let r=(o||l)(e);return n&&(r=r.toLowerCase()),t&&(r=h(r)),"start"===i?0===r.indexOf(u):r.indexOf(u)>-1})):e;return"number"==typeof r?c.slice(0,r):c}}(),m=5,v=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function y(e){const{unstable_isActiveElementInListbox:t=v,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:a=!1,autoSelect:s=!1,blurOnSelect:h=!1,clearOnBlur:y=!e.freeSolo,clearOnEscape:b=!1,componentName:x="useAutocomplete",defaultValue:_=(e.multiple?[]:null),disableClearable:w=!1,disableCloseOnSelect:S=!1,disabled:k,disabledItemsFocusable:C=!1,disableListWrap:M=!1,filterOptions:Z=g,filterSelectedOptions:T=!1,freeSolo:O=!1,getOptionDisabled:P,getOptionLabel:I=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:A,handleHomeEndKeys:R=!e.freeSolo,id:D,includeInputInList:L=!1,inputValue:E,isOptionEqualToValue:N=((e,t)=>e===t),multiple:z=!1,onChange:B,onClose:F,onHighlightChange:j,onInputChange:$,onOpen:V,open:W,openOnFocus:H=!1,options:G,readOnly:U=!1,selectOnFocus:q=!e.freeSolo,value:Y}=e,X=(0,l.Z)(D);let K=I;K=e=>{const t=I(e);return"string"!=typeof t?String(t):t};const Q=o.useRef(!1),J=o.useRef(!0),ee=o.useRef(null),te=o.useRef(null),[ne,re]=o.useState(null),[ie,oe]=o.useState(-1),ae=a?0:-1,se=o.useRef(ae),[le,ue]=(0,u.Z)({controlled:Y,default:_,name:x}),[ce,de]=(0,u.Z)({controlled:E,default:"",name:x,state:"inputValue"}),[pe,he]=o.useState(!1),fe=o.useCallback(((e,t)=>{if(!(z?le.length!T||!(z?le:[le]).some((t=>null!==t&&N(e,t))))),{inputValue:be&&ve?"":ce,getOptionLabel:K}):[],we=c({filteredOptions:_e,value:le});o.useEffect((()=>{const e=le!==we.value;pe&&!e||O&&!e||fe(null,le)}),[le,fe,pe,we.value,O]);const Se=ge&&_e.length>0&&!U;const ke=(0,d.Z)((e=>{-1===e?ee.current.focus():ne.querySelector(`[data-tag-index="${e}"]`).focus()}));o.useEffect((()=>{z&&ie>le.length-1&&(oe(-1),ke(-1))}),[le,z,ie,ke]);const Ce=(0,d.Z)((({event:e,index:t,reason:r="auto"})=>{if(se.current=t,-1===t?ee.current.removeAttribute("aria-activedescendant"):ee.current.setAttribute("aria-activedescendant",`${X}-option-${t}`),j&&j(e,-1===t?null:_e[t],r),!te.current)return;const i=te.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));const o=te.current.parentElement.querySelector('[role="listbox"]');if(!o)return;if(-1===t)return void(o.scrollTop=0);const a=te.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${n}-focused`),"keyboard"===r&&a.classList.add(`${n}-focusVisible`),o.scrollHeight>o.clientHeight&&"mouse"!==r)){const e=a,t=o.clientHeight+o.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?o.scrollTop=n-o.clientHeight:e.offsetTop-e.offsetHeight*(A?1.3:0){if(!xe)return;const o=function(e,t){if(!te.current||-1===e)return-1;let n=e;for(;;){if("next"===t&&n===_e.length||"previous"===t&&-1===n)return-1;const e=te.current.querySelector(`[data-option-index="${n}"]`),r=!C&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||r))return n;n+="next"===t?1:-1}}((()=>{const e=_e.length-1;if("reset"===t)return ae;if("start"===t)return 0;if("end"===t)return e;const n=se.current+t;return n<0?-1===n&&L?-1:M&&-1!==se.current||Math.abs(t)>1?0:e:n>e?n===e+1&&L?-1:M||Math.abs(t)>1?e:0:n})(),n);if(Ce({index:o,reason:i,event:e}),r&&"reset"!==t)if(-1===o)ee.current.value=ce;else{const e=K(_e[o]);ee.current.value=e;0===e.toLowerCase().indexOf(ce.toLowerCase())&&ce.length>0&&ee.current.setSelectionRange(ce.length,e.length)}})),Ze=o.useCallback((()=>{if(!xe)return;if((()=>{if(-1!==se.current&&we.filteredOptions&&we.filteredOptions.length!==_e.length&&(z?le.length===we.value.length&&we.value.every(((e,t)=>K(le[t])===K(e))):(e=we.value,t=le,(e?K(e):"")===(t?K(t):"")))){const e=we.filteredOptions[se.current];if(e&&_e.some((t=>K(t)===K(e))))return!0}var e,t;return!1})())return;const e=z?le[0]:le;if(0!==_e.length&&null!=e){if(te.current)if(null==e)se.current>=_e.length-1?Ce({index:_e.length-1}):Ce({index:se.current});else{const t=_e[se.current];if(z&&t&&-1!==f(le,(e=>N(t,e))))return;const n=f(_e,(t=>N(t,e)));-1===n?Me({diff:"reset"}):Ce({index:n})}}else Me({diff:"reset"})}),[_e.length,!z&&le,T,Me,Ce,xe,ce,z]),Te=(0,d.Z)((e=>{(0,p.Z)(te,e),e&&Ze()}));o.useEffect((()=>{Ze()}),[Ze]);const Oe=e=>{ge||(me(!0),ye(!0),V&&V(e))},Pe=(e,t)=>{ge&&(me(!1),F&&F(e,t))},Ie=(e,t,n,r)=>{if(z){if(le.length===t.length&&le.every(((e,n)=>e===t[n])))return}else if(le===t)return;B&&B(e,t,n,r),ue(t)},Ae=o.useRef(!1),Re=(e,t,n="selectOption",r="options")=>{let i=n,o=t;if(z){o=Array.isArray(le)?le.slice():[];const e=f(o,(e=>N(t,e)));-1===e?o.push(t):"freeSolo"!==r&&(o.splice(e,1),i="removeOption")}fe(e,o),Ie(e,o,i,{option:t}),S||e&&(e.ctrlKey||e.metaKey)||Pe(e,i),(!0===h||"touch"===h&&Ae.current||"mouse"===h&&!Ae.current)&&ee.current.blur()};const De=(e,t)=>{if(!z)return;""===ce&&Pe(e,"toggleInput");let n=ie;-1===ie?""===ce&&"previous"===t&&(n=le.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===le.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===le.length||"previous"===t&&-1===n)return-1;const e=ne.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),oe(n),ke(n)},Le=e=>{Q.current=!0,de(""),$&&$(e,"","clear"),Ie(e,z?[]:null,"clear")},Ee=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==ie&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(oe(-1),ke(-1)),229!==t.which))switch(t.key){case"Home":xe&&R&&(t.preventDefault(),Me({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":xe&&R&&(t.preventDefault(),Me({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Me({diff:-m,direction:"previous",reason:"keyboard",event:t}),Oe(t);break;case"PageDown":t.preventDefault(),Me({diff:m,direction:"next",reason:"keyboard",event:t}),Oe(t);break;case"ArrowDown":t.preventDefault(),Me({diff:1,direction:"next",reason:"keyboard",event:t}),Oe(t);break;case"ArrowUp":t.preventDefault(),Me({diff:-1,direction:"previous",reason:"keyboard",event:t}),Oe(t);break;case"ArrowLeft":De(t,"previous");break;case"ArrowRight":De(t,"next");break;case"Enter":if(-1!==se.current&&xe){const e=_e[se.current],n=!!P&&P(e);if(t.preventDefault(),n)return;Re(t,e,"selectOption"),r&&ee.current.setSelectionRange(ee.current.value.length,ee.current.value.length)}else O&&""!==ce&&!1===be&&(z&&t.preventDefault(),Re(t,ce,"createOption","freeSolo"));break;case"Escape":xe?(t.preventDefault(),t.stopPropagation(),Pe(t,"escape")):b&&(""!==ce||z&&le.length>0)&&(t.preventDefault(),t.stopPropagation(),Le(t));break;case"Backspace":if(z&&!U&&""===ce&&le.length>0){const e=-1===ie?le.length-1:ie,n=le.slice();n.splice(e,1),Ie(t,n,"removeOption",{option:le[e]})}break;case"Delete":if(z&&!U&&""===ce&&le.length>0&&-1!==ie){const e=ie,n=le.slice();n.splice(e,1),Ie(t,n,"removeOption",{option:le[e]})}}},Ne=e=>{he(!0),H&&!Q.current&&Oe(e)},ze=e=>{t(te)?ee.current.focus():(he(!1),J.current=!0,Q.current=!1,s&&-1!==se.current&&xe?Re(e,_e[se.current],"blur"):s&&O&&""!==ce?Re(e,ce,"blur","freeSolo"):y&&fe(e,le),Pe(e,"blur"))},Be=e=>{const t=e.target.value;ce!==t&&(de(t),ye(!1),$&&$(e,t,"input")),""===t?w||z||Ie(e,null,"clear"):Oe(e)},Fe=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));se.current!==t&&Ce({event:e,index:t,reason:"mouse"})},je=e=>{Ce({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ae.current=!0},$e=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Re(e,_e[t],"selectOption"),Ae.current=!1},Ve=e=>t=>{const n=le.slice();n.splice(e,1),Ie(t,n,"removeOption",{option:le[e]})},We=e=>{ge?Pe(e,"toggleInput"):Oe(e)},He=e=>{e.target.getAttribute("id")!==X&&e.preventDefault()},Ge=()=>{ee.current.focus(),q&&J.current&&ee.current.selectionEnd-ee.current.selectionStart==0&&ee.current.select(),J.current=!1},Ue=e=>{""!==ce&&ge||We(e)};let qe=O&&ce.length>0;qe=qe||(z?le.length>0:null!==le);let Ye=_e;if(A){new Map;Ye=_e.reduce(((e,t,n)=>{const r=A(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return k&&pe&&ze(),{getRootProps:(e={})=>(0,i.Z)({"aria-owns":Se?`${X}-listbox`:null},e,{onKeyDown:Ee(e),onMouseDown:He,onClick:Ge}),getInputLabelProps:()=>({id:`${X}-label`,htmlFor:X}),getInputProps:()=>({id:X,value:ce,onBlur:ze,onFocus:Ne,onChange:Be,onMouseDown:Ue,"aria-activedescendant":xe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Se?`${X}-listbox`:void 0,"aria-expanded":Se,autoComplete:"off",ref:ee,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:k}),getClearProps:()=>({tabIndex:-1,onClick:Le}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:We}),getTagProps:({index:e})=>(0,i.Z)({key:e,"data-tag-index":e,tabIndex:-1},!U&&{onDelete:Ve(e)}),getListboxProps:()=>({role:"listbox",id:`${X}-listbox`,"aria-labelledby":`${X}-label`,ref:Te,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(z?le:[le]).some((e=>null!=e&&N(t,e))),r=!!P&&P(t);return{key:K(t),tabIndex:-1,role:"option",id:`${X}-option-${e}`,onMouseMove:Fe,onClick:$e,onTouchStart:je,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:X,inputValue:ce,value:le,dirty:qe,expanded:xe&&ne,popupOpen:xe,focused:pe||-1!==ie,anchorEl:ne,setAnchorEl:re,focusedTag:ie,groupedOptions:Ye}}var b=n(852),x=n(6869),_=n(3605),w=n(3188),S=n(2048),k=n(3774),C=n(1598),M=n(3373),Z=n(9783),T=n(451),O=n(4963),P=n(8505),I=n(3265),A=n(2829),R=n(6799),D=n(1176);function L(e){return(0,D.Z)("MuiAutocomplete",e)}const E=(0,R.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var N,z,B=n(7996),F=n(1874);const j=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],$=(0,A.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${E.tag}`]:t.tag},{[`& .${E.tag}`]:t[`tagSize${(0,B.Z)(s)}`]},{[`& .${E.inputRoot}`]:t.inputRoot},{[`& .${E.input}`]:t.input},{[`& .${E.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})((({ownerState:e})=>(0,i.Z)({[`&.${E.focused} .${E.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${E.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${E.tag}`]:(0,i.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${E.inputRoot}`]:{flexWrap:"wrap",[`.${E.hasPopupIcon}&, .${E.hasClearIcon}&`]:{paddingRight:30},[`.${E.hasPopupIcon}.${E.hasClearIcon}&`]:{paddingRight:56},[`& .${E.input}`]:{width:0,minWidth:30}},[`& .${C.Z.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${C.Z.root}.${M.Z.sizeSmall}`]:{[`& .${C.Z.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Z.Z.root}`]:{padding:9,[`.${E.hasPopupIcon}&, .${E.hasClearIcon}&`]:{paddingRight:39},[`.${E.hasPopupIcon}.${E.hasClearIcon}&`]:{paddingRight:65},[`& .${E.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${E.endAdornment}`]:{right:9}},[`& .${Z.Z.root}.${M.Z.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${E.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${T.Z.root}`]:{paddingTop:19,paddingLeft:8,[`.${E.hasPopupIcon}&, .${E.hasClearIcon}&`]:{paddingRight:39},[`.${E.hasPopupIcon}.${E.hasClearIcon}&`]:{paddingRight:65},[`& .${T.Z.input}`]:{padding:"7px 4px"},[`& .${E.endAdornment}`]:{right:9}},[`& .${T.Z.root}.${M.Z.sizeSmall}`]:{paddingBottom:1,[`& .${T.Z.input}`]:{padding:"2.5px 4px"}},[`& .${M.Z.hiddenLabel}`]:{paddingTop:8},[`& .${T.Z.root}.${M.Z.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${E.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${T.Z.root}.${M.Z.hiddenLabel}.${M.Z.sizeSmall}`]:{[`& .${E.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${E.input}`]:(0,i.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})}))),V=(0,A.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),W=(0,A.ZP)(S.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),H=(0,A.ZP)(S.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,i.Z)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})((({ownerState:e})=>(0,i.Z)({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"}))),G=(0,A.ZP)(x.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${E.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((({theme:e,ownerState:t})=>(0,i.Z)({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"}))),U=(0,A.ZP)(w.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,i.Z)({},e.typography.body1,{overflow:"auto"}))),q=(0,A.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Y=(0,A.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),X=(0,A.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${E.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${E.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${E.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,b.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${E.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,b.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${E.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,b.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),K=(0,A.ZP)(_.Z,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Q=(0,A.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${E.option}`]:{paddingLeft:24}}),J=o.forwardRef((function(e,t){var n,l,u,c;const d=(0,I.Z)({props:e,name:"MuiAutocomplete"}),{autoComplete:p=!1,autoHighlight:h=!1,autoSelect:f=!1,blurOnSelect:g=!1,ChipProps:m,className:v,clearIcon:b=N||(N=(0,F.jsx)(O.Z,{fontSize:"small"})),clearOnBlur:_=!d.freeSolo,clearOnEscape:S=!1,clearText:C="Clear",closeText:M="Close",componentsProps:Z={},defaultValue:T=(d.multiple?[]:null),disableClearable:A=!1,disableCloseOnSelect:R=!1,disabled:D=!1,disabledItemsFocusable:E=!1,disableListWrap:J=!1,disablePortal:ee=!1,filterSelectedOptions:te=!1,forcePopupIcon:ne="auto",freeSolo:re=!1,fullWidth:ie=!1,getLimitTagsText:oe=(e=>`+${e}`),getOptionLabel:ae=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:se,handleHomeEndKeys:le=!d.freeSolo,includeInputInList:ue=!1,limitTags:ce=-1,ListboxComponent:de="ul",ListboxProps:pe,loading:he=!1,loadingText:fe="Loading…",multiple:ge=!1,noOptionsText:me="No options",openOnFocus:ve=!1,openText:ye="Open",PaperComponent:be=w.Z,PopperComponent:xe=x.Z,popupIcon:_e=z||(z=(0,F.jsx)(P.Z,{})),readOnly:we=!1,renderGroup:Se,renderInput:ke,renderOption:Ce,renderTags:Me,selectOnFocus:Ze=!d.freeSolo,size:Te="medium",slotProps:Oe={}}=d,Pe=(0,r.Z)(d,j),{getRootProps:Ie,getInputProps:Ae,getInputLabelProps:Re,getPopupIndicatorProps:De,getClearProps:Le,getTagProps:Ee,getListboxProps:Ne,getOptionProps:ze,value:Be,dirty:Fe,expanded:je,id:$e,popupOpen:Ve,focused:We,focusedTag:He,anchorEl:Ge,setAnchorEl:Ue,inputValue:qe,groupedOptions:Ye}=y((0,i.Z)({},d,{componentName:"Autocomplete"})),Xe=!A&&!D&&Fe&&!we,Ke=(!re||!0===ne)&&!1!==ne,{onMouseDown:Qe}=Ae(),Je=(0,i.Z)({},d,{disablePortal:ee,expanded:je,focused:We,fullWidth:ie,hasClearIcon:Xe,hasPopupIcon:Ke,inputFocused:-1===He,popupOpen:Ve,size:Te}),et=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:l,inputFocused:u,popupOpen:c,size:d}=e,p={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag",`tagSize${(0,B.Z)(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,s.Z)(p,L,t)})(Je);let tt;if(ge&&Be.length>0){const e=e=>(0,i.Z)({className:et.tag,disabled:D},Ee(e));tt=Me?Me(Be,e,Je):Be.map(((t,n)=>(0,F.jsx)(k.Z,(0,i.Z)({label:ae(t),size:Te},e({index:n}),m))))}if(ce>-1&&Array.isArray(tt)){const e=tt.length-ce;!We&&e>0&&(tt=tt.splice(0,ce),tt.push((0,F.jsx)("span",{className:et.tag,children:oe(e)},tt.length)))}const nt=Se||(e=>(0,F.jsxs)("li",{children:[(0,F.jsx)(K,{className:et.groupLabel,ownerState:Je,component:"div",children:e.group}),(0,F.jsx)(Q,{className:et.groupUl,ownerState:Je,children:e.children})]},e.key)),rt=Ce||((e,t)=>(0,F.jsx)("li",(0,i.Z)({},e,{children:ae(t)}))),it=(e,t)=>{const n=ze({option:e,index:t});return rt((0,i.Z)({},n,{className:et.option}),e,{selected:n["aria-selected"],index:t,inputValue:qe})},ot=null!=(n=Oe.clearIndicator)?n:Z.clearIndicator,at=null!=(l=Oe.paper)?l:Z.paper,st=null!=(u=Oe.popper)?u:Z.popper,lt=null!=(c=Oe.popupIndicator)?c:Z.popupIndicator;return(0,F.jsxs)(o.Fragment,{children:[(0,F.jsx)($,(0,i.Z)({ref:t,className:(0,a.Z)(et.root,v),ownerState:Je},Ie(Pe),{children:ke({id:$e,disabled:D,fullWidth:!0,size:"small"===Te?"small":void 0,InputLabelProps:Re(),InputProps:(0,i.Z)({ref:Ue,className:et.inputRoot,startAdornment:tt,onClick:e=>{e.target===e.currentTarget&&Qe(e)}},(Xe||Ke)&&{endAdornment:(0,F.jsxs)(V,{className:et.endAdornment,ownerState:Je,children:[Xe?(0,F.jsx)(W,(0,i.Z)({},Le(),{"aria-label":C,title:C,ownerState:Je},ot,{className:(0,a.Z)(et.clearIndicator,null==ot?void 0:ot.className),children:b})):null,Ke?(0,F.jsx)(H,(0,i.Z)({},De(),{disabled:D,"aria-label":Ve?M:ye,title:Ve?M:ye,ownerState:Je},lt,{className:(0,a.Z)(et.popupIndicator,null==lt?void 0:lt.className),children:_e})):null]})}),inputProps:(0,i.Z)({className:et.input,disabled:D,readOnly:we},Ae())})})),Ge?(0,F.jsx)(G,(0,i.Z)({as:xe,disablePortal:ee,style:{width:Ge?Ge.clientWidth:null},ownerState:Je,role:"presentation",anchorEl:Ge,open:Ve},st,{className:(0,a.Z)(et.popper,null==st?void 0:st.className),children:(0,F.jsxs)(U,(0,i.Z)({ownerState:Je,as:be},at,{className:(0,a.Z)(et.paper,null==at?void 0:at.className),children:[he&&0===Ye.length?(0,F.jsx)(q,{className:et.loading,ownerState:Je,children:fe}):null,0!==Ye.length||re||he?null:(0,F.jsx)(Y,{className:et.noOptions,ownerState:Je,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:me}),Ye.length>0?(0,F.jsx)(X,(0,i.Z)({as:de,className:et.listbox,ownerState:Je},Ne(),pe,{children:Ye.map(((e,t)=>se?nt({key:e.key,group:e.group,children:e.options.map(((t,n)=>it(t,e.index+n)))}):it(e,t)))})):null]}))})):null]})}))},4501:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(8891),l=n(8261),u=n(8432),c=n(6170),d=n(1874);const p=["className","component"];var h=n(697),f=n(1712),g=n(9846);const m=(0,f.Z)(),v=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:h="MuiBox-root",generateClassName:f}=e,g=(0,s.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z);return o.forwardRef((function(e,o){const s=(0,c.Z)(n),l=(0,u.Z)(e),{className:m,component:v="div"}=l,y=(0,i.Z)(l,p);return(0,d.jsx)(g,(0,r.Z)({as:v,ref:o,className:(0,a.Z)(m,f?f(h):h),theme:t&&s[t]||s},y))}))}({themeId:g.Z,defaultTheme:m,defaultClassName:"MuiBox-root",generateClassName:h.Z.generate}),y=v},7843:(e,t,n)=>{"use strict";n.d(t,{Z:()=>H});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(4792),l=n(2829),u=n(3265),c=n(5799),d=n(5051),p=n(3236),h=n(5421);function f(){return f=Object.assign||function(e){for(var t=1;t{if(!u&&null!=c){const e=setTimeout(c,d);return()=>{clearTimeout(e)}}}),[c,u,d]),(0,k.jsx)("span",{className:f,style:g,children:(0,k.jsx)("span",{className:m})})};var M=n(6799);const Z=(0,M.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),T=["center","classes","className"];let O,P,I,A,R=e=>e;const D=(0,S.F4)(O||(O=R` 0% { transform: scale(0); opacity: 0.1; @@ -72,7 +72,7 @@ animation-iteration-count: infinite; animation-delay: 200ms; } -`),Z.rippleVisible,D,550,(({theme:e})=>e.transitions.easing.easeInOut),Z.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Z.child,Z.childLeaving,L,550,(({theme:e})=>e.transitions.easing.easeInOut),Z.childPulsate,E,(({theme:e})=>e.transitions.easing.easeInOut)),B=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:c}=n,d=(0,i.Z)(n,T),[p,h]=o.useState([]),f=o.useRef(0),g=o.useRef(null);o.useEffect((()=>{g.current&&(g.current(),g.current=null)}),[p]);const m=o.useRef(!1),v=o.useRef(null),y=o.useRef(null),b=o.useRef(null);o.useEffect((()=>()=>{clearTimeout(v.current)}),[]);const x=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:o}=e;h((e=>[...e,(0,k.jsx)(z,{classes:{ripple:(0,a.Z)(l.ripple,Z.ripple),rippleVisible:(0,a.Z)(l.rippleVisible,Z.rippleVisible),ripplePulsate:(0,a.Z)(l.ripplePulsate,Z.ripplePulsate),child:(0,a.Z)(l.child,Z.child),childLeaving:(0,a.Z)(l.childLeaving,Z.childLeaving),childPulsate:(0,a.Z)(l.childPulsate,Z.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},f.current)])),f.current+=1,g.current=o}),[l]),_=o.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:i=s||t.pulsate,fakeElement:o=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&m.current)return void(m.current=!1);"touchstart"===(null==e?void 0:e.type)&&(m.current=!0);const a=o?null:b.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===y.current&&(y.current=()=>{x({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},v.current=setTimeout((()=>{y.current&&(y.current(),y.current=null)}),80)):x({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})}),[s,x]),S=o.useCallback((()=>{_({},{pulsate:!0})}),[_]),C=o.useCallback(((e,t)=>{if(clearTimeout(v.current),"touchend"===(null==e?void 0:e.type)&&y.current)return y.current(),y.current=null,void(v.current=setTimeout((()=>{C(e,t)})));y.current=null,h((e=>e.length>0?e.slice(1):e)),g.current=t}),[]);return o.useImperativeHandle(t,(()=>({pulsate:S,start:_,stop:C})),[S,_,C]),(0,k.jsx)(N,(0,r.Z)({className:(0,a.Z)(Z.root,l.root,c),ref:b},d,{children:(0,k.jsx)(w,{component:null,exit:!0,children:p})}))}));var F=n(7824);function j(e){return(0,F.Z)("MuiButtonBase",e)}const V=(0,M.Z)("MuiButtonBase",["root","disabled","focusVisible"]),$=["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"],W=(0,l.ZP)("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"},[`&.${V.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),H=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiButtonBase"}),{action:l,centerRipple:h=!1,children:f,className:g,component:m="button",disabled:v=!1,disableRipple:y=!1,disableTouchRipple:b=!1,focusRipple:x=!1,LinkComponent:_="a",onBlur:w,onClick:S,onContextMenu:C,onDragLeave:M,onFocus:Z,onFocusVisible:T,onKeyDown:O,onKeyUp:P,onMouseDown:I,onMouseLeave:A,onMouseUp:R,onTouchEnd:D,onTouchMove:L,onTouchStart:E,tabIndex:N=0,TouchRippleProps:z,touchRippleRef:F,type:V}=n,H=(0,i.Z)(n,$),G=o.useRef(null),U=o.useRef(null),q=(0,c.Z)(U,F),{isFocusVisibleRef:Y,onFocus:X,onBlur:K,ref:Q}=(0,p.Z)(),[J,ee]=o.useState(!1);v&&J&&ee(!1),o.useImperativeHandle(l,(()=>({focusVisible:()=>{ee(!0),G.current.focus()}})),[]);const[te,ne]=o.useState(!1);o.useEffect((()=>{ne(!0)}),[]);const re=te&&!y&&!v;function ie(e,t,n=b){return(0,d.Z)((r=>{t&&t(r);return!n&&U.current&&U.current[e](r),!0}))}o.useEffect((()=>{J&&x&&!y&&te&&U.current.pulsate()}),[y,x,J,te]);const oe=ie("start",I),ae=ie("stop",C),se=ie("stop",M),le=ie("stop",R),ue=ie("stop",(e=>{J&&e.preventDefault(),A&&A(e)})),ce=ie("start",E),de=ie("stop",D),pe=ie("stop",L),he=ie("stop",(e=>{K(e),!1===Y.current&&ee(!1),w&&w(e)}),!1),fe=(0,d.Z)((e=>{G.current||(G.current=e.currentTarget),X(e),!0===Y.current&&(ee(!0),T&&T(e)),Z&&Z(e)})),ge=()=>{const e=G.current;return m&&"button"!==m&&!("A"===e.tagName&&e.href)},me=o.useRef(!1),ve=(0,d.Z)((e=>{x&&!me.current&&J&&U.current&&" "===e.key&&(me.current=!0,U.current.stop(e,(()=>{U.current.start(e)}))),e.target===e.currentTarget&&ge()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&ge()&&"Enter"===e.key&&!v&&(e.preventDefault(),S&&S(e))})),ye=(0,d.Z)((e=>{x&&" "===e.key&&U.current&&J&&!e.defaultPrevented&&(me.current=!1,U.current.stop(e,(()=>{U.current.pulsate(e)}))),P&&P(e),S&&e.target===e.currentTarget&&ge()&&" "===e.key&&!e.defaultPrevented&&S(e)}));let be=m;"button"===be&&(H.href||H.to)&&(be=_);const xe={};"button"===be?(xe.type=void 0===V?"button":V,xe.disabled=v):(H.href||H.to||(xe.role="button"),v&&(xe["aria-disabled"]=v));const _e=(0,c.Z)(t,Q,G);const we=(0,r.Z)({},n,{centerRipple:h,component:m,disabled:v,disableRipple:y,disableTouchRipple:b,focusRipple:x,tabIndex:N,focusVisible:J}),Se=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,s.Z)(o,j,i);return n&&r&&(a.root+=` ${r}`),a})(we);return(0,k.jsxs)(W,(0,r.Z)({as:be,className:(0,a.Z)(Se.root,g),ownerState:we,onBlur:he,onClick:S,onContextMenu:ae,onFocus:fe,onKeyDown:ve,onKeyUp:ye,onMouseDown:oe,onMouseLeave:ue,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:pe,onTouchStart:ce,ref:_e,tabIndex:v?-1:N,type:V},xe,H,{children:[f,re?(0,k.jsx)(B,(0,r.Z)({ref:q,center:h},z)):null]}))}))},7606:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4280),l=n(8842),u=n(1280),c=n(1628),d=n(6820),p=n(1459),h=n(8115),f=n(2112),g=n(7824);function m(e){return(0,g.Z)("MuiButton",e)}const v=(0,f.Z)("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"]);const y=o.createContext({});var b=n(1874);const x=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],_=e=>(0,i.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),w=(0,c.ZP)(p.Z,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,h.Z)(n.color)}`],t[`size${(0,h.Z)(n.size)}`],t[`${n.variant}Size${(0,h.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;return(0,i.Z)({},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":(0,i.Z)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,u.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,u.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{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})`:(0,u.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,i.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${v.focusVisible}`]:(0,i.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${v.disabled}`]:(0,i.Z)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,u.Fq)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${v.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${v.disabled}`]:{boxShadow:"none"}})),S=(0,c.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,h.Z)(n.size)}`]]}})((({ownerState:e})=>(0,i.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},_(e)))),k=(0,c.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,h.Z)(n.size)}`]]}})((({ownerState:e})=>(0,i.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},_(e)))),C=o.forwardRef((function(e,t){const n=o.useContext(y),u=(0,s.Z)(n,e),c=(0,d.Z)({props:u,name:"MuiButton"}),{children:p,color:f="primary",component:g="button",className:v,disabled:_=!1,disableElevation:C=!1,disableFocusRipple:M=!1,endIcon:Z,focusVisibleClassName:T,fullWidth:O=!1,size:P="medium",startIcon:I,type:A,variant:R="text"}=c,D=(0,r.Z)(c,x),L=(0,i.Z)({},c,{color:f,component:g,disabled:_,disableElevation:C,disableFocusRipple:M,fullWidth:O,size:P,type:A,variant:R}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:s}=e,u={root:["root",a,`${a}${(0,h.Z)(t)}`,`size${(0,h.Z)(o)}`,`${a}Size${(0,h.Z)(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,h.Z)(o)}`],endIcon:["endIcon",`iconSize${(0,h.Z)(o)}`]},c=(0,l.Z)(u,m,s);return(0,i.Z)({},s,c)})(L),N=I&&(0,b.jsx)(S,{className:E.startIcon,ownerState:L,children:I}),z=Z&&(0,b.jsx)(k,{className:E.endIcon,ownerState:L,children:Z});return(0,b.jsxs)(w,(0,i.Z)({ownerState:L,className:(0,a.Z)(n.className,E.root,v),component:g,disabled:_,focusRipple:!M,focusVisibleClassName:(0,a.Z)(E.focusVisible,T),ref:t,type:A},D,{classes:E,children:[N,p,z]}))}))},1310:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(8842),l=n(6820),u=n(1628),c=n(2112),d=n(7824);function p(e){return(0,d.Z)("MuiCardActionArea",e)}const h=(0,c.Z)("MuiCardActionArea",["root","focusVisible","focusHighlight"]);var f=n(1459),g=n(1874);const m=["children","className","focusVisibleClassName"],v=(0,u.ZP)(f.Z,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"block",textAlign:"inherit",width:"100%",[`&:hover .${h.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${h.focusVisible} .${h.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),y=(0,u.ZP)("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})((({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),b=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiCardActionArea"}),{children:o,className:u,focusVisibleClassName:c}=n,d=(0,i.Z)(n,m),h=n,f=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],focusHighlight:["focusHighlight"]},p,t)})(h);return(0,g.jsxs)(v,(0,r.Z)({className:(0,a.Z)(f.root,u),focusVisibleClassName:(0,a.Z)(c,f.focusVisible),ref:t,ownerState:h},d,{children:[o,(0,g.jsx)(y,{className:f.focusHighlight,ownerState:h})]}))}))},434:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1628),u=n(6820),c=n(2112),d=n(7824);function p(e){return(0,d.Z)("MuiCardActions",e)}(0,c.Z)("MuiCardActions",["root","spacing"]);var h=n(1874);const f=["disableSpacing","className"],g=(0,l.ZP)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,i.Z)({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),m=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiCardActions"}),{disableSpacing:o=!1,className:l}=n,c=(0,r.Z)(n,f),d=(0,i.Z)({},n,{disableSpacing:o}),m=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,s.Z)(r,p,t)})(d);return(0,h.jsx)(g,(0,i.Z)({className:(0,a.Z)(m.root,l),ownerState:d,ref:t},c))}))},2093:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(8842),l=n(1628),u=n(6820),c=n(2112),d=n(7824);function p(e){return(0,d.Z)("MuiCardContent",e)}(0,c.Z)("MuiCardContent",["root"]);var h=n(1874);const f=["className","component"],g=(0,l.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),m=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiCardContent"}),{className:o,component:l="div"}=n,c=(0,i.Z)(n,f),d=(0,r.Z)({},n,{component:l}),m=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},p,t)})(d);return(0,h.jsx)(g,(0,r.Z)({as:l,className:(0,a.Z)(m.root,o),ownerState:d,ref:t},c))}))},2289:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(6820),u=n(1628),c=n(2112),d=n(7824);function p(e){return(0,d.Z)("MuiCardMedia",e)}(0,c.Z)("MuiCardMedia",["root","media","img"]);var h=n(1874);const f=["children","className","component","image","src","style"],g=(0,u.ZP)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})((({ownerState:e})=>(0,i.Z)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"}))),m=["video","audio","picture","iframe","img"],v=["picture","img"],y=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiCardMedia"}),{children:o,className:u,component:c="div",image:d,src:y,style:b}=n,x=(0,r.Z)(n,f),_=-1!==m.indexOf(c),w=!_&&d?(0,i.Z)({backgroundImage:`url("${d}")`},b):b,S=(0,i.Z)({},n,{component:c,isMediaComponent:_,isImageComponent:-1!==v.indexOf(c)}),k=(e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e,i={root:["root",n&&"media",r&&"img"]};return(0,s.Z)(i,p,t)})(S);return(0,h.jsx)(g,(0,i.Z)({className:(0,a.Z)(k.root,u),as:c,role:!_&&d?"img":void 0,ref:t,style:w,ownerState:S,src:_?d||y:void 0},x,{children:o}))}))},2580:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(8842),l=n(1628),u=n(6820),c=n(5890),d=n(2112),p=n(7824);function h(e){return(0,p.Z)("MuiCard",e)}(0,d.Z)("MuiCard",["root"]);var f=n(1874);const g=["className","raised"],m=(0,l.ZP)(c.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),v=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiCard"}),{className:o,raised:l=!1}=n,c=(0,i.Z)(n,g),d=(0,r.Z)({},n,{raised:l}),p=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},h,t)})(d);return(0,f.jsx)(m,(0,r.Z)({className:(0,a.Z)(p.root,o),elevation:l?8:void 0,ref:t,ownerState:d},c))}))},8874:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Z});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1280),u=n(7818),c=n(1704),d=n(1874);const p=(0,c.Z)((0,d.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"),h=(0,c.Z)((0,d.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"),f=(0,c.Z)((0,d.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");var g=n(8115),m=n(6820),v=n(1628),y=n(2112),b=n(7824);function x(e){return(0,b.Z)("MuiCheckbox",e)}const _=(0,y.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),w=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],S=(0,v.ZP)(u.Z,{shouldForwardProp:e=>(0,v.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,g.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${_.checked}, &.${_.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${_.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),k=(0,d.jsx)(h,{}),C=(0,d.jsx)(p,{}),M=(0,d.jsx)(f,{}),Z=o.forwardRef((function(e,t){var n,l;const u=(0,m.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:c=k,color:p="primary",icon:h=C,indeterminate:f=!1,indeterminateIcon:v=M,inputProps:y,size:b="medium",className:_}=u,Z=(0,r.Z)(u,w),T=f?v:h,O=f?v:c,P=(0,i.Z)({},u,{color:p,indeterminate:f,size:b}),I=(e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${(0,g.Z)(r)}`]},a=(0,s.Z)(o,x,t);return(0,i.Z)({},t,a)})(P);return(0,d.jsx)(S,(0,i.Z)({type:"checkbox",inputProps:(0,i.Z)({"data-indeterminate":f},y),icon:o.cloneElement(T,{fontSize:null!=(n=T.props.fontSize)?n:b}),checkedIcon:o.cloneElement(O,{fontSize:null!=(l=O.props.fontSize)?l:b}),ownerState:P,ref:t,className:(0,a.Z)(I.root,_)},Z,{classes:I}))}))},5572:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1280),u=n(1704),c=n(1874);const d=(0,u.Z)((0,c.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");var p=n(4717),h=n(8115),f=n(1459),g=n(6820),m=n(1628),v=n(2112),y=n(7824);function b(e){return(0,y.Z)("MuiChip",e)}const x=(0,v.Z)("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"]),_=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],w=(0,m.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${x.avatar}`]:t.avatar},{[`& .${x.avatar}`]:t[`avatar${(0,h.Z)(s)}`]},{[`& .${x.avatar}`]:t[`avatarColor${(0,h.Z)(r)}`]},{[`& .${x.icon}`]:t.icon},{[`& .${x.icon}`]:t[`icon${(0,h.Z)(s)}`]},{[`& .${x.icon}`]:t[`iconColor${(0,h.Z)(i)}`]},{[`& .${x.deleteIcon}`]:t.deleteIcon},{[`& .${x.deleteIcon}`]:t[`deleteIcon${(0,h.Z)(s)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIconColor${(0,h.Z)(r)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIcon${(0,h.Z)(l)}Color${(0,h.Z)(r)}`]},t.root,t[`size${(0,h.Z)(s)}`],t[`color${(0,h.Z)(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${(0,h.Z)(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${(0,h.Z)(r)}`],t[l],t[`${l}${(0,h.Z)(r)}`]]}})((({theme:e,ownerState:t})=>{const n=(0,l.Fq)(e.palette.text.primary,.26),r="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,i.Z)({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:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${x.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${x.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${x.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${x.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${x.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${x.icon}`]:(0,i.Z)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,i.Z)({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},"default"!==t.color&&{color:"inherit"})),[`& .${x.deleteIcon}`]:(0,i.Z)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,l.Fq)(n,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,l.Fq)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,i.Z)({},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}))`:(0,l.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,i.Z)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${x.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${x.avatar}`]:{marginLeft:4},[`& .${x.avatarSmall}`]:{marginLeft:2},[`& .${x.icon}`]:{marginLeft:4},[`& .${x.iconSmall}`]:{marginLeft:2},[`& .${x.deleteIcon}`]:{marginRight:5},[`& .${x.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,l.Fq)(e.palette[t.color].main,.7)}`,[`&.${x.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,l.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${x.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,l.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),S=(0,m.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,h.Z)(r)}`]]}})((({ownerState:e})=>(0,i.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.size&&{paddingLeft:8,paddingRight:8})));function k(e){return"Backspace"===e.key||"Delete"===e.key}const C=o.forwardRef((function(e,t){const n=(0,g.Z)({props:e,name:"MuiChip"}),{avatar:l,className:u,clickable:m,color:v="default",component:y,deleteIcon:x,disabled:C=!1,icon:M,label:Z,onClick:T,onDelete:O,onKeyDown:P,onKeyUp:I,size:A="medium",variant:R="filled",tabIndex:D,skipFocusWhenDisabled:L=!1}=n,E=(0,r.Z)(n,_),N=o.useRef(null),z=(0,p.Z)(N,t),B=e=>{e.stopPropagation(),O&&O(e)},F=!(!1===m||!T)||m,j=F||O?f.Z:y||"div",V=(0,i.Z)({},n,{component:j,disabled:C,size:A,color:v,iconColor:o.isValidElement(M)&&M.props.color||v,onDelete:!!O,clickable:F,variant:R}),$=(e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:l,variant:u}=e,c={root:["root",u,n&&"disabled",`size${(0,h.Z)(r)}`,`color${(0,h.Z)(i)}`,l&&"clickable",l&&`clickableColor${(0,h.Z)(i)}`,a&&"deletable",a&&`deletableColor${(0,h.Z)(i)}`,`${u}${(0,h.Z)(i)}`],label:["label",`label${(0,h.Z)(r)}`],avatar:["avatar",`avatar${(0,h.Z)(r)}`,`avatarColor${(0,h.Z)(i)}`],icon:["icon",`icon${(0,h.Z)(r)}`,`iconColor${(0,h.Z)(o)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,h.Z)(r)}`,`deleteIconColor${(0,h.Z)(i)}`,`deleteIcon${(0,h.Z)(u)}Color${(0,h.Z)(i)}`]};return(0,s.Z)(c,b,t)})(V),W=j===f.Z?(0,i.Z)({component:y||"div",focusVisibleClassName:$.focusVisible},O&&{disableRipple:!0}):{};let H=null;O&&(H=x&&o.isValidElement(x)?o.cloneElement(x,{className:(0,a.Z)(x.props.className,$.deleteIcon),onClick:B}):(0,c.jsx)(d,{className:(0,a.Z)($.deleteIcon),onClick:B}));let G=null;l&&o.isValidElement(l)&&(G=o.cloneElement(l,{className:(0,a.Z)($.avatar,l.props.className)}));let U=null;return M&&o.isValidElement(M)&&(U=o.cloneElement(M,{className:(0,a.Z)($.icon,M.props.className)})),(0,c.jsxs)(w,(0,i.Z)({as:j,className:(0,a.Z)($.root,u),disabled:!(!F||!C)||void 0,onClick:T,onKeyDown:e=>{e.currentTarget===e.target&&k(e)&&e.preventDefault(),P&&P(e)},onKeyUp:e=>{e.currentTarget===e.target&&(O&&k(e)?O(e):"Escape"===e.key&&N.current&&N.current.blur()),I&&I(e)},ref:z,tabIndex:L&&C?-1:D,ownerState:V},W,E,{children:[G||U,(0,c.jsx)(S,{className:(0,a.Z)($.label),ownerState:V,children:Z}),H]}))}))},5126:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(2648),l=n(8842),u=n(1628),c=n(6820),d=n(3873),p=n(4743),h=n(5401),f=n(4717),g=n(2112),m=n(7824);function v(e){return(0,m.Z)("MuiCollapse",e)}(0,g.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var y=n(1874);const b=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],x=(0,u.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>(0,i.Z)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&(0,i.Z)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),_=(0,u.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>(0,i.Z)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),w=(0,u.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>(0,i.Z)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),S=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiCollapse"}),{addEndListener:u,children:g,className:m,collapsedSize:S="0px",component:k,easing:C,in:M,onEnter:Z,onEntered:T,onEntering:O,onExit:P,onExited:I,onExiting:A,orientation:R="vertical",style:D,timeout:L=d.x9.standard,TransitionComponent:E=s.ZP}=n,N=(0,r.Z)(n,b),z=(0,i.Z)({},n,{orientation:R,collapsedSize:S}),B=(e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,l.Z)(r,v,n)})(z),F=(0,h.Z)(),j=o.useRef(),V=o.useRef(null),$=o.useRef(),W="number"==typeof S?`${S}px`:S,H="horizontal"===R,G=H?"width":"height";o.useEffect((()=>()=>{clearTimeout(j.current)}),[]);const U=o.useRef(null),q=(0,f.Z)(t,U),Y=e=>t=>{if(e){const n=U.current;void 0===t?e(n):e(n,t)}},X=()=>V.current?V.current[H?"clientWidth":"clientHeight"]:0,K=Y(((e,t)=>{V.current&&H&&(V.current.style.position="absolute"),e.style[G]=W,Z&&Z(e,t)})),Q=Y(((e,t)=>{const n=X();V.current&&H&&(V.current.style.position="");const{duration:r,easing:i}=(0,p.C)({style:D,timeout:L,easing:C},{mode:"enter"});if("auto"===L){const t=F.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,$.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[G]=`${n}px`,e.style.transitionTimingFunction=i,O&&O(e,t)})),J=Y(((e,t)=>{e.style[G]="auto",T&&T(e,t)})),ee=Y((e=>{e.style[G]=`${X()}px`,P&&P(e)})),te=Y(I),ne=Y((e=>{const t=X(),{duration:n,easing:r}=(0,p.C)({style:D,timeout:L,easing:C},{mode:"exit"});if("auto"===L){const n=F.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,$.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[G]=W,e.style.transitionTimingFunction=r,A&&A(e)}));return(0,y.jsx)(E,(0,i.Z)({in:M,onEnter:K,onEntered:J,onEntering:Q,onExit:ee,onExited:te,onExiting:ne,addEndListener:e=>{"auto"===L&&(j.current=setTimeout(e,$.current||0)),u&&u(U.current,e)},nodeRef:U,timeout:"auto"===L?null:L},N,{children:(e,t)=>(0,y.jsx)(x,(0,i.Z)({as:k,className:(0,a.Z)(B.root,m,{entered:B.entered,exited:!M&&"0px"===W&&B.hidden}[e]),style:(0,i.Z)({[H?"minWidth":"minHeight"]:W},D),ownerState:(0,i.Z)({},z,{state:e}),ref:q},t,{children:(0,y.jsx)(_,{ownerState:(0,i.Z)({},z,{state:e}),className:B.wrapper,ref:V,children:(0,y.jsx)(w,{ownerState:(0,i.Z)({},z,{state:e}),className:B.wrapperInner,children:g})})}))}))}));S.muiSupportAuto=!0;const k=S},5288:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d});var r=n(557),i=n(9953),o=n(6820),a=n(7423),s=n(1874);const l=(e,t)=>(0,r.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),u=e=>(0,r.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),c=(e,t=!1)=>{var n,i;const o={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((([t,n])=>{var r;o[e.getColorSchemeSelector(t).replace(/\s*&/,"")]={colorScheme:null==(r=n.palette)?void 0:r.mode}}));let a=(0,r.Z)({html:l(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,r.Z)({margin:0},u(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},o);const s=null==(n=e.components)||null==(i=n.MuiCssBaseline)?void 0:i.styleOverrides;return s&&(a=[a,s]),a};const d=function(e){const t=(0,o.Z)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(a.Z,{styles:e=>c(e,r)}),n]})}},4351:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1280),u=n(1628),c=n(6820),d=n(3084),p=n(1874);const h=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],f=(0,u.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,i.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,l.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>(0,i.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,i.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,i.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),g=(0,u.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,i.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),m=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiDivider"}),{absolute:o=!1,children:l,className:u,component:m=(l?"div":"hr"),flexItem:v=!1,light:y=!1,orientation:b="horizontal",role:x=("hr"!==m?"separator":void 0),textAlign:_="center",variant:w="fullWidth"}=n,S=(0,r.Z)(n,h),k=(0,i.Z)({},n,{absolute:o,component:m,flexItem:v,light:y,orientation:b,role:x,textAlign:_,variant:w}),C=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:l,variant:u}=e,c={root:["root",t&&"absolute",u,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.Z)(c,d.V,r)})(k);return(0,p.jsx)(f,(0,i.Z)({as:m,className:(0,a.Z)(C.root,u),role:x,ref:t,ownerState:k},S,{children:l?(0,p.jsx)(g,{className:C.wrapper,ownerState:k,children:l}):null}))}))},3084:(e,t,n)=>{"use strict";n.d(t,{V:()=>o,Z:()=>a});var r=n(2112),i=n(7824);function o(e){return(0,i.Z)("MuiDivider",e)}const a=(0,r.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},3697:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>R});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(7095),u=n(2648),c=n(4897),d=n(4717),p=n(5401),h=n(4743),f=n(8404),g=n(1874);const m=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function v(e,t,n){var r;const i=function(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=(0,f.Z)(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=o.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"==typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:"right"===e?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"==typeof(r=n)?r():r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const y=o.forwardRef((function(e,t){const n=(0,p.Z)(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:l,appear:y=!0,children:b,container:x,direction:_="down",easing:w=a,in:S,onEnter:k,onEntered:C,onEntering:M,onExit:Z,onExited:T,onExiting:O,style:P,timeout:I=s,TransitionComponent:A=u.ZP}=e,R=(0,r.Z)(e,m),D=o.useRef(null),L=(0,d.Z)(b.ref,D,t),E=e=>t=>{e&&(void 0===t?e(D.current):e(D.current,t))},N=E(((e,t)=>{v(_,e,x),(0,h.n)(e),k&&k(e,t)})),z=E(((e,t)=>{const r=(0,h.C)({timeout:I,style:P,easing:w},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,i.Z)({},r)),e.style.transition=n.transitions.create("transform",(0,i.Z)({},r)),e.style.webkitTransform="none",e.style.transform="none",M&&M(e,t)})),B=E(C),F=E(O),j=E((e=>{const t=(0,h.C)({timeout:I,style:P,easing:w},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),v(_,e,x),Z&&Z(e)})),V=E((e=>{e.style.webkitTransition="",e.style.transition="",T&&T(e)})),$=o.useCallback((()=>{D.current&&v(_,D.current,x)}),[_,x]);return o.useEffect((()=>{if(S||"down"===_||"right"===_)return;const e=(0,c.Z)((()=>{D.current&&v(_,D.current,x)})),t=(0,f.Z)(D.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[_,S,x]),o.useEffect((()=>{S||$()}),[S,$]),(0,g.jsx)(A,(0,i.Z)({nodeRef:D,onEnter:N,onEntered:B,onEntering:z,onExit:j,onExited:V,onExiting:F,addEndListener:e=>{l&&l(D.current,e)},appear:y,in:S,timeout:I},R,{children:(e,t)=>o.cloneElement(b,(0,i.Z)({ref:L,style:(0,i.Z)({visibility:"exited"!==e||S?void 0:"hidden"},P,b.props.style)},t))}))}));var b=n(5890),x=n(8115),_=n(6820),w=n(1628),S=n(2112),k=n(7824);function C(e){return(0,k.Z)("MuiDrawer",e)}(0,S.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const M=["BackdropProps"],Z=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],T=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},O=(0,w.ZP)(l.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:T})((({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),P=(0,w.ZP)("div",{shouldForwardProp:w.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:T})({flex:"0 0 auto"}),I=(0,w.ZP)(b.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${(0,x.Z)(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${(0,x.Z)(n.anchor)}`]]}})((({theme:e,ownerState:t})=>(0,i.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===t.anchor&&{left:0},"top"===t.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===t.anchor&&{right:0},"bottom"===t.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===t.anchor&&"temporary"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},"top"===t.anchor&&"temporary"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"right"===t.anchor&&"temporary"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"bottom"===t.anchor&&"temporary"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`}))),A={left:"right",right:"left",top:"down",bottom:"up"};const R=o.forwardRef((function(e,t){const n=(0,_.Z)({props:e,name:"MuiDrawer"}),l=(0,p.Z)(),u={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:c="left",BackdropProps:d,children:h,className:f,elevation:m=16,hideBackdrop:v=!1,ModalProps:{BackdropProps:b}={},onClose:w,open:S=!1,PaperProps:k={},SlideProps:T,TransitionComponent:R=y,transitionDuration:D=u,variant:L="temporary"}=n,E=(0,r.Z)(n.ModalProps,M),N=(0,r.Z)(n,Z),z=o.useRef(!1);o.useEffect((()=>{z.current=!0}),[]);const B=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?A[t]:t}(l,c),F=c,j=(0,i.Z)({},n,{anchor:F,elevation:m,open:S,variant:L},N),V=(e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,x.Z)(n)}`,"temporary"!==r&&`paperAnchorDocked${(0,x.Z)(n)}`]};return(0,s.Z)(i,C,t)})(j),$=(0,g.jsx)(I,(0,i.Z)({elevation:"temporary"===L?m:0,square:!0},k,{className:(0,a.Z)(V.paper,k.className),ownerState:j,children:h}));if("permanent"===L)return(0,g.jsx)(P,(0,i.Z)({className:(0,a.Z)(V.root,V.docked,f),ownerState:j,ref:t},N,{children:$}));const W=(0,g.jsx)(R,(0,i.Z)({in:S,direction:A[B],timeout:D,appear:z.current},T,{children:$}));return"persistent"===L?(0,g.jsx)(P,(0,i.Z)({className:(0,a.Z)(V.root,V.docked,f),ownerState:j,ref:t},N,{children:W})):(0,g.jsx)(O,(0,i.Z)({BackdropProps:(0,i.Z)({},d,b,{transitionDuration:D}),className:(0,a.Z)(V.root,V.modal,f),open:S,ownerState:j,onClose:w,hideBackdrop:v,ref:t},N,E,{children:W}))}))},2389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(1551),i=n(557),o=n(9953),a=n(2131),s=n(8842),l=n(9137),u=n(1628),c=n(6820),d=n(8249),p=n(1874);const h=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],f=(0,u.ZP)(l.Ej,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,l.Gx)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,i.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${d.Z.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${d.Z.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?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"},[`&.${d.Z.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${d.Z.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})`:o}`,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(.${d.Z.disabled}, .${d.Z.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${d.Z.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,i.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),g=(0,u.ZP)(l.rA,{name:"MuiFilledInput",slot:"Input",overridesResolver:l._o})((({theme:e,ownerState:t})=>(0,i.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},"small"===t.size&&{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&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),m=o.forwardRef((function(e,t){var n,o,u,m;const v=(0,c.Z)({props:e,name:"MuiFilledInput"}),{components:y={},componentsProps:b,fullWidth:x=!1,inputComponent:_="input",multiline:w=!1,slotProps:S,slots:k={},type:C="text"}=v,M=(0,r.Z)(v,h),Z=(0,i.Z)({},v,{fullWidth:x,inputComponent:_,multiline:w,type:C}),T=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,s.Z)(r,d._,t);return(0,i.Z)({},t,o)})(v),O={root:{ownerState:Z},input:{ownerState:Z}},P=(null!=S?S:b)?(0,a.Z)(null!=S?S:b,O):O,I=null!=(n=null!=(o=k.root)?o:y.Root)?n:f,A=null!=(u=null!=(m=k.input)?m:y.Input)?u:g;return(0,p.jsx)(l.ZP,(0,i.Z)({slots:{root:I,input:A},componentsProps:P,fullWidth:x,inputComponent:_,multiline:w,ref:t,type:C},M,{classes:T}))}));m.muiName="Input";const v=m},8249:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,_:()=>s});var r=n(557),i=n(2112),o=n(7824),a=n(5214);function s(e){return(0,o.Z)("MuiFilledInput",e)}const l=(0,r.Z)({},a.Z,(0,i.Z)("MuiFilledInput",["root","underline","input"]))},5494:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(7139),u=n(1759),c=n(8115),d=n(1628),p=n(6820),h=n(2112),f=n(7824);function g(e){return(0,f.Z)("MuiFormControlLabel",e)}const m=(0,h.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]);var v=n(5823),y=n(1874);const b=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],x=(0,d.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${m.label}`]:t.label},t.root,t[`labelPlacement${(0,c.Z)(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${m.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${m.label}`]:{[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),_=o.forwardRef((function(e,t){var n;const d=(0,p.Z)({props:e,name:"MuiFormControlLabel"}),{className:h,componentsProps:f={},control:m,disabled:_,disableTypography:w,label:S,labelPlacement:k="end",slotProps:C={}}=d,M=(0,r.Z)(d,b),Z=(0,l.Z)();let T=_;void 0===T&&void 0!==m.props.disabled&&(T=m.props.disabled),void 0===T&&Z&&(T=Z.disabled);const O={disabled:T};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===m.props[e]&&void 0!==d[e]&&(O[e]=d[e])}));const P=(0,v.Z)({props:d,muiFormControl:Z,states:["error"]}),I=(0,i.Z)({},d,{disabled:T,labelPlacement:k,error:P.error}),A=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:i}=e,o={root:["root",n&&"disabled",`labelPlacement${(0,c.Z)(r)}`,i&&"error"],label:["label",n&&"disabled"]};return(0,s.Z)(o,g,t)})(I),R=null!=(n=C.typography)?n:f.typography;let D=S;return null==D||D.type===u.Z||w||(D=(0,y.jsx)(u.Z,(0,i.Z)({component:"span"},R,{className:(0,a.Z)(A.label,null==R?void 0:R.className),children:D}))),(0,y.jsxs)(x,(0,i.Z)({className:(0,a.Z)(A.root,h),ownerState:I,ref:t},M,{children:[o.cloneElement(m,O),D]}))}))},3132:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(6820),u=n(1628),c=n(2139),d=n(8115),p=n(2284),h=n(8666),f=n(2112),g=n(7824);function m(e){return(0,g.Z)("MuiFormControl",e)}(0,f.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var v=n(1874);const y=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],b=(0,u.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,i.Z)({},t.root,t[`margin${(0,d.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,i.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),x=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiFormControl"}),{children:u,className:f,color:g="primary",component:x="div",disabled:_=!1,error:w=!1,focused:S,fullWidth:k=!1,hiddenLabel:C=!1,margin:M="none",required:Z=!1,size:T="medium",variant:O="outlined"}=n,P=(0,r.Z)(n,y),I=(0,i.Z)({},n,{color:g,component:x,disabled:_,error:w,fullWidth:k,hiddenLabel:C,margin:M,required:Z,size:T,variant:O}),A=(e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root","none"!==n&&`margin${(0,d.Z)(n)}`,r&&"fullWidth"]};return(0,s.Z)(i,m,t)})(I),[R,D]=o.useState((()=>{let e=!1;return u&&o.Children.forEach(u,(t=>{if(!(0,p.Z)(t,["Input","Select"]))return;const n=(0,p.Z)(t,["Select"])?t.props.input:t;n&&(0,c.B7)(n.props)&&(e=!0)})),e})),[L,E]=o.useState((()=>{let e=!1;return u&&o.Children.forEach(u,(t=>{(0,p.Z)(t,["Input","Select"])&&(0,c.vd)(t.props,!0)&&(e=!0)})),e})),[N,z]=o.useState(!1);_&&N&&z(!1);const B=void 0===S||_?N:S;let F;const j=o.useMemo((()=>({adornedStart:R,setAdornedStart:D,color:g,disabled:_,error:w,filled:L,focused:B,fullWidth:k,hiddenLabel:C,size:T,onBlur:()=>{z(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{z(!0)},registerEffect:F,required:Z,variant:O})),[R,g,_,w,L,B,k,C,F,Z,T,O]);return(0,v.jsx)(h.Z.Provider,{value:j,children:(0,v.jsx)(b,(0,i.Z)({as:x,ownerState:I,className:(0,a.Z)(A.root,f),ref:t},P,{children:u}))})}))},8666:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(9953).createContext(void 0)},5823:(e,t,n)=>{"use strict";function r({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}n.d(t,{Z:()=>r})},7139:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9953),i=n(8666);function o(){return r.useContext(i.Z)}},3830:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1628),u=n(6820),c=n(2112),d=n(7824);function p(e){return(0,d.Z)("MuiFormGroup",e)}(0,c.Z)("MuiFormGroup",["root","row","error"]);var h=n(7139),f=n(5823),g=n(1874);const m=["className","row"],v=(0,l.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})((({ownerState:e})=>(0,i.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"}))),y=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiFormGroup"}),{className:o,row:l=!1}=n,c=(0,r.Z)(n,m),d=(0,h.Z)(),y=(0,f.Z)({props:n,muiFormControl:d,states:["error"]}),b=(0,i.Z)({},n,{row:l,error:y.error}),x=(e=>{const{classes:t,row:n,error:r}=e,i={root:["root",n&&"row",r&&"error"]};return(0,s.Z)(i,p,t)})(b);return(0,g.jsx)(v,(0,i.Z)({className:(0,a.Z)(x.root,o),ownerState:b,ref:t},c))}))},7084:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(5823),u=n(7139),c=n(1628),d=n(8115),p=n(2112),h=n(7824);function f(e){return(0,h.Z)("MuiFormHelperText",e)}const g=(0,p.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var m,v=n(6820),y=n(1874);const b=["children","className","component","disabled","error","filled","focused","margin","required","variant"],x=(0,c.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,d.Z)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${g.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),_=o.forwardRef((function(e,t){const n=(0,v.Z)({props:e,name:"MuiFormHelperText"}),{children:o,className:c,component:p="p"}=n,h=(0,r.Z)(n,b),g=(0,u.Z)(),_=(0,l.Z)({props:n,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),w=(0,i.Z)({},n,{component:p,contained:"filled"===_.variant||"outlined"===_.variant,variant:_.variant,size:_.size,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required}),S=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:l,required:u}=e,c={root:["root",i&&"disabled",o&&"error",r&&`size${(0,d.Z)(r)}`,n&&"contained",l&&"focused",a&&"filled",u&&"required"]};return(0,s.Z)(c,f,t)})(w);return(0,y.jsx)(x,(0,i.Z)({as:p,ownerState:w,className:(0,a.Z)(S.root,c),ref:t},h,{children:" "===o?m||(m=(0,y.jsx)("span",{className:"notranslate",children:"​"})):o}))}))},7423:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(557),i=(n(9953),n(6504)),o=n(1874);function a(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,o.jsx)(i.xB,{styles:r})}var s=n(7962);const l=function(e){return(0,o.jsx)(a,(0,r.Z)({},e,{defaultTheme:s.Z}))}},43:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>M});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8715),l=n(3907),u=n(8842),c=n(1628),d=n(6820),p=n(5401);const h=o.createContext();var f=n(2112),g=n(7824);function m(e){return(0,g.Z)("MuiGrid",e)}const v=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],y=(0,f.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...v.map((e=>`grid-xs-${e}`)),...v.map((e=>`grid-sm-${e}`)),...v.map((e=>`grid-md-${e}`)),...v.map((e=>`grid-lg-${e}`)),...v.map((e=>`grid-xl-${e}`))]);var b=n(1874);const x=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function _(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function w({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const S=(0,c.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const i=e[t];Number(i)>0&&r.push(n[`spacing-${t}-${String(i)}`])})),r}(a,u,t));const d=[];return u.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...c,"row"!==i&&t[`direction-xs-${String(i)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>(0,i.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){const n=(0,s.P$)({values:t.direction,breakpoints:e.breakpoints.values});return(0,s.k9)({theme:e},n,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${y.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&0!==r){const t=(0,s.P$)({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=w({breakpoints:e.breakpoints.values,values:t})),i=(0,s.k9)({theme:e},t,((t,r)=>{var i;const o=e.spacing(t);return"0px"!==o?{marginTop:`-${_(o)}`,[`& > .${y.item}`]:{paddingTop:_(o)}}:null!=(i=n)&&i.includes(r)?{}:{marginTop:0,[`& > .${y.item}`]:{paddingTop:0}}}))}return i}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&0!==r){const t=(0,s.P$)({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=w({breakpoints:e.breakpoints.values,values:t})),i=(0,s.k9)({theme:e},t,((t,r)=>{var i;const o=e.spacing(t);return"0px"!==o?{width:`calc(100% + ${_(o)})`,marginLeft:`-${_(o)}`,[`& > .${y.item}`]:{paddingLeft:_(o)}}:null!=(i=n)&&i.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${y.item}`]:{paddingLeft:0}}}))}return i}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=(0,s.P$)({values:t.columns,breakpoints:e.breakpoints.values}),u="object"==typeof l?l[o]:l;if(null==u)return r;const c=Math.round(n/u*1e8)/1e6+"%";let d={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${c} + ${_(n)})`;d={flexBasis:e,maxWidth:e}}}a=(0,i.Z)({flexBasis:c,flexGrow:0,maxWidth:c},d)}return 0===e.breakpoints.values[o]?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r}),{})}));const k=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(o,l));const d=[];l.forEach((t=>{const n=e[t];n&&d.push(`grid-${t}-${String(n)}`)}));const p={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...d]};return(0,u.Z)(p,m,t)},C=o.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiGrid"}),{breakpoints:s}=(0,p.Z)(),u=(0,l.Z)(n),{className:c,columns:f,columnSpacing:g,component:m="div",container:v=!1,direction:y="row",item:_=!1,rowSpacing:w,spacing:C=0,wrap:M="wrap",zeroMinWidth:Z=!1}=u,T=(0,r.Z)(u,x),O=w||C,P=g||C,I=o.useContext(h),A=v?f||12:I,R={},D=(0,i.Z)({},T);s.keys.forEach((e=>{null!=T[e]&&(R[e]=T[e],delete D[e])}));const L=(0,i.Z)({},u,{columns:A,container:v,direction:y,item:_,rowSpacing:O,columnSpacing:P,wrap:M,zeroMinWidth:Z,spacing:C},R,{breakpoints:s.keys}),E=k(L);return(0,b.jsx)(h.Provider,{value:A,children:(0,b.jsx)(S,(0,i.Z)({ownerState:L,className:(0,a.Z)(E.root,c),as:m,ref:t},D))})}));const M=C},2464:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(557),i=n(1551),o=n(9953),a=n(2648),s=n(5401),l=n(4743),u=n(4717),c=n(1874);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(e){return`scale(${e}, ${e**2})`}const h={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},f="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),g=o.forwardRef((function(e,t){const{addEndListener:n,appear:g=!0,children:m,easing:v,in:y,onEnter:b,onEntered:x,onEntering:_,onExit:w,onExited:S,onExiting:k,style:C,timeout:M="auto",TransitionComponent:Z=a.ZP}=e,T=(0,i.Z)(e,d),O=o.useRef(),P=o.useRef(),I=(0,s.Z)(),A=o.useRef(null),R=(0,u.Z)(A,m.ref,t),D=e=>t=>{if(e){const n=A.current;void 0===t?e(n):e(n,t)}},L=D(_),E=D(((e,t)=>{(0,l.n)(e);const{duration:n,delay:r,easing:i}=(0,l.C)({style:C,timeout:M,easing:v},{mode:"enter"});let o;"auto"===M?(o=I.transitions.getAutoHeightDuration(e.clientHeight),P.current=o):o=n,e.style.transition=[I.transitions.create("opacity",{duration:o,delay:r}),I.transitions.create("transform",{duration:f?o:.666*o,delay:r,easing:i})].join(","),b&&b(e,t)})),N=D(x),z=D(k),B=D((e=>{const{duration:t,delay:n,easing:r}=(0,l.C)({style:C,timeout:M,easing:v},{mode:"exit"});let i;"auto"===M?(i=I.transitions.getAutoHeightDuration(e.clientHeight),P.current=i):i=t,e.style.transition=[I.transitions.create("opacity",{duration:i,delay:n}),I.transitions.create("transform",{duration:f?i:.666*i,delay:f?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=p(.75),w&&w(e)})),F=D(S);return o.useEffect((()=>()=>{clearTimeout(O.current)}),[]),(0,c.jsx)(Z,(0,r.Z)({appear:g,in:y,nodeRef:A,onEnter:E,onEntered:N,onEntering:L,onExit:B,onExited:F,onExiting:z,addEndListener:e=>{"auto"===M&&(O.current=setTimeout(e,P.current||0)),n&&n(A.current,e)},timeout:"auto"===M?null:M},T,{children:(e,t)=>o.cloneElement(m,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:p(.75),visibility:"exited"!==e||y?void 0:"hidden"},h[e],C,m.props.style),ref:R},t))}))}));g.muiSupportAuto=!0;const m=g},3645:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1280),u=n(1628),c=n(6820),d=n(1459),p=n(8115),h=n(2112),f=n(7824);function g(e){return(0,f.Z)("MuiIconButton",e)}const m=(0,h.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);var v=n(1874);const y=["edge","children","className","color","disabled","disableFocusRipple","size"],b=(0,u.ZP)(d.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,p.Z)(n.color)}`],n.edge&&t[`edge${(0,p.Z)(n.edge)}`],t[`size${(0,p.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,i.Z)({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})`:(0,l.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return(0,i.Z)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,i.Z)({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":(0,i.Z)({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.Fq)(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${m.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),x=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiIconButton"}),{edge:o=!1,children:l,className:u,color:d="default",disabled:h=!1,disableFocusRipple:f=!1,size:m="medium"}=n,x=(0,r.Z)(n,y),_=(0,i.Z)({},n,{edge:o,color:d,disabled:h,disableFocusRipple:f,size:m}),w=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled","default"!==r&&`color${(0,p.Z)(r)}`,i&&`edge${(0,p.Z)(i)}`,`size${(0,p.Z)(o)}`]};return(0,s.Z)(a,g,t)})(_);return(0,v.jsx)(b,(0,i.Z)({className:(0,a.Z)(w.root,u),centerRipple:!0,focusRipple:!f,disabled:h,ref:t,ownerState:_},x,{children:l}))}))},9137:(e,t,n)=>{"use strict";n.d(t,{rA:()=>E,Ej:()=>L,ZP:()=>z,_o:()=>D,Gx:()=>R});var r=n(1551),i=n(557),o=n(4968),a=n(9953),s=n(4923),l=n(8842),u=n(7966),c=n(1888),d=n(9826),p=n(6137),h=n(904),f=n(1874);const g=["onChange","maxRows","minRows","style","value"];function m(e){return parseInt(e,10)||0}const v={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function y(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const b=a.forwardRef((function(e,t){const{onChange:n,maxRows:o,minRows:s=1,style:l,value:b}=e,x=(0,r.Z)(e,g),{current:_}=a.useRef(null!=b),w=a.useRef(null),S=(0,c.Z)(t,w),k=a.useRef(null),C=a.useRef(0),[M,Z]=a.useState({outerHeightStyle:0}),T=a.useCallback((()=>{const t=w.current,n=(0,d.Z)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const r=k.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const i=n.boxSizing,a=m(n.paddingBottom)+m(n.paddingTop),l=m(n.borderBottomWidth)+m(n.borderTopWidth),u=r.scrollHeight;r.value="x";const c=r.scrollHeight;let p=u;s&&(p=Math.max(Number(s)*c,p)),o&&(p=Math.min(Number(o)*c,p)),p=Math.max(p,c);return{outerHeightStyle:p+("border-box"===i?a+l:0),overflow:Math.abs(p-u)<=1}}),[o,s,e.placeholder]),O=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return C.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(C.current+=1,{overflow:r,outerHeightStyle:n}):e},P=a.useCallback((()=>{const e=T();y(e)||Z((t=>O(t,e)))}),[T]);a.useEffect((()=>{const e=(0,p.Z)((()=>{C.current=0,w.current&&(()=>{const e=T();y(e)||u.flushSync((()=>{Z((t=>O(t,e)))}))})()}));let t;const n=w.current,r=(0,d.Z)(n);return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),r.removeEventListener("resize",e),t&&t.disconnect()}})),(0,h.Z)((()=>{P()})),a.useEffect((()=>{C.current=0}),[b]);return(0,f.jsxs)(a.Fragment,{children:[(0,f.jsx)("textarea",(0,i.Z)({value:b,onChange:e=>{C.current=0,_||P(),n&&n(e)},ref:S,rows:s,style:(0,i.Z)({height:M.outerHeightStyle,overflow:M.overflow?"hidden":void 0},l)},x)),(0,f.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:k,tabIndex:-1,style:(0,i.Z)({},v,l,{padding:0})})]})}));var x=n(2083),_=n(5823),w=n(8666),S=n(7139),k=n(1628),C=n(6820),M=n(8115),Z=n(4717),T=n(5973),O=n(7423),P=n(2139),I=n(5214);const A=["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"],R=(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,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,M.Z)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},D=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},L=(0,k.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:R})((({theme:e,ownerState:t})=>(0,i.Z)({},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",[`&.${I.Z.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,i.Z)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),E=(0,k.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:D})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=(0,i.Z)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,i.Z)({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] + .${I.Z.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${I.Z.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),N=(0,f.jsx)(O.Z,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),z=a.forwardRef((function(e,t){var n;const u=(0,C.Z)({props:e,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:p,className:h,components:g={},componentsProps:m={},defaultValue:v,disabled:y,disableInjectingGlobalStyles:k,endAdornment:O,fullWidth:R=!1,id:D,inputComponent:z="input",inputProps:B={},inputRef:F,maxRows:j,minRows:V,multiline:$=!1,name:W,onBlur:H,onChange:G,onClick:U,onFocus:q,onKeyDown:Y,onKeyUp:X,placeholder:K,readOnly:Q,renderSuffix:J,rows:ee,slotProps:te={},slots:ne={},startAdornment:re,type:ie="text",value:oe}=u,ae=(0,r.Z)(u,A),se=null!=B.value?B.value:oe,{current:le}=a.useRef(null!=se),ue=a.useRef(),ce=a.useCallback((e=>{0}),[]),de=(0,Z.Z)(ue,F,B.ref,ce),[pe,he]=a.useState(!1),fe=(0,S.Z)();const ge=(0,_.Z)({props:u,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=fe?fe.focused:pe,a.useEffect((()=>{!fe&&y&&pe&&(he(!1),H&&H())}),[fe,y,pe,H]);const me=fe&&fe.onFilled,ve=fe&&fe.onEmpty,ye=a.useCallback((e=>{(0,P.vd)(e)?me&&me():ve&&ve()}),[me,ve]);(0,T.Z)((()=>{le&&ye({value:se})}),[se,ye,le]);a.useEffect((()=>{ye(ue.current)}),[]);let be=z,xe=B;$&&"input"===be&&(xe=ee?(0,i.Z)({type:void 0,minRows:ee,maxRows:ee},xe):(0,i.Z)({type:void 0,maxRows:j,minRows:V},xe),be=b);a.useEffect((()=>{fe&&fe.setAdornedStart(Boolean(re))}),[fe,re]);const _e=(0,i.Z)({},u,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:O,error:ge.error,focused:ge.focused,formControl:fe,fullWidth:R,hiddenLabel:ge.hiddenLabel,multiline:$,size:ge.size,startAdornment:re,type:ie}),we=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:u,hiddenLabel:c,multiline:d,readOnly:p,size:h,startAdornment:f,type:g}=e,m={root:["root",`color${(0,M.Z)(n)}`,r&&"disabled",i&&"error",u&&"fullWidth",a&&"focused",s&&"formControl","small"===h&&"sizeSmall",d&&"multiline",f&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled","search"===g&&"inputTypeSearch",d&&"inputMultiline","small"===h&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",o&&"inputAdornedEnd",p&&"readOnly"]};return(0,l.Z)(m,I.u,t)})(_e),Se=ne.root||g.Root||L,ke=te.root||m.root||{},Ce=ne.input||g.Input||E;return xe=(0,i.Z)({},xe,null!=(n=te.input)?n:m.input),(0,f.jsxs)(a.Fragment,{children:[!k&&N,(0,f.jsxs)(Se,(0,i.Z)({},ke,!(0,x.Z)(Se)&&{ownerState:(0,i.Z)({},_e,ke.ownerState)},{ref:t,onClick:e=>{ue.current&&e.currentTarget===e.target&&ue.current.focus(),U&&U(e)}},ae,{className:(0,s.Z)(we.root,ke.className,h,Q&&"MuiInputBase-readOnly"),children:[re,(0,f.jsx)(w.Z.Provider,{value:null,children:(0,f.jsx)(Ce,(0,i.Z)({ownerState:_e,"aria-invalid":ge.error,"aria-describedby":c,autoComplete:d,autoFocus:p,defaultValue:v,disabled:ge.disabled,id:D,onAnimationStart:e=>{ye("mui-auto-fill-cancel"===e.animationName?ue.current:{value:"x"})},name:W,placeholder:K,readOnly:Q,required:ge.required,rows:ee,value:se,onKeyDown:Y,onKeyUp:X,type:ie},xe,!(0,x.Z)(Ce)&&{as:be,ownerState:(0,i.Z)({},_e,xe.ownerState)},{ref:de,className:(0,s.Z)(we.input,xe.className,Q&&"MuiInputBase-readOnly"),onBlur:e=>{H&&H(e),B.onBlur&&B.onBlur(e),fe&&fe.onBlur?fe.onBlur(e):he(!1)},onChange:(e,...t)=>{if(!le){const t=e.target||ue.current;if(null==t)throw new Error((0,o.Z)(1));ye({value:t.value})}B.onChange&&B.onChange(e,...t),G&&G(e,...t)},onFocus:e=>{ge.disabled?e.stopPropagation():(q&&q(e),B.onFocus&&B.onFocus(e),fe&&fe.onFocus?fe.onFocus(e):he(!0))}}))}),O,J?J((0,i.Z)({},ge,{startAdornment:re})):null]}))]})}))},5214:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,u:()=>o});var r=n(2112),i=n(7824);function o(e){return(0,i.Z)("MuiInputBase",e)}const a=(0,r.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},2139:(e,t,n)=>{"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e,t=!1){return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,{B7:()=>o,vd:()=>i})},1574:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(1551),i=n(557),o=n(9953),a=n(8842),s=n(2131),l=n(9137),u=n(1628),c=n(6820),d=n(4579),p=n(1874);const h=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],f=(0,u.ZP)(l.Ej,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,l.Gx)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,i.Z)({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"},[`&.${d.Z.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${d.Z.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${d.Z.disabled}, .${d.Z.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${d.Z.disabled}:before`]:{borderBottomStyle:"dotted"}})})),g=(0,u.ZP)(l.rA,{name:"MuiInput",slot:"Input",overridesResolver:l._o})({}),m=o.forwardRef((function(e,t){var n,o,u,m;const v=(0,c.Z)({props:e,name:"MuiInput"}),{disableUnderline:y,components:b={},componentsProps:x,fullWidth:_=!1,inputComponent:w="input",multiline:S=!1,slotProps:k,slots:C={},type:M="text"}=v,Z=(0,r.Z)(v,h),T=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,a.Z)(r,d.l,t);return(0,i.Z)({},t,o)})(v),O={root:{ownerState:{disableUnderline:y}}},P=(null!=k?k:x)?(0,s.Z)(null!=k?k:x,O):O,I=null!=(n=null!=(o=C.root)?o:b.Root)?n:f,A=null!=(u=null!=(m=C.input)?m:b.Input)?u:g;return(0,p.jsx)(l.ZP,(0,i.Z)({slots:{root:I,input:A},slotProps:P,fullWidth:_,inputComponent:w,multiline:S,ref:t,type:M},Z,{classes:T}))}));m.muiName="Input";const v=m},4579:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,l:()=>s});var r=n(557),i=n(2112),o=n(7824),a=n(5214);function s(e){return(0,o.Z)("MuiInput",e)}const l=(0,r.Z)({},a.Z,(0,i.Z)("MuiInput",["root","underline","input"]))},7505:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(6504),u=n(1280),c=n(8115),d=n(5401),p=n(1628),h=n(6820),f=n(2112),g=n(7824);function m(e){return(0,g.Z)("MuiLinearProgress",e)}(0,f.Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var v=n(1874);const y=["className","color","value","valueBuffer","variant"];let b,x,_,w,S,k,C=e=>e;const M=(0,l.F4)(b||(b=C` +`),Z.rippleVisible,D,550,(({theme:e})=>e.transitions.easing.easeInOut),Z.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Z.child,Z.childLeaving,L,550,(({theme:e})=>e.transitions.easing.easeInOut),Z.childPulsate,E,(({theme:e})=>e.transitions.easing.easeInOut)),B=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:c}=n,d=(0,i.Z)(n,T),[p,h]=o.useState([]),f=o.useRef(0),g=o.useRef(null);o.useEffect((()=>{g.current&&(g.current(),g.current=null)}),[p]);const m=o.useRef(!1),v=o.useRef(null),y=o.useRef(null),b=o.useRef(null);o.useEffect((()=>()=>{clearTimeout(v.current)}),[]);const x=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:o}=e;h((e=>[...e,(0,k.jsx)(z,{classes:{ripple:(0,a.Z)(l.ripple,Z.ripple),rippleVisible:(0,a.Z)(l.rippleVisible,Z.rippleVisible),ripplePulsate:(0,a.Z)(l.ripplePulsate,Z.ripplePulsate),child:(0,a.Z)(l.child,Z.child),childLeaving:(0,a.Z)(l.childLeaving,Z.childLeaving),childPulsate:(0,a.Z)(l.childPulsate,Z.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},f.current)])),f.current+=1,g.current=o}),[l]),_=o.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:i=s||t.pulsate,fakeElement:o=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&m.current)return void(m.current=!1);"touchstart"===(null==e?void 0:e.type)&&(m.current=!0);const a=o?null:b.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===y.current&&(y.current=()=>{x({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},v.current=setTimeout((()=>{y.current&&(y.current(),y.current=null)}),80)):x({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})}),[s,x]),S=o.useCallback((()=>{_({},{pulsate:!0})}),[_]),C=o.useCallback(((e,t)=>{if(clearTimeout(v.current),"touchend"===(null==e?void 0:e.type)&&y.current)return y.current(),y.current=null,void(v.current=setTimeout((()=>{C(e,t)})));y.current=null,h((e=>e.length>0?e.slice(1):e)),g.current=t}),[]);return o.useImperativeHandle(t,(()=>({pulsate:S,start:_,stop:C})),[S,_,C]),(0,k.jsx)(N,(0,r.Z)({className:(0,a.Z)(Z.root,l.root,c),ref:b},d,{children:(0,k.jsx)(w,{component:null,exit:!0,children:p})}))}));var F=n(1176);function j(e){return(0,F.Z)("MuiButtonBase",e)}const $=(0,M.Z)("MuiButtonBase",["root","disabled","focusVisible"]),V=["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"],W=(0,l.ZP)("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"},[`&.${$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),H=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiButtonBase"}),{action:l,centerRipple:h=!1,children:f,className:g,component:m="button",disabled:v=!1,disableRipple:y=!1,disableTouchRipple:b=!1,focusRipple:x=!1,LinkComponent:_="a",onBlur:w,onClick:S,onContextMenu:C,onDragLeave:M,onFocus:Z,onFocusVisible:T,onKeyDown:O,onKeyUp:P,onMouseDown:I,onMouseLeave:A,onMouseUp:R,onTouchEnd:D,onTouchMove:L,onTouchStart:E,tabIndex:N=0,TouchRippleProps:z,touchRippleRef:F,type:$}=n,H=(0,i.Z)(n,V),G=o.useRef(null),U=o.useRef(null),q=(0,c.Z)(U,F),{isFocusVisibleRef:Y,onFocus:X,onBlur:K,ref:Q}=(0,p.Z)(),[J,ee]=o.useState(!1);v&&J&&ee(!1),o.useImperativeHandle(l,(()=>({focusVisible:()=>{ee(!0),G.current.focus()}})),[]);const[te,ne]=o.useState(!1);o.useEffect((()=>{ne(!0)}),[]);const re=te&&!y&&!v;function ie(e,t,n=b){return(0,d.Z)((r=>{t&&t(r);return!n&&U.current&&U.current[e](r),!0}))}o.useEffect((()=>{J&&x&&!y&&te&&U.current.pulsate()}),[y,x,J,te]);const oe=ie("start",I),ae=ie("stop",C),se=ie("stop",M),le=ie("stop",R),ue=ie("stop",(e=>{J&&e.preventDefault(),A&&A(e)})),ce=ie("start",E),de=ie("stop",D),pe=ie("stop",L),he=ie("stop",(e=>{K(e),!1===Y.current&&ee(!1),w&&w(e)}),!1),fe=(0,d.Z)((e=>{G.current||(G.current=e.currentTarget),X(e),!0===Y.current&&(ee(!0),T&&T(e)),Z&&Z(e)})),ge=()=>{const e=G.current;return m&&"button"!==m&&!("A"===e.tagName&&e.href)},me=o.useRef(!1),ve=(0,d.Z)((e=>{x&&!me.current&&J&&U.current&&" "===e.key&&(me.current=!0,U.current.stop(e,(()=>{U.current.start(e)}))),e.target===e.currentTarget&&ge()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&ge()&&"Enter"===e.key&&!v&&(e.preventDefault(),S&&S(e))})),ye=(0,d.Z)((e=>{x&&" "===e.key&&U.current&&J&&!e.defaultPrevented&&(me.current=!1,U.current.stop(e,(()=>{U.current.pulsate(e)}))),P&&P(e),S&&e.target===e.currentTarget&&ge()&&" "===e.key&&!e.defaultPrevented&&S(e)}));let be=m;"button"===be&&(H.href||H.to)&&(be=_);const xe={};"button"===be?(xe.type=void 0===$?"button":$,xe.disabled=v):(H.href||H.to||(xe.role="button"),v&&(xe["aria-disabled"]=v));const _e=(0,c.Z)(t,Q,G);const we=(0,r.Z)({},n,{centerRipple:h,component:m,disabled:v,disableRipple:y,disableTouchRipple:b,focusRipple:x,tabIndex:N,focusVisible:J}),Se=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,s.Z)(o,j,i);return n&&r&&(a.root+=` ${r}`),a})(we);return(0,k.jsxs)(W,(0,r.Z)({as:be,className:(0,a.Z)(Se.root,g),ownerState:we,onBlur:he,onClick:S,onContextMenu:ae,onFocus:fe,onKeyDown:ve,onKeyUp:ye,onMouseDown:oe,onMouseLeave:ue,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:pe,onTouchStart:ce,ref:_e,tabIndex:v?-1:N,type:$},xe,H,{children:[f,re?(0,k.jsx)(B,(0,r.Z)({ref:q,center:h},z)):null]}))}))},9493:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(5077),l=n(4792),u=n(852),c=n(2829),d=n(3265),p=n(7843),h=n(7996),f=n(6799),g=n(1176);function m(e){return(0,g.Z)("MuiButton",e)}const v=(0,f.Z)("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"]);const y=o.createContext({});var b=n(1874);const x=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],_=e=>(0,i.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),w=(0,c.ZP)(p.Z,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,h.Z)(n.color)}`],t[`size${(0,h.Z)(n.size)}`],t[`${n.variant}Size${(0,h.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;return(0,i.Z)({},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":(0,i.Z)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,u.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,u.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{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})`:(0,u.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,i.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${v.focusVisible}`]:(0,i.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${v.disabled}`]:(0,i.Z)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,u.Fq)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${v.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${v.disabled}`]:{boxShadow:"none"}})),S=(0,c.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,h.Z)(n.size)}`]]}})((({ownerState:e})=>(0,i.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},_(e)))),k=(0,c.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,h.Z)(n.size)}`]]}})((({ownerState:e})=>(0,i.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},_(e)))),C=o.forwardRef((function(e,t){const n=o.useContext(y),u=(0,s.Z)(n,e),c=(0,d.Z)({props:u,name:"MuiButton"}),{children:p,color:f="primary",component:g="button",className:v,disabled:_=!1,disableElevation:C=!1,disableFocusRipple:M=!1,endIcon:Z,focusVisibleClassName:T,fullWidth:O=!1,size:P="medium",startIcon:I,type:A,variant:R="text"}=c,D=(0,r.Z)(c,x),L=(0,i.Z)({},c,{color:f,component:g,disabled:_,disableElevation:C,disableFocusRipple:M,fullWidth:O,size:P,type:A,variant:R}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:s}=e,u={root:["root",a,`${a}${(0,h.Z)(t)}`,`size${(0,h.Z)(o)}`,`${a}Size${(0,h.Z)(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,h.Z)(o)}`],endIcon:["endIcon",`iconSize${(0,h.Z)(o)}`]},c=(0,l.Z)(u,m,s);return(0,i.Z)({},s,c)})(L),N=I&&(0,b.jsx)(S,{className:E.startIcon,ownerState:L,children:I}),z=Z&&(0,b.jsx)(k,{className:E.endIcon,ownerState:L,children:Z});return(0,b.jsxs)(w,(0,i.Z)({ownerState:L,className:(0,a.Z)(n.className,E.root,v),component:g,disabled:_,focusRipple:!M,focusVisibleClassName:(0,a.Z)(E.focusVisible,T),ref:t,type:A},D,{classes:E,children:[N,p,z]}))}))},8931:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(4792),l=n(3265),u=n(2829),c=n(6799),d=n(1176);function p(e){return(0,d.Z)("MuiCardActionArea",e)}const h=(0,c.Z)("MuiCardActionArea",["root","focusVisible","focusHighlight"]);var f=n(7843),g=n(1874);const m=["children","className","focusVisibleClassName"],v=(0,u.ZP)(f.Z,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${h.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${h.focusVisible} .${h.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),y=(0,u.ZP)("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})((({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),b=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiCardActionArea"}),{children:o,className:u,focusVisibleClassName:c}=n,d=(0,i.Z)(n,m),h=n,f=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],focusHighlight:["focusHighlight"]},p,t)})(h);return(0,g.jsxs)(v,(0,r.Z)({className:(0,a.Z)(f.root,u),focusVisibleClassName:(0,a.Z)(c,f.focusVisible),ref:t,ownerState:h},d,{children:[o,(0,g.jsx)(y,{className:f.focusHighlight,ownerState:h})]}))}))},2175:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(2829),u=n(3265),c=n(6799),d=n(1176);function p(e){return(0,d.Z)("MuiCardActions",e)}(0,c.Z)("MuiCardActions",["root","spacing"]);var h=n(1874);const f=["disableSpacing","className"],g=(0,l.ZP)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,i.Z)({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),m=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiCardActions"}),{disableSpacing:o=!1,className:l}=n,c=(0,r.Z)(n,f),d=(0,i.Z)({},n,{disableSpacing:o}),m=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,s.Z)(r,p,t)})(d);return(0,h.jsx)(g,(0,i.Z)({className:(0,a.Z)(m.root,l),ownerState:d,ref:t},c))}))},6352:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(4792),l=n(2829),u=n(3265),c=n(6799),d=n(1176);function p(e){return(0,d.Z)("MuiCardContent",e)}(0,c.Z)("MuiCardContent",["root"]);var h=n(1874);const f=["className","component"],g=(0,l.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),m=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiCardContent"}),{className:o,component:l="div"}=n,c=(0,i.Z)(n,f),d=(0,r.Z)({},n,{component:l}),m=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},p,t)})(d);return(0,h.jsx)(g,(0,r.Z)({as:l,className:(0,a.Z)(m.root,o),ownerState:d,ref:t},c))}))},6792:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(3265),u=n(2829),c=n(6799),d=n(1176);function p(e){return(0,d.Z)("MuiCardMedia",e)}(0,c.Z)("MuiCardMedia",["root","media","img"]);var h=n(1874);const f=["children","className","component","image","src","style"],g=(0,u.ZP)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})((({ownerState:e})=>(0,i.Z)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"}))),m=["video","audio","picture","iframe","img"],v=["picture","img"],y=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiCardMedia"}),{children:o,className:u,component:c="div",image:d,src:y,style:b}=n,x=(0,r.Z)(n,f),_=-1!==m.indexOf(c),w=!_&&d?(0,i.Z)({backgroundImage:`url("${d}")`},b):b,S=(0,i.Z)({},n,{component:c,isMediaComponent:_,isImageComponent:-1!==v.indexOf(c)}),k=(e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e,i={root:["root",n&&"media",r&&"img"]};return(0,s.Z)(i,p,t)})(S);return(0,h.jsx)(g,(0,i.Z)({className:(0,a.Z)(k.root,u),as:c,role:!_&&d?"img":void 0,ref:t,style:w,ownerState:S,src:_?d||y:void 0},x,{children:o}))}))},4307:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(4792),l=n(2829),u=n(3265),c=n(3188),d=n(6799),p=n(1176);function h(e){return(0,p.Z)("MuiCard",e)}(0,d.Z)("MuiCard",["root"]);var f=n(1874);const g=["className","raised"],m=(0,l.ZP)(c.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),v=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiCard"}),{className:o,raised:l=!1}=n,c=(0,i.Z)(n,g),d=(0,r.Z)({},n,{raised:l}),p=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},h,t)})(d);return(0,f.jsx)(m,(0,r.Z)({className:(0,a.Z)(p.root,o),elevation:l?8:void 0,ref:t,ownerState:d},c))}))},9296:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Z});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(852),u=n(5392),c=n(7718),d=n(1874);const p=(0,c.Z)((0,d.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"),h=(0,c.Z)((0,d.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"),f=(0,c.Z)((0,d.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");var g=n(7996),m=n(3265),v=n(2829),y=n(6799),b=n(1176);function x(e){return(0,b.Z)("MuiCheckbox",e)}const _=(0,y.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),w=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],S=(0,v.ZP)(u.Z,{shouldForwardProp:e=>(0,v.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,g.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${_.checked}, &.${_.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${_.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),k=(0,d.jsx)(h,{}),C=(0,d.jsx)(p,{}),M=(0,d.jsx)(f,{}),Z=o.forwardRef((function(e,t){var n,l;const u=(0,m.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:c=k,color:p="primary",icon:h=C,indeterminate:f=!1,indeterminateIcon:v=M,inputProps:y,size:b="medium",className:_}=u,Z=(0,r.Z)(u,w),T=f?v:h,O=f?v:c,P=(0,i.Z)({},u,{color:p,indeterminate:f,size:b}),I=(e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${(0,g.Z)(r)}`]},a=(0,s.Z)(o,x,t);return(0,i.Z)({},t,a)})(P);return(0,d.jsx)(S,(0,i.Z)({type:"checkbox",inputProps:(0,i.Z)({"data-indeterminate":f},y),icon:o.cloneElement(T,{fontSize:null!=(n=T.props.fontSize)?n:b}),checkedIcon:o.cloneElement(O,{fontSize:null!=(l=O.props.fontSize)?l:b}),ownerState:P,ref:t,className:(0,a.Z)(I.root,_)},Z,{classes:I}))}))},3774:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(852),u=n(7718),c=n(1874);const d=(0,u.Z)((0,c.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");var p=n(5799),h=n(7996),f=n(7843),g=n(3265),m=n(2829),v=n(6799),y=n(1176);function b(e){return(0,y.Z)("MuiChip",e)}const x=(0,v.Z)("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"]),_=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],w=(0,m.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${x.avatar}`]:t.avatar},{[`& .${x.avatar}`]:t[`avatar${(0,h.Z)(s)}`]},{[`& .${x.avatar}`]:t[`avatarColor${(0,h.Z)(r)}`]},{[`& .${x.icon}`]:t.icon},{[`& .${x.icon}`]:t[`icon${(0,h.Z)(s)}`]},{[`& .${x.icon}`]:t[`iconColor${(0,h.Z)(i)}`]},{[`& .${x.deleteIcon}`]:t.deleteIcon},{[`& .${x.deleteIcon}`]:t[`deleteIcon${(0,h.Z)(s)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIconColor${(0,h.Z)(r)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIcon${(0,h.Z)(l)}Color${(0,h.Z)(r)}`]},t.root,t[`size${(0,h.Z)(s)}`],t[`color${(0,h.Z)(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${(0,h.Z)(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${(0,h.Z)(r)}`],t[l],t[`${l}${(0,h.Z)(r)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,i.Z)({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:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${x.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${x.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${x.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${x.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${x.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${x.icon}`]:(0,i.Z)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,i.Z)({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},"default"!==t.color&&{color:"inherit"})),[`& .${x.deleteIcon}`]:(0,i.Z)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,l.Fq)(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)`:(0,l.Fq)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,l.Fq)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,i.Z)({},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}))`:(0,l.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,i.Z)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${x.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${x.avatar}`]:{marginLeft:4},[`& .${x.avatarSmall}`]:{marginLeft:2},[`& .${x.icon}`]:{marginLeft:4},[`& .${x.iconSmall}`]:{marginLeft:2},[`& .${x.deleteIcon}`]:{marginRight:5},[`& .${x.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,l.Fq)(e.palette[t.color].main,.7)}`,[`&.${x.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,l.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${x.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,l.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),S=(0,m.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,h.Z)(r)}`]]}})((({ownerState:e})=>(0,i.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.size&&{paddingLeft:8,paddingRight:8})));function k(e){return"Backspace"===e.key||"Delete"===e.key}const C=o.forwardRef((function(e,t){const n=(0,g.Z)({props:e,name:"MuiChip"}),{avatar:l,className:u,clickable:m,color:v="default",component:y,deleteIcon:x,disabled:C=!1,icon:M,label:Z,onClick:T,onDelete:O,onKeyDown:P,onKeyUp:I,size:A="medium",variant:R="filled",tabIndex:D,skipFocusWhenDisabled:L=!1}=n,E=(0,r.Z)(n,_),N=o.useRef(null),z=(0,p.Z)(N,t),B=e=>{e.stopPropagation(),O&&O(e)},F=!(!1===m||!T)||m,j=F||O?f.Z:y||"div",$=(0,i.Z)({},n,{component:j,disabled:C,size:A,color:v,iconColor:o.isValidElement(M)&&M.props.color||v,onDelete:!!O,clickable:F,variant:R}),V=(e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:l,variant:u}=e,c={root:["root",u,n&&"disabled",`size${(0,h.Z)(r)}`,`color${(0,h.Z)(i)}`,l&&"clickable",l&&`clickableColor${(0,h.Z)(i)}`,a&&"deletable",a&&`deletableColor${(0,h.Z)(i)}`,`${u}${(0,h.Z)(i)}`],label:["label",`label${(0,h.Z)(r)}`],avatar:["avatar",`avatar${(0,h.Z)(r)}`,`avatarColor${(0,h.Z)(i)}`],icon:["icon",`icon${(0,h.Z)(r)}`,`iconColor${(0,h.Z)(o)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,h.Z)(r)}`,`deleteIconColor${(0,h.Z)(i)}`,`deleteIcon${(0,h.Z)(u)}Color${(0,h.Z)(i)}`]};return(0,s.Z)(c,b,t)})($),W=j===f.Z?(0,i.Z)({component:y||"div",focusVisibleClassName:V.focusVisible},O&&{disableRipple:!0}):{};let H=null;O&&(H=x&&o.isValidElement(x)?o.cloneElement(x,{className:(0,a.Z)(x.props.className,V.deleteIcon),onClick:B}):(0,c.jsx)(d,{className:(0,a.Z)(V.deleteIcon),onClick:B}));let G=null;l&&o.isValidElement(l)&&(G=o.cloneElement(l,{className:(0,a.Z)(V.avatar,l.props.className)}));let U=null;return M&&o.isValidElement(M)&&(U=o.cloneElement(M,{className:(0,a.Z)(V.icon,M.props.className)})),(0,c.jsxs)(w,(0,i.Z)({as:j,className:(0,a.Z)(V.root,u),disabled:!(!F||!C)||void 0,onClick:T,onKeyDown:e=>{e.currentTarget===e.target&&k(e)&&e.preventDefault(),P&&P(e)},onKeyUp:e=>{e.currentTarget===e.target&&(O&&k(e)?O(e):"Escape"===e.key&&N.current&&N.current.blur()),I&&I(e)},ref:z,tabIndex:L&&C?-1:D,ownerState:$},W,E,{children:[G||U,(0,c.jsx)(S,{className:(0,a.Z)(V.label),ownerState:$,children:Z}),H]}))}))},7842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4115),l=n(4792),u=n(2829),c=n(3265),d=n(4815),p=n(7315),h=n(7233),f=n(5799),g=n(6799),m=n(1176);function v(e){return(0,m.Z)("MuiCollapse",e)}(0,g.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var y=n(1874);const b=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],x=(0,u.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>(0,i.Z)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&(0,i.Z)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),_=(0,u.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>(0,i.Z)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),w=(0,u.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>(0,i.Z)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),S=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiCollapse"}),{addEndListener:u,children:g,className:m,collapsedSize:S="0px",component:k,easing:C,in:M,onEnter:Z,onEntered:T,onEntering:O,onExit:P,onExited:I,onExiting:A,orientation:R="vertical",style:D,timeout:L=d.x9.standard,TransitionComponent:E=s.ZP}=n,N=(0,r.Z)(n,b),z=(0,i.Z)({},n,{orientation:R,collapsedSize:S}),B=(e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,l.Z)(r,v,n)})(z),F=(0,h.Z)(),j=o.useRef(),$=o.useRef(null),V=o.useRef(),W="number"==typeof S?`${S}px`:S,H="horizontal"===R,G=H?"width":"height";o.useEffect((()=>()=>{clearTimeout(j.current)}),[]);const U=o.useRef(null),q=(0,f.Z)(t,U),Y=e=>t=>{if(e){const n=U.current;void 0===t?e(n):e(n,t)}},X=()=>$.current?$.current[H?"clientWidth":"clientHeight"]:0,K=Y(((e,t)=>{$.current&&H&&($.current.style.position="absolute"),e.style[G]=W,Z&&Z(e,t)})),Q=Y(((e,t)=>{const n=X();$.current&&H&&($.current.style.position="");const{duration:r,easing:i}=(0,p.C)({style:D,timeout:L,easing:C},{mode:"enter"});if("auto"===L){const t=F.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,V.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[G]=`${n}px`,e.style.transitionTimingFunction=i,O&&O(e,t)})),J=Y(((e,t)=>{e.style[G]="auto",T&&T(e,t)})),ee=Y((e=>{e.style[G]=`${X()}px`,P&&P(e)})),te=Y(I),ne=Y((e=>{const t=X(),{duration:n,easing:r}=(0,p.C)({style:D,timeout:L,easing:C},{mode:"exit"});if("auto"===L){const n=F.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,V.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[G]=W,e.style.transitionTimingFunction=r,A&&A(e)}));return(0,y.jsx)(E,(0,i.Z)({in:M,onEnter:K,onEntered:J,onEntering:Q,onExit:ee,onExited:te,onExiting:ne,addEndListener:e=>{"auto"===L&&(j.current=setTimeout(e,V.current||0)),u&&u(U.current,e)},nodeRef:U,timeout:"auto"===L?null:L},N,{children:(e,t)=>(0,y.jsx)(x,(0,i.Z)({as:k,className:(0,a.Z)(B.root,m,{entered:B.entered,exited:!M&&"0px"===W&&B.hidden}[e]),style:(0,i.Z)({[H?"minWidth":"minHeight"]:W},D),ownerState:(0,i.Z)({},z,{state:e}),ref:q},t,{children:(0,y.jsx)(_,{ownerState:(0,i.Z)({},z,{state:e}),className:B.wrapper,ref:$,children:(0,y.jsx)(w,{ownerState:(0,i.Z)({},z,{state:e}),className:B.wrapperInner,children:g})})}))}))}));S.muiSupportAuto=!0;const k=S},4339:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d});var r=n(557),i=n(9953),o=n(3265),a=n(595),s=n(1874);const l=(e,t)=>(0,r.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),u=e=>(0,r.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),c=(e,t=!1)=>{var n,i;const o={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((([t,n])=>{var r;o[e.getColorSchemeSelector(t).replace(/\s*&/,"")]={colorScheme:null==(r=n.palette)?void 0:r.mode}}));let a=(0,r.Z)({html:l(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,r.Z)({margin:0},u(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},o);const s=null==(n=e.components)||null==(i=n.MuiCssBaseline)?void 0:i.styleOverrides;return s&&(a=[a,s]),a};const d=function(e){const t=(0,o.Z)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(a.Z,{styles:e=>c(e,r)}),n]})}},4910:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(852),u=n(2829),c=n(3265),d=n(7991),p=n(1874);const h=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],f=(0,u.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,i.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,l.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>(0,i.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,i.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,i.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),g=(0,u.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,i.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),m=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiDivider"}),{absolute:o=!1,children:l,className:u,component:m=(l?"div":"hr"),flexItem:v=!1,light:y=!1,orientation:b="horizontal",role:x=("hr"!==m?"separator":void 0),textAlign:_="center",variant:w="fullWidth"}=n,S=(0,r.Z)(n,h),k=(0,i.Z)({},n,{absolute:o,component:m,flexItem:v,light:y,orientation:b,role:x,textAlign:_,variant:w}),C=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:l,variant:u}=e,c={root:["root",t&&"absolute",u,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.Z)(c,d.V,r)})(k);return(0,p.jsx)(f,(0,i.Z)({as:m,className:(0,a.Z)(C.root,u),role:x,ref:t,ownerState:k},S,{children:l?(0,p.jsx)(g,{className:C.wrapper,ownerState:k,children:l}):null}))}))},7991:(e,t,n)=>{"use strict";n.d(t,{V:()=>o,Z:()=>a});var r=n(6799),i=n(1176);function o(e){return(0,i.Z)("MuiDivider",e)}const a=(0,r.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},7674:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>R});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(5463),u=n(4115),c=n(1078),d=n(5799),p=n(7233),h=n(7315),f=n(5037),g=n(1874);const m=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function v(e,t,n){var r;const i=function(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=(0,f.Z)(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=o.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"==typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:"right"===e?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"==typeof(r=n)?r():r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const y=o.forwardRef((function(e,t){const n=(0,p.Z)(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:l,appear:y=!0,children:b,container:x,direction:_="down",easing:w=a,in:S,onEnter:k,onEntered:C,onEntering:M,onExit:Z,onExited:T,onExiting:O,style:P,timeout:I=s,TransitionComponent:A=u.ZP}=e,R=(0,r.Z)(e,m),D=o.useRef(null),L=(0,d.Z)(b.ref,D,t),E=e=>t=>{e&&(void 0===t?e(D.current):e(D.current,t))},N=E(((e,t)=>{v(_,e,x),(0,h.n)(e),k&&k(e,t)})),z=E(((e,t)=>{const r=(0,h.C)({timeout:I,style:P,easing:w},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,i.Z)({},r)),e.style.transition=n.transitions.create("transform",(0,i.Z)({},r)),e.style.webkitTransform="none",e.style.transform="none",M&&M(e,t)})),B=E(C),F=E(O),j=E((e=>{const t=(0,h.C)({timeout:I,style:P,easing:w},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),v(_,e,x),Z&&Z(e)})),$=E((e=>{e.style.webkitTransition="",e.style.transition="",T&&T(e)})),V=o.useCallback((()=>{D.current&&v(_,D.current,x)}),[_,x]);return o.useEffect((()=>{if(S||"down"===_||"right"===_)return;const e=(0,c.Z)((()=>{D.current&&v(_,D.current,x)})),t=(0,f.Z)(D.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[_,S,x]),o.useEffect((()=>{S||V()}),[S,V]),(0,g.jsx)(A,(0,i.Z)({nodeRef:D,onEnter:N,onEntered:B,onEntering:z,onExit:j,onExited:$,onExiting:F,addEndListener:e=>{l&&l(D.current,e)},appear:y,in:S,timeout:I},R,{children:(e,t)=>o.cloneElement(b,(0,i.Z)({ref:L,style:(0,i.Z)({visibility:"exited"!==e||S?void 0:"hidden"},P,b.props.style)},t))}))}));var b=n(3188),x=n(7996),_=n(3265),w=n(2829),S=n(6799),k=n(1176);function C(e){return(0,k.Z)("MuiDrawer",e)}(0,S.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const M=["BackdropProps"],Z=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],T=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},O=(0,w.ZP)(l.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:T})((({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),P=(0,w.ZP)("div",{shouldForwardProp:w.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:T})({flex:"0 0 auto"}),I=(0,w.ZP)(b.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${(0,x.Z)(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${(0,x.Z)(n.anchor)}`]]}})((({theme:e,ownerState:t})=>(0,i.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===t.anchor&&{left:0},"top"===t.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===t.anchor&&{right:0},"bottom"===t.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===t.anchor&&"temporary"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},"top"===t.anchor&&"temporary"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"right"===t.anchor&&"temporary"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"bottom"===t.anchor&&"temporary"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`}))),A={left:"right",right:"left",top:"down",bottom:"up"};const R=o.forwardRef((function(e,t){const n=(0,_.Z)({props:e,name:"MuiDrawer"}),l=(0,p.Z)(),u={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:c="left",BackdropProps:d,children:h,className:f,elevation:m=16,hideBackdrop:v=!1,ModalProps:{BackdropProps:b}={},onClose:w,open:S=!1,PaperProps:k={},SlideProps:T,TransitionComponent:R=y,transitionDuration:D=u,variant:L="temporary"}=n,E=(0,r.Z)(n.ModalProps,M),N=(0,r.Z)(n,Z),z=o.useRef(!1);o.useEffect((()=>{z.current=!0}),[]);const B=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?A[t]:t}(l,c),F=c,j=(0,i.Z)({},n,{anchor:F,elevation:m,open:S,variant:L},N),$=(e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,x.Z)(n)}`,"temporary"!==r&&`paperAnchorDocked${(0,x.Z)(n)}`]};return(0,s.Z)(i,C,t)})(j),V=(0,g.jsx)(I,(0,i.Z)({elevation:"temporary"===L?m:0,square:!0},k,{className:(0,a.Z)($.paper,k.className),ownerState:j,children:h}));if("permanent"===L)return(0,g.jsx)(P,(0,i.Z)({className:(0,a.Z)($.root,$.docked,f),ownerState:j,ref:t},N,{children:V}));const W=(0,g.jsx)(R,(0,i.Z)({in:S,direction:A[B],timeout:D,appear:z.current},T,{children:V}));return"persistent"===L?(0,g.jsx)(P,(0,i.Z)({className:(0,a.Z)($.root,$.docked,f),ownerState:j,ref:t},N,{children:W})):(0,g.jsx)(O,(0,i.Z)({BackdropProps:(0,i.Z)({},d,b,{transitionDuration:D}),className:(0,a.Z)($.root,$.modal,f),open:S,ownerState:j,onClose:w,hideBackdrop:v,ref:t},N,E,{children:W}))}))},9868:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(1551),i=n(557),o=n(9953),a=n(582),s=n(4792),l=n(2958),u=n(2829),c=n(3265),d=n(451),p=n(1874);const h=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],f=(0,u.ZP)(l.Ej,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,l.Gx)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,i.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${d.Z.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${d.Z.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?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"},[`&.${d.Z.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${d.Z.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})`:o}`,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(.${d.Z.disabled}, .${d.Z.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${d.Z.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,i.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),g=(0,u.ZP)(l.rA,{name:"MuiFilledInput",slot:"Input",overridesResolver:l._o})((({theme:e,ownerState:t})=>(0,i.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},"small"===t.size&&{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&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),m=o.forwardRef((function(e,t){var n,o,u,m;const v=(0,c.Z)({props:e,name:"MuiFilledInput"}),{components:y={},componentsProps:b,fullWidth:x=!1,inputComponent:_="input",multiline:w=!1,slotProps:S,slots:k={},type:C="text"}=v,M=(0,r.Z)(v,h),Z=(0,i.Z)({},v,{fullWidth:x,inputComponent:_,multiline:w,type:C}),T=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,s.Z)(r,d._,t);return(0,i.Z)({},t,o)})(v),O={root:{ownerState:Z},input:{ownerState:Z}},P=(null!=S?S:b)?(0,a.Z)(null!=S?S:b,O):O,I=null!=(n=null!=(o=k.root)?o:y.Root)?n:f,A=null!=(u=null!=(m=k.input)?m:y.Input)?u:g;return(0,p.jsx)(l.ZP,(0,i.Z)({slots:{root:I,input:A},componentsProps:P,fullWidth:x,inputComponent:_,multiline:w,ref:t,type:C},M,{classes:T}))}));m.muiName="Input";const v=m},451:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,_:()=>s});var r=n(557),i=n(6799),o=n(1176),a=n(3373);function s(e){return(0,o.Z)("MuiFilledInput",e)}const l=(0,r.Z)({},a.Z,(0,i.Z)("MuiFilledInput",["root","underline","input"]))},1922:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(7151),u=n(7878),c=n(7996),d=n(2829),p=n(3265),h=n(6799),f=n(1176);function g(e){return(0,f.Z)("MuiFormControlLabel",e)}const m=(0,h.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]);var v=n(9353),y=n(1874);const b=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],x=(0,d.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${m.label}`]:t.label},t.root,t[`labelPlacement${(0,c.Z)(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${m.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${m.label}`]:{[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),_=o.forwardRef((function(e,t){var n;const d=(0,p.Z)({props:e,name:"MuiFormControlLabel"}),{className:h,componentsProps:f={},control:m,disabled:_,disableTypography:w,label:S,labelPlacement:k="end",slotProps:C={}}=d,M=(0,r.Z)(d,b),Z=(0,l.Z)();let T=_;void 0===T&&void 0!==m.props.disabled&&(T=m.props.disabled),void 0===T&&Z&&(T=Z.disabled);const O={disabled:T};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===m.props[e]&&void 0!==d[e]&&(O[e]=d[e])}));const P=(0,v.Z)({props:d,muiFormControl:Z,states:["error"]}),I=(0,i.Z)({},d,{disabled:T,labelPlacement:k,error:P.error}),A=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:i}=e,o={root:["root",n&&"disabled",`labelPlacement${(0,c.Z)(r)}`,i&&"error"],label:["label",n&&"disabled"]};return(0,s.Z)(o,g,t)})(I),R=null!=(n=C.typography)?n:f.typography;let D=S;return null==D||D.type===u.Z||w||(D=(0,y.jsx)(u.Z,(0,i.Z)({component:"span"},R,{className:(0,a.Z)(A.label,null==R?void 0:R.className),children:D}))),(0,y.jsxs)(x,(0,i.Z)({className:(0,a.Z)(A.root,h),ownerState:I,ref:t},M,{children:[o.cloneElement(m,O),D]}))}))},8580:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(3265),u=n(2829),c=n(2769),d=n(7996),p=n(4967),h=n(3285),f=n(6799),g=n(1176);function m(e){return(0,g.Z)("MuiFormControl",e)}(0,f.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var v=n(1874);const y=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],b=(0,u.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,i.Z)({},t.root,t[`margin${(0,d.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,i.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),x=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiFormControl"}),{children:u,className:f,color:g="primary",component:x="div",disabled:_=!1,error:w=!1,focused:S,fullWidth:k=!1,hiddenLabel:C=!1,margin:M="none",required:Z=!1,size:T="medium",variant:O="outlined"}=n,P=(0,r.Z)(n,y),I=(0,i.Z)({},n,{color:g,component:x,disabled:_,error:w,fullWidth:k,hiddenLabel:C,margin:M,required:Z,size:T,variant:O}),A=(e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root","none"!==n&&`margin${(0,d.Z)(n)}`,r&&"fullWidth"]};return(0,s.Z)(i,m,t)})(I),[R,D]=o.useState((()=>{let e=!1;return u&&o.Children.forEach(u,(t=>{if(!(0,p.Z)(t,["Input","Select"]))return;const n=(0,p.Z)(t,["Select"])?t.props.input:t;n&&(0,c.B7)(n.props)&&(e=!0)})),e})),[L,E]=o.useState((()=>{let e=!1;return u&&o.Children.forEach(u,(t=>{(0,p.Z)(t,["Input","Select"])&&(0,c.vd)(t.props,!0)&&(e=!0)})),e})),[N,z]=o.useState(!1);_&&N&&z(!1);const B=void 0===S||_?N:S;let F;const j=o.useMemo((()=>({adornedStart:R,setAdornedStart:D,color:g,disabled:_,error:w,filled:L,focused:B,fullWidth:k,hiddenLabel:C,size:T,onBlur:()=>{z(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{z(!0)},registerEffect:F,required:Z,variant:O})),[R,g,_,w,L,B,k,C,F,Z,T,O]);return(0,v.jsx)(h.Z.Provider,{value:j,children:(0,v.jsx)(b,(0,i.Z)({as:x,ownerState:I,className:(0,a.Z)(A.root,f),ref:t},P,{children:u}))})}))},3285:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(9953).createContext(void 0)},9353:(e,t,n)=>{"use strict";function r({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}n.d(t,{Z:()=>r})},7151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9953),i=n(3285);function o(){return r.useContext(i.Z)}},7604:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(2829),u=n(3265),c=n(6799),d=n(1176);function p(e){return(0,d.Z)("MuiFormGroup",e)}(0,c.Z)("MuiFormGroup",["root","row","error"]);var h=n(7151),f=n(9353),g=n(1874);const m=["className","row"],v=(0,l.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})((({ownerState:e})=>(0,i.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"}))),y=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiFormGroup"}),{className:o,row:l=!1}=n,c=(0,r.Z)(n,m),d=(0,h.Z)(),y=(0,f.Z)({props:n,muiFormControl:d,states:["error"]}),b=(0,i.Z)({},n,{row:l,error:y.error}),x=(e=>{const{classes:t,row:n,error:r}=e,i={root:["root",n&&"row",r&&"error"]};return(0,s.Z)(i,p,t)})(b);return(0,g.jsx)(v,(0,i.Z)({className:(0,a.Z)(x.root,o),ownerState:b,ref:t},c))}))},1684:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(9353),u=n(7151),c=n(2829),d=n(7996),p=n(6799),h=n(1176);function f(e){return(0,h.Z)("MuiFormHelperText",e)}const g=(0,p.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var m,v=n(3265),y=n(1874);const b=["children","className","component","disabled","error","filled","focused","margin","required","variant"],x=(0,c.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,d.Z)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${g.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),_=o.forwardRef((function(e,t){const n=(0,v.Z)({props:e,name:"MuiFormHelperText"}),{children:o,className:c,component:p="p"}=n,h=(0,r.Z)(n,b),g=(0,u.Z)(),_=(0,l.Z)({props:n,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),w=(0,i.Z)({},n,{component:p,contained:"filled"===_.variant||"outlined"===_.variant,variant:_.variant,size:_.size,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required}),S=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:l,required:u}=e,c={root:["root",i&&"disabled",o&&"error",r&&`size${(0,d.Z)(r)}`,n&&"contained",l&&"focused",a&&"filled",u&&"required"]};return(0,s.Z)(c,f,t)})(w);return(0,y.jsx)(x,(0,i.Z)({as:p,ownerState:w,className:(0,a.Z)(S.root,c),ref:t},h,{children:" "===o?m||(m=(0,y.jsx)("span",{className:"notranslate",children:"​"})):o}))}))},595:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(557),i=(n(9953),n(6504)),o=n(1874);function a(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,o.jsx)(i.xB,{styles:r})}var s=n(6170);const l=function({styles:e,themeId:t,defaultTheme:n={}}){const r=(0,s.Z)(n),i="function"==typeof e?e(t&&r[t]||r):e;return(0,o.jsx)(a,{styles:i})};var u=n(1763),c=n(9846);const d=function(e){return(0,o.jsx)(l,(0,r.Z)({},e,{defaultTheme:u.Z,themeId:c.Z}))}},9217:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>M});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(6682),l=n(8432),u=n(4792),c=n(2829),d=n(3265),p=n(7233);const h=o.createContext();var f=n(6799),g=n(1176);function m(e){return(0,g.Z)("MuiGrid",e)}const v=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],y=(0,f.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...v.map((e=>`grid-xs-${e}`)),...v.map((e=>`grid-sm-${e}`)),...v.map((e=>`grid-md-${e}`)),...v.map((e=>`grid-lg-${e}`)),...v.map((e=>`grid-xl-${e}`))]);var b=n(1874);const x=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function _(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function w({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const S=(0,c.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const i=e[t];Number(i)>0&&r.push(n[`spacing-${t}-${String(i)}`])})),r}(a,u,t));const d=[];return u.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...c,"row"!==i&&t[`direction-xs-${String(i)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>(0,i.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){const n=(0,s.P$)({values:t.direction,breakpoints:e.breakpoints.values});return(0,s.k9)({theme:e},n,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${y.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&0!==r){const t=(0,s.P$)({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=w({breakpoints:e.breakpoints.values,values:t})),i=(0,s.k9)({theme:e},t,((t,r)=>{var i;const o=e.spacing(t);return"0px"!==o?{marginTop:`-${_(o)}`,[`& > .${y.item}`]:{paddingTop:_(o)}}:null!=(i=n)&&i.includes(r)?{}:{marginTop:0,[`& > .${y.item}`]:{paddingTop:0}}}))}return i}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&0!==r){const t=(0,s.P$)({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=w({breakpoints:e.breakpoints.values,values:t})),i=(0,s.k9)({theme:e},t,((t,r)=>{var i;const o=e.spacing(t);return"0px"!==o?{width:`calc(100% + ${_(o)})`,marginLeft:`-${_(o)}`,[`& > .${y.item}`]:{paddingLeft:_(o)}}:null!=(i=n)&&i.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${y.item}`]:{paddingLeft:0}}}))}return i}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=(0,s.P$)({values:t.columns,breakpoints:e.breakpoints.values}),u="object"==typeof l?l[o]:l;if(null==u)return r;const c=Math.round(n/u*1e8)/1e6+"%";let d={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${c} + ${_(n)})`;d={flexBasis:e,maxWidth:e}}}a=(0,i.Z)({flexBasis:c,flexGrow:0,maxWidth:c},d)}return 0===e.breakpoints.values[o]?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r}),{})}));const k=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(o,l));const d=[];l.forEach((t=>{const n=e[t];n&&d.push(`grid-${t}-${String(n)}`)}));const p={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...d]};return(0,u.Z)(p,m,t)},C=o.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiGrid"}),{breakpoints:s}=(0,p.Z)(),u=(0,l.Z)(n),{className:c,columns:f,columnSpacing:g,component:m="div",container:v=!1,direction:y="row",item:_=!1,rowSpacing:w,spacing:C=0,wrap:M="wrap",zeroMinWidth:Z=!1}=u,T=(0,r.Z)(u,x),O=w||C,P=g||C,I=o.useContext(h),A=v?f||12:I,R={},D=(0,i.Z)({},T);s.keys.forEach((e=>{null!=T[e]&&(R[e]=T[e],delete D[e])}));const L=(0,i.Z)({},u,{columns:A,container:v,direction:y,item:_,rowSpacing:O,columnSpacing:P,wrap:M,zeroMinWidth:Z,spacing:C},R,{breakpoints:s.keys}),E=k(L);return(0,b.jsx)(h.Provider,{value:A,children:(0,b.jsx)(S,(0,i.Z)({ownerState:L,className:(0,a.Z)(E.root,c),as:m,ref:t},D))})}));const M=C},5767:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(557),i=n(1551),o=n(9953),a=n(4115),s=n(7233),l=n(7315),u=n(5799),c=n(1874);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(e){return`scale(${e}, ${e**2})`}const h={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},f="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),g=o.forwardRef((function(e,t){const{addEndListener:n,appear:g=!0,children:m,easing:v,in:y,onEnter:b,onEntered:x,onEntering:_,onExit:w,onExited:S,onExiting:k,style:C,timeout:M="auto",TransitionComponent:Z=a.ZP}=e,T=(0,i.Z)(e,d),O=o.useRef(),P=o.useRef(),I=(0,s.Z)(),A=o.useRef(null),R=(0,u.Z)(A,m.ref,t),D=e=>t=>{if(e){const n=A.current;void 0===t?e(n):e(n,t)}},L=D(_),E=D(((e,t)=>{(0,l.n)(e);const{duration:n,delay:r,easing:i}=(0,l.C)({style:C,timeout:M,easing:v},{mode:"enter"});let o;"auto"===M?(o=I.transitions.getAutoHeightDuration(e.clientHeight),P.current=o):o=n,e.style.transition=[I.transitions.create("opacity",{duration:o,delay:r}),I.transitions.create("transform",{duration:f?o:.666*o,delay:r,easing:i})].join(","),b&&b(e,t)})),N=D(x),z=D(k),B=D((e=>{const{duration:t,delay:n,easing:r}=(0,l.C)({style:C,timeout:M,easing:v},{mode:"exit"});let i;"auto"===M?(i=I.transitions.getAutoHeightDuration(e.clientHeight),P.current=i):i=t,e.style.transition=[I.transitions.create("opacity",{duration:i,delay:n}),I.transitions.create("transform",{duration:f?i:.666*i,delay:f?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=p(.75),w&&w(e)})),F=D(S);return o.useEffect((()=>()=>{clearTimeout(O.current)}),[]),(0,c.jsx)(Z,(0,r.Z)({appear:g,in:y,nodeRef:A,onEnter:E,onEntered:N,onEntering:L,onExit:B,onExited:F,onExiting:z,addEndListener:e=>{"auto"===M&&(O.current=setTimeout(e,P.current||0)),n&&n(A.current,e)},timeout:"auto"===M?null:M},T,{children:(e,t)=>o.cloneElement(m,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:p(.75),visibility:"exited"!==e||y?void 0:"hidden"},h[e],C,m.props.style),ref:R},t))}))}));g.muiSupportAuto=!0;const m=g},2048:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(852),u=n(2829),c=n(3265),d=n(7843),p=n(7996),h=n(6799),f=n(1176);function g(e){return(0,f.Z)("MuiIconButton",e)}const m=(0,h.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);var v=n(1874);const y=["edge","children","className","color","disabled","disableFocusRipple","size"],b=(0,u.ZP)(d.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,p.Z)(n.color)}`],n.edge&&t[`edge${(0,p.Z)(n.edge)}`],t[`size${(0,p.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,i.Z)({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})`:(0,l.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return(0,i.Z)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,i.Z)({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":(0,i.Z)({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.Fq)(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${m.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),x=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiIconButton"}),{edge:o=!1,children:l,className:u,color:d="default",disabled:h=!1,disableFocusRipple:f=!1,size:m="medium"}=n,x=(0,r.Z)(n,y),_=(0,i.Z)({},n,{edge:o,color:d,disabled:h,disableFocusRipple:f,size:m}),w=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled","default"!==r&&`color${(0,p.Z)(r)}`,i&&`edge${(0,p.Z)(i)}`,`size${(0,p.Z)(o)}`]};return(0,s.Z)(a,g,t)})(_);return(0,v.jsx)(b,(0,i.Z)({className:(0,a.Z)(w.root,u),centerRipple:!0,focusRipple:!f,disabled:h,ref:t,ownerState:_},x,{children:l}))}))},2958:(e,t,n)=>{"use strict";n.d(t,{rA:()=>E,Ej:()=>L,ZP:()=>z,_o:()=>D,Gx:()=>R});var r=n(1551),i=n(557),o=n(9821),a=n(9953),s=n(4923),l=n(4792),u=n(7966),c=n(2569),d=n(6871),p=n(9319),h=n(7291),f=n(1874);const g=["onChange","maxRows","minRows","style","value"];function m(e){return parseInt(e,10)||0}const v={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function y(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const b=a.forwardRef((function(e,t){const{onChange:n,maxRows:o,minRows:s=1,style:l,value:b}=e,x=(0,r.Z)(e,g),{current:_}=a.useRef(null!=b),w=a.useRef(null),S=(0,c.Z)(t,w),k=a.useRef(null),C=a.useRef(0),[M,Z]=a.useState({outerHeightStyle:0}),T=a.useCallback((()=>{const t=w.current,n=(0,d.Z)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const r=k.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const i=n.boxSizing,a=m(n.paddingBottom)+m(n.paddingTop),l=m(n.borderBottomWidth)+m(n.borderTopWidth),u=r.scrollHeight;r.value="x";const c=r.scrollHeight;let p=u;s&&(p=Math.max(Number(s)*c,p)),o&&(p=Math.min(Number(o)*c,p)),p=Math.max(p,c);return{outerHeightStyle:p+("border-box"===i?a+l:0),overflow:Math.abs(p-u)<=1}}),[o,s,e.placeholder]),O=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return C.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(C.current+=1,{overflow:r,outerHeightStyle:n}):e},P=a.useCallback((()=>{const e=T();y(e)||Z((t=>O(t,e)))}),[T]);a.useEffect((()=>{const e=(0,p.Z)((()=>{C.current=0,w.current&&(()=>{const e=T();y(e)||u.flushSync((()=>{Z((t=>O(t,e)))}))})()}));let t;const n=w.current,r=(0,d.Z)(n);return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),r.removeEventListener("resize",e),t&&t.disconnect()}})),(0,h.Z)((()=>{P()})),a.useEffect((()=>{C.current=0}),[b]);return(0,f.jsxs)(a.Fragment,{children:[(0,f.jsx)("textarea",(0,i.Z)({value:b,onChange:e=>{C.current=0,_||P(),n&&n(e)},ref:S,rows:s,style:(0,i.Z)({height:M.outerHeightStyle,overflow:M.overflow?"hidden":void 0},l)},x)),(0,f.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:k,tabIndex:-1,style:(0,i.Z)({},v,l,{padding:0})})]})}));var x=n(435),_=n(9353),w=n(3285),S=n(7151),k=n(2829),C=n(3265),M=n(7996),Z=n(5799),T=n(5322),O=n(595),P=n(2769),I=n(3373);const A=["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"],R=(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,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,M.Z)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},D=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},L=(0,k.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:R})((({theme:e,ownerState:t})=>(0,i.Z)({},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",[`&.${I.Z.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,i.Z)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),E=(0,k.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:D})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=(0,i.Z)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,i.Z)({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] + .${I.Z.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${I.Z.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),N=(0,f.jsx)(O.Z,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),z=a.forwardRef((function(e,t){var n;const u=(0,C.Z)({props:e,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:p,className:h,components:g={},componentsProps:m={},defaultValue:v,disabled:y,disableInjectingGlobalStyles:k,endAdornment:O,fullWidth:R=!1,id:D,inputComponent:z="input",inputProps:B={},inputRef:F,maxRows:j,minRows:$,multiline:V=!1,name:W,onBlur:H,onChange:G,onClick:U,onFocus:q,onKeyDown:Y,onKeyUp:X,placeholder:K,readOnly:Q,renderSuffix:J,rows:ee,slotProps:te={},slots:ne={},startAdornment:re,type:ie="text",value:oe}=u,ae=(0,r.Z)(u,A),se=null!=B.value?B.value:oe,{current:le}=a.useRef(null!=se),ue=a.useRef(),ce=a.useCallback((e=>{0}),[]),de=(0,Z.Z)(ue,F,B.ref,ce),[pe,he]=a.useState(!1),fe=(0,S.Z)();const ge=(0,_.Z)({props:u,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=fe?fe.focused:pe,a.useEffect((()=>{!fe&&y&&pe&&(he(!1),H&&H())}),[fe,y,pe,H]);const me=fe&&fe.onFilled,ve=fe&&fe.onEmpty,ye=a.useCallback((e=>{(0,P.vd)(e)?me&&me():ve&&ve()}),[me,ve]);(0,T.Z)((()=>{le&&ye({value:se})}),[se,ye,le]);a.useEffect((()=>{ye(ue.current)}),[]);let be=z,xe=B;V&&"input"===be&&(xe=ee?(0,i.Z)({type:void 0,minRows:ee,maxRows:ee},xe):(0,i.Z)({type:void 0,maxRows:j,minRows:$},xe),be=b);a.useEffect((()=>{fe&&fe.setAdornedStart(Boolean(re))}),[fe,re]);const _e=(0,i.Z)({},u,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:O,error:ge.error,focused:ge.focused,formControl:fe,fullWidth:R,hiddenLabel:ge.hiddenLabel,multiline:V,size:ge.size,startAdornment:re,type:ie}),we=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:u,hiddenLabel:c,multiline:d,readOnly:p,size:h,startAdornment:f,type:g}=e,m={root:["root",`color${(0,M.Z)(n)}`,r&&"disabled",i&&"error",u&&"fullWidth",a&&"focused",s&&"formControl","small"===h&&"sizeSmall",d&&"multiline",f&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled","search"===g&&"inputTypeSearch",d&&"inputMultiline","small"===h&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",o&&"inputAdornedEnd",p&&"readOnly"]};return(0,l.Z)(m,I.u,t)})(_e),Se=ne.root||g.Root||L,ke=te.root||m.root||{},Ce=ne.input||g.Input||E;return xe=(0,i.Z)({},xe,null!=(n=te.input)?n:m.input),(0,f.jsxs)(a.Fragment,{children:[!k&&N,(0,f.jsxs)(Se,(0,i.Z)({},ke,!(0,x.Z)(Se)&&{ownerState:(0,i.Z)({},_e,ke.ownerState)},{ref:t,onClick:e=>{ue.current&&e.currentTarget===e.target&&ue.current.focus(),U&&U(e)}},ae,{className:(0,s.Z)(we.root,ke.className,h,Q&&"MuiInputBase-readOnly"),children:[re,(0,f.jsx)(w.Z.Provider,{value:null,children:(0,f.jsx)(Ce,(0,i.Z)({ownerState:_e,"aria-invalid":ge.error,"aria-describedby":c,autoComplete:d,autoFocus:p,defaultValue:v,disabled:ge.disabled,id:D,onAnimationStart:e=>{ye("mui-auto-fill-cancel"===e.animationName?ue.current:{value:"x"})},name:W,placeholder:K,readOnly:Q,required:ge.required,rows:ee,value:se,onKeyDown:Y,onKeyUp:X,type:ie},xe,!(0,x.Z)(Ce)&&{as:be,ownerState:(0,i.Z)({},_e,xe.ownerState)},{ref:de,className:(0,s.Z)(we.input,xe.className,Q&&"MuiInputBase-readOnly"),onBlur:e=>{H&&H(e),B.onBlur&&B.onBlur(e),fe&&fe.onBlur?fe.onBlur(e):he(!1)},onChange:(e,...t)=>{if(!le){const t=e.target||ue.current;if(null==t)throw new Error((0,o.Z)(1));ye({value:t.value})}B.onChange&&B.onChange(e,...t),G&&G(e,...t)},onFocus:e=>{ge.disabled?e.stopPropagation():(q&&q(e),B.onFocus&&B.onFocus(e),fe&&fe.onFocus?fe.onFocus(e):he(!0))}}))}),O,J?J((0,i.Z)({},ge,{startAdornment:re})):null]}))]})}))},3373:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,u:()=>o});var r=n(6799),i=n(1176);function o(e){return(0,i.Z)("MuiInputBase",e)}const a=(0,r.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},2769:(e,t,n)=>{"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e,t=!1){return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,{B7:()=>o,vd:()=>i})},5226:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(1551),i=n(557),o=n(9953),a=n(4792),s=n(582),l=n(2958),u=n(2829),c=n(3265),d=n(1598),p=n(1874);const h=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],f=(0,u.ZP)(l.Ej,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,l.Gx)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,i.Z)({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"},[`&.${d.Z.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${d.Z.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${d.Z.disabled}, .${d.Z.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${d.Z.disabled}:before`]:{borderBottomStyle:"dotted"}})})),g=(0,u.ZP)(l.rA,{name:"MuiInput",slot:"Input",overridesResolver:l._o})({}),m=o.forwardRef((function(e,t){var n,o,u,m;const v=(0,c.Z)({props:e,name:"MuiInput"}),{disableUnderline:y,components:b={},componentsProps:x,fullWidth:_=!1,inputComponent:w="input",multiline:S=!1,slotProps:k,slots:C={},type:M="text"}=v,Z=(0,r.Z)(v,h),T=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,a.Z)(r,d.l,t);return(0,i.Z)({},t,o)})(v),O={root:{ownerState:{disableUnderline:y}}},P=(null!=k?k:x)?(0,s.Z)(null!=k?k:x,O):O,I=null!=(n=null!=(o=C.root)?o:b.Root)?n:f,A=null!=(u=null!=(m=C.input)?m:b.Input)?u:g;return(0,p.jsx)(l.ZP,(0,i.Z)({slots:{root:I,input:A},slotProps:P,fullWidth:_,inputComponent:w,multiline:S,ref:t,type:M},Z,{classes:T}))}));m.muiName="Input";const v=m},1598:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,l:()=>s});var r=n(557),i=n(6799),o=n(1176),a=n(3373);function s(e){return(0,o.Z)("MuiInput",e)}const l=(0,r.Z)({},a.Z,(0,i.Z)("MuiInput",["root","underline","input"]))},7464:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(4792),l=n(6504),u=n(852),c=n(7996),d=n(7233),p=n(2829),h=n(3265),f=n(6799),g=n(1176);function m(e){return(0,g.Z)("MuiLinearProgress",e)}(0,f.Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var v=n(1874);const y=["className","color","value","valueBuffer","variant"];let b,x,_,w,S,k,C=e=>e;const M=(0,l.F4)(b||(b=C` 0% { left: -35%; right: 100%; @@ -125,4 +125,4 @@ `),M))),R=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,c.Z)(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>(0,i.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:O(t,e.color),transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,l.iv)(k||(k=C` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),Z))),D=o.forwardRef((function(e,t){const n=(0,h.Z)({props:e,name:"MuiLinearProgress"}),{className:o,color:l="primary",value:u,valueBuffer:p,variant:f="indeterminate"}=n,g=(0,r.Z)(n,y),b=(0,i.Z)({},n,{color:l,variant:f}),x=(e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${(0,c.Z)(r)}`,n],dashed:["dashed",`dashedColor${(0,c.Z)(r)}`],bar1:["bar",`barColor${(0,c.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&`barColor${(0,c.Z)(r)}`,"buffer"===n&&`color${(0,c.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,s.Z)(i,m,t)})(b),_=(0,d.Z)(),w={},S={bar1:{},bar2:{}};if("determinate"===f||"buffer"===f)if(void 0!==u){w["aria-valuenow"]=Math.round(u),w["aria-valuemin"]=0,w["aria-valuemax"]=100;let e=u-100;"rtl"===_.direction&&(e=-e),S.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===f)if(void 0!==p){let e=(p||0)-100;"rtl"===_.direction&&(e=-e),S.bar2.transform=`translateX(${e}%)`}else 0;return(0,v.jsxs)(P,(0,i.Z)({className:(0,a.Z)(x.root,o),ownerState:b,role:"progressbar"},w,{ref:t},g,{children:["buffer"===f?(0,v.jsx)(I,{className:x.dashed,ownerState:b}):null,(0,v.jsx)(A,{className:x.bar1,ownerState:b,style:S.bar1}),"determinate"===f?null:(0,v.jsx)(R,{className:x.bar2,ownerState:b,style:S.bar2})]}))}))},3376:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(8115),u=n(1628),c=n(6820),d=n(5826),p=n(4717),h=n(1759),f=n(2112),g=n(7824);function m(e){return(0,g.Z)("MuiLink",e)}const v=(0,f.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var y=n(5070),b=n(1280);const x={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_=({theme:e,ownerState:t})=>{const n=(e=>x[e]||e)(t.color),r=(0,y.DW)(e,`palette.${n}`,!1)||t.color,i=(0,y.DW)(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:(0,b.Fq)(r,.4)};var w=n(1874);const S=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],k=(0,u.ZP)(h.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${(0,l.Z)(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>(0,i.Z)({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&(0,i.Z)({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:_({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${v.focusVisible}`]:{outline:"auto"}}))),C=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiLink"}),{className:u,color:h="primary",component:f="a",onBlur:g,onFocus:v,TypographyClasses:y,underline:b="always",variant:_="inherit",sx:C}=n,M=(0,r.Z)(n,S),{isFocusVisibleRef:Z,onBlur:T,onFocus:O,ref:P}=(0,d.Z)(),[I,A]=o.useState(!1),R=(0,p.Z)(t,P),D=(0,i.Z)({},n,{color:h,component:f,focusVisible:I,underline:b,variant:_}),L=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${(0,l.Z)(i)}`,"button"===n&&"button",r&&"focusVisible"]};return(0,s.Z)(o,m,t)})(D);return(0,w.jsx)(k,(0,i.Z)({color:h,className:(0,a.Z)(L.root,u),classes:y,component:f,onBlur:e=>{T(e),!1===Z.current&&A(!1),g&&g(e)},onFocus:e=>{O(e),!0===Z.current&&A(!0),v&&v(e)},ref:R,ownerState:D,variant:_,sx:[...Object.keys(x).includes(h)?[]:[{color:h}],...Array.isArray(C)?C:[C]]},M))}))},4808:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>A});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(2083),u=n(1280),c=n(1628),d=n(6820),p=n(1459),h=n(2284),f=n(5973),g=n(4717),m=n(6708),v=n(2112),y=n(7824);function b(e){return(0,y.Z)("MuiListItem",e)}const x=(0,v.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);const _=(0,v.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function w(e){return(0,y.Z)("MuiListItemSecondaryAction",e)}(0,v.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var S=n(1874);const k=["className"],C=(0,c.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,i.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),M=o.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:l}=n,u=(0,r.Z)(n,k),c=o.useContext(m.Z),p=(0,i.Z)({},n,{disableGutters:c.disableGutters}),h=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,s.Z)(r,w,n)})(p);return(0,S.jsx)(C,(0,i.Z)({className:(0,a.Z)(h.root,l),ownerState:p,ref:t},u))}));M.muiName="ListItemSecondaryAction";const Z=M,T=["className"],O=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],P=(0,c.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>(0,i.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,i.Z)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${_.root}`]:{paddingRight:48}},{[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${x.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,u.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,u.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${x.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,u.Fq)(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})`:(0,u.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),I=(0,c.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),A=o.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiListItem"}),{alignItems:u="center",autoFocus:c=!1,button:v=!1,children:y,className:_,component:w,components:k={},componentsProps:C={},ContainerComponent:M="li",ContainerProps:{className:A}={},dense:R=!1,disabled:D=!1,disableGutters:L=!1,disablePadding:E=!1,divider:N=!1,focusVisibleClassName:z,secondaryAction:B,selected:F=!1,slotProps:j={},slots:V={}}=n,$=(0,r.Z)(n.ContainerProps,T),W=(0,r.Z)(n,O),H=o.useContext(m.Z),G=o.useMemo((()=>({dense:R||H.dense||!1,alignItems:u,disableGutters:L})),[u,H.dense,R,L]),U=o.useRef(null);(0,f.Z)((()=>{c&&U.current&&U.current.focus()}),[c]);const q=o.Children.toArray(y),Y=q.length&&(0,h.Z)(q[q.length-1],["ListItemSecondaryAction"]),X=(0,i.Z)({},n,{alignItems:u,autoFocus:c,button:v,dense:G.dense,disabled:D,disableGutters:L,disablePadding:E,divider:N,hasSecondaryAction:Y,selected:F}),K=(e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:l,divider:u,hasSecondaryAction:c,selected:d}=e,p={root:["root",i&&"dense",!a&&"gutters",!l&&"padding",u&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]};return(0,s.Z)(p,b,r)})(X),Q=(0,g.Z)(U,t),J=V.root||k.Root||P,ee=j.root||C.root||{},te=(0,i.Z)({className:(0,a.Z)(K.root,ee.className,_),disabled:D},W);let ne=w||"li";return v&&(te.component=w||"div",te.focusVisibleClassName=(0,a.Z)(x.focusVisible,z),ne=p.Z),Y?(ne=te.component||w?ne:"div","li"===M&&("li"===ne?ne="div":"li"===te.component&&(te.component="div")),(0,S.jsx)(m.Z.Provider,{value:G,children:(0,S.jsxs)(I,(0,i.Z)({as:M,className:(0,a.Z)(K.container,A),ref:Q,ownerState:X},$,{children:[(0,S.jsx)(J,(0,i.Z)({},ee,!(0,l.Z)(J)&&{as:ne,ownerState:(0,i.Z)({},X,ee.ownerState)},te,{children:q})),q.pop()]}))})):(0,S.jsx)(m.Z.Provider,{value:G,children:(0,S.jsxs)(J,(0,i.Z)({},ee,{as:ne,ref:Q},!(0,l.Z)(J)&&{ownerState:(0,i.Z)({},X,ee.ownerState)},te,{children:[q,B&&(0,S.jsx)(Z,{children:B})]}))})}))},8611:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1628),u=n(6820),c=n(8115),d=n(2112),p=n(7824);function h(e){return(0,p.Z)("MuiListSubheader",e)}(0,d.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var f=n(1874);const g=["className","color","component","disableGutters","disableSticky","inset"],m=(0,l.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,c.Z)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,i.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),v=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiListSubheader"}),{className:o,color:l="default",component:d="li",disableGutters:p=!1,disableSticky:v=!1,inset:y=!1}=n,b=(0,r.Z)(n,g),x=(0,i.Z)({},n,{color:l,component:d,disableGutters:p,disableSticky:v,inset:y}),_=(e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root","default"!==n&&`color${(0,c.Z)(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return(0,s.Z)(a,h,t)})(x);return(0,f.jsx)(m,(0,i.Z)({as:d,className:(0,a.Z)(_.root,o),ref:t,ownerState:x},b))}));v.muiSkipListHighlight=!0;const y=v},3029:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1628),u=n(6820),c=n(6708),d=n(2112),p=n(7824);function h(e){return(0,p.Z)("MuiList",e)}(0,d.Z)("MuiList",["root","padding","dense","subheader"]);var f=n(1874);const g=["children","className","component","dense","disablePadding","subheader"],m=(0,l.ZP)("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})=>(0,i.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),v=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiList"}),{children:l,className:d,component:p="ul",dense:v=!1,disablePadding:y=!1,subheader:b}=n,x=(0,r.Z)(n,g),_=o.useMemo((()=>({dense:v})),[v]),w=(0,i.Z)({},n,{component:p,dense:v,disablePadding:y}),S=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e,o={root:["root",!n&&"padding",r&&"dense",i&&"subheader"]};return(0,s.Z)(o,h,t)})(w);return(0,f.jsx)(c.Z.Provider,{value:_,children:(0,f.jsxs)(m,(0,i.Z)({as:p,className:(0,a.Z)(S.root,d),ref:t,ownerState:w},x,{children:[b,l]}))})}))},6708:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(9953).createContext({})},5822:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1280),u=n(1628),c=n(6820),d=n(6708),p=n(1459),h=n(5973),f=n(4717),g=n(3084),m=n(2112);const v=(0,m.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);const y=(0,m.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);var b=n(7824);function x(e){return(0,b.Z)("MuiMenuItem",e)}const _=(0,m.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var w=n(1874);const S=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],k=(0,u.ZP)(p.Z,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,i.Z)({},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"}},[`&.${_.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.Fq)(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})`:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${_.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${g.Z.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${g.Z.inset}`]:{marginLeft:52},[`& .${y.root}`]:{marginTop:0,marginBottom:0},[`& .${y.inset}`]:{paddingLeft:36},[`& .${v.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,i.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${v.root} svg`]:{fontSize:"1.25rem"}})))),C=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:l=!1,component:u="li",dense:p=!1,divider:g=!1,disableGutters:m=!1,focusVisibleClassName:v,role:y="menuitem",tabIndex:b,className:_}=n,C=(0,r.Z)(n,S),M=o.useContext(d.Z),Z=o.useMemo((()=>({dense:p||M.dense||!1,disableGutters:m})),[M.dense,p,m]),T=o.useRef(null);(0,h.Z)((()=>{l&&T.current&&T.current.focus()}),[l]);const O=(0,i.Z)({},n,{dense:Z.dense,divider:g,disableGutters:m}),P=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:l}=e,u={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},c=(0,s.Z)(u,x,l);return(0,i.Z)({},l,c)})(n),I=(0,f.Z)(T,t);let A;return n.disabled||(A=void 0!==b?b:-1),(0,w.jsx)(d.Z.Provider,{value:Z,children:(0,w.jsx)(k,(0,i.Z)({ref:I,role:y,tabIndex:A,component:u,focusVisibleClassName:(0,a.Z)(P.focusVisible,v),className:(0,a.Z)(P.root,_)},C,{ownerState:O,classes:P}))})}))},7095:(e,t,n)=>{"use strict";n.d(t,{Z:()=>K});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(1888),l=n(6128),u=n(731),c=n(4010),d=n(8842),p=n(6603),h=n(9826),f=n(602);function g(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function m(e){return parseInt((0,h.Z)(e).getComputedStyle(e).paddingRight,10)||0}function v(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&g(e,i)}))}function y(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function b(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,l.Z)(e);return t.body===e?(0,h.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=(0,f.Z)((0,l.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${m(r)+e}px`;const t=(0,l.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${m(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,l.Z)(r).body;else{const t=r.parentElement,n=(0,h.Z)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}var x=n(1874);const _=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function w(e){const t=[],n=[];return Array.from(e.querySelectorAll(_)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function S(){return!0}const k=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=w,isEnabled:u=S,open:c}=e,d=o.useRef(!1),p=o.useRef(null),h=o.useRef(null),f=o.useRef(null),g=o.useRef(null),m=o.useRef(!1),v=o.useRef(null),y=(0,s.Z)(t.ref,v),b=o.useRef(null);o.useEffect((()=>{c&&v.current&&(m.current=!n)}),[n,c]),o.useEffect((()=>{if(!c||!v.current)return;const e=(0,l.Z)(v.current);return v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),m.current&&v.current.focus()),()=>{i||(f.current&&f.current.focus&&(d.current=!0,f.current.focus()),f.current=null)}}),[c]),o.useEffect((()=>{if(!c||!v.current)return;const e=(0,l.Z)(v.current),t=t=>{const{current:n}=v;if(null!==n)if(e.hasFocus()&&!r&&u()&&!d.current){if(!n.contains(e.activeElement)){if(t&&g.current!==t.target||e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!m.current)return;let r=[];if(e.activeElement!==p.current&&e.activeElement!==h.current||(r=a(v.current)),r.length>0){var i,o;const e=Boolean((null==(i=b.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=b.current)?void 0:o.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else d.current=!1},n=t=>{b.current=t,!r&&u()&&"Tab"===t.key&&e.activeElement===v.current&&t.shiftKey&&(d.current=!0,h.current&&h.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,r,i,u,c,a]);const _=e=>{null===f.current&&(f.current=e.relatedTarget),m.current=!0};return(0,x.jsxs)(o.Fragment,{children:[(0,x.jsx)("div",{tabIndex:c?0:-1,onFocus:_,ref:p,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:y,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),m.current=!0,g.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,x.jsx)("div",{tabIndex:c?0:-1,onFocus:_,ref:h,"data-testid":"sentinelEnd"})]})};var C=n(2112),M=n(7824);function Z(e){return(0,M.Z)("MuiModal",e)}(0,C.Z)("MuiModal",["root","hidden","backdrop"]);var T=n(5852),O=n(7920);const P=["children","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"];const I=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&g(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);v(t,e.mount,e.modalRef,r,!0);const i=y(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=y(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=b(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=y(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&g(e.modalRef,t),v(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&g(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},A=o.forwardRef((function(e,t){var n,a;const{children:h,closeAfterTransition:f=!1,component:m,container:v,disableAutoFocus:y=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:_=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:C=!1,hideBackdrop:M=!1,keepMounted:A=!1,manager:R=I,onBackdropClick:D,onClose:L,onKeyDown:E,open:N,onTransitionEnter:z,onTransitionExited:B,slotProps:F={},slots:j={}}=e,V=(0,r.Z)(e,P),[$,W]=o.useState(!N),H=o.useRef({}),G=o.useRef(null),U=o.useRef(null),q=(0,s.Z)(U,t),Y=function(e){return!!e&&e.props.hasOwnProperty("in")}(h),X=null==(n=e["aria-hidden"])||n,K=()=>(H.current.modalRef=U.current,H.current.mountNode=G.current,H.current),Q=()=>{R.mount(K(),{disableScrollLock:C}),U.current&&(U.current.scrollTop=0)},J=(0,u.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(v)||(0,l.Z)(G.current).body;R.add(K(),e),U.current&&Q()})),ee=o.useCallback((()=>R.isTopModal(K())),[R]),te=(0,u.Z)((e=>{G.current=e,e&&U.current&&(N&&ee()?Q():g(U.current,X))})),ne=o.useCallback((()=>{R.remove(K(),X)}),[R,X]);o.useEffect((()=>()=>{ne()}),[ne]),o.useEffect((()=>{N?J():Y&&f||ne()}),[N,ne,Y,f,J]);const re=(0,i.Z)({},e,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:b,disableEscapeKeyDown:_,disablePortal:w,disableRestoreFocus:S,disableScrollLock:C,exited:$,hideBackdrop:M,keepMounted:A}),ie=(e=>{const{open:t,exited:n}=e,r={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,d.Z)(r,(0,O.T)(Z))})(re),oe=()=>{W(!1),z&&z()},ae=()=>{W(!0),B&&B(),f&&ne()},se={};void 0===h.props.tabIndex&&(se.tabIndex="-1"),Y&&(se.onEnter=(0,c.Z)(oe,h.props.onEnter),se.onExited=(0,c.Z)(ae,h.props.onExited));const le=null!=(a=null!=m?m:j.root)?a:"div",ue=(0,T.Z)({elementType:le,externalSlotProps:F.root,externalForwardedProps:V,additionalProps:{ref:q,role:"presentation",onKeyDown:e=>{E&&E(e),"Escape"===e.key&&ee()&&(_||(e.stopPropagation(),L&&L(e,"escapeKeyDown")))}},className:ie.root,ownerState:re}),ce=j.backdrop,de=(0,T.Z)({elementType:ce,externalSlotProps:F.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(D&&D(e),L&&L(e,"backdropClick"))},open:N},className:ie.backdrop,ownerState:re});return A||N||Y&&!$?(0,x.jsx)(p.Z,{ref:te,container:v,disablePortal:w,children:(0,x.jsxs)(le,(0,i.Z)({},ue,{children:[!M&&ce?(0,x.jsx)(ce,(0,i.Z)({},de)):null,(0,x.jsx)(k,{disableEnforceFocus:b,disableAutoFocus:y,disableRestoreFocus:S,isEnabled:ee,open:N,children:o.cloneElement(h,se)})]}))}):null}));var R=n(8724),D=n(2083),L=n(1628),E=n(6820),N=n(2648),z=n(5401),B=n(4743),F=n(4717);const j=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],V={entering:{opacity:1},entered:{opacity:1}},$=o.forwardRef((function(e,t){const n=(0,z.Z)(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:u,easing:c,in:d,onEnter:p,onEntered:h,onEntering:f,onExit:g,onExited:m,onExiting:v,style:y,timeout:b=a,TransitionComponent:_=N.ZP}=e,w=(0,r.Z)(e,j),S=o.useRef(null),k=(0,F.Z)(S,u.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},M=C(f),Z=C(((e,t)=>{(0,B.n)(e);const r=(0,B.C)({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),p&&p(e,t)})),T=C(h),O=C(v),P=C((e=>{const t=(0,B.C)({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),g&&g(e)})),I=C(m);return(0,x.jsx)(_,(0,i.Z)({appear:l,in:d,nodeRef:S,onEnter:Z,onEntered:T,onEntering:M,onExit:P,onExited:I,onExiting:O,addEndListener:e=>{s&&s(S.current,e)},timeout:b},w,{children:(e,t)=>o.cloneElement(u,(0,i.Z)({style:(0,i.Z)({opacity:0,visibility:"exited"!==e||d?void 0:"hidden"},V[e],y,u.props.style),ref:k},t))}))}));function W(e){return(0,M.Z)("MuiBackdrop",e)}(0,C.Z)("MuiBackdrop",["root","invisible"]);const H=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],G=(0,L.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,i.Z)({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"}))),U=o.forwardRef((function(e,t){var n,o,s;const l=(0,E.Z)({props:e,name:"MuiBackdrop"}),{children:u,className:c,component:p="div",components:h={},componentsProps:f={},invisible:g=!1,open:m,slotProps:v={},slots:y={},TransitionComponent:b=$,transitionDuration:_}=l,w=(0,r.Z)(l,H),S=(0,i.Z)({},l,{component:p,invisible:g}),k=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,d.Z)(r,W,t)})(S),C=null!=(n=v.root)?n:f.root;return(0,x.jsx)(b,(0,i.Z)({in:m,timeout:_},w,{children:(0,x.jsx)(G,(0,i.Z)({"aria-hidden":!0},C,{as:null!=(o=null!=(s=y.root)?s:h.Root)?o:p,className:(0,a.Z)(k.root,c,null==C?void 0:C.className),ownerState:(0,i.Z)({},S,null==C?void 0:C.ownerState),classes:k,ref:t,children:u}))}))})),q=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],Y=(0,L.ZP)("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})=>(0,i.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),X=(0,L.ZP)(U,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),K=o.forwardRef((function(e,t){var n,s,l,u,c,d;const p=(0,E.Z)({name:"MuiModal",props:e}),{BackdropComponent:h=X,BackdropProps:f,classes:g,className:m,closeAfterTransition:v=!1,children:y,component:b,components:_={},componentsProps:w={},disableAutoFocus:S=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:C=!1,disablePortal:M=!1,disableRestoreFocus:Z=!1,disableScrollLock:T=!1,hideBackdrop:O=!1,keepMounted:P=!1,slotProps:I,slots:L,theme:N}=p,z=(0,r.Z)(p,q),[B,F]=o.useState(!0),j={closeAfterTransition:v,disableAutoFocus:S,disableEnforceFocus:k,disableEscapeKeyDown:C,disablePortal:M,disableRestoreFocus:Z,disableScrollLock:T,hideBackdrop:O,keepMounted:P},V=(0,i.Z)({},p,j,{exited:B}),$=null!=(n=null!=(s=null==L?void 0:L.root)?s:_.Root)?n:Y,W=null!=(l=null!=(u=null==L?void 0:L.backdrop)?u:_.Backdrop)?l:h,H=null!=(c=null==I?void 0:I.root)?c:w.root,G=null!=(d=null==I?void 0:I.backdrop)?d:w.backdrop;return(0,x.jsx)(A,(0,i.Z)({slots:{root:$,backdrop:W},slotProps:{root:()=>(0,i.Z)({},(0,R.Z)(H,V),!(0,D.Z)($)&&{as:b,theme:N},{className:(0,a.Z)(m,null==H?void 0:H.className,null==g?void 0:g.root,!V.open&&V.exited&&(null==g?void 0:g.hidden))}),backdrop:()=>(0,i.Z)({},f,(0,R.Z)(G,V),{className:(0,a.Z)(null==G?void 0:G.className,null==g?void 0:g.backdrop)})},onTransitionEnter:()=>F(!1),onTransitionExited:()=>F(!0),ref:t},z,j,{children:y}))}))},4890:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r,i=n(1551),o=n(557),a=n(9953),s=n(8842),l=n(1628),u=n(1874);const c=["children","classes","className","label","notched"],d=(0,l.ZP)("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%"}),p=(0,l.ZP)("legend")((({ownerState:e,theme:t})=>(0,o.Z)({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&&(0,o.Z)({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})}))));var h=n(7139),f=n(5823),g=n(3953),m=n(9137),v=n(6820);const y=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],b=(0,l.ZP)(m.Ej,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:m.Gx})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,o.Z)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${g.Z.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${g.Z.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${g.Z.focused} .${g.Z.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${g.Z.error} .${g.Z.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${g.Z.disabled} .${g.Z.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,o.Z)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),x=(0,l.ZP)((function(e){const{className:t,label:n,notched:a}=e,s=(0,i.Z)(e,c),l=null!=n&&""!==n,h=(0,o.Z)({},e,{notched:a,withLabel:l});return(0,u.jsx)(d,(0,o.Z)({"aria-hidden":!0,className:t,ownerState:h},s,{children:(0,u.jsx)(p,{ownerState:h,children:l?(0,u.jsx)("span",{children:n}):r||(r=(0,u.jsx)("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"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}})),_=(0,l.ZP)(m.rA,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:m._o})((({theme:e,ownerState:t})=>(0,o.Z)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),w=a.forwardRef((function(e,t){var n,r,l,c,d;const p=(0,v.Z)({props:e,name:"MuiOutlinedInput"}),{components:w={},fullWidth:S=!1,inputComponent:k="input",label:C,multiline:M=!1,notched:Z,slots:T={},type:O="text"}=p,P=(0,i.Z)(p,y),I=(e=>{const{classes:t}=e,n=(0,s.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},g.e,t);return(0,o.Z)({},t,n)})(p),A=(0,h.Z)(),R=(0,f.Z)({props:p,muiFormControl:A,states:["required"]}),D=(0,o.Z)({},p,{color:R.color||"primary",disabled:R.disabled,error:R.error,focused:R.focused,formControl:A,fullWidth:S,hiddenLabel:R.hiddenLabel,multiline:M,size:R.size,type:O}),L=null!=(n=null!=(r=T.root)?r:w.Root)?n:b,E=null!=(l=null!=(c=T.input)?c:w.Input)?l:_;return(0,u.jsx)(m.ZP,(0,o.Z)({slots:{root:L,input:E},renderSuffix:e=>(0,u.jsx)(x,{ownerState:D,className:I.notchedOutline,label:null!=C&&""!==C&&R.required?d||(d=(0,u.jsxs)(a.Fragment,{children:[C," ","*"]})):C,notched:void 0!==Z?Z:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:S,inputComponent:k,multiline:M,ref:t,type:O},P,{classes:(0,o.Z)({},I,{notchedOutline:null})}))}));w.muiName="Input";const S=w},3953:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,e:()=>s});var r=n(557),i=n(2112),o=n(7824),a=n(5214);function s(e){return(0,o.Z)("MuiOutlinedInput",e)}const l=(0,r.Z)({},a.Z,(0,i.Z)("MuiOutlinedInput",["root","notchedOutline","input"]))},5890:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1280),u=n(1628);const c=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var d=n(6820),p=n(2112),h=n(7824);function f(e){return(0,h.Z)("MuiPaper",e)}(0,p.Z)("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"]);var g=n(1874);const m=["className","component","elevation","square","variant"],v=(0,u.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,i.Z)({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},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,i.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,l.Fq)("#fff",c(t.elevation))}, ${(0,l.Fq)("#fff",c(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),y=o.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiPaper"}),{className:o,component:l="div",elevation:u=1,square:c=!1,variant:p="elevation"}=n,h=(0,r.Z)(n,m),y=(0,i.Z)({},n,{component:l,elevation:u,square:c,variant:p}),b=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.Z)(o,f,i)})(y);return(0,g.jsx)(v,(0,i.Z)({as:l,ownerState:y,className:(0,a.Z)(b.root,o),ref:t},h))}))},4428:(e,t,n)=>{"use strict";n.d(t,{Z:()=>$e});var r=n(557),i=n(1551),o=n(9953),a=n(1888),s=n(904),l=n(6128);function u(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function c(e){return e instanceof u(e).Element||e instanceof Element}function d(e){return e instanceof u(e).HTMLElement||e instanceof HTMLElement}function p(e){return"undefined"!=typeof ShadowRoot&&(e instanceof u(e).ShadowRoot||e instanceof ShadowRoot)}var h=Math.max,f=Math.min,g=Math.round;function m(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function v(){return!/^((?!chrome|android).)*safari/i.test(m())}function y(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&d(e)&&(i=e.offsetWidth>0&&g(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&g(r.height)/e.offsetHeight||1);var a=(c(e)?u(e):window).visualViewport,s=!v()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,p=(r.top+(s&&a?a.offsetTop:0))/o,h=r.width/i,f=r.height/o;return{width:h,height:f,top:p,right:l+h,bottom:p+f,left:l,x:l,y:p}}function b(e){var t=u(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function x(e){return e?(e.nodeName||"").toLowerCase():null}function _(e){return((c(e)?e.ownerDocument:e.document)||window.document).documentElement}function w(e){return y(_(e)).left+b(e).scrollLeft}function S(e){return u(e).getComputedStyle(e)}function k(e){var t=S(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function C(e,t,n){void 0===n&&(n=!1);var r,i,o=d(t),a=d(t)&&function(e){var t=e.getBoundingClientRect(),n=g(t.width)/e.offsetWidth||1,r=g(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=_(t),l=y(e,a,n),c={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(o||!o&&!n)&&(("body"!==x(t)||k(s))&&(c=(r=t)!==u(r)&&d(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:b(r)),d(t)?((p=y(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):s&&(p.x=w(s))),{x:l.left+c.scrollLeft-p.x,y:l.top+c.scrollTop-p.y,width:l.width,height:l.height}}function M(e){var t=y(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 Z(e){return"html"===x(e)?e:e.assignedSlot||e.parentNode||(p(e)?e.host:null)||_(e)}function T(e){return["html","body","#document"].indexOf(x(e))>=0?e.ownerDocument.body:d(e)&&k(e)?e:T(Z(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=T(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=u(r),a=i?[o].concat(o.visualViewport||[],k(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(O(Z(a)))}function P(e){return["table","td","th"].indexOf(x(e))>=0}function I(e){return d(e)&&"fixed"!==S(e).position?e.offsetParent:null}function A(e){for(var t=u(e),n=I(e);n&&P(n)&&"static"===S(n).position;)n=I(n);return n&&("html"===x(n)||"body"===x(n)&&"static"===S(n).position)?t:n||function(e){var t=/firefox/i.test(m());if(/Trident/i.test(m())&&d(e)&&"fixed"===S(e).position)return null;var n=Z(e);for(p(n)&&(n=n.host);d(n)&&["html","body"].indexOf(x(n))<0;){var r=S(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var R="top",D="bottom",L="right",E="left",N="auto",z=[R,D,L,E],B="start",F="end",j="clippingParents",V="viewport",$="popper",W="reference",H=z.reduce((function(e,t){return e.concat([t+"-"+B,t+"-"+F])}),[]),G=[].concat(z,[N]).reduce((function(e,t){return e.concat([t,t+"-"+B,t+"-"+F])}),[]),U=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function q(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var Y={placement:"bottom",modifiers:[],strategy:"absolute"};function X(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function ne(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?J(i):null,a=i?ee(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case R:t={x:s,y:n.y-r.height};break;case D:t={x:s,y:n.y+n.height};break;case L:t={x:n.x+n.width,y:l};break;case E:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?te(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case B:t[u]=t[u]-(n[c]/2-r[c]/2);break;case F:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var re={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ie(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=a.x,f=void 0===h?0:h,m=a.y,v=void 0===m?0:m,y="function"==typeof d?d({x:f,y:v}):{x:f,y:v};f=y.x,v=y.y;var b=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),w=E,k=R,C=window;if(c){var M=A(n),Z="clientHeight",T="clientWidth";if(M===u(n)&&"static"!==S(M=_(n)).position&&"absolute"===s&&(Z="scrollHeight",T="scrollWidth"),i===R||(i===E||i===L)&&o===F)k=D,v-=(p&&M===C&&C.visualViewport?C.visualViewport.height:M[Z])-r.height,v*=l?1:-1;if(i===E||(i===R||i===D)&&o===F)w=L,f-=(p&&M===C&&C.visualViewport?C.visualViewport.width:M[T])-r.width,f*=l?1:-1}var O,P=Object.assign({position:s},c&&re),I=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:g(t*r)/r||0,y:g(n*r)/r||0}}({x:f,y:v}):{x:f,y:v};return f=I.x,v=I.y,l?Object.assign({},P,((O={})[k]=x?"0":"",O[w]=b?"0":"",O.transform=(C.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",O)):Object.assign({},P,((t={})[k]=x?v+"px":"",t[w]=b?f+"px":"",t.transform="",t))}const oe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=G.reduce((function(e,n){return e[n]=function(e,t,n){var r=J(e),i=[E,R].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[E,L].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var ae={left:"right",right:"left",bottom:"top",top:"bottom"};function se(e){return e.replace(/left|right|bottom|top/g,(function(e){return ae[e]}))}var le={start:"end",end:"start"};function ue(e){return e.replace(/start|end/g,(function(e){return le[e]}))}function ce(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&p(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function de(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pe(e,t,n){return t===V?de(function(e,t){var n=u(e),r=_(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=v();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+w(e),y:l}}(e,n)):c(t)?function(e,t){var n=y(e,!1,"fixed"===t);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}(t,n):de(function(e){var t,n=_(e),r=b(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=h(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=h(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+w(e),l=-r.scrollTop;return"rtl"===S(i||n).direction&&(s+=h(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(_(e)))}function he(e,t,n,r){var i="clippingParents"===t?function(e){var t=O(Z(e)),n=["absolute","fixed"].indexOf(S(e).position)>=0&&d(e)?A(e):e;return c(n)?t.filter((function(e){return c(e)&&ce(e,n)&&"body"!==x(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=pe(e,n,r);return t.top=h(i.top,t.top),t.right=f(i.right,t.right),t.bottom=f(i.bottom,t.bottom),t.left=h(i.left,t.left),t}),pe(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function fe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ge(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function me(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?j:s,u=n.rootBoundary,d=void 0===u?V:u,p=n.elementContext,h=void 0===p?$:p,f=n.altBoundary,g=void 0!==f&&f,m=n.padding,v=void 0===m?0:m,b=fe("number"!=typeof v?v:ge(v,z)),x=h===$?W:$,w=e.rects.popper,S=e.elements[g?x:h],k=he(c(S)?S:S.contextElement||_(e.elements.popper),l,d,a),C=y(e.elements.reference),M=ne({reference:C,element:w,strategy:"absolute",placement:i}),Z=de(Object.assign({},w,M)),T=h===$?Z:C,O={top:k.top-T.top+b.top,bottom:T.bottom-k.bottom+b.bottom,left:k.left-T.left+b.left,right:T.right-k.right+b.right},P=e.modifiersData.offset;if(h===$&&P){var I=P[i];Object.keys(O).forEach((function(e){var t=[L,D].indexOf(e)>=0?1:-1,n=[R,D].indexOf(e)>=0?"y":"x";O[e]+=I[n]*t}))}return O}function ve(e,t,n){return h(e,f(t,n))}const ye={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,g=void 0===p||p,m=n.tetherOffset,v=void 0===m?0:m,y=me(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=J(t.placement),x=ee(t.placement),_=!x,w=te(b),S="x"===w?"y":"x",k=t.modifiersData.popperOffsets,C=t.rects.reference,Z=t.rects.popper,T="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,O="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(o){var N,z="y"===w?R:E,F="y"===w?D:L,j="y"===w?"height":"width",V=k[w],$=V+y[z],W=V-y[F],H=g?-Z[j]/2:0,G=x===B?C[j]:Z[j],U=x===B?-Z[j]:-C[j],q=t.elements.arrow,Y=g&&q?M(q):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=X[z],Q=X[F],ne=ve(0,C[j],Y[j]),re=_?C[j]/2-H-ne-K-O.mainAxis:G-ne-K-O.mainAxis,ie=_?-C[j]/2+H+ne+Q+O.mainAxis:U+ne+Q+O.mainAxis,oe=t.elements.arrow&&A(t.elements.arrow),ae=oe?"y"===w?oe.clientTop||0:oe.clientLeft||0:0,se=null!=(N=null==P?void 0:P[w])?N:0,le=V+ie-se,ue=ve(g?f($,V+re-se-ae):$,V,g?h(W,le):W);k[w]=ue,I[w]=ue-V}if(s){var ce,de="x"===w?R:E,pe="x"===w?D:L,he=k[S],fe="y"===S?"height":"width",ge=he+y[de],ye=he-y[pe],be=-1!==[R,E].indexOf(b),xe=null!=(ce=null==P?void 0:P[S])?ce:0,_e=be?ge:he-C[fe]-Z[fe]-xe+O.altAxis,we=be?he+C[fe]+Z[fe]-xe-O.altAxis:ye,Se=g&&be?function(e,t,n){var r=ve(e,t,n);return r>n?n:r}(_e,he,we):ve(g?_e:ge,he,g?we:ye);k[S]=Se,I[S]=Se-he}t.modifiersData[r]=I}},requiresIfExists:["offset"]};var be=function(e,t){return fe("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ge(e,z))};const xe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=J(n.placement),l=te(s),u=[E,L].indexOf(s)>=0?"height":"width";if(o&&a){var c=be(i.padding,n),d=M(o),p="y"===l?R:E,h="y"===l?D:L,f=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],g=a[l]-n.rects.reference[l],m=A(o),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,y=f/2-g/2,b=c[p],x=v-d[u]-c[h],_=v/2-d[u]/2+y,w=ve(b,_,x),S=l;n.modifiersData[r]=((t={})[S]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ce(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _e(e,t,n){return void 0===n&&(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 we(e){return[R,L,D,E].some((function(t){return e[t]>=0}))}var Se=K({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=u(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,Q)})),s&&l.addEventListener("resize",n.update,Q),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Q)})),s&&l.removeEventListener("resize",n.update,Q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ne({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,u={placement:J(t.placement),variation:ee(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ie(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ie(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];d(i)&&x(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(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(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});d(r)&&x(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},oe,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,g=n.allowedAutoPlacements,m=t.options.placement,v=J(m),y=l||(v===m||!f?[se(m)]:function(e){if(J(e)===N)return[];var t=se(e);return[ue(e),t,ue(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(J(n)===N?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?G:l,c=ee(r),d=c?s?H:H.filter((function(e){return ee(e)===c})):z,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,n){return t[n]=me(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[J(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:g}):n)}),[]),x=t.rects.reference,_=t.rects.popper,w=new Map,S=!0,k=b[0],C=0;C=0,P=O?"width":"height",I=me(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),A=O?T?L:E:T?D:R;x[P]>_[P]&&(A=se(A));var F=se(A),j=[];if(o&&j.push(I[Z]<=0),s&&j.push(I[A]<=0,I[F]<=0),j.every((function(e){return e}))){k=M,S=!1;break}w.set(M,j)}if(S)for(var V=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},$=f?3:1;$>0;$--){if("break"===V($))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ye,xe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=me(t,{elementContext:"reference"}),s=me(t,{altBoundary:!0}),l=_e(a,r),u=_e(s,i,o),c=we(l),d=we(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),ke=n(8842),Ce=n(6603),Me=n(7824);function Ze(e){return(0,Me.Z)("MuiPopper",e)}(0,n(2112).Z)("MuiPopper",["root"]);var Te=n(5852),Oe=n(7920),Pe=n(1874);const Ie=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],Ae=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Re(e){return"function"==typeof e?e():e}function De(e){return void 0!==e.nodeType}const Le={},Ee=o.forwardRef((function(e,t){var n;const{anchorEl:l,children:u,component:c,direction:d,disablePortal:p,modifiers:h,open:f,ownerState:g,placement:m,popperOptions:v,popperRef:y,slotProps:b={},slots:x={},TransitionProps:_}=e,w=(0,i.Z)(e,Ie),S=o.useRef(null),k=(0,a.Z)(S,t),C=o.useRef(null),M=(0,a.Z)(C,y),Z=o.useRef(M);(0,s.Z)((()=>{Z.current=M}),[M]),o.useImperativeHandle(y,(()=>C.current),[]);const T=function(e,t){if("ltr"===t)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}}(m,d),[O,P]=o.useState(T),[I,A]=o.useState(Re(l));o.useEffect((()=>{C.current&&C.current.forceUpdate()})),o.useEffect((()=>{l&&A(Re(l))}),[l]),(0,s.Z)((()=>{if(!I||!f)return;let e=[{name:"preventOverflow",options:{altBoundary:p}},{name:"flip",options:{altBoundary:p}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{P(e.placement)}}];null!=h&&(e=e.concat(h)),v&&null!=v.modifiers&&(e=e.concat(v.modifiers));const t=Se(I,S.current,(0,r.Z)({placement:T},v,{modifiers:e}));return Z.current(t),()=>{t.destroy(),Z.current(null)}}),[I,p,h,f,v,T]);const R={placement:O};null!==_&&(R.TransitionProps=_);const D=(0,ke.Z)({root:["root"]},(0,Oe.T)(Ze)),L=null!=(n=null!=c?c:x.root)?n:"div",E=(0,Te.Z)({elementType:L,externalSlotProps:b.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:k},ownerState:(0,r.Z)({},e,g),className:D.root});return(0,Pe.jsx)(L,(0,r.Z)({},E,{children:"function"==typeof u?u(R):u}))})),Ne=o.forwardRef((function(e,t){const{anchorEl:n,children:a,container:s,direction:u="ltr",disablePortal:c=!1,keepMounted:d=!1,modifiers:p,open:h,placement:f="bottom",popperOptions:g=Le,popperRef:m,style:v,transition:y=!1,slotProps:b={},slots:x={}}=e,_=(0,i.Z)(e,Ae),[w,S]=o.useState(!0);if(!d&&!h&&(!y||w))return null;let k;if(s)k=s;else if(n){const e=Re(n);k=e&&De(e)?(0,l.Z)(e).body:(0,l.Z)(null).body}const C=h||!d||y&&!w?void 0:"none",M=y?{in:h,onEnter:()=>{S(!1)},onExited:()=>{S(!0)}}:void 0;return(0,Pe.jsx)(Ce.Z,{disablePortal:c,container:k,children:(0,Pe.jsx)(Ee,(0,r.Z)({anchorEl:n,direction:u,disablePortal:c,modifiers:p,ref:t,open:y?!w:h,placement:f,popperOptions:g,popperRef:m,slotProps:b,slots:x},_,{style:(0,r.Z)({position:"fixed",top:0,left:0,display:C},v),TransitionProps:M,children:a}))})}));var ze=n(9206),Be=n(1628),Fe=n(6820);const je=["components","componentsProps","slots","slotProps"],Ve=(0,Be.ZP)(Ne,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$e=o.forwardRef((function(e,t){var n;const o=(0,ze.Z)(),a=(0,Fe.Z)({props:e,name:"MuiPopper"}),{components:s,componentsProps:l,slots:u,slotProps:c}=a,d=(0,i.Z)(a,je),p=null!=(n=null==u?void 0:u.root)?n:null==s?void 0:s.Root;return(0,Pe.jsx)(Ve,(0,r.Z)({direction:null==o?void 0:o.direction,slots:{root:p},slotProps:null!=c?c:l},d,{ref:t}))}))},3891:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(557),i=n(1551),o=n(9953),a=n(3830),s=n(4717),l=n(7421),u=n(9882),c=n(7183),d=n(1874);const p=["actions","children","defaultValue","name","onChange","value"],h=o.forwardRef((function(e,t){const{actions:n,children:h,defaultValue:f,name:g,onChange:m,value:v}=e,y=(0,i.Z)(e,p),b=o.useRef(null),[x,_]=(0,l.Z)({controlled:v,default:f,name:"RadioGroup"});o.useImperativeHandle(n,(()=>({focus:()=>{let e=b.current.querySelector("input:not(:disabled):checked");e||(e=b.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const w=(0,s.Z)(t,b),S=(0,c.Z)(g),k=o.useMemo((()=>({name:S,onChange(e){_(e.target.value),m&&m(e,e.target.value)},value:x})),[S,m,_,x]);return(0,d.jsx)(u.Z.Provider,{value:k,children:(0,d.jsx)(a.Z,(0,r.Z)({role:"radiogroup",ref:w},y,{children:h}))})}))},9882:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(9953).createContext(void 0)},7163:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1280),u=n(7818),c=n(6820),d=n(1704),p=n(1874);const h=(0,d.Z)((0,p.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),f=(0,d.Z)((0,p.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");var g=n(1628);const m=(0,g.ZP)("span")({position:"relative",display:"flex"}),v=(0,g.ZP)(h)({transform:"scale(1)"}),y=(0,g.ZP)(f)((({theme:e,ownerState:t})=>(0,i.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));const b=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=(0,i.Z)({},e,{checked:t});return(0,p.jsxs)(m,{className:n.root,ownerState:o,children:[(0,p.jsx)(v,{fontSize:r,className:n.background,ownerState:o}),(0,p.jsx)(y,{fontSize:r,className:n.dot,ownerState:o})]})};var x=n(8115),_=n(1626),w=n(9882);var S=n(2112),k=n(7824);function C(e){return(0,k.Z)("MuiRadio",e)}const M=(0,S.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),Z=["checked","checkedIcon","color","icon","name","onChange","size","className"],T=(0,g.ZP)(u.Z,{shouldForwardProp:e=>(0,g.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,x.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${M.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${M.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const O=(0,p.jsx)(b,{checked:!0}),P=(0,p.jsx)(b,{}),I=o.forwardRef((function(e,t){var n,l;const u=(0,c.Z)({props:e,name:"MuiRadio"}),{checked:d,checkedIcon:h=O,color:f="primary",icon:g=P,name:m,onChange:v,size:y="medium",className:b}=u,S=(0,r.Z)(u,Z),k=(0,i.Z)({},u,{color:f,size:y}),M=(e=>{const{classes:t,color:n}=e,r={root:["root",`color${(0,x.Z)(n)}`]};return(0,i.Z)({},t,(0,s.Z)(r,C,t))})(k),I=o.useContext(w.Z);let A=d;const R=(0,_.Z)(v,I&&I.onChange);let D=m;var L,E;return I&&(void 0===A&&(L=I.value,A="object"==typeof(E=u.value)&&null!==E?L===E:String(L)===String(E)),void 0===D&&(D=I.name)),(0,p.jsx)(T,(0,i.Z)({type:"radio",icon:o.cloneElement(g,{fontSize:null!=(n=P.props.fontSize)?n:y}),checkedIcon:o.cloneElement(h,{fontSize:null!=(l=O.props.fontSize)?l:y}),ownerState:k,classes:M,name:D,checked:A,onChange:R,ref:t,className:(0,a.Z)(M.root,b)},S))}))},8418:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Ae});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(2131),l=n(4968),u=(n(5344),n(8842)),c=n(2198),d=n(8115),p=n(3029);const h=n(602).Z;var f=n(4717),g=n(5973),m=n(1874);const v=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function y(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function b(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function x(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function _(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&x(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const w=o.forwardRef((function(e,t){const{actions:n,autoFocus:a=!1,autoFocusItem:s=!1,children:l,className:u,disabledItemsFocusable:d=!1,disableListWrap:w=!1,onKeyDown:S,variant:k="selectedMenu"}=e,C=(0,i.Z)(e,v),M=o.useRef(null),Z=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,g.Z)((()=>{a&&M.current.focus()}),[a]),o.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!M.current.style.width;if(e.clientHeight{o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===k&&e.props.selected||-1===O)&&(O=t),O===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(O+=1,O>=l.length&&(O=-1)))}));const P=o.Children.map(l,((e,t)=>{if(t===O){const t={};return s&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===k&&(t.tabIndex=0),o.cloneElement(e,t)}return e}));return(0,m.jsx)(p.Z,(0,r.Z)({role:"menu",ref:T,className:u,onKeyDown:e=>{const t=M.current,n=e.key,r=(0,c.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),_(t,r,w,d,y);else if("ArrowUp"===n)e.preventDefault(),_(t,r,w,d,b);else if("Home"===n)e.preventDefault(),_(t,null,w,d,y);else if("End"===n)e.preventDefault(),_(t,null,w,d,b);else if(1===n.length){const i=Z.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&x(r,i);i.previousKeyMatched&&(s||_(t,r,!1,d,y,i))?e.preventDefault():i.previousKeyMatched=!1}S&&S(e)},tabIndex:a?0:-1},C,{children:P}))}));var S=n(5890),k=n(1628),C=n(6820),M=n(4897),Z=n(8404),T=n(2464),O=n(7095),P=n(2112),I=n(7824);function A(e){return(0,I.Z)("MuiPopover",e)}(0,P.Z)("MuiPopover",["root","paper"]);const R=["onEntering"],D=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function L(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function E(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function N(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function z(e){return"function"==typeof e?e():e}const B=(0,k.ZP)(O.Z,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),F=(0,k.ZP)(S.Z,{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}),j=o.forwardRef((function(e,t){const n=(0,C.Z)({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:h="anchorEl",children:g,className:v,container:y,elevation:b=8,marginThreshold:x=16,open:_,PaperProps:w={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:k=T.Z,transitionDuration:O="auto",TransitionProps:{onEntering:P}={}}=n,I=(0,i.Z)(n.TransitionProps,R),j=(0,i.Z)(n,D),V=o.useRef(),$=(0,f.Z)(V,w.ref),W=(0,r.Z)({},n,{anchorOrigin:d,anchorReference:h,elevation:b,marginThreshold:x,PaperProps:w,transformOrigin:S,TransitionComponent:k,transitionDuration:O,TransitionProps:I}),H=(e=>{const{classes:t}=e;return(0,u.Z)({root:["root"],paper:["paper"]},A,t)})(W),G=o.useCallback((()=>{if("anchorPosition"===h)return p;const e=z(l),t=(e&&1===e.nodeType?e:(0,c.Z)(V.current).body).getBoundingClientRect();return{top:t.top+L(t,d.vertical),left:t.left+E(t,d.horizontal)}}),[l,d.horizontal,d.vertical,p,h]),U=o.useCallback((e=>({vertical:L(e,S.vertical),horizontal:E(e,S.horizontal)})),[S.horizontal,S.vertical]),q=o.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=U(t);if("none"===h)return{top:null,left:null,transformOrigin:N(n)};const r=G();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,s=o+t.width,u=(0,Z.Z)(z(l)),c=u.innerHeight-x,d=u.innerWidth-x;if(ic){const e=a-c;i-=e,n.vertical+=e}if(od){const e=s-d;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:N(n)}}),[l,h,G,U,x]),[Y,X]=o.useState(_),K=o.useCallback((()=>{const e=V.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,X(!0)}),[q]);o.useEffect((()=>{_&&K()})),o.useImperativeHandle(s,(()=>_?{updatePosition:()=>{K()}}:null),[_,K]),o.useEffect((()=>{if(!_)return;const e=(0,M.Z)((()=>{K()})),t=(0,Z.Z)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,_,K]);let Q=O;"auto"!==O||k.muiSupportAuto||(Q=void 0);const J=y||(l?(0,c.Z)(z(l)).body:void 0);return(0,m.jsx)(B,(0,r.Z)({BackdropProps:{invisible:!0},className:(0,a.Z)(H.root,v),container:J,open:_,ref:t,ownerState:W},j,{children:(0,m.jsx)(k,(0,r.Z)({appear:!0,in:_,onEntering:(e,t)=>{P&&P(e,t),K()},onExited:()=>{X(!1)},timeout:Q},I,{children:(0,m.jsx)(F,(0,r.Z)({elevation:b},w,{ref:$,className:(0,a.Z)(H.paper,w.className)},Y?void 0:{style:(0,r.Z)({},w.style,{opacity:0})},{ownerState:W,children:g}))}))}))}));var V=n(5401);function $(e){return(0,I.Z)("MuiMenu",e)}(0,P.Z)("MuiMenu",["root","paper","list"]);const W=["onEntering"],H=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],G={vertical:"top",horizontal:"right"},U={vertical:"top",horizontal:"left"},q=(0,k.ZP)(j,{shouldForwardProp:e=>(0,k.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Y=(0,k.ZP)(S.Z,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),X=(0,k.ZP)(w,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),K=o.forwardRef((function(e,t){const n=(0,C.Z)({props:e,name:"MuiMenu"}),{autoFocus:s=!0,children:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:p,open:h,PaperProps:f={},PopoverClasses:g,transitionDuration:v="auto",TransitionProps:{onEntering:y}={},variant:b="selectedMenu"}=n,x=(0,i.Z)(n.TransitionProps,W),_=(0,i.Z)(n,H),w=(0,V.Z)(),S="rtl"===w.direction,k=(0,r.Z)({},n,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:d,onEntering:y,PaperProps:f,transitionDuration:v,TransitionProps:x,variant:b}),M=(e=>{const{classes:t}=e;return(0,u.Z)({root:["root"],paper:["paper"],list:["list"]},$,t)})(k),Z=s&&!c&&h,T=o.useRef(null);let O=-1;return o.Children.map(l,((e,t)=>{o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===O)&&(O=t))})),(0,m.jsx)(q,(0,r.Z)({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?G:U,PaperProps:(0,r.Z)({as:Y},f,{classes:(0,r.Z)({},f.classes,{root:M.paper})}),className:M.root,open:h,ref:t,transitionDuration:v,TransitionProps:(0,r.Z)({onEntering:(e,t)=>{T.current&&T.current.adjustStyleForScrollbar(e,w),y&&y(e,t)}},x),ownerState:k},_,{classes:g,children:(0,m.jsx)(X,(0,r.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:T,autoFocus:s&&(-1===O||c),autoFocusItem:Z,variant:b},d,{className:(0,a.Z)(M.list,d.className),children:l}))}))}));function Q(e){return(0,I.Z)("MuiNativeSelect",e)}const J=(0,P.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),ee=["className","disabled","IconComponent","inputRef","variant"],te=({ownerState:e,theme:t})=>(0,r.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,r.Z)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${J.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ne=(0,k.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:k.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${J.multiple}`]:t.multiple}]}})(te),re=({ownerState:e,theme:t})=>(0,r.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${J.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ie=(0,k.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,d.Z)(n.variant)}`],n.open&&t.iconOpen]}})(re),oe=o.forwardRef((function(e,t){const{className:n,disabled:s,IconComponent:l,inputRef:c,variant:p="standard"}=e,h=(0,i.Z)(e,ee),f=(0,r.Z)({},e,{disabled:s,variant:p}),g=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o}=e,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon",`icon${(0,d.Z)(n)}`,o&&"iconOpen",r&&"disabled"]};return(0,u.Z)(a,Q,t)})(f);return(0,m.jsxs)(o.Fragment,{children:[(0,m.jsx)(ne,(0,r.Z)({ownerState:f,className:(0,a.Z)(g.select,n),disabled:s,ref:c||t},h)),e.multiple?null:(0,m.jsx)(ie,{as:l,ownerState:f,className:g.icon})]})}));var ae=n(2139),se=n(7421);function le(e){return(0,I.Z)("MuiSelect",e)}const ue=(0,P.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var ce;const de=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],pe=(0,k.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ue.select}`]:t.select},{[`&.${ue.select}`]:t[n.variant]},{[`&.${ue.multiple}`]:t.multiple}]}})(te,{[`&.${ue.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),he=(0,k.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,d.Z)(n.variant)}`],n.open&&t.iconOpen]}})(re),fe=(0,k.ZP)("input",{shouldForwardProp:e=>(0,k.Dz)(e)&&"classes"!==e,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 ge(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function me(e){return null==e||"string"==typeof e&&!e.trim()}const ve=o.forwardRef((function(e,t){const{"aria-describedby":n,"aria-label":s,autoFocus:p,autoWidth:h,children:g,className:v,defaultOpen:y,defaultValue:b,disabled:x,displayEmpty:_,IconComponent:w,inputRef:S,labelId:k,MenuProps:C={},multiple:M,name:Z,onBlur:T,onChange:O,onClose:P,onFocus:I,onOpen:A,open:R,readOnly:D,renderValue:L,SelectDisplayProps:E={},tabIndex:N,value:z,variant:B="standard"}=e,F=(0,i.Z)(e,de),[j,V]=(0,se.Z)({controlled:z,default:b,name:"Select"}),[$,W]=(0,se.Z)({controlled:R,default:y,name:"Select"}),H=o.useRef(null),G=o.useRef(null),[U,q]=o.useState(null),{current:Y}=o.useRef(null!=R),[X,Q]=o.useState(),J=(0,f.Z)(t,S),ee=o.useCallback((e=>{G.current=e,e&&q(e)}),[]),te=null==U?void 0:U.parentNode;o.useImperativeHandle(J,(()=>({focus:()=>{G.current.focus()},node:H.current,value:j})),[j]),o.useEffect((()=>{y&&$&&U&&!Y&&(Q(h?null:te.clientWidth),G.current.focus())}),[U,h]),o.useEffect((()=>{p&&G.current.focus()}),[p]),o.useEffect((()=>{if(!k)return;const e=(0,c.Z)(G.current).getElementById(k);if(e){const t=()=>{getSelection().isCollapsed&&G.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[k]);const ne=(e,t)=>{e?A&&A(t):P&&P(t),Y||(Q(h?null:te.clientWidth),W(e))},re=o.Children.toArray(g),ie=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(M){n=Array.isArray(j)?j.slice():[];const t=j.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),j!==n&&(V(n),O)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:Z}}),O(i,e)}M||ne(!1,t)}},oe=null!==U&&$;let ue,ve;delete F["aria-invalid"];const ye=[];let be=!1,xe=!1;((0,ae.vd)({value:j})||_)&&(L?ue=L(j):be=!0);const _e=re.map((e=>{if(!o.isValidElement(e))return null;let t;if(M){if(!Array.isArray(j))throw new Error((0,l.Z)(2));t=j.some((t=>ge(t,e.props.value))),t&&be&&ye.push(e.props.children)}else t=ge(j,e.props.value),t&&be&&(ve=e.props.children);return t&&(xe=!0),o.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ie(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));be&&(ue=M?0===ye.length?null:ye.reduce(((e,t,n)=>(e.push(t),n{const{classes:t,variant:n,disabled:r,multiple:i,open:o}=e,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon",`icon${(0,d.Z)(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,u.Z)(a,le,t)})(Ce);return(0,m.jsxs)(o.Fragment,{children:[(0,m.jsx)(pe,(0,r.Z)({ref:ee,tabIndex:we,role:"button","aria-disabled":x?"true":void 0,"aria-expanded":oe?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[k,ke].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!D){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ne(!0,e))}},onMouseDown:x||D?null:e=>{0===e.button&&(e.preventDefault(),G.current.focus(),ne(!0,e))},onBlur:e=>{!oe&&T&&(Object.defineProperty(e,"target",{writable:!0,value:{value:j,name:Z}}),T(e))},onFocus:I},E,{ownerState:Ce,className:(0,a.Z)(E.className,Me.select,v),id:ke,children:me(ue)?ce||(ce=(0,m.jsx)("span",{className:"notranslate",children:"​"})):ue})),(0,m.jsx)(fe,(0,r.Z)({value:Array.isArray(j)?j.join(","):j,name:Z,ref:H,"aria-hidden":!0,onChange:e=>{const t=re.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=re[t];V(n.props.value),O&&O(e,n)},tabIndex:-1,disabled:x,className:Me.nativeInput,autoFocus:p,ownerState:Ce},F)),(0,m.jsx)(he,{as:w,className:Me.icon,ownerState:Ce}),(0,m.jsx)(K,(0,r.Z)({id:`menu-${Z||""}`,anchorEl:te,open:oe,onClose:e=>{ne(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},C,{MenuListProps:(0,r.Z)({"aria-labelledby":k,role:"listbox",disableListWrap:!0},C.MenuListProps),PaperProps:(0,r.Z)({},C.PaperProps,{style:(0,r.Z)({minWidth:Se},null!=C.PaperProps?C.PaperProps.style:null)}),children:_e}))]})}));var ye,be,xe=n(5823),_e=n(7139),we=n(7799),Se=n(1574),ke=n(2389),Ce=n(4890);const Me=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ze={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,k.FO)(e)&&"variant"!==e,slot:"Root"},Te=(0,k.ZP)(Se.Z,Ze)(""),Oe=(0,k.ZP)(Ce.Z,Ze)(""),Pe=(0,k.ZP)(ke.Z,Ze)(""),Ie=o.forwardRef((function(e,t){const n=(0,C.Z)({name:"MuiSelect",props:e}),{autoWidth:l=!1,children:u,classes:c={},className:d,defaultOpen:p=!1,displayEmpty:h=!1,IconComponent:g=we.Z,id:v,input:y,inputProps:b,label:x,labelId:_,MenuProps:w,multiple:S=!1,native:k=!1,onClose:M,onOpen:Z,open:T,renderValue:O,SelectDisplayProps:P,variant:I="outlined"}=n,A=(0,i.Z)(n,Me),R=k?oe:ve,D=(0,_e.Z)(),L=(0,xe.Z)({props:n,muiFormControl:D,states:["variant"]}).variant||I,E=y||{standard:ye||(ye=(0,m.jsx)(Te,{})),outlined:(0,m.jsx)(Oe,{label:x}),filled:be||(be=(0,m.jsx)(Pe,{}))}[L],N=(e=>{const{classes:t}=e;return t})((0,r.Z)({},n,{variant:L,classes:c})),z=(0,f.Z)(t,E.ref);return(0,m.jsx)(o.Fragment,{children:o.cloneElement(E,(0,r.Z)({inputComponent:R,inputProps:(0,r.Z)({children:u,IconComponent:g,variant:L,type:void 0,multiple:S},k?{id:v}:{autoWidth:l,defaultOpen:p,displayEmpty:h,labelId:_,MenuProps:w,onClose:M,onOpen:Z,open:T,renderValue:O,SelectDisplayProps:(0,r.Z)({id:v},P)},b,{classes:b?(0,s.Z)(N,b.classes):N},y?y.props.inputProps:{})},S&&k&&"outlined"===L?{notched:!0}:{},{ref:z,className:(0,a.Z)(E.props.className,d)},!y&&{variant:L},A))})}));Ie.muiName="Select";const Ae=Ie},9571:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>ee});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(5852),u=n(2083),c=n(6128),d=n(1584),p=n(981),h=n(1888),f=n(904),g=n(731);const m={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},v=2;function y(e,t){return e-t}function b(e,t,n){return null==e?t:Math.min(Math.max(t,e),n)}function x(e,t){var n;const{index:r}=null!=(n=e.reduce(((e,n,r)=>{const i=Math.abs(t-n);return null===e||i({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Z=e=>e;let T;function O(){return void 0===T&&(T="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),T}function P(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:s=!1,marks:l=!1,max:u=100,min:T=0,name:P,onChange:I,onChangeCommitted:A,orientation:R="horizontal",ref:D,scale:L=Z,step:E=1,tabIndex:N,value:z}=e,B=o.useRef(),[F,j]=o.useState(-1),[V,$]=o.useState(-1),[W,H]=o.useState(!1),G=o.useRef(0),[U,q]=(0,d.Z)({controlled:z,default:null!=n?n:T,name:"Slider"}),Y=I&&((e,t,n)=>{const r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:t,name:P}}),I(i,t,n)}),X=Array.isArray(U);let K=X?U.slice().sort(y):[U];K=K.map((e=>b(e,T,u)));const Q=!0===l&&null!==E?[...Array(Math.floor((u-T)/E)+1)].map(((e,t)=>({value:T+E*t}))):l||[],J=Q.map((e=>e.value)),{isFocusVisibleRef:ee,onBlur:te,onFocus:ne,ref:re}=(0,p.Z)(),[ie,oe]=o.useState(-1),ae=o.useRef(),se=(0,h.Z)(re,ae),le=(0,h.Z)(D,se),ue=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));ne(t),!0===ee.current&&oe(r),$(r),null==e||null==(n=e.onFocus)||n.call(e,t)},ce=e=>t=>{var n;te(t),!1===ee.current&&oe(-1),$(-1),null==e||null==(n=e.onBlur)||n.call(e,t)};(0,f.Z)((()=>{var e;r&&ae.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[r]),r&&-1!==F&&j(-1),r&&-1!==ie&&oe(-1);const de=e=>t=>{var n;null==(n=e.onChange)||n.call(e,t);const r=Number(t.currentTarget.getAttribute("data-index")),i=K[r],o=J.indexOf(i);let s=t.target.valueAsNumber;if(Q&&null==E&&(s=s{const{current:n}=ae,{width:r,height:i,bottom:o,left:s}=n.getBoundingClientRect();let l,c;if(l=0===he.indexOf("vertical")?(o-e.y)/i:(e.x-s)/r,-1!==he.indexOf("-reverse")&&(l=1-l),c=function(e,t,n){return(n-t)*e+t}(l,T,u),E)c=S(c,E,T);else{const e=x(J,c);c=J[e]}c=b(c,T,u);let d=0;if(X){d=t?pe.current:x(K,c),a&&(c=b(c,K[d-1]||-1/0,K[d+1]||1/0));const e=c;c=k({values:K,newValue:c,index:d}),a&&t||(d=c.indexOf(e),pe.current=d)}return{newValue:c,activeIndex:d}},ge=(0,g.Z)((e=>{const t=_(e,B);if(!t)return;if(G.current+=1,"mousemove"===e.type&&0===e.buttons)return void me(e);const{newValue:n,activeIndex:r}=fe({finger:t,move:!0});C({sliderRef:ae,activeIndex:r,setActive:j}),q(n),!W&&G.current>v&&H(!0),Y&&n!==U&&Y(e,n,r)})),me=(0,g.Z)((e=>{const t=_(e,B);if(H(!1),!t)return;const{newValue:n}=fe({finger:t,move:!0});j(-1),"touchend"===e.type&&$(-1),A&&A(e,n),B.current=void 0,ye()})),ve=(0,g.Z)((e=>{if(r)return;O()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(B.current=t.identifier);const n=_(e,B);if(!1!==n){const{newValue:t,activeIndex:r}=fe({finger:n});C({sliderRef:ae,activeIndex:r,setActive:j}),q(t),Y&&Y(e,t,r)}G.current=0;const i=(0,c.Z)(ae.current);i.addEventListener("touchmove",ge),i.addEventListener("touchend",me)})),ye=o.useCallback((()=>{const e=(0,c.Z)(ae.current);e.removeEventListener("mousemove",ge),e.removeEventListener("mouseup",me),e.removeEventListener("touchmove",ge),e.removeEventListener("touchend",me)}),[me,ge]);o.useEffect((()=>{const{current:e}=ae;return e.addEventListener("touchstart",ve,{passive:O()}),()=>{e.removeEventListener("touchstart",ve,{passive:O()}),ye()}}),[ye,ve]),o.useEffect((()=>{r&&ye()}),[r,ye]);const be=e=>t=>{var n;if(null==(n=e.onMouseDown)||n.call(e,t),r)return;if(t.defaultPrevented)return;if(0!==t.button)return;t.preventDefault();const i=_(t,B);if(!1!==i){const{newValue:e,activeIndex:n}=fe({finger:i});C({sliderRef:ae,activeIndex:n,setActive:j}),q(e),Y&&Y(t,e,n)}G.current=0;const o=(0,c.Z)(ae.current);o.addEventListener("mousemove",ge),o.addEventListener("mouseup",me)},xe=w(X?K[0]:T,T,u),_e=w(K[K.length-1],T,u)-xe,we=e=>t=>{var n;null==(n=e.onMouseOver)||n.call(e,t);const r=Number(t.currentTarget.getAttribute("data-index"));$(r)},Se=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),$(-1)};return{active:F,axis:he,axisProps:M,dragging:W,focusedThumbIndex:ie,getHiddenInputProps:(n={})=>{var o;const a={onChange:de(n||{}),onFocus:ue(n||{}),onBlur:ce(n||{})},l=(0,i.Z)({},n,a);return(0,i.Z)({tabIndex:N,"aria-labelledby":t,"aria-orientation":R,"aria-valuemax":L(u),"aria-valuemin":L(T),name:P,type:"range",min:e.min,max:e.max,step:null!=(o=e.step)?o:void 0,disabled:r},l,{style:(0,i.Z)({},m,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{const t={onMouseDown:be(e||{})},n=(0,i.Z)({},e,t);return(0,i.Z)({ref:le},n)},getThumbProps:(e={})=>{const t={onMouseOver:we(e||{}),onMouseLeave:Se(e||{})};return(0,i.Z)({},e,t)},marks:Q,open:V,range:X,trackLeap:_e,trackOffset:xe,values:K}}var I=n(1280),A=n(6820),R=n(1628),D=n(5401);const L=e=>!e||!(0,u.Z)(e);var E=n(8115),N=n(2112),z=n(7824);function B(e){return(0,z.Z)("MuiSlider",e)}const F=(0,N.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var j=n(1874);const V=e=>{const{open:t}=e;return{offset:(0,a.Z)(t&&F.valueLabelOpen),circle:F.valueLabelCircle,label:F.valueLabelLabel}};const $=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function W(e){return e}const H=(0,R.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,E.Z)(n.color)}`],"medium"!==n.size&&t[`size${(0,E.Z)(n.size)}`],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((({theme:e,ownerState:t})=>(0,i.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&(0,i.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===t.size&&{height:2},t.marked&&{marginBottom:20}),"vertical"===t.orientation&&(0,i.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===t.size&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${F.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${F.dragging}`]:{[`& .${F.thumb}, & .${F.track}`]:{transition:"none"}}}))),G=(0,R.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((({ownerState:e})=>(0,i.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===e.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1}))),U=(0,R.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?(0,I.$n)(e.palette[t.color].main,.62):(0,I._j)(e.palette[t.color].main,.5);return(0,i.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{border:"none"},"horizontal"===t.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===t.track&&{display:"none"},"inverted"===t.track&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})})),q=(0,R.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${(0,E.Z)(n.color)}`],"medium"!==n.size&&t[`thumbSize${(0,E.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,i.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{width:12,height:12},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":(0,i.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"small"===t.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${F.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:(0,I.Fq)(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${F.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:(0,I.Fq)(e.palette[t.color].main,.16)}`},[`&.${F.disabled}`]:{"&:hover":{boxShadow:"none"}}}))),Y=(0,R.ZP)((function(e){const{children:t,className:n,value:r}=e,i=V(e);return t?o.cloneElement(t,{className:(0,a.Z)(t.props.className)},(0,j.jsxs)(o.Fragment,{children:[t.props.children,(0,j.jsx)("span",{className:(0,a.Z)(i.offset,n),"aria-hidden":!0,children:(0,j.jsx)("span",{className:i.circle,children:(0,j.jsx)("span",{className:i.label,children:r})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e,ownerState:t})=>(0,i.Z)({[`&.${F.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===t.orientation&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===t.orientation&&{right:"30px",top:"24px",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",right:"-20%",top:"25%"}},"small"===t.size&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}))),X=(0,R.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,R.Dz)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})((({theme:e,ownerState:t,markActive:n})=>(0,i.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}))),K=(0,R.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,R.Dz)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e,ownerState:t,markLabelActive:n})=>(0,i.Z)({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===t.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary}))),Q=({children:e})=>e,J=o.forwardRef((function(e,t){var n,c,d,p,h,f,g,m,v,y,b,x,_,S,k,C,M,Z,T,O,I,R,N,z;const F=(0,A.Z)({props:e,name:"MuiSlider"}),V="rtl"===(0,D.Z)().direction,{"aria-label":J,"aria-valuetext":ee,"aria-labelledby":te,component:ne="span",components:re={},componentsProps:ie={},color:oe="primary",classes:ae,className:se,disableSwap:le=!1,disabled:ue=!1,getAriaLabel:ce,getAriaValueText:de,marks:pe=!1,max:he=100,min:fe=0,orientation:ge="horizontal",size:me="medium",step:ve=1,scale:ye=W,slotProps:be,slots:xe,track:_e="normal",valueLabelDisplay:we="off",valueLabelFormat:Se=W}=F,ke=(0,r.Z)(F,$),Ce=(0,i.Z)({},F,{isRtl:V,max:he,min:fe,classes:ae,disabled:ue,disableSwap:le,orientation:ge,marks:pe,color:oe,size:me,step:ve,scale:ye,track:_e,valueLabelDisplay:we,valueLabelFormat:Se}),{axisProps:Me,getRootProps:Ze,getHiddenInputProps:Te,getThumbProps:Oe,open:Pe,active:Ie,axis:Ae,focusedThumbIndex:Re,range:De,dragging:Le,marks:Ee,values:Ne,trackOffset:ze,trackLeap:Be}=P((0,i.Z)({},Ce,{ref:t}));Ce.marked=Ee.length>0&&Ee.some((e=>e.label)),Ce.dragging=Le,Ce.focusedThumbIndex=Re;const Fe=(e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:l,size:u}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===i&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse",l&&`color${(0,E.Z)(l)}`,u&&`size${(0,E.Z)(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${(0,E.Z)(u)}`,l&&`thumbColor${(0,E.Z)(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,s.Z)(c,B,a)})(Ce),je=null!=(n=null!=(c=null==xe?void 0:xe.root)?c:re.Root)?n:H,Ve=null!=(d=null!=(p=null==xe?void 0:xe.rail)?p:re.Rail)?d:G,$e=null!=(h=null!=(f=null==xe?void 0:xe.track)?f:re.Track)?h:U,We=null!=(g=null!=(m=null==xe?void 0:xe.thumb)?m:re.Thumb)?g:q,He=null!=(v=null!=(y=null==xe?void 0:xe.valueLabel)?y:re.ValueLabel)?v:Y,Ge=null!=(b=null!=(x=null==xe?void 0:xe.mark)?x:re.Mark)?b:X,Ue=null!=(_=null!=(S=null==xe?void 0:xe.markLabel)?S:re.MarkLabel)?_:K,qe=null!=(k=null!=(C=null==xe?void 0:xe.input)?C:re.Input)?k:"input",Ye=null!=(M=null==be?void 0:be.root)?M:ie.root,Xe=null!=(Z=null==be?void 0:be.rail)?Z:ie.rail,Ke=null!=(T=null==be?void 0:be.track)?T:ie.track,Qe=null!=(O=null==be?void 0:be.thumb)?O:ie.thumb,Je=null!=(I=null==be?void 0:be.valueLabel)?I:ie.valueLabel,et=null!=(R=null==be?void 0:be.mark)?R:ie.mark,tt=null!=(N=null==be?void 0:be.markLabel)?N:ie.markLabel,nt=null!=(z=null==be?void 0:be.input)?z:ie.input,rt=(0,l.Z)({elementType:je,getSlotProps:Ze,externalSlotProps:Ye,externalForwardedProps:ke,additionalProps:(0,i.Z)({},L(je)&&{as:ne}),ownerState:(0,i.Z)({},Ce,null==Ye?void 0:Ye.ownerState),className:[Fe.root,se]}),it=(0,l.Z)({elementType:Ve,externalSlotProps:Xe,ownerState:Ce,className:Fe.rail}),ot=(0,l.Z)({elementType:$e,externalSlotProps:Ke,additionalProps:{style:(0,i.Z)({},Me[Ae].offset(ze),Me[Ae].leap(Be))},ownerState:(0,i.Z)({},Ce,null==Ke?void 0:Ke.ownerState),className:Fe.track}),at=(0,l.Z)({elementType:We,getSlotProps:Oe,externalSlotProps:Qe,ownerState:(0,i.Z)({},Ce,null==Qe?void 0:Qe.ownerState),className:Fe.thumb}),st=(0,l.Z)({elementType:He,externalSlotProps:Je,ownerState:(0,i.Z)({},Ce,null==Je?void 0:Je.ownerState),className:Fe.valueLabel}),lt=(0,l.Z)({elementType:Ge,externalSlotProps:et,ownerState:Ce,className:Fe.mark}),ut=(0,l.Z)({elementType:Ue,externalSlotProps:tt,ownerState:Ce,className:Fe.markLabel}),ct=(0,l.Z)({elementType:qe,getSlotProps:Te,externalSlotProps:nt,ownerState:Ce});return(0,j.jsxs)(je,(0,i.Z)({},rt,{children:[(0,j.jsx)(Ve,(0,i.Z)({},it)),(0,j.jsx)($e,(0,i.Z)({},ot)),Ee.filter((e=>e.value>=fe&&e.value<=he)).map(((e,t)=>{const n=w(e.value,fe,he),r=Me[Ae].offset(n);let s;return s=!1===_e?-1!==Ne.indexOf(e.value):"normal"===_e&&(De?e.value>=Ne[0]&&e.value<=Ne[Ne.length-1]:e.value<=Ne[0])||"inverted"===_e&&(De?e.value<=Ne[0]||e.value>=Ne[Ne.length-1]:e.value>=Ne[0]),(0,j.jsxs)(o.Fragment,{children:[(0,j.jsx)(Ge,(0,i.Z)({"data-index":t},lt,!(0,u.Z)(Ge)&&{markActive:s},{style:(0,i.Z)({},r,lt.style),className:(0,a.Z)(lt.className,s&&Fe.markActive)})),null!=e.label?(0,j.jsx)(Ue,(0,i.Z)({"aria-hidden":!0,"data-index":t},ut,!(0,u.Z)(Ue)&&{markLabelActive:s},{style:(0,i.Z)({},r,ut.style),className:(0,a.Z)(Fe.markLabel,ut.className,s&&Fe.markLabelActive),children:e.label})):null]},t)})),Ne.map(((e,t)=>{const n=w(e,fe,he),r=Me[Ae].offset(n),o="off"===we?Q:He;return(0,j.jsx)(o,(0,i.Z)({},!(0,u.Z)(o)&&{valueLabelFormat:Se,valueLabelDisplay:we,value:"function"==typeof Se?Se(ye(e),t):Se,index:t,open:Pe===t||Ie===t||"on"===we,disabled:ue},st,{children:(0,j.jsx)(We,(0,i.Z)({"data-index":t},at,{className:(0,a.Z)(Fe.thumb,at.className,Ie===t&&Fe.active,Re===t&&Fe.focusVisible),style:(0,i.Z)({},r,{pointerEvents:le&&Ie!==t?"none":void 0},at.style),children:(0,j.jsx)(qe,(0,i.Z)({"data-index":t,"aria-label":ce?ce(t):J,"aria-valuenow":ye(e),"aria-labelledby":te,"aria-valuetext":de?de(ye(e),t):ee,value:Ne[t]},ct))}))}),t)}))]}))})),ee=J},7467:(e,t,n)=>{"use strict";n.d(t,{Z:()=>L});var r=n(1551),i=n(557),o=n(9953),a=n(8842),s=n(5852),l=n(1888),u=n(731),c=n(6128),d=n(1874);function p(e){return e.substring(2).toLowerCase()}const h=function(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=e,s=o.useRef(!1),h=o.useRef(null),f=o.useRef(!1),g=o.useRef(!1);o.useEffect((()=>(setTimeout((()=>{f.current=!0}),0),()=>{f.current=!1})),[]);const m=(0,l.Z)(t.ref,h),v=(0,u.Z)((e=>{const t=g.current;g.current=!1;const r=(0,c.Z)(h.current);if(!f.current||!h.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!r.documentElement.contains(e.target)||h.current.contains(e.target),o||!n&&t||i(e)})),y=e=>n=>{g.current=!0;const r=t.props[e];r&&r(n)},b={ref:m};return!1!==a&&(b[a]=y(a)),o.useEffect((()=>{if(!1!==a){const e=p(a),t=(0,c.Z)(h.current),n=()=>{s.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,v),t.removeEventListener("touchmove",n)}}}),[v,a]),!1!==r&&(b[r]=y(r)),o.useEffect((()=>{if(!1!==r){const e=p(r),t=(0,c.Z)(h.current);return t.addEventListener(e,v),()=>{t.removeEventListener(e,v)}}}),[v,r]),(0,d.jsx)(o.Fragment,{children:o.cloneElement(t,b)})};var f=n(2);var g=n(1628),m=n(5401),v=n(6820),y=n(8115),b=n(2464),x=n(4923),_=n(1280),w=n(5890),S=n(2112),k=n(7824);function C(e){return(0,k.Z)("MuiSnackbarContent",e)}(0,S.Z)("MuiSnackbarContent",["root","message","action"]);const M=["action","className","message","role"],Z=(0,g.ZP)(w.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>{const t="light"===e.palette.mode?.8:.98,n=(0,_._4)(e.palette.background.default,t);return(0,i.Z)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),T=(0,g.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),O=(0,g.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),P=o.forwardRef((function(e,t){const n=(0,v.Z)({props:e,name:"MuiSnackbarContent"}),{action:o,className:s,message:l,role:u="alert"}=n,c=(0,r.Z)(n,M),p=n,h=(e=>{const{classes:t}=e;return(0,a.Z)({root:["root"],action:["action"],message:["message"]},C,t)})(p);return(0,d.jsxs)(Z,(0,i.Z)({role:u,square:!0,elevation:6,className:(0,x.Z)(h.root,s),ownerState:p,ref:t},c,{children:[(0,d.jsx)(T,{className:h.message,ownerState:p,children:l}),o?(0,d.jsx)(O,{className:h.action,ownerState:p,children:o}):null]}))}));function I(e){return(0,k.Z)("MuiSnackbar",e)}(0,S.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const A=["onEnter","onExited"],R=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],D=(0,g.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${(0,y.Z)(n.anchorOrigin.vertical)}${(0,y.Z)(n.anchorOrigin.horizontal)}`]]}})((({theme:e,ownerState:t})=>(0,i.Z)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,i.Z)({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===t.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===t.anchorOrigin.horizontal&&{right:24,left:"auto"})}))),L=o.forwardRef((function(e,t){const n=(0,v.Z)({props:e,name:"MuiSnackbar"}),l=(0,m.Z)(),c={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{action:p,anchorOrigin:{vertical:g,horizontal:x}={vertical:"bottom",horizontal:"left"},autoHideDuration:_=null,children:w,className:S,ClickAwayListenerProps:k,ContentProps:C,disableWindowBlurListener:M=!1,message:Z,open:T,TransitionComponent:O=b.Z,transitionDuration:L=c,TransitionProps:{onEnter:E,onExited:N}={}}=n,z=(0,r.Z)(n.TransitionProps,A),B=(0,r.Z)(n,R),F=(0,i.Z)({},n,{anchorOrigin:{vertical:g,horizontal:x},autoHideDuration:_,disableWindowBlurListener:M,TransitionComponent:O,transitionDuration:L}),j=(e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${(0,y.Z)(n.vertical)}${(0,y.Z)(n.horizontal)}`]};return(0,a.Z)(r,I,t)})(F),{getRootProps:V,onClickAway:$}=function(e){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:a,ref:s,resumeHideDuration:l}=e,c=o.useRef();o.useEffect((()=>{if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}}),[a,r]);const d=(0,u.Z)(((e,t)=>{null==r||r(e,t)})),p=(0,u.Z)((e=>{r&&null!=e&&(clearTimeout(c.current),c.current=setTimeout((()=>{d(null,"timeout")}),e))}));o.useEffect((()=>(a&&p(t),()=>{clearTimeout(c.current)})),[a,t,p]);const h=()=>{clearTimeout(c.current)},g=o.useCallback((()=>{null!=t&&p(null!=l?l:.5*t)}),[t,l,p]),m=e=>t=>{const n=e.onBlur;null==n||n(t),g()},v=e=>t=>{const n=e.onFocus;null==n||n(t),h()},y=e=>t=>{const n=e.onMouseEnter;null==n||n(t),h()},b=e=>t=>{const n=e.onMouseLeave;null==n||n(t),g()};return o.useEffect((()=>{if(!n&&a)return window.addEventListener("focus",g),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",h)}}),[n,g,a]),{getRootProps:(t={})=>{const n=(0,f.Z)(e),r=(0,i.Z)({},n,t);return(0,i.Z)({ref:s,role:"presentation"},r,{onBlur:m(r),onFocus:v(r),onMouseEnter:y(r),onMouseLeave:b(r)})},onClickAway:e=>{null==r||r(e,"clickaway")}}}((0,i.Z)({},F,{ref:t})),[W,H]=o.useState(!0),G=(0,s.Z)({elementType:D,getSlotProps:V,externalForwardedProps:B,ownerState:F,className:[j.root,S]});return!T&&W?null:(0,d.jsx)(h,(0,i.Z)({onClickAway:$},k,{children:(0,d.jsx)(D,(0,i.Z)({},G,{children:(0,d.jsx)(O,(0,i.Z)({appear:!0,in:T,timeout:L,direction:"top"===g?"down":"up",onEnter:(e,t)=>{H(!1),E&&E(e,t)},onExited:e=>{H(!0),N&&N(e)}},z,{children:w||(0,d.jsx)(P,(0,i.Z)({message:Z,action:p},C))}))}))}))}))},5250:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1628),u=n(6820),c=n(1459),d=n(1704),p=n(1874);const h=(0,d.Z)((0,p.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),f=(0,d.Z)((0,p.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");var g=n(6448),m=n(2112),v=n(7824);function y(e){return(0,v.Z)("MuiStepIcon",e)}const b=(0,m.Z)("MuiStepIcon",["root","active","completed","error","text"]);var x;const _=["active","className","completed","error","icon"],w=(0,l.ZP)(g.Z,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${b.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${b.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${b.error}`]:{color:(e.vars||e).palette.error.main}}))),S=(0,l.ZP)("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})((({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),k=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiStepIcon"}),{active:o=!1,className:l,completed:c=!1,error:d=!1,icon:g}=n,m=(0,r.Z)(n,_),v=(0,i.Z)({},n,{active:o,completed:c,error:d}),b=(e=>{const{classes:t,active:n,completed:r,error:i}=e,o={root:["root",n&&"active",r&&"completed",i&&"error"],text:["text"]};return(0,s.Z)(o,y,t)})(v);if("number"==typeof g||"string"==typeof g){const e=(0,a.Z)(l,b.root);return d?(0,p.jsx)(w,(0,i.Z)({as:f,className:e,ref:t,ownerState:v},m)):c?(0,p.jsx)(w,(0,i.Z)({as:h,className:e,ref:t,ownerState:v},m)):(0,p.jsxs)(w,(0,i.Z)({className:e,ref:t,ownerState:v},m,{children:[x||(x=(0,p.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,p.jsx)(S,{className:b.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:v,children:g})]}))}return g}));var C=n(822),M=n(1754);function Z(e){return(0,v.Z)("MuiStepLabel",e)}const T=(0,m.Z)("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),O=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],P=(0,l.ZP)("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})((({ownerState:e})=>(0,i.Z)({display:"flex",alignItems:"center",[`&.${T.alternativeLabel}`]:{flexDirection:"column"},[`&.${T.disabled}`]:{cursor:"default"}},"vertical"===e.orientation&&{textAlign:"left",padding:"8px 0"}))),I=(0,l.ZP)("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})((({theme:e})=>(0,i.Z)({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${T.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${T.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${T.alternativeLabel}`]:{marginTop:16},[`&.${T.error}`]:{color:(e.vars||e).palette.error.main}}))),A=(0,l.ZP)("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})((()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${T.alternativeLabel}`]:{paddingRight:0}}))),R=(0,l.ZP)("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${T.alternativeLabel}`]:{textAlign:"center"}}))),D=o.forwardRef((function(e,t){var n;const l=(0,u.Z)({props:e,name:"MuiStepLabel"}),{children:c,className:d,componentsProps:h={},error:f=!1,icon:g,optional:m,slotProps:v={},StepIconComponent:y,StepIconProps:b}=l,x=(0,r.Z)(l,O),{alternativeLabel:_,orientation:w}=o.useContext(C.Z),{active:S,disabled:T,completed:D,icon:L}=o.useContext(M.Z),E=g||L;let N=y;E&&!N&&(N=k);const z=(0,i.Z)({},l,{active:S,alternativeLabel:_,completed:D,disabled:T,error:f,orientation:w}),B=(e=>{const{classes:t,orientation:n,active:r,completed:i,error:o,disabled:a,alternativeLabel:l}=e,u={root:["root",n,o&&"error",a&&"disabled",l&&"alternativeLabel"],label:["label",r&&"active",i&&"completed",o&&"error",a&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",i&&"completed",o&&"error",a&&"disabled",l&&"alternativeLabel"],labelContainer:["labelContainer",l&&"alternativeLabel"]};return(0,s.Z)(u,Z,t)})(z),F=null!=(n=v.label)?n:h.label;return(0,p.jsxs)(P,(0,i.Z)({className:(0,a.Z)(B.root,d),ref:t,ownerState:z},x,{children:[E||N?(0,p.jsx)(A,{className:B.iconContainer,ownerState:z,children:(0,p.jsx)(N,(0,i.Z)({completed:D,active:S,error:f,icon:E},b))}):null,(0,p.jsxs)(R,{className:B.labelContainer,ownerState:z,children:[c?(0,p.jsx)(I,(0,i.Z)({ownerState:z},F,{className:(0,a.Z)(B.label,null==F?void 0:F.className),children:c})):null,m]})]}))}));D.muiName="StepLabel";const L=D;var E=n(2284);function N(e){return(0,v.Z)("MuiStepButton",e)}const z=(0,m.Z)("MuiStepButton",["root","horizontal","vertical","touchRipple"]),B=["children","className","icon","optional"],F=(0,l.ZP)(c.Z,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${z.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})((({ownerState:e})=>(0,i.Z)({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},"vertical"===e.orientation&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${z.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}}))),j=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiStepButton"}),{children:l,className:c,icon:d,optional:h}=n,f=(0,r.Z)(n,B),{disabled:g,active:m}=o.useContext(M.Z),{orientation:v}=o.useContext(C.Z),y=(0,i.Z)({},n,{orientation:v}),b=(e=>{const{classes:t,orientation:n}=e,r={root:["root",n],touchRipple:["touchRipple"]};return(0,s.Z)(r,N,t)})(y),x={icon:d,optional:h},_=(0,E.Z)(l,["StepLabel"])?o.cloneElement(l,x):(0,p.jsx)(L,(0,i.Z)({},x,{children:l}));return(0,p.jsx)(F,(0,i.Z)({focusRipple:!0,disabled:g,TouchRippleProps:{className:b.touchRipple},className:(0,a.Z)(b.root,c),ref:t,ownerState:y,"aria-current":m?"step":void 0},f,{children:_}))}))},5100:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1628),u=n(6820),c=n(5126),d=n(822),p=n(1754),h=n(2112),f=n(7824);function g(e){return(0,f.Z)("MuiStepContent",e)}(0,h.Z)("MuiStepContent",["root","last","transition"]);var m=n(1874);const v=["children","className","TransitionComponent","transitionDuration","TransitionProps"],y=(0,l.ZP)("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})((({ownerState:e,theme:t})=>(0,i.Z)({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:t.vars?`1px solid ${t.vars.palette.StepContent.border}`:`1px solid ${"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}`},e.last&&{borderLeft:"none"}))),b=(0,l.ZP)(c.Z,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),x=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiStepContent"}),{children:l,className:h,TransitionComponent:f=c.Z,transitionDuration:x="auto",TransitionProps:_}=n,w=(0,r.Z)(n,v),{orientation:S}=o.useContext(d.Z),{active:k,last:C,expanded:M}=o.useContext(p.Z),Z=(0,i.Z)({},n,{last:C}),T=(e=>{const{classes:t,last:n}=e,r={root:["root",n&&"last"],transition:["transition"]};return(0,s.Z)(r,g,t)})(Z);let O=x;return"auto"!==x||f.muiSupportAuto||(O=void 0),(0,m.jsx)(y,(0,i.Z)({className:(0,a.Z)(T.root,h),ref:t,ownerState:Z},w,{children:(0,m.jsx)(b,(0,i.Z)({as:f,in:k||M,className:T.transition,ownerState:Z,timeout:O,unmountOnExit:!0},_,{children:l}))}))}))},1050:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(822),u=n(1754),c=n(6820),d=n(1628),p=n(2112),h=n(7824);function f(e){return(0,h.Z)("MuiStep",e)}(0,p.Z)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);var g=n(1874);const m=["active","children","className","component","completed","disabled","expanded","index","last"],v=(0,d.ZP)("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((({ownerState:e})=>(0,i.Z)({},"horizontal"===e.orientation&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"}))),y=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiStep"}),{active:d,children:p,className:h,component:y="div",completed:b,disabled:x,expanded:_=!1,index:w,last:S}=n,k=(0,r.Z)(n,m),{activeStep:C,connector:M,alternativeLabel:Z,orientation:T,nonLinear:O}=o.useContext(l.Z);let[P=!1,I=!1,A=!1]=[d,b,x];C===w?P=void 0===d||d:!O&&C>w?I=void 0===b||b:!O&&C({index:w,last:S,expanded:_,icon:w+1,active:P,completed:I,disabled:A})),[w,S,_,P,I,A]),D=(0,i.Z)({},n,{active:P,orientation:T,alternativeLabel:Z,completed:I,disabled:A,expanded:_,component:y}),L=(e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:i}=e,o={root:["root",n,r&&"alternativeLabel",i&&"completed"]};return(0,s.Z)(o,f,t)})(D),E=(0,g.jsxs)(v,(0,i.Z)({as:y,className:(0,a.Z)(L.root,h),ref:t,ownerState:D},k,{children:[M&&Z&&0!==w?M:null,p]}));return(0,g.jsx)(u.Z.Provider,{value:R,children:M&&!Z&&0!==w?(0,g.jsxs)(o.Fragment,{children:[M,E]}):E})}))},1754:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const r=n(9953).createContext({});const i=r},3853:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(6820),u=n(1628),c=n(2112),d=n(7824);function p(e){return(0,d.Z)("MuiStepper",e)}(0,c.Z)("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);var h=n(8115),f=n(822),g=n(1754);function m(e){return(0,d.Z)("MuiStepConnector",e)}(0,c.Z)("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);var v=n(1874);const y=["className"],b=(0,u.ZP)("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((({ownerState:e})=>(0,i.Z)({flex:"1 1 auto"},"vertical"===e.orientation&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}))),x=(0,u.ZP)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${(0,h.Z)(n.orientation)}`]]}})((({ownerState:e,theme:t})=>{const n="light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600];return(0,i.Z)({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},"horizontal"===e.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===e.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})})),_=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiStepConnector"}),{className:u}=n,c=(0,r.Z)(n,y),{alternativeLabel:d,orientation:p="horizontal"}=o.useContext(f.Z),{active:_,disabled:w,completed:S}=o.useContext(g.Z),k=(0,i.Z)({},n,{alternativeLabel:d,orientation:p,active:_,completed:S,disabled:w}),C=(e=>{const{classes:t,orientation:n,alternativeLabel:r,active:i,completed:o,disabled:a}=e,l={root:["root",n,r&&"alternativeLabel",i&&"active",o&&"completed",a&&"disabled"],line:["line",`line${(0,h.Z)(n)}`]};return(0,s.Z)(l,m,t)})(k);return(0,v.jsx)(b,(0,i.Z)({className:(0,a.Z)(C.root,u),ref:t,ownerState:k},c,{children:(0,v.jsx)(x,{className:C.line,ownerState:k})}))})),w=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],S=(0,u.ZP)("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})((({ownerState:e})=>(0,i.Z)({display:"flex"},"horizontal"===e.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===e.orientation&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"}))),k=(0,v.jsx)(_,{}),C=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiStepper"}),{activeStep:u=0,alternativeLabel:c=!1,children:d,className:h,component:g="div",connector:m=k,nonLinear:y=!1,orientation:b="horizontal"}=n,x=(0,r.Z)(n,w),_=(0,i.Z)({},n,{alternativeLabel:c,orientation:b,component:g}),C=(e=>{const{orientation:t,alternativeLabel:n,classes:r}=e,i={root:["root",t,n&&"alternativeLabel"]};return(0,s.Z)(i,p,r)})(_),M=o.Children.toArray(d).filter(Boolean),Z=M.map(((e,t)=>o.cloneElement(e,(0,i.Z)({index:t,last:t+1===M.length},e.props)))),T=o.useMemo((()=>({activeStep:u,alternativeLabel:c,connector:m,nonLinear:y,orientation:b})),[u,c,m,y,b]);return(0,v.jsx)(f.Z.Provider,{value:T,children:(0,v.jsx)(S,(0,i.Z)({as:g,ownerState:_,className:(0,a.Z)(C.root,h),ref:t},x,{children:Z}))})}))},822:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const r=n(9953).createContext({});const i=r},6448:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(8842),l=n(8115),u=n(6820),c=n(1628),d=n(2112),p=n(7824);function h(e){return(0,p.Z)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(1874);const g=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=(0,c.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,l.Z)(n.color)}`],t[`fontSize${(0,l.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,c,d,p,h,f,g,m,v,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(o=i.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(u=l.pxToRem)?void 0:u.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(h=(e.vars||e).palette)||null==(f=h[t.color])?void 0:f.main)?p:{action:null==(g=(e.vars||e).palette)||null==(m=g.action)?void 0:m.active,disabled:null==(v=(e.vars||e).palette)||null==(y=v.action)?void 0:y.disabled,inherit:void 0}[t.color]}})),v=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiSvgIcon"}),{children:o,className:c,color:d="inherit",component:p="svg",fontSize:v="medium",htmlColor:y,inheritViewBox:b=!1,titleAccess:x,viewBox:_="0 0 24 24"}=n,w=(0,i.Z)(n,g),S=(0,r.Z)({},n,{color:d,component:p,fontSize:v,instanceFontSize:e.fontSize,inheritViewBox:b,viewBox:_}),k={};b||(k.viewBox=_);const C=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&`color${(0,l.Z)(t)}`,`fontSize${(0,l.Z)(n)}`]};return(0,s.Z)(i,h,r)})(S);return(0,f.jsxs)(m,(0,r.Z)({as:p,className:(0,a.Z)(C.root,c),focusable:"false",color:y,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:t},k,w,{ownerState:S,children:[o,x?(0,f.jsx)("title",{children:x}):null]}))}));v.muiName="SvgIcon";const y=v},3984:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1280),u=n(8115),c=n(7818),d=n(6820),p=n(1628),h=n(2112),f=n(7824);function g(e){return(0,f.Z)("MuiSwitch",e)}const m=(0,h.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var v=n(1874);const y=["className","color","edge","size","sx"],b=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,u.Z)(n.edge)}`],t[`size${(0,u.Z)(n.size)}`]]}})((({ownerState:e})=>(0,i.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,[`& .${m.thumb}`]:{width:16,height:16},[`& .${m.switchBase}`]:{padding:4,[`&.${m.checked}`]:{transform:"translateX(16px)"}}}))),x=(0,p.ZP)(c.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${m.input}`]:t.input},"default"!==n.color&&t[`color${(0,u.Z)(n.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${m.checked}`]:{transform:"translateX(20px)"},[`&.${m.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${m.checked} + .${m.track}`]:{opacity:.5},[`&.${m.disabled} + .${m.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${m.input}`]:{left:"-100%",width:"300%"}})),(({theme:e,ownerState:t})=>(0,i.Z)({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${m.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${"light"===e.palette.mode?(0,l.$n)(e.palette[t.color].main,.62):(0,l._j)(e.palette[t.color].main,.55)}`}},[`&.${m.checked} + .${m.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}}))),_=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),w=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),S=o.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiSwitch"}),{className:o,color:l="primary",edge:c=!1,size:p="medium",sx:h}=n,f=(0,r.Z)(n,y),m=(0,i.Z)({},n,{color:l,edge:c,size:p}),S=(e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:l}=e,c={root:["root",n&&`edge${(0,u.Z)(n)}`,`size${(0,u.Z)(r)}`],switchBase:["switchBase",`color${(0,u.Z)(o)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,s.Z)(c,g,t);return(0,i.Z)({},t,d)})(m),k=(0,v.jsx)(w,{className:S.thumb,ownerState:m});return(0,v.jsxs)(b,{className:(0,a.Z)(S.root,o),sx:h,ownerState:m,children:[(0,v.jsx)(x,(0,i.Z)({type:"checkbox",icon:k,checkedIcon:k,ref:t,ownerState:m},f,{classes:(0,i.Z)({},S,{root:S.switchBase})})),(0,v.jsx)(_,{className:S.track,ownerState:m})]})}))},741:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1459),u=n(8115),c=n(6820),d=n(1628),p=n(2112),h=n(7824);function f(e){return(0,h.Z)("MuiTab",e)}const g=(0,p.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);var m=n(1874);const v=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],y=(0,d.ZP)(l.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${(0,u.Z)(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>(0,i.Z)({},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:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${g.iconWrapper}`]:(0,i.Z)({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${g.selected}`]:{opacity:1},[`&.${g.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${g.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${g.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${g.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${g.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)}))),b=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiTab"}),{className:l,disabled:d=!1,disableFocusRipple:p=!1,fullWidth:h,icon:g,iconPosition:b="top",indicator:x,label:_,onChange:w,onClick:S,onFocus:k,selected:C,selectionFollowsFocus:M,textColor:Z="inherit",value:T,wrapped:O=!1}=n,P=(0,r.Z)(n,v),I=(0,i.Z)({},n,{disabled:d,disableFocusRipple:p,selected:C,icon:!!g,iconPosition:b,label:!!_,fullWidth:h,textColor:Z,wrapped:O}),A=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:l,disabled:c}=e,d={root:["root",o&&a&&"labelIcon",`textColor${(0,u.Z)(n)}`,r&&"fullWidth",i&&"wrapped",l&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return(0,s.Z)(d,f,t)})(I),R=g&&_&&o.isValidElement(g)?o.cloneElement(g,{className:(0,a.Z)(A.iconWrapper,g.props.className)}):g;return(0,m.jsxs)(y,(0,i.Z)({focusRipple:!p,className:(0,a.Z)(A.root,l),ref:t,role:"tab","aria-selected":C,disabled:d,onClick:e=>{!C&&w&&w(e,T),S&&S(e)},onFocus:e=>{M&&!C&&w&&w(e,T),k&&k(e)},ownerState:I,tabIndex:C?0:-1},P,{children:["top"===b||"start"===b?(0,m.jsxs)(o.Fragment,{children:[R,_]}):(0,m.jsxs)(o.Fragment,{children:[_,R]}),x]}))}))},1592:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(8842),l=n(2003),u=n(6820),c=n(1628),d=n(2112),p=n(7824);function h(e){return(0,p.Z)("MuiTableBody",e)}(0,d.Z)("MuiTableBody",["root"]);var f=n(1874);const g=["className","component"],m=(0,c.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),v={variant:"body"},y="tbody",b=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiTableBody"}),{className:o,component:c=y}=n,d=(0,i.Z)(n,g),p=(0,r.Z)({},n,{component:c}),b=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},h,t)})(p);return(0,f.jsx)(l.Z.Provider,{value:v,children:(0,f.jsx)(m,(0,r.Z)({className:(0,a.Z)(b.root,o),as:c,ref:t,role:c===y?null:"rowgroup",ownerState:p},d))})}))},1012:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1280),u=n(8115),c=n(5084),d=n(2003),p=n(6820),h=n(1628),f=n(2112),g=n(7824);function m(e){return(0,g.Z)("MuiTableCell",e)}const v=(0,f.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var y=n(1874);const b=["align","className","component","padding","scope","size","sortDirection","variant"],x=(0,h.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${(0,u.Z)(n.size)}`],"normal"!==n.padding&&t[`padding${(0,u.Z)(n.padding)}`],"inherit"!==n.align&&t[`align${(0,u.Z)(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>(0,i.Z)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?(0,l.$n)((0,l.Fq)(e.palette.divider,1),.88):(0,l._j)((0,l.Fq)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${v.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),_=o.forwardRef((function(e,t){const n=(0,p.Z)({props:e,name:"MuiTableCell"}),{align:l="inherit",className:h,component:f,padding:g,scope:v,size:_,sortDirection:w,variant:S}=n,k=(0,r.Z)(n,b),C=o.useContext(c.Z),M=o.useContext(d.Z),Z=M&&"head"===M.variant;let T;T=f||(Z?"th":"td");let O=v;"td"===T?O=void 0:!O&&Z&&(O="col");const P=S||M&&M.variant,I=(0,i.Z)({},n,{align:l,component:T,padding:g||(C&&C.padding?C.padding:"normal"),size:_||(C&&C.size?C.size:"medium"),sortDirection:w,stickyHeader:"head"===P&&C&&C.stickyHeader,variant:P}),A=(e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${(0,u.Z)(r)}`,"normal"!==i&&`padding${(0,u.Z)(i)}`,`size${(0,u.Z)(o)}`]};return(0,s.Z)(l,m,t)})(I);let R=null;return w&&(R="asc"===w?"ascending":"descending"),(0,y.jsx)(x,(0,i.Z)({as:T,ref:t,className:(0,a.Z)(A.root,h),"aria-sort":R,scope:O,ownerState:I},k))}))},2688:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(8842),l=n(6820),u=n(1628),c=n(2112),d=n(7824);function p(e){return(0,d.Z)("MuiTableContainer",e)}(0,c.Z)("MuiTableContainer",["root"]);var h=n(1874);const f=["className","component"],g=(0,u.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),m=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiTableContainer"}),{className:o,component:u="div"}=n,c=(0,i.Z)(n,f),d=(0,r.Z)({},n,{component:u}),m=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},p,t)})(d);return(0,h.jsx)(g,(0,r.Z)({ref:t,as:u,className:(0,a.Z)(m.root,o),ownerState:d},c))}))},8464:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(8842),l=n(2003),u=n(6820),c=n(1628),d=n(2112),p=n(7824);function h(e){return(0,p.Z)("MuiTableHead",e)}(0,d.Z)("MuiTableHead",["root"]);var f=n(1874);const g=["className","component"],m=(0,c.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),v={variant:"head"},y="thead",b=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiTableHead"}),{className:o,component:c=y}=n,d=(0,i.Z)(n,g),p=(0,r.Z)({},n,{component:c}),b=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},h,t)})(p);return(0,f.jsx)(l.Z.Provider,{value:v,children:(0,f.jsx)(m,(0,r.Z)({as:c,className:(0,a.Z)(b.root,o),ref:t,role:c===y?null:"rowgroup",ownerState:p},d))})}))},7707:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(8842),l=n(1280),u=n(2003),c=n(6820),d=n(1628),p=n(2112),h=n(7824);function f(e){return(0,h.Z)("MuiTableRow",e)}const g=(0,p.Z)("MuiTableRow",["root","selected","hover","head","footer"]);var m=n(1874);const v=["className","component","hover","selected"],y=(0,d.ZP)("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,[`&.${g.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${g.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.Fq)(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}))`:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),b="tr",x=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiTableRow"}),{className:l,component:d=b,hover:p=!1,selected:h=!1}=n,g=(0,i.Z)(n,v),x=o.useContext(u.Z),_=(0,r.Z)({},n,{component:d,hover:p,selected:h,head:x&&"head"===x.variant,footer:x&&"footer"===x.variant}),w=(e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e,a={root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]};return(0,s.Z)(a,f,t)})(_);return(0,m.jsx)(y,(0,r.Z)({as:d,ref:t,className:(0,a.Z)(w.root,l),role:d===b?null:"row",ownerState:_},g))}))},911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(5084),u=n(6820),c=n(1628),d=n(2112),p=n(7824);function h(e){return(0,p.Z)("MuiTable",e)}(0,d.Z)("MuiTable",["root","stickyHeader"]);var f=n(1874);const g=["className","component","padding","size","stickyHeader"],m=(0,c.ZP)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>(0,i.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,i.Z)({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),v="table",y=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiTable"}),{className:c,component:d=v,padding:p="normal",size:y="medium",stickyHeader:b=!1}=n,x=(0,r.Z)(n,g),_=(0,i.Z)({},n,{component:d,padding:p,size:y,stickyHeader:b}),w=(e=>{const{classes:t,stickyHeader:n}=e,r={root:["root",n&&"stickyHeader"]};return(0,s.Z)(r,h,t)})(_),S=o.useMemo((()=>({padding:p,size:y,stickyHeader:b})),[p,y,b]);return(0,f.jsx)(l.Z.Provider,{value:S,children:(0,f.jsx)(m,(0,i.Z)({as:d,role:d===v?null:"table",ref:t,className:(0,a.Z)(w.root,c),ownerState:_},x))})}))},5084:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(9953).createContext()},2003:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(9953).createContext()},6068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>G});var r=n(1551),i=n(557),o=n(9953),a=(n(5344),n(4923)),s=n(8842),l=n(5852),u=n(1628),c=n(6820),d=n(5401),p=n(4897);let h;function f(){if(h)return h;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),h="reverse",e.scrollLeft>0?h="default":(e.scrollLeft=1,0===e.scrollLeft&&(h="negative")),document.body.removeChild(e),h}function g(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(f()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function m(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var v=n(8404),y=n(1874);const b=["onChange"],x={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var _=n(1704);const w=(0,_.Z)((0,y.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),S=(0,_.Z)((0,y.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var k=n(1459),C=n(2112),M=n(7824);function Z(e){return(0,M.Z)("MuiTabScrollButton",e)}const T=(0,C.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),O=["className","slots","slotProps","direction","orientation","disabled"],P=(0,u.ZP)(k.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((({ownerState:e})=>(0,i.Z)({width:40,flexShrink:0,opacity:.8,[`&.${T.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),I=o.forwardRef((function(e,t){var n,o;const u=(0,c.Z)({props:e,name:"MuiTabScrollButton"}),{className:p,slots:h={},slotProps:f={},direction:g}=u,m=(0,r.Z)(u,O),v="rtl"===(0,d.Z)().direction,b=(0,i.Z)({isRtl:v},u),x=(e=>{const{classes:t,orientation:n,disabled:r}=e,i={root:["root",n,r&&"disabled"]};return(0,s.Z)(i,Z,t)})(b),_=null!=(n=h.StartScrollButtonIcon)?n:w,k=null!=(o=h.EndScrollButtonIcon)?o:S,C=(0,l.Z)({elementType:_,externalSlotProps:f.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b}),M=(0,l.Z)({elementType:k,externalSlotProps:f.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b});return(0,y.jsx)(P,(0,i.Z)({component:"div",className:(0,a.Z)(x.root,p),ref:t,role:null,ownerState:b,tabIndex:null},m,{children:"left"===g?(0,y.jsx)(_,(0,i.Z)({},C)):(0,y.jsx)(k,(0,i.Z)({},M))}))}));var A=n(2373);function R(e){return(0,M.Z)("MuiTabs",e)}const D=(0,C.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);var L=n(2198);const E=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],N=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,z=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,B=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const t=i.disabled||"true"===i.getAttribute("aria-disabled");if(i.hasAttribute("tabindex")&&!t)return void i.focus();i=n(e,i)}},F=(0,u.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${D.scrollButtons}`]:t.scrollButtons},{[`& .${D.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>(0,i.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${D.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),j=(0,u.ZP)("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})=>(0,i.Z)({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"}))),V=(0,u.ZP)("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})=>(0,i.Z)({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),$=(0,u.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>(0,i.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),W=(0,u.ZP)((function(e){const{onChange:t}=e,n=(0,r.Z)(e,b),a=o.useRef(),s=o.useRef(null),l=()=>{a.current=s.current.offsetHeight-s.current.clientHeight};return o.useEffect((()=>{const e=(0,p.Z)((()=>{const e=a.current;l(),e!==a.current&&t(a.current)})),n=(0,v.Z)(s.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),o.useEffect((()=>{l(),t(a.current)}),[t]),(0,y.jsx)("div",(0,i.Z)({style:x,ref:s},n))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),H={};const G=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiTabs"}),u=(0,d.Z)(),h="rtl"===u.direction,{"aria-label":b,"aria-labelledby":x,action:_,centered:w=!1,children:S,className:k,component:C="div",allowScrollButtonsMobile:M=!1,indicatorColor:Z="primary",onChange:T,orientation:O="horizontal",ScrollButtonComponent:P=I,scrollButtons:D="auto",selectionFollowsFocus:G,slots:U={},slotProps:q={},TabIndicatorProps:Y={},TabScrollButtonProps:X={},textColor:K="primary",value:Q,variant:J="standard",visibleScrollbar:ee=!1}=n,te=(0,r.Z)(n,E),ne="scrollable"===J,re="vertical"===O,ie=re?"scrollTop":"scrollLeft",oe=re?"top":"left",ae=re?"bottom":"right",se=re?"clientHeight":"clientWidth",le=re?"height":"width",ue=(0,i.Z)({},n,{component:C,allowScrollButtonsMobile:M,indicatorColor:Z,orientation:O,vertical:re,scrollButtons:D,textColor:K,variant:J,visibleScrollbar:ee,fixed:!ne,hideScrollbar:ne&&!ee,scrollableX:ne&&!re,scrollableY:ne&&re,centered:w&&!ne,scrollButtonsHideMobile:!M}),ce=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:l,classes:u}=e,c={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,s.Z)(c,R,u)})(ue),de=(0,l.Z)({elementType:U.StartScrollButtonIcon,externalSlotProps:q.startScrollButtonIcon,ownerState:ue}),pe=(0,l.Z)({elementType:U.EndScrollButtonIcon,externalSlotProps:q.endScrollButtonIcon,ownerState:ue});const[he,fe]=o.useState(!1),[ge,me]=o.useState(H),[ve,ye]=o.useState({start:!1,end:!1}),[be,xe]=o.useState({overflow:"hidden",scrollbarWidth:0}),_e=new Map,we=o.useRef(null),Se=o.useRef(null),ke=()=>{const e=we.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:g(e,u.direction),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==Q){const e=Se.current.children;if(e.length>0){const t=e[_e.get(Q)];0,n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},Ce=(0,A.Z)((()=>{const{tabsMeta:e,tabMeta:t}=ke();let n,r=0;if(re)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=h?"right":"left",t&&e){const i=h?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(h?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[le]:t?t[le]:0};if(isNaN(ge[n])||isNaN(ge[le]))me(i);else{const e=Math.abs(ge[n]-i[n]),t=Math.abs(ge[le]-i[le]);(e>=1||t>=1)&&me(i)}})),Me=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},i=(()=>{})){const{ease:o=m,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},d=r=>{if(u)return void i(new Error("Animation cancelled"));null===s&&(s=r);const c=Math.min(1,(r-s)/a);t[e]=o(c)*(n-l)+l,c>=1?requestAnimationFrame((()=>{i(null)})):requestAnimationFrame(d)};l===n?i(new Error("Element already at target position")):requestAnimationFrame(d)}(ie,we.current,e,{duration:u.transitions.duration.standard}):we.current[ie]=e},Ze=e=>{let t=we.current[ie];re?t+=e:(t+=e*(h?-1:1),t*=h&&"reverse"===f()?-1:1),Me(t)},Te=()=>{const e=we.current[se];let t=0;const n=Array.from(Se.current.children);for(let r=0;re){0===r&&(t=e);break}t+=i[se]}return t},Oe=()=>{Ze(-1*Te())},Pe=()=>{Ze(Te())},Ie=o.useCallback((e=>{xe({overflow:null,scrollbarWidth:e})}),[]),Ae=(0,A.Z)((e=>{const{tabsMeta:t,tabMeta:n}=ke();if(n&&t)if(n[oe]t[ae]){const r=t[ie]+(n[ae]-t[ae]);Me(r,{animation:e})}})),Re=(0,A.Z)((()=>{if(ne&&!1!==D){const{scrollTop:e,scrollHeight:t,clientHeight:n,scrollWidth:r,clientWidth:i}=we.current;let o,a;if(re)o=e>1,a=e1,a=h?e>1:e{const e=(0,p.Z)((()=>{we.current&&(Ce(),Re())})),t=(0,v.Z)(we.current);let n;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),Array.from(Se.current.children).forEach((e=>{n.observe(e)}))),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}}),[Ce,Re]);const De=o.useMemo((()=>(0,p.Z)((()=>{Re()}))),[Re]);o.useEffect((()=>()=>{De.clear()}),[De]),o.useEffect((()=>{fe(!0)}),[]),o.useEffect((()=>{Ce(),Re()})),o.useEffect((()=>{Ae(H!==ge)}),[Ae,ge]),o.useImperativeHandle(_,(()=>({updateIndicator:Ce,updateScrollButtons:Re})),[Ce,Re]);const Le=(0,y.jsx)($,(0,i.Z)({},Y,{className:(0,a.Z)(ce.indicator,Y.className),ownerState:ue,style:(0,i.Z)({},ge,Y.style)}));let Ee=0;const Ne=o.Children.map(S,(e=>{if(!o.isValidElement(e))return null;const t=void 0===e.props.value?Ee:e.props.value;_e.set(t,Ee);const n=t===Q;return Ee+=1,o.cloneElement(e,(0,i.Z)({fullWidth:"fullWidth"===J,indicator:n&&!he&&Le,selected:n,selectionFollowsFocus:G,onChange:T,textColor:K,value:t},1!==Ee||!1!==Q||e.props.tabIndex?{}:{tabIndex:0}))})),ze=(()=>{const e={};e.scrollbarSizeListener=ne?(0,y.jsx)(W,{onChange:Ie,className:(0,a.Z)(ce.scrollableX,ce.hideScrollbar)}):null;const t=ve.start||ve.end,n=ne&&("auto"===D&&t||!0===D);return e.scrollButtonStart=n?(0,y.jsx)(P,(0,i.Z)({slots:{StartScrollButtonIcon:U.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:de},orientation:O,direction:h?"right":"left",onClick:Oe,disabled:!ve.start},X,{className:(0,a.Z)(ce.scrollButtons,X.className)})):null,e.scrollButtonEnd=n?(0,y.jsx)(P,(0,i.Z)({slots:{EndScrollButtonIcon:U.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:pe},orientation:O,direction:h?"left":"right",onClick:Pe,disabled:!ve.end},X,{className:(0,a.Z)(ce.scrollButtons,X.className)})):null,e})();return(0,y.jsxs)(F,(0,i.Z)({className:(0,a.Z)(ce.root,k),ownerState:ue,ref:t,as:C},te,{children:[ze.scrollButtonStart,ze.scrollbarSizeListener,(0,y.jsxs)(j,{className:ce.scroller,ownerState:ue,style:{overflow:be.overflow,[re?"margin"+(h?"Left":"Right"):"marginBottom"]:ee?void 0:-be.scrollbarWidth},ref:we,onScroll:De,children:[(0,y.jsx)(V,{"aria-label":b,"aria-labelledby":x,"aria-orientation":"vertical"===O?"vertical":null,className:ce.flexContainer,ownerState:ue,onKeyDown:e=>{const t=Se.current,n=(0,L.Z)(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===O?"ArrowLeft":"ArrowUp",i="horizontal"===O?"ArrowRight":"ArrowDown";switch("horizontal"===O&&h&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),B(t,n,z);break;case i:e.preventDefault(),B(t,n,N);break;case"Home":e.preventDefault(),B(t,null,N);break;case"End":e.preventDefault(),B(t,null,z)}},ref:Se,role:"tablist",children:Ne}),he&&Le]}),ze.scrollButtonEnd]}))}))},8201:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var r=n(557),i=n(1551),o=n(9953),a=n(4923),s=n(8842),l=n(5525),u=n(1628),c=n(6820),d=n(1574),p=n(2389),h=n(4890),f=n(5823),g=n(7139),m=n(8115),v=n(2112),y=n(7824);function b(e){return(0,y.Z)("MuiFormLabel",e)}const x=(0,v.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var _=n(1874);const w=["children","className","color","component","disabled","error","filled","focused","required"],S=(0,u.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,r.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,r.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${x.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${x.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${x.error}`]:{color:(e.vars||e).palette.error.main}}))),k=(0,u.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${x.error}`]:{color:(e.vars||e).palette.error.main}}))),C=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiFormLabel"}),{children:o,className:l,component:u="label"}=n,d=(0,i.Z)(n,w),p=(0,g.Z)(),h=(0,f.Z)({props:n,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),v=(0,r.Z)({},n,{color:h.color||"primary",component:u,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required}),y=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:l}=e,u={root:["root",`color${(0,m.Z)(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return(0,s.Z)(u,b,t)})(v);return(0,_.jsxs)(S,(0,r.Z)({as:u,ownerState:v,className:(0,a.Z)(y.root,l),ref:t},d,{children:[o,h.required&&(0,_.jsxs)(k,{ownerState:v,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]}))}));function M(e){return(0,y.Z)("MuiInputLabel",e)}(0,v.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Z=["disableAnimation","margin","shrink","variant","className"],T=(0,u.ZP)(C,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${x.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,r.Z)({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)"},"small"===t.size&&{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})},"filled"===t.variant&&(0,r.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,r.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,r.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),O=o.forwardRef((function(e,t){const n=(0,c.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,shrink:l,className:u}=n,d=(0,i.Z)(n,Z),p=(0,g.Z)();let h=l;void 0===h&&p&&(h=p.filled||p.focused||p.adornedStart);const m=(0,f.Z)({props:n,muiFormControl:p,states:["size","variant","required"]}),v=(0,r.Z)({},n,{disableAnimation:o,formControl:p,shrink:h,size:m.size,variant:m.variant,required:m.required}),y=(e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:a,variant:l,required:u}=e,c={root:["root",n&&"formControl",!a&&"animated",o&&"shrink","small"===i&&"sizeSmall",l],asterisk:[u&&"asterisk"]},d=(0,s.Z)(c,M,t);return(0,r.Z)({},t,d)})(v);return(0,_.jsx)(T,(0,r.Z)({"data-shrink":h,ownerState:v,ref:t,className:(0,a.Z)(y.root,u)},d,{classes:y}))}));var P=n(3132),I=n(7084),A=n(8418);function R(e){return(0,y.Z)("MuiTextField",e)}(0,v.Z)("MuiTextField",["root"]);const D=["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"],L={standard:d.Z,filled:p.Z,outlined:h.Z},E=(0,u.ZP)(P.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:u=!1,children:d,className:p,color:h="primary",defaultValue:f,disabled:g=!1,error:m=!1,FormHelperTextProps:v,fullWidth:y=!1,helperText:b,id:x,InputLabelProps:w,inputProps:S,InputProps:k,inputRef:C,label:M,maxRows:Z,minRows:T,multiline:P=!1,name:N,onBlur:z,onChange:B,onFocus:F,placeholder:j,required:V=!1,rows:$,select:W=!1,SelectProps:H,type:G,value:U,variant:q="outlined"}=n,Y=(0,i.Z)(n,D),X=(0,r.Z)({},n,{autoFocus:u,color:h,disabled:g,error:m,fullWidth:y,multiline:P,required:V,select:W,variant:q}),K=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},R,t)})(X);const Q={};"outlined"===q&&(w&&void 0!==w.shrink&&(Q.notched=w.shrink),Q.label=M),W&&(H&&H.native||(Q.id=void 0),Q["aria-describedby"]=void 0);const J=(0,l.Z)(x),ee=b&&J?`${J}-helper-text`:void 0,te=M&&J?`${J}-label`:void 0,ne=L[q],re=(0,_.jsx)(ne,(0,r.Z)({"aria-describedby":ee,autoComplete:o,autoFocus:u,defaultValue:f,fullWidth:y,multiline:P,name:N,rows:$,maxRows:Z,minRows:T,type:G,value:U,id:J,inputRef:C,onBlur:z,onChange:B,onFocus:F,placeholder:j,inputProps:S},Q,k));return(0,_.jsxs)(E,(0,r.Z)({className:(0,a.Z)(K.root,p),disabled:g,error:m,fullWidth:y,ref:t,required:V,color:h,variant:q,ownerState:X},Y,{children:[null!=M&&""!==M&&(0,_.jsx)(O,(0,r.Z)({htmlFor:J,id:te},w,{children:M})),W?(0,_.jsx)(A.Z,(0,r.Z)({"aria-describedby":ee,id:J,labelId:te,value:U,input:re},H,{children:d})):re,b&&(0,_.jsx)(I.Z,(0,r.Z)({id:ee},v,{children:b}))]}))}))},2347:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(1551),i=n(557),o=n(9953),a=(n(5344),n(4923)),s=n(8842),l=n(1628),u=n(6820),c=n(8115);function d(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}var p=n(2112),h=n(7824);function f(e){return(0,h.Z)("MuiToggleButtonGroup",e)}const g=(0,p.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]);var m=n(1874);const v=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],y=(0,l.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${g.grouped}`]:t.grouped},{[`& .${g.grouped}`]:t[`grouped${(0,c.Z)(n.orientation)}`]},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>(0,i.Z)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${g.grouped}`]:(0,i.Z)({},"horizontal"===e.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},[`&.${g.selected} + .${g.grouped}.${g.selected}`]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`&.${g.selected} + .${g.grouped}.${g.selected}`]:{borderTop:0,marginTop:0}})}))),b=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiToggleButtonGroup"}),{children:l,className:p,color:h="standard",disabled:g=!1,exclusive:b=!1,fullWidth:x=!1,onChange:_,orientation:w="horizontal",size:S="medium",value:k}=n,C=(0,r.Z)(n,v),M=(0,i.Z)({},n,{disabled:g,fullWidth:x,orientation:w,size:S}),Z=(e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,o={root:["root","vertical"===n&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${(0,c.Z)(n)}`,i&&"disabled"]};return(0,s.Z)(o,f,t)})(M),T=(e,t)=>{if(!_)return;const n=k&&k.indexOf(t);let r;k&&n>=0?(r=k.slice(),r.splice(n,1)):r=k?k.concat(t):[t],_(e,r)},O=(e,t)=>{_&&_(e,k===t?null:t)};return(0,m.jsx)(y,(0,i.Z)({role:"group",className:(0,a.Z)(Z.root,p),ref:t,ownerState:M},C,{children:o.Children.map(l,(e=>o.isValidElement(e)?o.cloneElement(e,{className:(0,a.Z)(Z.grouped,e.props.className),onChange:b?O:T,selected:void 0===e.props.selected?d(e.props.value,k):e.props.selected,size:e.props.size||S,fullWidth:x,color:e.props.color||h,disabled:e.props.disabled||g}):null))}))}))},1829:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(1280),u=n(1459),c=n(8115),d=n(6820),p=n(1628),h=n(2112),f=n(7824);function g(e){return(0,f.Z)("MuiToggleButton",e)}const m=(0,h.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]);var v=n(1874);const y=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],b=(0,p.ZP)(u.Z,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${(0,c.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>{let n,r="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(r="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,n="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),(0,i.Z)({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${m.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.selected}`]:{color:r,backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,l.Fq)(r,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${n} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.Fq)(r,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,l.Fq)(r,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})})),x=o.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiToggleButton"}),{children:o,className:l,color:u="standard",disabled:p=!1,disableFocusRipple:h=!1,fullWidth:f=!1,onChange:m,onClick:x,selected:_,size:w="medium",value:S}=n,k=(0,r.Z)(n,y),C=(0,i.Z)({},n,{color:u,disabled:p,disableFocusRipple:h,fullWidth:f,size:w}),M=(e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:o,color:a}=e,l={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${(0,c.Z)(o)}`,a]};return(0,s.Z)(l,g,t)})(C);return(0,v.jsx)(b,(0,i.Z)({className:(0,a.Z)(M.root,l),disabled:p,focusRipple:!h,ref:t,onClick:e=>{x&&(x(e,S),e.defaultPrevented)||m&&m(e,S)},onChange:m,value:S,ownerState:C,"aria-pressed":_},k,{children:o}))}))},4015:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(6820),u=n(1628),c=n(2112),d=n(7824);function p(e){return(0,d.Z)("MuiToolbar",e)}(0,c.Z)("MuiToolbar",["root","gutters","regular","dense"]);var h=n(1874);const f=["className","component","disableGutters","variant"],g=(0,u.ZP)("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})=>(0,i.Z)({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)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),m=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiToolbar"}),{className:o,component:u="div",disableGutters:c=!1,variant:d="regular"}=n,m=(0,r.Z)(n,f),v=(0,i.Z)({},n,{component:u,disableGutters:c,variant:d}),y=(e=>{const{classes:t,disableGutters:n,variant:r}=e,i={root:["root",!n&&"gutters",r]};return(0,s.Z)(i,p,t)})(v);return(0,h.jsx)(g,(0,i.Z)({as:u,className:(0,a.Z)(y.root,o),ref:t,ownerState:v},m))}))},3682:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(59),u=n(1280),c=n(1628),d=n(5401),p=n(6820),h=n(8115),f=n(2464),g=n(4428),m=n(2373),v=n(4717),y=n(7183),b=n(5826),x=n(7421),_=n(2112),w=n(7824);function S(e){return(0,w.Z)("MuiTooltip",e)}const k=(0,_.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);var C=n(1874);const M=["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"];const Z=(0,c.ZP)(g.Z,{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})=>(0,i.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${k.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${k.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${k.arrow}`]:(0,i.Z)({},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"] .${k.arrow}`]:(0,i.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),T=(0,c.ZP)("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${(0,h.Z)(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return(0,i.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,u.Fq)(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:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${k.popper}[data-popper-placement*="left"] &`]:(0,i.Z)({transformOrigin:"right center"},t.isRtl?(0,i.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,i.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${k.popper}[data-popper-placement*="right"] &`]:(0,i.Z)({transformOrigin:"left center"},t.isRtl?(0,i.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,i.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${k.popper}[data-popper-placement*="top"] &`]:(0,i.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${k.popper}[data-popper-placement*="bottom"] &`]:(0,i.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),O=(0,c.ZP)("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:(0,u.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let P=!1,I=null,A={x:0,y:0};function R(e,t){return n=>{t&&t(n),e(n)}}const D=o.forwardRef((function(e,t){var n,u,c,_,w,k,D,L,E,N,z,B,F,j,V,$,W,H,G;const U=(0,p.Z)({props:e,name:"MuiTooltip"}),{arrow:q=!1,children:Y,components:X={},componentsProps:K={},describeChild:Q=!1,disableFocusListener:J=!1,disableHoverListener:ee=!1,disableInteractive:te=!1,disableTouchListener:ne=!1,enterDelay:re=100,enterNextDelay:ie=0,enterTouchDelay:oe=700,followCursor:ae=!1,id:se,leaveDelay:le=0,leaveTouchDelay:ue=1500,onClose:ce,onOpen:de,open:pe,placement:he="bottom",PopperComponent:fe,PopperProps:ge={},slotProps:me={},slots:ve={},title:ye,TransitionComponent:be=f.Z,TransitionProps:xe}=U,_e=(0,r.Z)(U,M),we=(0,d.Z)(),Se="rtl"===we.direction,[ke,Ce]=o.useState(),[Me,Ze]=o.useState(null),Te=o.useRef(!1),Oe=te||ae,Pe=o.useRef(),Ie=o.useRef(),Ae=o.useRef(),Re=o.useRef(),[De,Le]=(0,x.Z)({controlled:pe,default:!1,name:"Tooltip",state:"open"});let Ee=De;const Ne=(0,y.Z)(se),ze=o.useRef(),Be=o.useCallback((()=>{void 0!==ze.current&&(document.body.style.WebkitUserSelect=ze.current,ze.current=void 0),clearTimeout(Re.current)}),[]);o.useEffect((()=>()=>{clearTimeout(Pe.current),clearTimeout(Ie.current),clearTimeout(Ae.current),Be()}),[Be]);const Fe=e=>{clearTimeout(I),P=!0,Le(!0),de&&!Ee&&de(e)},je=(0,m.Z)((e=>{clearTimeout(I),I=setTimeout((()=>{P=!1}),800+le),Le(!1),ce&&Ee&&ce(e),clearTimeout(Pe.current),Pe.current=setTimeout((()=>{Te.current=!1}),we.transitions.duration.shortest)})),Ve=e=>{Te.current&&"touchstart"!==e.type||(ke&&ke.removeAttribute("title"),clearTimeout(Ie.current),clearTimeout(Ae.current),re||P&&ie?Ie.current=setTimeout((()=>{Fe(e)}),P?ie:re):Fe(e))},$e=e=>{clearTimeout(Ie.current),clearTimeout(Ae.current),Ae.current=setTimeout((()=>{je(e)}),le)},{isFocusVisibleRef:We,onBlur:He,onFocus:Ge,ref:Ue}=(0,b.Z)(),[,qe]=o.useState(!1),Ye=e=>{He(e),!1===We.current&&(qe(!1),$e(e))},Xe=e=>{ke||Ce(e.currentTarget),Ge(e),!0===We.current&&(qe(!0),Ve(e))},Ke=e=>{Te.current=!0;const t=Y.props;t.onTouchStart&&t.onTouchStart(e)},Qe=Ve,Je=$e,et=e=>{Ke(e),clearTimeout(Ae.current),clearTimeout(Pe.current),Be(),ze.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Re.current=setTimeout((()=>{document.body.style.WebkitUserSelect=ze.current,Ve(e)}),oe)},tt=e=>{Y.props.onTouchEnd&&Y.props.onTouchEnd(e),Be(),clearTimeout(Ae.current),Ae.current=setTimeout((()=>{je(e)}),ue)};o.useEffect((()=>{if(Ee)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||je(e)}}),[je,Ee]);const nt=(0,v.Z)(Y.ref,Ue,Ce,t);ye||0===ye||(Ee=!1);const rt=o.useRef(),it={},ot="string"==typeof ye;Q?(it.title=Ee||!ot||ee?null:ye,it["aria-describedby"]=Ee?Ne:null):(it["aria-label"]=ot?ye:null,it["aria-labelledby"]=Ee&&!ot?Ne:null);const at=(0,i.Z)({},it,_e,Y.props,{className:(0,a.Z)(_e.className,Y.props.className),onTouchStart:Ke,ref:nt},ae?{onMouseMove:e=>{const t=Y.props;t.onMouseMove&&t.onMouseMove(e),A={x:e.clientX,y:e.clientY},rt.current&&rt.current.update()}}:{});const st={};ne||(at.onTouchStart=et,at.onTouchEnd=tt),ee||(at.onMouseOver=R(Qe,at.onMouseOver),at.onMouseLeave=R(Je,at.onMouseLeave),Oe||(st.onMouseOver=Qe,st.onMouseLeave=Je)),J||(at.onFocus=R(Xe,at.onFocus),at.onBlur=R(Ye,at.onBlur),Oe||(st.onFocus=Xe,st.onBlur=Ye));const lt=o.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(Me),options:{element:Me,padding:4}}];return null!=(e=ge.popperOptions)&&e.modifiers&&(t=t.concat(ge.popperOptions.modifiers)),(0,i.Z)({},ge.popperOptions,{modifiers:t})}),[Me,ge]),ut=(0,i.Z)({},U,{isRtl:Se,arrow:q,disableInteractive:Oe,placement:he,PopperComponentProp:fe,touch:Te.current}),ct=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${(0,h.Z)(o.split("-")[0])}`],arrow:["arrow"]};return(0,s.Z)(a,S,t)})(ut),dt=null!=(n=null!=(u=ve.popper)?u:X.Popper)?n:Z,pt=null!=(c=null!=(_=null!=(w=ve.transition)?w:X.Transition)?_:be)?c:f.Z,ht=null!=(k=null!=(D=ve.tooltip)?D:X.Tooltip)?k:T,ft=null!=(L=null!=(E=ve.arrow)?E:X.Arrow)?L:O,gt=(0,l.Z)(dt,(0,i.Z)({},ge,null!=(N=me.popper)?N:K.popper,{className:(0,a.Z)(ct.popper,null==ge?void 0:ge.className,null==(z=null!=(B=me.popper)?B:K.popper)?void 0:z.className)}),ut),mt=(0,l.Z)(pt,(0,i.Z)({},xe,null!=(F=me.transition)?F:K.transition),ut),vt=(0,l.Z)(ht,(0,i.Z)({},null!=(j=me.tooltip)?j:K.tooltip,{className:(0,a.Z)(ct.tooltip,null==(V=null!=($=me.tooltip)?$:K.tooltip)?void 0:V.className)}),ut),yt=(0,l.Z)(ft,(0,i.Z)({},null!=(W=me.arrow)?W:K.arrow,{className:(0,a.Z)(ct.arrow,null==(H=null!=(G=me.arrow)?G:K.arrow)?void 0:H.className)}),ut);return(0,C.jsxs)(o.Fragment,{children:[o.cloneElement(Y,at),(0,C.jsx)(dt,(0,i.Z)({as:null!=fe?fe:g.Z,placement:he,anchorEl:ae?{getBoundingClientRect:()=>({top:A.y,left:A.x,right:A.x,bottom:A.y,width:0,height:0})}:ke,popperRef:rt,open:!!ke&&Ee,id:Ne,transition:!0},st,gt,{popperOptions:lt,children:({TransitionProps:e})=>(0,C.jsx)(pt,(0,i.Z)({timeout:we.transitions.duration.shorter},e,mt,{children:(0,C.jsxs)(ht,(0,i.Z)({},vt,{children:[ye,q?(0,C.jsx)(ft,(0,i.Z)({},yt,{ref:Ze})):null]}))}))}))]})}))},1759:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(3907),l=n(8842),u=n(1628),c=n(6820),d=n(8115),p=n(2112),h=n(7824);function f(e){return(0,h.Z)("MuiTypography",e)}(0,p.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var g=n(1874);const m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],v=(0,u.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,d.Z)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,i.Z)({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiTypography"}),o=(e=>b[e]||e)(n.color),u=(0,s.Z)((0,i.Z)({},n,{color:o})),{align:p="inherit",className:h,component:x,gutterBottom:_=!1,noWrap:w=!1,paragraph:S=!1,variant:k="body1",variantMapping:C=y}=u,M=(0,r.Z)(u,m),Z=(0,i.Z)({},u,{align:p,color:o,className:h,component:x,gutterBottom:_,noWrap:w,paragraph:S,variant:k,variantMapping:C}),T=x||(S?"p":C[k]||y[k])||"span",O=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,"inherit"!==e.align&&`align${(0,d.Z)(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,l.Z)(s,f,a)})(Z);return(0,g.jsx)(v,(0,i.Z)({as:T,ref:t,ownerState:Z,className:(0,a.Z)(O.root,h)},M))}))},7818:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(1551),i=n(557),o=n(9953),a=n(4923),s=n(8842),l=n(8115),u=n(1628),c=n(7421),d=n(7139),p=n(1459),h=n(2112),f=n(7824);function g(e){return(0,f.Z)("PrivateSwitchBase",e)}(0,h.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var m=n(1874);const v=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],y=(0,u.ZP)(p.Z)((({ownerState:e})=>(0,i.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),b=(0,u.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),x=o.forwardRef((function(e,t){const{autoFocus:n,checked:o,checkedIcon:u,className:p,defaultChecked:h,disabled:f,disableFocusRipple:x=!1,edge:_=!1,icon:w,id:S,inputProps:k,inputRef:C,name:M,onBlur:Z,onChange:T,onFocus:O,readOnly:P,required:I=!1,tabIndex:A,type:R,value:D}=e,L=(0,r.Z)(e,v),[E,N]=(0,c.Z)({controlled:o,default:Boolean(h),name:"SwitchBase",state:"checked"}),z=(0,d.Z)();let B=f;z&&void 0===B&&(B=z.disabled);const F="checkbox"===R||"radio"===R,j=(0,i.Z)({},e,{checked:E,disabled:B,disableFocusRipple:x,edge:_}),V=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${(0,l.Z)(i)}`],input:["input"]};return(0,s.Z)(o,g,t)})(j);return(0,m.jsxs)(y,(0,i.Z)({component:"span",className:(0,a.Z)(V.root,p),centerRipple:!0,focusRipple:!x,disabled:B,tabIndex:null,role:void 0,onFocus:e=>{O&&O(e),z&&z.onFocus&&z.onFocus(e)},onBlur:e=>{Z&&Z(e),z&&z.onBlur&&z.onBlur(e)},ownerState:j,ref:t},L,{children:[(0,m.jsx)(b,(0,i.Z)({autoFocus:n,checked:o,defaultChecked:h,className:V.input,disabled:B,id:F?S:void 0,name:M,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;N(t),T&&T(e,t)},readOnly:P,ref:C,required:I,ownerState:j,tabIndex:A,type:R},"checkbox"===R&&void 0===D?{}:{value:D},k)),E?u:w]}))}))},7799:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(9953);var r=n(1704),i=n(1874);const o=(0,r.Z)((0,i.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},6476:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(9953);var r=n(1704),i=n(1874);const o=(0,r.Z)((0,i.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")},8378:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var r=n(557),i=n(1551),o=n(4968),a=n(2131),s=n(7259),l=n(2921),u=n(7933);var c=n(1280);const d={black:"#000",white:"#fff"},p={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"},h={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"},f={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"},g={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"},m={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"},v={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"},y={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"},b=["mode","contrastThreshold","tonalOffset"],x={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:d.white,default:d.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}},_={text:{primary:d.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:d.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 w(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,c.$n)(e.main,i):"dark"===t&&(e.dark=(0,c._j)(e.main,o)))}function S(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,i.Z)(e,b),u=e.primary||function(e="light"){return"dark"===e?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),S=e.secondary||function(e="light"){return"dark"===e?{main:h[200],light:h[50],dark:h[400]}:{main:h[500],light:h[300],dark:h[700]}}(t),k=e.error||function(e="light"){return"dark"===e?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(t),C=e.info||function(e="light"){return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),M=e.success||function(e="light"){return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),Z=e.warning||function(e="light"){return"dark"===e?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(t);function T(e){return(0,c.mi)(e,_.text.primary)>=n?_.text.primary:x.text.primary}const O=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e=(0,r.Z)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error((0,o.Z)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error((0,o.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return w(e,"light",i,s),w(e,"dark",a,s),e.contrastText||(e.contrastText=T(e.main)),e},P={dark:_,light:x};return(0,a.Z)((0,r.Z)({common:(0,r.Z)({},d),mode:t,primary:O({color:u,name:"primary"}),secondary:O({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:O({color:k,name:"error"}),warning:O({color:Z,name:"warning"}),info:O({color:C,name:"info"}),success:O({color:M,name:"success"}),grey:p,contrastThreshold:n,getContrastText:T,augmentColor:O,tonalOffset:s},P[t]),l)}const k=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const C={textTransform:"uppercase"},M='"Roboto", "Helvetica", "Arial", sans-serif';function Z(e,t){const n="function"==typeof t?t(e):t,{fontFamily:o=M,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:h,pxToRem:f}=n,g=(0,i.Z)(n,k);const m=s/14,v=f||(e=>e/p*m+"rem"),y=(e,t,n,i,a)=>{return(0,r.Z)({fontFamily:o,fontWeight:e,fontSize:v(t),lineHeight:n},o===M?{letterSpacing:(s=i/t,Math.round(1e5*s)/1e5)+"em"}:{},a,h);var s},b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(u,48,1.167,0),h4:y(u,34,1.235,.25),h5:y(u,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(u,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(u,16,1.5,.15),body2:y(u,14,1.43,.15),button:y(c,14,1.75,.4,C),caption:y(u,12,1.66,.4),overline:y(u,12,2.66,1,C),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.Z)((0,r.Z)({htmlFontSize:p,pxToRem:v,fontFamily:o,fontSize:s,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:d},b),g,{clone:!1})}const T=.2,O=.14,P=.12;function I(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${T})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${O})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${P})`].join(",")}const A=["none",I(0,2,1,-1,0,1,1,0,0,1,3,0),I(0,3,1,-2,0,2,2,0,0,1,5,0),I(0,3,3,-2,0,3,4,0,0,1,8,0),I(0,2,4,-1,0,4,5,0,0,1,10,0),I(0,3,5,-1,0,5,8,0,0,1,14,0),I(0,3,5,-1,0,6,10,0,0,1,18,0),I(0,4,5,-2,0,7,10,1,0,2,16,1),I(0,5,5,-3,0,8,10,1,0,3,14,2),I(0,5,6,-3,0,9,12,1,0,3,16,2),I(0,6,6,-3,0,10,14,1,0,4,18,3),I(0,6,7,-4,0,11,15,1,0,4,20,3),I(0,7,8,-4,0,12,17,2,0,5,22,4),I(0,7,8,-4,0,13,19,2,0,5,24,4),I(0,7,9,-4,0,14,21,2,0,5,26,4),I(0,8,9,-5,0,15,22,2,0,6,28,5),I(0,8,10,-5,0,16,24,2,0,6,30,5),I(0,8,11,-5,0,17,26,2,0,6,32,5),I(0,9,11,-5,0,18,28,2,0,7,34,6),I(0,9,12,-6,0,19,29,2,0,7,36,6),I(0,10,13,-6,0,20,31,3,0,8,38,7),I(0,10,13,-6,0,21,33,3,0,8,40,7),I(0,10,14,-6,0,22,35,3,0,8,42,7),I(0,11,14,-7,0,23,36,3,0,9,44,8),I(0,11,15,-7,0,24,38,3,0,9,46,8)];var R=n(3873);const D={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},L=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function E(e={},...t){const{mixins:n={},palette:c={},transitions:d={},typography:p={}}=e,h=(0,i.Z)(e,L);if(e.vars)throw new Error((0,o.Z)(18));const f=S(c),g=(0,s.Z)(e);let m=(0,a.Z)(g,{mixins:(v=g.breakpoints,y=n,(0,r.Z)({toolbar:{minHeight:56,[v.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[v.up("sm")]:{minHeight:64}}},y)),palette:f,shadows:A.slice(),typography:Z(f,p),transitions:(0,R.ZP)(d),zIndex:(0,r.Z)({},D)});var v,y;return m=(0,a.Z)(m,h),m=t.reduce(((e,t)=>(0,a.Z)(e,t)),m),m.unstable_sxConfig=(0,r.Z)({},l.Z,null==h?void 0:h.unstable_sxConfig),m.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},m}const N=E},3873:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>c,x9:()=>s});var r=n(1551),i=n(557);const o=["duration","easing","delay"],a={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)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return`${Math.round(e)}ms`}function u(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function c(e){const t=(0,i.Z)({},a,e.easing),n=(0,i.Z)({},s,e.duration);return(0,i.Z)({getAutoHeightDuration:u,create:(e=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:u=0}=i;(0,r.Z)(i,o);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof a?a:l(a)} ${s} ${"string"==typeof u?u:l(u)}`)).join(",")}},e,{easing:t,duration:n})}},7962:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(8378).Z)()},1628:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>C,FO:()=>w,Dz:()=>S});var r=n(1551),i=n(557),o=n(4479),a=n(7259),s=n(8700);const l=["variant"];function u(e){return 0===e.length}function c(e){const{variant:t}=e,n=(0,r.Z)(e,l);let i=t||"";return Object.keys(n).sort().forEach((t=>{i+="color"===t?u(i)?e[t]:(0,s.Z)(e[t]):`${u(i)?t:(0,s.Z)(t)}${(0,s.Z)(e[t].toString())}`})),i}var d=n(7933);const p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],h=["theme"],f=["theme"];function g(e){return 0===Object.keys(e).length}const m=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,v=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=c(e.props);r[t]=e.style})),r},y=(e,t,n,r)=>{var i,o;const{ownerState:a={}}=e,s=[],l=null==n||null==(i=n.components)||null==(o=i[r])?void 0:o.variants;return l&&l.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[c(n.props)])})),s};function b(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const x=(0,a.Z)();var _=n(7962);const w=e=>b(e)&&"classes"!==e,S=b,k=function(e={}){const{defaultTheme:t=x,rootShouldForwardProp:n=b,slotShouldForwardProp:a=b}=e,s=e=>{const n=g(e.theme)?t:e.theme;return(0,d.Z)((0,i.Z)({},e,{theme:n}))};return s.__mui_systemSx=!0,(e,l={})=>{(0,o.Co)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:u,slot:c,skipVariantsResolver:d,skipSx:x,overridesResolver:_}=l,w=(0,r.Z)(l,p),S=void 0!==d?d:c&&"Root"!==c||!1,k=x||!1;let C=b;"Root"===c?C=n:c?C=a:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const M=(0,o.ZP)(e,(0,i.Z)({shouldForwardProp:C,label:undefined},w)),Z=(e,...n)=>{const o=n?n.map((e=>"function"==typeof e&&e.__emotion_real!==e?n=>{let{theme:o}=n,a=(0,r.Z)(n,h);return e((0,i.Z)({theme:g(o)?t:o},a))}:e)):[];let a=e;u&&_&&o.push((e=>{const n=g(e.theme)?t:e.theme,r=m(u,n);if(r){const t={};return Object.entries(r).forEach((([r,o])=>{t[r]="function"==typeof o?o((0,i.Z)({},e,{theme:n})):o})),_(e,t)}return null})),u&&!S&&o.push((e=>{const n=g(e.theme)?t:e.theme;return y(e,v(u,n),n,u)})),k||o.push(s);const l=o.length-n.length;if(Array.isArray(e)&&l>0){const t=new Array(l).fill("");a=[...e,...t],a.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(a=n=>{let{theme:o}=n,a=(0,r.Z)(n,f);return e((0,i.Z)({theme:g(o)?t:o},a))});return M(a,...o)};return M.withConfig&&(Z.withConfig=M.withConfig),Z}}({defaultTheme:_.Z,rootShouldForwardProp:w}),C=k},5401:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(9953);var r=n(9335),i=n(7962);function o(){return(0,r.Z)(i.Z)}},6820:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4280);var i=n(9335);function o({props:e,name:t,defaultTheme:n}){const o=function(e){const{theme:t,name:n,props:i}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,i):i}({theme:(0,i.Z)(n),name:t,props:e});return o}var a=n(7962);function s({props:e,name:t}){return o({props:e,name:t,defaultTheme:a.Z})}},4743:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,n:()=>r});const r=e=>e.scrollTop;function i(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}},8115:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(8700).Z},1626:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(4010).Z},1704:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(557),i=n(9953),o=n(6448),a=n(1874);function s(e,t){function n(n,i){return(0,a.jsx)(o.Z,(0,r.Z)({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return n.muiName=o.Z.muiName,i.memo(i.forwardRef(n))}},4897:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(6137).Z},7143:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>i.Z,createChainedFunction:()=>o.Z,createSvgIcon:()=>a.Z,debounce:()=>s.Z,deprecatedPropType:()=>l,isMuiElement:()=>u.Z,ownerDocument:()=>c.Z,ownerWindow:()=>d.Z,requirePropFactory:()=>p,setRef:()=>h,unstable_ClassNameGenerator:()=>_,unstable_useEnhancedEffect:()=>f.Z,unstable_useId:()=>g.Z,unsupportedProp:()=>m,useControlled:()=>v.Z,useEventCallback:()=>y.Z,useForkRef:()=>b.Z,useIsFocusVisible:()=>x.Z});var r=n(4747),i=n(8115),o=n(1626),a=n(1704),s=n(4897);const l=function(e,t){return()=>null};var u=n(2284),c=n(2198),d=n(8404);n(557);const p=function(e,t){return()=>null};const h=n(5183).Z;var f=n(5973),g=n(7183);const m=function(e,t,n,r,i){return null};var v=n(7421),y=n(2373),b=n(4717),x=n(5826);const _={configure:e=>{r.Z.configure(e)}}},2284:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9953);const i=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},2198:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(6128).Z},8404:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(9826).Z},7421:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(1584).Z},5973:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(904).Z},2373:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(731).Z},4717:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(1888).Z},7183:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(5525).Z},5826:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(981).Z},1750:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(9953).createContext(null)},7046:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9953),i=n(1750);function o(){return r.useContext(i.Z)}},3646:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});n(9953);var r=n(9616),i=n(540),o=n(1874);let a;function s(e){const{injectFirst:t,children:n}=e;return t&&a?(0,o.jsx)(r.C,{value:a,children:n}):n}"object"==typeof document&&(a=(0,i.Z)({key:"css",prepend:!0}))},4479:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>x,Co:()=>_});var r=n(9953);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t96?p:h},g=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,u.hC)(t,n,r);(0,d.L)((function(){return(0,u.My)(t,n,r)}));return null};const v=function e(t,n){var o,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var p=g(t,n,s),h=p||f(d),v=!h("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{0,b.push(y[0][0]);for(var x=y.length,_=1;_{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},8428:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(9953),i=n(557),o=n(1750),a=n(7046);const s="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var l=n(1874);const u=function(e){const{children:t,theme:n}=e,u=(0,a.Z)(),c=r.useMemo((()=>{const e=null===u?n:function(e,t){if("function"==typeof t)return t(e);return(0,i.Z)({},e,t)}(u,n);return null!=e&&(e[s]=null!==u),e}),[n,u]);return(0,l.jsx)(o.Z.Provider,{value:c,children:t})};var c=n(9616),d=n(9335);const p={};function h(e){const t=(0,d.Z)();return(0,l.jsx)(c.T.Provider,{value:"object"==typeof t?t:p,children:e.children})}const f=function(e){const{children:t,theme:n}=e;return(0,l.jsx)(u,{theme:n,children:(0,l.jsx)(h,{children:t})})}},8715:(e,t,n)=>{"use strict";n.d(t,{L7:()=>s,P$:()=>l,VO:()=>r,W8:()=>a,k9:()=>o});const r={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${r[e]}px)`};function o(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||i;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=o.breakpoints||i;return Object.keys(t).reduce(((i,o)=>{if(-1!==Object.keys(e.values||r).indexOf(o)){i[e.up(o)]=n(t[o],o)}else{const e=o;i[e]=t[e]}return i}),{})}return n(t)}function a(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function s(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function l({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r{null!=e[t]&&(n[t]=!0)})),n}(e,t),i=Object.keys(r);if(0===i.length)return e;let o;return i.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[o],o=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[o],o=n):t[n]=e,t)),{})}},1280:(e,t,n)=>{"use strict";n.d(t,{$n:()=>d,Fq:()=>u,_4:()=>p,_j:()=>c,mi:()=>l});var r=n(4968);function i(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));let i,a=e.substring(t+1,e.length-1);if("color"===n){if(a=a.split(" "),i=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.Z)(10,i))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:n,values:a,colorSpace:i}}function a(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function s(e){let t="hsl"===(e=o(e)).type||"hsla"===e.type?o(function(e){e=o(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),l=(e,t=(e+n/30)%12)=>i-s*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),a({type:u,values:c})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){const n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,a(e)}function c(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return a(e)}function p(e,t=.15){return s(e)>.5?c(e,t):d(e,t)}},7259:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(557),i=n(1551),o=n(2131);const a=["values","unit","step"],s=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,r.Z)({},e,{[t.key]:t.val})),{})};const l={borderRadius:4};var u=n(9971);var c=n(7933),d=n(2921);const p=["breakpoints","palette","spacing","shape"];const h=function(e={},...t){const{breakpoints:n={},palette:h={},spacing:f,shape:g={}}=e,m=(0,i.Z)(e,p),v=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,l=(0,i.Z)(e,a),u=s(t),c=Object.keys(u);function d(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function p(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${n})`}function h(e,r){const i=c.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[c[i]]?t[c[i]]:r)-o/100}${n})`}return(0,r.Z)({keys:c,values:u,up:d,down:p,between:h,only:function(e){return c.indexOf(e)+1(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(f);let b=(0,o.Z)({breakpoints:v,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},h),spacing:y,shape:(0,r.Z)({},l,g)},m);return b=t.reduce(((e,t)=>(0,o.Z)(e,t)),b),b.unstable_sxConfig=(0,r.Z)({},d.Z,null==m?void 0:m.unstable_sxConfig),b.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},b}},8499:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2131);const i=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},9971:(e,t,n)=>{"use strict";n.d(t,{hB:()=>f,eI:()=>h,NA:()=>g,e6:()=>y,o3:()=>b});var r=n(8715),i=n(5070),o=n(8499);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],i=s[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),c=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...c,...d];function h(e,t,n,r){var o;const a=null!=(o=(0,i.DW)(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function f(e){return h(e,"spacing",8)}function g(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function m(e,t,n,i){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=g(t,n),e)),{})}(u(n),i),a=e[n];return(0,r.k9)(e,a,o)}function v(e,t){const n=f(e.theme);return Object.keys(e).map((r=>m(e,t,r,n))).reduce(o.Z,{})}function y(e){return v(e,c)}function b(e){return v(e,d)}function x(e){return v(e,p)}y.propTypes={},y.filterProps=c,b.propTypes={},b.filterProps=d,x.propTypes={},x.filterProps=p},5070:(e,t,n)=>{"use strict";n.d(t,{DW:()=>o,Jq:()=>a,ZP:()=>s});var r=n(8700),i=n(8715);function o(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:o(e,n)||r,t&&(i=t(i,r,e)),i}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,u=e=>{if(null==e[t])return null;const u=e[t],c=o(e.theme,s)||{};return(0,i.k9)(e,u,(e=>{let i=a(c,l,e);return e===i&&"string"==typeof e&&(i=a(c,l,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n?i:{[n]:i}}))};return u.propTypes={},u.filterProps=[t],u}},2921:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var r=n(8700),i=n(9971),o=n(8715),a=n(5070),s=n(8499);const l=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,s.Z)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};function u(e){return"number"!=typeof e?e:`${e}px solid`}const c=(0,a.ZP)({prop:"border",themeKey:"borders",transform:u}),d=(0,a.ZP)({prop:"borderTop",themeKey:"borders",transform:u}),p=(0,a.ZP)({prop:"borderRight",themeKey:"borders",transform:u}),h=(0,a.ZP)({prop:"borderBottom",themeKey:"borders",transform:u}),f=(0,a.ZP)({prop:"borderLeft",themeKey:"borders",transform:u}),g=(0,a.ZP)({prop:"borderColor",themeKey:"palette"}),m=(0,a.ZP)({prop:"borderTopColor",themeKey:"palette"}),v=(0,a.ZP)({prop:"borderRightColor",themeKey:"palette"}),y=(0,a.ZP)({prop:"borderBottomColor",themeKey:"palette"}),b=(0,a.ZP)({prop:"borderLeftColor",themeKey:"palette"}),x=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,i.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,i.NA)(t,e)});return(0,o.k9)(e,e.borderRadius,n)}return null};x.propTypes={},x.filterProps=["borderRadius"];l(c,d,p,h,f,g,m,v,y,b,x);const _=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,i.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,i.NA)(t,e)});return(0,o.k9)(e,e.gap,n)}return null};_.propTypes={},_.filterProps=["gap"];const w=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,i.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,i.NA)(t,e)});return(0,o.k9)(e,e.columnGap,n)}return null};w.propTypes={},w.filterProps=["columnGap"];const S=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,i.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,i.NA)(t,e)});return(0,o.k9)(e,e.rowGap,n)}return null};S.propTypes={},S.filterProps=["rowGap"];l(_,w,S,(0,a.ZP)({prop:"gridColumn"}),(0,a.ZP)({prop:"gridRow"}),(0,a.ZP)({prop:"gridAutoFlow"}),(0,a.ZP)({prop:"gridAutoColumns"}),(0,a.ZP)({prop:"gridAutoRows"}),(0,a.ZP)({prop:"gridTemplateColumns"}),(0,a.ZP)({prop:"gridTemplateRows"}),(0,a.ZP)({prop:"gridTemplateAreas"}),(0,a.ZP)({prop:"gridArea"}));function k(e,t){return"grey"===t?t:e}l((0,a.ZP)({prop:"color",themeKey:"palette",transform:k}),(0,a.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:k}),(0,a.ZP)({prop:"backgroundColor",themeKey:"palette",transform:k}));function C(e){return e<=1&&0!==e?100*e+"%":e}const M=(0,a.ZP)({prop:"width",transform:C}),Z=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,i;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(i=r.values)?void 0:i[t])||o.VO[t]||C(t)}};return(0,o.k9)(e,e.maxWidth,t)}return null};Z.filterProps=["maxWidth"];const T=(0,a.ZP)({prop:"minWidth",transform:C}),O=(0,a.ZP)({prop:"height",transform:C}),P=(0,a.ZP)({prop:"maxHeight",transform:C}),I=(0,a.ZP)({prop:"minHeight",transform:C}),A=((0,a.ZP)({prop:"size",cssProperty:"width",transform:C}),(0,a.ZP)({prop:"size",cssProperty:"height",transform:C}),l(M,Z,T,O,P,I,(0,a.ZP)({prop:"boxSizing"})),e=>t=>{if(void 0!==t[e]&&null!==t[e]){const n=n=>{var i;let o=null==(i=t.theme.typography)?void 0:i[n];var a,s,l,u,c;("object"==typeof o&&(o=null),o)||(o=null==(a=t.theme.typography)?void 0:a[`${e}${"default"===t[e]||t[e]===e?"":(0,r.Z)(null==(s=t[e])?void 0:s.toString())}`]);o||(o=null!=(l=null==(u=t.theme.typography)||null==(c=u[n])?void 0:c[e])?l:n);return{[e]:o}};return(0,o.k9)(t,t[e],n)}return null}),R={border:{themeKey:"borders",transform:u},borderTop:{themeKey:"borders",transform:u},borderRight:{themeKey:"borders",transform:u},borderBottom:{themeKey:"borders",transform:u},borderLeft:{themeKey:"borders",transform:u},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:x},color:{themeKey:"palette",transform:k},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:k},backgroundColor:{themeKey:"palette",transform:k},p:{style:i.o3},pt:{style:i.o3},pr:{style:i.o3},pb:{style:i.o3},pl:{style:i.o3},px:{style:i.o3},py:{style:i.o3},padding:{style:i.o3},paddingTop:{style:i.o3},paddingRight:{style:i.o3},paddingBottom:{style:i.o3},paddingLeft:{style:i.o3},paddingX:{style:i.o3},paddingY:{style:i.o3},paddingInline:{style:i.o3},paddingInlineStart:{style:i.o3},paddingInlineEnd:{style:i.o3},paddingBlock:{style:i.o3},paddingBlockStart:{style:i.o3},paddingBlockEnd:{style:i.o3},m:{style:i.e6},mt:{style:i.e6},mr:{style:i.e6},mb:{style:i.e6},ml:{style:i.e6},mx:{style:i.e6},my:{style:i.e6},margin:{style:i.e6},marginTop:{style:i.e6},marginRight:{style:i.e6},marginBottom:{style:i.e6},marginLeft:{style:i.e6},marginX:{style:i.e6},marginY:{style:i.e6},marginInline:{style:i.e6},marginInlineStart:{style:i.e6},marginInlineEnd:{style:i.e6},marginBlock:{style:i.e6},marginBlockStart:{style:i.e6},marginBlockEnd:{style:i.e6},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:_},rowGap:{style:S},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:C},maxWidth:{style:Z},minWidth:{transform:C},height:{transform:C},maxHeight:{transform:C},minHeight:{transform:C},boxSizing:{},fontFamily:{themeKey:"typography",style:A("fontFamily")},fontSize:{themeKey:"typography",style:A("fontSize")},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography",style:A("fontWeight")},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},3907:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(557),i=n(1551),o=n(2131),a=n(2921);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.Z;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function u(e){const{sx:t}=e,n=(0,i.Z)(e,s),{systemProps:a,otherProps:u}=l(n);let c;return c=Array.isArray(t)?[a,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return(0,o.P)(n)?(0,r.Z)({},a,n):a}:(0,r.Z)({},a,t),(0,r.Z)({},u,{sx:c})}},7933:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(8700),i=n(8499),o=n(5070),a=n(8715),s=n(2921);const l=function(){function e(e,t,n,i){const s={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:u=e,themeKey:c,transform:d,style:p}=l;if(null==t)return null;const h=(0,o.DW)(n,c)||{};if(p)return p(s);return(0,a.k9)(s,t,(t=>{let n=(0,o.Jq)(h,d,t);return t===n&&"string"==typeof t&&(n=(0,o.Jq)(h,d,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===u?n:{[u]:n}}))}return function t(n){var r;const{sx:o,theme:l={}}=n||{};if(!o)return null;const u=null!=(r=l.unstable_sxConfig)?r:s.Z;function c(n){let r=n;if("function"==typeof n)r=n(l);else if("object"!=typeof n)return n;if(!r)return null;const o=(0,a.W8)(l.breakpoints),s=Object.keys(o);let c=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],d=l,"function"==typeof s?s(d):s);var s,d;if(null!=o)if("object"==typeof o)if(u[n])c=(0,i.Z)(c,e(n,o,l,u));else{const e=(0,a.k9)({theme:l},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?c=(0,i.Z)(c,e):c[n]=t({sx:o,theme:l})}else c=(0,i.Z)(c,e(n,o,l,u))})),(0,a.L7)(s,c)}return Array.isArray(o)?o.map(c):c(o)}}();l.filterProps=["sx"];const u=l},9335:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7259),i=n(9206);const o=(0,r.Z)();const a=function(e=o){return(0,i.Z)(e)}},9206:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7046);const i=function(e=null){const t=(0,r.Z)();return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},4747:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const r=e=>e,i=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},8700:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4968);function i(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},8842:(e,t,n)=>{"use strict";function r(e,t,n=undefined){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{Z:()=>r})},4010:(e,t,n)=>{"use strict";function r(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,{Z:()=>r})},6137:(e,t,n)=>{"use strict";function r(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}n.d(t,{Z:()=>r})},2131:(e,t,n)=>{"use strict";n.d(t,{P:()=>i,Z:()=>a});var r=n(557);function i(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function o(e){if(!i(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=o(e[n])})),t}function a(e,t,n={clone:!0}){const s=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=i(t[r])?o(t[r]):t[r]:s[r]=t[r])})),s}},4968:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;er})},7824:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(4747);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function o(e,t,n="Mui"){const o=i[t];return o?`${n}-${o}`:`${r.Z.generate(e)}-${t}`}},2112:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7824);function i(e,t,n="Mui"){const i={};return t.forEach((t=>{i[t]=(0,r.Z)(e,t,n)})),i}},602:(e,t,n)=>{"use strict";function r(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}n.d(t,{Z:()=>r})},6128:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:()=>r})},9826:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6128);function i(e){return(0,r.Z)(e).defaultView||window}},4280:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(557);function i(e,t){const n=(0,r.Z)({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.Z)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const a=e[o]||{},s=t[o];n[o]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[o]=(0,r.Z)({},s),Object.keys(a).forEach((e=>{n[o][e]=i(a[e],s[e])}))):n[o]=s:n[o]=a}else void 0===n[o]&&(n[o]=e[o])})),n}},5183:(e,t,n)=>{"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:()=>r})},1584:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9953);function i({controlled:e,default:t,name:n,state:i="value"}){const{current:o}=r.useRef(void 0!==e),[a,s]=r.useState(t);return[o?e:a,r.useCallback((e=>{o||s(e)}),[])]}},904:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9953);const i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},731:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9953),i=n(904);function o(e){const t=r.useRef(e);return(0,i.Z)((()=>{t.current=e})),r.useCallback(((...e)=>(0,t.current)(...e)),[])}},1888:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9953),i=n(5183);function o(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{(0,i.Z)(e,t)}))}),e)}},5525:(e,t,n)=>{"use strict";var r;n.d(t,{Z:()=>s});var i=n(9953);let o=0;const a=(r||(r=n.t(i,2))).useId;function s(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(o+=1,n(`mui-${o}`))}),[t]),r}(e)}},981:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(9953);let i,o=!0,a=!1;const s={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 l(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function c(){"hidden"===this.visibilityState&&a&&(o=!0)}function d(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return o||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!s[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",c,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(i),i=window.setTimeout((()=>{a=!1}),100),t.current=!1,!0)},ref:e}}},9923:(e,t,n)=>{"use strict";var r=n(8884),i=(0,r.__importStar)(n(9953)),o=n(7267),a=n(8757),s=n(7534),l=n(5406),u=n(5608),c=function(e){function t(t){var n=e.call(this,t)||this;return n.echarts=t.echarts,n.ele=null,n.isInitialResize=!0,n}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){this.renderNewEcharts()},t.prototype.componentDidUpdate=function(e){var t=this.props.shouldSetOption;if(!(0,s.isFunction)(t)||t(e,this.props)){if(!(0,u.isEqual)(e.theme,this.props.theme)||!(0,u.isEqual)(e.opts,this.props.opts)||!(0,u.isEqual)(e.onEvents,this.props.onEvents))return this.dispose(),void this.renderNewEcharts();var n=["option","notMerge","lazyUpdate","showLoading","loadingOption"];(0,u.isEqual)((0,a.pick)(this.props,n),(0,a.pick)(e,n))||this.updateEChartsOption(),(0,u.isEqual)(e.style,this.props.style)&&(0,u.isEqual)(e.className,this.props.className)||this.resize()}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)||this.echarts.init(this.ele,this.props.theme,this.props.opts)},t.prototype.dispose=function(){if(this.ele){try{(0,o.clear)(this.ele)}catch(e){console.warn(e)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){var e=this,t=this.props,n=t.onEvents,r=t.onChartReady,i=this.updateEChartsOption();this.bindEvents(i,n||{}),(0,s.isFunction)(r)&&r(i),this.ele&&(0,o.bind)(this.ele,(function(){e.resize()}))},t.prototype.bindEvents=function(e,t){function n(t,n){(0,l.isString)(t)&&(0,s.isFunction)(n)&&e.on(t,(function(t){n(t,e)}))}for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n(r,t[r])},t.prototype.updateEChartsOption=function(){var e=this.props,t=e.option,n=e.notMerge,r=void 0!==n&&n,i=e.lazyUpdate,o=void 0!==i&&i,a=e.showLoading,s=e.loadingOption,l=void 0===s?null:s,u=this.getEchartsInstance();return u.setOption(t,r,o),a?u.showLoading(l):u.hideLoading(),u},t.prototype.resize=function(){var e=this.getEchartsInstance();if(!this.isInitialResize)try{e.resize()}catch(e){console.warn(e)}this.isInitialResize=!1},t.prototype.render=function(){var e=this,t=this.props,n=t.style,o=t.className,a=void 0===o?"":o,s=(0,r.__assign)({height:300},n);return i.default.createElement("div",{ref:function(t){e.ele=t},style:s,className:"echarts-for-react "+a})},t}(i.PureComponent);t.Z=c},5608:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEqual=void 0;var r=(0,n(8884).__importDefault)(n(9162));t.isEqual=r.default},7534:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},5406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=void 0,t.isString=function(e){return"string"==typeof e}},8757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pick=void 0,t.pick=function(e,t){var n={};return t.forEach((function(t){n[t]=e[t]})),n}},6499:(e,t,n)=>{"use strict";n.d(t,{zt:()=>ne,f3:()=>ie,Pi:()=>Q});var r=n(1003),i=n(9953);if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.rC)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var o=n(7966);function a(e){e()}function s(e){return(0,r.Gf)(e)}var l="undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry;function u(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+c}}var c=1e4,d=1e4;var p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var h=l?function(e){var t=new Map,n=1,r=new e((function(e){var n=t.get(e);n&&(n.reaction.dispose(),t.delete(e))}));return{addReactionToTrack:function(e,i,o){var a=n++;return r.register(o,a,e),e.current=u(i),e.current.finalizationRegistryCleanupToken=a,t.set(a,e.current),e.current},recordReactionAsCommitted:function(e){r.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&t.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}(l):function(){var e,t=new Set;function n(){void 0===e&&(e=setTimeout(r,d))}function r(){e=void 0;var r=Date.now();t.forEach((function(e){var n=e.current;n&&r>=n.cleanAt&&(n.reaction.dispose(),e.current=null,t.delete(e))})),t.size>0&&n()}return{addReactionToTrack:function(e,r,i){var o;return e.current=u(r),o=e,t.add(o),n(),e.current},recordReactionAsCommitted:function(e){t.delete(e)},forceCleanupTimerToRunNowForTests:function(){e&&(clearTimeout(e),r())},resetCleanupScheduleForTests:function(){var n,r;if(t.size>0){try{for(var i=p(t),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.current;s&&(s.reaction.dispose(),a.current=null)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.clear()}e&&(clearTimeout(e),e=void 0)}}}(),f=h.addReactionToTrack,g=h.recordReactionAsCommitted,m=(h.resetCleanupScheduleForTests,h.forceCleanupTimerToRunNowForTests,!1);function v(){return m}var y=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function b(e){return"observer".concat(e)}var x=function(){};function _(){return new x}function w(e,t){if(void 0===t&&(t="observed"),v())return e();var n=y(i.useState(_),1)[0],o=y(i.useState(),2)[1],a=function(){return o([])},l=i.useRef(null);if(!l.current)var u=new r.le(b(t),(function(){c.mounted?a():c.changedBeforeMount=!0})),c=f(l,u,n);var d,p,h=l.current.reaction;if(i.useDebugValue(h,s),i.useEffect((function(){return g(l),l.current?(l.current.mounted=!0,l.current.changedBeforeMount&&(l.current.changedBeforeMount=!1,a())):(l.current={reaction:new r.le(b(t),(function(){a()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},a()),function(){l.current.reaction.dispose(),l.current=null}}),[]),h.track((function(){try{d=e()}catch(e){p=e}})),p)throw p;return d}var S="function"==typeof Symbol&&Symbol.for,k=S?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&(0,i.forwardRef)((function(e){return null})).$$typeof,C=S?Symbol.for("react.memo"):"function"==typeof i.memo&&(0,i.memo)((function(e){return null})).$$typeof;function M(e,t){var n;if(C&&e.$$typeof===C)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(v())return e;var r=null!==(n=null==t?void 0:t.forwardRef)&&void 0!==n&&n,o=e,a=e.displayName||e.name;if(k&&e.$$typeof===k&&(r=!0,"function"!=typeof(o=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s,l,u=function(e,t){return w((function(){return o(e,t)}),a)};return""!==a&&(u.displayName=a),e.contextTypes&&(u.contextTypes=e.contextTypes),r&&(u=(0,i.forwardRef)(u)),u=(0,i.memo)(u),s=e,l=u,Object.keys(s).forEach((function(e){Z[e]||Object.defineProperty(l,e,Object.getOwnPropertyDescriptor(s,e))})),u}var Z={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};var T;(T=o.unstable_batchedUpdates)||(T=a),(0,r.jQ)({reactionScheduler:T});var O=0;var P={};function I(e){return P[e]||(P[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+O+")";return O++,t}(e)),P[e]}function A(e,t){if(R(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i2?r-2:0),o=2;o {}` or `render = function() {}` is not supported.")}return t.render=function(){return this.render=v()?r:Y.call(this,r),this.render()},F(t,"componentDidMount",(function(){this[W]=!1,this.render[V]||i.Component.prototype.forceUpdate.call(this)})),F(t,"componentWillUnmount",(function(){if(!v()){var e=this.render[V];if(e)e.dispose(),this.render[V]=null;else{var t=q(this);console.warn("The reactive render of an observer class component ("+t+")\n was overridden after MobX attached. This may result in a memory leak if the\n overridden reactive render was not properly disposed.")}this[W]=!0}})),e}function q(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||""}function Y(e){var t=this;L(this,H,!1),L(this,G,!1);var n=q(this),o=e.bind(this),a=!1,s=function(){var e=new r.le(n+".render()",(function(){if(!a&&(a=!0,!0!==t[W])){var n=!0;try{L(t,G,!0),t[H]||i.Component.prototype.forceUpdate.call(t),n=!1}finally{L(t,G,!1),n&&(e.dispose(),t.render[V]=null)}}}));return e.reactComponent=t,e};return function e(){var t;a=!1;var n=null!=(t=e[V])?t:e[V]=s(),i=void 0,l=void 0;if(n.track((function(){try{l=(0,r.$$)(!1,o)}catch(e){i=e}})),i)throw i;return l}}function X(e,t){return v()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!A(this.props,e)}function K(e,t){var n=I("reactProp_"+t+"_valueHolder"),i=I("reactProp_"+t+"_atomHolder");function o(){return this[i]||L(this,i,(0,r.cp)("reactive "+t)),this[i]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return r.wM&&r.mJ&&(e=(0,r.wM)(!0)),o.call(this).reportObserved(),r.wM&&r.mJ&&(0,r.mJ)(e),this[n]},set:function(e){this[G]||A(this[n],e)?L(this,n,e):(L(this,n,e),L(this,H,!0),o.call(this).reportChanged(),L(this,H,!1))}})}function Q(e){return!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(i.Component,e)||Object.prototype.isPrototypeOf.call(i.PureComponent,e)?U(e):M(e)}function J(){return J=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ee),r=i.useContext(te),o=i.useRef(J({},r,n)).current;return i.createElement(te.Provider,{value:o},t)}function re(e,t,n,r){var o,a,s,l=i.forwardRef((function(n,r){var o=J({},n),a=i.useContext(te);return Object.assign(o,e(a||{},o)||{}),r&&(o.ref=r),i.createElement(t,o)}));return r&&(l=Q(l)),l.isMobxInjector=!0,o=t,a=l,s=Object.getOwnPropertyNames(Object.getPrototypeOf(o)),Object.getOwnPropertyNames(o).forEach((function(e){D[e]||-1!==s.indexOf(e)||Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(o,e))})),l.wrappedComponent=t,l.displayName=function(e,t){var n,r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";n=t?"inject-with-"+t+"("+r+")":"inject("+r+")";return n}(t,n),l}function ie(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";var r=n(9953),i=n(8166);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n