iobroker.eos-admin 9.0.21 → 9.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (762) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +17 -11
  2. package/README.md +37 -9
  3. package/START_HIER_9.0.21.md +53 -0
  4. package/START_HIER_9.0.22.md +48 -0
  5. package/START_HIER_9.0.23.md +47 -0
  6. package/START_HIER_9.0.24.md +70 -0
  7. package/START_HIER_9.0.25.md +60 -0
  8. package/adminWww/.vite/manifest.json +55 -55
  9. package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13760 -13760
  10. package/adminWww/assets/{AdapterUpdateDialog-Dxl_b7Op.js → AdapterUpdateDialog-CLDpmxDx.js} +1 -1
  11. package/adminWww/assets/{Adapters-CVKKhXmI.js → Adapters-BCGeX2v7.js} +1 -1
  12. package/adminWww/assets/{ConfigManager-Bf6nTAkL.js → ConfigManager-B_sJf5_w.js} +1 -1
  13. package/adminWww/assets/{Enums-CJHVJY7t.js → Enums-D3n1pOtc.js} +1 -1
  14. package/adminWww/assets/{Fields-DWHbZKvm.js → Fields-Bdx5gPoT.js} +1 -1
  15. package/adminWww/assets/{Files-a6owMTXA.js → Files-BPK84lYU.js} +1 -1
  16. package/adminWww/assets/{Hosts-LtEMeXpV.js → Hosts--Jr6oLf2.js} +1 -1
  17. package/adminWww/assets/{Instances-DhChziA1.js → Instances-DxTOzFus.js} +1 -1
  18. package/adminWww/assets/{Intro-Cyq9gVDC.js → Intro-CYBGeZtu.js} +1 -1
  19. package/adminWww/assets/{Logs-wcramXsg.js → Logs-CVNC-4S8.js} +1 -1
  20. package/adminWww/assets/{Objects-DINVHd_e.js → Objects-Cqm9Rvym.js} +1 -1
  21. package/adminWww/assets/{Overview-DK4R41zR.js → Overview-JgjcHwlz.js} +1 -1
  22. package/adminWww/assets/{State-DcEACXzL.js → State-BV14HSwZ.js} +1 -1
  23. package/adminWww/assets/{UsedResources-C1LcM0Rb.js → UsedResources-Dz48WzEF.js} +1 -1
  24. package/adminWww/assets/{Users-DvDdSyDY.js → Users-D19YlRCD.js} +1 -1
  25. package/adminWww/assets/{bootstrap-Dbj_GbnP.js → bootstrap-a7POLSDr.js} +4 -4
  26. package/adminWww/assets/{hostInit-BNFIx0-f.js → hostInit-keGjwsZR.js} +1 -1
  27. package/adminWww/assets/{icons-material-DVbdXNgr.js → icons-material-Omb_HCfb.js} +1 -1
  28. package/adminWww/assets/{index-CoKP1NSA.js → index-DqPrQK7T.js} +2 -2
  29. package/adminWww/assets/{installSVGRenderer-CMvku1F1.js → installSVGRenderer-iWfLFoQU.js} +1 -1
  30. package/adminWww/assets/{mf-entry-bootstrap-0-ac330bce.js → mf-entry-bootstrap-0-2a856bb6.js} +2 -2
  31. package/adminWww/index.html +23 -23
  32. package/adminWww/mf-manifest.json +1 -1
  33. package/adminWww/mf-stats.json +1 -1
  34. package/adminWww/remoteEntry-eos-9.0.25.js +12 -0
  35. package/adminWww/remoteEntry.js +1 -1
  36. package/build/lib/eosHistoryBackupScope.js +73 -0
  37. package/build/lib/eosHistoryBackupScope.js.map +1 -0
  38. package/build/lib/eosKiosk.js +348 -0
  39. package/build/lib/eosKiosk.js.map +1 -0
  40. package/build/lib/eosLegacyMigration.js +24 -3
  41. package/build/lib/eosLegacyMigration.js.map +1 -1
  42. package/build/lib/eosLicenseService.js +1 -1
  43. package/build/lib/eosLicenseService.js.map +1 -1
  44. package/build/lib/eosModuleConfigStore.js +2 -2
  45. package/build/lib/eosModuleConfigStore.js.map +1 -1
  46. package/build/lib/eosModuleHost.js +289 -25
  47. package/build/lib/eosModuleHost.js.map +1 -1
  48. package/build/lib/eosModuleHttp.js +71 -8
  49. package/build/lib/eosModuleHttp.js.map +1 -1
  50. package/build/lib/eosModuleProcess.js +317 -0
  51. package/build/lib/eosModuleProcess.js.map +1 -0
  52. package/build/lib/eosModuleProcessProtocol.js +213 -0
  53. package/build/lib/eosModuleProcessProtocol.js.map +1 -0
  54. package/build/lib/eosModuleProcessWorker.js +279 -0
  55. package/build/lib/eosModuleProcessWorker.js.map +1 -0
  56. package/build/lib/eosPostgresProvisioning.js +189 -0
  57. package/build/lib/eosPostgresProvisioning.js.map +1 -0
  58. package/build/lib/eosRuntimeControl.js +224 -0
  59. package/build/lib/eosRuntimeControl.js.map +1 -0
  60. package/build/lib/eosRuntimeHealth.js +170 -0
  61. package/build/lib/eosRuntimeHealth.js.map +1 -0
  62. package/build/lib/eosUiProcess.js +728 -0
  63. package/build/lib/eosUiProcess.js.map +1 -0
  64. package/build/lib/eosUiProcessRpc.js +292 -0
  65. package/build/lib/eosUiProcessRpc.js.map +1 -0
  66. package/build/lib/eosUiProcessWorker.js +443 -0
  67. package/build/lib/eosUiProcessWorker.js.map +1 -0
  68. package/build/lib/eosUiSecretCodec.js +64 -0
  69. package/build/lib/eosUiSecretCodec.js.map +1 -0
  70. package/build/lib/eosUnifiedBoundary.js +28 -4
  71. package/build/lib/eosUnifiedBoundary.js.map +1 -1
  72. package/build/lib/eosUpdateSnapshot.js +32 -1
  73. package/build/lib/eosUpdateSnapshot.js.map +1 -1
  74. package/build/lib/web.js +175 -18
  75. package/build/lib/web.js.map +1 -1
  76. package/build/main.js +6 -2
  77. package/build/main.js.map +1 -1
  78. package/docs/reports/unified-9.0.21/CRA_NACHWEISSTAND.md +159 -0
  79. package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_BACKEND_REVIEW.md +30 -0
  80. package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_UI_REVIEW.md +44 -0
  81. package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_WORKER_REVIEW.md +147 -0
  82. package/docs/reports/unified-9.0.21/CUSTOMER_WORKER_ZWEITPRUEFUNG.md +108 -0
  83. package/docs/reports/unified-9.0.21/DEVICE_STABILITY_REVIEW.md +50 -0
  84. package/docs/reports/unified-9.0.21/EMS_STABILITAET.md +41 -0
  85. package/docs/reports/unified-9.0.21/HISTORY_TARIFF_STABILITY_REVIEW.md +48 -0
  86. package/docs/reports/unified-9.0.21/MQTT_ZWEITPRUEFUNG_EMS.md +47 -0
  87. package/docs/reports/unified-9.0.21/PERSISTENZ_STABILITAET.md +76 -0
  88. package/docs/reports/unified-9.0.21/PRUEFBERICHT.md +64 -0
  89. package/docs/reports/unified-9.0.21/SECURITY_STABILITY_REVIEW.md +118 -0
  90. package/docs/reports/unified-9.0.21/UI_SECURITY_GATE_REVIEW.md +62 -0
  91. package/docs/reports/unified-9.0.21/UPDATE_HTTP_SNAPSHOT_PRUEFUNG.md +46 -0
  92. package/docs/reports/unified-9.0.21/raw/INDEX.json +1307 -0
  93. package/docs/reports/unified-9.0.21/raw/audit-full.log +345 -0
  94. package/docs/reports/unified-9.0.21/raw/audit-full.result.json +14 -0
  95. package/docs/reports/unified-9.0.21/raw/audit-runtime.log +23 -0
  96. package/docs/reports/unified-9.0.21/raw/audit-runtime.result.json +15 -0
  97. package/docs/reports/unified-9.0.21/raw/backend-final.log +5 -0
  98. package/docs/reports/unified-9.0.21/raw/backend-final.result.json +14 -0
  99. package/docs/reports/unified-9.0.21/raw/cra/frontend-installer-sbom.json +32 -0
  100. package/docs/reports/unified-9.0.21/raw/customer-update-glue/root-glue-focused-node24.tap +34 -0
  101. package/docs/reports/unified-9.0.21/raw/customer-update-service/lint.log +0 -0
  102. package/docs/reports/unified-9.0.21/raw/customer-update-service/real920-archive-inspection.json +20 -0
  103. package/docs/reports/unified-9.0.21/raw/customer-update-service/service-node22.log +110 -0
  104. package/docs/reports/unified-9.0.21/raw/customer-update-service/service-node24.log +24 -0
  105. package/docs/reports/unified-9.0.21/raw/customer-update-service/service-verification.json +54 -0
  106. package/docs/reports/unified-9.0.21/raw/customer-update-service/typecheck.log +0 -0
  107. package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-lint.log +0 -0
  108. package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-node22.tap +86 -0
  109. package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-node24.tap +20 -0
  110. package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-strict-typecheck.log +0 -0
  111. package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-typecheck.log +0 -0
  112. package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/independent-worker-probes.cjs +109 -0
  113. package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/node22.tap +86 -0
  114. package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/node24.tap +20 -0
  115. package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/probes-node22.tap +44 -0
  116. package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/probes-node24.tap +13 -0
  117. package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/receipt.json +89 -0
  118. package/docs/reports/unified-9.0.21/raw/customer-update-worker/receipt.json +42 -0
  119. package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-catch-node22.log +1959 -0
  120. package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-test-update-node22.log +1968 -0
  121. package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-test-update-node24.log +337 -0
  122. package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-runtime-review-node22.log +1895 -0
  123. package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-runtime-review-node24.log +317 -0
  124. package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-final-node22.log +1959 -0
  125. package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-final-node24.log +327 -0
  126. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-final-message-test-node22.log +36 -0
  127. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-final-message-test-node24.log +28 -0
  128. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-message-session-node22.log +36 -0
  129. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-message-session-node24.log +28 -0
  130. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-command-replay-repro-node22.log +15 -0
  131. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-command-replay-repro-node24.log +13 -0
  132. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-shutdown-repro-node22.log +16 -0
  133. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-shutdown-repro-node24.log +14 -0
  134. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-resources-node22.log +74 -0
  135. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-resources-node24.log +46 -0
  136. package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-before-drain-test-update.json +206 -0
  137. package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-before-runtime-review.json +150 -0
  138. package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-final.json +275 -0
  139. package/docs/reports/unified-9.0.21/raw/device-mqtt/commands.json +134 -0
  140. package/docs/reports/unified-9.0.21/raw/device-mqtt/env-node22.log +3 -0
  141. package/docs/reports/unified-9.0.21/raw/device-mqtt/env-node24.log +1 -0
  142. package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-drain-test-update-node22.log +2 -0
  143. package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-drain-test-update-node24.log +0 -0
  144. package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-runtime-review-node22.log +2 -0
  145. package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-runtime-review-node24.log +0 -0
  146. package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-final-node22.log +2 -0
  147. package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-final-node24.log +0 -0
  148. package/docs/reports/unified-9.0.21/raw/device-mqtt/mqtt-command-replay-repro.cjs +38 -0
  149. package/docs/reports/unified-9.0.21/raw/device-mqtt/mqtt-shutdown-repro.cjs +31 -0
  150. package/docs/reports/unified-9.0.21/raw/device-mqtt/regression-node22.log +322 -0
  151. package/docs/reports/unified-9.0.21/raw/device-mqtt/regression-node24.log +55 -0
  152. package/docs/reports/unified-9.0.21/raw/device-mqtt/run-evidence.py +23 -0
  153. package/docs/reports/unified-9.0.21/raw/device-mqtt/run-final-evidence.py +20 -0
  154. package/docs/reports/unified-9.0.21/raw/device-mqtt/runtime-lint-920.json +1 -0
  155. package/docs/reports/unified-9.0.21/raw/device-mqtt/runtime-lint-921.json +1 -0
  156. package/docs/reports/unified-9.0.21/raw/device-mqtt/source-hashes.json +16 -0
  157. package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-drain-test-update-node22.log +0 -0
  158. package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-drain-test-update-node24.log +0 -0
  159. package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-runtime-review-node22.log +0 -0
  160. package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-runtime-review-node24.log +0 -0
  161. package/docs/reports/unified-9.0.21/raw/device-mqtt/types-final-node22.log +0 -0
  162. package/docs/reports/unified-9.0.21/raw/device-mqtt/types-final-node24.log +0 -0
  163. package/docs/reports/unified-9.0.21/raw/ems/baseline-files-eslint.json +1 -0
  164. package/docs/reports/unified-9.0.21/raw/ems/changed-files-eslint.json +1 -0
  165. package/docs/reports/unified-9.0.21/raw/ems/engine.patch +38 -0
  166. package/docs/reports/unified-9.0.21/raw/ems/eslint-delta.json +6 -0
  167. package/docs/reports/unified-9.0.21/raw/ems/evidence.json +171 -0
  168. package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-baseline-node24.log +124 -0
  169. package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-node22.log +56 -0
  170. package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-node24.log +15 -0
  171. package/docs/reports/unified-9.0.21/raw/ems/farm-owned-methods.patch +133 -0
  172. package/docs/reports/unified-9.0.21/raw/ems/generated-regression-node22.log +460 -0
  173. package/docs/reports/unified-9.0.21/raw/ems/generated-regression-node24.log +82 -0
  174. package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-frozen-node22.log +170 -0
  175. package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-frozen-node24.log +33 -0
  176. package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-review-node22.log +153 -0
  177. package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-review-node24.log +39 -0
  178. package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-reviewed-node22.log +170 -0
  179. package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-reviewed-node24.log +33 -0
  180. package/docs/reports/unified-9.0.21/raw/ems/mqtt-queue-inheritance-before.log +28 -0
  181. package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-baseline-node24.log +64 -0
  182. package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-initial-timing.log +32 -0
  183. package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-node22.log +44 -0
  184. package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-node24.log +13 -0
  185. package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-session-review.cjs +23 -0
  186. package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-session-review.log +119 -0
  187. package/docs/reports/unified-9.0.21/raw/ems/nvp-baseline-node22.log +170 -0
  188. package/docs/reports/unified-9.0.21/raw/ems/nvp-baseline-node24.log +121 -0
  189. package/docs/reports/unified-9.0.21/raw/ems/nvp-node22.log +68 -0
  190. package/docs/reports/unified-9.0.21/raw/ems/nvp-node24.log +17 -0
  191. package/docs/reports/unified-9.0.21/raw/ems/ui-code-delta-inventory.json +32 -0
  192. package/docs/reports/unified-9.0.21/raw/ems/ui-docs-check.log +6 -0
  193. package/docs/reports/unified-9.0.21/raw/ems/ui-farm-fingerprint-moves.json +74 -0
  194. package/docs/reports/unified-9.0.21/raw/ems/ui-lint-policy-tests.log +6 -0
  195. package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-final-node22.log +5 -0
  196. package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-final-node24.log +8 -0
  197. package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-initial.log +6 -0
  198. package/docs/reports/unified-9.0.21/raw/ems/ui-main-full-delta.patch +135 -0
  199. package/docs/reports/unified-9.0.21/raw/ems/ui-reviewed-changes.json +93 -0
  200. package/docs/reports/unified-9.0.21/raw/ems/ui-reviewed-findings-before.json +3185 -0
  201. package/docs/reports/unified-9.0.21/raw/ems/ui-security-final-node22.json +28833 -0
  202. package/docs/reports/unified-9.0.21/raw/ems/ui-security-final-node24.json +28833 -0
  203. package/docs/reports/unified-9.0.21/raw/ems/ui-security-inventory-before.json +28991 -0
  204. package/docs/reports/unified-9.0.21/raw/ems/update-ui-reviewed-findings.cjs +59 -0
  205. package/docs/reports/unified-9.0.21/raw/frontend-build.log +152 -0
  206. package/docs/reports/unified-9.0.21/raw/frontend-build.result.json +14 -0
  207. package/docs/reports/unified-9.0.21/raw/frontend-installer-sbom.json +32 -0
  208. package/docs/reports/unified-9.0.21/raw/history/baseline920-influx-sequence-node24.log +12 -0
  209. package/docs/reports/unified-9.0.21/raw/history/baseline920-outage-node24.log +64 -0
  210. package/docs/reports/unified-9.0.21/raw/history/cra-tariff-source-node22.log +38 -0
  211. package/docs/reports/unified-9.0.21/raw/history/cra-tariff-source-node24.log +36 -0
  212. package/docs/reports/unified-9.0.21/raw/history/lint-baseline-comparison.json +83 -0
  213. package/docs/reports/unified-9.0.21/raw/history/lint-scope.cjs +29 -0
  214. package/docs/reports/unified-9.0.21/raw/history/regression-node22.log +438 -0
  215. package/docs/reports/unified-9.0.21/raw/history/regression-node24.log +75 -0
  216. package/docs/reports/unified-9.0.21/raw/history/results-node22.json +37 -0
  217. package/docs/reports/unified-9.0.21/raw/history/results-node24.json +66 -0
  218. package/docs/reports/unified-9.0.21/raw/history/run-checks.py +18 -0
  219. package/docs/reports/unified-9.0.21/raw/history/source-evidence.json +83 -0
  220. package/docs/reports/unified-9.0.21/raw/installer-build.log +26 -0
  221. package/docs/reports/unified-9.0.21/raw/installer-build.result.json +14 -0
  222. package/docs/reports/unified-9.0.21/raw/keygen-source.json +6 -0
  223. package/docs/reports/unified-9.0.21/raw/lint-final.log +16 -0
  224. package/docs/reports/unified-9.0.21/raw/lint-final.result.json +14 -0
  225. package/docs/reports/unified-9.0.21/raw/modules-build.log +5 -0
  226. package/docs/reports/unified-9.0.21/raw/modules-build.result.json +14 -0
  227. package/docs/reports/unified-9.0.21/raw/node22-tests-final.log +13274 -0
  228. package/docs/reports/unified-9.0.21/raw/node22-tests-final.result.json +13 -0
  229. package/docs/reports/unified-9.0.21/raw/node22-typecheck-final.log +7 -0
  230. package/docs/reports/unified-9.0.21/raw/node22-typecheck-final.result.json +14 -0
  231. package/docs/reports/unified-9.0.21/raw/node22-version.log +1 -0
  232. package/docs/reports/unified-9.0.21/raw/node24-tests-final.log +2223 -0
  233. package/docs/reports/unified-9.0.21/raw/node24-tests-final.result.json +13 -0
  234. package/docs/reports/unified-9.0.21/raw/node24-typecheck-final.log +5 -0
  235. package/docs/reports/unified-9.0.21/raw/node24-typecheck-final.result.json +14 -0
  236. package/docs/reports/unified-9.0.21/raw/node24-version.log +1 -0
  237. package/docs/reports/unified-9.0.21/raw/persistence/920-http-draft-revision-node24.log +50 -0
  238. package/docs/reports/unified-9.0.21/raw/persistence/920-late-commit-overwrite-node24.log +30 -0
  239. package/docs/reports/unified-9.0.21/raw/persistence/920-save-lifecycle-node24.log +59 -0
  240. package/docs/reports/unified-9.0.21/raw/persistence/921-backend-types.log +0 -0
  241. package/docs/reports/unified-9.0.21/raw/persistence/921-editor-lint.log +0 -0
  242. package/docs/reports/unified-9.0.21/raw/persistence/921-eebus-editor-typecheck.log +0 -0
  243. package/docs/reports/unified-9.0.21/raw/persistence/921-final-format-review.json +24 -0
  244. package/docs/reports/unified-9.0.21/raw/persistence/921-lint.log +0 -0
  245. package/docs/reports/unified-9.0.21/raw/persistence/921-new-update-http-before.log +177 -0
  246. package/docs/reports/unified-9.0.21/raw/persistence/921-new-update-snapshot-before.log +80 -0
  247. package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node22.log +1019 -0
  248. package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node22.receipt.json +28 -0
  249. package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node24.log +174 -0
  250. package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node24.receipt.json +28 -0
  251. package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-eslint-final.log +0 -0
  252. package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node22.log +137 -0
  253. package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node22.receipt.json +21 -0
  254. package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node24.log +30 -0
  255. package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node24.receipt.json +21 -0
  256. package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-strict-typecheck.log +0 -0
  257. package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-typecheck-final.log +0 -0
  258. package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-after.log +3 -0
  259. package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-before-observation.json +25 -0
  260. package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-repro.cjs +7 -0
  261. package/docs/reports/unified-9.0.21/raw/persistence/source-files.pre-final-format.sha256 +14 -0
  262. package/docs/reports/unified-9.0.21/raw/persistence/source-files.sha256 +14 -0
  263. package/docs/reports/unified-9.0.21/raw/release-overlay/obsolete-assets-920-added.json +94 -0
  264. package/docs/reports/unified-9.0.21/raw/release-overlay/publish-catalog-regression.log +49 -0
  265. package/docs/reports/unified-9.0.21/raw/release-overlay/publish-catalog-regression.result.json +15 -0
  266. package/docs/reports/unified-9.0.21/raw/sbom-runtime.log +7 -0
  267. package/docs/reports/unified-9.0.21/raw/sbom-runtime.result.json +14 -0
  268. package/docs/reports/unified-9.0.21/raw/sbom-vendor-check.log +1 -0
  269. package/docs/reports/unified-9.0.21/raw/sbom-vendor-check.result.json +14 -0
  270. package/docs/reports/unified-9.0.21/raw/security-stability/backend-typecheck.log +0 -0
  271. package/docs/reports/unified-9.0.21/raw/security-stability/boundaries-node22.tap +495 -0
  272. package/docs/reports/unified-9.0.21/raw/security-stability/boundaries-node24.tap +88 -0
  273. package/docs/reports/unified-9.0.21/raw/security-stability/coexistence-node22.tap +179 -0
  274. package/docs/reports/unified-9.0.21/raw/security-stability/coexistence-node24.tap +36 -0
  275. package/docs/reports/unified-9.0.21/raw/security-stability/results.json +118 -0
  276. package/docs/reports/unified-9.0.21/raw/security-stability/upload-admission-before-node22.tap +63 -0
  277. package/docs/reports/unified-9.0.21/raw/security-stability/upload-admission-before-node24.tap +47 -0
  278. package/docs/reports/unified-9.0.21/raw/security-stability/upload-lint.log +0 -0
  279. package/docs/reports/unified-9.0.21/raw/security-stability/upload-node22.tap +148 -0
  280. package/docs/reports/unified-9.0.21/raw/security-stability/upload-node24.tap +30 -0
  281. package/docs/reports/unified-9.0.21/raw/ui-docs-check.log +6 -0
  282. package/docs/reports/unified-9.0.21/raw/ui-docs-check.result.json +14 -0
  283. package/docs/reports/unified-9.0.21/raw/ui-runtime-final.log +7 -0
  284. package/docs/reports/unified-9.0.21/raw/ui-runtime-final.result.json +14 -0
  285. package/docs/reports/unified-9.0.21/raw/ui-runtime-sync.log +1 -0
  286. package/docs/reports/unified-9.0.21/raw/ui-runtime-sync.result.json +14 -0
  287. package/docs/reports/unified-9.0.21/raw/ui-sbom-check.log +6 -0
  288. package/docs/reports/unified-9.0.21/raw/ui-sbom-check.result.json +14 -0
  289. package/docs/reports/unified-9.0.21/raw/ui-sbom-final.log +6 -0
  290. package/docs/reports/unified-9.0.21/raw/ui-sbom-final.result.json +14 -0
  291. package/docs/reports/unified-9.0.21/raw/ui-secret-final.log +6 -0
  292. package/docs/reports/unified-9.0.21/raw/ui-secret-final.result.json +14 -0
  293. package/docs/reports/unified-9.0.21/raw/ui-security-final.log +8 -0
  294. package/docs/reports/unified-9.0.21/raw/ui-security-final.result.json +14 -0
  295. package/docs/reports/unified-9.0.21/raw/update-ui/baseline-ui.log +280 -0
  296. package/docs/reports/unified-9.0.21/raw/update-ui/browser-preview.test.cjs +170 -0
  297. package/docs/reports/unified-9.0.21/raw/update-ui/draft-regression.log +214 -0
  298. package/docs/reports/unified-9.0.21/raw/update-ui/eos-updates-before.ts +171 -0
  299. package/docs/reports/unified-9.0.21/raw/update-ui/lint.log +0 -0
  300. package/docs/reports/unified-9.0.21/raw/update-ui/results.json +90 -0
  301. package/docs/reports/unified-9.0.21/raw/update-ui/source-evidence.json +30 -0
  302. package/docs/reports/unified-9.0.21/raw/update-ui/type-node22.log +0 -0
  303. package/docs/reports/unified-9.0.21/raw/update-ui/type-node24.log +0 -0
  304. package/docs/reports/unified-9.0.21/raw/update-ui/ui-node22.log +98 -0
  305. package/docs/reports/unified-9.0.21/raw/update-ui/ui-node24.log +22 -0
  306. package/docs/reports/unified-9.0.22/BACKUP_POSTGRES_FOLLOWUP.md +44 -0
  307. package/docs/reports/unified-9.0.22/ENERGIEFLUSS_BROWSERPRUEFUNG.md +40 -0
  308. package/docs/reports/unified-9.0.22/ENERGY_FLOW_BACKEND.md +44 -0
  309. package/docs/reports/unified-9.0.22/FLOW_TARIFF_INDEPENDENT_REVIEW.md +33 -0
  310. package/docs/reports/unified-9.0.22/OCPP_STOP_WRITER_REVIEW.md +27 -0
  311. package/docs/reports/unified-9.0.22/POSTGRESQL_SYSTEM_SETUP.md +34 -0
  312. package/docs/reports/unified-9.0.22/PRUEFBERICHT.md +85 -0
  313. package/docs/reports/unified-9.0.22/flow/PRUEFVERMERK.md +42 -0
  314. package/docs/reports/unified-9.0.22/flow/frontend-cadence-tests.log +37 -0
  315. package/docs/reports/unified-9.0.22/flow/frontend-source-hashes.json +13 -0
  316. package/docs/reports/unified-9.0.22/flow/frontend-tests.log +31 -0
  317. package/docs/reports/unified-9.0.22/postgres-history-review.md +43 -0
  318. package/docs/reports/unified-9.0.22/postgres-real-review.tap +21 -0
  319. package/docs/reports/unified-9.0.22/postgres-review-lint.log +0 -0
  320. package/docs/reports/unified-9.0.22/postgres-review-typecheck.log +0 -0
  321. package/docs/reports/unified-9.0.22/postgres-review-unit-api.tap +25 -0
  322. package/docs/reports/unified-9.0.22/raw/INDEX.json +43 -0
  323. package/docs/reports/unified-9.0.22/raw/backup-followup/eslint-backup.log +0 -0
  324. package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-after.tap +13 -0
  325. package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-before.tap +54 -0
  326. package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-test-eslint.log +0 -0
  327. package/docs/reports/unified-9.0.22/raw/backup-followup/influx-real-node24.tap +11 -0
  328. package/docs/reports/unified-9.0.22/raw/backup-followup/scope-hashes.json +51 -0
  329. package/docs/reports/unified-9.0.22/raw/backup-followup/storage-nullable-before.tap +96 -0
  330. package/docs/reports/unified-9.0.22/raw/backup-followup/storage-nullable-flow.tap +12 -0
  331. package/docs/reports/unified-9.0.22/raw/backup-followup/tests-node24.tap +116 -0
  332. package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-backup-scope.log +0 -0
  333. package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-backup.log +0 -0
  334. package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-postgres-setup.log +0 -0
  335. package/docs/reports/unified-9.0.22/raw/current/admin-build.log +152 -0
  336. package/docs/reports/unified-9.0.22/raw/current/availability-final.log +1 -0
  337. package/docs/reports/unified-9.0.22/raw/current/backend-build.log +5 -0
  338. package/docs/reports/unified-9.0.22/raw/current/baseline-repairs.log +60 -0
  339. package/docs/reports/unified-9.0.22/raw/current/baseline-unified.log +1675 -0
  340. package/docs/reports/unified-9.0.22/raw/current/combined-fixes.log +65 -0
  341. package/docs/reports/unified-9.0.22/raw/current/control-final.log +25 -0
  342. package/docs/reports/unified-9.0.22/raw/current/energyflow-browser.json +244 -0
  343. package/docs/reports/unified-9.0.22/raw/current/energyflow-browser.stderr +0 -0
  344. package/docs/reports/unified-9.0.22/raw/current/energyflow-cadence-browser.json +63 -0
  345. package/docs/reports/unified-9.0.22/raw/current/energyflow-cadence-browser.stderr +0 -0
  346. package/docs/reports/unified-9.0.22/raw/current/lint-final.log +5 -0
  347. package/docs/reports/unified-9.0.22/raw/current/lint.log +5 -0
  348. package/docs/reports/unified-9.0.22/raw/current/markdown-build.log +1 -0
  349. package/docs/reports/unified-9.0.22/raw/current/modules-build.log +5 -0
  350. package/docs/reports/unified-9.0.22/raw/current/pre-ocpp-full.log +2337 -0
  351. package/docs/reports/unified-9.0.22/raw/current/production-audit.json +22 -0
  352. package/docs/reports/unified-9.0.22/raw/current/production-audit.stderr +1 -0
  353. package/docs/reports/unified-9.0.22/raw/current/runtime-build-final.log +8 -0
  354. package/docs/reports/unified-9.0.22/raw/current/runtime-build.log +32 -0
  355. package/docs/reports/unified-9.0.22/raw/current/runtime-sync.log +1 -0
  356. package/docs/reports/unified-9.0.22/raw/current/safety-envelope-final.log +1 -0
  357. package/docs/reports/unified-9.0.22/raw/current/sbom-lock-graph.log +1 -0
  358. package/docs/reports/unified-9.0.22/raw/current/sbom.log +6120 -0
  359. package/docs/reports/unified-9.0.22/raw/current/station-permission-final.log +1 -0
  360. package/docs/reports/unified-9.0.22/raw/current/storage-feedforward-final.log +1 -0
  361. package/docs/reports/unified-9.0.22/raw/current/typecheck-final.log +5 -0
  362. package/docs/reports/unified-9.0.22/raw/current/typecheck.log +5 -0
  363. package/docs/reports/unified-9.0.22/raw/ems-control-points/eslint.txt +0 -0
  364. package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-availability.txt +1 -0
  365. package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-safety.txt +1 -0
  366. package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-station.txt +1 -0
  367. package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-tests.tap +124 -0
  368. package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-availability.txt +1 -0
  369. package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-safety.txt +1 -0
  370. package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-station.txt +1 -0
  371. package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-tests.tap +26 -0
  372. package/docs/reports/unified-9.0.22/raw/ems-control-points/typecheck.txt +0 -0
  373. package/docs/reports/unified-9.0.22/raw/flow-backend/core-pv-node22.tap +30 -0
  374. package/docs/reports/unified-9.0.22/raw/flow-backend/core-pv-node24.tap +11 -0
  375. package/docs/reports/unified-9.0.22/raw/flow-backend/environment.json +7 -0
  376. package/docs/reports/unified-9.0.22/raw/flow-backend/lint.log +0 -0
  377. package/docs/reports/unified-9.0.22/raw/flow-backend/node22.tap +164 -0
  378. package/docs/reports/unified-9.0.22/raw/flow-backend/node24.tap +33 -0
  379. package/docs/reports/unified-9.0.22/raw/flow-backend/typecheck.log +0 -0
  380. package/docs/reports/unified-9.0.22/raw/history-ui/browser-runtime.json +11 -0
  381. package/docs/reports/unified-9.0.22/raw/history-ui/browser-smoke.json +49 -0
  382. package/docs/reports/unified-9.0.22/raw/history-ui/browser-smoke.stderr +0 -0
  383. package/docs/reports/unified-9.0.22/raw/history-ui/build.log +18 -0
  384. package/docs/reports/unified-9.0.22/raw/history-ui/environment.json +38 -0
  385. package/docs/reports/unified-9.0.22/raw/history-ui/lint.log +0 -0
  386. package/docs/reports/unified-9.0.22/raw/history-ui/node22.tap +144 -0
  387. package/docs/reports/unified-9.0.22/raw/history-ui/node24.tap +30 -0
  388. package/docs/reports/unified-9.0.22/raw/node22-tests-final.log +14086 -0
  389. package/docs/reports/unified-9.0.22/raw/node22-version.log +1 -0
  390. package/docs/reports/unified-9.0.22/raw/node24-tests-final.log +2356 -0
  391. package/docs/reports/unified-9.0.22/raw/node24-version.log +1 -0
  392. package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-eslint.log +0 -0
  393. package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-node22.tap +72 -0
  394. package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-node24.tap +70 -0
  395. package/docs/reports/unified-9.0.22/raw/postgresql-system/status-eslint.log +0 -0
  396. package/docs/reports/unified-9.0.22/raw/postgresql-system/typecheck.log +0 -0
  397. package/docs/reports/unified-9.0.23/MODULE_PROCESS_IMPLEMENTATION.md +43 -0
  398. package/docs/reports/unified-9.0.23/OCPP_0.4.3_ERGEBNIS.json +24 -0
  399. package/docs/reports/unified-9.0.23/OCPP_0.4.3_PRUEFBERICHT.md +50 -0
  400. package/docs/reports/unified-9.0.23/OCPP_AUTOMATISCHE_ZUORDNUNG.md +49 -0
  401. package/docs/reports/unified-9.0.23/OCPP_CM_INTEGRATION.md +31 -0
  402. package/docs/reports/unified-9.0.23/PROZESSDIAGNOSE.md +35 -0
  403. package/docs/reports/unified-9.0.23/PRUEFBERICHT.md +75 -0
  404. package/docs/reports/unified-9.0.23/UI_EMS_PROZESSGRENZE.md +36 -0
  405. package/docs/reports/unified-9.0.23/UI_PROCESS_INDEPENDENT_FOLLOWUP.md +33 -0
  406. package/docs/reports/unified-9.0.23/module-process-contract-review-node22.tap +86 -0
  407. package/docs/reports/unified-9.0.23/module-process-contract-review-node24.tap +20 -0
  408. package/docs/reports/unified-9.0.23/module-process-contract-review.md +39 -0
  409. package/docs/reports/unified-9.0.23/module-process-contract-review.tap +20 -0
  410. package/docs/reports/unified-9.0.23/module-process-final.tap +27 -0
  411. package/docs/reports/unified-9.0.23/module-process-static.json +57 -0
  412. package/docs/reports/unified-9.0.23/raw/INDEX.json +43 -0
  413. package/docs/reports/unified-9.0.23/raw/build-backend-final.log +5 -0
  414. package/docs/reports/unified-9.0.23/raw/build-frontend.log +152 -0
  415. package/docs/reports/unified-9.0.23/raw/build-installer.log +26 -0
  416. package/docs/reports/unified-9.0.23/raw/build-ui-final.log +7 -0
  417. package/docs/reports/unified-9.0.23/raw/current/evcs-stop-writer-ocpp043.txt +20 -0
  418. package/docs/reports/unified-9.0.23/raw/current/ocpp-runtime-feedback-lint.txt +1 -0
  419. package/docs/reports/unified-9.0.23/raw/current/ocpp-runtime-feedback-tests.txt +28 -0
  420. package/docs/reports/unified-9.0.23/raw/current/runtime-health-browser.json +49 -0
  421. package/docs/reports/unified-9.0.23/raw/current/runtime-health-browser.stderr.txt +0 -0
  422. package/docs/reports/unified-9.0.23/raw/current/runtime-health-lint.txt +1 -0
  423. package/docs/reports/unified-9.0.23/raw/current/runtime-health-tests.txt +27 -0
  424. package/docs/reports/unified-9.0.23/raw/current/runtime-health-types.txt +1 -0
  425. package/docs/reports/unified-9.0.23/raw/eos-production-audit.json +22 -0
  426. package/docs/reports/unified-9.0.23/raw/idle-pwa-node22.log +75 -0
  427. package/docs/reports/unified-9.0.23/raw/idle-pwa-node24.log +22 -0
  428. package/docs/reports/unified-9.0.23/raw/lint-final.log +5 -0
  429. package/docs/reports/unified-9.0.23/raw/node22-tests-final.log +14612 -0
  430. package/docs/reports/unified-9.0.23/raw/node22-version.log +1 -0
  431. package/docs/reports/unified-9.0.23/raw/node24-tests-final.log +2443 -0
  432. package/docs/reports/unified-9.0.23/raw/node24-version.log +1 -0
  433. package/docs/reports/unified-9.0.23/raw/ocpp-auto-discovery.log +21 -0
  434. package/docs/reports/unified-9.0.23/raw/ocpp-discovery-browser.json +55 -0
  435. package/docs/reports/unified-9.0.23/raw/ocpp-discovery-lifecycle-regression.log +48 -0
  436. package/docs/reports/unified-9.0.23/raw/ocpp-production-audit.json +69 -0
  437. package/docs/reports/unified-9.0.23/raw/typecheck-final.log +5 -0
  438. package/docs/reports/unified-9.0.23/raw/ui-process/discovery-review.tap +21 -0
  439. package/docs/reports/unified-9.0.23/raw/ui-process/lint.log +0 -0
  440. package/docs/reports/unified-9.0.23/raw/ui-process/node22.tap +118 -0
  441. package/docs/reports/unified-9.0.23/raw/ui-process/node24.tap +112 -0
  442. package/docs/reports/unified-9.0.23/raw/ui-process/root-typecheck.log +0 -0
  443. package/docs/reports/unified-9.0.23/raw/ui-process/typecheck.log +0 -0
  444. package/docs/reports/unified-9.0.23/raw/ui-process/unified-listen-build-node24.tap +196 -0
  445. package/docs/reports/unified-9.0.23/raw/ui-process/unified-listen-node22.tap +200 -0
  446. package/docs/reports/unified-9.0.23/raw/ui-process/web-lint.log +0 -0
  447. package/docs/reports/unified-9.0.23/raw/ui-process/web-pipeline-node22.tap +92 -0
  448. package/docs/reports/unified-9.0.23/raw/ui-process/web-pipeline-node24.tap +90 -0
  449. package/docs/reports/unified-9.0.23/ui-process-contract-review.md +30 -0
  450. package/docs/reports/unified-9.0.23/ui-process-final-review-node22.tap +50 -0
  451. package/docs/reports/unified-9.0.23/ui-process-final-review-node24.tap +14 -0
  452. package/docs/reports/unified-9.0.23/ui-process-followup-hashes.json +13 -0
  453. package/docs/reports/unified-9.0.23/ui-process-operational-review-node22.tap +30 -0
  454. package/docs/reports/unified-9.0.23/ui-process-operational-review-node24.tap +11 -0
  455. package/docs/reports/unified-9.0.23/ui-process-review-node22.tap +48 -0
  456. package/docs/reports/unified-9.0.23/ui-process-review-node24.tap +46 -0
  457. package/docs/reports/unified-9.0.24/BACKUP_INTEROP_PRUEFBERICHT.md +48 -0
  458. package/docs/reports/unified-9.0.24/KIOSK_FRONTEND_BROWSERPRUEFUNG.md +49 -0
  459. package/docs/reports/unified-9.0.24/KIOSK_UNABHAENGIGER_REVIEW.md +21 -0
  460. package/docs/reports/unified-9.0.24/OCPP_HOST_MIGRATION.md +41 -0
  461. package/docs/reports/unified-9.0.24/OCPP_NAMESPACE_REGELPFAD.md +55 -0
  462. package/docs/reports/unified-9.0.24/OCPP_UNABHAENGIGER_REVIEW.md +37 -0
  463. package/docs/reports/unified-9.0.24/OCPP_VERWALTUNG.md +33 -0
  464. package/docs/reports/unified-9.0.24/PRUEFBERICHT.md +54 -0
  465. package/docs/reports/unified-9.0.24/PUBLISH_OVERLAY_9_0_21.md +23 -0
  466. package/docs/reports/unified-9.0.24/raw/INDEX.json +43 -0
  467. package/docs/reports/unified-9.0.24/raw/backup-interop/ems-independence-node24.tap +9 -0
  468. package/docs/reports/unified-9.0.24/raw/backup-interop/final-node22.tap +175 -0
  469. package/docs/reports/unified-9.0.24/raw/backup-interop/final-node24.tap +35 -0
  470. package/docs/reports/unified-9.0.24/raw/backup-interop/focused-node22.tap +132 -0
  471. package/docs/reports/unified-9.0.24/raw/backup-interop/focused-node24.tap +27 -0
  472. package/docs/reports/unified-9.0.24/raw/backup-interop/kiosk-review-node24.tap +13 -0
  473. package/docs/reports/unified-9.0.24/raw/backup-interop/kiosk-update-snapshot-node24.tap +22 -0
  474. package/docs/reports/unified-9.0.24/raw/backup-interop/lint-source.txt +0 -0
  475. package/docs/reports/unified-9.0.24/raw/backup-interop/lint-tests.txt +0 -0
  476. package/docs/reports/unified-9.0.24/raw/backup-interop/ocpp-backup-node24.tap +10 -0
  477. package/docs/reports/unified-9.0.24/raw/backup-interop/own-source-hashes.json +12 -0
  478. package/docs/reports/unified-9.0.24/raw/backup-interop/types.txt +0 -0
  479. package/docs/reports/unified-9.0.24/raw/backup-interop/update-snapshot-node24.tap +20 -0
  480. package/docs/reports/unified-9.0.24/raw/build.log +200 -0
  481. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser-node22.json +69 -0
  482. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser-node22.stderr.txt +3 -0
  483. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser.json +69 -0
  484. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser.stderr.txt +2 -0
  485. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-http-node22.txt +253 -0
  486. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-http-node24.txt +52 -0
  487. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-lint.txt +0 -0
  488. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-types.txt +0 -0
  489. package/docs/reports/unified-9.0.24/raw/current/ocpp-lease-registration-before.txt +28 -0
  490. package/docs/reports/unified-9.0.24/raw/current/ocpp-namespace-independent-node22.txt +302 -0
  491. package/docs/reports/unified-9.0.24/raw/current/ocpp-namespace-independent-node24.txt +55 -0
  492. package/docs/reports/unified-9.0.24/raw/current/ocpp-native-generic-before.txt +25 -0
  493. package/docs/reports/unified-9.0.24/raw/current/runtime-health-browser.json +49 -0
  494. package/docs/reports/unified-9.0.24/raw/current/runtime-health-browser.stderr.txt +0 -0
  495. package/docs/reports/unified-9.0.24/raw/current/runtime-health-types.txt +0 -0
  496. package/docs/reports/unified-9.0.24/raw/eos-production-audit.json +77 -0
  497. package/docs/reports/unified-9.0.24/raw/kiosk-auth-profiles-node22.log +16 -0
  498. package/docs/reports/unified-9.0.24/raw/kiosk-auth-profiles-node24.log +14 -0
  499. package/docs/reports/unified-9.0.24/raw/kiosk-browser-node22.json +57 -0
  500. package/docs/reports/unified-9.0.24/raw/kiosk-browser-node24.json +57 -0
  501. package/docs/reports/unified-9.0.24/raw/kiosk-idle-node22.log +215 -0
  502. package/docs/reports/unified-9.0.24/raw/kiosk-idle-node24.log +42 -0
  503. package/docs/reports/unified-9.0.24/raw/lint.log +45 -0
  504. package/docs/reports/unified-9.0.24/raw/node22-tests-final.log +15517 -0
  505. package/docs/reports/unified-9.0.24/raw/node22-version.log +1 -0
  506. package/docs/reports/unified-9.0.24/raw/node24-tests-final.log +2595 -0
  507. package/docs/reports/unified-9.0.24/raw/node24-version.log +1 -0
  508. package/docs/reports/unified-9.0.24/raw/ocpp-host-node22.tap +105 -0
  509. package/docs/reports/unified-9.0.24/raw/ocpp-host-node24.tap +24 -0
  510. package/docs/reports/unified-9.0.24/raw/ocpp-host-regression-node22.tap +818 -0
  511. package/docs/reports/unified-9.0.24/raw/ocpp-host-regression-node24.tap +140 -0
  512. package/docs/reports/unified-9.0.24/raw/ocpp-hosted-mapping-browser.log +2 -0
  513. package/docs/reports/unified-9.0.24/raw/ocpp-legacy-mapping-browser.log +2 -0
  514. package/docs/reports/unified-9.0.24/raw/ocpp-namespace-control.log +49 -0
  515. package/docs/reports/unified-9.0.24/raw/publish-overlay-node22.tap +278 -0
  516. package/docs/reports/unified-9.0.24/raw/publish-overlay-node24.tap +52 -0
  517. package/docs/reports/unified-9.0.24/raw/publish-overlay-provenance-922-923.json +32 -0
  518. package/docs/reports/unified-9.0.24/raw/publish-overlay-provenance.json +19 -0
  519. package/docs/reports/unified-9.0.24/raw/typecheck.log +5 -0
  520. package/docs/reports/unified-9.0.25/MIGRATION_INDEPENDENT_REVIEW.md +74 -0
  521. package/docs/reports/unified-9.0.25/OCPP_STARTSPERRE_9.0.24.md +60 -0
  522. package/docs/reports/unified-9.0.25/PRUEFBERICHT.md +78 -0
  523. package/docs/reports/unified-9.0.25/RUNTIME_CONTROLS_BROWSERPRUEFUNG.md +81 -0
  524. package/docs/reports/unified-9.0.25/RUNTIME_CONTROL_BACKEND.md +58 -0
  525. package/docs/reports/unified-9.0.25/RUNTIME_CONTROL_INDEPENDENT_REVIEW.md +66 -0
  526. package/docs/reports/unified-9.0.25/RUNTIME_LOGIN_RECOVERY.md +32 -0
  527. package/docs/reports/unified-9.0.25/TARIFF_UPDATE_PERSISTENCE.md +50 -0
  528. package/docs/reports/unified-9.0.25/UI_CONFIG_COMMIT_ACK.md +51 -0
  529. package/docs/reports/unified-9.0.25/raw/BUILD_CHECKS.json +49 -0
  530. package/docs/reports/unified-9.0.25/raw/INDEX.json +43 -0
  531. package/docs/reports/unified-9.0.25/raw/SBOM_GENERATION.json +42 -0
  532. package/docs/reports/unified-9.0.25/raw/build-backend.log +5 -0
  533. package/docs/reports/unified-9.0.25/raw/build-frontend.log +152 -0
  534. package/docs/reports/unified-9.0.25/raw/build-installer.log +26 -0
  535. package/docs/reports/unified-9.0.25/raw/build-modules.log +5 -0
  536. package/docs/reports/unified-9.0.25/raw/build-ui-runtime.log +7 -0
  537. package/docs/reports/unified-9.0.25/raw/eos-production-audit.json +77 -0
  538. package/docs/reports/unified-9.0.25/raw/eos-production-audit.stderr +1 -0
  539. package/docs/reports/unified-9.0.25/raw/frontend-sbom.stderr +1 -0
  540. package/docs/reports/unified-9.0.25/raw/installer-sbom.stderr +1 -0
  541. package/docs/reports/unified-9.0.25/raw/lint.log +45 -0
  542. package/docs/reports/unified-9.0.25/raw/node22-tests-final.log +15879 -0
  543. package/docs/reports/unified-9.0.25/raw/node22-version.log +1 -0
  544. package/docs/reports/unified-9.0.25/raw/node24-tests-final.log +2653 -0
  545. package/docs/reports/unified-9.0.25/raw/node24-version.log +1 -0
  546. package/docs/reports/unified-9.0.25/raw/runtime-control-backend/runtime-control-backend-node22-final.tap +236 -0
  547. package/docs/reports/unified-9.0.25/raw/runtime-control-backend/runtime-control-backend-node24-final.tap +44 -0
  548. package/docs/reports/unified-9.0.25/raw/runtime-control-backend/source-sha256.json +19 -0
  549. package/docs/reports/unified-9.0.25/raw/runtime-controls/controls-node22.json +70 -0
  550. package/docs/reports/unified-9.0.25/raw/runtime-controls/controls-node24.json +70 -0
  551. package/docs/reports/unified-9.0.25/raw/runtime-controls/health-node22.json +49 -0
  552. package/docs/reports/unified-9.0.25/raw/runtime-controls/health-node24.json +49 -0
  553. package/docs/reports/unified-9.0.25/raw/runtime-controls/login-contract-node22.log +15 -0
  554. package/docs/reports/unified-9.0.25/raw/runtime-controls/login-contract-node24.log +15 -0
  555. package/docs/reports/unified-9.0.25/raw/runtime-controls/login-node22.json +32 -0
  556. package/docs/reports/unified-9.0.25/raw/runtime-controls/login-node24.json +32 -0
  557. package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/node22.log +28 -0
  558. package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/node24.log +10 -0
  559. package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/route-regression-node24.log +28 -0
  560. package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/source-sha256.json +6 -0
  561. package/docs/reports/unified-9.0.25/raw/runtime-processes/README.md +41 -0
  562. package/docs/reports/unified-9.0.25/raw/runtime-processes/runtime-control-processes-node22.tap +44 -0
  563. package/docs/reports/unified-9.0.25/raw/runtime-processes/runtime-control-processes-node24.tap +13 -0
  564. package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-and-ui-review-node22.tap +232 -0
  565. package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-and-ui-review-node24.tap +43 -0
  566. package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-review-node22.tap +68 -0
  567. package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-review-node24.tap +17 -0
  568. package/docs/reports/unified-9.0.25/raw/sbom-lock.log +1 -0
  569. package/docs/reports/unified-9.0.25/raw/sbom-lock.stderr +1 -0
  570. package/docs/reports/unified-9.0.25/raw/tariff-update/ack-node22.tap +44 -0
  571. package/docs/reports/unified-9.0.25/raw/tariff-update/ack-node24.tap +40 -0
  572. package/docs/reports/unified-9.0.25/raw/tariff-update/ack-review-node22.tap +44 -0
  573. package/docs/reports/unified-9.0.25/raw/tariff-update/ack-review-node24.tap +13 -0
  574. package/docs/reports/unified-9.0.25/raw/tariff-update/commit-ack-sha256.txt +4 -0
  575. package/docs/reports/unified-9.0.25/raw/tariff-update/config-ack-result.json +19 -0
  576. package/docs/reports/unified-9.0.25/raw/tariff-update/generate-921-fixture.cjs +36 -0
  577. package/docs/reports/unified-9.0.25/raw/tariff-update/node22.tap +68 -0
  578. package/docs/reports/unified-9.0.25/raw/tariff-update/node24.tap +64 -0
  579. package/docs/reports/unified-9.0.25/raw/tariff-update/reproduce-config-ack.cjs +55 -0
  580. package/docs/reports/unified-9.0.25/raw/tariff-update/reviewed-sha256.txt +4 -0
  581. package/docs/reports/unified-9.0.25/raw/typecheck.log +5 -0
  582. package/docs/unified/EMS_BEDIEN_DATENPUNKTE_9_0_22.md +51 -0
  583. package/docs/unified/HISTORY_UI_9_0_22.md +75 -0
  584. package/docs/unified/POSTGRESQL_9_0_22.md +89 -0
  585. package/io-package.json +20 -22
  586. package/modules/backup/README.md +10 -0
  587. package/modules/backup/RECOVERY-9.0.22.md +59 -0
  588. package/modules/backup/admin/index.html +2 -1
  589. package/modules/backup/admin/index.js +17 -1
  590. package/modules/backup/build/config.js +2 -0
  591. package/modules/backup/build/coverage.js +64 -0
  592. package/modules/backup/build/creators.js +22 -17
  593. package/modules/backup/build/databaseTargets.js +42 -0
  594. package/modules/backup/build/index.js +47 -4
  595. package/modules/backup/build/influxIntegrity.js +159 -0
  596. package/modules/backup/build/postgresHistory.js +91 -0
  597. package/modules/backup/build/preflight.js +3 -8
  598. package/modules/backup/build/publicTrust.js +46 -0
  599. package/modules/backup/build/restore-cli.js +72 -1
  600. package/modules/backup/build/storageRetention.js +26 -0
  601. package/modules/backup/build/worker.js +18 -1
  602. package/modules/backup/src/config.ts +2 -0
  603. package/modules/backup/src/coverage.ts +50 -0
  604. package/modules/backup/src/creators.ts +20 -17
  605. package/modules/backup/src/databaseTargets.ts +45 -0
  606. package/modules/backup/src/index.ts +37 -4
  607. package/modules/backup/src/influxIntegrity.ts +125 -0
  608. package/modules/backup/src/postgresHistory.ts +66 -0
  609. package/modules/backup/src/preflight.ts +3 -10
  610. package/modules/backup/src/publicTrust.ts +34 -0
  611. package/modules/backup/src/restore-cli.ts +55 -4
  612. package/modules/backup/src/storageRetention.ts +20 -0
  613. package/modules/backup/src/types.ts +5 -0
  614. package/modules/backup/src/worker.ts +18 -2
  615. package/modules/backup/test/completeness.test.cjs +193 -0
  616. package/modules/backup/test/hosted.test.cjs +43 -3
  617. package/modules/backup/test/influx-real.test.cjs +75 -0
  618. package/modules/backup/test/lifecycle.test.cjs +7 -5
  619. package/modules/backup/test/ocpp-coverage.test.cjs +152 -0
  620. package/modules/devices/admin/index.html +1 -1
  621. package/modules/eebus/admin/index.html +1 -1
  622. package/modules/ocpp/LICENSE +21 -0
  623. package/modules/ocpp/README.md +61 -0
  624. package/modules/ocpp/admin/config-fields.json +353 -0
  625. package/modules/ocpp/admin/index.html +52 -0
  626. package/modules/ocpp/admin/index.js +228 -0
  627. package/modules/ocpp/admin/style.css +27 -0
  628. package/modules/ocpp/build/index.js +401 -0
  629. package/modules/ocpp/build/operationGuard.js +26 -0
  630. package/modules/ocpp/build/server.js +155 -0
  631. package/modules/ocpp/eslint.config.mjs +13 -0
  632. package/modules/ocpp/index.js +3 -0
  633. package/modules/ocpp/native-defaults.json +44 -0
  634. package/modules/ocpp/ocpp/common.js +646 -0
  635. package/modules/ocpp/ocpp/compact.js +332 -0
  636. package/modules/ocpp/ocpp/configuration.js +364 -0
  637. package/modules/ocpp/ocpp/eos-contract.js +149 -0
  638. package/modules/ocpp/ocpp/freshness.d.ts +10 -0
  639. package/modules/ocpp/ocpp/freshness.js +272 -0
  640. package/modules/ocpp/ocpp/schemas/NOTICE.md +17 -0
  641. package/modules/ocpp/ocpp/schemas/ocpp2_0_1_official.json +1 -0
  642. package/modules/ocpp/ocpp/schemas/ocpp2_1_official.json +1 -0
  643. package/modules/ocpp/ocpp/server.js +3 -0
  644. package/modules/ocpp/ocpp/v16.js +213 -0
  645. package/modules/ocpp/ocpp/v201.js +4 -0
  646. package/modules/ocpp/ocpp/v21.js +4 -0
  647. package/modules/ocpp/ocpp/v2base.js +255 -0
  648. package/modules/ocpp/package.json +11 -0
  649. package/modules/ocpp/provenance.json +33 -0
  650. package/modules/ocpp/runtime.d.ts +16 -0
  651. package/modules/ocpp/runtime.js +3391 -0
  652. package/modules/ocpp/src/index.ts +463 -0
  653. package/modules/ocpp/src/operationGuard.ts +29 -0
  654. package/modules/ocpp/src/server.ts +193 -0
  655. package/modules/ocpp/test/configuration-runtime.test.js +786 -0
  656. package/modules/ocpp/test/core.test.js +772 -0
  657. package/modules/ocpp/test/eos-contract.test.js +67 -0
  658. package/modules/ocpp/test/hosted.test.cjs +165 -0
  659. package/modules/ocpp/tsconfig.json +7 -0
  660. package/modules/ocpp/validation/manifest.json +36 -0
  661. package/modules/ocpp/validation/node22-tests.log +525 -0
  662. package/modules/ocpp/validation/node24-tests.log +92 -0
  663. package/package.json +29 -11
  664. package/public/eos-migration/index.html +1 -1
  665. package/public/eos-migration/index.js +2 -2
  666. package/public/eos-runtime/index.html +36 -0
  667. package/public/eos-runtime/index.js +249 -0
  668. package/public/eos-runtime/style.css +27 -0
  669. package/release-manifests/unified/build-environment.cdx.json +767 -131
  670. package/release-manifests/unified/files.json +700 -214
  671. package/release-manifests/unified/frontend.cdx.json +6 -6
  672. package/release-manifests/unified/installer.cdx.json +6 -6
  673. package/release-manifests/unified/obsolete-admin-assets.json +292 -6
  674. package/release-manifests/unified/runtime.cdx.json +871 -143
  675. package/release-manifests/unified/validation.json +15 -15
  676. package/reports/unified/ocpp-pure-pv-9.0.22/PRUEFVERMERK.md +35 -0
  677. package/reports/unified/ocpp-pure-pv-9.0.22/raw/auto-pv-phases.log +1 -0
  678. package/reports/unified/ocpp-pure-pv-9.0.22/raw/control-tests.log +11 -0
  679. package/reports/unified/ocpp-pure-pv-9.0.22/raw/ocpp-stability.log +1 -0
  680. package/reports/unified/ocpp-pure-pv-9.0.22/raw/rc60.log +1 -0
  681. package/reports/unified/tariff-energy-flow-9.0.22/PRUEFVERMERK.md +44 -0
  682. package/reports/unified/tariff-energy-flow-9.0.22/raw/focused-tests.log +37 -0
  683. package/reports/unified/tariff-energy-flow-9.0.22/raw/grid-charge-policy.log +1 -0
  684. package/reports/unified/tariff-energy-flow-9.0.22/raw/status-truth.log +1 -0
  685. package/tools/eos-release-check.cjs +5 -0
  686. package/tools/eos-release-manifest.cjs +3 -3
  687. package/tools/eos-sbom-vendored.cjs +2 -1
  688. package/tools/system/eos-postgresql-setup.cjs +409 -0
  689. package/tsconfig.eos-history-backup-scope.json +9 -0
  690. package/tsconfig.eos-postgres-system.json +15 -0
  691. package/ui/admin/react/assets/index-wHWXfD_g.js +13 -0
  692. package/ui/admin/react/index.html +1 -1
  693. package/ui/ems/consumers/evcs.js +11 -7
  694. package/ui/ems/datapoints.js +14 -5
  695. package/ui/ems/engine.js +4 -1
  696. package/ui/ems/modules/charging-management.js +193 -63
  697. package/ui/ems/modules/core-limits.js +15 -20
  698. package/ui/ems/modules/storage-control.js +8 -6
  699. package/ui/ems/modules/tarif-vis.js +7 -2
  700. package/ui/ems/modules/tariff-status.js +19 -1
  701. package/ui/eslint.postgres-history.config.mjs +9 -0
  702. package/ui/io-package.json +5 -1
  703. package/ui/lib/ems-control-values.js +64 -0
  704. package/ui/lib/flow-measurement.js +72 -0
  705. package/ui/lib/hosted-adapter.js +12 -1
  706. package/ui/lib/influx-history-runtime.js +66 -24
  707. package/ui/lib/installer-lifecycle.js +4 -2
  708. package/ui/lib/ocpp-auto-discovery.js +397 -0
  709. package/ui/lib/ocpp-limit-feedback.js +166 -0
  710. package/ui/lib/partner-runtime.js +35 -2
  711. package/ui/lib/partner-websocket.js +4 -1
  712. package/ui/lib/postgres-history-config.js +57 -0
  713. package/ui/lib/postgres-history.js +344 -0
  714. package/ui/lib/runtime-proxy-html.js +34 -1
  715. package/ui/lib/smarthome-device-controls.js +4 -1
  716. package/ui/lib/ui-access-policy.js +39 -6
  717. package/ui/main.js +392 -222
  718. package/ui/package.json +1 -1
  719. package/ui/tsconfig.postgres-history.json +4 -0
  720. package/ui/www/app.js +106 -152
  721. package/ui/www/auth.js +36 -10
  722. package/ui/www/charging-diagnostics-appcenter.js +1 -0
  723. package/ui/www/customer-tariff.js +1 -0
  724. package/ui/www/dashboard-lp-status.js +1 -0
  725. package/ui/www/dc-station-display.js +1 -0
  726. package/ui/www/ems-apps.js +48 -8
  727. package/ui/www/energy-origin-appcenter.js +1 -0
  728. package/ui/www/energy-origin-ledger-view.js +1 -0
  729. package/ui/www/eos-kiosk-settings.js +174 -0
  730. package/ui/www/eos-session-idle.js +40 -6
  731. package/ui/www/eos-updates.js +1 -0
  732. package/ui/www/index.html +2 -1
  733. package/ui/www/license.js +1 -0
  734. package/ui/www/licenses/smarthome-markdown-components.json +157 -157
  735. package/ui/www/live-display.js +4 -2
  736. package/ui/www/login.js +25 -9
  737. package/ui/www/manifest.webmanifest +3 -3
  738. package/ui/www/netoperator-appcenter.js +1 -0
  739. package/ui/www/netoperator.js +1 -0
  740. package/ui/www/operating-strategies-appcenter.js +1 -0
  741. package/ui/www/operating-strategies-rule-builder.js +1 -0
  742. package/ui/www/power-measurements.js +27 -2
  743. package/ui/www/pwa.js +1 -0
  744. package/ui/www/runtime-base.js +1 -0
  745. package/ui/www/settings.html +13 -1
  746. package/ui/www/smarthome-activation.js +1 -0
  747. package/ui/www/smarthome-alias-config.js +1 -0
  748. package/ui/www/smarthome-custom-config.js +1 -0
  749. package/ui/www/smarthome-custom-views.js +1 -0
  750. package/ui/www/smarthome-device-categories.js +1 -0
  751. package/ui/www/smarthome-device-config.js +1 -0
  752. package/ui/www/smarthome-device-controls.js +1 -0
  753. package/ui/www/smarthome-feedback.js +1 -0
  754. package/ui/www/smarthome-layout-editor.js +1 -0
  755. package/ui/www/smarthome-presentation.js +1 -0
  756. package/ui/www/smarthome-setup.js +1 -0
  757. package/ui/www/smarthome-touch.js +1 -0
  758. package/ui/www/storagefarm-dispatch.js +1 -0
  759. package/ui/www/storagefarm-summary.js +1 -0
  760. package/ui/www/tariff-display.js +62 -2
  761. package/adminWww/remoteEntry-eos-9.0.21.js +0 -12
  762. package/ui/admin/react/assets/index-BJO3q7oe.js +0 -13
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./icons-material-DVbdXNgr.js","./loadShare-eager-dmdYQhAl.js","./rolldown-runtime-sJBDdmOt.js","./vite-preload-helper-BbbETgeG.js","./AccessTime-CuR73YC3.js","./MoreHoriz-CS7nODK8.js","./Star-D8VNXawT.js","./WifiTethering-DJ9VO12W.js","./Apps-BZHXIYjq.js","./ViewSidebar-CjClbCI5.js","./Book-Cq8bkU2t.js","./Usb-C8HitPqx.js","./Cached-DXXpEqUN.js","./Pageview-wzrLQZ-j.js","./Computer-BBU3Cm9-.js","./Timer-vc3BIs4y.js","./DeleteForever-CioJt3X3.js","./Extension-DIV5Bi1u.js","./KeyboardArrowRight-ifvmV1ZL.js","./PersonOff-YtHcY0sV.js","./InfoOutlined-Bggo2-pX.js","./ViewCompact-D7bHgn99.js","./PushPinOutlined-BCUm5DLR.js","./Remove-IN7ZNaCF.js","./Schedule-vdojlve9.js","./Timeline-BtOuO808.js","./Storage-B44xXFFu.js","./TextSnippet-C9R3EbZy.js","./UnfoldMore-DOHSVdRn.js","./ViewList-DVj9ENkU.js","./VpnKey-BbZdswcd.js","./date-fns-BtR4dG_j.js","./en-US-BjjaEI6N.js","./setYear-DDSuW45e.js","./isSameWeek-WMSJR5Qs.js","./locale-DN6Bdkdt.js","./Overview-DK4R41zR.js","./AdminUtils-Dc1eHsx5.js","./installSVGRenderer-CMvku1F1.js","./Adapters-CVKKhXmI.js","./sentry-CPzCHrwe.js","./AdapterUpdateDialog-Dxl_b7Op.js","./zh-cn-B6dBxOyw.js","./State-DcEACXzL.js","./CustomModal-Do2qVZr7.js","./ctrlEnter-CruFIPb_.js","./Instances-DhChziA1.js","./Config-C4k51ggG.js","./AceEditor-BgLZBrSD.js","./UsedResources-C1LcM0Rb.js","./classPrivateFieldGet2-DZ8s9-Td.js","./Intro-Cyq9gVDC.js","./Logs-wcramXsg.js","./Files-a6owMTXA.js","./Objects-DINVHd_e.js","./Users-DvDdSyDY.js","./Fields-DWHbZKvm.js","./Enums-CJHVJY7t.js","./CustomTab-B4ywHrnT.js","./ConfigManager-Bf6nTAkL.js","./Hosts-LtEMeXpV.js","./EasyMode-A2E3hSMo.js"])))=>i.map(i=>d[i]);
2
- import{a as e,r as t,t as n}from"./rolldown-runtime-sJBDdmOt.js";import{t as r}from"./vite-preload-helper-BbbETgeG.js";import{$a as i,$n as a,$r as o,$s as s,Aa as c,An as l,Ao as u,Ar as d,Bn as f,Bo as p,Bt as m,Ci as h,Co as g,Cs as _,Do as v,Ds as y,Eo as b,Es as x,F as ee,Fo as S,Go as C,Gr as w,Ha as te,Hr as ne,Hs as T,I as E,In as re,Io as ie,Ja as ae,Jo as D,Ka as O,Ko as k,Ks as oe,Lo as se,Lt as ce,Mo as le,Mr as ue,Ms as de,No as fe,Nr as pe,Oa as me,On as he,Oo as ge,Os as _e,Po as ve,Qa as ye,Qn as be,Qo as xe,Ro as Se,Rt as Ce,Sc as we,Si as Te,Sr as Ee,Ss as De,Ti as Oe,To as ke,Tr as A,Ts as j,Uo as Ae,Us as M,Vo as je,Vs as Me,Wa as Ne,Wo as N,Wr as Pe,Xa as Fe,Xn as Ie,Xo as Le,Xs as Re,Y as ze,Ya as Be,Yn as Ve,Yo as He,Ys as Ue,Za as We,Zo as Ge,_o as Ke,_s as qe,a as Je,ac as Ye,ai as Xe,ao as Ze,as as Qe,ba as $e,bn as et,bo as tt,br as nt,bs as rt,c as it,cc as at,co as ot,cs as st,dr as ct,ds as lt,ea as ut,ec as dt,eo as ft,fc as P,fo as pt,fr as mt,gc as ht,gn as gt,go as F,hs as _t,ic as vt,ir as yt,is as bt,jn as xt,jo as St,jr as Ct,ka as wt,ko as Tt,kr as Et,lc as Dt,lo as I,ls as Ot,mo as L,n as kt,nc as At,no as jt,nr as Mt,ns as Nt,oc as Pt,oi as Ft,oo as It,os as Lt,pc as R,po as Rt,pr as zt,ps as Bt,qa as Vt,qn as Ht,qo as z,qs as Ut,r as Wt,ra as Gt,rc as Kt,rn as qt,ro as Jt,rs as Yt,sc as Xt,so as Zt,sr as Qt,tc as $t,ti as en,to as B,ts as tn,ua as nn,uc as rn,vs as an,wn as on,wo as sn,xc as cn,xo as ln,xs as un,yo as V,yr as dn,ys as fn,zo as pn}from"./loadShare-eager-dmdYQhAl.js";import{t as mn}from"./AccessTime-CuR73YC3.js";import{dedupeIntegration as hn,init as gn}from"./prod-ChPGnyiA.js";import{d as _n,t as vn}from"./en-US-BjjaEI6N.js";import{$ as yn,C as bn,D as xn,E as Sn,G as Cn,J as wn,K as Tn,M as En,N as Dn,P as On,Q as kn,R as An,S as jn,T as Mn,U as Nn,W as Pn,Y as Fn,Z as In,a as Ln,b as Rn,c as zn,ct as Bn,d as Vn,dt as Hn,et as Un,i as Wn,it as Gn,j as Kn,k as qn,l as Jn,n as Yn,o as Xn,p as Zn,q as Qn,r as $n,s as er,t as tr,tt as nr,u as rr,ut as ir,w as ar,x as or}from"./setYear-DDSuW45e.js";import{a as sr,n as cr,o as lr,r as ur,t as H}from"./AdminUtils-Dc1eHsx5.js";import{t as dr}from"./AceEditor-BgLZBrSD.js";import{t as fr}from"./ctrlEnter-CruFIPb_.js";x(),it();var pr=y(T(`path`,{d:`m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z`}),`ArrowForward`),mr=y(T(`path`,{d:`M19 3h-4.18C14.4 1.84 13.3 1 12 1s-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-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m-2 14-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z`}),`AssignmentTurnedIn`),hr=y(T(`path`,{d:`m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z`}),`AutoAwesome`),U=y(T(`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.96M14 13v4h-4v-4H7l5-5 5 5z`}),`Backup`),gr=y(T(`path`,{d:`M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z`}),`BarChart`),_r=y([T(`path`,{d:`M21 19.1H3V5h18zM21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2`},`0`),T(`path`,{d:`M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41z`},`1`)],`CancelPresentation`),vr=y(T(`path`,{d:`M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2m0 13H4v-2h16zm0-5H4V4h16z`}),`CardMembership`),W=y(T(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z`}),`CheckCircle`),yr=y(T(`path`,{d:`M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z`}),`ChevronLeft`),br=y(T(`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.96`}),`Cloud`),xr=y(T(`path`,{d:`M21.5 14.98c-.02 0-.03 0-.05.01C21.2 13.3 19.76 12 18 12c-1.4 0-2.6.83-3.16 2.02C13.26 14.1 12 15.4 12 17c0 1.66 1.34 3 3 3l6.5-.02c1.38 0 2.5-1.12 2.5-2.5s-1.12-2.5-2.5-2.5M10 4.26v2.09C7.67 7.18 6 9.39 6 12c0 1.77.78 3.34 2 4.44V14h2v6H4v-2h2.73C5.06 16.54 4 14.4 4 12c0-3.73 2.55-6.85 6-7.74M20 6h-2.73c1.43 1.26 2.41 3.01 2.66 5h-2.02c-.23-1.36-.93-2.55-1.91-3.44V10h-2V4h6z`}),`CloudSync`),Sr=y(T(`path`,{d:`M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z`}),`Devices`),Cr=y(T(`path`,{d:`M20 9H4v2h16zM4 15h16v-2H4z`}),`DragHandle`),wr=y(T(`path`,{d:`M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z`}),`Email`),Tr=y(T(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z`}),`Https`),Er=y(T(`path`,{d:`M8.4 18.2c.38.5.6 1.12.6 1.8 0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3c.44 0 .85.09 1.23.26l1.41-1.77c-.92-1.03-1.29-2.39-1.09-3.69l-2.03-.68c-.54.83-1.46 1.38-2.52 1.38-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3c0 .07 0 .14-.01.21l2.03.68c.64-1.21 1.82-2.09 3.22-2.32V5.91C9.96 5.57 9 4.4 9 3c0-1.66 1.34-3 3-3s3 1.34 3 3c0 1.4-.96 2.57-2.25 2.91v2.16c1.4.23 2.58 1.11 3.22 2.32L18 9.71V9.5c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-1.06 0-1.98-.55-2.52-1.37l-2.03.68c.2 1.29-.16 2.65-1.09 3.69l1.41 1.77Q17.34 17 18 17c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.68.22-1.3.6-1.8l-1.41-1.77c-1.35.75-3.01.76-4.37 0z`}),`Hub`),Dr=y(T(`path`,{d:`M9 3 5 6.99h3V14h2V6.99h3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99z`}),`ImportExport`),Or=y(T(`path`,{d:`M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4h16z`}),`Inventory2`),kr=y(T(`path`,{d:`M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z`}),`LibraryAdd`),Ar=y([T(`path`,{d:`M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z`},`0`),T(`path`,{d:`M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32`},`1`)],`LockPerson`),jr=y(T(`path`,{d:`m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z`}),`Logout`),Mr=y(T(`path`,{d:`M15 9H9v6h6zm-2 4h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2zm-4 6H7V7h10z`}),`Memory`),Nr=y(T(`path`,{d:`M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19zm-3-5h-2V7h-4v3H8l4 4z`}),`MoveToInbox`),Pr=y(T(`path`,{d:`M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7`}),`MyLocation`),Fr=y(T(`path`,{d:`M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z`}),`NavigateBefore`),Ir=y(T(`path`,{d:`M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z`}),`Notifications`),Lr=y(T(`path`,{d:`M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m-7 6-4 4h3v6h2v-6h3z`}),`OpenInBrowser`),Rr=y(T(`path`,{d:`M13 7h-2v2h2zm0 4h-2v6h2zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99M17 19H7V5h10z`}),`PermDeviceInformation`),zr=y(T(`path`,{d:`M19 11h-8v6h8zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2m-2 .02H3V4.97h18z`}),`PictureInPictureAlt`),Br=y(T(`path`,{d:`M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z`}),`ReportProblem`),Vr=y(T(`path`,{d:`M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2m-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9`}),`SettingsBackupRestore`),Hr=y(T(`path`,{d:`M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1m-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M7.05 6.05l1.41 1.41C9.37 6.56 10.62 6 12 6s2.63.56 3.54 1.46l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4.95 2.05M12 0C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1.01 6.36 2.64l1.41-1.41C17.79 1.23 15.04 0 12 0`}),`SettingsRemote`),Ur=y(T(`path`,{d:`M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13`}),`SmartToy`),Wr=y(T(`path`,{d:`M11 21H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h6zm2 0h6c1.1 0 2-.9 2-2v-7h-8zm8-11V5c0-1.1-.9-2-2-2h-6v7z`}),`SpaceDashboard`),Gr=y(T(`path`,{d:`M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33m-7.14-.94 2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20h6v-6l-2.24 2.24C6.68 15.15 6 13.66 6 12c0-1 .25-1.94.68-2.77l8.08 8.08c-.25.13-.5.25-.77.34v2.09c.8-.21 1.55-.54 2.23-.96l2.36 2.36 1.27-1.27L4.14 4.14zM20 4h-6v6l2.24-2.24C17.32 8.85 18 10.34 18 12c0 1-.25 1.94-.68 2.77l1.46 1.46C19.55 15.01 20 13.56 20 12c0-2.21-.91-4.2-2.36-5.64z`}),`SyncDisabled`),Kr=y(T(`path`,{d:`M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z`}),`Update`),qr=y(T(`path`,{d:`M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z`}),`VerifiedUser`),Jr={y:{sectionType:`year`,contentType:`digit`,maxLength:4},yy:`year`,yyy:{sectionType:`year`,contentType:`digit`,maxLength:4},yyyy:`year`,M:{sectionType:`month`,contentType:`digit`,maxLength:2},MM:`month`,MMMM:{sectionType:`month`,contentType:`letter`},MMM:{sectionType:`month`,contentType:`letter`},L:{sectionType:`month`,contentType:`digit`,maxLength:2},LL:`month`,LLL:{sectionType:`month`,contentType:`letter`},LLLL:{sectionType:`month`,contentType:`letter`},d:{sectionType:`day`,contentType:`digit`,maxLength:2},dd:`day`,do:{sectionType:`day`,contentType:`digit-with-letter`},E:{sectionType:`weekDay`,contentType:`letter`},EE:{sectionType:`weekDay`,contentType:`letter`},EEE:{sectionType:`weekDay`,contentType:`letter`},EEEE:{sectionType:`weekDay`,contentType:`letter`},EEEEE:{sectionType:`weekDay`,contentType:`letter`},i:{sectionType:`weekDay`,contentType:`digit`,maxLength:1},ii:`weekDay`,iii:{sectionType:`weekDay`,contentType:`letter`},iiii:{sectionType:`weekDay`,contentType:`letter`},e:{sectionType:`weekDay`,contentType:`digit`,maxLength:1},ee:`weekDay`,eee:{sectionType:`weekDay`,contentType:`letter`},eeee:{sectionType:`weekDay`,contentType:`letter`},eeeee:{sectionType:`weekDay`,contentType:`letter`},eeeeee:{sectionType:`weekDay`,contentType:`letter`},c:{sectionType:`weekDay`,contentType:`digit`,maxLength:1},cc:`weekDay`,ccc:{sectionType:`weekDay`,contentType:`letter`},cccc:{sectionType:`weekDay`,contentType:`letter`},ccccc:{sectionType:`weekDay`,contentType:`letter`},cccccc:{sectionType:`weekDay`,contentType:`letter`},a:`meridiem`,aa:`meridiem`,aaa:`meridiem`,H:{sectionType:`hours`,contentType:`digit`,maxLength:2},HH:`hours`,h:{sectionType:`hours`,contentType:`digit`,maxLength:2},hh:`hours`,K:{sectionType:`hours`,contentType:`digit`,maxLength:2},KK:`hours`,k:{sectionType:`hours`,contentType:`digit`,maxLength:2},kk:`hours`,m:{sectionType:`minutes`,contentType:`digit`,maxLength:2},mm:`minutes`,s:{sectionType:`seconds`,contentType:`digit`,maxLength:2},ss:`seconds`},Yr={year:`yyyy`,month:`LLLL`,monthShort:`MMM`,dayOfMonth:`d`,dayOfMonthFull:`do`,weekday:`EEEE`,weekdayShort:`EEEEEE`,hours24h:`HH`,hours12h:`hh`,meridiem:`aa`,minutes:`mm`,seconds:`ss`,fullDate:`PP`,keyboardDate:`P`,shortDate:`MMM d`,normalDate:`d MMMM`,normalDateWithWeekday:`EEE, MMM d`,fullTime12h:`hh:mm aa`,fullTime24h:`HH:mm`,keyboardDateTime12h:`P hh:mm aa`,keyboardDateTime24h:`P HH:mm`},Xr=class{constructor(e){j(this,`isMUIAdapter`,!0),j(this,`isTimezoneCompatible`,!1),j(this,`formatTokenMap`,Jr),j(this,`escapedCharacters`,{start:`'`,end:`'`}),j(this,`date`,e=>e===void 0?new Date:e===null?null:new Date(e)),j(this,`getInvalidDate`,()=>new Date(`Invalid Date`)),j(this,`getTimezone`,()=>`default`),j(this,`setTimezone`,e=>e),j(this,`toJsDate`,e=>e),j(this,`getCurrentLocaleCode`,()=>this.locale.code),j(this,`is12HourCycleInCurrentLocale`,()=>/a/.test(this.locale.formatLong.time({width:`short`}))),j(this,`expandFormat`,e=>e.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=this.longFormatters[t];return n(e,this.locale.formatLong)}return e}).join(``)),j(this,`formatNumber`,e=>e),j(this,`getDayOfWeek`,e=>e.getDay()+1);let{locale:t,formats:n,longFormatters:r,lib:i}=e;this.locale=t,this.formats=oe({},Yr,n),this.longFormatters=r,this.lib=i||`date-fns`}};x();var Zr=class extends Xr{constructor({locale:e,formats:t}={}){super({locale:e??vn,formats:t,longFormatters:On}),j(this,`parse`,(e,t)=>e===``?null:Zn(e,t,new Date,{locale:this.locale})),j(this,`isValid`,e=>e!=null&&Fn(e)),j(this,`format`,(e,t)=>this.formatByString(e,this.formats[t])),j(this,`formatByString`,(e,t)=>Dn(e,t,{locale:this.locale})),j(this,`isEqual`,(e,t)=>e===null&&t===null?!0:e===null||t===null?!1:Rn(e,t)),j(this,`isSameYear`,(e,t)=>Jn(e,t)),j(this,`isSameMonth`,(e,t)=>rr(e,t)),j(this,`isSameDay`,(e,t)=>In(e,t)),j(this,`isSameHour`,(e,t)=>Vn(e,t)),j(this,`isAfter`,(e,t)=>jn(e,t)),j(this,`isAfterYear`,(e,t)=>jn(e,Cn(t))),j(this,`isAfterDay`,(e,t)=>jn(e,wn(t))),j(this,`isBefore`,(e,t)=>or(e,t)),j(this,`isBeforeYear`,(e,t)=>or(e,this.startOfYear(t))),j(this,`isBeforeDay`,(e,t)=>or(e,this.startOfDay(t))),j(this,`isWithinRange`,(e,[t,n])=>zn(e,{start:t,end:n})),j(this,`startOfYear`,e=>Pn(e)),j(this,`startOfMonth`,e=>Tn(e)),j(this,`startOfWeek`,e=>_n(e,{locale:this.locale})),j(this,`startOfDay`,e=>Gn(e)),j(this,`endOfYear`,e=>Cn(e)),j(this,`endOfMonth`,e=>Qn(e)),j(this,`endOfWeek`,e=>Nn(e,{locale:this.locale})),j(this,`endOfDay`,e=>wn(e)),j(this,`addYears`,(e,t)=>kn(e,t)),j(this,`addMonths`,(e,t)=>ir(e,t)),j(this,`addWeeks`,(e,t)=>yn(e,t)),j(this,`addDays`,(e,t)=>Hn(e,t)),j(this,`addHours`,(e,t)=>Bn(e,t)),j(this,`addMinutes`,(e,t)=>nr(e,t)),j(this,`addSeconds`,(e,t)=>Un(e,t)),j(this,`getYear`,e=>bn(e)),j(this,`getMonth`,e=>Mn(e)),j(this,`getDate`,e=>En(e)),j(this,`getHours`,e=>qn(e)),j(this,`getMinutes`,e=>Sn(e)),j(this,`getSeconds`,e=>ar(e)),j(this,`getMilliseconds`,e=>xn(e)),j(this,`setYear`,(e,t)=>tr(e,t)),j(this,`setMonth`,(e,t)=>er(e,t)),j(this,`setDate`,(e,t)=>Xn(e,t)),j(this,`setHours`,(e,t)=>Ln(e,t)),j(this,`setMinutes`,(e,t)=>$n(e,t)),j(this,`setSeconds`,(e,t)=>Yn(e,t)),j(this,`setMilliseconds`,(e,t)=>Wn(e,t)),j(this,`getDaysInMonth`,e=>Kn(e)),j(this,`getWeekArray`,e=>{let t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e)),r=0,i=t,a=[];for(;this.isBefore(i,n);){let e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(i),i=this.addDays(i,1),r+=1}return a}),j(this,`getWeekNumber`,e=>An(e,{locale:this.locale})),j(this,`getYearRange`,([e,t])=>{let n=this.startOfYear(e),r=this.endOfYear(t),i=[],a=n;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i})}},Qr={"@mui/icons-material":()=>r(()=>import(`./icons-material-DVbdXNgr.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url),"date-fns":()=>r(()=>import(`./date-fns-BtR4dG_j.js`),__vite__mapDeps([31,32,33,1,2,3,34]),import.meta.url),"date-fns/locale":()=>r(()=>import(`./locale-DN6Bdkdt.js`).then(e=>e.t),__vite__mapDeps([35,2,32,34]),import.meta.url)};function $r(){cn({name:`iobroker_admin`,shared:{},remotes:[]}),we(Object.fromEntries(Object.entries(Qr).map(([e,t])=>[e,{version:{"@mui/icons-material":`9.5.0`,"date-fns":`4.4.0`,"date-fns/locale":`4.4.0`}[e],scope:`default`,get:async()=>{let e=await t();return()=>e},shareConfig:{singleton:!0,requiredVersion:`*`,eager:!1}}])))}var ei={version:`9.0.21`},ti=Re({hostsUpdate:0,adaptersUpdate:0,hosts:null,repository:null,installed:null});function ni({children:e}){let[t]=R({hostsUpdate:0,adaptersUpdate:0,hosts:null,repository:null,installed:null}),{hosts:n,installed:r,repository:i}=t,a=rn(()=>{var e;if(!n||!i)return 0;let t=(e=i[`js-controller`])==null?void 0:e.version,r=0;return n.forEach(e=>{H.updateAvailable(e.common.installedVersion,t,`js-controller on ${e._id}`)&&r++}),r},[n,i]),o=rn(()=>{if(!r||!i)return 0;let e=0;return Object.keys(r).forEach(t=>{let n=r[t],a=i[t];t!==`js-controller`&&t!==`hosts`&&n!=null&&n.version&&a!=null&&a.version&&n.ignoreVersion!==a.version&&H.updateAvailable(n.version,a.version,`adapter "${t}"`)&&e++}),e},[r,i]),s=rn(()=>({...t,hostsUpdate:a,adaptersUpdate:o}),[t,a,o]);return T(ti.Provider,{value:s,children:e})}var ri=Re({dragDropManager:void 0});function ii(e){return`Minified Redux error #`+e+`; visit https://redux.js.org/Errors?code=`+e+` for the full message or use the non-minified dev environment for full errors. `}var ai=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),oi=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},si={INIT:`@@redux/INIT`+oi(),REPLACE:`@@redux/REPLACE`+oi(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+oi()}};function ci(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function li(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(ii(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(ii(1));return n(li)(e,t)}if(typeof e!=`function`)throw Error(ii(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(ii(3));return a}function d(e){if(typeof e!=`function`)throw Error(ii(4));if(c)throw Error(ii(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(ii(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!ci(e))throw Error(ii(7));if(e.type===void 0)throw Error(ii(8));if(c)throw Error(ii(9));try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(ii(10));i=e,f({type:si.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(ii(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[ai]=function(){return this},e}return f({type:si.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[ai]=m,r}function G(e,t,...n){if(ui()&&t===void 0)throw Error(`invariant requires an error message argument`);if(!e){let e;if(t===void 0)e=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{let r=0;e=Error(t.replace(/%s/g,function(){return n[r++]})),e.name=`Invariant Violation`}throw e.framesToPop=1,e}}function ui(){return typeof process<`u`&&!0}function di(e,t,n){return t.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function fi(e,t){return e.filter(e=>e!==t)}function pi(e){return typeof e==`object`}function mi(e,t){let n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);let i=[];return n.forEach((e,t)=>{e===1&&i.push(t)}),i}function hi(e,t){return e.filter(e=>t.indexOf(e)>-1)}var gi=`dnd-core/INIT_COORDS`,_i=`dnd-core/BEGIN_DRAG`,vi=`dnd-core/PUBLISH_DRAG_SOURCE`,yi=`dnd-core/HOVER`,bi=`dnd-core/DROP`,xi=`dnd-core/END_DRAG`;function Si(e,t){return{type:gi,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Ci={type:gi,payload:{clientOffset:null,sourceClientOffset:null}};function wi(e){return function(t=[],n={publishSource:!0}){let{publishSource:r=!0,clientOffset:i,getSourceClientOffset:a}=n,o=e.getMonitor(),s=e.getRegistry();e.dispatch(Si(i)),Ti(t,o,s);let c=Oi(t,o);if(c==null){e.dispatch(Ci);return}let l=null;if(i){if(!a)throw Error(`getSourceClientOffset must be defined`);Ei(a),l=a(c)}e.dispatch(Si(i,l));let u=s.getSource(c).beginDrag(o,c);return u==null?void 0:(Di(u),s.pinSource(c),{type:_i,payload:{itemType:s.getSourceType(c),item:u,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!r}})}}function Ti(e,t,n){G(!t.isDragging(),`Cannot call beginDrag while dragging.`),e.forEach(function(e){G(n.getSource(e),`Expected sourceIds to be registered.`)})}function Ei(e){G(typeof e==`function`,`When clientOffset is provided, getSourceClientOffset must be a function.`)}function Di(e){G(pi(e),`Item must be an object.`)}function Oi(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function ki(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ki(e,t,n[t])})}return e}function ji(e){return function(t={}){let n=e.getMonitor(),r=e.getRegistry();Mi(n),Fi(n).forEach((i,a)=>{let o={type:bi,payload:{dropResult:Ai({},t,Ni(i,a,r,n))}};e.dispatch(o)})}}function Mi(e){G(e.isDragging(),`Cannot call drop while not dragging.`),G(!e.didDrop(),`Cannot call drop twice during one drag operation.`)}function Ni(e,t,n,r){let i=n.getTarget(e),a=i?i.drop(r,e):void 0;return Pi(a),a===void 0&&(a=t===0?{}:r.getDropResult()),a}function Pi(e){G(e===void 0||pi(e),`Drop result must either be an object or undefined.`)}function Fi(e){let t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Ii(e){return function(){let t=e.getMonitor(),n=e.getRegistry();Li(t);let r=t.getSourceId();return r!=null&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:xi}}}function Li(e){G(e.isDragging(),`Cannot call endDrag while not dragging.`)}function Ri(e,t){return t===null?e===null:Array.isArray(e)?e.some(e=>e===t):e===t}function zi(e){return function(t,{clientOffset:n}={}){Bi(t);let r=t.slice(0),i=e.getMonitor(),a=e.getRegistry();return Hi(r,a,i.getItemType()),Vi(r,i,a),Ui(r,i,a),{type:yi,payload:{targetIds:r,clientOffset:n||null}}}}function Bi(e){G(Array.isArray(e),`Expected targetIds to be an array.`)}function Vi(e,t,n){G(t.isDragging(),`Cannot call hover while not dragging.`),G(!t.didDrop(),`Cannot call hover after drop.`);for(let t=0;t<e.length;t++){let r=e[t];G(e.lastIndexOf(r)===t,`Expected targetIds to be unique in the passed array.`),G(n.getTarget(r),`Expected targetIds to be registered.`)}}function Hi(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r];Ri(t.getTargetType(i),n)||e.splice(r,1)}}function Ui(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}function Wi(e){return function(){if(e.getMonitor().isDragging())return{type:vi}}}function Gi(e){return{beginDrag:wi(e),publishDragSource:Wi(e),hover:zi(e),drop:ji(e),endDrag:Ii(e)}}var Ki=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){let e=this,{dispatch:t}=this.store;function n(n){return(...r)=>{let i=n.apply(e,r);i!==void 0&&t(i)}}let r=Gi(this);return Object.keys(r).reduce((e,t)=>{let i=r[t];return e[t]=n(i),e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{let e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function qi(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Ji(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yi(e){let{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Ji(qi(t,r),n)}function Xi(e){let{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Ji(t,n)}var Zi=[],Qi=[];Zi.__IS_NONE__=!0,Qi.__IS_ALL__=!0;function $i(e,t){return e===Zi?!1:e===Qi||t===void 0||hi(t,e).length>0}var ea=class{subscribeToStateChange(e,t={}){let{handlerIds:n}=t;G(typeof e==`function`,`listener must be a function.`),G(n===void 0||Array.isArray(n),`handlerIds, when specified, must be an array of strings.`);let r=this.store.getState().stateId;return this.store.subscribe(()=>{let t=this.store.getState(),i=t.stateId;try{i===r||i===r+1&&!$i(t.dirtyHandlerIds,n)||e()}finally{r=i}})}subscribeToOffsetChange(e){G(typeof e==`function`,`listener must be a function.`);let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{let n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;let t=this.registry.getSource(e);return G(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;let t=this.registry.getTarget(e);return G(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop()?!1:Ri(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;let t=this.registry.getSource(e,!0);return G(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic()||this.registry.getSourceType(e)!==this.getItemType()?!1:t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;let{shallow:n}=t;if(!this.isDragging())return!1;let r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!Ri(r,i))return!1;let a=this.getTargetIds();if(!a.length)return!1;let o=a.indexOf(e);return n?o===a.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return Yi(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return Xi(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},ta=typeof global<`u`?global:self,na=ta.MutationObserver||ta.WebKitMutationObserver;function ra(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function ia(e){let t=1,n=new na(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}var aa=typeof na==`function`?ia:ra,oa=class{enqueueTask(e){let{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.index<e.length;){let t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=aa(this.flush),this.requestErrorThrow=ra(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},sa=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},ca=class{create(e){let t=this.freeTasks,n=t.length?t.pop():new sa(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}},la=new oa,K=new ca(la.registerPendingError);function ua(e){la.enqueueTask(K.create(e))}var da=`dnd-core/ADD_SOURCE`,fa=`dnd-core/ADD_TARGET`,pa=`dnd-core/REMOVE_SOURCE`,ma=`dnd-core/REMOVE_TARGET`;function ha(e){return{type:da,payload:{sourceId:e}}}function ga(e){return{type:fa,payload:{targetId:e}}}function _a(e){return{type:pa,payload:{sourceId:e}}}function va(e){return{type:ma,payload:{targetId:e}}}function ya(e){G(typeof e.canDrag==`function`,`Expected canDrag to be a function.`),G(typeof e.beginDrag==`function`,`Expected beginDrag to be a function.`),G(typeof e.endDrag==`function`,`Expected endDrag to be a function.`)}function ba(e){G(typeof e.canDrop==`function`,`Expected canDrop to be a function.`),G(typeof e.hover==`function`,`Expected hover to be a function.`),G(typeof e.drop==`function`,`Expected beginDrag to be a function.`)}function xa(e,t){t&&Array.isArray(e)?e.forEach(e=>xa(e,!1)):G(typeof e==`string`||typeof e==`symbol`,t?`Type can only be a string, a symbol, or an array of either.`:`Type can only be a string or a symbol.`)}var Sa;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(Sa||={});var Ca=0;function wa(){return Ca++}function Ta(e){let t=wa().toString();switch(e){case Sa.SOURCE:return`S${t}`;case Sa.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}function Ea(e){switch(e[0]){case`S`:return Sa.SOURCE;case`T`:return Sa.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function Da(e,t){let n=e.entries(),r=!1;do{let{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}var Oa=class{addSource(e,t){xa(e),ya(t);let n=this.addHandler(Sa.SOURCE,e,t);return this.store.dispatch(ha(n)),n}addTarget(e,t){xa(e,!0),ba(t);let n=this.addHandler(Sa.TARGET,e,t);return this.store.dispatch(ga(n)),n}containsHandler(e){return Da(this.dragSources,e)||Da(this.dropTargets,e)}getSource(e,t=!1){return G(this.isSourceId(e),`Expected a valid source ID.`),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return G(this.isTargetId(e),`Expected a valid target ID.`),this.dropTargets.get(e)}getSourceType(e){return G(this.isSourceId(e),`Expected a valid source ID.`),this.types.get(e)}getTargetType(e){return G(this.isTargetId(e),`Expected a valid target ID.`),this.types.get(e)}isSourceId(e){return Ea(e)===Sa.SOURCE}isTargetId(e){return Ea(e)===Sa.TARGET}removeSource(e){G(this.getSource(e),`Expected an existing source.`),this.store.dispatch(_a(e)),ua(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){G(this.getTarget(e),`Expected an existing target.`),this.store.dispatch(va(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);G(t,`Expected an existing source.`),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){G(this.pinnedSource,`No source is pinned at the time.`),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){let r=Ta(e);return this.types.set(r,t),e===Sa.SOURCE?this.dragSources.set(r,n):e===Sa.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}},ka=(e,t)=>e===t;function Aa(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function ja(e,t,n=ka){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function Ma(e=Zi,t){switch(t.type){case yi:break;case da:case fa:case ma:case pa:return Zi;case _i:case vi:case xi:case bi:default:return Qi}let{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=mi(n,r);if(!(i.length>0||!ja(n,r)))return Zi;let a=r[r.length-1],o=n[n.length-1];return a!==o&&(a&&i.push(a),o&&i.push(o)),i}function Na(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Na(e,t,n[t])})}return e}var Fa={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ia(e=Fa,t){let{payload:n}=t;switch(t.type){case gi:case _i:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case yi:return Aa(e.clientOffset,n.clientOffset)?e:Pa({},e,{clientOffset:n.clientOffset});case xi:case bi:return Fa;default:return e}}function La(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ra(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){La(e,t,n[t])})}return e}var za={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ba(e=za,t){let{payload:n}=t;switch(t.type){case _i:return Ra({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case vi:return Ra({},e,{isSourcePublic:!0});case yi:return Ra({},e,{targetIds:n.targetIds});case ma:return e.targetIds.indexOf(n.targetId)===-1?e:Ra({},e,{targetIds:fi(e.targetIds,n.targetId)});case bi:return Ra({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case xi:return Ra({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Va(e=0,t){switch(t.type){case da:case fa:return e+1;case pa:case ma:return e-1;default:return e}}function Ha(e=0){return e+1}function Ua(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ua(e,t,n[t])})}return e}function Ga(e={},t){return{dirtyHandlerIds:Ma(e.dirtyHandlerIds,{type:t.type,payload:Wa({},t.payload,{prevTargetIds:di(e,`dragOperation.targetIds`,[])})}),dragOffset:Ia(e.dragOffset,t),refCount:Va(e.refCount,t),dragOperation:Ba(e.dragOperation,t),stateId:Ha(e.stateId)}}function Ka(e,t=void 0,n={},r=!1){let i=qa(r),a=new Ki(i,new ea(i,new Oa(i))),o=e(a,t,n);return a.receiveBackend(o),a}function qa(e){let t=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__;return li(Ga,e&&t&&t({name:`dnd-core`,instanceId:`dnd-core`}))}function Ja(e,t){if(e==null)return{};var n=Ya(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ya(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Xa=0,Za=Symbol.for(`__REACT_DND_CONTEXT_INSTANCE__`),Qa=At(function(e){var{children:t}=e;let[n,r]=$a(Ja(e,[`children`]));return Xt(()=>{if(r){let e=to();return++Xa,()=>{--Xa===0&&(e[Za]=null)}}},[]),T(ri.Provider,{value:n,children:t})});function $a(e){return`manager`in e?[{dragDropManager:e.manager},!1]:[eo(e.backend,e.context,e.options,e.debugMode),!e.context]}function eo(e,t=to(),n,r){let i=t;return i[Za]||(i[Za]={dragDropManager:Ka(e,t,n,r)}),i[Za]}function to(){return typeof global<`u`?global:window}var no=n(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),ro=typeof window<`u`?Dt:Xt,io=e(no(),1);function ao(e,t,n){let[r,i]=R(()=>t(e)),a=vt(()=>{let a=t(e);(0,io.default)(r,a)||(i(a),n&&n())},[r,e,n]);return ro(a),[r,a]}function oo(e,t,n){let[r,i]=ao(e,t,n);return ro(function(){let t=e.getHandlerId();if(t!=null)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),r}function so(e,t,n){return oo(t,e||(()=>({})),()=>n.reconnect())}function co(e,t){let n=[...t||[]];return t==null&&typeof e!=`function`&&n.push(e),rn(()=>typeof e==`function`?e():e,n)}function lo(e){return rn(()=>e.hooks.dragSource(),[e])}function uo(e){return rn(()=>e.hooks.dragPreview(),[e])}var fo=!1,po=!1,mo=class{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){G(!fo,`You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return fo=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{fo=!1}}isDragging(){if(!this.sourceId)return!1;G(!po,`You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return po=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{po=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}},ho=!1,go=class{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;G(!ho,`You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor`);try{return ho=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{ho=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}};function _o(e,t,n){let r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function vo(e,t,n){let r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function yo(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o<a.length;o++){let c=a[o];if(!s(c))return!1;let l=e[c],u=t[c];if(i=n?n.call(r,l,u,c):void 0,i===!1||i===void 0&&l!==u)return!1}return!0}function bo(e){return typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`current`)}function xo(e){if(typeof e.type==`string`)return;let t=e.type.displayName||e.type.name||`the component`;throw Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function So(e){return(t=null,n=null)=>{if(!dt(t)){let r=t;return e(r,n),r}let r=t;return xo(r),To(r,n?t=>e(t,n):e)}}function Co(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];if(n.endsWith(`Ref`))t[n]=e[n];else{let e=So(r);t[n]=()=>e}}),t}function wo(e,t){typeof e==`function`?e(t):e.current=t}function To(e,t){let n=e.ref;return G(typeof n!=`string`,`Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs`),n?Ue(e,{ref:e=>{wo(n,e),wo(t,e)}}):Ue(e,{ref:t})}var Eo=class{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){let e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){let e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){let t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!yo(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!yo(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&=(this.dragSourceUnsubscribe(),void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Co({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,bo(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,bo(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}},Do=class{get connectTarget(){return this.dropTarget}reconnect(){let e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();let t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!yo(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&=(this.unsubscribeDropTarget(),void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Co({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,bo(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}};function Oo(){let{dragDropManager:e}=Ye(ri);return G(e!=null,`Expected drag drop context`),e}function ko(e,t){let n=Oo(),r=rn(()=>new Eo(n.getBackend()),[n]);return ro(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),ro(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function Ao(){let e=Oo();return rn(()=>new mo(e),[e])}var jo=class{beginDrag(){let e=this.spec,t=this.monitor,n=null;return n=typeof e.item==`object`?e.item:typeof e.item==`function`?e.item(t):{},n??null}canDrag(){let e=this.spec,t=this.monitor;return typeof e.canDrag==`boolean`?e.canDrag:typeof e.canDrag!=`function`||e.canDrag(t)}isDragging(e,t){let n=this.spec,r=this.monitor,{isDragging:i}=n;return i?i(r):t===e.getSourceId()}endDrag(){let e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}};function Mo(e,t,n){let r=rn(()=>new jo(e,t,n),[t,n]);return Xt(()=>{r.spec=e},[e]),r}function q(e){return rn(()=>{let t=e.type;return G(t!=null,`spec.type must be defined`),t},[e])}function No(e,t,n){let r=Oo(),i=Mo(e,t,n),a=q(e);ro(function(){if(a!=null){let[e,o]=vo(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}},[r,t,n,i,a])}function Po(e,t){let n=co(e,t);G(!n.begin,`useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)`);let r=Ao(),i=ko(n.options,n.previewOptions);return No(n,r,i),[so(n.collect,r,i),lo(i),uo(i)]}function Fo(e){let t=Oo().getMonitor(),[n,r]=ao(t,e);return Xt(()=>t.subscribeToOffsetChange(r)),Xt(()=>t.subscribeToStateChange(r)),n}function Io(e){return rn(()=>e.hooks.dropTarget(),[e])}function Lo(e){let t=Oo(),n=rn(()=>new Do(t.getBackend()),[t]);return ro(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function Ro(){let e=Oo();return rn(()=>new go(e),[e])}function zo(e){let{accept:t}=e;return rn(()=>(G(e.accept!=null,`accept must be defined`),Array.isArray(t)?t:[t]),[t])}var Bo=class{canDrop(){let e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){let e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){let e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}};function Vo(e,t){let n=rn(()=>new Bo(e,t),[t]);return Xt(()=>{n.spec=e},[e]),n}function Ho(e,t,n){let r=Oo(),i=Vo(e,t),a=zo(e);ro(function(){let[e,o]=_o(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o},[r,t,i,n,a.map(e=>e.toString()).join(`|`)])}function Uo(e,t){let n=co(e,t),r=Ro(),i=Lo(n.options);return Ho(n,r,i),[so(n.collect,r,i),Io(i)]}function Wo(e){let t=null;return()=>(t??=e(),t)}function Go(e,t){return e.filter(e=>e!==t)}function Ko(e,t){let n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);let i=[];return n.forEach(e=>i.push(e)),i}var qo=class{enter(e){let t=this.entered.length,n=t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e));return this.entered=Ko(this.entered.filter(n),[e]),t===0&&this.entered.length>0}leave(e){let t=this.entered.length;return this.entered=Go(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},Jo=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){let t={};Object.keys(this.config.exposeProperties).forEach(n=>{let r=this.config.exposeProperties[n];r!=null&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},Yo=t({FILE:()=>Xo,HTML:()=>$o,TEXT:()=>Qo,URL:()=>Zo}),Xo=`__NATIVE_FILE__`,Zo=`__NATIVE_URL__`,Qo=`__NATIVE_TEXT__`,$o=`__NATIVE_HTML__`;function es(e,t,n){return t.reduce((t,n)=>t||e.getData(n),``)??n}var ts={[Xo]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:[`Files`]},[$o]:{exposeProperties:{html:(e,t)=>es(e,t,``),dataTransfer:e=>e},matchesTypes:[`Html`,`text/html`]},[Zo]:{exposeProperties:{urls:(e,t)=>es(e,t,``).split(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./icons-material-Omb_HCfb.js","./loadShare-eager-dmdYQhAl.js","./rolldown-runtime-sJBDdmOt.js","./vite-preload-helper-BbbETgeG.js","./AccessTime-CuR73YC3.js","./MoreHoriz-CS7nODK8.js","./Star-D8VNXawT.js","./WifiTethering-DJ9VO12W.js","./Apps-BZHXIYjq.js","./ViewSidebar-CjClbCI5.js","./Book-Cq8bkU2t.js","./Usb-C8HitPqx.js","./Cached-DXXpEqUN.js","./Pageview-wzrLQZ-j.js","./Computer-BBU3Cm9-.js","./Timer-vc3BIs4y.js","./DeleteForever-CioJt3X3.js","./Extension-DIV5Bi1u.js","./KeyboardArrowRight-ifvmV1ZL.js","./PersonOff-YtHcY0sV.js","./InfoOutlined-Bggo2-pX.js","./ViewCompact-D7bHgn99.js","./PushPinOutlined-BCUm5DLR.js","./Remove-IN7ZNaCF.js","./Schedule-vdojlve9.js","./Timeline-BtOuO808.js","./Storage-B44xXFFu.js","./TextSnippet-C9R3EbZy.js","./UnfoldMore-DOHSVdRn.js","./ViewList-DVj9ENkU.js","./VpnKey-BbZdswcd.js","./date-fns-BtR4dG_j.js","./en-US-BjjaEI6N.js","./setYear-DDSuW45e.js","./isSameWeek-WMSJR5Qs.js","./locale-DN6Bdkdt.js","./Overview-JgjcHwlz.js","./AdminUtils-Dc1eHsx5.js","./installSVGRenderer-iWfLFoQU.js","./Adapters-BCGeX2v7.js","./sentry-CPzCHrwe.js","./AdapterUpdateDialog-CLDpmxDx.js","./zh-cn-B6dBxOyw.js","./State-BV14HSwZ.js","./CustomModal-Do2qVZr7.js","./ctrlEnter-CruFIPb_.js","./Instances-DxTOzFus.js","./Config-C4k51ggG.js","./AceEditor-BgLZBrSD.js","./UsedResources-Dz48WzEF.js","./classPrivateFieldGet2-DZ8s9-Td.js","./Intro-CYBGeZtu.js","./Logs-CVNC-4S8.js","./Files-BPK84lYU.js","./Objects-Cqm9Rvym.js","./Users-D19YlRCD.js","./Fields-Bdx5gPoT.js","./Enums-D3n1pOtc.js","./CustomTab-B4ywHrnT.js","./ConfigManager-B_sJf5_w.js","./Hosts--Jr6oLf2.js","./EasyMode-A2E3hSMo.js"])))=>i.map(i=>d[i]);
2
+ import{a as e,r as t,t as n}from"./rolldown-runtime-sJBDdmOt.js";import{t as r}from"./vite-preload-helper-BbbETgeG.js";import{$a as i,$n as a,$r as o,$s as s,Aa as c,An as l,Ao as u,Ar as d,Bn as f,Bo as p,Bt as m,Ci as h,Co as g,Cs as _,Do as v,Ds as y,Eo as b,Es as x,F as ee,Fo as S,Go as C,Gr as w,Ha as te,Hr as ne,Hs as T,I as E,In as re,Io as ie,Ja as ae,Jo as D,Ka as O,Ko as k,Ks as oe,Lo as se,Lt as ce,Mo as le,Mr as ue,Ms as de,No as fe,Nr as pe,Oa as me,On as he,Oo as ge,Os as _e,Po as ve,Qa as ye,Qn as be,Qo as xe,Ro as Se,Rt as Ce,Sc as we,Si as Te,Sr as Ee,Ss as De,Ti as Oe,To as ke,Tr as A,Ts as j,Uo as Ae,Us as M,Vo as je,Vs as Me,Wa as Ne,Wo as N,Wr as Pe,Xa as Fe,Xn as Ie,Xo as Le,Xs as Re,Y as ze,Ya as Be,Yn as Ve,Yo as He,Ys as Ue,Za as We,Zo as Ge,_o as Ke,_s as qe,a as Je,ac as Ye,ai as Xe,ao as Ze,as as Qe,ba as $e,bn as et,bo as tt,br as nt,bs as rt,c as it,cc as at,co as ot,cs as st,dr as ct,ds as lt,ea as ut,ec as dt,eo as ft,fc as P,fo as pt,fr as mt,gc as ht,gn as gt,go as F,hs as _t,ic as vt,ir as yt,is as bt,jn as xt,jo as St,jr as Ct,ka as wt,ko as Tt,kr as Et,lc as Dt,lo as I,ls as Ot,mo as L,n as kt,nc as At,no as jt,nr as Mt,ns as Nt,oc as Pt,oi as Ft,oo as It,os as Lt,pc as R,po as Rt,pr as zt,ps as Bt,qa as Vt,qn as Ht,qo as z,qs as Ut,r as Wt,ra as Gt,rc as Kt,rn as qt,ro as Jt,rs as Yt,sc as Xt,so as Zt,sr as Qt,tc as $t,ti as en,to as B,ts as tn,ua as nn,uc as rn,vs as an,wn as on,wo as sn,xc as cn,xo as ln,xs as un,yo as V,yr as dn,ys as fn,zo as pn}from"./loadShare-eager-dmdYQhAl.js";import{t as mn}from"./AccessTime-CuR73YC3.js";import{dedupeIntegration as hn,init as gn}from"./prod-ChPGnyiA.js";import{d as _n,t as vn}from"./en-US-BjjaEI6N.js";import{$ as yn,C as bn,D as xn,E as Sn,G as Cn,J as wn,K as Tn,M as En,N as Dn,P as On,Q as kn,R as An,S as jn,T as Mn,U as Nn,W as Pn,Y as Fn,Z as In,a as Ln,b as Rn,c as zn,ct as Bn,d as Vn,dt as Hn,et as Un,i as Wn,it as Gn,j as Kn,k as qn,l as Jn,n as Yn,o as Xn,p as Zn,q as Qn,r as $n,s as er,t as tr,tt as nr,u as rr,ut as ir,w as ar,x as or}from"./setYear-DDSuW45e.js";import{a as sr,n as cr,o as lr,r as ur,t as H}from"./AdminUtils-Dc1eHsx5.js";import{t as dr}from"./AceEditor-BgLZBrSD.js";import{t as fr}from"./ctrlEnter-CruFIPb_.js";x(),it();var pr=y(T(`path`,{d:`m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z`}),`ArrowForward`),mr=y(T(`path`,{d:`M19 3h-4.18C14.4 1.84 13.3 1 12 1s-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-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m-2 14-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z`}),`AssignmentTurnedIn`),hr=y(T(`path`,{d:`m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z`}),`AutoAwesome`),U=y(T(`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.96M14 13v4h-4v-4H7l5-5 5 5z`}),`Backup`),gr=y(T(`path`,{d:`M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z`}),`BarChart`),_r=y([T(`path`,{d:`M21 19.1H3V5h18zM21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2`},`0`),T(`path`,{d:`M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41z`},`1`)],`CancelPresentation`),vr=y(T(`path`,{d:`M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2m0 13H4v-2h16zm0-5H4V4h16z`}),`CardMembership`),W=y(T(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z`}),`CheckCircle`),yr=y(T(`path`,{d:`M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z`}),`ChevronLeft`),br=y(T(`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.96`}),`Cloud`),xr=y(T(`path`,{d:`M21.5 14.98c-.02 0-.03 0-.05.01C21.2 13.3 19.76 12 18 12c-1.4 0-2.6.83-3.16 2.02C13.26 14.1 12 15.4 12 17c0 1.66 1.34 3 3 3l6.5-.02c1.38 0 2.5-1.12 2.5-2.5s-1.12-2.5-2.5-2.5M10 4.26v2.09C7.67 7.18 6 9.39 6 12c0 1.77.78 3.34 2 4.44V14h2v6H4v-2h2.73C5.06 16.54 4 14.4 4 12c0-3.73 2.55-6.85 6-7.74M20 6h-2.73c1.43 1.26 2.41 3.01 2.66 5h-2.02c-.23-1.36-.93-2.55-1.91-3.44V10h-2V4h6z`}),`CloudSync`),Sr=y(T(`path`,{d:`M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z`}),`Devices`),Cr=y(T(`path`,{d:`M20 9H4v2h16zM4 15h16v-2H4z`}),`DragHandle`),wr=y(T(`path`,{d:`M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z`}),`Email`),Tr=y(T(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z`}),`Https`),Er=y(T(`path`,{d:`M8.4 18.2c.38.5.6 1.12.6 1.8 0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3c.44 0 .85.09 1.23.26l1.41-1.77c-.92-1.03-1.29-2.39-1.09-3.69l-2.03-.68c-.54.83-1.46 1.38-2.52 1.38-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3c0 .07 0 .14-.01.21l2.03.68c.64-1.21 1.82-2.09 3.22-2.32V5.91C9.96 5.57 9 4.4 9 3c0-1.66 1.34-3 3-3s3 1.34 3 3c0 1.4-.96 2.57-2.25 2.91v2.16c1.4.23 2.58 1.11 3.22 2.32L18 9.71V9.5c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-1.06 0-1.98-.55-2.52-1.37l-2.03.68c.2 1.29-.16 2.65-1.09 3.69l1.41 1.77Q17.34 17 18 17c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.68.22-1.3.6-1.8l-1.41-1.77c-1.35.75-3.01.76-4.37 0z`}),`Hub`),Dr=y(T(`path`,{d:`M9 3 5 6.99h3V14h2V6.99h3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99z`}),`ImportExport`),Or=y(T(`path`,{d:`M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4h16z`}),`Inventory2`),kr=y(T(`path`,{d:`M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z`}),`LibraryAdd`),Ar=y([T(`path`,{d:`M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z`},`0`),T(`path`,{d:`M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32`},`1`)],`LockPerson`),jr=y(T(`path`,{d:`m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z`}),`Logout`),Mr=y(T(`path`,{d:`M15 9H9v6h6zm-2 4h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2zm-4 6H7V7h10z`}),`Memory`),Nr=y(T(`path`,{d:`M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19zm-3-5h-2V7h-4v3H8l4 4z`}),`MoveToInbox`),Pr=y(T(`path`,{d:`M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7`}),`MyLocation`),Fr=y(T(`path`,{d:`M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z`}),`NavigateBefore`),Ir=y(T(`path`,{d:`M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z`}),`Notifications`),Lr=y(T(`path`,{d:`M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m-7 6-4 4h3v6h2v-6h3z`}),`OpenInBrowser`),Rr=y(T(`path`,{d:`M13 7h-2v2h2zm0 4h-2v6h2zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99M17 19H7V5h10z`}),`PermDeviceInformation`),zr=y(T(`path`,{d:`M19 11h-8v6h8zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2m-2 .02H3V4.97h18z`}),`PictureInPictureAlt`),Br=y(T(`path`,{d:`M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z`}),`ReportProblem`),Vr=y(T(`path`,{d:`M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2m-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9`}),`SettingsBackupRestore`),Hr=y(T(`path`,{d:`M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1m-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M7.05 6.05l1.41 1.41C9.37 6.56 10.62 6 12 6s2.63.56 3.54 1.46l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4.95 2.05M12 0C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1.01 6.36 2.64l1.41-1.41C17.79 1.23 15.04 0 12 0`}),`SettingsRemote`),Ur=y(T(`path`,{d:`M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13`}),`SmartToy`),Wr=y(T(`path`,{d:`M11 21H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h6zm2 0h6c1.1 0 2-.9 2-2v-7h-8zm8-11V5c0-1.1-.9-2-2-2h-6v7z`}),`SpaceDashboard`),Gr=y(T(`path`,{d:`M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33m-7.14-.94 2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20h6v-6l-2.24 2.24C6.68 15.15 6 13.66 6 12c0-1 .25-1.94.68-2.77l8.08 8.08c-.25.13-.5.25-.77.34v2.09c.8-.21 1.55-.54 2.23-.96l2.36 2.36 1.27-1.27L4.14 4.14zM20 4h-6v6l2.24-2.24C17.32 8.85 18 10.34 18 12c0 1-.25 1.94-.68 2.77l1.46 1.46C19.55 15.01 20 13.56 20 12c0-2.21-.91-4.2-2.36-5.64z`}),`SyncDisabled`),Kr=y(T(`path`,{d:`M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z`}),`Update`),qr=y(T(`path`,{d:`M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z`}),`VerifiedUser`),Jr={y:{sectionType:`year`,contentType:`digit`,maxLength:4},yy:`year`,yyy:{sectionType:`year`,contentType:`digit`,maxLength:4},yyyy:`year`,M:{sectionType:`month`,contentType:`digit`,maxLength:2},MM:`month`,MMMM:{sectionType:`month`,contentType:`letter`},MMM:{sectionType:`month`,contentType:`letter`},L:{sectionType:`month`,contentType:`digit`,maxLength:2},LL:`month`,LLL:{sectionType:`month`,contentType:`letter`},LLLL:{sectionType:`month`,contentType:`letter`},d:{sectionType:`day`,contentType:`digit`,maxLength:2},dd:`day`,do:{sectionType:`day`,contentType:`digit-with-letter`},E:{sectionType:`weekDay`,contentType:`letter`},EE:{sectionType:`weekDay`,contentType:`letter`},EEE:{sectionType:`weekDay`,contentType:`letter`},EEEE:{sectionType:`weekDay`,contentType:`letter`},EEEEE:{sectionType:`weekDay`,contentType:`letter`},i:{sectionType:`weekDay`,contentType:`digit`,maxLength:1},ii:`weekDay`,iii:{sectionType:`weekDay`,contentType:`letter`},iiii:{sectionType:`weekDay`,contentType:`letter`},e:{sectionType:`weekDay`,contentType:`digit`,maxLength:1},ee:`weekDay`,eee:{sectionType:`weekDay`,contentType:`letter`},eeee:{sectionType:`weekDay`,contentType:`letter`},eeeee:{sectionType:`weekDay`,contentType:`letter`},eeeeee:{sectionType:`weekDay`,contentType:`letter`},c:{sectionType:`weekDay`,contentType:`digit`,maxLength:1},cc:`weekDay`,ccc:{sectionType:`weekDay`,contentType:`letter`},cccc:{sectionType:`weekDay`,contentType:`letter`},ccccc:{sectionType:`weekDay`,contentType:`letter`},cccccc:{sectionType:`weekDay`,contentType:`letter`},a:`meridiem`,aa:`meridiem`,aaa:`meridiem`,H:{sectionType:`hours`,contentType:`digit`,maxLength:2},HH:`hours`,h:{sectionType:`hours`,contentType:`digit`,maxLength:2},hh:`hours`,K:{sectionType:`hours`,contentType:`digit`,maxLength:2},KK:`hours`,k:{sectionType:`hours`,contentType:`digit`,maxLength:2},kk:`hours`,m:{sectionType:`minutes`,contentType:`digit`,maxLength:2},mm:`minutes`,s:{sectionType:`seconds`,contentType:`digit`,maxLength:2},ss:`seconds`},Yr={year:`yyyy`,month:`LLLL`,monthShort:`MMM`,dayOfMonth:`d`,dayOfMonthFull:`do`,weekday:`EEEE`,weekdayShort:`EEEEEE`,hours24h:`HH`,hours12h:`hh`,meridiem:`aa`,minutes:`mm`,seconds:`ss`,fullDate:`PP`,keyboardDate:`P`,shortDate:`MMM d`,normalDate:`d MMMM`,normalDateWithWeekday:`EEE, MMM d`,fullTime12h:`hh:mm aa`,fullTime24h:`HH:mm`,keyboardDateTime12h:`P hh:mm aa`,keyboardDateTime24h:`P HH:mm`},Xr=class{constructor(e){j(this,`isMUIAdapter`,!0),j(this,`isTimezoneCompatible`,!1),j(this,`formatTokenMap`,Jr),j(this,`escapedCharacters`,{start:`'`,end:`'`}),j(this,`date`,e=>e===void 0?new Date:e===null?null:new Date(e)),j(this,`getInvalidDate`,()=>new Date(`Invalid Date`)),j(this,`getTimezone`,()=>`default`),j(this,`setTimezone`,e=>e),j(this,`toJsDate`,e=>e),j(this,`getCurrentLocaleCode`,()=>this.locale.code),j(this,`is12HourCycleInCurrentLocale`,()=>/a/.test(this.locale.formatLong.time({width:`short`}))),j(this,`expandFormat`,e=>e.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=this.longFormatters[t];return n(e,this.locale.formatLong)}return e}).join(``)),j(this,`formatNumber`,e=>e),j(this,`getDayOfWeek`,e=>e.getDay()+1);let{locale:t,formats:n,longFormatters:r,lib:i}=e;this.locale=t,this.formats=oe({},Yr,n),this.longFormatters=r,this.lib=i||`date-fns`}};x();var Zr=class extends Xr{constructor({locale:e,formats:t}={}){super({locale:e??vn,formats:t,longFormatters:On}),j(this,`parse`,(e,t)=>e===``?null:Zn(e,t,new Date,{locale:this.locale})),j(this,`isValid`,e=>e!=null&&Fn(e)),j(this,`format`,(e,t)=>this.formatByString(e,this.formats[t])),j(this,`formatByString`,(e,t)=>Dn(e,t,{locale:this.locale})),j(this,`isEqual`,(e,t)=>e===null&&t===null?!0:e===null||t===null?!1:Rn(e,t)),j(this,`isSameYear`,(e,t)=>Jn(e,t)),j(this,`isSameMonth`,(e,t)=>rr(e,t)),j(this,`isSameDay`,(e,t)=>In(e,t)),j(this,`isSameHour`,(e,t)=>Vn(e,t)),j(this,`isAfter`,(e,t)=>jn(e,t)),j(this,`isAfterYear`,(e,t)=>jn(e,Cn(t))),j(this,`isAfterDay`,(e,t)=>jn(e,wn(t))),j(this,`isBefore`,(e,t)=>or(e,t)),j(this,`isBeforeYear`,(e,t)=>or(e,this.startOfYear(t))),j(this,`isBeforeDay`,(e,t)=>or(e,this.startOfDay(t))),j(this,`isWithinRange`,(e,[t,n])=>zn(e,{start:t,end:n})),j(this,`startOfYear`,e=>Pn(e)),j(this,`startOfMonth`,e=>Tn(e)),j(this,`startOfWeek`,e=>_n(e,{locale:this.locale})),j(this,`startOfDay`,e=>Gn(e)),j(this,`endOfYear`,e=>Cn(e)),j(this,`endOfMonth`,e=>Qn(e)),j(this,`endOfWeek`,e=>Nn(e,{locale:this.locale})),j(this,`endOfDay`,e=>wn(e)),j(this,`addYears`,(e,t)=>kn(e,t)),j(this,`addMonths`,(e,t)=>ir(e,t)),j(this,`addWeeks`,(e,t)=>yn(e,t)),j(this,`addDays`,(e,t)=>Hn(e,t)),j(this,`addHours`,(e,t)=>Bn(e,t)),j(this,`addMinutes`,(e,t)=>nr(e,t)),j(this,`addSeconds`,(e,t)=>Un(e,t)),j(this,`getYear`,e=>bn(e)),j(this,`getMonth`,e=>Mn(e)),j(this,`getDate`,e=>En(e)),j(this,`getHours`,e=>qn(e)),j(this,`getMinutes`,e=>Sn(e)),j(this,`getSeconds`,e=>ar(e)),j(this,`getMilliseconds`,e=>xn(e)),j(this,`setYear`,(e,t)=>tr(e,t)),j(this,`setMonth`,(e,t)=>er(e,t)),j(this,`setDate`,(e,t)=>Xn(e,t)),j(this,`setHours`,(e,t)=>Ln(e,t)),j(this,`setMinutes`,(e,t)=>$n(e,t)),j(this,`setSeconds`,(e,t)=>Yn(e,t)),j(this,`setMilliseconds`,(e,t)=>Wn(e,t)),j(this,`getDaysInMonth`,e=>Kn(e)),j(this,`getWeekArray`,e=>{let t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e)),r=0,i=t,a=[];for(;this.isBefore(i,n);){let e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(i),i=this.addDays(i,1),r+=1}return a}),j(this,`getWeekNumber`,e=>An(e,{locale:this.locale})),j(this,`getYearRange`,([e,t])=>{let n=this.startOfYear(e),r=this.endOfYear(t),i=[],a=n;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i})}},Qr={"@mui/icons-material":()=>r(()=>import(`./icons-material-Omb_HCfb.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url),"date-fns":()=>r(()=>import(`./date-fns-BtR4dG_j.js`),__vite__mapDeps([31,32,33,1,2,3,34]),import.meta.url),"date-fns/locale":()=>r(()=>import(`./locale-DN6Bdkdt.js`).then(e=>e.t),__vite__mapDeps([35,2,32,34]),import.meta.url)};function $r(){cn({name:`iobroker_admin`,shared:{},remotes:[]}),we(Object.fromEntries(Object.entries(Qr).map(([e,t])=>[e,{version:{"@mui/icons-material":`9.5.0`,"date-fns":`4.4.0`,"date-fns/locale":`4.4.0`}[e],scope:`default`,get:async()=>{let e=await t();return()=>e},shareConfig:{singleton:!0,requiredVersion:`*`,eager:!1}}])))}var ei={version:`9.0.25`},ti=Re({hostsUpdate:0,adaptersUpdate:0,hosts:null,repository:null,installed:null});function ni({children:e}){let[t]=R({hostsUpdate:0,adaptersUpdate:0,hosts:null,repository:null,installed:null}),{hosts:n,installed:r,repository:i}=t,a=rn(()=>{var e;if(!n||!i)return 0;let t=(e=i[`js-controller`])==null?void 0:e.version,r=0;return n.forEach(e=>{H.updateAvailable(e.common.installedVersion,t,`js-controller on ${e._id}`)&&r++}),r},[n,i]),o=rn(()=>{if(!r||!i)return 0;let e=0;return Object.keys(r).forEach(t=>{let n=r[t],a=i[t];t!==`js-controller`&&t!==`hosts`&&n!=null&&n.version&&a!=null&&a.version&&n.ignoreVersion!==a.version&&H.updateAvailable(n.version,a.version,`adapter "${t}"`)&&e++}),e},[r,i]),s=rn(()=>({...t,hostsUpdate:a,adaptersUpdate:o}),[t,a,o]);return T(ti.Provider,{value:s,children:e})}var ri=Re({dragDropManager:void 0});function ii(e){return`Minified Redux error #`+e+`; visit https://redux.js.org/Errors?code=`+e+` for the full message or use the non-minified dev environment for full errors. `}var ai=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),oi=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},si={INIT:`@@redux/INIT`+oi(),REPLACE:`@@redux/REPLACE`+oi(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+oi()}};function ci(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function li(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(ii(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(ii(1));return n(li)(e,t)}if(typeof e!=`function`)throw Error(ii(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(ii(3));return a}function d(e){if(typeof e!=`function`)throw Error(ii(4));if(c)throw Error(ii(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(ii(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!ci(e))throw Error(ii(7));if(e.type===void 0)throw Error(ii(8));if(c)throw Error(ii(9));try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(ii(10));i=e,f({type:si.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(ii(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[ai]=function(){return this},e}return f({type:si.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[ai]=m,r}function G(e,t,...n){if(ui()&&t===void 0)throw Error(`invariant requires an error message argument`);if(!e){let e;if(t===void 0)e=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{let r=0;e=Error(t.replace(/%s/g,function(){return n[r++]})),e.name=`Invariant Violation`}throw e.framesToPop=1,e}}function ui(){return typeof process<`u`&&!0}function di(e,t,n){return t.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function fi(e,t){return e.filter(e=>e!==t)}function pi(e){return typeof e==`object`}function mi(e,t){let n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);let i=[];return n.forEach((e,t)=>{e===1&&i.push(t)}),i}function hi(e,t){return e.filter(e=>t.indexOf(e)>-1)}var gi=`dnd-core/INIT_COORDS`,_i=`dnd-core/BEGIN_DRAG`,vi=`dnd-core/PUBLISH_DRAG_SOURCE`,yi=`dnd-core/HOVER`,bi=`dnd-core/DROP`,xi=`dnd-core/END_DRAG`;function Si(e,t){return{type:gi,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Ci={type:gi,payload:{clientOffset:null,sourceClientOffset:null}};function wi(e){return function(t=[],n={publishSource:!0}){let{publishSource:r=!0,clientOffset:i,getSourceClientOffset:a}=n,o=e.getMonitor(),s=e.getRegistry();e.dispatch(Si(i)),Ti(t,o,s);let c=Oi(t,o);if(c==null){e.dispatch(Ci);return}let l=null;if(i){if(!a)throw Error(`getSourceClientOffset must be defined`);Ei(a),l=a(c)}e.dispatch(Si(i,l));let u=s.getSource(c).beginDrag(o,c);return u==null?void 0:(Di(u),s.pinSource(c),{type:_i,payload:{itemType:s.getSourceType(c),item:u,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!r}})}}function Ti(e,t,n){G(!t.isDragging(),`Cannot call beginDrag while dragging.`),e.forEach(function(e){G(n.getSource(e),`Expected sourceIds to be registered.`)})}function Ei(e){G(typeof e==`function`,`When clientOffset is provided, getSourceClientOffset must be a function.`)}function Di(e){G(pi(e),`Item must be an object.`)}function Oi(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function ki(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ki(e,t,n[t])})}return e}function ji(e){return function(t={}){let n=e.getMonitor(),r=e.getRegistry();Mi(n),Fi(n).forEach((i,a)=>{let o={type:bi,payload:{dropResult:Ai({},t,Ni(i,a,r,n))}};e.dispatch(o)})}}function Mi(e){G(e.isDragging(),`Cannot call drop while not dragging.`),G(!e.didDrop(),`Cannot call drop twice during one drag operation.`)}function Ni(e,t,n,r){let i=n.getTarget(e),a=i?i.drop(r,e):void 0;return Pi(a),a===void 0&&(a=t===0?{}:r.getDropResult()),a}function Pi(e){G(e===void 0||pi(e),`Drop result must either be an object or undefined.`)}function Fi(e){let t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Ii(e){return function(){let t=e.getMonitor(),n=e.getRegistry();Li(t);let r=t.getSourceId();return r!=null&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:xi}}}function Li(e){G(e.isDragging(),`Cannot call endDrag while not dragging.`)}function Ri(e,t){return t===null?e===null:Array.isArray(e)?e.some(e=>e===t):e===t}function zi(e){return function(t,{clientOffset:n}={}){Bi(t);let r=t.slice(0),i=e.getMonitor(),a=e.getRegistry();return Hi(r,a,i.getItemType()),Vi(r,i,a),Ui(r,i,a),{type:yi,payload:{targetIds:r,clientOffset:n||null}}}}function Bi(e){G(Array.isArray(e),`Expected targetIds to be an array.`)}function Vi(e,t,n){G(t.isDragging(),`Cannot call hover while not dragging.`),G(!t.didDrop(),`Cannot call hover after drop.`);for(let t=0;t<e.length;t++){let r=e[t];G(e.lastIndexOf(r)===t,`Expected targetIds to be unique in the passed array.`),G(n.getTarget(r),`Expected targetIds to be registered.`)}}function Hi(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r];Ri(t.getTargetType(i),n)||e.splice(r,1)}}function Ui(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}function Wi(e){return function(){if(e.getMonitor().isDragging())return{type:vi}}}function Gi(e){return{beginDrag:wi(e),publishDragSource:Wi(e),hover:zi(e),drop:ji(e),endDrag:Ii(e)}}var Ki=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){let e=this,{dispatch:t}=this.store;function n(n){return(...r)=>{let i=n.apply(e,r);i!==void 0&&t(i)}}let r=Gi(this);return Object.keys(r).reduce((e,t)=>{let i=r[t];return e[t]=n(i),e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{let e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function qi(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Ji(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yi(e){let{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Ji(qi(t,r),n)}function Xi(e){let{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Ji(t,n)}var Zi=[],Qi=[];Zi.__IS_NONE__=!0,Qi.__IS_ALL__=!0;function $i(e,t){return e===Zi?!1:e===Qi||t===void 0||hi(t,e).length>0}var ea=class{subscribeToStateChange(e,t={}){let{handlerIds:n}=t;G(typeof e==`function`,`listener must be a function.`),G(n===void 0||Array.isArray(n),`handlerIds, when specified, must be an array of strings.`);let r=this.store.getState().stateId;return this.store.subscribe(()=>{let t=this.store.getState(),i=t.stateId;try{i===r||i===r+1&&!$i(t.dirtyHandlerIds,n)||e()}finally{r=i}})}subscribeToOffsetChange(e){G(typeof e==`function`,`listener must be a function.`);let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{let n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;let t=this.registry.getSource(e);return G(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;let t=this.registry.getTarget(e);return G(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop()?!1:Ri(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;let t=this.registry.getSource(e,!0);return G(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic()||this.registry.getSourceType(e)!==this.getItemType()?!1:t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;let{shallow:n}=t;if(!this.isDragging())return!1;let r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!Ri(r,i))return!1;let a=this.getTargetIds();if(!a.length)return!1;let o=a.indexOf(e);return n?o===a.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return Yi(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return Xi(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},ta=typeof global<`u`?global:self,na=ta.MutationObserver||ta.WebKitMutationObserver;function ra(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function ia(e){let t=1,n=new na(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}var aa=typeof na==`function`?ia:ra,oa=class{enqueueTask(e){let{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.index<e.length;){let t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=aa(this.flush),this.requestErrorThrow=ra(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},sa=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},ca=class{create(e){let t=this.freeTasks,n=t.length?t.pop():new sa(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}},la=new oa,K=new ca(la.registerPendingError);function ua(e){la.enqueueTask(K.create(e))}var da=`dnd-core/ADD_SOURCE`,fa=`dnd-core/ADD_TARGET`,pa=`dnd-core/REMOVE_SOURCE`,ma=`dnd-core/REMOVE_TARGET`;function ha(e){return{type:da,payload:{sourceId:e}}}function ga(e){return{type:fa,payload:{targetId:e}}}function _a(e){return{type:pa,payload:{sourceId:e}}}function va(e){return{type:ma,payload:{targetId:e}}}function ya(e){G(typeof e.canDrag==`function`,`Expected canDrag to be a function.`),G(typeof e.beginDrag==`function`,`Expected beginDrag to be a function.`),G(typeof e.endDrag==`function`,`Expected endDrag to be a function.`)}function ba(e){G(typeof e.canDrop==`function`,`Expected canDrop to be a function.`),G(typeof e.hover==`function`,`Expected hover to be a function.`),G(typeof e.drop==`function`,`Expected beginDrag to be a function.`)}function xa(e,t){t&&Array.isArray(e)?e.forEach(e=>xa(e,!1)):G(typeof e==`string`||typeof e==`symbol`,t?`Type can only be a string, a symbol, or an array of either.`:`Type can only be a string or a symbol.`)}var Sa;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(Sa||={});var Ca=0;function wa(){return Ca++}function Ta(e){let t=wa().toString();switch(e){case Sa.SOURCE:return`S${t}`;case Sa.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}function Ea(e){switch(e[0]){case`S`:return Sa.SOURCE;case`T`:return Sa.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function Da(e,t){let n=e.entries(),r=!1;do{let{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}var Oa=class{addSource(e,t){xa(e),ya(t);let n=this.addHandler(Sa.SOURCE,e,t);return this.store.dispatch(ha(n)),n}addTarget(e,t){xa(e,!0),ba(t);let n=this.addHandler(Sa.TARGET,e,t);return this.store.dispatch(ga(n)),n}containsHandler(e){return Da(this.dragSources,e)||Da(this.dropTargets,e)}getSource(e,t=!1){return G(this.isSourceId(e),`Expected a valid source ID.`),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return G(this.isTargetId(e),`Expected a valid target ID.`),this.dropTargets.get(e)}getSourceType(e){return G(this.isSourceId(e),`Expected a valid source ID.`),this.types.get(e)}getTargetType(e){return G(this.isTargetId(e),`Expected a valid target ID.`),this.types.get(e)}isSourceId(e){return Ea(e)===Sa.SOURCE}isTargetId(e){return Ea(e)===Sa.TARGET}removeSource(e){G(this.getSource(e),`Expected an existing source.`),this.store.dispatch(_a(e)),ua(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){G(this.getTarget(e),`Expected an existing target.`),this.store.dispatch(va(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);G(t,`Expected an existing source.`),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){G(this.pinnedSource,`No source is pinned at the time.`),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){let r=Ta(e);return this.types.set(r,t),e===Sa.SOURCE?this.dragSources.set(r,n):e===Sa.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}},ka=(e,t)=>e===t;function Aa(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function ja(e,t,n=ka){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function Ma(e=Zi,t){switch(t.type){case yi:break;case da:case fa:case ma:case pa:return Zi;case _i:case vi:case xi:case bi:default:return Qi}let{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=mi(n,r);if(!(i.length>0||!ja(n,r)))return Zi;let a=r[r.length-1],o=n[n.length-1];return a!==o&&(a&&i.push(a),o&&i.push(o)),i}function Na(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Na(e,t,n[t])})}return e}var Fa={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ia(e=Fa,t){let{payload:n}=t;switch(t.type){case gi:case _i:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case yi:return Aa(e.clientOffset,n.clientOffset)?e:Pa({},e,{clientOffset:n.clientOffset});case xi:case bi:return Fa;default:return e}}function La(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ra(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){La(e,t,n[t])})}return e}var za={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ba(e=za,t){let{payload:n}=t;switch(t.type){case _i:return Ra({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case vi:return Ra({},e,{isSourcePublic:!0});case yi:return Ra({},e,{targetIds:n.targetIds});case ma:return e.targetIds.indexOf(n.targetId)===-1?e:Ra({},e,{targetIds:fi(e.targetIds,n.targetId)});case bi:return Ra({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case xi:return Ra({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Va(e=0,t){switch(t.type){case da:case fa:return e+1;case pa:case ma:return e-1;default:return e}}function Ha(e=0){return e+1}function Ua(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ua(e,t,n[t])})}return e}function Ga(e={},t){return{dirtyHandlerIds:Ma(e.dirtyHandlerIds,{type:t.type,payload:Wa({},t.payload,{prevTargetIds:di(e,`dragOperation.targetIds`,[])})}),dragOffset:Ia(e.dragOffset,t),refCount:Va(e.refCount,t),dragOperation:Ba(e.dragOperation,t),stateId:Ha(e.stateId)}}function Ka(e,t=void 0,n={},r=!1){let i=qa(r),a=new Ki(i,new ea(i,new Oa(i))),o=e(a,t,n);return a.receiveBackend(o),a}function qa(e){let t=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__;return li(Ga,e&&t&&t({name:`dnd-core`,instanceId:`dnd-core`}))}function Ja(e,t){if(e==null)return{};var n=Ya(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ya(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Xa=0,Za=Symbol.for(`__REACT_DND_CONTEXT_INSTANCE__`),Qa=At(function(e){var{children:t}=e;let[n,r]=$a(Ja(e,[`children`]));return Xt(()=>{if(r){let e=to();return++Xa,()=>{--Xa===0&&(e[Za]=null)}}},[]),T(ri.Provider,{value:n,children:t})});function $a(e){return`manager`in e?[{dragDropManager:e.manager},!1]:[eo(e.backend,e.context,e.options,e.debugMode),!e.context]}function eo(e,t=to(),n,r){let i=t;return i[Za]||(i[Za]={dragDropManager:Ka(e,t,n,r)}),i[Za]}function to(){return typeof global<`u`?global:window}var no=n(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),ro=typeof window<`u`?Dt:Xt,io=e(no(),1);function ao(e,t,n){let[r,i]=R(()=>t(e)),a=vt(()=>{let a=t(e);(0,io.default)(r,a)||(i(a),n&&n())},[r,e,n]);return ro(a),[r,a]}function oo(e,t,n){let[r,i]=ao(e,t,n);return ro(function(){let t=e.getHandlerId();if(t!=null)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),r}function so(e,t,n){return oo(t,e||(()=>({})),()=>n.reconnect())}function co(e,t){let n=[...t||[]];return t==null&&typeof e!=`function`&&n.push(e),rn(()=>typeof e==`function`?e():e,n)}function lo(e){return rn(()=>e.hooks.dragSource(),[e])}function uo(e){return rn(()=>e.hooks.dragPreview(),[e])}var fo=!1,po=!1,mo=class{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){G(!fo,`You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return fo=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{fo=!1}}isDragging(){if(!this.sourceId)return!1;G(!po,`You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return po=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{po=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}},ho=!1,go=class{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;G(!ho,`You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor`);try{return ho=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{ho=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}};function _o(e,t,n){let r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function vo(e,t,n){let r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function yo(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o<a.length;o++){let c=a[o];if(!s(c))return!1;let l=e[c],u=t[c];if(i=n?n.call(r,l,u,c):void 0,i===!1||i===void 0&&l!==u)return!1}return!0}function bo(e){return typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`current`)}function xo(e){if(typeof e.type==`string`)return;let t=e.type.displayName||e.type.name||`the component`;throw Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function So(e){return(t=null,n=null)=>{if(!dt(t)){let r=t;return e(r,n),r}let r=t;return xo(r),To(r,n?t=>e(t,n):e)}}function Co(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];if(n.endsWith(`Ref`))t[n]=e[n];else{let e=So(r);t[n]=()=>e}}),t}function wo(e,t){typeof e==`function`?e(t):e.current=t}function To(e,t){let n=e.ref;return G(typeof n!=`string`,`Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs`),n?Ue(e,{ref:e=>{wo(n,e),wo(t,e)}}):Ue(e,{ref:t})}var Eo=class{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){let e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){let e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){let t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!yo(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!yo(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&=(this.dragSourceUnsubscribe(),void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Co({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,bo(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,bo(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}},Do=class{get connectTarget(){return this.dropTarget}reconnect(){let e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();let t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!yo(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&=(this.unsubscribeDropTarget(),void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Co({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,bo(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}};function Oo(){let{dragDropManager:e}=Ye(ri);return G(e!=null,`Expected drag drop context`),e}function ko(e,t){let n=Oo(),r=rn(()=>new Eo(n.getBackend()),[n]);return ro(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),ro(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function Ao(){let e=Oo();return rn(()=>new mo(e),[e])}var jo=class{beginDrag(){let e=this.spec,t=this.monitor,n=null;return n=typeof e.item==`object`?e.item:typeof e.item==`function`?e.item(t):{},n??null}canDrag(){let e=this.spec,t=this.monitor;return typeof e.canDrag==`boolean`?e.canDrag:typeof e.canDrag!=`function`||e.canDrag(t)}isDragging(e,t){let n=this.spec,r=this.monitor,{isDragging:i}=n;return i?i(r):t===e.getSourceId()}endDrag(){let e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}};function Mo(e,t,n){let r=rn(()=>new jo(e,t,n),[t,n]);return Xt(()=>{r.spec=e},[e]),r}function q(e){return rn(()=>{let t=e.type;return G(t!=null,`spec.type must be defined`),t},[e])}function No(e,t,n){let r=Oo(),i=Mo(e,t,n),a=q(e);ro(function(){if(a!=null){let[e,o]=vo(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}},[r,t,n,i,a])}function Po(e,t){let n=co(e,t);G(!n.begin,`useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)`);let r=Ao(),i=ko(n.options,n.previewOptions);return No(n,r,i),[so(n.collect,r,i),lo(i),uo(i)]}function Fo(e){let t=Oo().getMonitor(),[n,r]=ao(t,e);return Xt(()=>t.subscribeToOffsetChange(r)),Xt(()=>t.subscribeToStateChange(r)),n}function Io(e){return rn(()=>e.hooks.dropTarget(),[e])}function Lo(e){let t=Oo(),n=rn(()=>new Do(t.getBackend()),[t]);return ro(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function Ro(){let e=Oo();return rn(()=>new go(e),[e])}function zo(e){let{accept:t}=e;return rn(()=>(G(e.accept!=null,`accept must be defined`),Array.isArray(t)?t:[t]),[t])}var Bo=class{canDrop(){let e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){let e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){let e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}};function Vo(e,t){let n=rn(()=>new Bo(e,t),[t]);return Xt(()=>{n.spec=e},[e]),n}function Ho(e,t,n){let r=Oo(),i=Vo(e,t),a=zo(e);ro(function(){let[e,o]=_o(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o},[r,t,i,n,a.map(e=>e.toString()).join(`|`)])}function Uo(e,t){let n=co(e,t),r=Ro(),i=Lo(n.options);return Ho(n,r,i),[so(n.collect,r,i),Io(i)]}function Wo(e){let t=null;return()=>(t??=e(),t)}function Go(e,t){return e.filter(e=>e!==t)}function Ko(e,t){let n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);let i=[];return n.forEach(e=>i.push(e)),i}var qo=class{enter(e){let t=this.entered.length,n=t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e));return this.entered=Ko(this.entered.filter(n),[e]),t===0&&this.entered.length>0}leave(e){let t=this.entered.length;return this.entered=Go(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},Jo=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){let t={};Object.keys(this.config.exposeProperties).forEach(n=>{let r=this.config.exposeProperties[n];r!=null&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},Yo=t({FILE:()=>Xo,HTML:()=>$o,TEXT:()=>Qo,URL:()=>Zo}),Xo=`__NATIVE_FILE__`,Zo=`__NATIVE_URL__`,Qo=`__NATIVE_TEXT__`,$o=`__NATIVE_HTML__`;function es(e,t,n){return t.reduce((t,n)=>t||e.getData(n),``)??n}var ts={[Xo]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:[`Files`]},[$o]:{exposeProperties:{html:(e,t)=>es(e,t,``),dataTransfer:e=>e},matchesTypes:[`Html`,`text/html`]},[Zo]:{exposeProperties:{urls:(e,t)=>es(e,t,``).split(`
3
3
  `),dataTransfer:e=>e},matchesTypes:[`Url`,`text/uri-list`]},[Qo]:{exposeProperties:{text:(e,t)=>es(e,t,``),dataTransfer:e=>e},matchesTypes:[`Text`,`text/plain`]}};function ns(e,t){let n=ts[e];if(!n)throw Error(`native type ${e} has no configuration`);let r=new Jo(n);return r.loadDataTransfer(t),r}function rs(e){if(!e)return null;let t=Array.prototype.slice.call(e.types||[]);return Object.keys(ts).filter(e=>{let n=ts[e];return n!=null&&n.matchesTypes?n.matchesTypes.some(e=>t.indexOf(e)>-1):!1})[0]||null}var is=Wo(()=>/firefox/i.test(navigator.userAgent)),as=Wo(()=>!!window.safari),os=class{interpolate(e){let{xs:t,ys:n,c1s:r,c2s:i,c3s:a}=this,o=t.length-1;if(e===t[o])return n[o];let s=0,c=a.length-1,l;for(;s<=c;){l=Math.floor(.5*(s+c));let r=t[l];if(r<e)s=l+1;else if(r>e)c=l-1;else return n[l]}o=Math.max(0,c);let u=e-t[o],d=u*u;return n[o]+r[o]*u+i[o]*d+a[o]*u*d}constructor(e,t){let{length:n}=e,r=[];for(let e=0;e<n;e++)r.push(e);r.sort((t,n)=>e[t]<e[n]?-1:1);let i=[],a=[],o=[],s,c;for(let r=0;r<n-1;r++)s=e[r+1]-e[r],c=t[r+1]-t[r],a.push(s),i.push(c),o.push(c/s);let l=[o[0]];for(let e=0;e<a.length-1;e++){let t=o[e],n=o[e+1];if(t*n<=0)l.push(0);else{s=a[e];let r=a[e+1],i=s+r;l.push(3*i/((i+r)/t+(i+s)/n))}}l.push(o[o.length-1]);let u=[],d=[],f;for(let e=0;e<l.length-1;e++){f=o[e];let t=l[e],n=1/a[e],r=t+l[e+1]-f-f;u.push((f-t-r)*n),d.push(r*n*n)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=u,this.c3s=d}},ss=1;function cs(e){let t=e.nodeType===ss?e:e.parentElement;if(!t)return null;let{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function ls(e){return{x:e.clientX,y:e.clientY}}function us(e){var t;return e.nodeName===`IMG`&&(is()||!((t=document.documentElement)!=null&&t.contains(e)))}function ds(e,t,n,r){let i=e?t.width:n,a=e?t.height:r;return as()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function fs(e,t,n,r,i){let a=us(t),o=cs(a?e:t),s={x:n.x-o.x,y:n.y-o.y},{offsetWidth:c,offsetHeight:l}=e,{anchorX:u,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:p}=ds(a,t,c,l),m=()=>{let e=new os([0,.5,1],[s.y,s.y/l*p,s.y+p-l]).interpolate(d);return as()&&a&&(e+=(window.devicePixelRatio-1)*p),e},h=()=>new os([0,.5,1],[s.x,s.x/c*f,s.x+f-c]).interpolate(u),{offsetX:g,offsetY:_}=i,v=g===0||g,y=_===0||_;return{x:v?g:h(),y:y?_:m()}}var ps=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<`u`)return window}get document(){var e;if((e=this.globalContext)!=null&&e.document)return this.globalContext.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.optionsArgs)==null?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}};function ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ms(e,t,n[t])})}return e}var gs=class{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)==null?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((t=this.dragOverTargetIds)==null?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){let e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw Error(`Cannot have two HTML5 backends at the same time.`);e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){let e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)==null||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);let r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute(`draggable`,`true`),t.addEventListener(`dragstart`,r),t.addEventListener(`selectstart`,i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener(`dragstart`,r),t.removeEventListener(`selectstart`,i),t.setAttribute(`draggable`,`false`)}}connectDropTarget(e,t){let n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener(`dragenter`,n),t.addEventListener(`dragover`,r),t.addEventListener(`drop`,i),()=>{t.removeEventListener(`dragenter`,n),t.removeEventListener(`dragover`,r),t.removeEventListener(`drop`,i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener(`dragstart`,this.handleTopDragStart),e.addEventListener(`dragstart`,this.handleTopDragStartCapture,!0),e.addEventListener(`dragend`,this.handleTopDragEndCapture,!0),e.addEventListener(`dragenter`,this.handleTopDragEnter),e.addEventListener(`dragenter`,this.handleTopDragEnterCapture,!0),e.addEventListener(`dragleave`,this.handleTopDragLeaveCapture,!0),e.addEventListener(`dragover`,this.handleTopDragOver),e.addEventListener(`dragover`,this.handleTopDragOverCapture,!0),e.addEventListener(`drop`,this.handleTopDrop),e.addEventListener(`drop`,this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener(`dragstart`,this.handleTopDragStart),e.removeEventListener(`dragstart`,this.handleTopDragStartCapture,!0),e.removeEventListener(`dragend`,this.handleTopDragEndCapture,!0),e.removeEventListener(`dragenter`,this.handleTopDragEnter),e.removeEventListener(`dragenter`,this.handleTopDragEnterCapture,!0),e.removeEventListener(`dragleave`,this.handleTopDragLeaveCapture,!0),e.removeEventListener(`dragover`,this.handleTopDragOver),e.removeEventListener(`dragover`,this.handleTopDragOverCapture,!0),e.removeEventListener(`drop`,this.handleTopDrop),e.removeEventListener(`drop`,this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){let e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return hs({dropEffect:this.altKeyPressed?`copy`:`move`},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?`copy`:this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){let e=this.monitor.getSourceId();return hs({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){let e=this.monitor.getItemType();return Object.keys(Yo).some(t=>Yo[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=ns(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return(e=this.rootElement)==null?void 0:e.addEventListener(`mousemove`,this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)==null||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener(`mousemove`,this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||=[],this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{let t=this.sourceNodes.get(e);return t&&cs(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>!!(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{let e=this.currentDragSourceNode;e==null||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{this.hoverRafId===null&&typeof requestAnimationFrame<`u`&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<`u`&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;let{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;let n=ls(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});let{dataTransfer:r}=e,i=rs(r);if(this.monitor.isDragging()){if(r&&typeof r.setDragImage==`function`){let e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){let{anchorX:e,anchorY:a,offsetX:o,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=fs(t,i,n,{anchorX:e,anchorY:a},{offsetX:o,offsetY:s});r.setDragImage(i,c.x,c.y)}}try{r==null||r.setData(`application/json`,{})}catch{}this.setCurrentDragSourceNode(e.target);let{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(i)this.beginDragNativeItem(i);else if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute(`draggable`)))return;else e.preventDefault()},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;let{dataTransfer:n}=e,r=rs(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{let{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:ls(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}},this.handleTopDragOver=e=>{let{dragOverTargetIds:t}=this;this.dragOverTargetIds=[],this.monitor.isDragging()?(this.altKeyPressed=e.altKey,this.lastClientOffset=ls(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`))):(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var t;e.preventDefault(),(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}else rs(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{let{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:ls(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{let t=e.target;typeof t.dragDrop==`function`&&(t.tagName===`INPUT`||t.tagName===`SELECT`||t.tagName===`TEXTAREA`||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new ps(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new qo(this.isNodeInDocument)}},_s;function vs(){return _s||(_s=new Image,_s.src=`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`),_s}var ys=function(e,t,n){return new gs(e,t,n)},bs;(function(e){e.mouse=`mouse`,e.touch=`touch`,e.keyboard=`keyboard`})(bs||={});var xs=class{get delay(){return this.args.delay??0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){return this.args.ignoreContextMenu??!1}get enableHoverOutsideTarget(){return this.args.enableHoverOutsideTarget??!1}get enableKeyboardEvents(){return this.args.enableKeyboardEvents??!1}get enableMouseEvents(){return this.args.enableMouseEvents??!1}get enableTouchEvents(){return this.args.enableTouchEvents??!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,t;return((e=this.args)==null?void 0:e.delayTouchStart)??((t=this.args)==null?void 0:t.delay)??0}get delayMouseStart(){var e,t;return((e=this.args)==null?void 0:e.delayMouseStart)??((t=this.args)==null?void 0:t.delay)??0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<`u`)return window}get document(){var e;if((e=this.context)!=null&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)==null?void 0:e.rootElement)||this.document}constructor(e,t){this.args=e,this.context=t}};function Ss(e,t,n,r){return Math.sqrt(Math.abs(n-e)**2+Math.abs(r-t)**2)}function Cs(e,t,n,r,i){if(!i)return!1;let a=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let e=0;e<i.length;++e){let t=i[e];if(t&&(t.start==null||a>=t.start)&&(t.end==null||a<=t.end))return!0}return!1}var ws={Left:1,Right:2,Center:4},Ts={Left:0,Center:1,Right:2};function Es(e){return e.button===void 0||e.button===Ts.Left}function Ds(e){return e.buttons===void 0||(e.buttons&ws.Left)===0}function Os(e){return!!e.targetTouches}var ks=1;function As(e){let t=e.nodeType===ks?e:e.parentElement;if(!t)return;let{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function js(e,t){if(e.targetTouches.length===1)return Ms(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return Ms(e.touches[0])}function Ms(e,t){return Os(e)?js(e,t):{x:e.clientX,y:e.clientY}}var Ns=(()=>{let e=!1;try{addEventListener(`test`,()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),Ps={[bs.mouse]:{start:`mousedown`,move:`mousemove`,end:`mouseup`,contextmenu:`contextmenu`},[bs.touch]:{start:`touchstart`,move:`touchmove`,end:`touchend`},[bs.keyboard]:{keydown:`keydown`}},Fs=class e{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)==null?void 0:e.length)||0}}get document(){return this.options.document}setup(){let t=this.options.rootElement;t&&(G(!e.isSetUp,`Cannot have two Touch backends at the same time.`),e.isSetUp=!0,this.addEventListener(t,`start`,this.getTopMoveStartHandler()),this.addEventListener(t,`start`,this.handleTopMoveStartCapture,!0),this.addEventListener(t,`move`,this.handleTopMove),this.addEventListener(t,`move`,this.handleTopMoveCapture,!0),this.addEventListener(t,`end`,this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,`contextmenu`,this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,`keydown`,this.handleCancelOnEscape,!0))}teardown(){let t=this.options.rootElement;t&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,`start`,this.handleTopMoveStartCapture,!0),this.removeEventListener(t,`start`,this.handleTopMoveStart),this.removeEventListener(t,`move`,this.handleTopMoveCapture,!0),this.removeEventListener(t,`move`,this.handleTopMove),this.removeEventListener(t,`end`,this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,`contextmenu`,this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,`keydown`,this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,t,n,r=!1){let i=Ns?{capture:r,passive:!1}:r;this.listenerTypes.forEach(function(r){let a=Ps[r][t];a&&e.addEventListener(a,n,i)})}removeEventListener(e,t,n,r=!1){let i=Ns?{capture:r,passive:!1}:r;this.listenerTypes.forEach(function(r){let a=Ps[r][t];a&&e.removeEventListener(a,n,i)})}connectDragSource(e,t){let n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,`start`,n),()=>{this.sourceNodes.delete(e),this.removeEventListener(t,`start`,n)}}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,t){let n=this.options.rootElement;if(!this.document||!n)return()=>{};let r=r=>{if(!this.document||!n||!this.monitor.isDragging())return;let i;switch(r.type){case Ps.mouse.move:i={x:r.clientX,y:r.clientY};break;case Ps.touch.move:var a,o;i={x:((a=r.touches[0])==null?void 0:a.clientX)||0,y:((o=r.touches[0])==null?void 0:o.clientY)||0}}let s=i==null?void 0:this.document.elementFromPoint(i.x,i.y),c=s&&t.contains(s);if(s===t||c)return this.handleMove(r,e)};return this.addEventListener(this.document.body,`move`,r),this.targetNodes.set(e,t),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,`move`,r))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display=`none`,this.draggedSourceNode.removeAttribute(`data-reactid`),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,t,n){this.getSourceClientOffset=e=>{let t=this.sourceNodes.get(e);return t&&As(t)},this.handleTopMoveStartCapture=e=>{Es(e)&&(this.moveStartSourceIds=[])},this.handleMoveStart=e=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=e=>{if(!Es(e))return;let t=Ms(e);t&&(Os(e)&&(this.lastTargetTouchFallback=e.targetTouches[0]),this._mouseClientOffset=t),this.waitingForDelay=!1},this.handleTopMoveStartDelay=e=>{if(!Es(e))return;let t=e.type===Ps.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,e),t),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(e,t)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(t)},this.handleTopMove=e=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;let{moveStartSourceIds:t,dragOverTargetIds:n}=this,r=this.options.enableHoverOutsideTarget,i=Ms(e,this.lastTargetTouchFallback);if(!i)return;if(this._isScrolling||!this.monitor.isDragging()&&Cs(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,i.x,i.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty(`x`)&&t&&Ss(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,i.x,i.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(t,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;let a=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(a),this.actions.publishDragSource(),e.cancelable&&e.preventDefault();let o=(n||[]).map(e=>this.targetNodes.get(e)).filter(e=>!!e),s=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(i.x,i.y,o):this.document.elementsFromPoint(i.x,i.y),c=[];for(let e in s){if(!s.hasOwnProperty(e))continue;let t=s[e];for(t!=null&&c.push(t);t;)t=t.parentElement,t&&c.indexOf(t)===-1&&c.push(t)}let l=c.filter(e=>o.indexOf(e)>-1).map(e=>this._getDropTargetId(e)).filter(e=>!!e).filter((e,t,n)=>n.indexOf(e)===t);if(r)for(let e in this.targetNodes){let t=this.targetNodes.get(e);if(a&&t&&t.contains(a)&&l.indexOf(e)===-1){l.unshift(e);break}}l.reverse(),this.actions.hover(l,{clientOffset:i})},this._getDropTargetId=e=>{let t=this.targetNodes.keys(),n=t.next();for(;n.done===!1;){let r=n.value;if(e===this.targetNodes.get(r))return r;n=t.next()}},this.handleTopMoveEndCapture=e=>{this._isScrolling=!1,this.lastTargetTouchFallback=void 0,Ds(e)&&(!this.monitor.isDragging()||this.monitor.didDrop()?this.moveStartSourceIds=void 0:(e.cancelable&&e.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()))},this.handleCancelOnEscape=e=>{e.key===`Escape`&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new xs(n,t),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(bs.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(bs.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(bs.keyboard)}},Is=function(e,t={},n={}){return new Fs(e,t,n)};x();var Ls={message:{position:`relative`,display:`block`,width:`100%`},offline:{position:`relative`,justifyContent:`space-between`,display:`flex`,width:`100%`,alignItems:`center`,opacity:.7,"@media screen and (max-width: 550px)":{flexWrap:`wrap`}},timestamp:{color:`text.secondary`,position:`absolute`,top:5,right:25,"@media screen and (max-width: 550px)":{fontSize:`2.9vw`}},simpleMessage:{fontFamily:`monospace`,fontSize:14,ml:`20px`,mb:`10px`,width:`100%`,display:`block`,whiteSpace:`pre-wrap`,"@media screen and (max-width: 550px)":{fontSize:`2.9vw`,ml:0}}},Rs={alert:0,notify:1,info:2};function zs(e){return e===`notify`||e===`info`?e:`alert`}function Bs(e,t){return Rs[zs(e)]-Rs[zs(t)]}var Vs=class extends $t{constructor(e){super(e),j(this,`lastAlive`,0),j(this,`onAliveChanged`,(e,t)=>{if(e===`${this.props.instanceId}.alive`&&t&&this.state.alive!==!!t.val){if(t.val){if(this.lastAlive&&Date.now()-this.lastAlive<500)return;this.lastAlive=Date.now()}this.setState({alive:!!t.val},()=>this.getGui())}}),this.state={alive:!1,data:{},schema:null,updateData:0}}async componentDidMount(){var e;if((e=this.props.message.contextData)!=null&&(e=e.admin)!=null&&e.notification){let e=await this.props.socket.getState(`${this.props.instanceId}.alive`);this.lastAlive=e!=null&&e.val?Date.now():0,this.setState({alive:!!(e!=null&&e.val)},()=>this.getGui()),await this.props.socket.subscribeState(`${this.props.instanceId}.alive`,this.onAliveChanged)}}getGui(){var e;if(this.state.alive&&(e=this.props.message.contextData)!=null&&(e=e.admin)!=null&&e.notification){var t;let e=JSON.parse(JSON.stringify((t=this.props.message.contextData)==null||(t=t.admin)==null?void 0:t.notification));e.offlineMessage&&delete e.offlineMessage,this.props.socket.sendTo(this.props.instanceId.replace(`system.adapter.`,``),`admin:getNotificationSchema`,e).then(e=>{e&&this.setState({schema:e.schema,data:e.data||this.state.data,updateData:this.state.updateData+1})})}}renderCustomGui(){if(!this.state.schema||!this.state.data||!this.state.alive){var e;let t=(e=this.props.message.contextData)==null||(e=e.admin)==null?void 0:e.notification;if(t){if(!this.state.alive){let e=t.offlineMessage;if(e){let t=typeof e==`string`?e:e[this.props.socket.systemLang]||e.en;return T(F,{sx:Ls.offline,children:Pe.renderTextWithA(t)})}return T(L,{children:A.t(`Instance is not alive`)})}return T(Le,{})}return null}let[,,t,n]=this.props.instanceId.split(`.`);return M(Me,{children:[this.state.error&&T(`div`,{style:{color:`red`},children:this.state.error}),T(ce,{style:{width:`100%`},updateData:this.state.updateData,socket:this.props.socket,adapterName:t,instance:parseInt(n,10),schema:this.state.schema,data:this.state.data,onError:e=>this.setState({error:e}),onChange:e=>this.setState({data:e||{}}),onBackEndCommand:e=>{e&&(e.schema&&this.setState({schema:e.schema,data:e.data||this.state.data}),(e.command===`refresh`||e.refresh)&&this.getGui(),e.command===`link`&&this.props.onLink(e))},embedded:!0,themeName:this.props.themeName,themeType:this.props.themeType,theme:this.props.theme,isFloatComma:this.props.isFloatComma,dateFormat:this.props.dateFormat,AceEditor:dr})]})}renderSimpleMessage(){return this.props.message.message?T(F,{sx:Ls.simpleMessage,children:Pe.renderTextWithA(this.props.message.message)}):null}render(){return M(L,{component:`div`,sx:Ls.message,children:[T(F,{sx:Ls.timestamp,children:new Date(this.props.message.ts).toLocaleString()}),this.renderSimpleMessage(),this.renderCustomGui()]})}},Hs={root:e=>({backgroundColor:e.palette.background.paper,width:`100%`,height:`auto`,display:`flex`,borderRadius:`4px`,flexDirection:`column`}),paper:{maxWidth:1e3,width:`100%`},flex:{display:`flex`},overflowHidden:{overflow:`hidden`},overflowAuto:{overflowY:`auto`},column:{flexDirection:`column`},headerText:e=>({fontWeight:`bold`,fontSize:20,color:e.palette.mode===`dark`?`#DDD`:`#111`}),descriptionHeaderText:e=>({margin:`18px 0`,color:e.palette.mode===`dark`?`#CCC`:`#222`}),button:{paddingTop:5,paddingBottom:5,position:`sticky`,bottom:0,zIndex:3},img2:{width:25,height:25,margin:`auto 0`,mr:`10px`,position:`relative`,"&:after":{content:`""`,position:`absolute`,zIndex:2,top:0,left:0,width:`100%`,height:`100%`,background:`url("img/no-image.svg") 100% 100% no-repeat`,backgroundSize:`cover`,backgroundColor:`#fff`}},heading:{display:`flex`,alignItems:`center`,overflow:`hidden`,width:`100%`},headingTop:{display:`flex`,alignItems:`center`},classNameBox:{p:`8px`,"@media screen and (max-width: 550px)":{p:`4px`}},textStyle:{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,"@media screen and (max-width: 550px)":{fontSize:`2.9vw`}},content:{overflow:`hidden`},buttonStyle:{m:`3px`,"@media screen and (max-width: 550px)":{fontSize:`2.9vw`}}};function Us({severity:e,isDark:t,...n}){return e=zs(e),e===`notify`?T(Ir,{color:t?`primary`:`secondary`,...n}):e===`info`?T(ut,{color:`info`,...n}):T(Ft,{style:{color:`#ffca00`},...n})}function Ws(e){return{id:`scrollable-force-tab-${e}`,"aria-controls":`scrollable-force-tabpanel-${e}`}}var Gs=({children:e,index:t,sxBox:n,style:r})=>T(`div`,{role:`tabpanel`,id:`scrollable-force-tabpanel-${t}`,"aria-labelledby":`scrollable-force-tab-${t}`,style:r,children:T(F,{sx:n,children:T(L,{component:`div`,children:e})})});function Ks(e,t=``){return e?typeof e==`string`?e:e[A.getLanguage()]||e.en||t:t}function qs(e,t,n){let r,i=``;e.url?e.url.toString().startsWith(`#`)||e.url.toString().startsWith(`/`)?(r=e.target||`_self`,i=e.url):e.url.startsWith(`http://`)||e.url.startsWith(`https://`)?(r=e.target||`_blank`,i=e.url):(i=`#tab-instances/config/${t}/${e.url}`,r=e.target||`_self`):(i=`#tab-instances/config/${t}`,r=e.target||`_self`),r===`_self`?(setTimeout(e=>{e.startsWith(`#`)?window.location.hash=e:e.startsWith(`/`)?i=`${window.location.protocol}:${window.location.host}${i}`:(e.startsWith(`http://`)||e.startsWith(`https://`))&&(window.location.href=e)},100,i),e.close&&typeof n==`function`&&n()):(i.startsWith(`#`)?i=`${window.location.protocol}:${window.location.host}${window.location.pathname}${i}`:i.startsWith(`/`)&&(i=`${window.location.protocol}:${window.location.host}${i}`),window.open(i,r))}var Js=({notifications:e,onClose:t,ackCallback:n,dateFormat:r,themeType:i,instances:a,themeName:o,theme:s,isFloatComma:c,socket:d})=>{let[f,p]=R(``),[m,h]=R([]),[g,_]=R(``),[v,y]=R(!0),b=(e,t)=>{y(!0),p(t),_(``)},x=e=>(t,n)=>_(n?e:``),ee=i===`dark`,S=!!Object.values(a).find(e=>e.common.name===`notification-manager`),C=rn(()=>{let t={};for(let[n,r]of Object.entries(e))for(let[e,i]of Object.entries(r.result))if(e!==`system`)for(let[r,a]of Object.entries(i.categories))t[e]=t[e]||{},t[e][r]={...a,host:n};return t},[e]),w=rn(()=>Object.keys(C).flatMap(e=>Object.keys(C[e]).map(t=>({scope:e,name:t,entry:C[e][t]}))).sort((e,t)=>Bs(e.entry.severity,t.entry.severity)),[C]),te=w.length?`${w[0].scope}--${w[0].name}`:``,ne=f;if(!ne)ne=te;else{let[e,t]=ne.split(`--`);if(!C[e])ne=te;else if(!C[e][t]){let t=Object.keys(C[e])[0];ne=t?`${e}--${t}`:te}}let[E,re]=ne.split(`--`),ae=E&&re?`${E}--${re}`:``,D=E&&re?C[E][re]:null;return M(u,{onClose:()=>t(),open:!0,sx:{"& .MuiDialog-paper":Hs.paper},children:[M(`h2`,{style:Hs.headingTop,children:[T(Ir,{sx:{color:`primary.main`},style:{fontSize:36,marginLeft:25,marginRight:10}}),A.t(`Notifications`),S?null:T(Rt,{sx:{position:`absolute`,right:24,color:`text.primary`},title:A.t(`Tip: Use the "notification-manager" adapter to receive notifications automatically via messaging adapters.`),slotProps:{popper:{sx:{pointerEvents:`none`}}},children:T(ut,{})})]}),T(le,{style:{...Hs.flex,...Hs.overflowHidden},dividers:!0,children:M(F,{component:`div`,sx:Hs.root,children:[T(bt,{position:`static`,color:`default`,children:T(Zt,{value:ne,onChange:b,variant:`scrollable`,scrollButtons:!0,indicatorColor:ee?`primary`:`secondary`,textColor:ee?`primary`:`secondary`,children:w.map(({scope:e,name:t,entry:n},r)=>{let i=`${e}--${t}`;return T(ye,{disabled:m.includes(i),value:i,label:Ks(n.name,t),icon:T(Us,{severity:n.severity,isDark:ee}),...Ws(r)},i)})})}),D?M(Gs,{sxBox:Hs.classNameBox,style:{...Hs.overflowAuto,color:ee?`black`:void 0},index:ne,children:[T(F,{component:`div`,sx:Hs.headerText,style:{fontWeight:`bold`},children:Ks(D.name,re)}),T(F,{component:`div`,sx:Hs.descriptionHeaderText,children:Ks(D.description)}),T(`div`,{children:D.instances?Object.keys(D.instances).map(e=>{let n=`${ne}--${e}`;v&&(x(n)(``,!0),y(!1));let u=a&&a[e],f=u&&dn(u)||`img/no-image.svg`;return M(Vt,{style:ee?void 0:{backgroundColor:`#c0c0c052`},expanded:g===n,onChange:x(n),children:[T(ie,{expandIcon:T(l,{}),sx:{"& .MuiAccordionSummary-content":Hs.content},"aria-controls":`panel1bh-content`,id:`panel1bh-header`,children:M(L,{style:Hs.heading,children:[T(sn,{sx:Hs.img2,component:`img`,image:f}),T(F,{component:`div`,sx:Hs.textStyle,style:{marginLeft:8},children:e.replace(/^system\.adapter\./,``)})]})}),T(ge,{style:Hs.column,children:D.instances[e].messages.map((n,a)=>T(Vs,{message:n,dateFormat:r,instanceId:e,socket:d,themeType:i,themeName:o,theme:s,isFloatComma:c,onLink:n=>qs(n,e,t)},a))})]},n)}):null})]},`tabPanel-${re}`):null]})}),M(St,{children:[E&&re?T(V,{variant:`contained`,autoFocus:Object.keys(C[E]).length!==1,disabled:m.includes(ae),style:m.includes(ae)?{backgroundColor:`silver`}:void 0,sx:Hs.buttonStyle,onClick:e=>{e.stopPropagation(),n(C[E][re].host,re),h([...m,ae])},color:Object.keys(C[E]).length===1?`grey`:`primary`,startIcon:T(Ne,{}),children:A.t(`Acknowledge`)}):null,E&&re&&Object.keys(C[E]).length===1&&T(V,{variant:`contained`,disabled:m.includes(ae),sx:Hs.buttonStyle,style:m.includes(ae)?{backgroundColor:`silver`}:void 0,onClick:e=>{e.stopPropagation(),h([...m,ae]),n(C[E][re].host,re),t()},startIcon:M(Me,{children:[T(Ne,{}),T(O,{})]}),color:`primary`,children:A.t(`Acknowledge & close`)}),T(`div`,{style:{flexGrow:1}}),T(V,{id:`notifications-dialog-close`,variant:`contained`,onClick:e=>{e.stopPropagation(),t()},startIcon:T(O,{}),color:`grey`,children:A.t(`Close`)})]})]})};function Ys({label:e,compact:t=!1}){return M(`div`,{className:`eos-boot-loader${t?` eos-boot-loader--compact`:``}`,role:`status`,"aria-live":`polite`,"aria-busy":`true`,children:[T(`img`,{className:`eos-boot-loader__logo`,src:`img/eos/nexowatt-eos-brand-wide.png`,width:1200,height:342,alt:`NexoWatt EOS – Energy Operation System`}),T(`span`,{className:`eos-boot-loader__spinner`,"aria-hidden":`true`}),T(`p`,{className:`eos-boot-loader__label`,children:e})]})}x();var Xs={log:{height:400,width:860,padding:8,overflowY:`auto`},logNoSpacing:{height:`100%`,width:`calc(100% - 8px)`,marginLeft:8,padding:8,overflowY:`auto`},error:{color:`#f44336`},info:{color:`#2196f3`},warn:{color:`#ffc107`}},Zs=class e extends $t{constructor(t){super(t),j(this,`logRef`,void 0),j(this,`regExp`,void 0),this.state={log:[`$ iobroker ${t.cmd||``}`],init:!1,max:null,value:null,moreChecked:!0,stopped:!1},this.logRef=Ut.createRef(),this.regExp=new RegExp(e.pattern.join(`|`),`i`)}componentDidMount(){this.props.ready&&this.props.cmd&&(console.log(`STARTED: ${this.props.cmd}`),this.executeCommand())}componentDidUpdate(){var e;!this.state.init&&this.props.ready&&this.props.cmd&&this.executeCommand(),this.props.logsRead&&JSON.stringify(this.props.logsRead)!==JSON.stringify(this.state.log)&&this.setState({log:this.props.logsRead}),(e=this.logRef.current)==null||e.scrollIntoView()}executeCommand(){var e;this.setState({init:!0},()=>this.props.onSetCommandRunning&&this.props.onSetCommandRunning(!0)),this.props.socket.registerCmdStdoutHandler((e,t)=>this.cmdStdoutHandler(e,t)),this.props.socket.registerCmdStderrHandler((e,t)=>this.cmdStderrHandler(e,t)),this.props.socket.registerCmdExitHandler((e,t)=>this.cmdExitHandler(e,t));let t=Math.floor(Math.random()*268435454)+1;this.setState({activeCmdId:t});let n=this.props.host.startsWith(`system.host.`)?this.props.host:`system.host.${this.props.host}`;this.props.socket.cmdExec.bind(this.props.socket)(n,this.props.cmd,t,void 0,(e=this.props.files)!=null&&e.length?this.props.files:void 0).catch(e=>console.log(e))}cmdStdoutHandler(e,t){if(this.state.activeCmdId&&this.state.activeCmdId===e){let e=this.state.log.slice();e.push(t);let n=t.match(/^upload \[(\d+)]/),r=n?null:t.match(/^got [-_:/\\.\w\d]+\/admin$/),i=r?null:t.match(/^got [-_:/\\.\w\d]+\/www$/),a=this.state.max,o=null;n?(a||=parseInt(n[1],10),o=parseInt(n[1],10)):(r||i)&&(a=null),this.setState({log:e,max:a,value:o}),console.log(`cmdStdout`)}}cmdStderrHandler(e,t){if(this.state.activeCmdId&&this.state.activeCmdId===e){let n=this.state.log.slice();n.push(t),this.setState({log:n}),console.log(`cmdStderr`),console.log(e),console.log(t)}}cmdExitHandler(e,t){if(this.state.activeCmdId&&this.state.activeCmdId===e){let n=this.state.log.slice();if(!window.document.hidden&&t===0&&n.length&&n[n.length-1].endsWith(`created`)&&this.props.callback){let e=n[n.length-1].split(` `).find(e=>e.startsWith(`system`));e&&setTimeout(e=>{this.props.socket.getObject(e).then(t=>{var n;H.fixAdminUI(t),t&&((n=t.common)==null||(n=n.adminUI)==null?void 0:n.config)!==`none`&&d.doNavigate(`tab-instances`,`config`,e)})},1e3,e)}n.push(`${t===0?``:`ERROR: `}Process exited with code ${t}`),this.setState({log:n,stopped:!0},()=>{this.props.onSetCommandRunning&&this.props.onSetCommandRunning(!1),t!==0||this.state.log[this.state.log.length-1].toLowerCase().includes(`error`)?this.props.errorFunc&&this.props.errorFunc(t,this.state.log):(this.props.performed&&this.props.performed(),this.props.onFinished(t,this.state.log)),console.log(`cmdExit`),console.log(e),console.log(t),typeof this.props.callback==`function`&&this.props.callback(t)})}}colorize(e,t){t&&(e=e.substring(0,t));let n=H.parseColorMessage(e);if(typeof n==`object`)return n.parts.map((e,t)=>T(`span`,{style:e.style,children:e.text},t));if(e.search(this.regExp)!==-1){let t=[];for(;e.search(this.regExp)>=0;){let[n]=e.match(this.regExp)||[``],r=e.search(this.regExp);if(r>0){let n=e.substring(0,r),i=H.parseColorMessage(n);t.push(T(`span`,{children:typeof i==`object`?i.parts.map((e,t)=>T(`span`,{style:e.style,children:e.text},t)):i},t.length)),e=e.replace(n,``)}let i=e.substring(0,n.length);if(i){let r=H.parseColorMessage(i);t.push(T(`span`,{style:Xs[n.toLowerCase()],children:typeof r==`object`?r.parts.map((e,t)=>T(`span`,{style:e.style,children:e.text},t)):r},t.length)),e=e.replace(i,``)}}if(e){let n=H.parseColorMessage(e);t.push(T(`span`,{children:typeof n==`object`?n.parts.map((e,t)=>T(`span`,{style:e.style,children:e.text},t)):n},t.length))}return t}return e}getLog(){return this.state.log.map((e,t)=>{let n=e.startsWith(`$ `);return T(L,{ref:t===this.state.log.length-1?this.logRef:void 0,component:`p`,variant:`body2`,sx:n?e=>({fontWeight:`bold`,backgroundColor:e.palette.mode===`dark`?`rgba(255, 255, 255, 0.08)`:`rgba(0, 0, 0, 0.06)`,borderRadius:`4px`,py:`2px`,px:`6px`,mx:`-6px`,mb:`6px`}):void 0,children:this.colorize(e)},t)})}render(){return M(N,{style:this.props.noSpacing?{height:`100%`,width:`100%`}:{},container:!0,spacing:this.props.noSpacing?0:2,sx:{flexDirection:`column`},children:[this.props.showElement===void 0||this.props.showElement===!0?T(N,{children:!this.state.stopped&&T(Le,{style:this.props.commandError?{backgroundColor:`#f44336`}:void 0,variant:this.props.inBackground?`determinate`:`indeterminate`,value:this.state.max&&this.state.value?100-Math.round(this.state.value/this.state.max*100):this.props.commandError?0:100})}):null,M(`div`,{style:{width:`100%`,display:`flex`,alignItems:`center`,justifyContent:this.props.inBackground?`space-between`:`flex-end`},children:[T(L,{style:this.props.inBackground?{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}:{display:`none`},component:`div`,children:this.colorize(this.state.log[this.state.log.length-1])}),this.props.showElement===void 0||this.props.showElement===!0?M(`div`,{style:{display:`flex`,flexDirection:`row`,alignItems:`center`,justifyContent:`end`,gap:8,flexWrap:`nowrap`},children:[T(F,{style:{whiteSpace:`nowrap`},sx:{"@media (max-width: 600px)":{display:`none`}},children:this.props.t(`less output`)}),T(We,{checked:this.state.moreChecked,onChange:e=>this.setState({moreChecked:e.target.checked}),color:`primary`}),T(F,{style:{whiteSpace:`nowrap`},sx:{"@media (max-width: 600px)":{display:`none`}},children:this.props.t(`more output`)})]}):null]}),T(N,{style:this.props.noSpacing?{height:`calc(100% - 45px)`,width:`100%`}:{},children:this.state.moreChecked&&T(Ot,{style:this.props.noSpacing?Xs.logNoSpacing:Xs.log,children:this.getLog()})})]})}};j(Zs,`pattern`,[`error`,`warn`,`info`]),x();var Qs={closeButton:e=>({position:`absolute`,right:8,top:8,color:e.palette.grey[500]}),hiddenDialog:{display:`none`},dialogRoot:{height:`calc(100% - 64px)`}},$s=class extends $t{constructor(e){super(e),j(this,`paperRef`,Ut.createRef()),j(this,`handleResize`,()=>{this.paperRef.current&&(this.paperRef.current.offsetWidth||0)!==this.state.dialogWidth&&this.setState({dialogWidth:this.paperRef.current.offsetWidth||0})}),this.state={progressText:``,isError:!1,closeOnReady:(window._localStorage||window.localStorage).getItem(`CommandDialog.closeOnReady`)===`true`,dialogWidth:0}}componentDidMount(){window.addEventListener(`resize`,this.handleResize)}componentWillUnmount(){window.removeEventListener(`resize`,this.handleResize)}componentDidUpdate(){var e;if(this.state.dialogWidth!==(((e=this.paperRef.current)==null?void 0:e.offsetWidth)||0)){var t;this.setState({dialogWidth:((t=this.paperRef.current)==null?void 0:t.offsetWidth)||0})}}render(){return M(u,{scroll:`paper`,fullWidth:!0,sx:{"&.MuiDialog-root":this.props.visible?void 0:Qs.hiddenDialog,"& .MuiDialog-paper":Qs.dialogRoot},onClose:this.props.inBackground?this.props.onClose:this.props.onInBackground,open:!0,maxWidth:`md`,ref:this.paperRef,children:[M(ve,{children:[this.state.progressText||this.props.t(`Running command`),T(k,{size:`large`,sx:Qs.closeButton,onClick:this.props.onClose,disabled:this.props.inBackground,children:T(O,{})})]}),T(le,{dividers:!0,style:{height:`100%`},children:T(Zs,{noSpacing:!0,ready:this.props.ready,host:this.props.host,socket:this.props.socket,t:this.props.t,inBackground:this.props.inBackground,commandError:this.props.commandError,errorFunc:()=>{this.setState({isError:!0}),this.props.errorFunc()},performed:this.props.performed,callback:this.props.callback,cmd:this.props.cmd,files:this.props.files,onFinished:()=>this.state.closeOnReady&&this.props.onClose(),onSetCommandRunning:e=>this.props.onSetCommandRunning(e)},`command`)}),M(St,{style:{justifyContent:`space-between`,gap:8},children:[T(je,{style:{marginLeft:16},control:T(ke,{disabled:this.props.inBackground,checked:this.state.closeOnReady,onChange:e=>{this.setState({closeOnReady:e.target.checked}),(window._localStorage||window.localStorage).setItem(`CommandDialog.closeOnReady`,e.target.checked?`true`:`false`)}}),label:this.props.t(`close on ready`)}),T(`div`,{style:{flexGrow:1}}),T(V,{variant:`contained`,autoFocus:!0,title:this.props.confirmText||this.props.t(`In background`),disabled:this.props.inBackground,onClick:this.props.onInBackground,startIcon:this.state.dialogWidth>600?T(Lr,{}):null,color:`primary`,children:this.state.dialogWidth<=600?T(Lr,{}):this.props.confirmText||this.props.t(`In background`)}),T(V,{variant:`contained`,disabled:!this.props.inBackground,onClick:this.props.onClose,color:`grey`,style:{backgroundColor:this.state.isError?`#834141`:void 0,color:this.state.isError?`#fff`:void 0},startIcon:this.state.dialogWidth>600?T(O,{}):null,children:this.state.dialogWidth<=600?T(O,{}):this.props.t(`Close`)})]})]})}};function ec(e,t){if(!e||t===void 0)return null;typeof t!=`object`&&(t=t.split(`.`));let n=t.shift(),r=n===void 0?void 0:e[n];return t.length?typeof r==`object`?ec(r,t):null:r}function tc(e){let{config:t,children:n,name:r,value:i}=e;return i===void 0?!t||ec(t,r)!==!1?n:null:i===!1?null:n}var nc=e(n(((e,t,n)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=17976931348623157e292,v=NaN,y=4294967295,b=y-1,x=y>>>1,ee=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],S=`[object Arguments]`,C=`[object Array]`,w=`[object AsyncFunction]`,te=`[object Boolean]`,ne=`[object Date]`,T=`[object DOMException]`,E=`[object Error]`,re=`[object Function]`,ie=`[object GeneratorFunction]`,ae=`[object Map]`,D=`[object Number]`,O=`[object Null]`,k=`[object Object]`,oe=`[object Promise]`,se=`[object Proxy]`,ce=`[object RegExp]`,le=`[object Set]`,ue=`[object String]`,de=`[object Symbol]`,fe=`[object Undefined]`,pe=`[object WeakMap]`,me=`[object WeakSet]`,he=`[object ArrayBuffer]`,ge=`[object DataView]`,_e=`[object Float32Array]`,ve=`[object Float64Array]`,ye=`[object Int8Array]`,be=`[object Int16Array]`,xe=`[object Int32Array]`,Se=`[object Uint8Array]`,Ce=`[object Uint8ClampedArray]`,we=`[object Uint16Array]`,Te=`[object Uint32Array]`,Ee=/\b__p \+= '';/g,De=/\b(__p \+=) '' \+/g,Oe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,A=/[&<>"']/g,j=RegExp(ke.source),Ae=RegExp(A.source),M=/<%-([\s\S]+?)%>/g,je=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,N=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fe=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Fe.source),Le=/^\s+/,Re=/\s/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,Ve=/,? & /,He=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/[()=,{}\[\]\/\s]/,We=/\\(\\)?/g,Ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Je=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Xe=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$e=/($^)/,et=/['\n\r\u2028\u2029\\]/g,tt=`\\ud800-\\udfff`,nt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,rt=`\\u2700-\\u27bf`,it=`a-z\\xdf-\\xf6\\xf8-\\xff`,at=`\\xac\\xb1\\xd7\\xf7`,ot=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,st=`\\u2000-\\u206f`,ct=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,lt=`A-Z\\xc0-\\xd6\\xd8-\\xde`,ut=`\\ufe0e\\ufe0f`,dt=at+ot+st+ct,ft=`['’]`,P=`[`+tt+`]`,pt=`[`+dt+`]`,mt=`[`+nt+`]`,ht=`\\d+`,gt=`[`+rt+`]`,F=`[`+it+`]`,_t=`[^`+tt+dt+ht+rt+it+lt+`]`,vt=`\\ud83c[\\udffb-\\udfff]`,yt=`(?:`+mt+`|`+vt+`)`,bt=`[^`+tt+`]`,xt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,St=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Ct=`[`+lt+`]`,wt=`\\u200d`,Tt=`(?:`+F+`|`+_t+`)`,Et=`(?:`+Ct+`|`+_t+`)`,Dt=`(?:`+ft+`(?:d|ll|m|re|s|t|ve))?`,I=`(?:`+ft+`(?:D|LL|M|RE|S|T|VE))?`,Ot=yt+`?`,L=`[`+ut+`]?`,kt=`(?:`+wt+`(?:`+[bt,xt,St].join(`|`)+`)`+L+Ot+`)*`,At=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,jt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Mt=L+Ot+kt,Nt=`(?:`+[gt,xt,St].join(`|`)+`)`+Mt,Pt=`(?:`+[bt+mt+`?`,mt,xt,St,P].join(`|`)+`)`,Ft=RegExp(ft,`g`),It=RegExp(mt,`g`),Lt=RegExp(vt+`(?=`+vt+`)|`+Pt+Mt,`g`),R=RegExp([Ct+`?`+F+`+`+Dt+`(?=`+[pt,Ct,`$`].join(`|`)+`)`,Et+`+`+I+`(?=`+[pt,Ct+Tt,`$`].join(`|`)+`)`,Ct+`?`+Tt+`+`+Dt,Ct+`+`+I,jt,At,ht,Nt].join(`|`),`g`),Rt=RegExp(`[`+wt+tt+nt+ut+`]`),zt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bt=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),Vt=-1,Ht={};Ht[_e]=Ht[ve]=Ht[ye]=Ht[be]=Ht[xe]=Ht[Se]=Ht[Ce]=Ht[we]=Ht[Te]=!0,Ht[S]=Ht[C]=Ht[he]=Ht[te]=Ht[ge]=Ht[ne]=Ht[E]=Ht[re]=Ht[ae]=Ht[D]=Ht[k]=Ht[ce]=Ht[le]=Ht[ue]=Ht[pe]=!1;var z={};z[S]=z[C]=z[he]=z[ge]=z[te]=z[ne]=z[_e]=z[ve]=z[ye]=z[be]=z[xe]=z[ae]=z[D]=z[k]=z[ce]=z[le]=z[ue]=z[de]=z[Se]=z[Ce]=z[we]=z[Te]=!0,z[E]=z[re]=z[pe]=!1;var Ut={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},Wt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Gt={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`},Kt={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},qt=parseFloat,Jt=parseInt,Yt=typeof global==`object`&&global&&global.Object===Object&&global,Xt=typeof self==`object`&&self&&self.Object===Object&&self,Zt=Yt||Xt||Function(`return this`)(),Qt=typeof e==`object`&&e&&!e.nodeType&&e,$t=Qt&&typeof t==`object`&&t&&!t.nodeType&&t,en=$t&&$t.exports===Qt,B=en&&Yt.process,tn=function(){try{return $t&&$t.require&&$t.require(`util`).types||B&&B.binding&&B.binding(`util`)}catch{}}(),nn=tn&&tn.isArrayBuffer,rn=tn&&tn.isDate,an=tn&&tn.isMap,on=tn&&tn.isRegExp,sn=tn&&tn.isSet,cn=tn&&tn.isTypedArray;function ln(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function un(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function V(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function dn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function fn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function pn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function mn(e,t){return!!(e!=null&&e.length)&&En(e,t,0)>-1}function hn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function gn(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function _n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function vn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function yn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function bn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var xn=An(`length`);function Sn(e){return e.split(``)}function Cn(e){return e.match(He)||[]}function wn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Tn(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function En(e,t,n){return t===t?nr(e,t,n):Tn(e,On,n)}function Dn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function On(e){return e!==e}function kn(e,t){var n=e==null?0:e.length;return n?Pn(e,t)/n:v}function An(e){return function(t){return t==null?n:t[e]}}function jn(e){return function(t){return e==null?n:e[t]}}function Mn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Nn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Pn(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function Fn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function In(e,t){return gn(t,function(t){return[t,e[t]]})}function Ln(e){return e&&e.slice(0,or(e)+1).replace(Le,``)}function Rn(e){return function(t){return e(t)}}function zn(e,t){return gn(t,function(t){return e[t]})}function Bn(e,t){return e.has(t)}function Vn(e,t){for(var n=-1,r=e.length;++n<r&&En(t,e[n],0)>-1;);return n}function Hn(e,t){for(var n=e.length;n--&&En(t,e[n],0)>-1;);return n}function Un(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Wn=jn(Ut),Gn=jn(Wt);function Kn(e){return`\\`+Kt[e]}function qn(e,t){return e==null?n:e[t]}function Jn(e){return Rt.test(e)}function Yn(e){return zt.test(e)}function Xn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Zn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Qn(e,t){return function(n){return e(t(n))}}function $n(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function er(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function tr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function nr(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function rr(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function ir(e){return Jn(e)?cr(e):xn(e)}function ar(e){return Jn(e)?lr(e):Sn(e)}function or(e){for(var t=e.length;t--&&Re.test(e.charAt(t)););return t}var sr=jn(Gt);function cr(e){for(var t=Lt.lastIndex=0;Lt.test(e);)++t;return t}function lr(e){return e.match(Lt)||[]}function ur(e){return e.match(R)||[]}var H=(function e(t){t=t==null?Zt:H.defaults(Zt.Object(),t,H.pick(Zt,Bt));var Re=t.Array,He=t.Date,tt=t.Error,nt=t.Function,rt=t.Math,it=t.Object,at=t.RegExp,ot=t.String,st=t.TypeError,ct=Re.prototype,lt=nt.prototype,ut=it.prototype,dt=t[`__core-js_shared__`],ft=lt.toString,P=ut.hasOwnProperty,pt=0,mt=function(){var e=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),ht=ut.toString,gt=ft.call(it),F=Zt._,_t=at(`^`+ft.call(P).replace(Fe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),vt=en?t.Buffer:n,yt=t.Symbol,bt=t.Uint8Array,xt=vt?vt.allocUnsafe:n,St=Qn(it.getPrototypeOf,it),Ct=it.create,wt=ut.propertyIsEnumerable,Tt=ct.splice,Et=yt?yt.isConcatSpreadable:n,Dt=yt?yt.iterator:n,I=yt?yt.toStringTag:n,Ot=function(){try{var e=Fo(it,`defineProperty`);return e({},``,{}),e}catch{}}(),L=t.clearTimeout!==Zt.clearTimeout&&t.clearTimeout,kt=He&&He.now!==Zt.Date.now&&He.now,At=t.setTimeout!==Zt.setTimeout&&t.setTimeout,jt=rt.ceil,Mt=rt.floor,Nt=it.getOwnPropertySymbols,Pt=vt?vt.isBuffer:n,Lt=t.isFinite,R=ct.join,Rt=Qn(it.keys,it),zt=rt.max,Ut=rt.min,Wt=He.now,Gt=t.parseInt,Kt=rt.random,Yt=ct.reverse,Xt=Fo(t,`DataView`),Qt=Fo(t,`Map`),$t=Fo(t,`Promise`),B=Fo(t,`Set`),tn=Fo(t,`WeakMap`),xn=Fo(it,`create`),Sn=tn&&new tn,jn={},nr=bs(Xt),cr=bs(Qt),lr=bs($t),dr=bs(B),fr=bs(tn),pr=yt?yt.prototype:n,mr=pr?pr.valueOf:n,hr=pr?pr.toString:n;function U(e){if(du(e)&&!Y(e)&&!(e instanceof W)){if(e instanceof vr)return e;if(P.call(e,`__wrapped__`))return Ss(e)}return new vr(e)}var gr=function(){function e(){}return function(t){if(!uu(t))return{};if(Ct)return Ct(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function _r(){}function vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}U.templateSettings={escape:M,evaluate:je,interpolate:Me,variable:``,imports:{_:U}},U.prototype=_r.prototype,U.prototype.constructor=U,vr.prototype=gr(_r.prototype),vr.prototype.constructor=vr;function W(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function yr(){var e=new W(this.__wrapped__);return e.__actions__=Ka(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ka(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ka(this.__views__),e}function br(){if(this.__filtered__){var e=new W(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function xr(){var e=this.__wrapped__.value(),t=this.__dir__,n=Y(e),r=t<0,i=n?e.length:0,a=Bo(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=Ut(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return Da(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}W.prototype=gr(_r.prototype),W.prototype.constructor=W;function Sr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Cr(){this.__data__=xn?xn(null):{},this.size=0}function wr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Tr(e){var t=this.__data__;if(xn){var r=t[e];return r===i?n:r}return P.call(t,e)?t[e]:n}function Er(e){var t=this.__data__;return xn?t[e]!==n:P.call(t,e)}function Dr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=xn&&t===n?i:t,this}Sr.prototype.clear=Cr,Sr.prototype.delete=wr,Sr.prototype.get=Tr,Sr.prototype.has=Er,Sr.prototype.set=Dr;function Or(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function kr(){this.__data__=[],this.size=0}function Ar(e){var t=this.__data__,n=ti(t,e);return n<0?!1:(n==t.length-1?t.pop():Tt.call(t,n,1),--this.size,!0)}function jr(e){var t=this.__data__,r=ti(t,e);return r<0?n:t[r][1]}function Mr(e){return ti(this.__data__,e)>-1}function Nr(e,t){var n=this.__data__,r=ti(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Or.prototype.clear=kr,Or.prototype.delete=Ar,Or.prototype.get=jr,Or.prototype.has=Mr,Or.prototype.set=Nr;function Pr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fr(){this.size=0,this.__data__={hash:new Sr,map:new(Qt||Or),string:new Sr}}function Ir(e){var t=No(this,e).delete(e);return this.size-=+!!t,t}function Lr(e){return No(this,e).get(e)}function Rr(e){return No(this,e).has(e)}function zr(e,t){var n=No(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Pr.prototype.clear=Fr,Pr.prototype.delete=Ir,Pr.prototype.get=Lr,Pr.prototype.has=Rr,Pr.prototype.set=zr;function Br(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Pr;++t<n;)this.add(e[t])}function Vr(e){return this.__data__.set(e,i),this}function Hr(e){return this.__data__.has(e)}Br.prototype.add=Br.prototype.push=Vr,Br.prototype.has=Hr;function Ur(e){var t=this.__data__=new Or(e);this.size=t.size}function Wr(){this.__data__=new Or,this.size=0}function Gr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Kr(e){return this.__data__.get(e)}function qr(e){return this.__data__.has(e)}function Jr(e,t){var n=this.__data__;if(n instanceof Or){var r=n.__data__;if(!Qt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Pr(r)}return n.set(e,t),this.size=n.size,this}Ur.prototype.clear=Wr,Ur.prototype.delete=Gr,Ur.prototype.get=Kr,Ur.prototype.has=qr,Ur.prototype.set=Jr;function Yr(e,t){var n=Y(e),r=!n&&Jl(e),i=!n&&!r&&$l(e),a=!n&&!r&&!i&&Eu(e),o=n||r||i||a,s=o?Fn(e.length,ot):[],c=s.length;for(var l in e)(t||P.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Jo(l,c)))&&s.push(l);return s}function Xr(e){var t=e.length;return t?e[sa(0,t-1)]:n}function Zr(e,t){return _s(Ka(e),si(t,0,e.length))}function Qr(e){return _s(Ka(e))}function $r(e,t,r){(r!==n&&!Gl(e[t],r)||r===n&&!(t in e))&&ai(e,t,r)}function ei(e,t,r){var i=e[t];(!(P.call(e,t)&&Gl(i,r))||r===n&&!(t in e))&&ai(e,t,r)}function ti(e,t){for(var n=e.length;n--;)if(Gl(e[n][0],t))return n;return-1}function ni(e,t,n,r){return fi(e,function(e,i,a){t(r,e,n(e),a)}),r}function ri(e,t){return e&&qa(t,sd(t),e)}function ii(e,t){return e&&qa(t,cd(t),e)}function ai(e,t,n){t==`__proto__`&&Ot?Ot(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function oi(e,t){for(var r=-1,i=t.length,a=Re(i),o=e==null;++r<i;)a[r]=o?n:td(e,t[r]);return a}function si(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ci(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!uu(e))return e;var d=Y(e);if(d){if(s=Uo(e),!c)return Ka(e,s)}else{var f=zo(e),p=f==re||f==ie;if($l(e))return Ia(e,c);if(f==k||f==S||p&&!a){if(s=l||p?{}:Wo(e),!c)return l?Ya(e,ii(s,e)):Ja(e,ri(s,e))}else{if(!z[f])return a?e:{};s=Go(e,f,c)}}o||=new Ur;var m=o.get(e);if(m)return m;o.set(e,s),Cu(e)?e.forEach(function(n){s.add(ci(n,t,r,n,e,o))}):fu(e)&&e.forEach(function(n,i){s.set(i,ci(n,t,r,i,e,o))});var h=d?n:(u?l?ko:Oo:l?cd:sd)(e);return V(h||e,function(n,i){h&&(i=n,n=e[i]),ei(s,i,ci(n,t,r,i,e,o))}),s}function li(e){var t=sd(e);return function(n){return G(n,e,t)}}function G(e,t,r){var i=r.length;if(e==null)return!i;for(e=it(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function ui(e,t,i){if(typeof e!=`function`)throw new st(r);return ps(function(){e.apply(n,i)},t)}function di(e,t,n,r){var i=-1,a=mn,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=gn(t,Rn(n))),r?(a=hn,o=!1):t.length>=200&&(a=Bn,o=!1,t=new Br(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var fi=Qa(xi),pi=Qa(Si,!0);function mi(e,t){var n=!0;return fi(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function hi(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!Tu(s):r(s,c)))var c=s,l=o}return l}function gi(e,t,r,i){var a=e.length;for(r=X(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:X(i),i<0&&(i+=a),i=r>i?0:Pu(i);r<i;)e[r++]=t;return e}function _i(e,t){var n=[];return fi(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function vi(e,t,n,r,i){var a=-1,o=e.length;for(n||=qo,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?vi(s,t-1,n,r,i):_n(i,s):r||(i[i.length]=s)}return i}var yi=$a(),bi=$a(!0);function xi(e,t){return e&&yi(e,t,sd)}function Si(e,t){return e&&bi(e,t,sd)}function Ci(e,t){return pn(t,function(t){return su(e[t])})}function wi(e,t){t=Ma(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[ys(t[r++])];return r&&r==i?e:n}function Ti(e,t,n){var r=t(e);return Y(e)?r:_n(r,n(e))}function Ei(e){return e==null?e===n?fe:O:I&&I in it(e)?Io(e):ss(e)}function Di(e,t){return e>t}function Oi(e,t){return e!=null&&P.call(e,t)}function ki(e,t){return e!=null&&t in it(e)}function Ai(e,t,n){return e>=Ut(t,n)&&e<zt(t,n)}function ji(e,t,r){for(var i=r?hn:mn,a=e[0].length,o=e.length,s=o,c=Re(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=gn(d,Rn(t))),l=Ut(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Br(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?Bn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?Bn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Mi(e,t,n,r){return xi(e,function(e,i,a){t(r,n(e),i,a)}),r}function Ni(e,t,r){t=Ma(t,e),e=ls(e,t);var i=e==null?e:e[ys(qs(t))];return i==null?n:ln(i,e,r)}function Pi(e){return du(e)&&Ei(e)==S}function Fi(e){return du(e)&&Ei(e)==he}function Ii(e){return du(e)&&Ei(e)==ne}function Li(e,t,n,r,i){return e===t?!0:e==null||t==null||!du(e)&&!du(t)?e!==e&&t!==t:Ri(e,t,n,r,Li,i)}function Ri(e,t,n,r,i,a){var o=Y(e),s=Y(t),c=o?C:zo(e),l=s?C:zo(t);c=c==S?k:c,l=l==S?k:l;var u=c==k,d=l==k,f=c==l;if(f&&$l(e)){if(!$l(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Ur,o||Eu(e)?wo(e,t,n,r,i,a):To(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&P.call(e,`__wrapped__`),m=d&&P.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Ur,i(h,g,n,r,a)}}return f?(a||=new Ur,Eo(e,t,n,r,i,a)):!1}function zi(e){return du(e)&&zo(e)==ae}function Bi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=it(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new Ur;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?Li(d,u,3,i,f):p))return!1}}return!0}function Vi(e){return!uu(e)||$o(e)?!1:(su(e)?_t:Ye).test(bs(e))}function Hi(e){return du(e)&&Ei(e)==ce}function Ui(e){return du(e)&&zo(e)==le}function Wi(e){return du(e)&&lu(e.length)&&!!Ht[Ei(e)]}function Gi(e){return typeof e==`function`?e:e==null?mf:typeof e==`object`?Y(e)?Zi(e[0],e[1]):Xi(e):Df(e)}function Ki(e){if(!ts(e))return Rt(e);var t=[];for(var n in it(e))P.call(e,n)&&n!=`constructor`&&t.push(n);return t}function qi(e){if(!uu(e))return os(e);var t=ts(e),n=[];for(var r in e)(r!=`constructor`||!t&&P.call(e,r))&&n.push(r);return n}function Ji(e,t){return e<t}function Yi(e,t){var n=-1,r=Xl(e)?Re(e.length):[];return fi(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Xi(e){var t=Po(e);return t.length==1&&t[0][2]?rs(t[0][0],t[0][1]):function(n){return n===e||Bi(n,e,t)}}function Zi(e,t){return Xo(e)&&ns(t)?rs(ys(e),t):function(r){var i=td(r,e);return i===n&&i===t?rd(r,e):Li(t,i,3)}}function Qi(e,t,r,i,a){e!==t&&yi(t,function(o,s){if(a||=new Ur,uu(o))$i(e,t,s,r,Qi,i,a);else{var c=i?i(ds(e,s),o,s+``,e,t,a):n;c===n&&(c=o),$r(e,s,c)}},cd)}function $i(e,t,r,i,a,o,s){var c=ds(e,r),l=ds(t,r),u=s.get(l);if(u)$r(e,r,u);else{var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=Y(l),m=!p&&$l(l),h=!p&&!m&&Eu(l);d=l,p||m||h?Y(c)?d=c:Zl(c)?d=Ka(c):m?(f=!1,d=Ia(l,!0)):h?(f=!1,d=Va(l,!0)):d=[]:bu(l)||Jl(l)?(d=c,Jl(c)?d=Iu(c):(!uu(c)||su(c))&&(d=Wo(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),$r(e,r,d)}}function ea(e,t){var r=e.length;if(r)return t+=t<0?r:0,Jo(t,r)?e[t]:n}function ta(e,t,n){t=t.length?gn(t,function(e){return Y(e)?function(t){return wi(t,e.length===1?e[0]:e)}:e}):[mf];var r=-1;return t=gn(t,Rn(q())),Nn(Yi(e,function(e,n,i){return{criteria:gn(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return Ua(e,t,n)})}function na(e,t){return ra(e,t,function(t,n){return rd(e,n)})}function ra(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=wi(e,o);n(s,o)&&fa(a,Ma(o,e),s)}return a}function ia(e){return function(t){return wi(t,e)}}function aa(e,t,n,r){var i=r?Dn:En,a=-1,o=t.length,s=e;for(e===t&&(t=Ka(t)),n&&(s=gn(e,Rn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Tt.call(s,c,1),Tt.call(e,c,1);return e}function oa(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Jo(i)?Tt.call(e,i,1):wa(e,i)}}return e}function sa(e,t){return e+Mt(Kt()*(t-e+1))}function ca(e,t,n,r){for(var i=-1,a=zt(jt((t-e)/(n||1)),0),o=Re(a);a--;)o[r?a:++i]=e,e+=n;return o}function la(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=Mt(t/2),t&&(e+=e);while(t);return n}function K(e,t){return ms(cs(e,t,mf),e+``)}function ua(e){return Xr(Ed(e))}function da(e,t){var n=Ed(e);return _s(n,si(t,0,n.length))}function fa(e,t,r,i){if(!uu(e))return e;t=Ma(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=ys(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=uu(d)?d:Jo(t[a+1])?[]:{})}ei(c,l,u),c=c[l]}return e}var pa=Sn?function(e,t){return Sn.set(e,t),e}:mf,ma=Ot?function(e,t){return Ot(e,`toString`,{configurable:!0,enumerable:!1,value:uf(t),writable:!0})}:mf;function ha(e){return _s(Ed(e))}function ga(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Re(i);++r<i;)a[r]=e[r+t];return a}function _a(e,t){var n;return fi(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function va(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=x){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!Tu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ya(e,t,mf,n)}function ya(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=Tu(t),u=t===n;a<o;){var d=Mt((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=Tu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return Ut(o,b)}function ba(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Gl(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function xa(e){return typeof e==`number`?e:Tu(e)?v:+e}function Sa(e){if(typeof e==`string`)return e;if(Y(e))return gn(e,Sa)+``;if(Tu(e))return hr?hr.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Ca(e,t,n){var r=-1,i=mn,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=hn;else if(a>=200){var l=t?null:vo(e);if(l)return er(l);o=!1,i=Bn,c=new Br}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function wa(e,t){t=Ma(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=ys(t[n]);if(i===`__proto__`&&!P.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=ls(e,t);return a==null||delete a[ys(qs(t))]}function Ta(e,t,n,r){return fa(e,t,n(wi(e,t)),r)}function Ea(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ga(e,r?0:a,r?a+1:i):ga(e,r?a+1:0,r?i:a)}function Da(e,t){var n=e;return n instanceof W&&(n=n.value()),vn(t,function(e,t){return t.func.apply(t.thisArg,_n([e],t.args))},n)}function Oa(e,t,n){var r=e.length;if(r<2)return r?Ca(e[0]):[];for(var i=-1,a=Re(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=di(a[i]||o,e[s],t,n));return Ca(vi(a,1),t,n)}function ka(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function Aa(e){return Zl(e)?e:[]}function ja(e){return typeof e==`function`?e:mf}function Ma(e,t){return Y(e)?e:Xo(e,t)?[e]:vs(Ru(e))}var Na=K;function Pa(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ga(e,t,r)}var Fa=L||function(e){return Zt.clearTimeout(e)};function Ia(e,t){if(t)return e.slice();var n=e.length,r=xt?xt(n):new e.constructor(n);return e.copy(r),r}function La(e){var t=new e.constructor(e.byteLength);return new bt(t).set(new bt(e)),t}function Ra(e,t){var n=t?La(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function za(e){var t=new e.constructor(e.source,Ke.exec(e));return t.lastIndex=e.lastIndex,t}function Ba(e){return mr?it(mr.call(e)):{}}function Va(e,t){var n=t?La(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ha(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=Tu(e),s=t!==n,c=t===null,l=t===t,u=Tu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function Ua(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Ha(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Wa(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=zt(a-o,0),u=Re(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function Ga(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=zt(a-s,0),d=Re(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function Ka(e,t){var n=-1,r=e.length;for(t||=Re(r);++n<r;)t[n]=e[n];return t}function qa(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?ai(r,c,l):ei(r,c,l)}return r}function Ja(e,t){return qa(e,Lo(e),t)}function Ya(e,t){return qa(e,Ro(e),t)}function Xa(e,t){return function(n,r){var i=Y(n)?un:ni,a=t?t():{};return i(n,e,q(r,2),a)}}function Za(e){return K(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&Yo(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=it(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function Qa(e,t){return function(n,r){if(n==null)return n;if(!Xl(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=it(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function $a(e){return function(t,n,r){for(var i=-1,a=it(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function eo(e,t,n){var r=t&o,i=ro(e);function a(){return(this&&this!==Zt&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function to(e){return function(t){t=Ru(t);var r=Jn(t)?ar(t):n,i=r?r[0]:t.charAt(0),a=r?Pa(r,1).join(``):t.slice(1);return i[e]()+a}}function no(e){return function(t){return vn(sf(Nd(t).replace(Ft,``)),e,``)}}function ro(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=gr(e.prototype),r=e.apply(n,t);return uu(r)?r:n}}function io(e,t,r){var i=ro(e);function a(){for(var o=arguments.length,s=Re(o),c=o,l=Mo(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:$n(s,l);return o-=u.length,o<r?go(e,t,so,a.placeholder,n,s,u,n,n,r-o):ln(this&&this!==Zt&&this instanceof a?i:e,this,s)}return a}function ao(e){return function(t,r,i){var a=it(t);if(!Xl(t)){var o=q(r,3);t=sd(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function oo(e){return Do(function(t){var i=t.length,a=i,o=vr.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new st(r);if(o&&!l&&jo(s)==`wrapper`)var l=new vr([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=jo(s),m=d==`wrapper`?Ao(s):n;l=m&&Qo(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[jo(m[0])].apply(l,m[3]):s.length==1&&Qo(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&Y(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function so(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,ee=y?n:ro(e);function S(){for(var n=arguments.length,o=Re(n),s=n;s--;)o[s]=arguments[s];if(b)var c=Mo(S),l=Un(o,c);if(i&&(o=Wa(o,i,a,b)),u&&(o=Ga(o,u,d,b)),n-=l,b&&n<g){var f=$n(o,c);return go(e,t,so,S.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,C=y?m[e]:e;return n=o.length,p?o=us(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==Zt&&this instanceof S&&(C=ee||ro(C)),C.apply(m,o)}return S}function co(e,t){return function(n,r){return Mi(n,e,t(r),{})}}function lo(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=Sa(r),i=Sa(i)):(r=xa(r),i=xa(i)),a=e(r,i)}return a}}function uo(e){return Do(function(t){return t=gn(t,Rn(q())),K(function(n){var r=this;return e(t,function(e){return ln(e,r,n)})})})}function fo(e,t){t=t===n?` `:Sa(t);var r=t.length;if(r<2)return r?la(t,e):t;var i=la(t,jt(e/ir(t)));return Jn(t)?Pa(ar(i),0,e).join(``):i.slice(0,e)}function po(e,t,n,r){var i=t&o,a=ro(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=Re(l+o),d=this&&this!==Zt&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return ln(d,i?n:this,u)}return s}function mo(e){return function(t,r,i){return i&&typeof i!=`number`&&Yo(t,r,i)&&(r=i=n),t=Nu(t),r===n?(r=t,t=0):r=Nu(r),i=i===n?t<r?1:-1:Nu(i),ca(t,r,i,e)}}function ho(e){return function(t,n){return(typeof t!=`string`||typeof n!=`string`)&&(t=Fu(t),n=Fu(n)),e(t,n)}}function go(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],ee=r.apply(n,x);return Qo(e)&&fs(ee,x),ee.placeholder=i,hs(ee,e,t)}function _o(e){var t=rt[e];return function(e,n){if(e=Fu(e),n=n==null?0:Ut(X(n),292),n&&Lt(e)){var r=(Ru(e)+`e`).split(`e`);return r=(Ru(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var vo=B&&1/er(new B([,-0]))[1]==h?function(e){return new B(e)}:Sf;function yo(e){return function(t){var n=zo(t);return n==ae?Zn(t):n==le?tr(t):In(t,e(t))}}function bo(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new st(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:zt(X(m),0),h=h===n?h:X(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:Ao(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&as(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:zt(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var ee=eo(e,t,i);else ee=t==c||t==l?io(e,t,h):(t==u||t==(o|u))&&!f.length?po(e,t,i,a):so.apply(n,x);return hs((b?pa:fs)(ee,x),e,t)}function xo(e,t,r,i){return e===n||Gl(e,ut[r])&&!P.call(i,r)?t:e}function So(e,t,r,i,a,o){return uu(e)&&uu(t)&&(o.set(t,e),Qi(e,t,n,So,o),o.delete(t)),e}function Co(e){return bu(e)?n:e}function wo(e,t,r,i,a,o){var s=r&1,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&2?new Br:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!bn(t,function(e,t){if(!Bn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function To(e,t,n,r,i,a,o){switch(n){case ge:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case he:return!(e.byteLength!=t.byteLength||!a(new bt(e),new bt(t)));case te:case ne:case D:return Gl(+e,+t);case E:return e.name==t.name&&e.message==t.message;case ce:case ue:return e==t+``;case ae:var s=Zn;case le:var c=r&1;if(s||=er,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=wo(s(e),s(t),r,i,a,o);return o.delete(e),u;case de:if(mr)return mr.call(e)==mr.call(t)}return!1}function Eo(e,t,r,i,a,o){var s=r&1,c=Oo(e),l=c.length;if(l!=Oo(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:P.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function Do(e){return ms(cs(e,n,Is),e+``)}function Oo(e){return Ti(e,sd,Lo)}function ko(e){return Ti(e,cd,Ro)}var Ao=Sn?function(e){return Sn.get(e)}:Sf;function jo(e){for(var t=e.name+``,n=jn[t],r=P.call(jn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Mo(e){return(P.call(U,`placeholder`)?U:e).placeholder}function q(){var e=U.iteratee||hf;return e=e===hf?Gi:e,arguments.length?e(arguments[0],arguments[1]):e}function No(e,t){var n=e.__data__;return Zo(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Po(e){for(var t=sd(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ns(i)]}return t}function Fo(e,t){var r=qn(e,t);return Vi(r)?r:n}function Io(e){var t=P.call(e,I),r=e[I];try{e[I]=n;var i=!0}catch{}var a=ht.call(e);return i&&(t?e[I]=r:delete e[I]),a}var Lo=Nt?function(e){return e==null?[]:(e=it(e),pn(Nt(e),function(t){return wt.call(e,t)}))}:jf,Ro=Nt?function(e){for(var t=[];e;)_n(t,Lo(e)),e=St(e);return t}:jf,zo=Ei;(Xt&&zo(new Xt(new ArrayBuffer(1)))!=ge||Qt&&zo(new Qt)!=ae||$t&&zo($t.resolve())!=oe||B&&zo(new B)!=le||tn&&zo(new tn)!=pe)&&(zo=function(e){var t=Ei(e),r=t==k?e.constructor:n,i=r?bs(r):``;if(i)switch(i){case nr:return ge;case cr:return ae;case lr:return oe;case dr:return le;case fr:return pe}return t});function Bo(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=Ut(t,e+o);break;case`takeRight`:e=zt(e,t-o)}}return{start:e,end:t}}function Vo(e){var t=e.match(Be);return t?t[1].split(Ve):[]}function Ho(e,t,n){t=Ma(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=ys(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&lu(i)&&Jo(o,i)&&(Y(e)||Jl(e)))}function Uo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&P.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Wo(e){return typeof e.constructor==`function`&&!ts(e)?gr(St(e)):{}}function Go(e,t,n){var r=e.constructor;switch(t){case he:return La(e);case te:case ne:return new r(+e);case ge:return Ra(e,n);case _e:case ve:case ye:case be:case xe:case Se:case Ce:case we:case Te:return Va(e,n);case ae:return new r;case D:case ue:return new r(e);case ce:return za(e);case le:return new r;case de:return Ba(e)}}function Ko(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(ze,`{
4
4
  /* [wrapped with `+t+`] */
5
5
  `)}function qo(e){return Y(e)||Jl(e)||!!(Et&&e&&e[Et])}function Jo(e,t){var n=typeof e;return t??=g,!!t&&(n==`number`||n!=`symbol`&&Ze.test(e))&&e>-1&&e%1==0&&e<t}function Yo(e,t,n){if(!uu(n))return!1;var r=typeof t;return(r==`number`?Xl(n)&&Jo(t,n.length):r==`string`&&t in n)?Gl(n[t],e):!1}function Xo(e,t){if(Y(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Tu(e)?!0:N.test(e)||!Ne.test(e)||t!=null&&e in it(t)}function Zo(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Qo(e){var t=jo(e),n=U[t];if(typeof n!=`function`||!(t in W.prototype))return!1;if(e===n)return!0;var r=Ao(n);return!!r&&e===r[0]}function $o(e){return!!mt&&mt in e}var es=dt?su:Mf;function ts(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||ut)}function ns(e){return e===e&&!uu(e)}function rs(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in it(r))}}function is(e){var t=Dl(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function as(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?Wa(m,d,t[4]):d,e[4]=m?$n(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?Ga(m,d,t[6]):d,e[6]=m?$n(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:Ut(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function os(e){var t=[];if(e!=null)for(var n in it(e))t.push(n);return t}function ss(e){return ht.call(e)}function cs(e,t,r){return t=zt(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=zt(n.length-t,0),o=Re(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Re(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),ln(e,this,s)}}function ls(e,t){return t.length<2?e:wi(e,ga(t,0,-1))}function us(e,t){for(var r=e.length,i=Ut(t.length,r),a=Ka(e);i--;){var o=t[i];e[i]=Jo(o,r)?a[o]:n}return e}function ds(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var fs=gs(pa),ps=At||function(e,t){return Zt.setTimeout(e,t)},ms=gs(ma);function hs(e,t,n){var r=t+``;return ms(e,Ko(r,xs(Vo(r),n)))}function gs(e){var t=0,r=0;return function(){var i=Wt(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function _s(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=sa(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var vs=is(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Pe,function(e,n,r,i){t.push(r?i.replace(We,`$1`):n||e)}),t});function ys(e){if(typeof e==`string`||Tu(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function bs(e){if(e!=null){try{return ft.call(e)}catch{}try{return e+``}catch{}}return``}function xs(e,t){return V(ee,function(n){var r=`_.`+n[0];t&n[1]&&!mn(e,r)&&e.push(r)}),e.sort()}function Ss(e){if(e instanceof W)return e.clone();var t=new vr(e.__wrapped__,e.__chain__);return t.__actions__=Ka(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Cs(e,t,r){t=(r?Yo(e,t,r):t===n)?1:zt(X(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=Re(jt(i/t));a<i;)s[o++]=ga(e,a,a+=t);return s}function ws(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Ts(){var e=arguments.length;if(!e)return[];for(var t=Re(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return _n(Y(n)?Ka(n):[n],vi(t,1))}var Es=K(function(e,t){return Zl(e)?di(e,vi(t,1,Zl,!0)):[]}),Ds=K(function(e,t){var r=qs(t);return Zl(r)&&(r=n),Zl(e)?di(e,vi(t,1,Zl,!0),q(r,2)):[]}),Os=K(function(e,t){var r=qs(t);return Zl(r)&&(r=n),Zl(e)?di(e,vi(t,1,Zl,!0),n,r):[]});function ks(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:X(t),ga(e,t<0?0:t,i)):[]}function As(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:X(t),t=i-t,ga(e,0,t<0?0:t)):[]}function js(e,t){return e&&e.length?Ea(e,q(t,3),!0,!0):[]}function Ms(e,t){return e&&e.length?Ea(e,q(t,3),!0):[]}function Ns(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&Yo(e,t,n)&&(n=0,r=i),gi(e,t,n,r)):[]}function Ps(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:X(n);return i<0&&(i=zt(r+i,0)),Tn(e,q(t,3),i)}function Fs(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=X(r),a=r<0?zt(i+a,0):Ut(a,i-1)),Tn(e,q(t,3),a,!0)}function Is(e){return e!=null&&e.length?vi(e,1):[]}function Ls(e){return e!=null&&e.length?vi(e,h):[]}function Rs(e,t){return e!=null&&e.length?(t=t===n?1:X(t),vi(e,t)):[]}function zs(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];ai(r,i[0],i[1])}return r}function Bs(e){return e&&e.length?e[0]:n}function Vs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:X(n);return i<0&&(i=zt(r+i,0)),En(e,t,i)}function Hs(e){return e!=null&&e.length?ga(e,0,-1):[]}var Us=K(function(e){var t=gn(e,Aa);return t.length&&t[0]===e[0]?ji(t):[]}),Ws=K(function(e){var t=qs(e),r=gn(e,Aa);return t===qs(r)?t=n:r.pop(),r.length&&r[0]===e[0]?ji(r,q(t,2)):[]}),Gs=K(function(e){var t=qs(e),r=gn(e,Aa);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?ji(r,n,t):[]});function Ks(e,t){return e==null?``:R.call(e,t)}function qs(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Js(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=X(r),a=a<0?zt(i+a,0):Ut(a,i-1)),t===t?rr(e,t,a):Tn(e,On,a,!0)}function Ys(e,t){return e&&e.length?ea(e,X(t)):n}var Xs=K(Zs);function Zs(e,t){return e&&e.length&&t&&t.length?aa(e,t):e}function Qs(e,t,n){return e&&e.length&&t&&t.length?aa(e,t,q(n,2)):e}function $s(e,t,r){return e&&e.length&&t&&t.length?aa(e,t,n,r):e}var ec=Do(function(e,t){var n=e==null?0:e.length,r=oi(e,t);return oa(e,gn(t,function(e){return Jo(e,n)?+e:e}).sort(Ha)),r});function tc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=q(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return oa(e,i),n}function nc(e){return e==null?e:Yt.call(e)}function rc(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&Yo(e,t,r)?(t=0,r=i):(t=t==null?0:X(t),r=r===n?i:X(r)),ga(e,t,r)):[]}function ic(e,t){return va(e,t)}function ac(e,t,n){return ya(e,t,q(n,2))}function oc(e,t){var n=e==null?0:e.length;if(n){var r=va(e,t);if(r<n&&Gl(e[r],t))return r}return-1}function sc(e,t){return va(e,t,!0)}function cc(e,t,n){return ya(e,t,q(n,2),!0)}function lc(e,t){if(e!=null&&e.length){var n=va(e,t,!0)-1;if(Gl(e[n],t))return n}return-1}function uc(e){return e&&e.length?ba(e):[]}function dc(e,t){return e&&e.length?ba(e,q(t,2)):[]}function fc(e){var t=e==null?0:e.length;return t?ga(e,1,t):[]}function pc(e,t,r){return e&&e.length?(t=r||t===n?1:X(t),ga(e,0,t<0?0:t)):[]}function mc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:X(t),t=i-t,ga(e,t<0?0:t,i)):[]}function hc(e,t){return e&&e.length?Ea(e,q(t,3),!1,!0):[]}function gc(e,t){return e&&e.length?Ea(e,q(t,3)):[]}var _c=K(function(e){return Ca(vi(e,1,Zl,!0))}),vc=K(function(e){var t=qs(e);return Zl(t)&&(t=n),Ca(vi(e,1,Zl,!0),q(t,2))}),yc=K(function(e){var t=qs(e);return t=typeof t==`function`?t:n,Ca(vi(e,1,Zl,!0),n,t)});function bc(e){return e&&e.length?Ca(e):[]}function xc(e,t){return e&&e.length?Ca(e,q(t,2)):[]}function Sc(e,t){return t=typeof t==`function`?t:n,e&&e.length?Ca(e,n,t):[]}function Cc(e){if(!(e&&e.length))return[];var t=0;return e=pn(e,function(e){if(Zl(e))return t=zt(e.length,t),!0}),Fn(t,function(t){return gn(e,An(t))})}function wc(e,t){if(!(e&&e.length))return[];var r=Cc(e);return t==null?r:gn(r,function(e){return ln(t,n,e)})}var Tc=K(function(e,t){return Zl(e)?di(e,t):[]}),Ec=K(function(e){return Oa(pn(e,Zl))}),Dc=K(function(e){var t=qs(e);return Zl(t)&&(t=n),Oa(pn(e,Zl),q(t,2))}),Oc=K(function(e){var t=qs(e);return t=typeof t==`function`?t:n,Oa(pn(e,Zl),n,t)}),kc=K(Cc);function Ac(e,t){return ka(e||[],t||[],ei)}function jc(e,t){return ka(e||[],t||[],fa)}var Mc=K(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,wc(e,r)});function Nc(e){var t=U(e);return t.__chain__=!0,t}function Pc(e,t){return t(e),e}function J(e,t){return t(e)}var Fc=Do(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return oi(t,e)};return t>1||this.__actions__.length||!(i instanceof W)||!Jo(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:J,args:[a],thisArg:n}),new vr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Ic(){return Nc(this)}function Lc(){return new vr(this.value(),this.__chain__)}function Rc(){this.__values__===n&&(this.__values__=Mu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function zc(){return this}function Bc(e){for(var t,r=this;r instanceof _r;){var i=Ss(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function Vc(){var e=this.__wrapped__;if(e instanceof W){var t=e;return this.__actions__.length&&(t=new W(this)),t=t.reverse(),t.__actions__.push({func:J,args:[nc],thisArg:n}),new vr(t,this.__chain__)}return this.thru(nc)}function Hc(){return Da(this.__wrapped__,this.__actions__)}var Uc=Xa(function(e,t,n){P.call(e,n)?++e[n]:ai(e,n,1)});function Wc(e,t,r){var i=Y(e)?fn:mi;return r&&Yo(e,t,r)&&(t=n),i(e,q(t,3))}function Gc(e,t){return(Y(e)?pn:_i)(e,q(t,3))}var Kc=ao(Ps),qc=ao(Fs);function Jc(e,t){return vi(rl(e,t),1)}function Yc(e,t){return vi(rl(e,t),h)}function Xc(e,t,r){return r=r===n?1:X(r),vi(rl(e,t),r)}function Zc(e,t){return(Y(e)?V:fi)(e,q(t,3))}function Qc(e,t){return(Y(e)?dn:pi)(e,q(t,3))}var $c=Xa(function(e,t,n){P.call(e,n)?e[n].push(t):ai(e,n,[t])});function el(e,t,n,r){e=Xl(e)?e:Ed(e),n=n&&!r?X(n):0;var i=e.length;return n<0&&(n=zt(i+n,0)),wu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&En(e,t,n)>-1}var tl=K(function(e,t,n){var r=-1,i=typeof t==`function`,a=Xl(e)?Re(e.length):[];return fi(e,function(e){a[++r]=i?ln(t,e,n):Ni(e,t,n)}),a}),nl=Xa(function(e,t,n){ai(e,n,t)});function rl(e,t){return(Y(e)?gn:Yi)(e,q(t,3))}function il(e,t,r,i){return e==null?[]:(Y(t)||(t=t==null?[]:[t]),r=i?n:r,Y(r)||(r=r==null?[]:[r]),ta(e,t,r))}var al=Xa(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function ol(e,t,n){var r=Y(e)?vn:Mn,i=arguments.length<3;return r(e,q(t,4),n,i,fi)}function sl(e,t,n){var r=Y(e)?yn:Mn,i=arguments.length<3;return r(e,q(t,4),n,i,pi)}function cl(e,t){return(Y(e)?pn:_i)(e,Ol(q(t,3)))}function ll(e){return(Y(e)?Xr:ua)(e)}function ul(e,t,r){return t=(r?Yo(e,t,r):t===n)?1:X(t),(Y(e)?Zr:da)(e,t)}function dl(e){return(Y(e)?Qr:ha)(e)}function fl(e){if(e==null)return 0;if(Xl(e))return wu(e)?ir(e):e.length;var t=zo(e);return t==ae||t==le?e.size:Ki(e).length}function pl(e,t,r){var i=Y(e)?bn:_a;return r&&Yo(e,t,r)&&(t=n),i(e,q(t,3))}var ml=K(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Yo(e,t[0],t[1])?t=[]:n>2&&Yo(t[0],t[1],t[2])&&(t=[t[0]]),ta(e,vi(t,1),[])}),hl=kt||function(){return Zt.Date.now()};function gl(e,t){if(typeof t!=`function`)throw new st(r);return e=X(e),function(){if(--e<1)return t.apply(this,arguments)}}function _l(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,bo(e,f,n,n,n,n,t)}function vl(e,t){var i;if(typeof t!=`function`)throw new st(r);return e=X(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var yl=K(function(e,t,n){var r=o;if(n.length){var i=$n(n,Mo(yl));r|=u}return bo(e,r,t,n,i)}),bl=K(function(e,t,n){var r=o|s;if(n.length){var i=$n(n,Mo(bl));r|=u}return bo(t,r,e,n,i)});function xl(e,t,r){t=r?n:t;var i=bo(e,c,n,n,n,n,n,t);return i.placeholder=xl.placeholder,i}function Sl(e,t,r){t=r?n:t;var i=bo(e,l,n,n,n,n,n,t);return i.placeholder=Sl.placeholder,i}function Cl(e,t,i){var a,o,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new st(r);t=Fu(t)||0,uu(i)&&(f=!!i.leading,p=`maxWait`in i,s=p?zt(Fu(i.maxWait)||0,t):s,m=`trailing`in i?!!i.trailing:m);function h(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r),c}function g(e){return d=e,l=ps(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?Ut(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=hl();if(v(e))return b(e);l=ps(y,_(e))}function b(e){return l=n,m&&a?h(e):(a=o=n,c)}function x(){l!==n&&Fa(l),d=0,a=u=o=l=n}function ee(){return l===n?c:b(hl())}function S(){var e=hl(),r=v(e);if(a=arguments,o=this,u=e,r){if(l===n)return g(u);if(p)return Fa(l),l=ps(y,t),h(u)}return l===n&&(l=ps(y,t)),c}return S.cancel=x,S.flush=ee,S}var wl=K(function(e,t){return ui(e,1,t)}),Tl=K(function(e,t,n){return ui(e,Fu(t)||0,n)});function El(e){return bo(e,m)}function Dl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new st(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Dl.Cache||Pr),n}Dl.Cache=Pr;function Ol(e){if(typeof e!=`function`)throw new st(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function kl(e){return vl(2,e)}var Al=Na(function(e,t){t=t.length==1&&Y(t[0])?gn(t[0],Rn(q())):gn(vi(t,1),Rn(q()));var n=t.length;return K(function(r){for(var i=-1,a=Ut(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return ln(e,this,r)})}),jl=K(function(e,t){return bo(e,u,n,t,$n(t,Mo(jl)))}),Ml=K(function(e,t){return bo(e,d,n,t,$n(t,Mo(Ml)))}),Nl=Do(function(e,t){return bo(e,p,n,n,n,t)});function Pl(e,t){if(typeof e!=`function`)throw new st(r);return t=t===n?t:X(t),K(e,t)}function Fl(e,t){if(typeof e!=`function`)throw new st(r);return t=t==null?0:zt(X(t),0),K(function(n){var r=n[t],i=Pa(n,0,t);return r&&_n(i,r),ln(e,this,i)})}function Il(e,t,n){var i=!0,a=!0;if(typeof e!=`function`)throw new st(r);return uu(n)&&(i=`leading`in n?!!n.leading:i,a=`trailing`in n?!!n.trailing:a),Cl(e,t,{leading:i,maxWait:t,trailing:a})}function Ll(e){return _l(e,1)}function Rl(e,t){return jl(ja(t),e)}function zl(){if(!arguments.length)return[];var e=arguments[0];return Y(e)?e:[e]}function Bl(e){return ci(e,4)}function Vl(e,t){return t=typeof t==`function`?t:n,ci(e,4,t)}function Hl(e){return ci(e,5)}function Ul(e,t){return t=typeof t==`function`?t:n,ci(e,5,t)}function Wl(e,t){return t==null||G(e,t,sd(t))}function Gl(e,t){return e===t||e!==e&&t!==t}var Kl=ho(Di),ql=ho(function(e,t){return e>=t}),Jl=Pi(function(){return arguments}())?Pi:function(e){return du(e)&&P.call(e,`callee`)&&!wt.call(e,`callee`)},Y=Re.isArray,Yl=nn?Rn(nn):Fi;function Xl(e){return e!=null&&lu(e.length)&&!su(e)}function Zl(e){return du(e)&&Xl(e)}function Ql(e){return e===!0||e===!1||du(e)&&Ei(e)==te}var $l=Pt||Mf,eu=rn?Rn(rn):Ii;function tu(e){return du(e)&&e.nodeType===1&&!bu(e)}function nu(e){if(e==null)return!0;if(Xl(e)&&(Y(e)||typeof e==`string`||typeof e.splice==`function`||$l(e)||Eu(e)||Jl(e)))return!e.length;var t=zo(e);if(t==ae||t==le)return!e.size;if(ts(e))return!Ki(e).length;for(var n in e)if(P.call(e,n))return!1;return!0}function ru(e,t){return Li(e,t)}function iu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?Li(e,t,n,r):!!i}function au(e){if(!du(e))return!1;var t=Ei(e);return t==E||t==T||typeof e.message==`string`&&typeof e.name==`string`&&!bu(e)}function ou(e){return typeof e==`number`&&Lt(e)}function su(e){if(!uu(e))return!1;var t=Ei(e);return t==re||t==ie||t==w||t==se}function cu(e){return typeof e==`number`&&e==X(e)}function lu(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=g}function uu(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function du(e){return typeof e==`object`&&!!e}var fu=an?Rn(an):zi;function pu(e,t){return e===t||Bi(e,t,Po(t))}function mu(e,t,r){return r=typeof r==`function`?r:n,Bi(e,t,Po(t),r)}function hu(e){return yu(e)&&e!=+e}function gu(e){if(es(e))throw new tt(`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`);return Vi(e)}function _u(e){return e===null}function vu(e){return e==null}function yu(e){return typeof e==`number`||du(e)&&Ei(e)==D}function bu(e){if(!du(e)||Ei(e)!=k)return!1;var t=St(e);if(t===null)return!0;var n=P.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&ft.call(n)==gt}var xu=on?Rn(on):Hi;function Su(e){return cu(e)&&e>=-g&&e<=g}var Cu=sn?Rn(sn):Ui;function wu(e){return typeof e==`string`||!Y(e)&&du(e)&&Ei(e)==ue}function Tu(e){return typeof e==`symbol`||du(e)&&Ei(e)==de}var Eu=cn?Rn(cn):Wi;function Du(e){return e===n}function Ou(e){return du(e)&&zo(e)==pe}function ku(e){return du(e)&&Ei(e)==me}var Au=ho(Ji),ju=ho(function(e,t){return e<=t});function Mu(e){if(!e)return[];if(Xl(e))return wu(e)?ar(e):Ka(e);if(Dt&&e[Dt])return Xn(e[Dt]());var t=zo(e);return(t==ae?Zn:t==le?er:Ed)(e)}function Nu(e){return e?(e=Fu(e),e===h||e===-1/0?(e<0?-1:1)*_:e===e?e:0):e===0?e:0}function X(e){var t=Nu(e),n=t%1;return t===t?n?t-n:t:0}function Pu(e){return e?si(X(e),0,y):0}function Fu(e){if(typeof e==`number`)return e;if(Tu(e))return v;if(uu(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=uu(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Ln(e);var n=Je.test(e);return n||Xe.test(e)?Jt(e.slice(2),n?2:8):qe.test(e)?v:+e}function Iu(e){return qa(e,cd(e))}function Lu(e){return e?si(X(e),-g,g):e===0?e:0}function Ru(e){return e==null?``:Sa(e)}var zu=Za(function(e,t){if(ts(t)||Xl(t))qa(t,sd(t),e);else for(var n in t)P.call(t,n)&&ei(e,n,t[n])}),Bu=Za(function(e,t){qa(t,cd(t),e)}),Vu=Za(function(e,t,n,r){qa(t,cd(t),e,r)}),Hu=Za(function(e,t,n,r){qa(t,sd(t),e,r)}),Uu=Do(oi);function Wu(e,t){var n=gr(e);return t==null?n:ri(n,t)}var Gu=K(function(e,t){e=it(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&Yo(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=cd(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||Gl(d,ut[u])&&!P.call(e,u))&&(e[u]=o[u])}return e}),Ku=K(function(e){return e.push(n,So),ln(fd,n,e)});function qu(e,t){return wn(e,q(t,3),xi)}function Ju(e,t){return wn(e,q(t,3),Si)}function Yu(e,t){return e==null?e:yi(e,q(t,3),cd)}function Xu(e,t){return e==null?e:bi(e,q(t,3),cd)}function Zu(e,t){return e&&xi(e,q(t,3))}function Qu(e,t){return e&&Si(e,q(t,3))}function $u(e){return e==null?[]:Ci(e,sd(e))}function ed(e){return e==null?[]:Ci(e,cd(e))}function td(e,t,r){var i=e==null?n:wi(e,t);return i===n?r:i}function nd(e,t){return e!=null&&Ho(e,t,Oi)}function rd(e,t){return e!=null&&Ho(e,t,ki)}var id=co(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=ht.call(t)),e[t]=n},uf(mf)),ad=co(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=ht.call(t)),P.call(e,t)?e[t].push(n):e[t]=[n]},q),od=K(Ni);function sd(e){return Xl(e)?Yr(e):Ki(e)}function cd(e){return Xl(e)?Yr(e,!0):qi(e)}function ld(e,t){var n={};return t=q(t,3),xi(e,function(e,r,i){ai(n,t(e,r,i),e)}),n}function ud(e,t){var n={};return t=q(t,3),xi(e,function(e,r,i){ai(n,r,t(e,r,i))}),n}var dd=Za(function(e,t,n){Qi(e,t,n)}),fd=Za(function(e,t,n,r){Qi(e,t,n,r)}),pd=Do(function(e,t){var n={};if(e==null)return n;var r=!1;t=gn(t,function(t){return t=Ma(t,e),r||=t.length>1,t}),qa(e,ko(e),n),r&&(n=ci(n,7,Co));for(var i=t.length;i--;)wa(n,t[i]);return n});function md(e,t){return gd(e,Ol(q(t)))}var hd=Do(function(e,t){return e==null?{}:na(e,t)});function gd(e,t){if(e==null)return{};var n=gn(ko(e),function(e){return[e]});return t=q(t),ra(e,n,function(e,n){return t(e,n[0])})}function _d(e,t,r){t=Ma(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[ys(t[i])];o===n&&(i=a,o=r),e=su(o)?o.call(e):o}return e}function vd(e,t,n){return e==null?e:fa(e,t,n)}function yd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:fa(e,t,r,i)}var bd=yo(sd),xd=yo(cd);function Sd(e,t,n){var r=Y(e),i=r||$l(e)||Eu(e);if(t=q(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:uu(e)&&su(a)?gr(St(e)):{}}return(i?V:xi)(e,function(e,r,i){return t(n,e,r,i)}),n}function Cd(e,t){return e==null||wa(e,t)}function wd(e,t,n){return e==null?e:Ta(e,t,ja(n))}function Td(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Ta(e,t,ja(r),i)}function Ed(e){return e==null?[]:zn(e,sd(e))}function Dd(e){return e==null?[]:zn(e,cd(e))}function Od(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Fu(r),r=r===r?r:0),t!==n&&(t=Fu(t),t=t===t?t:0),si(Fu(e),t,r)}function kd(e,t,r){return t=Nu(t),r===n?(r=t,t=0):r=Nu(r),e=Fu(e),Ai(e,t,r)}function Ad(e,t,r){if(r&&typeof r!=`boolean`&&Yo(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Nu(e),t===n?(t=e,e=0):t=Nu(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=Kt();return Ut(e+a*(t-e+qt(`1e-`+((a+``).length-1))),t)}return sa(e,t)}var jd=no(function(e,t,n){return t=t.toLowerCase(),e+(n?Md(t):t)});function Md(e){return of(Ru(e).toLowerCase())}function Nd(e){return e=Ru(e),e&&e.replace(Qe,Wn).replace(It,``)}function Pd(e,t,r){e=Ru(e),t=Sa(t);var i=e.length;r=r===n?i:si(X(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Fd(e){return e=Ru(e),e&&Ae.test(e)?e.replace(A,Gn):e}function Id(e){return e=Ru(e),e&&Ie.test(e)?e.replace(Fe,`\\$&`):e}var Ld=no(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Rd=no(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),zd=to(`toLowerCase`);function Bd(e,t,n){e=Ru(e),t=X(t);var r=t?ir(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return fo(Mt(i),n)+e+fo(jt(i),n)}function Vd(e,t,n){e=Ru(e),t=X(t);var r=t?ir(e):0;return t&&r<t?e+fo(t-r,n):e}function Hd(e,t,n){e=Ru(e),t=X(t);var r=t?ir(e):0;return t&&r<t?fo(t-r,n)+e:e}function Ud(e,t,n){return n||t==null?t=0:t&&=+t,Gt(Ru(e).replace(Le,``),t||0)}function Wd(e,t,r){return t=(r?Yo(e,t,r):t===n)?1:X(t),la(Ru(e),t)}function Gd(){var e=arguments,t=Ru(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Kd=no(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function qd(e,t,r){return r&&typeof r!=`number`&&Yo(e,t,r)&&(t=r=n),r=r===n?y:r>>>0,r?(e=Ru(e),e&&(typeof t==`string`||t!=null&&!xu(t))&&(t=Sa(t),!t&&Jn(e))?Pa(ar(e),0,r):e.split(t,r)):[]}var Jd=no(function(e,t,n){return e+(n?` `:``)+of(t)});function Yd(e,t,n){return e=Ru(e),n=n==null?0:si(X(n),0,e.length),t=Sa(t),e.slice(n,n+t.length)==t}function Xd(e,t,r){var i=U.templateSettings;r&&Yo(e,t,r)&&(t=n),e=Ru(e),t=Hu({},t,i,xo);var a=Hu({},t.imports,i.imports,xo),o=sd(a),s=zn(a,o);V(o,function(e){if(Ue.test(e))throw new tt("Invalid `imports` option passed into `_.template`")});var c,l,u=0,d=t.interpolate||$e,f=`__p += '`,p=at((t.escape||$e).source+`|`+d.source+`|`+(d===Me?Ge:$e).source+`|`+(t.evaluate||$e).source+`|$`,`g`),m=`//# sourceURL=`+(P.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++Vt+`]`)+`
@@ -19,7 +19,7 @@ __p += '`),r&&(f+=`' +
19
19
  function print() { __p += __j.call(arguments, '') }
20
20
  `:`;
21
21
  `)+f+`return __p
22
- }`;var g=Z(function(){return nt(o,m+`return `+f).apply(n,s)});if(g.source=f,au(g))throw g;return g}function Zd(e){return Ru(e).toLowerCase()}function Qd(e){return Ru(e).toUpperCase()}function $d(e,t,r){if(e=Ru(e),e&&(r||t===n))return Ln(e);if(!e||!(t=Sa(t)))return e;var i=ar(e),a=ar(t);return Pa(i,Vn(i,a),Hn(i,a)+1).join(``)}function ef(e,t,r){if(e=Ru(e),e&&(r||t===n))return e.slice(0,or(e)+1);if(!e||!(t=Sa(t)))return e;var i=ar(e);return Pa(i,0,Hn(i,ar(t))+1).join(``)}function tf(e,t,r){if(e=Ru(e),e&&(r||t===n))return e.replace(Le,``);if(!e||!(t=Sa(t)))return e;var i=ar(e);return Pa(i,Vn(i,ar(t))).join(``)}function nf(e,t){var r=30,i=`...`;if(uu(t)){var a=`separator`in t?t.separator:a;r=`length`in t?X(t.length):r,i=`omission`in t?Sa(t.omission):i}e=Ru(e);var o=e.length;if(Jn(e)){var s=ar(e);o=s.length}if(r>=o)return e;var c=r-ir(i);if(c<1)return i;var l=s?Pa(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),xu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=at(a.source,Ru(Ke.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(Sa(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function rf(e){return e=Ru(e),e&&j.test(e)?e.replace(ke,sr):e}var af=no(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),of=to(`toUpperCase`);function sf(e,t,r){return e=Ru(e),t=r?n:t,t===n?Yn(e)?ur(e):Cn(e):e.match(t)||[]}var Z=K(function(e,t){try{return ln(e,n,t)}catch(e){return au(e)?e:new tt(e)}}),cf=Do(function(e,t){return V(t,function(t){t=ys(t),ai(e,t,yl(e[t],e))}),e});function lf(e){var t=e==null?0:e.length,n=q();return e=t?gn(e,function(e){if(typeof e[1]!=`function`)throw new st(r);return[n(e[0]),e[1]]}):[],K(function(n){for(var r=-1;++r<t;){var i=e[r];if(ln(i[0],this,n))return ln(i[1],this,n)}})}function Q(e){return li(ci(e,1))}function uf(e){return function(){return e}}function df(e,t){return e==null||e!==e?t:e}var ff=oo(),pf=oo(!0);function mf(e){return e}function hf(e){return Gi(typeof e==`function`?e:ci(e,1))}function gf(e){return Xi(ci(e,1))}function _f(e,t){return Zi(e,ci(t,1))}var vf=K(function(e,t){return function(n){return Ni(n,e,t)}}),yf=K(function(e,t){return function(n){return Ni(e,n,t)}});function bf(e,t,n){var r=sd(t),i=Ci(t,r);n==null&&(!uu(t)||!i.length&&r.length)&&(n=t,t=e,e=this,i=Ci(t,sd(t)));var a=!(uu(n)&&`chain`in n)||!!n.chain,o=su(e);return V(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ka(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,_n([this.value()],arguments))})}),e}function xf(){return Zt._===this&&(Zt._=F),this}function Sf(){}function Cf(e){return e=X(e),K(function(t){return ea(t,e)})}var wf=uo(gn),Tf=uo(fn),Ef=uo(bn);function Df(e){return Xo(e)?An(ys(e)):ia(e)}function Of(e){return function(t){return e==null?n:wi(e,t)}}var kf=mo(),Af=mo(!0);function jf(){return[]}function Mf(){return!1}function Nf(){return{}}function Pf(){return``}function Ff(){return!0}function If(e,t){if(e=X(e),e<1||e>g)return[];var n=y,r=Ut(e,y);t=q(t),e-=y;for(var i=Fn(r,t);++n<e;)t(n);return i}function Lf(e){return Y(e)?gn(e,ys):Tu(e)?[e]:Ka(vs(Ru(e)))}function Rf(e){var t=++pt;return Ru(e)+t}var zf=lo(function(e,t){return e+t},0),Bf=_o(`ceil`),Vf=lo(function(e,t){return e/t},1),Hf=_o(`floor`);function Uf(e){return e&&e.length?hi(e,mf,Di):n}function Wf(e,t){return e&&e.length?hi(e,q(t,2),Di):n}function Gf(e){return kn(e,mf)}function Kf(e,t){return kn(e,q(t,2))}function qf(e){return e&&e.length?hi(e,mf,Ji):n}function Jf(e,t){return e&&e.length?hi(e,q(t,2),Ji):n}var Yf=lo(function(e,t){return e*t},1),Xf=_o(`round`),Zf=lo(function(e,t){return e-t},0);function Qf(e){return e&&e.length?Pn(e,mf):0}function $f(e,t){return e&&e.length?Pn(e,q(t,2)):0}return U.after=gl,U.ary=_l,U.assign=zu,U.assignIn=Bu,U.assignInWith=Vu,U.assignWith=Hu,U.at=Uu,U.before=vl,U.bind=yl,U.bindAll=cf,U.bindKey=bl,U.castArray=zl,U.chain=Nc,U.chunk=Cs,U.compact=ws,U.concat=Ts,U.cond=lf,U.conforms=Q,U.constant=uf,U.countBy=Uc,U.create=Wu,U.curry=xl,U.curryRight=Sl,U.debounce=Cl,U.defaults=Gu,U.defaultsDeep=Ku,U.defer=wl,U.delay=Tl,U.difference=Es,U.differenceBy=Ds,U.differenceWith=Os,U.drop=ks,U.dropRight=As,U.dropRightWhile=js,U.dropWhile=Ms,U.fill=Ns,U.filter=Gc,U.flatMap=Jc,U.flatMapDeep=Yc,U.flatMapDepth=Xc,U.flatten=Is,U.flattenDeep=Ls,U.flattenDepth=Rs,U.flip=El,U.flow=ff,U.flowRight=pf,U.fromPairs=zs,U.functions=$u,U.functionsIn=ed,U.groupBy=$c,U.initial=Hs,U.intersection=Us,U.intersectionBy=Ws,U.intersectionWith=Gs,U.invert=id,U.invertBy=ad,U.invokeMap=tl,U.iteratee=hf,U.keyBy=nl,U.keys=sd,U.keysIn=cd,U.map=rl,U.mapKeys=ld,U.mapValues=ud,U.matches=gf,U.matchesProperty=_f,U.memoize=Dl,U.merge=dd,U.mergeWith=fd,U.method=vf,U.methodOf=yf,U.mixin=bf,U.negate=Ol,U.nthArg=Cf,U.omit=pd,U.omitBy=md,U.once=kl,U.orderBy=il,U.over=wf,U.overArgs=Al,U.overEvery=Tf,U.overSome=Ef,U.partial=jl,U.partialRight=Ml,U.partition=al,U.pick=hd,U.pickBy=gd,U.property=Df,U.propertyOf=Of,U.pull=Xs,U.pullAll=Zs,U.pullAllBy=Qs,U.pullAllWith=$s,U.pullAt=ec,U.range=kf,U.rangeRight=Af,U.rearg=Nl,U.reject=cl,U.remove=tc,U.rest=Pl,U.reverse=nc,U.sampleSize=ul,U.set=vd,U.setWith=yd,U.shuffle=dl,U.slice=rc,U.sortBy=ml,U.sortedUniq=uc,U.sortedUniqBy=dc,U.split=qd,U.spread=Fl,U.tail=fc,U.take=pc,U.takeRight=mc,U.takeRightWhile=hc,U.takeWhile=gc,U.tap=Pc,U.throttle=Il,U.thru=J,U.toArray=Mu,U.toPairs=bd,U.toPairsIn=xd,U.toPath=Lf,U.toPlainObject=Iu,U.transform=Sd,U.unary=Ll,U.union=_c,U.unionBy=vc,U.unionWith=yc,U.uniq=bc,U.uniqBy=xc,U.uniqWith=Sc,U.unset=Cd,U.unzip=Cc,U.unzipWith=wc,U.update=wd,U.updateWith=Td,U.values=Ed,U.valuesIn=Dd,U.without=Tc,U.words=sf,U.wrap=Rl,U.xor=Ec,U.xorBy=Dc,U.xorWith=Oc,U.zip=kc,U.zipObject=Ac,U.zipObjectDeep=jc,U.zipWith=Mc,U.entries=bd,U.entriesIn=xd,U.extend=Bu,U.extendWith=Vu,bf(U,U),U.add=zf,U.attempt=Z,U.camelCase=jd,U.capitalize=Md,U.ceil=Bf,U.clamp=Od,U.clone=Bl,U.cloneDeep=Hl,U.cloneDeepWith=Ul,U.cloneWith=Vl,U.conformsTo=Wl,U.deburr=Nd,U.defaultTo=df,U.divide=Vf,U.endsWith=Pd,U.eq=Gl,U.escape=Fd,U.escapeRegExp=Id,U.every=Wc,U.find=Kc,U.findIndex=Ps,U.findKey=qu,U.findLast=qc,U.findLastIndex=Fs,U.findLastKey=Ju,U.floor=Hf,U.forEach=Zc,U.forEachRight=Qc,U.forIn=Yu,U.forInRight=Xu,U.forOwn=Zu,U.forOwnRight=Qu,U.get=td,U.gt=Kl,U.gte=ql,U.has=nd,U.hasIn=rd,U.head=Bs,U.identity=mf,U.includes=el,U.indexOf=Vs,U.inRange=kd,U.invoke=od,U.isArguments=Jl,U.isArray=Y,U.isArrayBuffer=Yl,U.isArrayLike=Xl,U.isArrayLikeObject=Zl,U.isBoolean=Ql,U.isBuffer=$l,U.isDate=eu,U.isElement=tu,U.isEmpty=nu,U.isEqual=ru,U.isEqualWith=iu,U.isError=au,U.isFinite=ou,U.isFunction=su,U.isInteger=cu,U.isLength=lu,U.isMap=fu,U.isMatch=pu,U.isMatchWith=mu,U.isNaN=hu,U.isNative=gu,U.isNil=vu,U.isNull=_u,U.isNumber=yu,U.isObject=uu,U.isObjectLike=du,U.isPlainObject=bu,U.isRegExp=xu,U.isSafeInteger=Su,U.isSet=Cu,U.isString=wu,U.isSymbol=Tu,U.isTypedArray=Eu,U.isUndefined=Du,U.isWeakMap=Ou,U.isWeakSet=ku,U.join=Ks,U.kebabCase=Ld,U.last=qs,U.lastIndexOf=Js,U.lowerCase=Rd,U.lowerFirst=zd,U.lt=Au,U.lte=ju,U.max=Uf,U.maxBy=Wf,U.mean=Gf,U.meanBy=Kf,U.min=qf,U.minBy=Jf,U.stubArray=jf,U.stubFalse=Mf,U.stubObject=Nf,U.stubString=Pf,U.stubTrue=Ff,U.multiply=Yf,U.nth=Ys,U.noConflict=xf,U.noop=Sf,U.now=hl,U.pad=Bd,U.padEnd=Vd,U.padStart=Hd,U.parseInt=Ud,U.random=Ad,U.reduce=ol,U.reduceRight=sl,U.repeat=Wd,U.replace=Gd,U.result=_d,U.round=Xf,U.runInContext=e,U.sample=ll,U.size=fl,U.snakeCase=Kd,U.some=pl,U.sortedIndex=ic,U.sortedIndexBy=ac,U.sortedIndexOf=oc,U.sortedLastIndex=sc,U.sortedLastIndexBy=cc,U.sortedLastIndexOf=lc,U.startCase=Jd,U.startsWith=Yd,U.subtract=Zf,U.sum=Qf,U.sumBy=$f,U.template=Xd,U.times=If,U.toFinite=Nu,U.toInteger=X,U.toLength=Pu,U.toLower=Zd,U.toNumber=Fu,U.toSafeInteger=Lu,U.toString=Ru,U.toUpper=Qd,U.trim=$d,U.trimEnd=ef,U.trimStart=tf,U.truncate=nf,U.unescape=rf,U.uniqueId=Rf,U.upperCase=af,U.upperFirst=of,U.each=Zc,U.eachRight=Qc,U.first=Bs,bf(U,function(){var e={};return xi(U,function(t,n){P.call(U.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),U.VERSION=`4.18.1`,V([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){U[e].placeholder=U}),V([`drop`,`take`],function(e,t){W.prototype[e]=function(r){r=r===n?1:zt(X(r),0);var i=this.__filtered__&&!t?new W(this):this.clone();return i.__filtered__?i.__takeCount__=Ut(r,i.__takeCount__):i.__views__.push({size:Ut(r,y),type:e+(i.__dir__<0?`Right`:``)}),i},W.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),V([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;W.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:q(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),V([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);W.prototype[e]=function(){return this[n](1).value()[0]}}),V([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);W.prototype[e]=function(){return this.__filtered__?new W(this):this[n](1)}}),W.prototype.compact=function(){return this.filter(mf)},W.prototype.find=function(e){return this.filter(e).head()},W.prototype.findLast=function(e){return this.reverse().find(e)},W.prototype.invokeMap=K(function(e,t){return typeof e==`function`?new W(this):this.map(function(n){return Ni(n,e,t)})}),W.prototype.reject=function(e){return this.filter(Ol(q(e)))},W.prototype.slice=function(e,t){e=X(e);var r=this;return r.__filtered__&&(e>0||t<0)?new W(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=X(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},W.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},W.prototype.toArray=function(){return this.take(y)},xi(W.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=U[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(U.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof W,l=s[0],u=c||Y(t),d=function(e){var t=a.apply(U,_n([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new W(this);var g=e.apply(t,s);return g.__actions__.push({func:J,args:[d],thisArg:n}),new vr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),V([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=ct[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);U.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Y(i)?i:[],e)}return this[n](function(n){return t.apply(Y(n)?n:[],e)})}}),xi(W.prototype,function(e,t){var n=U[t];if(n){var r=n.name+``;P.call(jn,r)||(jn[r]=[]),jn[r].push({name:t,func:n})}}),jn[so(n,s).name]=[{name:`wrapper`,func:n}],W.prototype.clone=yr,W.prototype.reverse=br,W.prototype.value=xr,U.prototype.at=Fc,U.prototype.chain=Ic,U.prototype.commit=Lc,U.prototype.next=Rc,U.prototype.plant=Bc,U.prototype.reverse=Vc,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=Hc,U.prototype.first=U.prototype.head,Dt&&(U.prototype[Dt]=zc),U})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(Zt._=H,define(function(){return H})):$t?(($t.exports=H)._=H,Qt._=H):Zt._=H}).call(n)}))(),1).default.throttle((e,t)=>e(t),200),rc=(e,t)=>{let n=t.find(t=>t.name===e);return{card:n,index:n?t.indexOf(n):-1}},ic=(e,t,n,r,i,a)=>{let{card:o,index:s}=rc(e,n);if(s!==t&&!(s<t&&i<a)&&!(s>t&&i>a)&&o&&s!==t){let e=JSON.parse(JSON.stringify(n));e.splice(s,1),e.splice(t,0,o),nc(r,e)}},ac={cursor:`move`},oc=({canDrag:e,setEndDrag:t,iconJSX:n,selected:r,compact:i,badgeContent:a,badgeColor:o,tab:s,tabs:c,setTabs:l,_id:u,children:d,name:f})=>{let p=P(null),[{handlerId:m},h]=Uo({accept:`box`,collect(e){return{handlerId:e.getHandlerId()}},hover({_id:e},t){if(!p.current)return;let{index:n}=rc(u,c),r=p.current.getBoundingClientRect(),i=(r.bottom-r.top)/2,a=t.getClientOffset();a&&ic(e,n,c,l,a.y-r.top,i)}}),[{isDragging:g},_,v]=Po({type:`box`,item:{_id:s.name,...s,iconJSX:n,selected:r,compact:i,badgeContent:a,badgeColor:o},canDrag:()=>e,end:()=>t(),collect:e=>({isDragging:e.isDragging()})});Xt(()=>{v(vs(),{captureDraggingState:!0})},[]);let y=+!g;return Xt(()=>{_(h(p))},[_,h]),T(`div`,{ref:p,style:{...ac,opacity:y},"data-handler-id":m,children:T(`a`,{type:`box`,"data-handler-id":m,onClick:e=>e.preventDefault(),href:`/#${f}`,style:{...ac,opacity:y,color:`inherit`,textDecoration:`none`},children:d})})},sc=24,cc=e=>e.palette.mode===`light`?`white`:H.invertColor(e.palette.primary.main,!0),lc={button:{mx:`4px`,borderRadius:`8px`,minHeight:40},selected:e=>({background:`linear-gradient(90deg, ${e.palette.primary.light} 0%, ${e.palette.primary.main} 100%)`,color:cc(e),"&:hover":{background:`linear-gradient(90deg, ${e.palette.primary.light} 0%, ${e.palette.primary.dark} 100%)`,color:cc(e)}}),selectedIcon:e=>({color:cc(e)}),compact:{px:`4px`},row:{display:`flex`,alignItems:`center`,flexWrap:`nowrap`,gap:`8px`,width:`100%`,minHeight:40},rowCompact:{justifyContent:`center`},badgeCompact:{"& .MuiBadge-badge:not(.MuiBadge-invisible)":{transform:`translate(-35%, -50%)`}},icon:{display:`flex`,alignItems:`center`,justifyContent:`center`},text:{m:0,"& .MuiTypography-root":{display:`flex`,flexDirection:`column`,alignItems:`flex-start`,justifyContent:`center`,lineHeight:1.2}},secondary:{lineHeight:1.1,opacity:.75},warn:{backgroundColor:`#ffc107`},nativeItem:{border:`1px solid rgba(96, 189, 255, 0.16)`,background:`linear-gradient(180deg, rgba(13, 34, 53, 0.86), rgba(6, 19, 32, 0.92))`,boxShadow:`inset 0 1px 0 rgba(255,255,255,0.04)`,transition:`transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease`,"&:hover":{transform:`translateY(-1px)`,borderColor:`rgba(0, 255, 136, 0.28)`,background:`linear-gradient(180deg, rgba(17, 44, 66, 0.94), rgba(7, 22, 36, 0.96))`,boxShadow:`0 10px 24px rgba(0,0,0,.22), inset 0 0 0 1px rgba(0,255,136,.06)`}},nativeSelected:{borderColor:`rgba(0, 255, 136, 0.48)`,background:`linear-gradient(135deg, rgba(0,255,136,.17), rgba(0,212,255,.10))`,boxShadow:`0 0 22px rgba(0,255,136,.09), inset 0 0 0 1px rgba(0,255,136,.11)`}},uc=e=>{let{tabName:t,badgeColor:n,badgeContent:r,compact:i,icon:a,onClick:o,selected:s,text:c,editMenuList:l,visible:u,color:d,editListFunc:f,badgeAdditionalContent:p,badgeAdditionalColor:m,style:h}=e,g=c?c.replace(`&gt;`,`>`):``;return(g===`Text->Kommandos`||g===`Text->Commands`)&&(g=`Text→Cmd`),M(`div`,{style:{display:`flex`,alignItems:`center`,...h||{}},children:[!!l&&T(Cr,{}),!!l&&T(ke,{checked:u,onClick:()=>f==null?void 0:f(!0)}),!!l&&T(Ct,{value:d,noInputField:!0,onChange:e=>f==null?void 0:f(!1,e||null)}),T(tn,{className:`nexowatt-native-nav-item`,"data-eos-tab":t,"aria-current":s?`page`:void 0,selected:s,sx:Pe.getStyle(e.theme,lc.button,lc.nativeItem,s&&lc.nativeSelected,s&&lc.selected,i&&lc.compact),onClick:o,children:T(Rt,{title:i?g:``,slotProps:{popper:{sx:{pointerEvents:`none`}}},children:M(F,{sx:Pe.getStyle(e.theme,lc.row,i&&lc.rowCompact),children:[T(Nt,{className:`nexowatt-native-nav-icon-slot`,style:{minWidth:sc,width:sc,color:d},sx:Pe.getStyle(e.theme,lc.icon,s&&lc.selectedIcon),children:T(ot,{badgeContent:r||0,color:(n===`warn`?`default`:n)||`primary`,anchorOrigin:i?{vertical:`top`,horizontal:`left`}:void 0,sx:Pe.getStyle(e.theme,n===`warn`&&{"& .MuiBadge-badge":lc.warn},i&&lc.badgeCompact),children:a})}),!i&&M(Yt,{style:{color:d},sx:lc.text,children:[T(ot,{badgeContent:p||0,color:(m===`warn`?`default`:m)||`primary`,sx:m===`warn`?{"& .MuiBadge-badge":lc.warn}:void 0,children:g}),e.secondaryText?T(L,{component:`div`,variant:`caption`,color:`text.secondary`,sx:lc.secondary,children:e.secondaryText}):null]})]})})})]})},dc={position:`fixed`,pointerEvents:`none`,zIndex:100,left:0,top:0,width:`100%`,height:`100%`};function fc(e,t){return[Math.round(e/32)*32,Math.round(t/32)*32]}function pc(e,t,n){if(!e||!t)return{display:`none`};let{x:r,y:i}=t;n&&(r-=e.x,i-=e.y,[r,i]=fc(r,i),r+=e.x,i+=e.y);let a=`translate(${r}px, ${i}px)`;return{transform:a,WebkitTransform:a}}var mc={root:e=>({background:e.palette.background.default})};function hc(e){let{itemType:t,isDragging:n,item:r,initialOffset:i,currentOffset:a}=Fo(e=>({item:e.getItem(),itemType:e.getItemType(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging()}));function o(){return t===`box`?T(F,{component:`div`,sx:mc.root,style:{width:179},children:T(uc,{visible:r.visible,editListFunc:()=>void 0,compact:r.compact,icon:r.iconJSX,text:r.title,selected:r.selected,badgeContent:r.badgeContent,badgeColor:r.badgeColor,theme:e.theme},r.name)}):null}return n?T(`div`,{style:dc,children:T(`div`,{style:pc(i,a),children:o()})}):null}var gc,_c=({editMenuList:e,onClick:t,size:n})=>{let[r,i]=Ut.useState(null),[a,o]=Ut.useState(!1),[s,c]=Ut.useState(void 0);return M(Me,{children:[T(k,{size:n||`large`,style:e?{color:`red`}:void 0,onClick:n=>{t(),e?(o(!1),clearTimeout(gc)):(i(n.currentTarget),o(e=>s!==`right`||!e),c(`right`),gc=setTimeout(()=>o(!1),3e3))},title:A.t(`show/hide item`),children:T($e,{})}),T(lt,{style:{zIndex:2222},open:a,anchorEl:r,placement:s,transition:!0,children:({TransitionProps:e})=>T(pn,{...e,timeout:350,children:T(Ot,{children:T(L,{style:{padding:16},children:A.t(`You can drag and drop list items for reorder`)})})})})]})},vc={cockpit:M(Me,{children:[T(`rect`,{x:`3.5`,y:`3.5`,width:`7`,height:`7`,rx:`1.7`}),T(`rect`,{x:`13.5`,y:`3.5`,width:`7`,height:`7`,rx:`1.7`}),T(`rect`,{x:`3.5`,y:`13.5`,width:`7`,height:`7`,rx:`1.7`}),T(`rect`,{x:`13.5`,y:`13.5`,width:`7`,height:`7`,rx:`1.7`})]}),modules:M(Me,{children:[T(`path`,{d:`M12 3.7 18.7 7.5v8.9L12 20.3 5.3 16.4V7.5L12 3.7Z`}),T(`path`,{d:`M12 3.7V12m6.7-4.5L12 12 5.3 7.5`})]}),services:M(Me,{children:[T(`rect`,{x:`4`,y:`4.5`,width:`16`,height:`5`,rx:`2`}),T(`rect`,{x:`4`,y:`14.5`,width:`16`,height:`5`,rx:`2`}),T(`path`,{d:`M8 7h.01M8 17h.01M12 7h5M12 17h5`})]}),datapoints:M(Me,{children:[T(`circle`,{cx:`6`,cy:`12`,r:`2.3`}),T(`circle`,{cx:`18`,cy:`6`,r:`2.3`}),T(`circle`,{cx:`18`,cy:`18`,r:`2.3`}),T(`path`,{d:`M8.2 11 15.7 7M8.2 13l7.5 4`})]}),structure:M(Me,{children:[T(`rect`,{x:`3.5`,y:`4`,width:`7`,height:`4.5`,rx:`1.4`}),T(`rect`,{x:`13.5`,y:`4`,width:`7`,height:`4.5`,rx:`1.4`}),T(`rect`,{x:`8.5`,y:`15.5`,width:`7`,height:`4.5`,rx:`1.4`}),T(`path`,{d:`M7 8.5v3h10v-3M12 11.5v4`})]}),logs:M(Me,{children:[T(`path`,{d:`M5 6.5h14M5 12h8M5 17.5h14`}),T(`path`,{d:`m15.2 10.3 2.1 2.2 3.2-4`})]}),rights:M(Me,{children:[T(`path`,{d:`M12 3.5 18.5 6v5.1c0 4.2-2.7 7.3-6.5 9.4-3.8-2.1-6.5-5.2-6.5-9.4V6L12 3.5Z`}),T(`path`,{d:`M9.5 11.8 11 13.3l3.7-3.7`})]}),scripts:T(`path`,{d:`M8.8 7 4.5 12l4.3 5M15.2 7l4.3 5-4.3 5M13.2 5 10.8 19`}),hosts:M(Me,{children:[T(`rect`,{x:`4`,y:`4.5`,width:`16`,height:`10`,rx:`2.2`}),T(`path`,{d:`M8 19.5h8M12 14.5v5M7.5 8.5h.01M11 8.5h6`})]}),files:T(`path`,{d:`M4 7.5A2.5 2.5 0 0 1 6.5 5H10l2 2h5.5A2.5 2.5 0 0 1 20 9.5v7a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 4 16.5v-9Z`}),devices:M(Me,{children:[T(`rect`,{x:`4`,y:`5`,width:`16`,height:`14`,rx:`2.4`}),T(`path`,{d:`M8 9h8M8 13h3M15.5 13h.01`})]}),backup:M(Me,{children:[T(`path`,{d:`M6 6h10a3 3 0 0 1 3 3v7.5a2.5 2.5 0 0 1-2.5 2.5h-9A2.5 2.5 0 0 1 5 16.5V8a2 2 0 0 1 2-2Z`}),T(`path`,{d:`M9 6V4.5h4V6M9 12.5h6M12 9.5v6`})]}),eos:M(Me,{children:[T(`circle`,{cx:`12`,cy:`12`,r:`3.6`}),T(`path`,{d:`M12 3.5v4.2M12 16.3v4.2M3.5 12h4.2M16.3 12h4.2M5.9 5.9l3 3M15.1 15.1l3 3M5.9 18.1l3-3M15.1 8.9l3-3`})]}),default:M(Me,{children:[T(`circle`,{cx:`12`,cy:`12`,r:`8`}),T(`path`,{d:`M12 8v4l2.7 2.7`})]})};function yc({name:e}){return T(`span`,{className:`nexowatt-native-nav-icon eos-native-nav-icon eos-native-nav-icon-source`,"aria-hidden":`true`,children:T(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.9`,strokeLinecap:`round`,strokeLinejoin:`round`,children:vc[e]||vc.default})})}var bc=`App.configManagerPinnedInstances`,xc=`config-manager-pins-changed`;function Sc(){return window._localStorage||window.localStorage}function Cc(){try{let e=JSON.parse(Sc().getItem(`App.configManagerPinnedInstances`)||`[]`);return Array.isArray(e)?e.filter((t,n)=>typeof t==`string`&&e.indexOf(t)===n):[]}catch{return[]}}function wc(e){Sc().setItem(bc,JSON.stringify([...new Set(e)])),window.dispatchEvent(new CustomEvent(xc))}function Tc(e){return Cc().includes(e)}function Ec(e,t){let n=Cc().filter(t=>t!==e);t&&n.push(e),wc(n)}var Dc=[2e3,5e3,1e4];function Oc(e){return Dc[Math.min(Math.max(e,0),Dc.length-1)]}function kc(e){return(e instanceof Error?e.message:String(e)).includes(`permissionError`)}x();var Ac=10,jc=300,Mc=2e3;function Nc(e){return e.substring(0,1).toUpperCase()+e.substring(1).toLowerCase()}var Pc={root:e=>({flexShrink:0,transition:e.transitions.create(`width`,{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),display:`flex`,flexDirection:`column`}),rootFullWidth:{width:180},rootEditWidth:{width:250},rootCompactWidth:{width:50},paper:{width:`inherit`,overflowX:`hidden`,overflowY:`hidden`},header:e=>({display:`flex`,flexDirection:`row`,alignItems:`center`,padding:`0 8px 0 8px`,...e.mixins.toolbar,justifyContent:`flex-end`,position:`sticky`,top:0,zIndex:2,background:`inherit`}),headerCompact:{padding:0},filterButton:{flexShrink:0,p:`4px`},filterField:{flexGrow:1,"& .MuiInputBase-input":{fontSize:14}},headerLogout:{justifyContent:`space-between`},list:{paddingTop:0,flex:`1 1 auto`,overflowY:`auto`,overflowX:`hidden`},footer:e=>({flexShrink:0,borderTop:`1px solid ${e.palette.divider}`}),editButton:{position:`sticky`,bottom:0,right:0,width:`fit-content`,marginLeft:`auto`,transition:`opacity 0.5s`},userAvatar:e=>({width:24,height:24,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,overflow:`hidden`,backgroundColor:Ke(e.palette.primary.main,.2),border:`1px solid ${Ke(e.palette.primary.main,.5)}`,color:e.palette.primary.main}),footerButtons:{display:`flex`,flexWrap:`wrap`,justifyContent:`center`,alignItems:`center`,p:`2px`},icon:{width:20,height:20},logoSize:{width:50,height:50},brandFrame:{minHeight:52,minWidth:138,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:`4px 10px`,borderRadius:14,border:`1px solid rgba(0,255,136,0.22)`,background:`linear-gradient(180deg, rgba(4,14,22,0.96), rgba(3,10,18,0.98))`,boxShadow:`inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 18px rgba(0,0,0,0.24)`},brandImageWrap:{height:50,width:138,lineHeight:`50px`,display:`flex`,alignItems:`center`},avatarBlock:{width:`100%`,display:`flex`,marginTop:5,marginBottom:5,minWidth:0,overflow:`hidden`},avatarNotVisible:{opacity:0,transition:`opacity 0.3s`},avatarVisible:{opacity:1},styleVersion:e=>({fontSize:10,whiteSpace:`nowrap`,color:e.palette.mode===`dark`?`#ffffff5e`:`#0000005e`,alignSelf:`center`,ml:`5px`})},J={opened:0,closed:1,compact:2},Fc={"tab-overview":`Systemstatus`,"tab-intro":`Übersicht`,"tab-adapters":`Module`,"tab-instances":`Dienste`,"tab-objects":`Datenpunkte`,"tab-enums":`Struktur`,"tab-logs":`Systemlogs`,"tab-users":`Zugänge & Rechte`,"tab-javascript":`Skripte`,"tab-hosts":`System-Hosts`,"tab-files":`Dateien`,"tab-devicemanager":`Geräte`},Ic={"tab-intro":`cockpit`,"tab-adapters":`modules`,"tab-instances":`services`,"tab-objects":`datapoints`,"tab-enums":`structure`,"tab-logs":`logs`,"tab-users":`rights`,"tab-javascript":`scripts`,"tab-hosts":`hosts`,"tab-files":`files`,"tab-devicemanager":`devices`};function Lc(e){let t=e.toLowerCase();return/^tab-(?:nexowatt-ui|nexowatt-eos|eos-cockpit)(?:-|$)/.test(t)?{title:`NexoWatt EOS`,icon:`eos`}:/^tab-backitup(?:-|$)/.test(t)?{title:`System-Notfallsicherung`,icon:`backup`}:/^tab-(?:nexowatt-backup|eos-backup|nexowatt-sicherung)(?:-|$)/.test(t)?{title:`NexoWatt Sicherung`,icon:`backup`}:/^tab-backup(?:-|$)/.test(t)?{title:`Sicherung`,icon:`backup`}:/^tab-(?:javascript)(?:-|$)/.test(t)?{title:`Skripte`,icon:`scripts`}:/^tab-(?:files)(?:-|$)/.test(t)?{title:`Dateien`,icon:`files`}:{}}function Rc(e,t){return Fc[e]||Lc(e).title||t}function zc(e){let t=Ic[e]||Lc(e).icon;return t?T(yc,{name:t}):void 0}var Bc={"tab-overview":{order:2,icon:T(Wr,{}),host:!0},"tab-intro":{order:1,icon:zc(`tab-intro`)},"tab-info":{order:5,host:!0},"tab-adapters":{order:10,icon:zc(`tab-adapters`),host:!0},"tab-instances":{order:15,icon:zc(`tab-instances`),host:!0},"tab-objects":{order:20,icon:zc(`tab-objects`)},"tab-enums":{order:25,icon:zc(`tab-enums`)},"tab-devices":{order:27,host:!0},"tab-logs":{order:30,icon:zc(`tab-logs`),host:!0},"tab-scenes":{order:35},"tab-events":{order:40},"tab-users":{order:45,icon:zc(`tab-users`)},"tab-javascript":{order:50,icon:zc(`tab-javascript`)},"tab-text2command-0":{order:55,instance:0},"tab-text2command-1":{order:56,instance:1},"tab-text2command-2":{order:57,instance:2},"tab-node-red-0":{order:60,instance:0},"tab-node-red-1":{order:61,instance:1},"tab-node-red-2":{order:62,instance:2},"tab-fullcalendar-0":{order:65,instance:0},"tab-fullcalendar-1":{order:66,instance:1},"tab-fullcalendar-2":{order:67,instance:2},"tab-echarts":{order:70,instance:2},"tab-eventlist-0":{order:80,instance:0},"tab-eventlist-1":{order:81,instance:1},"tab-eventlist-2":{order:82,instance:2},"tab-hosts":{order:100,icon:zc(`tab-hosts`)},"tab-files":{order:110,icon:zc(`tab-files`)},"tab-devicemanager":{order:120,icon:zc(`tab-devicemanager`)}},Vc=class e extends $t{static isTransientConnectionError(e){return/notconnected|not connected|connectionerror|close_abnormal|closed_no_status|websocket|timeout|networkerror/i.test(e instanceof Error?e.message:typeof e==`string`?e:``)}constructor(t){super(t),j(this,`logsHandlerRegistered`,!1),j(this,`refEditButton`,Ut.createRef()),j(this,`tabsRun`,0),j(this,`tabsFailures`,0),j(this,`tabsRetryTimer`,null),j(this,`instanceChangesTimer`,null),j(this,`instanceChangesSince`,0),j(this,`systemConfigFailed`,!1),j(this,`unmounted`,!1),j(this,`instanceChangedHandler`,()=>{let e=Date.now();this.instanceChangesTimer?clearTimeout(this.instanceChangesTimer):this.instanceChangesSince=e;let t=Math.min(jc,Math.max(0,this.instanceChangesSince+Mc-e));this.instanceChangesTimer=setTimeout(()=>{this.instanceChangesTimer=null,this.getTabs(!0)},t)}),j(this,`connectionHandler`,e=>{e&&this.tabsFailures&&(this.tabsFailures=0,this.tabsRetryTimer&&=(clearTimeout(this.tabsRetryTimer),null),this.getTabs(!0,!0))}),j(this,`onNotificationsHandler`,()=>this.props.hostsWorker.getNotifications().then(e=>this.calculateWarning(e)).catch(t=>{e.isTransientConnectionError(t)||window.alert(`Cannot get notifications: ${t}`)})),j(this,`onErrorsUpdates`,e=>{this.setState({logErrors:e})}),j(this,`onWarningsUpdates`,e=>{this.setState({logWarnings:e})}),j(this,`calculateWarning`,e=>{if(!e)return;let t={warning:0,other:0};Object.keys(e).forEach(n=>{var r;if((r=e[n])!=null&&(r=r.result)!=null&&r.system&&Object.keys(e[n].result.system.categories).length){let r=e[n].result.system.categories;for(let e of Object.values(r))Object.keys(e.instances).forEach(()=>e.severity===`alert`?t.warning++:t.other++)}}),this.setState({hostNotifications:t})}),j(this,`pinsChangedHandler`,e=>{e instanceof StorageEvent&&e.key&&e.key!==`App.configManagerPinnedInstances`||this.getTabs()}),j(this,`closeFilter`,()=>this.setState({filterOpened:!1,filter:``})),j(this,`tabsEditSystemConfig`,async(e,t,n)=>{let r=JSON.parse(JSON.stringify(this.state.tabs));e!==void 0&&t&&(r[e].visible=!r[e].visible),e!==void 0&&n!==void 0&&(n===null?delete r[e].color:r[e].color=n);let i=JSON.stringify(r.map(({name:e,visible:t,color:n})=>({name:e,visible:t,color:n})));e!==void 0&&(t||n!==void 0)&&this.setState({tabs:r});try{await this.props.socket.setState(this.getTabsLayoutStateId(),i)}catch(r){window.alert(`Cannot save navigation layout: ${r}`),e!==void 0&&(t||n!==void 0)&&this.getTabs(!0)}}),j(this,`badge`,e=>{switch(e.name){case`tab-logs`:{let{logErrors:e,logWarnings:t}=this.state;return{content:e||t||0,color:e?`error`:`warn`}}case`tab-adapters`:return{content:this.state.adaptersUpdate||0,color:`primary`};case`tab-hosts`:return{content:this.state.hostsUpdate||0,color:`primary`,additionalContent:this.state.hostNotifications.warning+this.state.hostNotifications.other,additionalColor:this.state.hostNotifications.warning>0?`error`:`secondary`};default:return{content:0,color:``,additionalContent:0,additionalColor:``}}}),this.state={tabs:[],logErrors:0,logWarnings:0,hostNotifications:{other:0,warning:0},hostsUpdate:e.calculateHostUpdates(this.props.hosts,this.props.repository),adaptersUpdate:e.calculateAdapterUpdates(this.props.installed,this.props.repository),deviceManagerVisible:!1,userMenuAnchor:null,filterOpened:!1,filter:``}}static getDerivedStateFromProps(t,n){let r=e.calculateHostUpdates(t.hosts,t.repository),i=e.calculateAdapterUpdates(t.installed,t.repository);return r!==n.hostsUpdate||i!==n.adaptersUpdate?{hostsUpdate:r,adaptersUpdate:i}:null}static calculateHostUpdates(e,t){if(e&&t){var n;let r=((n=t[`js-controller`])==null?void 0:n.version)||``,i=0;return e.forEach(e=>{H.updateAvailable(e.common.installedVersion,r,`js-controller on ${e._id}`)&&i++}),i}return 0}static calculateAdapterUpdates(e,t){return H.countAdapterUpdates(e,t)}async isDeviceManagerVisible(){let e=await this.props.instancesWorker.getObjects()||{};return!!Object.values(e).find(e=>{var t;return e==null||(t=e.common)==null||(t=t.supportedMessages)==null?void 0:t.deviceManager})}componentDidMount(){this.props.instancesWorker.registerHandler(this.instanceChangedHandler,!0),this.props.socket.registerConnectionHandler(this.connectionHandler),this.getTabs(),window.addEventListener(xc,this.pinsChangedHandler),window.addEventListener(`storage`,this.pinsChangedHandler),this.onNotificationsHandler().then(()=>{this.props.hostsWorker.registerNotificationHandler(this.onNotificationsHandler),this.logsHandlerRegistered||(this.logsHandlerRegistered=!0,this.props.logsWorker.registerErrorCountHandler(this.onErrorsUpdates),this.props.logsWorker.registerWarningCountHandler(this.onWarningsUpdates))})}componentWillUnmount(){this.unmounted=!0,this.tabsRetryTimer&&=(clearTimeout(this.tabsRetryTimer),null),this.instanceChangesTimer&&=(clearTimeout(this.instanceChangesTimer),null),this.props.socket.unregisterConnectionHandler(this.connectionHandler),this.props.instancesWorker.unregisterHandler(this.instanceChangedHandler),this.props.hostsWorker.unregisterNotificationHandler(this.onNotificationsHandler),window.removeEventListener(xc,this.pinsChangedHandler),window.removeEventListener(`storage`,this.pinsChangedHandler),this.logsHandlerRegistered&&(this.logsHandlerRegistered=!1,this.props.logsWorker.unregisterErrorCountHandler(this.onErrorsUpdates),this.props.logsWorker.unregisterWarningCountHandler(this.onWarningsUpdates))}componentDidUpdate(){!this.isSwipeable()&&this.props.state!==J.opened&&this.props.editMenuList&&setTimeout(()=>this.props.setEditMenuList(!1)),this.state.filterOpened&&!this.isSwipeable()&&this.props.state!==J.opened&&this.closeFilter()}getTabsLayoutStateId(){return`${this.props.adminInstance}.info.uiTabsVisible`}static parseTabsLayout(e){try{let t=typeof e==`string`?JSON.parse(e):e;if(!Array.isArray(t))return null;let n=new Set;return t.filter(e=>e&&typeof e==`object`&&typeof e.name==`string`).map(e=>({name:String(e.name),visible:e.visible!==!1,...typeof e.color==`string`?{color:e.color}:{}})).filter(e=>!n.has(e.name)&&(n.add(e.name),!0))}catch{return null}}async getTabs(t,n){let r=++this.tabsRun;this.tabsRetryTimer&&=(clearTimeout(this.tabsRetryTimer),null);try{let i=await this.props.socket.getCompactInstances(t||n),a=[],o=new Set([`backitup`,`backup`,`nexowatt-backup`,`eos-backup`]);i&&Object.keys(i).forEach(e=>{let t=i[e],n=e.replace(/^system\.adapter\./,``).replace(/\.\d+$/,``).toLowerCase();if(o.has(n)&&t.enabled!==!0||!(t!=null&&t.adminTab))return;let r=`tab-${e.replace(`system.adapter.`,``).replace(/\.\d+$/,``)}`,s=t.adminTab.singleton,c;if(!s){let t=e.match(/\.(\d+)$/);t&&(c=parseInt(t[1],10),r+=`-${c}`)}let l=a.find(e=>e.name===r);if(l){var u;(u=l.adminTabInstances)==null||u.push(e.replace(`system.adapter.`,``));return}let d,f;t.adminTab.name?typeof t.adminTab.name==`object`?(f=t.adminTab.name.en||t.name,d=t.adminTab.name&&t.adminTab.name[this.props.lang]?t.adminTab.name[this.props.lang]:t.adminTab.name.en?this.props.t(t.adminTab.name.en):this.props.t(t.name)):(f=t.adminTab.name,d=this.props.t(t.adminTab.name)):(f=t.name,d=this.props.t(t.name));let p;p=Bc[r]?{name:r,...Bc[r]}:{name:r,order:t.adminTab.order===void 0?200:t.adminTab.order,icon:t.adminTab.icon,supportsLoadingMessage:t.adminTab.supportsLoadingMessage},p.icon?typeof p.icon!=`object`&&!p.icon.startsWith(`data:image`)&&!p.icon.includes(`/`)&&(p.icon=`adapter/${t.name}/${p.icon}`):p.icon=`adapter/${t.name}/${t.icon}`,p.title=Rc(r,d||t.name),p.icon=zc(r)||p.icon,p.englishTitle=f,s||c&&(p.title+=` ${c}`,p.englishTitle+=` ${c}`),p.adminTabInstances=[e.replace(`system.adapter.`,``)],a.push(p)});let s=await this.props.instancesWorker.getObjects(n,!0);if(!s)throw Error(`instance objects not available`);let c=Cc(),l=c.map(e=>{var t;return{instanceId:e,common:(t=s[`system.adapter.${e}`])==null?void 0:t.common}}).filter(e=>{var t;return!!((t=e.common)!=null&&(t=t.supportedMessages)!=null&&t.deviceManager)});l.length!==c.length&&wc(l.map(e=>e.instanceId));let u=[`tab-overview`,`tab-intro`,`tab-adapters`,`tab-instances`,`tab-logs`,`tab-files`,`tab-objects`,`tab-hosts`,`tab-users`];await this.isDeviceManagerVisible()&&u.push(`tab-devicemanager`);let d=Object.keys(Bc).filter(e=>u.includes(e)).map(e=>{let t={name:e,...Bc[e]};return t.englishTitle=Nc(e.replace(`tab-`,``).replace(`-0`,``).replace(/-(\d+)$/,` $1`)),t.title=Rc(e,A.t(t.englishTitle)),t.icon=zc(e)||t.icon,t.visible=!0,t});d=d.concat(a),l.forEach(({instanceId:e,common:t},n)=>{var r;let i=e.replace(/\.\d+$/,``),o=(r=e.match(/\.(\d+)$/))==null?void 0:r[1],s=t.titleLang||t.title||t.name||i,c=typeof s==`object`?s[this.props.lang]||s.en||i:this.props.t(s),u=typeof s==`object`?s.en||i:s;o&&(o!==`0`||l.some(t=>t.instanceId!==e&&t.instanceId.startsWith(`${i}.`)))&&(c+=` ${o}`,u+=` ${o}`),a.some(t=>{var n;return(n=t.adminTabInstances)==null?void 0:n.includes(e)})&&(c+=` (${this.props.t(`Devicemanager`)})`,u+=` (Config manager)`);let f;t.icon&&(f=t.icon.startsWith(`data:image`)||t.icon.includes(`/`)?t.icon:`adapter/${t.name}/${t.icon}`),d.push({name:`shortcut-devicemanager-${e}`,order:121+n,icon:f,title:c,englishTitle:u,visible:!0,configManagerInstance:e})}),d=d.filter(e=>!!e&&e.name!==`tab-enums`),d.forEach(e=>e.visible=!0),d.sort((e,t)=>e.order&&t.order?e.order-t.order:e.order?-1:t.order||e.name>t.name?1:e.name<t.name?-1:0);let f=null;try{let t=await this.props.socket.getState(this.getTabsLayoutStateId()),n=e.parseTabsLayout(t==null?void 0:t.val);if(!n){let t=await this.props.socket.getCompactSystemConfig(this.systemConfigFailed);n=e.parseTabsLayout(t.common.tabsVisible)||[]}this.systemConfigFailed=!1,d=e.applySavedTabs(d,n)}catch(e){this.systemConfigFailed=!0,f=e}if(r!==this.tabsRun||this.unmounted)return;this.setState({tabs:d},()=>this.props.provideTabsInfo(this.state.tabs)),f?this.scheduleNextAttempt(f,`Cannot read the saved order of the menu`):this.tabsFailures=0}catch(e){if(r!==this.tabsRun||this.unmounted)return;this.scheduleNextAttempt(e,`Cannot get instances`)}}static applySavedTabs(e,t){e.forEach(e=>{let n=t.find(t=>t.name===e.name);n&&(e.visible=n.visible,e.color=n.color)});let n={};t.forEach((e,t)=>n[e.name]=t);let r=e.filter(e=>n[e.name]!==void 0).sort((e,t)=>n[e.name]-n[t.name]);if(!r.length)return e;let i=new Map,a=null;return e.forEach(e=>{n[e.name]===void 0?i.set(a,[...i.get(a)||[],e]):a=e}),[...i.get(null)||[],...r.flatMap(e=>[e,...i.get(e)||[]])]}scheduleNextAttempt(e,t){if(kc(e)){this.tabsFailures=0,window.alert(`${t}: ${e}`);return}let n=Oc(this.tabsFailures);this.tabsFailures++,this.props.socket.isConnected()?(console.warn(`${t}: ${e}. Next attempt in ${n/1e3} s`),this.tabsRetryTimer=setTimeout(()=>{this.tabsRetryTimer=null,this.getTabs(!0,!0)},n)):console.warn(`${t}: ${e}. Next attempt after the reconnect`)}renderSystemNavigation(){let e=this.props.eosAccessRole;if(![`admin`,`service`,`installer`,`enduser`].includes(e))return null;let t=[`admin`,`service`].includes(e);return M(F,{className:`eos-system-navigation`,children:[T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/`),text:`EOS Dashboard`,icon:T(Wr,{})}),[`admin`,`service`,`installer`].includes(e)?T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/installer/`),text:`EOS Installer`,icon:T(Sr,{})}):null,e===`admin`?M(Me,{children:[T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/modules/devices/`),text:`Devices`,icon:T(Sr,{})}),T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/modules/eebus/`),text:`EEBus`,icon:T(Er,{})}),T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/modules/backup/`),text:`Sicherung`,icon:T(U,{})}),T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/security/tls/`),text:`Zertifikate`,icon:T(Tr,{})}),T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/migration/`),text:`Bestandsübernahme`,icon:T(Nr,{})})]}):null,t?M(Me,{children:[T(tc,{name:`admin.appBar.systemSettings`,config:this.props.adminGuiConfig,children:T(uc,{theme:this.props.theme,compact:!1,tabName:`tab-system`,onClick:this.props.onSystemSettings,text:this.props.t(`System`),icon:T(Oe,{})})}),this.props.expertModeControl]}):null]})}renderFooter(){let e=!this.isSwipeable()&&this.props.state!==J.opened,t=this.props.user;return T(F,{className:`eos-drawer-account`,sx:Pc.footer,children:this.props.isSecure?M(Me,{children:[T(uc,{theme:this.props.theme,compact:e,onClick:e=>this.setState({userMenuAnchor:e==null?void 0:e.currentTarget}),text:(t==null?void 0:t.name)||this.props.t(`Logout`),secondaryText:t==null?void 0:t.group,color:t==null?void 0:t.color,icon:T(F,{sx:Pc.userAvatar,children:t!=null&&t.icon?T(nt,{src:t.icon,style:{width:22,height:22,borderRadius:`50%`}}):T(Gt,{sx:{fontSize:15}})})}),T(Qe,{anchorEl:this.state.userMenuAnchor,open:!!this.state.userMenuAnchor,onClose:()=>this.setState({userMenuAnchor:null}),anchorOrigin:{vertical:`center`,horizontal:`right`},transformOrigin:{vertical:`center`,horizontal:`left`},children:M(Lt,{onClick:()=>{this.setState({userMenuAnchor:null}),this.props.onLogout()},children:[T(Nt,{children:T(yt,{fontSize:`small`})}),T(Yt,{children:this.props.t(`ra_Logout`)})]})})]}):null})}renderEditButton(){var e;return((e=this.props.adminGuiConfig.admin)==null||(e=e.menu)==null?void 0:e.editable)===!1||this.props.state!==J.opened?null:T(F,{sx:Pc.editButton,style:{opacity:+!!this.isSwipeable()},ref:this.refEditButton,children:T(_c,{size:`small`,editMenuList:this.props.editMenuList,onClick:()=>this.props.setEditMenuList(!this.props.editMenuList)})})}static matchesFilter(e,t){var n,r;return!!((n=e.title)!=null&&n.toLowerCase().includes(t))||!!((r=e.englishTitle)!=null&&r.toLowerCase().includes(t))||e.name.replace(`tab-`,``).toLowerCase().includes(t)}countVisibleTabs(){var e;let t=(e=this.props.adminGuiConfig.admin)==null?void 0:e.menu;return this.state.tabs.filter(e=>e.visible&&(t==null?void 0:t[e.name])!==!1).length}renderFilter(){return T(I,{variant:`standard`,autoFocus:!0,sx:Pc.filterField,value:this.state.filter,placeholder:this.props.t(`Filter`),onChange:e=>this.setState({filter:e.target.value}),onKeyUp:t=>{if(t.key===`Escape`)this.closeFilter();else if(t.key===`Enter`){let t=this.state.filter.trim().toLowerCase(),n=this.state.tabs.find(n=>n.visible&&t&&e.matchesFilter(n,t));n&&(this.closeFilter(),this.props.handleNavigation(n.name))}},slotProps:{input:{endAdornment:T(k,{tabIndex:-1,size:`small`,title:this.props.t(`ra_Close`),onClick:this.closeFilter,children:T(O,{fontSize:`small`})})}}})}getHeader(){let e=!this.isSwipeable()&&this.props.state!==J.opened;return T(F,{component:`div`,"data-eos-drawer-header":`1`,sx:Pe.getStyle(this.props.theme,Pc.header,this.props.state===J.opened&&this.props.isSecure&&Pc.headerLogout,!this.isSwipeable()&&this.props.state!==J.opened&&Pc.headerCompact),children:this.state.filterOpened?this.renderFilter():M(Me,{children:[this.renderLogo(),!e&&this.countVisibleTabs()>Ac?T(Rt,{title:this.props.t(`Filter menu`),slotProps:{popper:{sx:{pointerEvents:`none`}}},children:T(k,{size:`small`,sx:Pc.filterButton,onClick:()=>this.setState({filterOpened:!0}),children:T(Ve,{fontSize:`small`})})}):null,T(k,{size:`large`,onClick:()=>{this.isSwipeable()||this.props.state===J.compact?this.props.onStateChange(J.closed):this.props.onStateChange(J.compact)},children:T(yr,{})})]})})}renderLogo(){let{state:e,handleNavigation:t}=this.props;return M(`div`,{style:{...Pc.avatarBlock,...Pc.avatarNotVisible,...e===0?Pc.avatarVisible:{display:`none`}},children:[T(`a`,{href:`#tab-intro`,onClick:e=>{e.preventDefault(),t(`tab-intro`)},style:{color:`inherit`,textDecoration:`none`},children:this.props.adminGuiConfig.icon?T(`div`,{style:{height:50,width:102,lineHeight:`50px`},children:T(`img`,{src:this.props.adminGuiConfig.icon,alt:`NexoWatt EOS`,style:{maxWidth:`100%`,maxHeight:`100%`,verticalAlign:`middle`}})}):T(_t,{onClick:()=>t(`tab-intro`),style:Pc.logoSize,alt:`NexoWatt EOS`,src:`img/eos/eos-logo.svg`})}),!this.props.adminGuiConfig.icon&&this.props.versionAdmin&&M(L,{sx:Pc.styleVersion,children:[`v`,this.props.versionAdmin]})]})}isSwipeable(){return this.props.width===`xs`||this.props.width===`sm`}static tabIcon(e){var t;return(t=Bc[e.name])!=null&&t.icon?Bc[e.name].icon:!e.icon&&e.configManagerInstance?T(Sr,{}):T(nt,{style:Pc.icon,src:e.icon})}getNavigationItems(){let{tabs:t,logErrors:n,logWarnings:r}=this.state,{currentTab:i,state:a,handleNavigation:o}=this.props,s={};this.props.hosts.forEach(e=>s[e._id]=e);let c=this.state.filter.trim().toLowerCase();return t.map((l,u)=>{var d,f,p;if(!this.props.editMenuList&&!l.visible||c&&!e.matchesFilter(l,c))return null;let m=(d=this.props.adminGuiConfig.admin)==null?void 0:d.menu;if(m&&m[l.name]===!1)return null;let h=l.configManagerInstance?i===`tab-devicemanager`&&this.props.currentTabId===l.configManagerInstance:i===l.name&&(l.name!==`tab-devicemanager`||!t.some(e=>e.configManagerInstance===this.props.currentTabId));return T(oc,{canDrag:this.props.editMenuList&&!c,name:l.name,iconJSX:e.tabIcon(l),_id:l.name,selected:h,tab:l,compact:!this.isSwipeable()&&a!==J.opened,badgeContent:n||r||0,badgeColor:n?`error`:r?`warn`:``,tabs:t,setEndDrag:()=>this.tabsEditSystemConfig(),setTabs:e=>this.setState({tabs:e}),children:T(uc,{tabName:l.name,editMenuList:this.props.editMenuList,visible:l.visible,color:l.color,editListFunc:(e,t)=>this.tabsEditSystemConfig(u,e,t??void 0),compact:!this.isSwipeable()&&a!==J.opened,onClick:e=>{if(this.state.filterOpened&&this.closeFilter(),l.configManagerInstance){if(e!=null&&e.ctrlKey||e!=null&&e.shiftKey){var t;(t=window.open(`${window.location.pathname}#tab-devicemanager/tab/${l.configManagerInstance}`,l.name))==null||t.focus()}else o(`tab-devicemanager`,`tab`,l.configManagerInstance)}else e!=null&&e.ctrlKey||e!=null&&e.shiftKey?H.getHref(this.props.instancesWorker,l.name,this.props.hostname,s,this.props.adminInstance,this.props.themeType).then(e=>{if(e.href){var t;console.log(e.href),(t=window.open(lr(e.href),l.name))==null||t.focus()}else o(l.name)}):o(l.name)},icon:e.tabIcon(l),text:l.title||``,selected:h,badgeContent:this.badge(l).content,badgeColor:this.badge(l).color,badgeAdditionalContent:(f=this.badge(l))==null?void 0:f.additionalContent,badgeAdditionalColor:(p=this.badge(l))==null?void 0:p.additionalColor,theme:this.props.theme},l.name)},l.name)})}render(){return this.isSwipeable()?M(Fe,{sx:Pe.getStyle(this.props.theme,Pc.root,{"&.MuiSwipeableDrawer-paper":Pc.paper}),anchor:`left`,open:this.props.state!==J.closed,onClose:()=>this.props.onStateChange(J.closed),onOpen:()=>this.props.onStateChange(J.opened),children:[T(hc,{theme:this.props.theme}),this.getHeader(),this.renderSystemNavigation(),M(xe,{style:Pc.list,children:[this.getNavigationItems(),this.renderEditButton()]}),this.renderFooter()]}):M(se,{sx:Pe.getStyle(this.props.theme,Pc.root,this.props.state===J.opened?this.props.editMenuList?Pc.rootEditWidth:Pc.rootFullWidth:Pc.rootCompactWidth,{"& .MuiDrawer-paper":Pc.paper}),variant:`persistent`,anchor:`left`,open:this.props.state!==J.closed,onMouseEnter:()=>this.refEditButton.current&&(this.refEditButton.current.style.opacity=`1`),onMouseLeave:()=>this.refEditButton.current&&(this.refEditButton.current.style.opacity=`0`),children:[T(hc,{theme:this.props.theme}),this.getHeader(),this.renderSystemNavigation(),M(xe,{style:Pc.list,children:[this.getNavigationItems(),this.renderEditButton()]}),this.renderFooter()]})}};Vc.contextType=ti;var Hc=w()(Vc),Uc=187,Wc={root:{left:0,top:0,width:`100%`,height:`100%`,position:`fixed`,background:`rgba(0, 0, 0, .3)`,zIndex:2e4},connecting:{left:`40%`,top:`40%`,width:`20%`,height:`20%`,position:`absolute`},spinner:{animation:`admin-connecting-rotator 1.4s linear infinite`},path:{strokeDasharray:187,strokeDashoffset:0,transformOrigin:`center`,animation:`admin-connecting-dash 1.4s ease-in-out infinite, $colors 5.6s ease-in-out infinite`},text:{position:`absolute`,top:`calc(60% + 16px)`,left:16,right:16,textAlign:`center`},textBox:{display:`inline-block`,padding:`8px 16px`,borderRadius:4,background:`rgba(0, 0, 0, .7)`,color:`#fff`,fontSize:16}};function Gc(e){return M(`div`,{style:Wc.root,children:[T(`style`,{children:`
22
+ }`;var g=Z(function(){return nt(o,m+`return `+f).apply(n,s)});if(g.source=f,au(g))throw g;return g}function Zd(e){return Ru(e).toLowerCase()}function Qd(e){return Ru(e).toUpperCase()}function $d(e,t,r){if(e=Ru(e),e&&(r||t===n))return Ln(e);if(!e||!(t=Sa(t)))return e;var i=ar(e),a=ar(t);return Pa(i,Vn(i,a),Hn(i,a)+1).join(``)}function ef(e,t,r){if(e=Ru(e),e&&(r||t===n))return e.slice(0,or(e)+1);if(!e||!(t=Sa(t)))return e;var i=ar(e);return Pa(i,0,Hn(i,ar(t))+1).join(``)}function tf(e,t,r){if(e=Ru(e),e&&(r||t===n))return e.replace(Le,``);if(!e||!(t=Sa(t)))return e;var i=ar(e);return Pa(i,Vn(i,ar(t))).join(``)}function nf(e,t){var r=30,i=`...`;if(uu(t)){var a=`separator`in t?t.separator:a;r=`length`in t?X(t.length):r,i=`omission`in t?Sa(t.omission):i}e=Ru(e);var o=e.length;if(Jn(e)){var s=ar(e);o=s.length}if(r>=o)return e;var c=r-ir(i);if(c<1)return i;var l=s?Pa(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),xu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=at(a.source,Ru(Ke.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(Sa(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function rf(e){return e=Ru(e),e&&j.test(e)?e.replace(ke,sr):e}var af=no(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),of=to(`toUpperCase`);function sf(e,t,r){return e=Ru(e),t=r?n:t,t===n?Yn(e)?ur(e):Cn(e):e.match(t)||[]}var Z=K(function(e,t){try{return ln(e,n,t)}catch(e){return au(e)?e:new tt(e)}}),cf=Do(function(e,t){return V(t,function(t){t=ys(t),ai(e,t,yl(e[t],e))}),e});function lf(e){var t=e==null?0:e.length,n=q();return e=t?gn(e,function(e){if(typeof e[1]!=`function`)throw new st(r);return[n(e[0]),e[1]]}):[],K(function(n){for(var r=-1;++r<t;){var i=e[r];if(ln(i[0],this,n))return ln(i[1],this,n)}})}function Q(e){return li(ci(e,1))}function uf(e){return function(){return e}}function df(e,t){return e==null||e!==e?t:e}var ff=oo(),pf=oo(!0);function mf(e){return e}function hf(e){return Gi(typeof e==`function`?e:ci(e,1))}function gf(e){return Xi(ci(e,1))}function _f(e,t){return Zi(e,ci(t,1))}var vf=K(function(e,t){return function(n){return Ni(n,e,t)}}),yf=K(function(e,t){return function(n){return Ni(e,n,t)}});function bf(e,t,n){var r=sd(t),i=Ci(t,r);n==null&&(!uu(t)||!i.length&&r.length)&&(n=t,t=e,e=this,i=Ci(t,sd(t)));var a=!(uu(n)&&`chain`in n)||!!n.chain,o=su(e);return V(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ka(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,_n([this.value()],arguments))})}),e}function xf(){return Zt._===this&&(Zt._=F),this}function Sf(){}function Cf(e){return e=X(e),K(function(t){return ea(t,e)})}var wf=uo(gn),Tf=uo(fn),Ef=uo(bn);function Df(e){return Xo(e)?An(ys(e)):ia(e)}function Of(e){return function(t){return e==null?n:wi(e,t)}}var kf=mo(),Af=mo(!0);function jf(){return[]}function Mf(){return!1}function Nf(){return{}}function Pf(){return``}function Ff(){return!0}function If(e,t){if(e=X(e),e<1||e>g)return[];var n=y,r=Ut(e,y);t=q(t),e-=y;for(var i=Fn(r,t);++n<e;)t(n);return i}function Lf(e){return Y(e)?gn(e,ys):Tu(e)?[e]:Ka(vs(Ru(e)))}function Rf(e){var t=++pt;return Ru(e)+t}var zf=lo(function(e,t){return e+t},0),Bf=_o(`ceil`),Vf=lo(function(e,t){return e/t},1),Hf=_o(`floor`);function Uf(e){return e&&e.length?hi(e,mf,Di):n}function Wf(e,t){return e&&e.length?hi(e,q(t,2),Di):n}function Gf(e){return kn(e,mf)}function Kf(e,t){return kn(e,q(t,2))}function qf(e){return e&&e.length?hi(e,mf,Ji):n}function Jf(e,t){return e&&e.length?hi(e,q(t,2),Ji):n}var Yf=lo(function(e,t){return e*t},1),Xf=_o(`round`),Zf=lo(function(e,t){return e-t},0);function Qf(e){return e&&e.length?Pn(e,mf):0}function $f(e,t){return e&&e.length?Pn(e,q(t,2)):0}return U.after=gl,U.ary=_l,U.assign=zu,U.assignIn=Bu,U.assignInWith=Vu,U.assignWith=Hu,U.at=Uu,U.before=vl,U.bind=yl,U.bindAll=cf,U.bindKey=bl,U.castArray=zl,U.chain=Nc,U.chunk=Cs,U.compact=ws,U.concat=Ts,U.cond=lf,U.conforms=Q,U.constant=uf,U.countBy=Uc,U.create=Wu,U.curry=xl,U.curryRight=Sl,U.debounce=Cl,U.defaults=Gu,U.defaultsDeep=Ku,U.defer=wl,U.delay=Tl,U.difference=Es,U.differenceBy=Ds,U.differenceWith=Os,U.drop=ks,U.dropRight=As,U.dropRightWhile=js,U.dropWhile=Ms,U.fill=Ns,U.filter=Gc,U.flatMap=Jc,U.flatMapDeep=Yc,U.flatMapDepth=Xc,U.flatten=Is,U.flattenDeep=Ls,U.flattenDepth=Rs,U.flip=El,U.flow=ff,U.flowRight=pf,U.fromPairs=zs,U.functions=$u,U.functionsIn=ed,U.groupBy=$c,U.initial=Hs,U.intersection=Us,U.intersectionBy=Ws,U.intersectionWith=Gs,U.invert=id,U.invertBy=ad,U.invokeMap=tl,U.iteratee=hf,U.keyBy=nl,U.keys=sd,U.keysIn=cd,U.map=rl,U.mapKeys=ld,U.mapValues=ud,U.matches=gf,U.matchesProperty=_f,U.memoize=Dl,U.merge=dd,U.mergeWith=fd,U.method=vf,U.methodOf=yf,U.mixin=bf,U.negate=Ol,U.nthArg=Cf,U.omit=pd,U.omitBy=md,U.once=kl,U.orderBy=il,U.over=wf,U.overArgs=Al,U.overEvery=Tf,U.overSome=Ef,U.partial=jl,U.partialRight=Ml,U.partition=al,U.pick=hd,U.pickBy=gd,U.property=Df,U.propertyOf=Of,U.pull=Xs,U.pullAll=Zs,U.pullAllBy=Qs,U.pullAllWith=$s,U.pullAt=ec,U.range=kf,U.rangeRight=Af,U.rearg=Nl,U.reject=cl,U.remove=tc,U.rest=Pl,U.reverse=nc,U.sampleSize=ul,U.set=vd,U.setWith=yd,U.shuffle=dl,U.slice=rc,U.sortBy=ml,U.sortedUniq=uc,U.sortedUniqBy=dc,U.split=qd,U.spread=Fl,U.tail=fc,U.take=pc,U.takeRight=mc,U.takeRightWhile=hc,U.takeWhile=gc,U.tap=Pc,U.throttle=Il,U.thru=J,U.toArray=Mu,U.toPairs=bd,U.toPairsIn=xd,U.toPath=Lf,U.toPlainObject=Iu,U.transform=Sd,U.unary=Ll,U.union=_c,U.unionBy=vc,U.unionWith=yc,U.uniq=bc,U.uniqBy=xc,U.uniqWith=Sc,U.unset=Cd,U.unzip=Cc,U.unzipWith=wc,U.update=wd,U.updateWith=Td,U.values=Ed,U.valuesIn=Dd,U.without=Tc,U.words=sf,U.wrap=Rl,U.xor=Ec,U.xorBy=Dc,U.xorWith=Oc,U.zip=kc,U.zipObject=Ac,U.zipObjectDeep=jc,U.zipWith=Mc,U.entries=bd,U.entriesIn=xd,U.extend=Bu,U.extendWith=Vu,bf(U,U),U.add=zf,U.attempt=Z,U.camelCase=jd,U.capitalize=Md,U.ceil=Bf,U.clamp=Od,U.clone=Bl,U.cloneDeep=Hl,U.cloneDeepWith=Ul,U.cloneWith=Vl,U.conformsTo=Wl,U.deburr=Nd,U.defaultTo=df,U.divide=Vf,U.endsWith=Pd,U.eq=Gl,U.escape=Fd,U.escapeRegExp=Id,U.every=Wc,U.find=Kc,U.findIndex=Ps,U.findKey=qu,U.findLast=qc,U.findLastIndex=Fs,U.findLastKey=Ju,U.floor=Hf,U.forEach=Zc,U.forEachRight=Qc,U.forIn=Yu,U.forInRight=Xu,U.forOwn=Zu,U.forOwnRight=Qu,U.get=td,U.gt=Kl,U.gte=ql,U.has=nd,U.hasIn=rd,U.head=Bs,U.identity=mf,U.includes=el,U.indexOf=Vs,U.inRange=kd,U.invoke=od,U.isArguments=Jl,U.isArray=Y,U.isArrayBuffer=Yl,U.isArrayLike=Xl,U.isArrayLikeObject=Zl,U.isBoolean=Ql,U.isBuffer=$l,U.isDate=eu,U.isElement=tu,U.isEmpty=nu,U.isEqual=ru,U.isEqualWith=iu,U.isError=au,U.isFinite=ou,U.isFunction=su,U.isInteger=cu,U.isLength=lu,U.isMap=fu,U.isMatch=pu,U.isMatchWith=mu,U.isNaN=hu,U.isNative=gu,U.isNil=vu,U.isNull=_u,U.isNumber=yu,U.isObject=uu,U.isObjectLike=du,U.isPlainObject=bu,U.isRegExp=xu,U.isSafeInteger=Su,U.isSet=Cu,U.isString=wu,U.isSymbol=Tu,U.isTypedArray=Eu,U.isUndefined=Du,U.isWeakMap=Ou,U.isWeakSet=ku,U.join=Ks,U.kebabCase=Ld,U.last=qs,U.lastIndexOf=Js,U.lowerCase=Rd,U.lowerFirst=zd,U.lt=Au,U.lte=ju,U.max=Uf,U.maxBy=Wf,U.mean=Gf,U.meanBy=Kf,U.min=qf,U.minBy=Jf,U.stubArray=jf,U.stubFalse=Mf,U.stubObject=Nf,U.stubString=Pf,U.stubTrue=Ff,U.multiply=Yf,U.nth=Ys,U.noConflict=xf,U.noop=Sf,U.now=hl,U.pad=Bd,U.padEnd=Vd,U.padStart=Hd,U.parseInt=Ud,U.random=Ad,U.reduce=ol,U.reduceRight=sl,U.repeat=Wd,U.replace=Gd,U.result=_d,U.round=Xf,U.runInContext=e,U.sample=ll,U.size=fl,U.snakeCase=Kd,U.some=pl,U.sortedIndex=ic,U.sortedIndexBy=ac,U.sortedIndexOf=oc,U.sortedLastIndex=sc,U.sortedLastIndexBy=cc,U.sortedLastIndexOf=lc,U.startCase=Jd,U.startsWith=Yd,U.subtract=Zf,U.sum=Qf,U.sumBy=$f,U.template=Xd,U.times=If,U.toFinite=Nu,U.toInteger=X,U.toLength=Pu,U.toLower=Zd,U.toNumber=Fu,U.toSafeInteger=Lu,U.toString=Ru,U.toUpper=Qd,U.trim=$d,U.trimEnd=ef,U.trimStart=tf,U.truncate=nf,U.unescape=rf,U.uniqueId=Rf,U.upperCase=af,U.upperFirst=of,U.each=Zc,U.eachRight=Qc,U.first=Bs,bf(U,function(){var e={};return xi(U,function(t,n){P.call(U.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),U.VERSION=`4.18.1`,V([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){U[e].placeholder=U}),V([`drop`,`take`],function(e,t){W.prototype[e]=function(r){r=r===n?1:zt(X(r),0);var i=this.__filtered__&&!t?new W(this):this.clone();return i.__filtered__?i.__takeCount__=Ut(r,i.__takeCount__):i.__views__.push({size:Ut(r,y),type:e+(i.__dir__<0?`Right`:``)}),i},W.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),V([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;W.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:q(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),V([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);W.prototype[e]=function(){return this[n](1).value()[0]}}),V([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);W.prototype[e]=function(){return this.__filtered__?new W(this):this[n](1)}}),W.prototype.compact=function(){return this.filter(mf)},W.prototype.find=function(e){return this.filter(e).head()},W.prototype.findLast=function(e){return this.reverse().find(e)},W.prototype.invokeMap=K(function(e,t){return typeof e==`function`?new W(this):this.map(function(n){return Ni(n,e,t)})}),W.prototype.reject=function(e){return this.filter(Ol(q(e)))},W.prototype.slice=function(e,t){e=X(e);var r=this;return r.__filtered__&&(e>0||t<0)?new W(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=X(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},W.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},W.prototype.toArray=function(){return this.take(y)},xi(W.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=U[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(U.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof W,l=s[0],u=c||Y(t),d=function(e){var t=a.apply(U,_n([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new W(this);var g=e.apply(t,s);return g.__actions__.push({func:J,args:[d],thisArg:n}),new vr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),V([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=ct[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);U.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Y(i)?i:[],e)}return this[n](function(n){return t.apply(Y(n)?n:[],e)})}}),xi(W.prototype,function(e,t){var n=U[t];if(n){var r=n.name+``;P.call(jn,r)||(jn[r]=[]),jn[r].push({name:t,func:n})}}),jn[so(n,s).name]=[{name:`wrapper`,func:n}],W.prototype.clone=yr,W.prototype.reverse=br,W.prototype.value=xr,U.prototype.at=Fc,U.prototype.chain=Ic,U.prototype.commit=Lc,U.prototype.next=Rc,U.prototype.plant=Bc,U.prototype.reverse=Vc,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=Hc,U.prototype.first=U.prototype.head,Dt&&(U.prototype[Dt]=zc),U})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(Zt._=H,define(function(){return H})):$t?(($t.exports=H)._=H,Qt._=H):Zt._=H}).call(n)}))(),1).default.throttle((e,t)=>e(t),200),rc=(e,t)=>{let n=t.find(t=>t.name===e);return{card:n,index:n?t.indexOf(n):-1}},ic=(e,t,n,r,i,a)=>{let{card:o,index:s}=rc(e,n);if(s!==t&&!(s<t&&i<a)&&!(s>t&&i>a)&&o&&s!==t){let e=JSON.parse(JSON.stringify(n));e.splice(s,1),e.splice(t,0,o),nc(r,e)}},ac={cursor:`move`},oc=({canDrag:e,setEndDrag:t,iconJSX:n,selected:r,compact:i,badgeContent:a,badgeColor:o,tab:s,tabs:c,setTabs:l,_id:u,children:d,name:f})=>{let p=P(null),[{handlerId:m},h]=Uo({accept:`box`,collect(e){return{handlerId:e.getHandlerId()}},hover({_id:e},t){if(!p.current)return;let{index:n}=rc(u,c),r=p.current.getBoundingClientRect(),i=(r.bottom-r.top)/2,a=t.getClientOffset();a&&ic(e,n,c,l,a.y-r.top,i)}}),[{isDragging:g},_,v]=Po({type:`box`,item:{_id:s.name,...s,iconJSX:n,selected:r,compact:i,badgeContent:a,badgeColor:o},canDrag:()=>e,end:()=>t(),collect:e=>({isDragging:e.isDragging()})});Xt(()=>{v(vs(),{captureDraggingState:!0})},[]);let y=+!g;return Xt(()=>{_(h(p))},[_,h]),T(`div`,{ref:p,style:{...ac,opacity:y},"data-handler-id":m,children:T(`a`,{type:`box`,"data-handler-id":m,onClick:e=>e.preventDefault(),href:`/#${f}`,style:{...ac,opacity:y,color:`inherit`,textDecoration:`none`},children:d})})},sc=24,cc=e=>e.palette.mode===`light`?`white`:H.invertColor(e.palette.primary.main,!0),lc={button:{mx:`4px`,borderRadius:`8px`,minHeight:40},selected:e=>({background:`linear-gradient(90deg, ${e.palette.primary.light} 0%, ${e.palette.primary.main} 100%)`,color:cc(e),"&:hover":{background:`linear-gradient(90deg, ${e.palette.primary.light} 0%, ${e.palette.primary.dark} 100%)`,color:cc(e)}}),selectedIcon:e=>({color:cc(e)}),compact:{px:`4px`},row:{display:`flex`,alignItems:`center`,flexWrap:`nowrap`,gap:`8px`,width:`100%`,minHeight:40},rowCompact:{justifyContent:`center`},badgeCompact:{"& .MuiBadge-badge:not(.MuiBadge-invisible)":{transform:`translate(-35%, -50%)`}},icon:{display:`flex`,alignItems:`center`,justifyContent:`center`},text:{m:0,"& .MuiTypography-root":{display:`flex`,flexDirection:`column`,alignItems:`flex-start`,justifyContent:`center`,lineHeight:1.2}},secondary:{lineHeight:1.1,opacity:.75},warn:{backgroundColor:`#ffc107`},nativeItem:{border:`1px solid rgba(96, 189, 255, 0.16)`,background:`linear-gradient(180deg, rgba(13, 34, 53, 0.86), rgba(6, 19, 32, 0.92))`,boxShadow:`inset 0 1px 0 rgba(255,255,255,0.04)`,transition:`transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease`,"&:hover":{transform:`translateY(-1px)`,borderColor:`rgba(0, 255, 136, 0.28)`,background:`linear-gradient(180deg, rgba(17, 44, 66, 0.94), rgba(7, 22, 36, 0.96))`,boxShadow:`0 10px 24px rgba(0,0,0,.22), inset 0 0 0 1px rgba(0,255,136,.06)`}},nativeSelected:{borderColor:`rgba(0, 255, 136, 0.48)`,background:`linear-gradient(135deg, rgba(0,255,136,.17), rgba(0,212,255,.10))`,boxShadow:`0 0 22px rgba(0,255,136,.09), inset 0 0 0 1px rgba(0,255,136,.11)`}},uc=e=>{let{tabName:t,badgeColor:n,badgeContent:r,compact:i,icon:a,onClick:o,selected:s,text:c,editMenuList:l,visible:u,color:d,editListFunc:f,badgeAdditionalContent:p,badgeAdditionalColor:m,style:h}=e,g=c?c.replace(`&gt;`,`>`):``;return(g===`Text->Kommandos`||g===`Text->Commands`)&&(g=`Text→Cmd`),M(`div`,{style:{display:`flex`,alignItems:`center`,...h||{}},children:[!!l&&T(Cr,{}),!!l&&T(ke,{checked:u,onClick:()=>f==null?void 0:f(!0)}),!!l&&T(Ct,{value:d,noInputField:!0,onChange:e=>f==null?void 0:f(!1,e||null)}),T(tn,{className:`nexowatt-native-nav-item`,"data-eos-tab":t,"aria-current":s?`page`:void 0,selected:s,sx:Pe.getStyle(e.theme,lc.button,lc.nativeItem,s&&lc.nativeSelected,s&&lc.selected,i&&lc.compact),onClick:o,children:T(Rt,{title:i?g:``,slotProps:{popper:{sx:{pointerEvents:`none`}}},children:M(F,{sx:Pe.getStyle(e.theme,lc.row,i&&lc.rowCompact),children:[T(Nt,{className:`nexowatt-native-nav-icon-slot`,style:{minWidth:sc,width:sc,color:d},sx:Pe.getStyle(e.theme,lc.icon,s&&lc.selectedIcon),children:T(ot,{badgeContent:r||0,color:(n===`warn`?`default`:n)||`primary`,anchorOrigin:i?{vertical:`top`,horizontal:`left`}:void 0,sx:Pe.getStyle(e.theme,n===`warn`&&{"& .MuiBadge-badge":lc.warn},i&&lc.badgeCompact),children:a})}),!i&&M(Yt,{style:{color:d},sx:lc.text,children:[T(ot,{badgeContent:p||0,color:(m===`warn`?`default`:m)||`primary`,sx:m===`warn`?{"& .MuiBadge-badge":lc.warn}:void 0,children:g}),e.secondaryText?T(L,{component:`div`,variant:`caption`,color:`text.secondary`,sx:lc.secondary,children:e.secondaryText}):null]})]})})})]})},dc={position:`fixed`,pointerEvents:`none`,zIndex:100,left:0,top:0,width:`100%`,height:`100%`};function fc(e,t){return[Math.round(e/32)*32,Math.round(t/32)*32]}function pc(e,t,n){if(!e||!t)return{display:`none`};let{x:r,y:i}=t;n&&(r-=e.x,i-=e.y,[r,i]=fc(r,i),r+=e.x,i+=e.y);let a=`translate(${r}px, ${i}px)`;return{transform:a,WebkitTransform:a}}var mc={root:e=>({background:e.palette.background.default})};function hc(e){let{itemType:t,isDragging:n,item:r,initialOffset:i,currentOffset:a}=Fo(e=>({item:e.getItem(),itemType:e.getItemType(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging()}));function o(){return t===`box`?T(F,{component:`div`,sx:mc.root,style:{width:179},children:T(uc,{visible:r.visible,editListFunc:()=>void 0,compact:r.compact,icon:r.iconJSX,text:r.title,selected:r.selected,badgeContent:r.badgeContent,badgeColor:r.badgeColor,theme:e.theme},r.name)}):null}return n?T(`div`,{style:dc,children:T(`div`,{style:pc(i,a),children:o()})}):null}var gc,_c=({editMenuList:e,onClick:t,size:n})=>{let[r,i]=Ut.useState(null),[a,o]=Ut.useState(!1),[s,c]=Ut.useState(void 0);return M(Me,{children:[T(k,{size:n||`large`,style:e?{color:`red`}:void 0,onClick:n=>{t(),e?(o(!1),clearTimeout(gc)):(i(n.currentTarget),o(e=>s!==`right`||!e),c(`right`),gc=setTimeout(()=>o(!1),3e3))},title:A.t(`show/hide item`),children:T($e,{})}),T(lt,{style:{zIndex:2222},open:a,anchorEl:r,placement:s,transition:!0,children:({TransitionProps:e})=>T(pn,{...e,timeout:350,children:T(Ot,{children:T(L,{style:{padding:16},children:A.t(`You can drag and drop list items for reorder`)})})})})]})},vc={cockpit:M(Me,{children:[T(`rect`,{x:`3.5`,y:`3.5`,width:`7`,height:`7`,rx:`1.7`}),T(`rect`,{x:`13.5`,y:`3.5`,width:`7`,height:`7`,rx:`1.7`}),T(`rect`,{x:`3.5`,y:`13.5`,width:`7`,height:`7`,rx:`1.7`}),T(`rect`,{x:`13.5`,y:`13.5`,width:`7`,height:`7`,rx:`1.7`})]}),modules:M(Me,{children:[T(`path`,{d:`M12 3.7 18.7 7.5v8.9L12 20.3 5.3 16.4V7.5L12 3.7Z`}),T(`path`,{d:`M12 3.7V12m6.7-4.5L12 12 5.3 7.5`})]}),services:M(Me,{children:[T(`rect`,{x:`4`,y:`4.5`,width:`16`,height:`5`,rx:`2`}),T(`rect`,{x:`4`,y:`14.5`,width:`16`,height:`5`,rx:`2`}),T(`path`,{d:`M8 7h.01M8 17h.01M12 7h5M12 17h5`})]}),datapoints:M(Me,{children:[T(`circle`,{cx:`6`,cy:`12`,r:`2.3`}),T(`circle`,{cx:`18`,cy:`6`,r:`2.3`}),T(`circle`,{cx:`18`,cy:`18`,r:`2.3`}),T(`path`,{d:`M8.2 11 15.7 7M8.2 13l7.5 4`})]}),structure:M(Me,{children:[T(`rect`,{x:`3.5`,y:`4`,width:`7`,height:`4.5`,rx:`1.4`}),T(`rect`,{x:`13.5`,y:`4`,width:`7`,height:`4.5`,rx:`1.4`}),T(`rect`,{x:`8.5`,y:`15.5`,width:`7`,height:`4.5`,rx:`1.4`}),T(`path`,{d:`M7 8.5v3h10v-3M12 11.5v4`})]}),logs:M(Me,{children:[T(`path`,{d:`M5 6.5h14M5 12h8M5 17.5h14`}),T(`path`,{d:`m15.2 10.3 2.1 2.2 3.2-4`})]}),rights:M(Me,{children:[T(`path`,{d:`M12 3.5 18.5 6v5.1c0 4.2-2.7 7.3-6.5 9.4-3.8-2.1-6.5-5.2-6.5-9.4V6L12 3.5Z`}),T(`path`,{d:`M9.5 11.8 11 13.3l3.7-3.7`})]}),scripts:T(`path`,{d:`M8.8 7 4.5 12l4.3 5M15.2 7l4.3 5-4.3 5M13.2 5 10.8 19`}),hosts:M(Me,{children:[T(`rect`,{x:`4`,y:`4.5`,width:`16`,height:`10`,rx:`2.2`}),T(`path`,{d:`M8 19.5h8M12 14.5v5M7.5 8.5h.01M11 8.5h6`})]}),files:T(`path`,{d:`M4 7.5A2.5 2.5 0 0 1 6.5 5H10l2 2h5.5A2.5 2.5 0 0 1 20 9.5v7a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 4 16.5v-9Z`}),devices:M(Me,{children:[T(`rect`,{x:`4`,y:`5`,width:`16`,height:`14`,rx:`2.4`}),T(`path`,{d:`M8 9h8M8 13h3M15.5 13h.01`})]}),backup:M(Me,{children:[T(`path`,{d:`M6 6h10a3 3 0 0 1 3 3v7.5a2.5 2.5 0 0 1-2.5 2.5h-9A2.5 2.5 0 0 1 5 16.5V8a2 2 0 0 1 2-2Z`}),T(`path`,{d:`M9 6V4.5h4V6M9 12.5h6M12 9.5v6`})]}),eos:M(Me,{children:[T(`circle`,{cx:`12`,cy:`12`,r:`3.6`}),T(`path`,{d:`M12 3.5v4.2M12 16.3v4.2M3.5 12h4.2M16.3 12h4.2M5.9 5.9l3 3M15.1 15.1l3 3M5.9 18.1l3-3M15.1 8.9l3-3`})]}),default:M(Me,{children:[T(`circle`,{cx:`12`,cy:`12`,r:`8`}),T(`path`,{d:`M12 8v4l2.7 2.7`})]})};function yc({name:e}){return T(`span`,{className:`nexowatt-native-nav-icon eos-native-nav-icon eos-native-nav-icon-source`,"aria-hidden":`true`,children:T(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.9`,strokeLinecap:`round`,strokeLinejoin:`round`,children:vc[e]||vc.default})})}var bc=`App.configManagerPinnedInstances`,xc=`config-manager-pins-changed`;function Sc(){return window._localStorage||window.localStorage}function Cc(){try{let e=JSON.parse(Sc().getItem(`App.configManagerPinnedInstances`)||`[]`);return Array.isArray(e)?e.filter((t,n)=>typeof t==`string`&&e.indexOf(t)===n):[]}catch{return[]}}function wc(e){Sc().setItem(bc,JSON.stringify([...new Set(e)])),window.dispatchEvent(new CustomEvent(xc))}function Tc(e){return Cc().includes(e)}function Ec(e,t){let n=Cc().filter(t=>t!==e);t&&n.push(e),wc(n)}var Dc=[2e3,5e3,1e4];function Oc(e){return Dc[Math.min(Math.max(e,0),Dc.length-1)]}function kc(e){return(e instanceof Error?e.message:String(e)).includes(`permissionError`)}x();var Ac=10,jc=300,Mc=2e3;function Nc(e){return e.substring(0,1).toUpperCase()+e.substring(1).toLowerCase()}var Pc={root:e=>({flexShrink:0,transition:e.transitions.create(`width`,{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),display:`flex`,flexDirection:`column`}),rootFullWidth:{width:180},rootEditWidth:{width:250},rootCompactWidth:{width:50},paper:{width:`inherit`,overflowX:`hidden`,overflowY:`hidden`},header:e=>({display:`flex`,flexDirection:`row`,alignItems:`center`,padding:`0 8px 0 8px`,...e.mixins.toolbar,justifyContent:`flex-end`,position:`sticky`,top:0,zIndex:2,background:`inherit`}),headerCompact:{padding:0},filterButton:{flexShrink:0,p:`4px`},filterField:{flexGrow:1,"& .MuiInputBase-input":{fontSize:14}},headerLogout:{justifyContent:`space-between`},list:{paddingTop:0,flex:`1 1 auto`,overflowY:`auto`,overflowX:`hidden`},footer:e=>({flexShrink:0,borderTop:`1px solid ${e.palette.divider}`}),editButton:{position:`sticky`,bottom:0,right:0,width:`fit-content`,marginLeft:`auto`,transition:`opacity 0.5s`},userAvatar:e=>({width:24,height:24,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,overflow:`hidden`,backgroundColor:Ke(e.palette.primary.main,.2),border:`1px solid ${Ke(e.palette.primary.main,.5)}`,color:e.palette.primary.main}),footerButtons:{display:`flex`,flexWrap:`wrap`,justifyContent:`center`,alignItems:`center`,p:`2px`},icon:{width:20,height:20},logoSize:{width:50,height:50},brandFrame:{minHeight:52,minWidth:138,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:`4px 10px`,borderRadius:14,border:`1px solid rgba(0,255,136,0.22)`,background:`linear-gradient(180deg, rgba(4,14,22,0.96), rgba(3,10,18,0.98))`,boxShadow:`inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 18px rgba(0,0,0,0.24)`},brandImageWrap:{height:50,width:138,lineHeight:`50px`,display:`flex`,alignItems:`center`},avatarBlock:{width:`100%`,display:`flex`,marginTop:5,marginBottom:5,minWidth:0,overflow:`hidden`},avatarNotVisible:{opacity:0,transition:`opacity 0.3s`},avatarVisible:{opacity:1},styleVersion:e=>({fontSize:10,whiteSpace:`nowrap`,color:e.palette.mode===`dark`?`#ffffff5e`:`#0000005e`,alignSelf:`center`,ml:`5px`})},J={opened:0,closed:1,compact:2},Fc={"tab-overview":`Systemstatus`,"tab-intro":`Übersicht`,"tab-adapters":`Module`,"tab-instances":`Dienste`,"tab-objects":`Datenpunkte`,"tab-enums":`Struktur`,"tab-logs":`Systemlogs`,"tab-users":`Zugänge & Rechte`,"tab-javascript":`Skripte`,"tab-hosts":`System-Hosts`,"tab-files":`Dateien`,"tab-devicemanager":`Geräte`},Ic={"tab-intro":`cockpit`,"tab-adapters":`modules`,"tab-instances":`services`,"tab-objects":`datapoints`,"tab-enums":`structure`,"tab-logs":`logs`,"tab-users":`rights`,"tab-javascript":`scripts`,"tab-hosts":`hosts`,"tab-files":`files`,"tab-devicemanager":`devices`};function Lc(e){let t=e.toLowerCase();return/^tab-(?:nexowatt-ui|nexowatt-eos|eos-cockpit)(?:-|$)/.test(t)?{title:`NexoWatt EOS`,icon:`eos`}:/^tab-backitup(?:-|$)/.test(t)?{title:`System-Notfallsicherung`,icon:`backup`}:/^tab-(?:nexowatt-backup|eos-backup|nexowatt-sicherung)(?:-|$)/.test(t)?{title:`NexoWatt Sicherung`,icon:`backup`}:/^tab-backup(?:-|$)/.test(t)?{title:`Sicherung`,icon:`backup`}:/^tab-(?:javascript)(?:-|$)/.test(t)?{title:`Skripte`,icon:`scripts`}:/^tab-(?:files)(?:-|$)/.test(t)?{title:`Dateien`,icon:`files`}:{}}function Rc(e,t){return Fc[e]||Lc(e).title||t}function zc(e){let t=Ic[e]||Lc(e).icon;return t?T(yc,{name:t}):void 0}var Bc={"tab-overview":{order:2,icon:T(Wr,{}),host:!0},"tab-intro":{order:1,icon:zc(`tab-intro`)},"tab-info":{order:5,host:!0},"tab-adapters":{order:10,icon:zc(`tab-adapters`),host:!0},"tab-instances":{order:15,icon:zc(`tab-instances`),host:!0},"tab-objects":{order:20,icon:zc(`tab-objects`)},"tab-enums":{order:25,icon:zc(`tab-enums`)},"tab-devices":{order:27,host:!0},"tab-logs":{order:30,icon:zc(`tab-logs`),host:!0},"tab-scenes":{order:35},"tab-events":{order:40},"tab-users":{order:45,icon:zc(`tab-users`)},"tab-javascript":{order:50,icon:zc(`tab-javascript`)},"tab-text2command-0":{order:55,instance:0},"tab-text2command-1":{order:56,instance:1},"tab-text2command-2":{order:57,instance:2},"tab-node-red-0":{order:60,instance:0},"tab-node-red-1":{order:61,instance:1},"tab-node-red-2":{order:62,instance:2},"tab-fullcalendar-0":{order:65,instance:0},"tab-fullcalendar-1":{order:66,instance:1},"tab-fullcalendar-2":{order:67,instance:2},"tab-echarts":{order:70,instance:2},"tab-eventlist-0":{order:80,instance:0},"tab-eventlist-1":{order:81,instance:1},"tab-eventlist-2":{order:82,instance:2},"tab-hosts":{order:100,icon:zc(`tab-hosts`)},"tab-files":{order:110,icon:zc(`tab-files`)},"tab-devicemanager":{order:120,icon:zc(`tab-devicemanager`)}},Vc=class e extends $t{static isTransientConnectionError(e){return/notconnected|not connected|connectionerror|close_abnormal|closed_no_status|websocket|timeout|networkerror/i.test(e instanceof Error?e.message:typeof e==`string`?e:``)}constructor(t){super(t),j(this,`logsHandlerRegistered`,!1),j(this,`refEditButton`,Ut.createRef()),j(this,`tabsRun`,0),j(this,`tabsFailures`,0),j(this,`tabsRetryTimer`,null),j(this,`instanceChangesTimer`,null),j(this,`instanceChangesSince`,0),j(this,`systemConfigFailed`,!1),j(this,`unmounted`,!1),j(this,`instanceChangedHandler`,()=>{let e=Date.now();this.instanceChangesTimer?clearTimeout(this.instanceChangesTimer):this.instanceChangesSince=e;let t=Math.min(jc,Math.max(0,this.instanceChangesSince+Mc-e));this.instanceChangesTimer=setTimeout(()=>{this.instanceChangesTimer=null,this.getTabs(!0)},t)}),j(this,`connectionHandler`,e=>{e&&this.tabsFailures&&(this.tabsFailures=0,this.tabsRetryTimer&&=(clearTimeout(this.tabsRetryTimer),null),this.getTabs(!0,!0))}),j(this,`onNotificationsHandler`,()=>this.props.hostsWorker.getNotifications().then(e=>this.calculateWarning(e)).catch(t=>{e.isTransientConnectionError(t)||window.alert(`Cannot get notifications: ${t}`)})),j(this,`onErrorsUpdates`,e=>{this.setState({logErrors:e})}),j(this,`onWarningsUpdates`,e=>{this.setState({logWarnings:e})}),j(this,`calculateWarning`,e=>{if(!e)return;let t={warning:0,other:0};Object.keys(e).forEach(n=>{var r;if((r=e[n])!=null&&(r=r.result)!=null&&r.system&&Object.keys(e[n].result.system.categories).length){let r=e[n].result.system.categories;for(let e of Object.values(r))Object.keys(e.instances).forEach(()=>e.severity===`alert`?t.warning++:t.other++)}}),this.setState({hostNotifications:t})}),j(this,`pinsChangedHandler`,e=>{e instanceof StorageEvent&&e.key&&e.key!==`App.configManagerPinnedInstances`||this.getTabs()}),j(this,`closeFilter`,()=>this.setState({filterOpened:!1,filter:``})),j(this,`tabsEditSystemConfig`,async(e,t,n)=>{let r=JSON.parse(JSON.stringify(this.state.tabs));e!==void 0&&t&&(r[e].visible=!r[e].visible),e!==void 0&&n!==void 0&&(n===null?delete r[e].color:r[e].color=n);let i=JSON.stringify(r.map(({name:e,visible:t,color:n})=>({name:e,visible:t,color:n})));e!==void 0&&(t||n!==void 0)&&this.setState({tabs:r});try{await this.props.socket.setState(this.getTabsLayoutStateId(),i)}catch(r){window.alert(`Cannot save navigation layout: ${r}`),e!==void 0&&(t||n!==void 0)&&this.getTabs(!0)}}),j(this,`badge`,e=>{switch(e.name){case`tab-logs`:{let{logErrors:e,logWarnings:t}=this.state;return{content:e||t||0,color:e?`error`:`warn`}}case`tab-adapters`:return{content:this.state.adaptersUpdate||0,color:`primary`};case`tab-hosts`:return{content:this.state.hostsUpdate||0,color:`primary`,additionalContent:this.state.hostNotifications.warning+this.state.hostNotifications.other,additionalColor:this.state.hostNotifications.warning>0?`error`:`secondary`};default:return{content:0,color:``,additionalContent:0,additionalColor:``}}}),this.state={tabs:[],logErrors:0,logWarnings:0,hostNotifications:{other:0,warning:0},hostsUpdate:e.calculateHostUpdates(this.props.hosts,this.props.repository),adaptersUpdate:e.calculateAdapterUpdates(this.props.installed,this.props.repository),deviceManagerVisible:!1,userMenuAnchor:null,filterOpened:!1,filter:``}}static getDerivedStateFromProps(t,n){let r=e.calculateHostUpdates(t.hosts,t.repository),i=e.calculateAdapterUpdates(t.installed,t.repository);return r!==n.hostsUpdate||i!==n.adaptersUpdate?{hostsUpdate:r,adaptersUpdate:i}:null}static calculateHostUpdates(e,t){if(e&&t){var n;let r=((n=t[`js-controller`])==null?void 0:n.version)||``,i=0;return e.forEach(e=>{H.updateAvailable(e.common.installedVersion,r,`js-controller on ${e._id}`)&&i++}),i}return 0}static calculateAdapterUpdates(e,t){return H.countAdapterUpdates(e,t)}async isDeviceManagerVisible(){let e=await this.props.instancesWorker.getObjects()||{};return!!Object.values(e).find(e=>{var t;return e==null||(t=e.common)==null||(t=t.supportedMessages)==null?void 0:t.deviceManager})}componentDidMount(){this.props.instancesWorker.registerHandler(this.instanceChangedHandler,!0),this.props.socket.registerConnectionHandler(this.connectionHandler),this.getTabs(),window.addEventListener(xc,this.pinsChangedHandler),window.addEventListener(`storage`,this.pinsChangedHandler),this.onNotificationsHandler().then(()=>{this.props.hostsWorker.registerNotificationHandler(this.onNotificationsHandler),this.logsHandlerRegistered||(this.logsHandlerRegistered=!0,this.props.logsWorker.registerErrorCountHandler(this.onErrorsUpdates),this.props.logsWorker.registerWarningCountHandler(this.onWarningsUpdates))})}componentWillUnmount(){this.unmounted=!0,this.tabsRetryTimer&&=(clearTimeout(this.tabsRetryTimer),null),this.instanceChangesTimer&&=(clearTimeout(this.instanceChangesTimer),null),this.props.socket.unregisterConnectionHandler(this.connectionHandler),this.props.instancesWorker.unregisterHandler(this.instanceChangedHandler),this.props.hostsWorker.unregisterNotificationHandler(this.onNotificationsHandler),window.removeEventListener(xc,this.pinsChangedHandler),window.removeEventListener(`storage`,this.pinsChangedHandler),this.logsHandlerRegistered&&(this.logsHandlerRegistered=!1,this.props.logsWorker.unregisterErrorCountHandler(this.onErrorsUpdates),this.props.logsWorker.unregisterWarningCountHandler(this.onWarningsUpdates))}componentDidUpdate(){!this.isSwipeable()&&this.props.state!==J.opened&&this.props.editMenuList&&setTimeout(()=>this.props.setEditMenuList(!1)),this.state.filterOpened&&!this.isSwipeable()&&this.props.state!==J.opened&&this.closeFilter()}getTabsLayoutStateId(){return`${this.props.adminInstance}.info.uiTabsVisible`}static parseTabsLayout(e){try{let t=typeof e==`string`?JSON.parse(e):e;if(!Array.isArray(t))return null;let n=new Set;return t.filter(e=>e&&typeof e==`object`&&typeof e.name==`string`).map(e=>({name:String(e.name),visible:e.visible!==!1,...typeof e.color==`string`?{color:e.color}:{}})).filter(e=>!n.has(e.name)&&(n.add(e.name),!0))}catch{return null}}async getTabs(t,n){let r=++this.tabsRun;this.tabsRetryTimer&&=(clearTimeout(this.tabsRetryTimer),null);try{let i=await this.props.socket.getCompactInstances(t||n),a=[],o=new Set([`backitup`,`backup`,`nexowatt-backup`,`eos-backup`]);i&&Object.keys(i).forEach(e=>{let t=i[e],n=e.replace(/^system\.adapter\./,``).replace(/\.\d+$/,``).toLowerCase();if(o.has(n)&&t.enabled!==!0||!(t!=null&&t.adminTab))return;let r=`tab-${e.replace(`system.adapter.`,``).replace(/\.\d+$/,``)}`,s=t.adminTab.singleton,c;if(!s){let t=e.match(/\.(\d+)$/);t&&(c=parseInt(t[1],10),r+=`-${c}`)}let l=a.find(e=>e.name===r);if(l){var u;(u=l.adminTabInstances)==null||u.push(e.replace(`system.adapter.`,``));return}let d,f;t.adminTab.name?typeof t.adminTab.name==`object`?(f=t.adminTab.name.en||t.name,d=t.adminTab.name&&t.adminTab.name[this.props.lang]?t.adminTab.name[this.props.lang]:t.adminTab.name.en?this.props.t(t.adminTab.name.en):this.props.t(t.name)):(f=t.adminTab.name,d=this.props.t(t.adminTab.name)):(f=t.name,d=this.props.t(t.name));let p;p=Bc[r]?{name:r,...Bc[r]}:{name:r,order:t.adminTab.order===void 0?200:t.adminTab.order,icon:t.adminTab.icon,supportsLoadingMessage:t.adminTab.supportsLoadingMessage},p.icon?typeof p.icon!=`object`&&!p.icon.startsWith(`data:image`)&&!p.icon.includes(`/`)&&(p.icon=`adapter/${t.name}/${p.icon}`):p.icon=`adapter/${t.name}/${t.icon}`,p.title=Rc(r,d||t.name),p.icon=zc(r)||p.icon,p.englishTitle=f,s||c&&(p.title+=` ${c}`,p.englishTitle+=` ${c}`),p.adminTabInstances=[e.replace(`system.adapter.`,``)],a.push(p)});let s=await this.props.instancesWorker.getObjects(n,!0);if(!s)throw Error(`instance objects not available`);let c=Cc(),l=c.map(e=>{var t;return{instanceId:e,common:(t=s[`system.adapter.${e}`])==null?void 0:t.common}}).filter(e=>{var t;return!!((t=e.common)!=null&&(t=t.supportedMessages)!=null&&t.deviceManager)});l.length!==c.length&&wc(l.map(e=>e.instanceId));let u=[`tab-overview`,`tab-intro`,`tab-adapters`,`tab-instances`,`tab-logs`,`tab-files`,`tab-objects`,`tab-hosts`,`tab-users`];await this.isDeviceManagerVisible()&&u.push(`tab-devicemanager`);let d=Object.keys(Bc).filter(e=>u.includes(e)).map(e=>{let t={name:e,...Bc[e]};return t.englishTitle=Nc(e.replace(`tab-`,``).replace(`-0`,``).replace(/-(\d+)$/,` $1`)),t.title=Rc(e,A.t(t.englishTitle)),t.icon=zc(e)||t.icon,t.visible=!0,t});d=d.concat(a),l.forEach(({instanceId:e,common:t},n)=>{var r;let i=e.replace(/\.\d+$/,``),o=(r=e.match(/\.(\d+)$/))==null?void 0:r[1],s=t.titleLang||t.title||t.name||i,c=typeof s==`object`?s[this.props.lang]||s.en||i:this.props.t(s),u=typeof s==`object`?s.en||i:s;o&&(o!==`0`||l.some(t=>t.instanceId!==e&&t.instanceId.startsWith(`${i}.`)))&&(c+=` ${o}`,u+=` ${o}`),a.some(t=>{var n;return(n=t.adminTabInstances)==null?void 0:n.includes(e)})&&(c+=` (${this.props.t(`Devicemanager`)})`,u+=` (Config manager)`);let f;t.icon&&(f=t.icon.startsWith(`data:image`)||t.icon.includes(`/`)?t.icon:`adapter/${t.name}/${t.icon}`),d.push({name:`shortcut-devicemanager-${e}`,order:121+n,icon:f,title:c,englishTitle:u,visible:!0,configManagerInstance:e})}),d=d.filter(e=>!!e&&e.name!==`tab-enums`),d.forEach(e=>e.visible=!0),d.sort((e,t)=>e.order&&t.order?e.order-t.order:e.order?-1:t.order||e.name>t.name?1:e.name<t.name?-1:0);let f=null;try{let t=await this.props.socket.getState(this.getTabsLayoutStateId()),n=e.parseTabsLayout(t==null?void 0:t.val);if(!n){let t=await this.props.socket.getCompactSystemConfig(this.systemConfigFailed);n=e.parseTabsLayout(t.common.tabsVisible)||[]}this.systemConfigFailed=!1,d=e.applySavedTabs(d,n)}catch(e){this.systemConfigFailed=!0,f=e}if(r!==this.tabsRun||this.unmounted)return;this.setState({tabs:d},()=>this.props.provideTabsInfo(this.state.tabs)),f?this.scheduleNextAttempt(f,`Cannot read the saved order of the menu`):this.tabsFailures=0}catch(e){if(r!==this.tabsRun||this.unmounted)return;this.scheduleNextAttempt(e,`Cannot get instances`)}}static applySavedTabs(e,t){e.forEach(e=>{let n=t.find(t=>t.name===e.name);n&&(e.visible=n.visible,e.color=n.color)});let n={};t.forEach((e,t)=>n[e.name]=t);let r=e.filter(e=>n[e.name]!==void 0).sort((e,t)=>n[e.name]-n[t.name]);if(!r.length)return e;let i=new Map,a=null;return e.forEach(e=>{n[e.name]===void 0?i.set(a,[...i.get(a)||[],e]):a=e}),[...i.get(null)||[],...r.flatMap(e=>[e,...i.get(e)||[]])]}scheduleNextAttempt(e,t){if(kc(e)){this.tabsFailures=0,window.alert(`${t}: ${e}`);return}let n=Oc(this.tabsFailures);this.tabsFailures++,this.props.socket.isConnected()?(console.warn(`${t}: ${e}. Next attempt in ${n/1e3} s`),this.tabsRetryTimer=setTimeout(()=>{this.tabsRetryTimer=null,this.getTabs(!0,!0)},n)):console.warn(`${t}: ${e}. Next attempt after the reconnect`)}renderSystemNavigation(){let e=this.props.eosAccessRole;if(![`admin`,`service`,`installer`,`enduser`].includes(e))return null;let t=[`admin`,`service`].includes(e);return M(F,{className:`eos-system-navigation`,children:[T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/`),text:`EOS Dashboard`,icon:T(Wr,{})}),[`admin`,`service`,`installer`].includes(e)?T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/installer/`),text:`EOS Installer`,icon:T(Sr,{})}):null,e===`admin`?M(Me,{children:[T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/modules/devices/`),text:`Devices`,icon:T(Sr,{})}),T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/modules/eebus/`),text:`EEBus`,icon:T(Er,{})}),T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/modules/ocpp/`),text:`OCPP-Ladestationen`,icon:T(Sr,{})}),T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/modules/backup/`),text:`Sicherung`,icon:T(U,{})}),T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/security/tls/`),text:`Zertifikate`,icon:T(Tr,{})}),T(uc,{theme:this.props.theme,compact:!1,onClick:()=>window.location.assign(`/migration/`),text:`Bestandsübernahme`,icon:T(Nr,{})})]}):null,t?M(Me,{children:[T(tc,{name:`admin.appBar.systemSettings`,config:this.props.adminGuiConfig,children:T(uc,{theme:this.props.theme,compact:!1,tabName:`tab-system`,onClick:this.props.onSystemSettings,text:this.props.t(`System`),icon:T(Oe,{})})}),this.props.expertModeControl]}):null]})}renderFooter(){let e=!this.isSwipeable()&&this.props.state!==J.opened,t=this.props.user;return T(F,{className:`eos-drawer-account`,sx:Pc.footer,children:this.props.isSecure?M(Me,{children:[T(uc,{theme:this.props.theme,compact:e,onClick:e=>this.setState({userMenuAnchor:e==null?void 0:e.currentTarget}),text:(t==null?void 0:t.name)||this.props.t(`Logout`),secondaryText:t==null?void 0:t.group,color:t==null?void 0:t.color,icon:T(F,{sx:Pc.userAvatar,children:t!=null&&t.icon?T(nt,{src:t.icon,style:{width:22,height:22,borderRadius:`50%`}}):T(Gt,{sx:{fontSize:15}})})}),T(Qe,{anchorEl:this.state.userMenuAnchor,open:!!this.state.userMenuAnchor,onClose:()=>this.setState({userMenuAnchor:null}),anchorOrigin:{vertical:`center`,horizontal:`right`},transformOrigin:{vertical:`center`,horizontal:`left`},children:M(Lt,{onClick:()=>{this.setState({userMenuAnchor:null}),this.props.onLogout()},children:[T(Nt,{children:T(yt,{fontSize:`small`})}),T(Yt,{children:this.props.t(`ra_Logout`)})]})})]}):null})}renderEditButton(){var e;return((e=this.props.adminGuiConfig.admin)==null||(e=e.menu)==null?void 0:e.editable)===!1||this.props.state!==J.opened?null:T(F,{sx:Pc.editButton,style:{opacity:+!!this.isSwipeable()},ref:this.refEditButton,children:T(_c,{size:`small`,editMenuList:this.props.editMenuList,onClick:()=>this.props.setEditMenuList(!this.props.editMenuList)})})}static matchesFilter(e,t){var n,r;return!!((n=e.title)!=null&&n.toLowerCase().includes(t))||!!((r=e.englishTitle)!=null&&r.toLowerCase().includes(t))||e.name.replace(`tab-`,``).toLowerCase().includes(t)}countVisibleTabs(){var e;let t=(e=this.props.adminGuiConfig.admin)==null?void 0:e.menu;return this.state.tabs.filter(e=>e.visible&&(t==null?void 0:t[e.name])!==!1).length}renderFilter(){return T(I,{variant:`standard`,autoFocus:!0,sx:Pc.filterField,value:this.state.filter,placeholder:this.props.t(`Filter`),onChange:e=>this.setState({filter:e.target.value}),onKeyUp:t=>{if(t.key===`Escape`)this.closeFilter();else if(t.key===`Enter`){let t=this.state.filter.trim().toLowerCase(),n=this.state.tabs.find(n=>n.visible&&t&&e.matchesFilter(n,t));n&&(this.closeFilter(),this.props.handleNavigation(n.name))}},slotProps:{input:{endAdornment:T(k,{tabIndex:-1,size:`small`,title:this.props.t(`ra_Close`),onClick:this.closeFilter,children:T(O,{fontSize:`small`})})}}})}getHeader(){let e=!this.isSwipeable()&&this.props.state!==J.opened;return T(F,{component:`div`,"data-eos-drawer-header":`1`,sx:Pe.getStyle(this.props.theme,Pc.header,this.props.state===J.opened&&this.props.isSecure&&Pc.headerLogout,!this.isSwipeable()&&this.props.state!==J.opened&&Pc.headerCompact),children:this.state.filterOpened?this.renderFilter():M(Me,{children:[this.renderLogo(),!e&&this.countVisibleTabs()>Ac?T(Rt,{title:this.props.t(`Filter menu`),slotProps:{popper:{sx:{pointerEvents:`none`}}},children:T(k,{size:`small`,sx:Pc.filterButton,onClick:()=>this.setState({filterOpened:!0}),children:T(Ve,{fontSize:`small`})})}):null,T(k,{size:`large`,onClick:()=>{this.isSwipeable()||this.props.state===J.compact?this.props.onStateChange(J.closed):this.props.onStateChange(J.compact)},children:T(yr,{})})]})})}renderLogo(){let{state:e,handleNavigation:t}=this.props;return M(`div`,{style:{...Pc.avatarBlock,...Pc.avatarNotVisible,...e===0?Pc.avatarVisible:{display:`none`}},children:[T(`a`,{href:`#tab-intro`,onClick:e=>{e.preventDefault(),t(`tab-intro`)},style:{color:`inherit`,textDecoration:`none`},children:this.props.adminGuiConfig.icon?T(`div`,{style:{height:50,width:102,lineHeight:`50px`},children:T(`img`,{src:this.props.adminGuiConfig.icon,alt:`NexoWatt EOS`,style:{maxWidth:`100%`,maxHeight:`100%`,verticalAlign:`middle`}})}):T(_t,{onClick:()=>t(`tab-intro`),style:Pc.logoSize,alt:`NexoWatt EOS`,src:`img/eos/eos-logo.svg`})}),!this.props.adminGuiConfig.icon&&this.props.versionAdmin&&M(L,{sx:Pc.styleVersion,children:[`v`,this.props.versionAdmin]})]})}isSwipeable(){return this.props.width===`xs`||this.props.width===`sm`}static tabIcon(e){var t;return(t=Bc[e.name])!=null&&t.icon?Bc[e.name].icon:!e.icon&&e.configManagerInstance?T(Sr,{}):T(nt,{style:Pc.icon,src:e.icon})}getNavigationItems(){let{tabs:t,logErrors:n,logWarnings:r}=this.state,{currentTab:i,state:a,handleNavigation:o}=this.props,s={};this.props.hosts.forEach(e=>s[e._id]=e);let c=this.state.filter.trim().toLowerCase();return t.map((l,u)=>{var d,f,p;if(!this.props.editMenuList&&!l.visible||c&&!e.matchesFilter(l,c))return null;let m=(d=this.props.adminGuiConfig.admin)==null?void 0:d.menu;if(m&&m[l.name]===!1)return null;let h=l.configManagerInstance?i===`tab-devicemanager`&&this.props.currentTabId===l.configManagerInstance:i===l.name&&(l.name!==`tab-devicemanager`||!t.some(e=>e.configManagerInstance===this.props.currentTabId));return T(oc,{canDrag:this.props.editMenuList&&!c,name:l.name,iconJSX:e.tabIcon(l),_id:l.name,selected:h,tab:l,compact:!this.isSwipeable()&&a!==J.opened,badgeContent:n||r||0,badgeColor:n?`error`:r?`warn`:``,tabs:t,setEndDrag:()=>this.tabsEditSystemConfig(),setTabs:e=>this.setState({tabs:e}),children:T(uc,{tabName:l.name,editMenuList:this.props.editMenuList,visible:l.visible,color:l.color,editListFunc:(e,t)=>this.tabsEditSystemConfig(u,e,t??void 0),compact:!this.isSwipeable()&&a!==J.opened,onClick:e=>{if(this.state.filterOpened&&this.closeFilter(),l.configManagerInstance){if(e!=null&&e.ctrlKey||e!=null&&e.shiftKey){var t;(t=window.open(`${window.location.pathname}#tab-devicemanager/tab/${l.configManagerInstance}`,l.name))==null||t.focus()}else o(`tab-devicemanager`,`tab`,l.configManagerInstance)}else e!=null&&e.ctrlKey||e!=null&&e.shiftKey?H.getHref(this.props.instancesWorker,l.name,this.props.hostname,s,this.props.adminInstance,this.props.themeType).then(e=>{if(e.href){var t;console.log(e.href),(t=window.open(lr(e.href),l.name))==null||t.focus()}else o(l.name)}):o(l.name)},icon:e.tabIcon(l),text:l.title||``,selected:h,badgeContent:this.badge(l).content,badgeColor:this.badge(l).color,badgeAdditionalContent:(f=this.badge(l))==null?void 0:f.additionalContent,badgeAdditionalColor:(p=this.badge(l))==null?void 0:p.additionalColor,theme:this.props.theme},l.name)},l.name)})}render(){return this.isSwipeable()?M(Fe,{sx:Pe.getStyle(this.props.theme,Pc.root,{"&.MuiSwipeableDrawer-paper":Pc.paper}),anchor:`left`,open:this.props.state!==J.closed,onClose:()=>this.props.onStateChange(J.closed),onOpen:()=>this.props.onStateChange(J.opened),children:[T(hc,{theme:this.props.theme}),this.getHeader(),this.renderSystemNavigation(),M(xe,{style:Pc.list,children:[this.getNavigationItems(),this.renderEditButton()]}),this.renderFooter()]}):M(se,{sx:Pe.getStyle(this.props.theme,Pc.root,this.props.state===J.opened?this.props.editMenuList?Pc.rootEditWidth:Pc.rootFullWidth:Pc.rootCompactWidth,{"& .MuiDrawer-paper":Pc.paper}),variant:`persistent`,anchor:`left`,open:this.props.state!==J.closed,onMouseEnter:()=>this.refEditButton.current&&(this.refEditButton.current.style.opacity=`1`),onMouseLeave:()=>this.refEditButton.current&&(this.refEditButton.current.style.opacity=`0`),children:[T(hc,{theme:this.props.theme}),this.getHeader(),this.renderSystemNavigation(),M(xe,{style:Pc.list,children:[this.getNavigationItems(),this.renderEditButton()]}),this.renderFooter()]})}};Vc.contextType=ti;var Hc=w()(Vc),Uc=187,Wc={root:{left:0,top:0,width:`100%`,height:`100%`,position:`fixed`,background:`rgba(0, 0, 0, .3)`,zIndex:2e4},connecting:{left:`40%`,top:`40%`,width:`20%`,height:`20%`,position:`absolute`},spinner:{animation:`admin-connecting-rotator 1.4s linear infinite`},path:{strokeDasharray:187,strokeDashoffset:0,transformOrigin:`center`,animation:`admin-connecting-dash 1.4s ease-in-out infinite, $colors 5.6s ease-in-out infinite`},text:{position:`absolute`,top:`calc(60% + 16px)`,left:16,right:16,textAlign:`center`},textBox:{display:`inline-block`,padding:`8px 16px`,borderRadius:4,background:`rgba(0, 0, 0, .7)`,color:`#fff`,fontSize:16}};function Gc(e){return M(`div`,{style:Wc.root,children:[T(`style`,{children:`
23
23
  ' @keyframes admin-connecting-colors {
24
24
  0% {
25
25
  stroke: #4285F4;
@@ -201,7 +201,7 @@ lub „Dalej”, aby użyć urządzeń z poprzedniego procesu wykrywania`,proces
201
201
  举个简单的例子: 如果可用存储空间出现问题,您就会立即收到通知,而不用再纠结自动化系统的某些部分为何不再正常工作。
202
202
 
203
203
  您可以根据消息类别自由配置用于通知的适配器(如 Telegram)。如果您最喜欢的消息适配器崩溃了,您也可以配置一个替代消息适配器来接管。`,"notifications wizard category":`此类别中的适配器允许您收到系统中的事件通知并向您发送个性化消息。`,"npm error":`npm错误`,npm_warning:`使用此对话框,您可以直接从 %s 安装 Beta/最新适配器版本。这些版本可能尚未经过全面测试,因此仅当您需要这些版本的修复或新功能时才安装它们。当开发人员认为版本稳定时,它将在稳定存储库中进行更新。`,number:`数`,object:`设备`,"object permissions":`设备权限`,"object(s)":`对象`,of:`/`,offline:`offline`,ok:`好的`,once:`运行一次`,online:`online`,"only in this browser session":`仅在此浏览器会话中`,"open web page":`打开插件的网页`,"or reboot server, then ioBroker should restart and you can be sure that all old processes were finished.":`或重新启动服务器,然后NexoWatt EOS应该重新启动,并且您可以确保所有旧进程都已完成。`,os:`操作系统`,"other permissions":`其他权限`,"output events":`输出事件`,"parent name":`父节点名字`,password:`密码`,permissionError:`权限错误`,"place here":`将文件放在这里`,planned:`计划`,platform:`平台`,point:`点`,popular:`流行`,press_discover:`按“发现”查找网络中的设备(之前关闭网络防火墙/流量分析系统!)
204
- 或“下一步”使用先前发现过程中的设备`,process:`处理`,processes:`流程`,protocols_group:`协议`,"pushover wizard description":`有了 NexoWatt EOS Pushover 适配器,您就可以自己向安卓和 iOS 设备发送信息,并使用 Pushover API 的各种功能。通过这些功能,您不仅可以发送简单的文本信息,还可以附加图片和其他文件。您还可以通过设置不同的优先级或为不同事件设置特定的声音,根据个人需要定制通知。`,raw:`原始(仅限专家)`,read:`读`,"read only":`只读`,"read operation":`读`,readme:`自述`,reload:`重新加载`,"reload instance":`重新加载程序`,repeat:`重复`,repo_update_hint:`您已配置为运行“beta”存储库的自动升级,请注意,如果 beta 存储库处于活动状态,则此适配器将根据此配置自动提取 beta 更新!`,repository:`repository`,rest:`休息(只读)`,restart:`自动重启`,"restart script":`重启自动化`,restartLoop:`重新启动循环`,role:`角色`,runtime:`运行`,save:`保存`,"saved:":`已保存:`,"scenes wizard description":`使用 NexoWatt EOS 场景适配器,您可以将多个数据点组合到场景中,只需点击一下即可触发复杂的操作。试想一下,创建一个名为 "影院 "的场景,在这个场景中,Harmony Hub 会打开所有必要的设备,调暗灯光,并在屏幕降低时打开阅读灯。您还可以设置群组,根据场景的活动或非活动状态,为每个场景定义两种不同的连接数据点状态。`,schedule:`日程`,schedule_group:`时间表`,script_group:`自动化`,"select member by double click":`双击选择成员`,"sendto operation":`发送操作`,"serial number (UUID) in license is for other device":`许可证中的序列号 (UUID) 用于其他设备`,service_group:`保养`,severity:`严重`,"show (default)":`显示(默认)`,"show ignored":`显示被忽略`,"show suggested":`显示建议`,"show/hide item":`显示/隐藏项目`,"signal-cmb wizard description":`有了 NexoWatt EOS Signal-CMB 适配器,您就可以使用 Signal 信使通过 CallMeBot 服务发送消息。支持文本内容和表情符号,让您的信息栩栩如生。用户可以方便地了解智能家居中发生的事件,即使在旅行中也能始终掌握最新信息。`,silly:`愚蠢`,"sql wizard description":`使用 NexoWatt EOS SQL 适配器,您可以记录数据,以便对其进行长期可视化或历史分析。SQL 适配器将数据写入外部 SQL 数据库,该数据库可在同一主机或不同主机上运行。也支持 SQLite 数据库。与历史适配器相比,SQL 更适合记录大量数据,但需要手动设置。`,stable:`稳定`,"standalone MCP adapter":`独立式 MCP 适配器`,state:`州`,"state permissions":`状态权限`,stepEnd:`步骤 (至当前值)`,stepMiddle:`步骤 (中间)`,stepStart:`步骤 (值至下一个)`,stop_admin:`您正在尝试停止当前的管理实例。您将无法通过浏览器配置NexoWatt EOS。您可以稍后通过CLI命令“ iob start %s”启动admin。你确定吗?`,storage_group:`存储`,string:`串`,subscribe:`订阅`,sunday:`星期日`,switch:`开关`,switch_db_note:`建议不要在此设置中更改数据库的类型,因为不会进行任何数据迁移。最好使用CLI命令“ iob setup custom”,以便将所有数据迁移到新数据库。确定要在此处切换数据库类型吗?`,"telegram wizard description":`有了 NexoWatt EOS Telegram 适配器,您就可以通过 Telegram Messenger 向自己发送信息,这样当系统发生变化时,您就可以随时了解最新情况。除文本信息外,您还可以发送图片和其他文件。您甚至可以发送问题,并直接在 NexoWatt EOS 中处理答案。`,"temporary log level":`临时日志级别`,terminal:`终端`,"third-party_group":`第三方`,"this 2 weeks":`这2个星期`,"this adapter does not allow multiple instances":`此插件不允许多个程序同时运行`,"this day":`这天`,"this month":`这个月`,"this week":`本星期`,"this year":`今年`,time:`时间`,"time-and-date_group":`时间和日期`,timeOffset:`时间偏移`,title:`标题`,"to apply one item":`申请一件`,"to apply with children":`申请项目和儿童`,"to fix these issues and upgrade command run again.":`解决这些问题并再次运行upgrade命令。`,today:`今天`,tooltip_ack:`已确认`,tooltip_copyState:`将状态值复制到剪贴板`,tooltip_customConfig:`设定值`,tooltip_deleteObject:`删除物件`,tooltip_editObject:`编辑物件`,tooltip_editState:`修改状态值`,tooltip_from:`资源`,tooltip_lc:`最后更改时间`,tooltip_quality:`质量`,tooltip_ts:`时间戳记`,tooltip_user:`用户`,tooltip_value:`值`,true:`正常`,ts:`时间戳`,type:`类型`,unit:`单元`,unknown:`未知`,update:`刷新`,"update adapter information":`更新插件信息`,update_info_no_net:`有关更新控制器的信息,请访问以下页面: <a href="https://github.com/NexoWatt EOS/NexoWatt EOS.docs/blob/master/admin/zh-cn/controller-upgrade.md" target="_blank">Update JS-Contoller</a>`,updated:`刷新`,updates:`刷新`,"updating %s to %s...":`更新 %s 到 %s...`,upload:`上传`,"use GitHub for issues":`我们重视您对我们软件的评分和想法。对于错误报告,请使用我们的 GitHub 问题跟踪器,当您留下评论时,请考虑未解决的问题可能会影响您的体验。您的反馈有助于我们改善。感谢您成为我们社区的一部分!`,"user permissions":`用户权限`,users:`用户`,"users permissions":`用户权限`,utility_group:`实用工具`,val:`值`,value:`值`,"value.from":`来自于`,"value.lc":`上次更新`,"value.q":`质量`,"value.ts":`时间戳`,"value.val":`值`,vehicle_group:`车辆`,version:`版本`,"vis-2 wizard description":`NexoWatt EOS Vis 2 适配器是为您的智能家居提供的现代化、功能强大的可视化解决方案。有了这个适配器,您就可以根据自己的意愿,用现代小部件创建自己的可视化系统。无论您是想将仪表盘设计成简约风格还是具有多种功能,都有无限可能。按自己喜欢的方式设计智能家居界面吧!`,vis_group:`NexoWatt EOS.vis`,visualisation_group:`可视化`,"visualization wizard category":`借助此类适配器,您可以构建仪表板以通过 NexoWatt EOS Visu 应用程序或 Web 界面控制您的家庭。`,"visualization-icons_group":`可视化图标`,"visualization-widgets_group":`可视化小部件`,visualization_group:`可视化`,vote:`投票`,vote21:`选票`,votes:`票数`,votes2:`选票`,warn:`警告`,weather:`天气`,"weather wizard category":`通过天气适配器,您可以获得当地天气信息并将其用于可视化和自动化。`,weather_group:`天气`,"weatherunderground wizard description":`有了 NexoWatt EOS Weather Underground 适配器,您就可以在 NexoWatt EOS 中使用天气数据。例如,这意味着下雨时可以提醒您关闭打开的窗户,或者在暴风雨来临时自动收回遮阳篷。这样,您的智能家居就能更好地适应当前的天气条件,确保更加舒适和安全。`,wetty:`Wetty`,"with js-controller":`带有 js 控制器`,"wizard adapter general description":`从您希望直接安装的适配器中进行选择。您可以稍后在 "适配器 "选项卡中安装其他适配器。`,"wizard welcome description":`此向导将引导您完成新 ioBroker 安装的最重要设置。只需几分钟,所有设置以后都可以更改。`,write:`写`,"write operation":`写`,wrongPassword:`用户名或密码无效`,yesterday:`昨天`,"Åland Islands":`奥兰群岛`,"Serial port":`串口`,"TCP port":`TCP 端口`,"UDP port":`UDP 端口`,"USB device":`USB 设备`,Bluetooth:`蓝牙`,GPIO:`GPIO`,"Also registered by: %s":`也被以下实例注册:%s`,Resource:`资源`,Registered:`注册时间`,"The instance runs and holds the resource":`实例正在运行并占用该资源`,"The instance does not run and would take the resource when started":`实例未运行,启动时将占用该资源`,"In use":`使用中`,Reserved:`已预留`,"Used resources":`已占用的资源`,"No instance has registered a resource":`没有实例注册资源`,'Adapter "%s" allows only one instance, and %s exists already':`适配器 "%s" 只允许一个实例,而 %s 已存在`,'Adapter "%s" allows only one instance per host, and %s exists already on host "%s"':`适配器 "%s" 每个主机只允许一个实例,而 %s 已存在于主机 "%s" 上`,"The admin was updated. Please load the page anew.":`管理界面已更新,请重新加载页面。`,"The connection is not ready yet. Please wait a moment and try again.":`连接尚未就绪。请稍等片刻后重试。`},gy=`admin.chunkReloadTs`,_y=2e4;function vy(e){let{message:t,name:n}=typeof e==`object`&&e?e:{message:e};return typeof t==`string`?t.includes(`Failed to fetch dynamically imported module`)||t.includes(`error loading dynamically imported module`)||t.includes(`Importing a module script failed`)||t.includes(`Unable to preload CSS`)||n===`ChunkLoadError`:!1}function yy(){let e=0;try{e=parseInt(window.sessionStorage.getItem(gy)||`0`,10)||0}catch{}if(Date.now()-e<_y)return!1;try{window.sessionStorage.setItem(gy,Date.now().toString())}catch{}return window.location.reload(),!0}function by(e){yy()&&e.preventDefault()}function xy(e){return Ut.lazy(()=>e().catch(e=>{if(vy(e)&&yy())return new Promise(()=>{});throw e}))}x();var Sy=[`tab-overview`,`tab-adapters`,`tab-instances`,`tab-logs`],Cy=[`tab-overview`,`tab-intro`,`tab-adapters`,`tab-instances`,`tab-objects`,`tab-enums`,`tab-logs`,`tab-users`,`tab-hosts`,`tab-files`,`tab-devicemanager`],wy=xy(()=>r(()=>import(`./Overview-DK4R41zR.js`),__vite__mapDeps([36,1,2,3,17,25,26,28,37,38]),import.meta.url)),Ty=xy(()=>r(()=>import(`./Adapters-CVKKhXmI.js`),__vite__mapDeps([39,1,2,3,6,7,16,23,29,37,40,8,26,30,41,10,42,43,44,45]),import.meta.url)),Ey=xy(()=>r(()=>import(`./Instances-DhChziA1.js`),__vite__mapDeps([46,2,1,3,7,11,21,24,26,29,37,40,8,30,43,44,45,47,48,49,50]),import.meta.url)),Dy=xy(()=>r(()=>import(`./Intro-Cyq9gVDC.js`),__vite__mapDeps([51,1,2,3,8,14,15,17,20,24,26,37,50]),import.meta.url)),Oy=xy(()=>r(()=>import(`./Logs-wcramXsg.js`),__vite__mapDeps([52,1,2,3,16,27,37]),import.meta.url)),ky=xy(()=>r(()=>import(`./Files-a6owMTXA.js`),__vite__mapDeps([53,2,1,3,37,44,45]),import.meta.url)),Ay=xy(()=>r(()=>import(`./Objects-DINVHd_e.js`),__vite__mapDeps([54,2,1,3,5,18,23,32,35,34,37,48,45,42,44,38]),import.meta.url)),jy=xy(()=>r(()=>import(`./Users-DvDdSyDY.js`),__vite__mapDeps([55,1,2,3,13,19,30,37,56]),import.meta.url)),My=xy(()=>r(()=>import(`./Enums-CJHVJY7t.js`),__vite__mapDeps([57,2,1,3,9,13,18,20,28,37,56]),import.meta.url)),Ny=xy(()=>r(()=>import(`./CustomTab-B4ywHrnT.js`),__vite__mapDeps([58,2,1,3,37,48]),import.meta.url)),Py=xy(()=>r(()=>import(`./ConfigManager-Bf6nTAkL.js`),__vite__mapDeps([59,1,2,3,22]),import.meta.url)),Fy=xy(()=>r(()=>import(`./Hosts-LtEMeXpV.js`),__vite__mapDeps([60,2,1,3,11,12,14,29,37,41,10,42,43,44,45,49]),import.meta.url)),Iy=xy(()=>r(()=>import(`./EasyMode-A2E3hSMo.js`),__vite__mapDeps([61,1,2,3,47,37,48]),import.meta.url)),Ly={},Ry=()=>String(window.NEXOWATT_EOS_ACCESS_ROLE||`unknown`).toLowerCase(),zy=(e=Ry())=>[`admin`,`service`].includes(e);(window.location.search||``).replace(/^\?/,``).split(`&`).forEach(e=>{let t=e.split(`=`);t[0]&&(Ly[t[0]]=t[1]===void 0||decodeURIComponent(t[1]))});var By={root:{display:`flex`,height:`100%`},appBar:e=>({transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})}),logoWhite:{backgroundColor:`#FFFFFF`},appBarShift:e=>({width:`calc(100% - 180px)`,ml:180/8,transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}),appBarShiftEdit:e=>({width:`calc(100% - 250px)`,ml:250/8,transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}),appBarShiftCompact:e=>({width:`calc(100% - 50px)`,ml:50/8,transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}),menuButton:{marginRight:16},hide:{display:`none`},content:e=>{var t,n,r;return{flexGrow:1,padding:1,paddingTop:0,transition:e.transitions.create(`margin`,{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowY:`auto`,mt:`${(t=e.mixins.toolbar)==null?void 0:t.minHeight}px`,"@media (min-width:0px) and (orientation: landscape)":{mt:(n=e.mixins.toolbar[`@media (min-width:0px) and (orientation: landscape)`])!=null&&n.minHeight?`${e.mixins.toolbar[`@media (min-width:0px) and (orientation: landscape)`].minHeight}px`:void 0},"@media (min-width:600px)":{mt:(r=e.mixins.toolbar[`@media (min-width:600px)`])!=null&&r.minHeight?`${e.mixins.toolbar[`@media (min-width:600px)`].minHeight}px`:void 0}}},contentMargin:{ml:-180/8},contentMarginEdit:{ml:-250/8},contentMarginCompact:{ml:-50/8},contentShift:e=>({transition:e.transitions.create(`margin`,{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),ml:0}),expertIcon:{width:22,height:22},expertIconActive:{},baseSettingsButton:{color:`red`},avatarNotVisible:{opacity:0,marginLeft:5,transition:`opacity 0.3s`,width:`initial`},avatarVisible:{opacity:1},cmd:{animation:`1s linear infinite alternate $myEffect`,opacity:.2},errorCmd:{color:`#a90000`,animation:`0.2s linear infinite alternate myEffect2`},performed:e=>({color:e.palette.mode===`light`?`#3bfd44`:`#388e3c`,animation:`0.2s linear infinite alternate myEffect2`}),wrapperButtons:{display:`flex`,marginRight:`auto`,overflowY:`auto`,alignItems:`center`},flexGrow:{flexGrow:2},floatingButtons:{position:`fixed`,top:4,left:4,zIndex:1200,display:`flex`,gap:.5},contentNoAppBar:{mt:0,"@media (min-width:0px) and (orientation: landscape)":{mt:0},"@media (min-width:600px)":{mt:0}},contentMenuButtonSpace:{pt:`44px`},styleVersion:{fontSize:10},wrapperName:{display:`flex`,flexDirection:`column`,marginRight:10},expertBadge:{mt:`11px`,mr:`11px`},siteName:{lineHeight:`48px`,fontSize:24,marginLeft:10,marginRight:10,display:`inline-block`,verticalAlign:`middle`},tooltip:{pointerEvents:`none`}};function Vy(e){return e.native||={localStorage:{},sessionStorage:{}},e.native.localStorage||(e.native={localStorage:e.native,sessionStorage:{}}),e.native.sessionStorage||={},e}var Hy=1e4,Uy=5e3,Wy=5e3,Gy=1e3;function Ky(e,t){let n;return Promise.race([e,new Promise((e,r)=>{n=setTimeout(()=>r(Error(`${t} got no answer`)),Hy)})]).finally(()=>clearTimeout(n))}function qy(e,t){for(let n of[`localStorage`,`sessionStorage`])for(let[r,i]of Object.entries(t[n]))i===null?delete e[n][r]:e[n][r]=i}var Jy={_id:``,type:`state`,common:{name:`Admin settings`,type:`boolean`,read:!0,write:!1,role:`state`},native:{localStorage:{},sessionStorage:{}}},Yy=class e extends d{constructor(t){super(t),j(this,`translations`,void 0),j(this,`_tempAllStored`,!0),j(this,`refConfigIframe`,null),j(this,`expireInSecInterval`,null),j(this,`toggleThemePossible`,void 0),j(this,`adminGuiConfig`,void 0),j(this,`logsWorker`,null),j(this,`instancesWorker`,null),j(this,`hostsWorker`,null),j(this,`adaptersWorker`,null),j(this,`objectsWorker`,null),j(this,`repoInfoPromise`,null),j(this,`repoInfoRun`,0),j(this,`guiSettings`,null),j(this,`guiSettingsChanges`,{localStorage:{},sessionStorage:{}}),j(this,`guiSettingsWrite`,Promise.resolve()),j(this,`localStorageTimer`,null),j(this,`guiSettingsRetryTimer`,null),j(this,`languageSet`,!1),j(this,`socket`,null),j(this,`adminInstance`,``),j(this,`newsSubscription`,void 0),j(this,`newsSubscribeTimer`,null),j(this,`doNotAskSessionExpiration`,0),j(this,`tabsInfo`,null),j(this,`pendingCommandTimer`,null),j(this,`pendingCommand`,null),j(this,`chatBusy`,!1),j(this,`lastHash`,window.location.hash),j(this,`chatLeaveConfirmed`,!1),j(this,`connectionLostAt`,0),j(this,`localStorageGetItem`,e=>{var t;return(t=this.guiSettings)==null?void 0:t.native.localStorage[e]}),j(this,`localStorageSetItem`,(e,t)=>{if(t===null)t=`null`;else if(t===void 0){this.localStorageRemoveItem(e);return}this.guiSettings&&(this.guiSettings.native.localStorage[e]=t.toString(),this.guiSettingsChanges.localStorage[e]=t.toString()),this.localStorageSave()}),j(this,`localStorageRemoveItem`,e=>{this.guiSettings&&Object.prototype.hasOwnProperty.call(this.guiSettings.native.localStorage,e)&&(delete this.guiSettings.native.localStorage[e],this.guiSettingsChanges.localStorage[e]=null,this.localStorageSave())}),j(this,`sessionStorageGetItem`,e=>{var t;return(t=this.guiSettings)==null?void 0:t.native.sessionStorage[e]}),j(this,`sessionStorageSetItem`,(e,t)=>{if(t===null)t=`null`;else if(t===void 0){this.sessionStorageRemoveItem(e);return}this.guiSettings&&(this.guiSettings.native.sessionStorage[e]=t.toString(),this.guiSettingsChanges.sessionStorage[e]=t.toString()),this.localStorageSave()}),j(this,`sessionStorageRemoveItem`,e=>{this.guiSettings&&Object.prototype.hasOwnProperty.call(this.guiSettings.native.sessionStorage,e)&&(delete this.guiSettings.native.sessionStorage[e],this.guiSettingsChanges.sessionStorage[e]=null,this.localStorageSave())}),j(this,`toggleTranslation`,()=>{(window._localStorage||window.localStorage).setItem(`App.noTranslation`,this.state.noTranslation?`false`:`true`),this.setState({noTranslation:!this.state.noTranslation})}),j(this,`onEosPolicyChanged`,e=>{var t;let n=e instanceof CustomEvent?e.detail:null;if(!n||typeof n!=`object`||!(`policy`in n))return;let r=n.policy,i=`unknown`;if(r&&typeof r==`object`&&`authenticated`in r&&r.authenticated===!0&&`role`in r&&typeof r.role==`string`&&[`admin`,`service`,`installer`,`enduser`].includes(r.role)&&!(`mustChangePassword`in r&&r.mustChangePassword===!0)&&(i=r.role),window.NEXOWATT_EOS_ACCESS_ROLE=i,i===this.state.eosAccessRole)return;let a=[`admin`,`service`].includes(i),o=(window._sessionStorage||window.sessionStorage).getItem(`App.expertMode`);this.setState({eosAccessRole:i,expertMode:a&&(o?o===`true`:!!((t=this.state.systemConfig)!=null&&t.common.expertMode)),expertModeDialog:!1})}),j(this,`updateHosts`,e=>{let t=JSON.parse(JSON.stringify(this.state.hosts));e.forEach(e=>{let n=t.find(t=>t._id===e.id);if(n){let r=t.indexOf(n);e.obj?t[r]=e.obj:t.splice(r,1)}else t.push(e.obj)}),this.setState({hosts:t})}),j(this,`repoChangeHandler`,()=>{this.readRepoAndInstalledInfo(this.state.currentHost,{update:!0}).then(()=>console.log(`Repo updated!`))}),j(this,`adaptersChangeHandler`,e=>{let t=JSON.parse(JSON.stringify(this.state.installed)),n=!1;e.forEach(e=>{let r=e.id.split(`.`)[2];e.type===`deleted`||!e.obj?t[r]&&(n=!0,delete t[r]):t[r]?Object.keys(t[r]).forEach(i=>{e.obj&&t[r][i]!==e.obj.common[i]&&(t[r][i]=e.obj.common[i],n=!0)}):(t[r]={version:e.obj.common.version},n=!0)}),n&&this.setState({installed:t})}),j(this,`onSessionExpiration`,e=>new Promise(t=>{let n=Math.max(0,e-Date.now()+500);this.expireInSecInterval&&=(clearInterval(this.expireInSecInterval),null),this.expireInSecInterval=setTimeout(()=>{un.deleteTokensStatic(),window.location.replace(`/login.html`)},n),t(!1)})),j(this,`onDiscoveryAlive`,(e,t)=>{!!(t!=null&&t.val)!==this.state.discoveryAlive&&this.setState({discoveryAlive:!!(t!=null&&t.val)})}),j(this,`onDiscoveryObject`,(e,t)=>{let n=Vv(t);n!==this.state.discoveryProposals&&this.setState({discoveryProposals:n})}),j(this,`getDiscoveryModal`,()=>this.state.systemConfig&&this.socket?T(qv,{themeType:this.state.themeType,themeName:this.state.themeName,theme:this.state.theme,socket:this.socket,systemConfig:this.state.systemConfig.common,dateFormat:this.state.systemConfig.common.dateFormat,currentHost:this.state.currentHost,defaultLogLevel:this.state.systemConfig.common.defaultLogLevel||`info`,repository:this.state.repository,hosts:this.state.hosts,onClose:()=>d.doNavigate(null)}):null),j(this,`handleNewNotifications`,async e=>{let t={warning:0,other:0};if(!e)this.setState({noNotifications:t,notifications:{}});else{for(let n of Object.values(e))if(n!=null&&n.result){for(let[e,r]of Object.entries(n.result))if(e!==`system`)for(let e of Object.values(r.categories))for(let n of Object.values(e.instances)){let r=e.severity===`alert`;t[r?`warning`:`other`]+=n.messages.length}}if(this.instancesWorker){let n=await this.instancesWorker.getObjects();this.setState({noNotifications:t,notifications:{notifications:e,instances:n}})}}}),j(this,`showAdaptersWarning`,async(e,t)=>{if(!e||!e[t]||!e[t].result)return;let n=e[t].result;if(n!=null&&n.system&&Object.keys(n.system.categories).length){var r;await((r=this.instancesWorker)==null?void 0:r.getObjects().then(e=>e&&this.setState({showHostWarning:{host:t,instances:e,result:n}})))}}),j(this,`onNews`,async(e,t)=>{if(!this.socket)throw Error(`Socket not initialized`);try{var n;if(!((n=this.state.systemConfig)!=null&&n.common.licenseConfirmed))return;let e=await this.socket.getState(this.ownNewsState(`newsLastId`));if(t!=null&&t.val){let n=null;try{n=JSON.parse(t.val)}catch{console.error(`Cannot parse news: ${t.val}`)}if(n!=null&&n.length&&n[0].id!==(e==null?void 0:e.val)){var r,i,a;let t=await this.socket.getUuid(),o=await this.socket.getHostInfo(this.state.currentHost).catch(()=>null),s=await this.socket.getCompactInstances().catch(()=>null),c;if(this.state.currentHost){let e=await this.socket.getDiagData(this.state.currentHost,`normal`);c=e==null?void 0:e.objectsType}let l=await((r=this.objectsWorker)==null?void 0:r.getObjects()),u=Object.keys(l||{}).length;await((i=this.repoInfoPromise)==null?void 0:i.catch(()=>{}));let d=Ad(n,e==null?void 0:e.val,{lang:A.getLanguage(),adapters:this.state.adapters,instances:s||{},nodeVersion:o&&o[`Node.js`]||`?`,npmVersion:o&&o.NPM||`?`,jsControllerVersion:((a=this.state.installed)==null||(a=a[`js-controller`])==null?void 0:a.version)||``,os:o&&o.os||`?`,activeRepo:this.state.systemConfig.common.activeRepo,uuid:t,objectsDbType:c||`jsonl`,noObjects:u});d!=null&&d.length&&this.setState({showNews:{checkNews:d,lastNewsId:e==null?void 0:e.val}})}}}catch(e){console.error(`Could not process news: ${e.stack}`),this.showAlert(`Could not process news: ${e.stack}`,`error`)}}),j(this,`logsWorkerChanged`,e=>{var t;(t=this.logsWorker)==null||t.setCurrentHost(e)}),j(this,`onHashChanged`,()=>{let t=window.location.hash;this.chatBlocksLeaving(e.tabOfHash(t))?(window.history.replaceState(null,``,this.lastHash||`${window.location.pathname}${window.location.search}`),this.setState({chatLeaveDialog:{target:{hash:t},reason:`busy`}})):(this.lastHash=t,this.setState({currentTab:d.getLocation()},()=>this.setCurrentTabTitle()))}),j(this,`toggleTheme`,t=>{let n=this.state.themeName,r=t||Pe.toggleTheme(n),i=e.createTheme(r);this.setState({theme:i,themeName:r,themeType:e.getThemeType(i)},()=>{var e,t;(e=this.refConfigIframe)==null||(e=e.contentWindow)==null||e.postMessage(`updateTheme`,`*`),(t=this.refConfigIframe)==null||(t=t.contentWindow)==null||t.postMessage({type:`updateTheme`,themeName:r},`*`)})}),j(this,`handleNavigation`,(e,t,n)=>{var r;if(e){if(this.chatBlocksLeaving(e)){this.setState({chatLeaveDialog:{target:{tab:e,subTab:t,param:n},reason:`busy`}});return}this._tempAllStored?(d.doNavigate(e,t,n),this.lastHash=window.location.hash,this.setState({currentTab:d.getLocation()})):this.setState({dataNotStoredDialog:!0,dataNotStoredTab:{tab:e,subTab:t,param:n}})}(this.props.width===`xs`||this.props.width===`sm`)&&this.handleDrawerState(J.closed),e||=((r=this.state.currentTab)==null?void 0:r.tab)||``,this.setTitle(e.replace(`tab-`,``))});try{window.alert=e=>{let t=(e==null?void 0:e.toString())??``,n=Date.now();this.isCausedByConnectionLoss(t,n)?console.warn(`Not shown, as the connection to admin is lost: ${t}`):t.toLowerCase().includes(`error`)?(console.error(t),setTimeout(()=>{this.isCausedByConnectionLoss(t,n)?console.warn(`Not shown, as the connection to admin is lost: ${t}`):this.showAlert(t,`error`)},Gy)):(console.log(t),this.showAlert(t,`info`))}}catch{}this.translations=zt;let n={en:ay,de:oy,ru:sy,pt:cy,nl:ly,fr:uy,it:dy,es:fy,pl:py,uk:my,"zh-cn":hy};Object.keys(n).forEach(e=>Object.assign(this.translations[e],n[e])),A.extendTranslations(this.translations),A.setLanguage((window.navigator.language||window.navigator.userLanguage||`en`).substring(0,2).toLowerCase()),this.adminGuiConfig={admin:{menu:{},settings:{},adapters:{},login:{}}};let r=window.vendorPrefix;if(this.toggleThemePossible=!r||r===`@@vendorPrefix@@`||r===`MV`,Ly.login){let t=e.createTheme();this.state={login:!0,theme:t,themeName:e.getThemeName(t),themeType:e.getThemeType(t)}}else{let t=(window._localStorage||window.localStorage).getItem(`App.drawerState`),n;n=t?parseInt(t,10):this.props.width===`xs`?J.closed:J.opened;let r=e.createTheme();Object.defineProperty(window,"configNotSaved",{get:()=>this.state.configNotSaved,set:e=>{let t=!e;t!==this._tempAllStored&&(this._tempAllStored=t,this.forceUpdate())},configurable:!0}),this.state={connected:!1,progress:0,ready:!1,lang:`en`,hostname:window.location.hostname,expertMode:!1,eosAccessRole:Ry(),chatDockWidth:0,hosts:[],currentHost:``,currentHostName:``,ownHost:``,currentTab:d.getLocation(),systemConfig:null,user:null,repository:{},installed:{},waitForRestart:!1,tabs:null,config:{},stateChanged:!1,theme:r,themeName:e.getThemeName(r),themeType:e.getThemeType(r),alert:!1,alertType:`info`,alertMessage:``,drawerState:n,editMenuList:!1,tab:null,dataNotStoredDialog:!1,dataNotStoredTab:null,chatLeaveDialog:null,baseSettingsOpened:!1,unsavedDataInDialog:!1,systemSettingsOpened:!1,cmd:null,cmdDialog:!1,commandHost:null,commandError:!1,commandRunning:!1,wizard:!0,performed:!1,showTips:!1,discoveryAlive:!1,discoveryProposals:0,readTimeoutMs:Xv.getReadTimeoutMs(),showSlowConnectionWarning:!1,versionAdmin:``,forceUpdateAdapters:0,noTranslation:(window._localStorage||window.localStorage).getItem(`App.noTranslation`)!==`false`,cloudNotConnected:!1,cloudReconnect:0,showRedirect:``,redirectCountDown:0,triggerAdapterUpdate:0,updating:!1,notificationsDialog:!1,notifications:{},noNotifications:{warning:0,other:0},configNotSaved:!1,login:!1,showHostWarning:null,adapters:{},askForTokenRefresh:null},this.logsWorker=null,this.instancesWorker=null,this.hostsWorker=null}}static getDerivedStateFromError(e){return{hasGlobalError:e}}componentDidCatch(e){this.setState({hasGlobalError:e})}static async checkSsoResponse(){let e=new URLSearchParams(window.location.search);if(e.has(`ssoCode`)){try{let t=await fetch(lr(`sso-token`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({code:e.get(`ssoCode`)})}),n=await t.json();t.ok&&n.access_token&&un.saveTokensStatic(n,!0)}catch(e){console.error(`Cannot finish the single sign-on: ${e}`)}window.localStorage.removeItem(`oidc_id_token`),window.location.search=``}else if(e.has(`id_token`)&&(window.localStorage.setItem(`oidc_id_token`,e.get(`id_token`)),window.location.search=``),e.has(`ssoLoginResponse`)){let t=JSON.parse(e.get(`ssoLoginResponse`));un.saveTokensStatic(t,!0),window.location.search=``}}setUnsavedData(e){e!==this.state.unsavedDataInDialog&&this.setState({unsavedDataInDialog:e})}mustInvertBackground(e){if(!e)return!1;let t=Pe.invertColor(e,!0);return t===`#FFFFFF`&&this.state.themeType===`dark`||t===`#000000`&&this.state.themeType===`light`}localStorageSave(){this.localStorageTimer&&clearTimeout(this.localStorageTimer),this.guiSettingsRetryTimer&&=(clearTimeout(this.guiSettingsRetryTimer),null),this.localStorageTimer=setTimeout(()=>{this.localStorageTimer=null,this.guiSettingsWrite=this.guiSettingsWrite.then(()=>this.writeGuiSettings())},200)}async writeGuiSettings(){let e=this.guiSettingsChanges;if(!this.guiSettings||!this.socket||!Object.keys(e.localStorage).length&&!Object.keys(e.sessionStorage).length)return;this.guiSettingsChanges={localStorage:{},sessionStorage:{}};let t=`system.adapter.${this.adminInstance}.guiSettings`;try{let n=Vy(await Ky(this.socket.getObject(t),`Reading`)||JSON.parse(JSON.stringify(this.guiSettings)));qy(n.native,e),await Ky(this.socket.setObject(t,n),`Writing`),this.guiSettings&&(this.guiSettings=n,qy(this.guiSettings.native,this.guiSettingsChanges))}catch(r){var n;for(let t of[`localStorage`,`sessionStorage`])this.guiSettingsChanges[t]={...e[t],...this.guiSettingsChanges[t]};console.warn(`Could not save "${t}": ${r.message}`),(n=this.socket)!=null&&n.isConnected()&&!this.localStorageTimer&&!this.guiSettingsRetryTimer&&(this.guiSettingsRetryTimer=setTimeout(()=>{this.guiSettingsRetryTimer=null,this.localStorageSave()},Uy))}}async getGUISettings(){let e=null;if(!this.adminInstance||!this.socket)return;let t=!1;try{e=await this.socket.getObject(`system.adapter.${this.adminInstance}.guiSettings`)}catch(e){t=!0,console.warn(`Could not get "system.adapter.${this.adminInstance}.guiSettings": ${e.message}`)}if(!e&&!t){e=JSON.parse(JSON.stringify(Jy));try{await this.socket.setObject(`system.adapter.${this.adminInstance}.guiSettings`,e)}catch(e){console.warn(`Could not update "system.adapter.${this.adminInstance}.guiSettings": ${e.message}`)}}let n;try{n=await this.socket.getState(`system.adapter.${this.adminInstance}.guiSettings`)}catch{n={val:!1}}if(n!=null&&n.val){this.guiSettings=Vy(e||JSON.parse(JSON.stringify(Jy))),(Object.keys(this.guiSettingsChanges.localStorage).length||Object.keys(this.guiSettingsChanges.sessionStorage).length)&&(qy(this.guiSettings.native,this.guiSettingsChanges),this.localStorageSave()),window._localStorage={getItem:this.localStorageGetItem,setItem:this.localStorageSetItem,removeItem:this.localStorageRemoveItem},window._sessionStorage={getItem:this.sessionStorageGetItem,setItem:this.sessionStorageSetItem,removeItem:this.sessionStorageRemoveItem};let t=(window._localStorage||window.localStorage).getItem(`App.drawerState`),n;n=t?parseInt(t,10):this.props.width===`xs`?J.closed:J.opened;let r=(window._localStorage||window.localStorage).getItem(`App.noTranslation`)!==`false`;this.setState({guiSettings:!0,drawerState:n,noTranslation:r},()=>{Pe.getThemeName()!==this.state.theme.name&&this.toggleTheme(Pe.getThemeName())})}else this.state.guiSettings&&(window._localStorage=void 0,window._sessionStorage=void 0,this.setState({guiSettings:!1}))}async enableGuiSettings(e,t){if(e&&!this.guiSettings&&this.socket){let e=await this.socket.getObject(`system.adapter.${this.adminInstance}.guiSettings`);this.guiSettings=e||JSON.parse(JSON.stringify(Jy)),t||!this.guiSettings.native||!Object.keys(this.guiSettings.native).length?(this.guiSettings.native={localStorage:{},sessionStorage:{}},Object.keys(window.localStorage).forEach(e=>{e!==`getItem`&&e!==`setItem`&&e!==`removeItem`&&e!==`clear`&&e!==`key`&&e!==`length`&&(this.guiSettings.native.localStorage[e]=window.localStorage.getItem(e))}),Object.keys(window.sessionStorage).forEach(e=>{e!==`getItem`&&e!==`setItem`&&e!==`removeItem`&&e!==`clear`&&e!==`key`&&e!==`length`&&(this.guiSettings.native.sessionStorage[e]=window.sessionStorage.getItem(e))}),await this.socket.setObject(`system.adapter.${this.adminInstance}.guiSettings`,this.guiSettings),await this.socket.setState(`system.adapter.${this.adminInstance}.guiSettings`,{val:!0,ack:!0})):(await this.socket.setState(`system.adapter.${this.adminInstance}.guiSettings`,{val:!0,ack:!0}),window.location.reload()),await this.getGUISettings()}else if(!e&&this.guiSettings&&this.socket){if(!await this.socket.getObject(`system.adapter.${this.adminInstance}.guiSettings`))try{await this.socket.setObject(`system.adapter.${this.adminInstance}.guiSettings`,Jy)}catch(e){console.error(`Cannot create system.adapter.${this.adminInstance}.guiSettings": ${e}`)}window._localStorage=void 0,window._sessionStorage=void 0,Object.keys(window.localStorage).forEach(e=>window.localStorage.removeItem(e)),Object.keys(window.sessionStorage).forEach(e=>window.sessionStorage.removeItem(e)),Object.keys(this.guiSettings.native.localStorage).forEach(e=>window.localStorage.setItem(e,this.guiSettings.native.localStorage[e])),Object.keys(this.guiSettings.native.sessionStorage).forEach(e=>window.sessionStorage.setItem(e,this.guiSettings.native.sessionStorage[e])),this.guiSettings=null,this.guiSettingsChanges={localStorage:{},sessionStorage:{}},this.guiSettingsRetryTimer&&=(clearTimeout(this.guiSettingsRetryTimer),null);try{await this.socket.setState(`system.adapter.${this.adminInstance}.guiSettings`,{val:!1,ack:!0})}catch(e){window.alert(`Cannot disable settings: ${e}`)}this.setState({guiSettings:!1})}}componentDidMount(){Ly.login?window.location.replace(`/login.html`):(un.deleteTokensStatic(),window.addEventListener(`vite:preloadError`,by),window.addEventListener(`nexowatt-eos-policy`,this.onEosPolicyChanged),this.state.login||(window.addEventListener(`hashchange`,this.onHashChanged,!1),this.state.currentTab.tab?this.setTitle(this.state.currentTab.tab.replace(`tab-`,``)):this.handleNavigation(`tab-intro`),this.socket=new un({protocol:window.location.protocol,host:window.location.hostname,name:`eos-admin`,admin5only:!0,port:e.getPort(),cmdTimeout:this.state.readTimeoutMs,autoSubscribes:[`system.adapter.*`],autoSubscribeLog:!0,tokenTimeoutHandler:this.onSessionExpiration,onProgress:async e=>{if(this.socket){if(e===_.CONNECTING)this.state.connected&&(this.connectionLostAt=Date.now()),this.setState({connected:!1});else if(e===_.READY)try{let e=await this.socket.getVersion();console.log(`Stored version: ${this.state.versionAdmin}, new version: ${e.version}`),this.state.versionAdmin&&this.state.versionAdmin!==e.version&&(window.alert(`New adapter version detected. Reloading...`),setTimeout(()=>window.location.reload(),500)),this.adminInstance||=await this.socket.getCurrentInstance(),await this.getGUISettings();let n={connected:!0,progress:100,versionAdmin:e.version,disableMcp:!0};if(this.state.cmd&&/\b(?:admin|eos-admin)(?:@[-.\w]+)?(?:\s+--debug)?$/.test(this.state.cmd))n.commandRunning=!1,n.forceUpdateAdapters=this.state.forceUpdateAdapters+1,this.closeCmdDialog(()=>{this.setState(n),window.location.reload()});else{try{var t;let e=await this.socket.getObject(`system.adapter.${this.adminInstance}`);n.disableMcp=!0,e!=null&&(t=e.native)!=null&&t.language?e.native.language!==A.getLanguage()&&(console.log(`Language changed to ${e.native.language}`),A.setLanguage(e.native.language),this.languageSet?window.location.reload():this.languageSet=!0):this.socket.systemLang!==A.getLanguage()&&(console.log(`Language changed to ${this.socket.systemLang}`),A.setLanguage(this.socket.systemLang),this.languageSet?window.location.reload():this.languageSet=!0)}catch(e){console.error(`Cannot read admin settings: ${e}`)}this.setState(n)}}catch(e){console.error(`Cannot read version: ${e}`),e===`ioBroker is not connected`&&(setInterval(()=>{this.state.cloudReconnect>0?this.setState({cloudReconnect:this.state.cloudReconnect-1}):window.location.reload()},1e3),this.setState({cloudNotConnected:!0,cloudReconnect:10}))}else this.setState({connected:!0,progress:Math.round(_.READY/e*100)})}},onReady:async()=>{var e;if(!this.socket)throw Error(`Socket not initialized`);this.adminGuiConfig={admin:{menu:{},settings:{},adapters:{},login:{}},...(e=this.socket)==null||(e=e.systemConfig)==null||(e=e.native)==null?void 0:e.vendor},this.adminGuiConfig.admin.menu||={},this.adminGuiConfig.admin.settings||={},this.adminGuiConfig.admin.adapters||={},this.adminGuiConfig.admin.login||={};try{var t,n;try{var r;this.adminInstance||=await this.socket.getCurrentInstance(),this.adminInstance||console.error(`Cannot read admin instance!`);let e=await this.socket.getObject(`system.adapter.${this.adminInstance}`);e!=null&&(r=e.native)!=null&&r.language?A.setLanguage(e.native.language):A.setLanguage(this.socket.systemLang)}catch(e){console.warn(`Cannot read the settings of this admin: ${e.message}`),A.setLanguage(this.socket.systemLang)}this.languageSet=!0;let e=!1;try{e=await this.socket.getIsEasyModeStrict()}catch(e){console.warn(`Cannot read the easy mode: ${e.message}`)}if(await this.getGUISettings(),e){let e=await this.socket.getEasyMode();this.setState({lang:this.socket.systemLang,ready:!0,strictEasyMode:!0,easyModeConfigs:e.configs});return}this.logsWorker||=new Bd(this.socket,1e3),this.instancesWorker||=new Hd(this.socket),this.hostsWorker||=new Ud(this.socket),this.adaptersWorker||=new Wd(this.socket),this.objectsWorker||=new Gd(this.socket);let a={lang:this.socket.systemLang,ready:!0};try{a.systemConfig=await this.socket.getCompactSystemConfig(),a.wizard=!a.systemConfig.common.licenseConfirmed,a.showTips=!a.wizard&&!a.systemConfig.common.tipsDisabled,await this.findCurrentHost(a),a.currentHost&&this.readRepoAndInstalledInfo(a.currentHost)}catch(e){console.log(`Error reading repo in onReady: ${e.stack}`)}this.adaptersWorker.registerRepositoryHandler(this.repoChangeHandler),this.adaptersWorker.registerHandler(this.adaptersChangeHandler),this.hostsWorker.registerHandler(this.updateHosts),this.hostsWorker.registerNotificationHandler(this.handleNewNotifications);let o=(window._sessionStorage||window.sessionStorage).getItem(`App.expertMode`);if(a.expertMode=zy(this.state.eosAccessRole)&&(o?o===`true`:!!((t=a.systemConfig)!=null&&t.common.expertMode)),this.socket.isSecure||(n=this.socket.systemConfig)!=null&&(n=n.native)!=null&&n.vendor)try{var i;let e=await this.socket.getCurrentUser(),t=await this.socket.getObject(`system.user.${e}`);t!=null&&(i=t.native)!=null&&i.vendor&&Object.assign(this.adminGuiConfig,t.native.vendor),this.socket.isSecure&&t&&this.setState({user:{id:t._id,name:Pe.getObjectNameFromObj(t,this.socket.systemLang),color:t.common.color,icon:t.common.icon,invertBackground:t.common.color?this.mustInvertBackground(t.common.color):!1,group:await this.getLeadingGroupName(t._id)}})}catch(e){console.error(`Could not determine user to show: ${e.toString()}, ${e.stack}`),this.showAlert(e.toString(),`error`)}this.setState(a,()=>this.setCurrentTabTitle()),this.socket.subscribeState(`system.adapter.discovery.0.alive`,this.onDiscoveryAlive),this.socket.getObject(`system.discovery`).then(e=>this.onDiscoveryObject(`system.discovery`,e)).catch(e=>console.warn(`Cannot read system.discovery: ${e}`)),this.socket.subscribeObject(`system.discovery`,this.onDiscoveryObject),setTimeout(()=>this.logsWorkerChanged(this.state.currentHost),1e3),this.newsSubscribeTimer&&clearTimeout(this.newsSubscribeTimer),this.newsSubscribeTimer=setTimeout(()=>{this.newsSubscribeTimer=null,this.subscribeOwnNews().catch(e=>console.warn(`Cannot subscribe EOS news: ${e}`))},5e3),setTimeout(async()=>{var e;let t=await((e=this.hostsWorker)==null?void 0:e.getNotifications(a.currentHost));await this.handleNewNotifications(t)},3e3)}catch(e){console.error(`Error in onReady: ${e.stack}`),this.showAlert(`Error in onReady: ${e.stack}`,`error`),this.setState({ready:!0})}},onError:e=>{console.error(e);let t;t=e instanceof Error&&e.message||e.toString(),t===`ioBroker is not connected`?this.state.cloudNotConnected||(this.showAlert(A.t(t),`error`),setInterval(()=>{this.state.cloudReconnect>0?this.setState({cloudReconnect:this.state.cloudReconnect-1}):window.location.reload()},1e3),this.setState({cloudNotConnected:!0,cloudReconnect:10})):this.showAlert(t,`error`)}}),window.NEXOWATT_EOS_ADMIN_SOCKET=this.socket,window.NEXOWATT_EOS_SOCKET=this.socket,window.dispatchEvent(new CustomEvent(`nexowatt-eos-admin-socket-ready`))))}componentWillUnmount(){var e,t,n,r,i;if(window.removeEventListener(`hashchange`,this.onHashChanged,!1),window.removeEventListener(`vite:preloadError`,by),window.removeEventListener(`nexowatt-eos-policy`,this.onEosPolicyChanged),(e=this.socket)==null||e.unsubscribeState(`system.adapter.discovery.0.alive`,this.onDiscoveryAlive),(t=this.socket)==null||t.unsubscribeObject(`system.discovery`,this.onDiscoveryObject),this.newsSubscribeTimer&&=(clearTimeout(this.newsSubscribeTimer),null),this.newsSubscription){var a;(a=this.socket)==null||a.unsubscribeState(this.newsSubscription,this.onNews),this.newsSubscription=void 0}(n=this.adaptersWorker)==null||n.unregisterRepositoryHandler(this.repoChangeHandler),(r=this.adaptersWorker)==null||r.unregisterHandler(this.adaptersChangeHandler),(i=this.hostsWorker)==null||i.unregisterHandler(this.updateHosts),this.expireInSecInterval&&=(clearInterval(this.expireInSecInterval),null),this.guiSettingsRetryTimer&&=(clearTimeout(this.guiSettingsRetryTimer),null),this.pendingCommandTimer&&=(clearTimeout(this.pendingCommandTimer),null),this.pendingCommand=null,window._localStorage&&(window._localStorage=void 0,window._sessionStorage=void 0)}async findCurrentHost(e){if(!this.socket)return;if(e.hosts=await this.socket.getCompactHosts(),!this.state.currentHost){let r=(window._localStorage||window.localStorage).getItem(`App.currentHost`),i=e.hosts.find(e=>e._id===r);if(r&&i){var t;e.currentHost=i._id,e.currentHostName=((t=i.common)==null?void 0:t.name)||i._id.replace(`system.host.`,``)}else{var n;e.currentHost=e.hosts[0]._id,e.currentHostName=((n=e.hosts[0].common)==null?void 0:n.name)||e.hosts[0]._id.replace(`system.host.`,``)}}e.ownHost=e.currentHost;let r;try{r=await this.socket.getState(`${e.currentHost}.alive`)}catch(t){r=null,console.warn(`Cannot get state ${e.currentHost}.alive: ${t}`)}if(!(r!=null&&r.val))for(let t=0;t<e.hosts.length;t++)r=await this.socket.getState(`${e.hosts[t]._id}.alive`),r!=null&&r.val&&(e.currentHost=e.hosts[t]._id,e.currentHostName=e.hosts[t].common.name)}renderTokenTimeoutDialog(){return this.state.askForTokenRefresh?M(u,{open:!0,onClose:()=>e.logout(),children:[M(le,{children:[T(fe,{children:A.t(`ra_Session will expire in %s seconds. Continue?`,Math.round((this.state.askForTokenRefresh.expireAt-Date.now())/1e3))}),T(`div`,{children:T(je,{label:A.t(`ra_Do not ask for next 2 hours in this session`),control:T(ke,{checked:this.state.askForTokenRefresh.doNotAsk,onChange:()=>{var e;let t={...this.state.askForTokenRefresh};t.doNotAsk=!((e=this.state.askForTokenRefresh)!=null&&e.doNotAsk),this.setState({askForTokenRefresh:t})}})})})]}),M(St,{children:[T(V,{onClick:()=>{var e,t;let n=(e=this.state.askForTokenRefresh)==null?void 0:e.resolve;(t=this.state.askForTokenRefresh)!=null&&t.doNotAsk&&(this.doNotAskSessionExpiration=Date.now()+72e5),this.expireInSecInterval&&=(clearInterval(this.expireInSecInterval),null),this.setState({askForTokenRefresh:null},()=>n==null?void 0:n(!0))},variant:`contained`,startIcon:T(Kr,{}),children:A.t(`ra_Continue`)}),T(V,{onClick:()=>e.logout(),variant:`outlined`,color:`grey`,startIcon:T(jr,{}),children:A.t(`ra_Logout`)})]})]}):null}ownNewsState(e){if(!/^eos-admin\.(0|[1-9]\d*)$/.test(this.adminInstance))throw Error(`EOS_NEWS_INSTANCE_UNAVAILABLE`);return`${this.adminInstance}.info.${e}`}async subscribeOwnNews(){if(!this.socket)return;let e=this.ownNewsState(`newsFeed`);this.newsSubscription&&this.newsSubscription!==e&&this.socket.unsubscribeState(this.newsSubscription,this.onNews),this.newsSubscription=e,await this.socket.subscribeState(e,this.onNews)}renderNotificationsDialog(){var e,t;return!this.state.notificationsDialog||!this.state.systemConfig||!this.socket?null:T(Js,{notifications:((e=this.state.notifications)==null?void 0:e.notifications)||{},instances:((t=this.state.notifications)==null?void 0:t.instances)||{},onClose:()=>this.setState({notificationsDialog:!1}),ackCallback:(e,t)=>this.socket.clearNotifications(e,t),dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma,themeType:this.state.themeType,themeName:this.state.themeName,theme:this.state.theme,socket:this.socket})}renderHostWarningDialog(){return!this.state.showHostWarning||!this.state.systemConfig||!this.socket?null:T(Id,{instances:this.state.showHostWarning.instances,messages:this.state.showHostWarning.result.system.categories,dateFormat:this.state.systemConfig.common.dateFormat,themeType:this.state.themeType,ackCallback:e=>this.socket.clearNotifications(this.state.showHostWarning.host,e),onClose:()=>this.setState({showHostWarning:null})})}renderNewsDialog(){return!this.state.showNews||!this.socket?null:T(jd,{newsArr:this.state.showNews.checkNews,current:this.state.showNews.lastNewsId,onSetLastNewsId:async e=>{e&&await this.socket.setState(this.ownNewsState(`newsLastId`),{val:e,ack:!0}),this.setState({showNews:null})}})}renderTipsDialog(){return!this.state.showTips||this.state.wizard||this.state.showNews||this.state.showHostWarning?null:T(iy,{t:A.t,lang:this.state.lang,lastTipId:(window._localStorage||window.localStorage).getItem(e.LAST_TIP_ID),onClose:(t,n)=>{(window._localStorage||window.localStorage).setItem(e.LAST_TIP_ID,n),this.setState({showTips:!1}),t&&this.disableTips()}})}async disableTips(){if(this.socket)try{var e;let t=await this.socket.getSystemConfig(!0);t!=null&&t.common&&!t.common.tipsDisabled&&(t.common.tipsDisabled=!0,await this.socket.setSystemConfig(t)),(e=this.state.systemConfig)!=null&&e.common&&this.setState({systemConfig:{...this.state.systemConfig,common:{...this.state.systemConfig.common,tipsDisabled:!0}}})}catch(e){this.showAlert(`Cannot save system configuration: ${e.toString()}`,`error`)}}renderSlowConnectionWarning(){return this.state.showSlowConnectionWarning?T(Xv,{readTimeoutMs:this.state.readTimeoutMs,t:A.t,onClose:e=>{e?this.setState({showSlowConnectionWarning:!1,readTimeoutMs:e},()=>this.readRepoAndInstalledInfo(this.state.currentHost,{offerLongerTimeout:!0})):this.setState({showSlowConnectionWarning:!1})}}):null}readRepoAndInstalledInfo(e,t){let n=this.readRepoAndInstalledInfoRun(e,++this.repoInfoRun,t);return this.repoInfoPromise=n,n}async readRepoAndInstalledInfoRun(e,t,n){if(!this.socket)throw Error(`Socket not initialized`);let r=n==null?void 0:n.update,i=()=>{n!=null&&n.offerLongerTimeout&&this.setState({showSlowConnectionWarning:!0})},[a,o,s]=await Promise.all([this.socket.getCompactRepository(e,r,this.state.readTimeoutMs).catch(e=>(window.alert(`Cannot getRepositoryCompact: ${e}`),e.toString().includes(`timeout`)&&i(),{})),this.socket.getCompactInstalled(e,r,this.state.readTimeoutMs).catch(e=>(window.alert(`Cannot getInstalled: ${e}`),e.toString().includes(`timeout`)&&i(),{})),this.socket.getCompactAdapters(r).then(e=>(t===this.repoInfoRun&&this.setState({adapters:e}),e)).catch(e=>(window.alert(`Cannot read adapters: ${e}`),{}))]);t===this.repoInfoRun&&(o&&s&&Object.keys(s).forEach(e=>{o[e]&&s[e].iv&&(o[e].ignoreVersion=s[e].iv)}),this.setState({repository:a,installed:o,adapters:s}))}static tabOfHash(e){return e.replace(/^#/,``).split(`/`)[0]}static isAdminTab(e){return!e||Cy.includes(e)}chatBlocksLeaving(t){return this.chatLeaveConfirmed?(this.chatLeaveConfirmed=!1,!1):this.chatBusy&&e.isAdminTab(e.tabOfHash(this.lastHash))&&!e.isAdminTab(t)}assistantNavigate(t){let n=t.startsWith(`#`)?t:`#${t}`;return e.isAdminTab(e.tabOfHash(n))?(window.location.hash=n,Promise.resolve(!0)):new Promise(e=>this.setState({chatLeaveDialog:{target:{hash:n},reason:`assistant`,resolve:e}}))}onChatLeaveDialog(e){let t=this.state.chatLeaveDialog;this.setState({chatLeaveDialog:null},()=>{var n;t==null||(n=t.resolve)==null||n.call(t,e);let r=t==null?void 0:t.target;e&&r&&(this.chatLeaveConfirmed=!0,`hash`in r?window.location.hash=r.hash:this.handleNavigation(r.tab,r.subTab,r.param))})}static getPort(){let t=parseInt(window.location.port,10);if(Number.isNaN(t))switch(e.getProtocol()){case`https:`:t=443;break;case`http:`:t=80}return t&&t!==3e3||(t=8188),t}static getProtocol(){return window.location.protocol}static createTheme(e){return a(Pe.getThemeName(e))}static getThemeName(e){return e.name}static getThemeType(e){return e.palette.mode}renderHostSelector(){return!this.socket||!this.hostsWorker?null:T(tc,{name:`admin.appBar.hostSelector`,config:this.adminGuiConfig,children:T(Sd,{themeType:this.state.themeType,expertMode:this.state.expertMode,socket:this.socket,hostsWorker:this.hostsWorker,currentHost:this.state.currentHost,setCurrentHost:(e,t)=>{this.setState({currentHostName:e,currentHost:t},async()=>{var e;this.logsWorkerChanged(t),(window._localStorage||window.localStorage).setItem(`App.currentHost`,t),await this.readRepoAndInstalledInfo(t,{offerLongerTimeout:!0});let n=await((e=this.hostsWorker)==null?void 0:e.getNotifications(t));await this.handleNewNotifications(n)})}})})}setCurrentTabTitle(){this.setTitle(this.state.currentTab.tab.replace(`tab-`,``))}setTitle(e){document.title=`${e} - ${this.state.currentHostName||`NexoWatt EOS`}`}getCurrentTab(){var e;if(!this.socket||!this.hostsWorker||!this.adaptersWorker||!this.instancesWorker||!this.objectsWorker||!this.state.systemConfig||!this.logsWorker)return null;if((e=this.state)!=null&&(e=e.currentTab)!=null&&e.tab){if(this.state.currentTab.tab===`tab-adapters`){let e=this.props.width===`xs`||this.props.width===`sm`,t=!e&&this.state.drawerState===J.opened,n=e||this.state.drawerState===J.closed;return T(ht,{fallback:T(Gc,{}),children:T(Ty,{theme:this.state.theme,triggerUpdate:this.state.triggerAdapterUpdate,forceUpdateAdapters:this.state.forceUpdateAdapters,adaptersWorker:this.adaptersWorker,instancesWorker:this.instancesWorker,themeType:this.state.themeType,systemConfig:this.state.systemConfig,socket:this.socket,adminHost:this.state.ownHost,hostsWorker:this.hostsWorker,currentHost:this.state.currentHost,ready:this.state.ready&&this.state.connected,t:A.t,lang:A.getLanguage(),expertMode:this.state.expertMode,executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),commandRunning:this.state.commandRunning,onSetCommandRunning:e=>this.setState({commandRunning:e}),menuOpened:t,menuClosed:n,adminGuiConfig:this.adminGuiConfig,toggleTranslation:this.toggleTranslation,noTranslation:this.state.noTranslation,adminInstance:this.adminInstance,currentAdminVersion:this.state.versionAdmin,onUpdating:e=>this.setState({updating:e}),hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`adapters`)})}if(this.state.currentTab.tab===`tab-instances`)return T(ht,{fallback:T(Gc,{}),children:T(Ey,{menuPadding:this.state.drawerState===J.closed?0:this.state.drawerState===J.opened?this.state.editMenuList?250:180:50,socket:this.socket,instancesWorker:this.instancesWorker,lang:A.getLanguage(),hostname:this.state.hostname,adminInstance:this.adminInstance,repository:this.state.repository,hosts:this.state.hosts,themeName:this.state.themeName,themeType:this.state.themeType,theme:this.state.theme,expertMode:this.state.expertMode,currentHost:this.state.currentHost,currentHostName:this.state.currentHostName,t:A.t,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma,width:this.props.width,configStored:e=>this.allStored(e),executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),inBackgroundCommand:this.state.commandError||this.state.performed,onRegisterIframeRef:e=>this.refConfigIframe=e,onUnregisterIframeRef:e=>{this.refConfigIframe===e&&(this.refConfigIframe=null)},handleNavigation:this.handleNavigation,hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`instances`)});if(this.state.currentTab.tab===`tab-overview`)return T(ht,{fallback:T(Gc,{}),children:T(wy,{t:A.t,lang:this.state.lang,socket:this.socket,theme:this.state.theme,themeType:this.state.themeType,currentHost:this.state.currentHost,currentHostName:this.state.currentHostName,hostsWorker:this.hostsWorker,instancesWorker:this.instancesWorker,objectsWorker:this.objectsWorker,logsWorker:this.logsWorker,expertMode:this.state.expertMode,installed:this.state.installed,repository:this.state.repository,handleNavigation:e=>this.handleNavigation(e),hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`overview`)});if(this.state.currentTab.tab===`tab-intro`)return T(ht,{fallback:T(Gc,{}),children:T(Dy,{hostname:this.state.hostname,adminInstance:this.adminInstance,instancesWorker:this.instancesWorker,hostsWorker:this.hostsWorker,showAlert:(e,t)=>this.showAlert(e,t),socket:this.socket,t:A.t,lang:A.getLanguage(),theme:this.state.theme},`intro`)});if(this.state.currentTab.tab===`tab-logs`)return T(ht,{fallback:T(Gc,{}),children:T(Oy,{t:A.t,width:this.props.width,lang:this.state.lang,socket:this.socket,themeType:this.state.themeType,theme:this.state.theme,ready:this.state.ready,logsWorker:this.logsWorker,expertMode:this.state.expertMode,currentHost:this.state.currentHost,hostsWorker:this.hostsWorker,clearErrors:()=>this.clearLogErrors(),hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`logs`)});if(this.state.currentTab.tab===`tab-files`)return T(ht,{fallback:T(Gc,{}),children:T(ky,{ready:this.state.ready,t:A.t,expertMode:this.state.expertMode,lang:A.getLanguage(),socket:this.socket,themeType:this.state.themeType,theme:this.state.theme},`files`)});if(this.state.currentTab.tab===`tab-users`)return T(ht,{fallback:T(Gc,{}),children:T(jy,{ready:this.state.ready,t:A.t,expertMode:this.state.expertMode,lang:A.getLanguage(),socket:this.socket,themeType:this.state.themeType,theme:this.state.theme},`users`)});if(this.state.currentTab.tab===`tab-enums`)return T(ht,{fallback:T(Gc,{}),children:T(My,{t:A.t,lang:A.getLanguage(),socket:this.socket,themeType:this.state.themeType,theme:this.state.theme},`enums`)});if(this.state.currentTab.tab===`tab-objects`)return T(ht,{fallback:T(Gc,{}),children:T(Ay,{t:A.t,theme:this.state.theme,themeName:this.state.themeName,themeType:this.state.themeType,expertMode:this.state.expertMode,objectsWorker:this.objectsWorker,lang:A.getLanguage(),socket:this.socket,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma})},`objects`);if(this.state.currentTab.tab===`tab-hosts`)return T(ht,{fallback:T(Gc,{}),children:T(Fy,{socket:this.socket,lang:A.getLanguage(),hostsWorker:this.hostsWorker,toggleTranslation:this.toggleTranslation,noTranslation:this.state.noTranslation,themeType:this.state.themeType,theme:this.state.theme,expertMode:this.state.expertMode,t:A.t,currentHost:this.state.currentHost,executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),systemConfig:this.state.systemConfig,showAdaptersWarning:this.showAdaptersWarning,adminInstance:this.adminInstance,onUpdating:e=>this.setState({updating:e})})});if(this.state.currentTab.tab===`tab-devicemanager`)return T(ht,{fallback:T(Gc,{}),children:T(Py,{themeName:this.state.themeName,themeType:this.state.themeType,theme:this.state.theme,socket:this.socket,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma},this.state.currentTab.tab)});let e=this.state.currentTab.tab.match(/^tab-([-\w]+?)(?:-(\d+))?$/);if(e){var t;let n=(t=this.tabsInfo)==null?void 0:t.find(t=>t.name===e[0]||t.name===`tab-${e[1]}`);return T(ht,{fallback:T(Gc,{}),children:T(Ny,{hostname:this.state.hostname,adminInstance:this.adminInstance,hosts:this.state.hosts,instancesWorker:this.instancesWorker,tab:this.state.currentTab.tab,themeName:this.state.themeName,theme:this.state.theme,expertMode:this.state.expertMode,socket:this.socket,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma,onRegisterIframeRef:e=>this.refConfigIframe=e,onUnregisterIframeRef:e=>{this.refConfigIframe===e&&(this.refConfigIframe=null)},icon:n==null?void 0:n.icon,supportsLoadingMessage:n==null?void 0:n.supportsLoadingMessage},this.state.currentTab.tab)})}}return null}clearLogErrors(){var e,t;(e=this.logsWorker)==null||e.resetErrors(),(t=this.logsWorker)==null||t.resetWarnings()}getCurrentDialog(){if(this.state&&this.state.currentTab&&this.state.currentTab.dialog){if(this.state.currentTab.dialog===`system`)return this.getSystemSettingsDialog();if(this.state.currentTab.dialog===`discovery`)return this.getDiscoveryModal()}return null}getSystemSettingsDialog(){return zy(this.state.eosAccessRole)?T(gd,{eosAccessRole:this.state.eosAccessRole,adminGuiConfig:this.adminGuiConfig,width:this.props.width,currentHost:this.state.currentHost,themeName:this.state.themeName,themeType:this.state.themeType,theme:this.state.theme,onClose:async e=>{var t;d.doNavigate(null);let n=await((t=this.socket)==null?void 0:t.getObject(`system.config`));n&&(e?this.setState({triggerAdapterUpdate:this.state.triggerAdapterUpdate+1,systemConfig:n}):this.setState({systemConfig:n}))},lang:this.state.lang,socket:this.socket,currentTab:this.state.currentTab,expertModeFunc:e=>{if(!zy(this.state.eosAccessRole))return;(window._sessionStorage||window.sessionStorage).removeItem(`App.expertMode`);let t=JSON.parse(JSON.stringify(this.state.systemConfig));t.common.expertMode=e,this.setState({expertMode:e,systemConfig:t})},t:A.t},`systemSettings`):null}handleAlertClose(e,t){t!==`clickaway`&&this.setState({alert:!1})}isCausedByConnectionLoss(e,t){var n;return e.includes(`notConnectedError`)?!0:this.connectionLostAt?!((n=this.socket)!=null&&n.isConnected())||this.connectionLostAt>t-Wy:!1}getConnectionLostText(){return this.connectionLostAt?A.t(`Connection to admin lost. Waiting for reconnection...`):void 0}showAlert(e,t){t!==`error`&&t!==`warning`&&t!==`info`&&t!==`success`&&(t=`info`);let n;n=typeof e==`string`?e:e instanceof Error?e.message||e.toString():e==null?`null`:e.toString(),this.setState({alert:!0,alertType:t,alertMessage:n})}handleDrawerState(e){(window._localStorage||window.localStorage).setItem(`App.drawerState`,e.toString()),this.setState({drawerState:e})}static logout(){bd().then(()=>{un.deleteTokensStatic(),window.location.replace(`/login.html`)}).catch(()=>{window.alert(`Abmeldung konnte nicht bestätigt werden. Bitte erneut versuchen.`)})}allStored(e){this._tempAllStored!==e&&(this._tempAllStored=e,this.forceUpdate())}closeDataNotStoredDialog(){this.setState({dataNotStoredDialog:!1})}confirmDataNotStored(){this._tempAllStored=!0,this.setState({dataNotStoredDialog:!1},()=>{var e,t,n;return this.handleNavigation((e=this.state.dataNotStoredTab)==null?void 0:e.tab,(t=this.state.dataNotStoredTab)==null?void 0:t.subTab,(n=this.state.dataNotStoredTab)==null?void 0:n.param)})}executeCommand(e,t,n,r){if(typeof t==`boolean`&&(n=t,t=void 0),!(this.state.connected&&this.state.ready&&this.socket&&(typeof this.socket.isConnected!=`function`||this.socket.isConnected()))){if(this.pendingCommand){this.showAlert(`EOS stellt die Verbindung noch her. Ein Installations- oder Updatebefehl wartet bereits.`,`warning`);return}let i={cmd:e,host:t,callback:n||void 0,files:r,started:Date.now()};this.pendingCommand=i,this.showAlert(`EOS stellt die Verbindung noch her. Der Befehl wird automatisch gestartet, sobald das System bereit ist.`,`info`);let a=()=>{this.pendingCommand===i&&(this.state.connected&&this.state.ready&&this.socket&&(typeof this.socket.isConnected!=`function`||this.socket.isConnected())?(this.pendingCommand=null,this.pendingCommandTimer=null,this.executeCommand(i.cmd,i.host||void 0,i.callback,i.files)):Date.now()-i.started>=6e4?(this.pendingCommand=null,this.pendingCommandTimer=null,this.showAlert(`Der Befehl wurde nicht gestartet, weil die EOS-Verbindung innerhalb von 60 Sekunden nicht bereit war.`,`error`)):this.pendingCommandTimer=setTimeout(a,500))};this.pendingCommandTimer=setTimeout(a,250)}else this.state.commandRunning?this.showAlert(`Es läuft bereits ein Installations- oder Updatebefehl.`,`warning`):this.state.performed||this.state.commandError?this.setState({cmd:null,cmdDialog:!1,commandError:!1,performed:!1,callback:null,commandHost:null,cmdFiles:null},()=>this.setState({cmd:e,cmdDialog:!0,callback:n,commandHost:t||this.state.currentHost,cmdFiles:r||null})):(console.log(`Execute: ${e}`),this.setState({cmd:e,cmdDialog:!0,callback:n,commandHost:t||this.state.currentHost,cmdFiles:r||null}))}closeCmdDialog(e){this.setState({cmd:null,cmdDialog:!1,commandError:!1,performed:!1,callback:null,commandHost:null,cmdFiles:null},()=>e&&e())}renderWizardDialog(){return this.state.wizard?T(Hl,{executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),host:this.state.currentHost,socket:this.socket,themeName:this.state.themeName,themeType:this.state.themeType,toggleTheme:this.toggleTheme,lang:A.getLanguage(),onClose:e=>{this.setState({wizard:!1,showRedirect:e,redirectCountDown:10,lang:A.getLanguage()},()=>{this.state.showRedirect&&setInterval(()=>{this.state.redirectCountDown>0?this.setState({redirectCountDown:this.state.redirectCountDown-1}):window.location.href=this.state.showRedirect},1e3)})},onNavigate:(e,t,n)=>{d.doNavigate(e,t,n),window.location.reload()}}):null}showRedirectDialog(){if(this.state.showRedirect){var e;return M(u,{open:!0,onClose:()=>{},children:[T(ve,{children:A.t(`Waiting for admin restart...`)}),T(le,{children:T(fe,{children:A.t(`Redirect in %s second(s)`,this.state.redirectCountDown)})}),M(St,{children:[window.sidebar||window.opera&&window.print||window.document.all&&(e=window.external)!=null&&e.AddFavorite?T(V,{onClick:()=>{if(window.sidebar&&this.state.showRedirect)window.sidebar.addPanel(`NexoWatt EOS`,this.state.showRedirect,``);else if(window.opera&&this.state.showRedirect&&window.print){let e=document.createElement(`a`);e.setAttribute(`href`,this.state.showRedirect),e.setAttribute(`title`,`NexoWatt EOS`),e.setAttribute(`rel`,`sidebar`),e.click()}else document.all&&window.external.AddFavorite(this.state.showRedirect,`NexoWatt EOS`)},children:A.t(`Bookmark admin`)}):null,this.state.redirectCountDown?T(V,{variant:`contained`,onClick:()=>this.state.showRedirect&&(window.location.href=this.state.showRedirect),children:A.t(`Go to admin now`)}):null]})]})}return null}renderCommandDialog(){return this.state.cmd&&this.socket?T($s,{onSetCommandRunning:e=>this.setState({commandRunning:e}),onClose:()=>this.closeCmdDialog(()=>this.setState({commandRunning:!1})),visible:this.state.cmdDialog,callback:this.state.callback,onInBackground:()=>this.setState({cmdDialog:!1}),cmd:this.state.cmd,files:this.state.cmdFiles||void 0,errorFunc:()=>this.setState({commandError:!0}),performed:()=>this.setState({performed:!0}),inBackground:this.state.commandError||this.state.performed,commandError:this.state.commandError,socket:this.socket,host:this.state.commandHost||this.state.currentHost,ready:this.state.ready&&this.state.connected,t:A.t}):null}async getLeadingGroupName(e){if(!this.socket)throw Error(`Socket not ready`);try{let t=await this.socket.getForeignObjects(`system.group.*`,`group`),n=Object.values(t||{}).filter(t=>{var n;return t==null||(n=t.common)==null||(n=n.members)==null?void 0:n.includes(e)}),r=n.find(e=>e._id===`system.group.administrator`)||n[0];return r?Pe.getObjectNameFromObj(r,this.socket.systemLang):``}catch(t){return console.warn(`Cannot read groups of ${e}: ${t}`),``}}renderSiteName(){var e;let t=(e=this.state.systemConfig)==null||(e=e.common)==null?void 0:e.siteName;return t?T(`div`,{style:By.siteName,children:t}):null}needsMenuButtonSpace(){var e;return!((e=this.state.systemConfig)!=null&&(e=e.common)!=null&&e.siteName)&&this.state.drawerState===J.closed}renderFloatingButtons(){let e=this.state.drawerState===J.closed,t=this.state.cmd&&!this.state.cmdDialog;return!e&&!t?null:M(F,{sx:By.floatingButtons,children:[e?T(k,{onClick:()=>this.handleDrawerState(J.opened),children:T(xt,{})}):null,t?T(k,{onClick:()=>this.setState({cmdDialog:!0}),children:T(zr,{style:this.state.commandError?By.errorCmd:this.state.performed?Pe.getStyle(this.state.theme,By.performed):By.cmd})}):null]})}renderAlertSnackbar(){return T(qe,{open:this.state.alert,autoHideDuration:6e3,onClose:()=>this.handleAlertClose(),children:T(C,{severity:this.state.alertType,variant:`filled`,onClose:()=>this.handleAlertClose(),children:this.state.alertMessage})})}renderDialogConfirm(){return this.state.dataNotStoredDialog?T(Qt,{title:A.t(`ra_Please confirm`),text:A.t(`ra_Some data are not stored. Discard?`),ok:A.t(`ra_Discard`),cancel:A.t(`ra_Cancel`),onClose:e=>e?this.confirmDataNotStored():this.closeDataNotStoredDialog()}):null}renderChatLeaveDialog(){if(!this.state.chatLeaveDialog)return null;let e=this.state.chatLeaveDialog.reason===`busy`;return T(Qt,{title:A.t(`ra_Please confirm`),text:A.t(e?`The assistant is still working on an answer, which is lost on this tab. Leave anyway?`:`The assistant is not available on this tab and will be closed. Continue?`),ok:A.t(e?`Leave anyway`:`Continue`),cancel:A.t(`ra_Cancel`),onClose:e=>this.onChatLeaveDialog(e)})}renderExpertDialog(){return!this.state.expertModeDialog||!zy(this.state.eosAccessRole)?null:T(wd,{onClose:e=>{if(!zy(this.state.eosAccessRole))this.setState({expertModeDialog:!1,expertMode:!1});else if(e===`openSettings`)d.doNavigate(null,`system`);else if(e){var t;(window._sessionStorage||window.sessionStorage).setItem(`App.expertMode`,this.state.expertMode?`false`:`true`),(t=this.refConfigIframe)==null||(t=t.contentWindow)==null||t.postMessage(`updateExpertMode`,`*`),this.setState({expertModeDialog:!1,expertMode:!this.state.expertMode})}else this.state.expertModeDialog&&this.setState({expertModeDialog:!1})},expertMode:this.state.expertMode})}renderShowGuiSettings(){return this.state.showGuiSettings?M(Qe,{anchorEl:this.state.showGuiSettings,open:!0,onClose:()=>this.setState({showGuiSettings:null}),children:[T(Lt,{onClick:()=>{this.setState({showGuiSettings:null}),this.enableGuiSettings(!0).catch(e=>console.error(`Cannot enable GUI settings: ${e}`))},children:A.t(`Use settings of other browsers`)}),T(Lt,{onClick:()=>{this.setState({showGuiSettings:null}),this.enableGuiSettings(!0,!0).catch(e=>console.error(`Cannot enable GUI settings: ${e}`))},children:A.t(`Use settings of this browser`)}),M(Lt,{onClick:()=>this.setState({showGuiSettings:null}),children:[T(Nt,{children:T(O,{fontSize:`small`})}),T(Yt,{children:A.t(`Cancel`)})]})]}):null}renderExpertModeButton(){var e;let t=(window._sessionStorage||window.sessionStorage).getItem(`App.expertMode`),n=!t||t===`true`==!!((e=this.state.systemConfig)!=null&&e.common.expertMode);return zy(this.state.eosAccessRole)?T(tc,{name:`admin.appBar.expertMode`,config:this.adminGuiConfig,children:T(Rt,{title:`${A.t(`Toggle expert mode`)} ${n?``:` (${A.t(`only in this browser session`)})`}`,slotProps:{popper:{sx:By.tooltip}},children:T(ot,{color:`secondary`,variant:`dot`,sx:{"& .MuiBadge-badge":By.expertBadge},invisible:n,children:T(k,{"data-eos-expert-control":`1`,"aria-label":A.t(`Toggle expert mode`),"aria-pressed":this.state.expertMode,onClick:()=>{var e;if(zy(this.state.eosAccessRole)){if(!!((e=this.state.systemConfig)!=null&&e.common.expertMode)==!this.state.expertMode){var t;(window._sessionStorage||window.sessionStorage).setItem(`App.expertMode`,this.state.expertMode?`false`:`true`),this.setState({expertMode:!this.state.expertMode}),(t=this.refConfigIframe)==null||(t=t.contentWindow)==null||t.postMessage(`updateExpertMode`,`*`)}else if((window._sessionStorage||window.sessionStorage).getItem(`App.doNotShowExpertDialog`)===`true`){var n;(window._sessionStorage||window.sessionStorage).setItem(`App.expertMode`,this.state.expertMode?`false`:`true`),this.setState({expertMode:!this.state.expertMode}),(n=this.refConfigIframe)==null||(n=n.contentWindow)==null||n.postMessage(`updateExpertMode`,`*`)}else this.setState({expertModeDialog:!0})}},style:{color:this.state.expertMode?this.state.theme.palette.expert:void 0},color:`default`,children:T(Mt,{style:{...By.expertIcon,...this.state.expertMode?By.expertIconActive:void 0}})})})})}):null}renderMenuButtons(){let e=this.state.noNotifications.warning+this.state.noNotifications.other;return M(Me,{children:[T(Rt,{title:A.t(`Notifications`),slotProps:{popper:{sx:By.tooltip}},children:T(k,{disableRipple:!e,style:{opacity:e?1:.3},onClick:e?()=>this.setState({notificationsDialog:!0}):void 0,children:T(ot,{badgeContent:this.state.noNotifications.other+this.state.noNotifications.warning,color:this.state.noNotifications.warning>0?`error`:`secondary`,max:99,children:T(Ir,{})})})}),T(tc,{name:`admin.appBar.discovery`,config:this.adminGuiConfig,children:this.state.discoveryAlive?T(Rt,{title:this.state.discoveryProposals?`${A.t(`Discovery devices`)} - ${A.t(`New adapter proposals`)}: ${this.state.discoveryProposals}`:A.t(`Discovery devices`),slotProps:{popper:{sx:By.tooltip}},children:T(k,{onClick:()=>d.doNavigate(null,`discovery`),children:T(ot,{badgeContent:this.state.discoveryProposals,color:`secondary`,max:99,children:T(Xe,{})})})}):T(`div`,{style:{display:`none`}})}),this.toggleThemePossible?T(tc,{name:`admin.appBar.toggleTheme`,config:this.adminGuiConfig,children:T(ne,{toggleTheme:this.toggleTheme,themeName:this.state.themeName,t:A.t})}):null,zy(this.state.eosAccessRole)&&this.state.expertMode?T(Rt,{title:A.t(`Synchronize admin settings between all opened browser windows`),slotProps:{popper:{sx:By.tooltip}},children:T(k,{onClick:e=>this.state.guiSettings?this.enableGuiSettings(!1):this.setState({showGuiSettings:e.target}),style:{color:this.state.guiSettings?this.state.theme.palette.expert:void 0},children:this.state.guiSettings?T(xr,{}):T(Gr,{})})}):null]})}renderToolbar(e){let t=Pe.getStyle(this.state.theme,By.performed);return M(pt,{children:[T(k,{size:`large`,edge:`start`,"data-eos-menu-toggle":`1`,"aria-label":A.t(`Open menu`),"aria-expanded":this.state.drawerState!==J.closed,style:{...By.menuButton,...!e&&this.state.drawerState!==J.closed?By.hide:void 0},onClick:()=>this.handleDrawerState(J.opened),children:T(xt,{})}),M(`div`,{style:By.wrapperButtons,children:[T(F,{className:`eos-header-controls`,children:this.renderMenuButtons()}),T(`div`,{style:By.flexGrow}),this.state.cmd&&!this.state.cmdDialog&&T(k,{size:`large`,onClick:()=>this.setState({cmdDialog:!0}),children:T(zr,{style:this.state.commandError?By.errorCmd:this.state.performed?t:By.cmd})})]}),this.renderSiteName(),this.state.drawerState!==J.opened&&!this.state.expertMode&&window.innerWidth>450&&M(N,{container:!0,style:{...By.avatarNotVisible,...this.state.drawerState===J.opened?void 0:By.avatarVisible},spacing:1,sx:{alignItems:`center`},children:[this.state.user?null:M(F,{component:`div`,style:By.wrapperName,children:[T(L,{children:`admin`}),!this.adminGuiConfig.icon&&this.state.versionAdmin&&M(L,{style:{...By.styleVersion,color:this.state.themeType===`dark`?`#ffffff80`:`#00000080`},children:[`v`,this.state.versionAdmin]})]}),T(N,{children:T(`a`,{href:`#easy`,onClick:e=>e.preventDefault(),style:{color:`inherit`,textDecoration:`none`},children:this.adminGuiConfig.icon?T(`div`,{style:{height:50,width:102,lineHeight:`50px`,background:`white`,borderRadius:5,padding:5},children:T(`img`,{src:this.adminGuiConfig.icon,alt:`logo`,style:{maxWidth:`100%`,maxHeight:`100%`}})}):T(_t,{onClick:()=>this.handleNavigation(`easy`),style:this.state.themeName===`colored`||this.state.themeName===`blue`?By.logoWhite:void 0,alt:`NexoWatt EOS`,src:`img/no-image.svg`})})})]})]})}renderSampleError(){var e,t;let n=(e=this.state.hasGlobalError)==null?void 0:e.message,r=(t=this.state.hasGlobalError)==null?void 0:t.stack;return vy(this.state.hasGlobalError)?M(`div`,{style:{textAlign:`center`,fontSize:22,marginTop:50},children:[T(`h2`,{children:A.t(`The admin was updated. Please load the page anew.`)}),T(V,{variant:`contained`,onClick:()=>window.location.reload(),children:A.t(`Reload`)}),T(`div`,{style:{color:`#888`,fontSize:14,marginTop:20},children:n})]}):M(`div`,{style:{textAlign:`center`,fontSize:22,marginTop:50,height:`calc(100% - 50px)`,overflow:`auto`},children:[T(`h1`,{style:{color:`#F00`},children:`Error in GUI!`}),`Please open the browser console (F12), copy error text from there and create the issue on`,` `,T(`a`,{href:`https://nexowatt.com`,target:`_blank`,rel:`noreferrer`,children:`github`}),T(`br`,{}),`Without this information it is not possible to analyse the error.`,T(`br`,{}),`It should looks like `,T(`br`,{}),T(`img`,{src:`img/browserError.png`,alt:`error`}),T(`br`,{}),`If in the second line you will see`,` `,T(`code`,{style:{color:`#888`,fontFamily:`monospace`,fontSize:16},children:`at :3000/static/js/main.chunk.js:36903`}),` `,`and not the normal file name,`,T(`br`,{}),`please try to reproduce an error with opened browser console. In this case the special "map" files will be loaded and the developers can see the real name of functions and files.`,T(`div`,{style:{color:`#F88`,fontSize:14,marginTop:20},children:n}),T(`pre`,{style:{color:`#F88`,fontSize:12,fontFamily:`monospace`,textAlign:`left`,marginTop:20,padding:20},children:(r||``).toString().split(`
204
+ 或“下一步”使用先前发现过程中的设备`,process:`处理`,processes:`流程`,protocols_group:`协议`,"pushover wizard description":`有了 NexoWatt EOS Pushover 适配器,您就可以自己向安卓和 iOS 设备发送信息,并使用 Pushover API 的各种功能。通过这些功能,您不仅可以发送简单的文本信息,还可以附加图片和其他文件。您还可以通过设置不同的优先级或为不同事件设置特定的声音,根据个人需要定制通知。`,raw:`原始(仅限专家)`,read:`读`,"read only":`只读`,"read operation":`读`,readme:`自述`,reload:`重新加载`,"reload instance":`重新加载程序`,repeat:`重复`,repo_update_hint:`您已配置为运行“beta”存储库的自动升级,请注意,如果 beta 存储库处于活动状态,则此适配器将根据此配置自动提取 beta 更新!`,repository:`repository`,rest:`休息(只读)`,restart:`自动重启`,"restart script":`重启自动化`,restartLoop:`重新启动循环`,role:`角色`,runtime:`运行`,save:`保存`,"saved:":`已保存:`,"scenes wizard description":`使用 NexoWatt EOS 场景适配器,您可以将多个数据点组合到场景中,只需点击一下即可触发复杂的操作。试想一下,创建一个名为 "影院 "的场景,在这个场景中,Harmony Hub 会打开所有必要的设备,调暗灯光,并在屏幕降低时打开阅读灯。您还可以设置群组,根据场景的活动或非活动状态,为每个场景定义两种不同的连接数据点状态。`,schedule:`日程`,schedule_group:`时间表`,script_group:`自动化`,"select member by double click":`双击选择成员`,"sendto operation":`发送操作`,"serial number (UUID) in license is for other device":`许可证中的序列号 (UUID) 用于其他设备`,service_group:`保养`,severity:`严重`,"show (default)":`显示(默认)`,"show ignored":`显示被忽略`,"show suggested":`显示建议`,"show/hide item":`显示/隐藏项目`,"signal-cmb wizard description":`有了 NexoWatt EOS Signal-CMB 适配器,您就可以使用 Signal 信使通过 CallMeBot 服务发送消息。支持文本内容和表情符号,让您的信息栩栩如生。用户可以方便地了解智能家居中发生的事件,即使在旅行中也能始终掌握最新信息。`,silly:`愚蠢`,"sql wizard description":`使用 NexoWatt EOS SQL 适配器,您可以记录数据,以便对其进行长期可视化或历史分析。SQL 适配器将数据写入外部 SQL 数据库,该数据库可在同一主机或不同主机上运行。也支持 SQLite 数据库。与历史适配器相比,SQL 更适合记录大量数据,但需要手动设置。`,stable:`稳定`,"standalone MCP adapter":`独立式 MCP 适配器`,state:`州`,"state permissions":`状态权限`,stepEnd:`步骤 (至当前值)`,stepMiddle:`步骤 (中间)`,stepStart:`步骤 (值至下一个)`,stop_admin:`您正在尝试停止当前的管理实例。您将无法通过浏览器配置NexoWatt EOS。您可以稍后通过CLI命令“ iob start %s”启动admin。你确定吗?`,storage_group:`存储`,string:`串`,subscribe:`订阅`,sunday:`星期日`,switch:`开关`,switch_db_note:`建议不要在此设置中更改数据库的类型,因为不会进行任何数据迁移。最好使用CLI命令“ iob setup custom”,以便将所有数据迁移到新数据库。确定要在此处切换数据库类型吗?`,"telegram wizard description":`有了 NexoWatt EOS Telegram 适配器,您就可以通过 Telegram Messenger 向自己发送信息,这样当系统发生变化时,您就可以随时了解最新情况。除文本信息外,您还可以发送图片和其他文件。您甚至可以发送问题,并直接在 NexoWatt EOS 中处理答案。`,"temporary log level":`临时日志级别`,terminal:`终端`,"third-party_group":`第三方`,"this 2 weeks":`这2个星期`,"this adapter does not allow multiple instances":`此插件不允许多个程序同时运行`,"this day":`这天`,"this month":`这个月`,"this week":`本星期`,"this year":`今年`,time:`时间`,"time-and-date_group":`时间和日期`,timeOffset:`时间偏移`,title:`标题`,"to apply one item":`申请一件`,"to apply with children":`申请项目和儿童`,"to fix these issues and upgrade command run again.":`解决这些问题并再次运行upgrade命令。`,today:`今天`,tooltip_ack:`已确认`,tooltip_copyState:`将状态值复制到剪贴板`,tooltip_customConfig:`设定值`,tooltip_deleteObject:`删除物件`,tooltip_editObject:`编辑物件`,tooltip_editState:`修改状态值`,tooltip_from:`资源`,tooltip_lc:`最后更改时间`,tooltip_quality:`质量`,tooltip_ts:`时间戳记`,tooltip_user:`用户`,tooltip_value:`值`,true:`正常`,ts:`时间戳`,type:`类型`,unit:`单元`,unknown:`未知`,update:`刷新`,"update adapter information":`更新插件信息`,update_info_no_net:`有关更新控制器的信息,请访问以下页面: <a href="https://github.com/NexoWatt EOS/NexoWatt EOS.docs/blob/master/admin/zh-cn/controller-upgrade.md" target="_blank">Update JS-Contoller</a>`,updated:`刷新`,updates:`刷新`,"updating %s to %s...":`更新 %s 到 %s...`,upload:`上传`,"use GitHub for issues":`我们重视您对我们软件的评分和想法。对于错误报告,请使用我们的 GitHub 问题跟踪器,当您留下评论时,请考虑未解决的问题可能会影响您的体验。您的反馈有助于我们改善。感谢您成为我们社区的一部分!`,"user permissions":`用户权限`,users:`用户`,"users permissions":`用户权限`,utility_group:`实用工具`,val:`值`,value:`值`,"value.from":`来自于`,"value.lc":`上次更新`,"value.q":`质量`,"value.ts":`时间戳`,"value.val":`值`,vehicle_group:`车辆`,version:`版本`,"vis-2 wizard description":`NexoWatt EOS Vis 2 适配器是为您的智能家居提供的现代化、功能强大的可视化解决方案。有了这个适配器,您就可以根据自己的意愿,用现代小部件创建自己的可视化系统。无论您是想将仪表盘设计成简约风格还是具有多种功能,都有无限可能。按自己喜欢的方式设计智能家居界面吧!`,vis_group:`NexoWatt EOS.vis`,visualisation_group:`可视化`,"visualization wizard category":`借助此类适配器,您可以构建仪表板以通过 NexoWatt EOS Visu 应用程序或 Web 界面控制您的家庭。`,"visualization-icons_group":`可视化图标`,"visualization-widgets_group":`可视化小部件`,visualization_group:`可视化`,vote:`投票`,vote21:`选票`,votes:`票数`,votes2:`选票`,warn:`警告`,weather:`天气`,"weather wizard category":`通过天气适配器,您可以获得当地天气信息并将其用于可视化和自动化。`,weather_group:`天气`,"weatherunderground wizard description":`有了 NexoWatt EOS Weather Underground 适配器,您就可以在 NexoWatt EOS 中使用天气数据。例如,这意味着下雨时可以提醒您关闭打开的窗户,或者在暴风雨来临时自动收回遮阳篷。这样,您的智能家居就能更好地适应当前的天气条件,确保更加舒适和安全。`,wetty:`Wetty`,"with js-controller":`带有 js 控制器`,"wizard adapter general description":`从您希望直接安装的适配器中进行选择。您可以稍后在 "适配器 "选项卡中安装其他适配器。`,"wizard welcome description":`此向导将引导您完成新 ioBroker 安装的最重要设置。只需几分钟,所有设置以后都可以更改。`,write:`写`,"write operation":`写`,wrongPassword:`用户名或密码无效`,yesterday:`昨天`,"Åland Islands":`奥兰群岛`,"Serial port":`串口`,"TCP port":`TCP 端口`,"UDP port":`UDP 端口`,"USB device":`USB 设备`,Bluetooth:`蓝牙`,GPIO:`GPIO`,"Also registered by: %s":`也被以下实例注册:%s`,Resource:`资源`,Registered:`注册时间`,"The instance runs and holds the resource":`实例正在运行并占用该资源`,"The instance does not run and would take the resource when started":`实例未运行,启动时将占用该资源`,"In use":`使用中`,Reserved:`已预留`,"Used resources":`已占用的资源`,"No instance has registered a resource":`没有实例注册资源`,'Adapter "%s" allows only one instance, and %s exists already':`适配器 "%s" 只允许一个实例,而 %s 已存在`,'Adapter "%s" allows only one instance per host, and %s exists already on host "%s"':`适配器 "%s" 每个主机只允许一个实例,而 %s 已存在于主机 "%s" 上`,"The admin was updated. Please load the page anew.":`管理界面已更新,请重新加载页面。`,"The connection is not ready yet. Please wait a moment and try again.":`连接尚未就绪。请稍等片刻后重试。`},gy=`admin.chunkReloadTs`,_y=2e4;function vy(e){let{message:t,name:n}=typeof e==`object`&&e?e:{message:e};return typeof t==`string`?t.includes(`Failed to fetch dynamically imported module`)||t.includes(`error loading dynamically imported module`)||t.includes(`Importing a module script failed`)||t.includes(`Unable to preload CSS`)||n===`ChunkLoadError`:!1}function yy(){let e=0;try{e=parseInt(window.sessionStorage.getItem(gy)||`0`,10)||0}catch{}if(Date.now()-e<_y)return!1;try{window.sessionStorage.setItem(gy,Date.now().toString())}catch{}return window.location.reload(),!0}function by(e){yy()&&e.preventDefault()}function xy(e){return Ut.lazy(()=>e().catch(e=>{if(vy(e)&&yy())return new Promise(()=>{});throw e}))}x();var Sy=[`tab-overview`,`tab-adapters`,`tab-instances`,`tab-logs`],Cy=[`tab-overview`,`tab-intro`,`tab-adapters`,`tab-instances`,`tab-objects`,`tab-enums`,`tab-logs`,`tab-users`,`tab-hosts`,`tab-files`,`tab-devicemanager`],wy=xy(()=>r(()=>import(`./Overview-JgjcHwlz.js`),__vite__mapDeps([36,1,2,3,17,25,26,28,37,38]),import.meta.url)),Ty=xy(()=>r(()=>import(`./Adapters-BCGeX2v7.js`),__vite__mapDeps([39,1,2,3,6,7,16,23,29,37,40,8,26,30,41,10,42,43,44,45]),import.meta.url)),Ey=xy(()=>r(()=>import(`./Instances-DxTOzFus.js`),__vite__mapDeps([46,2,1,3,7,11,21,24,26,29,37,40,8,30,43,44,45,47,48,49,50]),import.meta.url)),Dy=xy(()=>r(()=>import(`./Intro-CYBGeZtu.js`),__vite__mapDeps([51,1,2,3,8,14,15,17,20,24,26,37,50]),import.meta.url)),Oy=xy(()=>r(()=>import(`./Logs-CVNC-4S8.js`),__vite__mapDeps([52,1,2,3,16,27,37]),import.meta.url)),ky=xy(()=>r(()=>import(`./Files-BPK84lYU.js`),__vite__mapDeps([53,2,1,3,37,44,45]),import.meta.url)),Ay=xy(()=>r(()=>import(`./Objects-Cqm9Rvym.js`),__vite__mapDeps([54,2,1,3,5,18,23,32,35,34,37,48,45,42,44,38]),import.meta.url)),jy=xy(()=>r(()=>import(`./Users-D19YlRCD.js`),__vite__mapDeps([55,1,2,3,13,19,30,37,56]),import.meta.url)),My=xy(()=>r(()=>import(`./Enums-D3n1pOtc.js`),__vite__mapDeps([57,2,1,3,9,13,18,20,28,37,56]),import.meta.url)),Ny=xy(()=>r(()=>import(`./CustomTab-B4ywHrnT.js`),__vite__mapDeps([58,2,1,3,37,48]),import.meta.url)),Py=xy(()=>r(()=>import(`./ConfigManager-B_sJf5_w.js`),__vite__mapDeps([59,1,2,3,22]),import.meta.url)),Fy=xy(()=>r(()=>import(`./Hosts--Jr6oLf2.js`),__vite__mapDeps([60,2,1,3,11,12,14,29,37,41,10,42,43,44,45,49]),import.meta.url)),Iy=xy(()=>r(()=>import(`./EasyMode-A2E3hSMo.js`),__vite__mapDeps([61,1,2,3,47,37,48]),import.meta.url)),Ly={},Ry=()=>String(window.NEXOWATT_EOS_ACCESS_ROLE||`unknown`).toLowerCase(),zy=(e=Ry())=>[`admin`,`service`].includes(e);(window.location.search||``).replace(/^\?/,``).split(`&`).forEach(e=>{let t=e.split(`=`);t[0]&&(Ly[t[0]]=t[1]===void 0||decodeURIComponent(t[1]))});var By={root:{display:`flex`,height:`100%`},appBar:e=>({transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})}),logoWhite:{backgroundColor:`#FFFFFF`},appBarShift:e=>({width:`calc(100% - 180px)`,ml:180/8,transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}),appBarShiftEdit:e=>({width:`calc(100% - 250px)`,ml:250/8,transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}),appBarShiftCompact:e=>({width:`calc(100% - 50px)`,ml:50/8,transition:e.transitions.create([`margin`,`width`],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}),menuButton:{marginRight:16},hide:{display:`none`},content:e=>{var t,n,r;return{flexGrow:1,padding:1,paddingTop:0,transition:e.transitions.create(`margin`,{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowY:`auto`,mt:`${(t=e.mixins.toolbar)==null?void 0:t.minHeight}px`,"@media (min-width:0px) and (orientation: landscape)":{mt:(n=e.mixins.toolbar[`@media (min-width:0px) and (orientation: landscape)`])!=null&&n.minHeight?`${e.mixins.toolbar[`@media (min-width:0px) and (orientation: landscape)`].minHeight}px`:void 0},"@media (min-width:600px)":{mt:(r=e.mixins.toolbar[`@media (min-width:600px)`])!=null&&r.minHeight?`${e.mixins.toolbar[`@media (min-width:600px)`].minHeight}px`:void 0}}},contentMargin:{ml:-180/8},contentMarginEdit:{ml:-250/8},contentMarginCompact:{ml:-50/8},contentShift:e=>({transition:e.transitions.create(`margin`,{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),ml:0}),expertIcon:{width:22,height:22},expertIconActive:{},baseSettingsButton:{color:`red`},avatarNotVisible:{opacity:0,marginLeft:5,transition:`opacity 0.3s`,width:`initial`},avatarVisible:{opacity:1},cmd:{animation:`1s linear infinite alternate $myEffect`,opacity:.2},errorCmd:{color:`#a90000`,animation:`0.2s linear infinite alternate myEffect2`},performed:e=>({color:e.palette.mode===`light`?`#3bfd44`:`#388e3c`,animation:`0.2s linear infinite alternate myEffect2`}),wrapperButtons:{display:`flex`,marginRight:`auto`,overflowY:`auto`,alignItems:`center`},flexGrow:{flexGrow:2},floatingButtons:{position:`fixed`,top:4,left:4,zIndex:1200,display:`flex`,gap:.5},contentNoAppBar:{mt:0,"@media (min-width:0px) and (orientation: landscape)":{mt:0},"@media (min-width:600px)":{mt:0}},contentMenuButtonSpace:{pt:`44px`},styleVersion:{fontSize:10},wrapperName:{display:`flex`,flexDirection:`column`,marginRight:10},expertBadge:{mt:`11px`,mr:`11px`},siteName:{lineHeight:`48px`,fontSize:24,marginLeft:10,marginRight:10,display:`inline-block`,verticalAlign:`middle`},tooltip:{pointerEvents:`none`}};function Vy(e){return e.native||={localStorage:{},sessionStorage:{}},e.native.localStorage||(e.native={localStorage:e.native,sessionStorage:{}}),e.native.sessionStorage||={},e}var Hy=1e4,Uy=5e3,Wy=5e3,Gy=1e3;function Ky(e,t){let n;return Promise.race([e,new Promise((e,r)=>{n=setTimeout(()=>r(Error(`${t} got no answer`)),Hy)})]).finally(()=>clearTimeout(n))}function qy(e,t){for(let n of[`localStorage`,`sessionStorage`])for(let[r,i]of Object.entries(t[n]))i===null?delete e[n][r]:e[n][r]=i}var Jy={_id:``,type:`state`,common:{name:`Admin settings`,type:`boolean`,read:!0,write:!1,role:`state`},native:{localStorage:{},sessionStorage:{}}},Yy=class e extends d{constructor(t){super(t),j(this,`translations`,void 0),j(this,`_tempAllStored`,!0),j(this,`refConfigIframe`,null),j(this,`expireInSecInterval`,null),j(this,`toggleThemePossible`,void 0),j(this,`adminGuiConfig`,void 0),j(this,`logsWorker`,null),j(this,`instancesWorker`,null),j(this,`hostsWorker`,null),j(this,`adaptersWorker`,null),j(this,`objectsWorker`,null),j(this,`repoInfoPromise`,null),j(this,`repoInfoRun`,0),j(this,`guiSettings`,null),j(this,`guiSettingsChanges`,{localStorage:{},sessionStorage:{}}),j(this,`guiSettingsWrite`,Promise.resolve()),j(this,`localStorageTimer`,null),j(this,`guiSettingsRetryTimer`,null),j(this,`languageSet`,!1),j(this,`socket`,null),j(this,`adminInstance`,``),j(this,`newsSubscription`,void 0),j(this,`newsSubscribeTimer`,null),j(this,`doNotAskSessionExpiration`,0),j(this,`tabsInfo`,null),j(this,`pendingCommandTimer`,null),j(this,`pendingCommand`,null),j(this,`chatBusy`,!1),j(this,`lastHash`,window.location.hash),j(this,`chatLeaveConfirmed`,!1),j(this,`connectionLostAt`,0),j(this,`localStorageGetItem`,e=>{var t;return(t=this.guiSettings)==null?void 0:t.native.localStorage[e]}),j(this,`localStorageSetItem`,(e,t)=>{if(t===null)t=`null`;else if(t===void 0){this.localStorageRemoveItem(e);return}this.guiSettings&&(this.guiSettings.native.localStorage[e]=t.toString(),this.guiSettingsChanges.localStorage[e]=t.toString()),this.localStorageSave()}),j(this,`localStorageRemoveItem`,e=>{this.guiSettings&&Object.prototype.hasOwnProperty.call(this.guiSettings.native.localStorage,e)&&(delete this.guiSettings.native.localStorage[e],this.guiSettingsChanges.localStorage[e]=null,this.localStorageSave())}),j(this,`sessionStorageGetItem`,e=>{var t;return(t=this.guiSettings)==null?void 0:t.native.sessionStorage[e]}),j(this,`sessionStorageSetItem`,(e,t)=>{if(t===null)t=`null`;else if(t===void 0){this.sessionStorageRemoveItem(e);return}this.guiSettings&&(this.guiSettings.native.sessionStorage[e]=t.toString(),this.guiSettingsChanges.sessionStorage[e]=t.toString()),this.localStorageSave()}),j(this,`sessionStorageRemoveItem`,e=>{this.guiSettings&&Object.prototype.hasOwnProperty.call(this.guiSettings.native.sessionStorage,e)&&(delete this.guiSettings.native.sessionStorage[e],this.guiSettingsChanges.sessionStorage[e]=null,this.localStorageSave())}),j(this,`toggleTranslation`,()=>{(window._localStorage||window.localStorage).setItem(`App.noTranslation`,this.state.noTranslation?`false`:`true`),this.setState({noTranslation:!this.state.noTranslation})}),j(this,`onEosPolicyChanged`,e=>{var t;let n=e instanceof CustomEvent?e.detail:null;if(!n||typeof n!=`object`||!(`policy`in n))return;let r=n.policy,i=`unknown`;if(r&&typeof r==`object`&&`authenticated`in r&&r.authenticated===!0&&`role`in r&&typeof r.role==`string`&&[`admin`,`service`,`installer`,`enduser`].includes(r.role)&&!(`mustChangePassword`in r&&r.mustChangePassword===!0)&&(i=r.role),window.NEXOWATT_EOS_ACCESS_ROLE=i,i===this.state.eosAccessRole)return;let a=[`admin`,`service`].includes(i),o=(window._sessionStorage||window.sessionStorage).getItem(`App.expertMode`);this.setState({eosAccessRole:i,expertMode:a&&(o?o===`true`:!!((t=this.state.systemConfig)!=null&&t.common.expertMode)),expertModeDialog:!1})}),j(this,`updateHosts`,e=>{let t=JSON.parse(JSON.stringify(this.state.hosts));e.forEach(e=>{let n=t.find(t=>t._id===e.id);if(n){let r=t.indexOf(n);e.obj?t[r]=e.obj:t.splice(r,1)}else t.push(e.obj)}),this.setState({hosts:t})}),j(this,`repoChangeHandler`,()=>{this.readRepoAndInstalledInfo(this.state.currentHost,{update:!0}).then(()=>console.log(`Repo updated!`))}),j(this,`adaptersChangeHandler`,e=>{let t=JSON.parse(JSON.stringify(this.state.installed)),n=!1;e.forEach(e=>{let r=e.id.split(`.`)[2];e.type===`deleted`||!e.obj?t[r]&&(n=!0,delete t[r]):t[r]?Object.keys(t[r]).forEach(i=>{e.obj&&t[r][i]!==e.obj.common[i]&&(t[r][i]=e.obj.common[i],n=!0)}):(t[r]={version:e.obj.common.version},n=!0)}),n&&this.setState({installed:t})}),j(this,`onSessionExpiration`,e=>new Promise(t=>{let n=Math.max(0,e-Date.now()+500);this.expireInSecInterval&&=(clearInterval(this.expireInSecInterval),null),this.expireInSecInterval=setTimeout(()=>{un.deleteTokensStatic(),window.location.replace(`/login.html`)},n),t(!1)})),j(this,`onDiscoveryAlive`,(e,t)=>{!!(t!=null&&t.val)!==this.state.discoveryAlive&&this.setState({discoveryAlive:!!(t!=null&&t.val)})}),j(this,`onDiscoveryObject`,(e,t)=>{let n=Vv(t);n!==this.state.discoveryProposals&&this.setState({discoveryProposals:n})}),j(this,`getDiscoveryModal`,()=>this.state.systemConfig&&this.socket?T(qv,{themeType:this.state.themeType,themeName:this.state.themeName,theme:this.state.theme,socket:this.socket,systemConfig:this.state.systemConfig.common,dateFormat:this.state.systemConfig.common.dateFormat,currentHost:this.state.currentHost,defaultLogLevel:this.state.systemConfig.common.defaultLogLevel||`info`,repository:this.state.repository,hosts:this.state.hosts,onClose:()=>d.doNavigate(null)}):null),j(this,`handleNewNotifications`,async e=>{let t={warning:0,other:0};if(!e)this.setState({noNotifications:t,notifications:{}});else{for(let n of Object.values(e))if(n!=null&&n.result){for(let[e,r]of Object.entries(n.result))if(e!==`system`)for(let e of Object.values(r.categories))for(let n of Object.values(e.instances)){let r=e.severity===`alert`;t[r?`warning`:`other`]+=n.messages.length}}if(this.instancesWorker){let n=await this.instancesWorker.getObjects();this.setState({noNotifications:t,notifications:{notifications:e,instances:n}})}}}),j(this,`showAdaptersWarning`,async(e,t)=>{if(!e||!e[t]||!e[t].result)return;let n=e[t].result;if(n!=null&&n.system&&Object.keys(n.system.categories).length){var r;await((r=this.instancesWorker)==null?void 0:r.getObjects().then(e=>e&&this.setState({showHostWarning:{host:t,instances:e,result:n}})))}}),j(this,`onNews`,async(e,t)=>{if(!this.socket)throw Error(`Socket not initialized`);try{var n;if(!((n=this.state.systemConfig)!=null&&n.common.licenseConfirmed))return;let e=await this.socket.getState(this.ownNewsState(`newsLastId`));if(t!=null&&t.val){let n=null;try{n=JSON.parse(t.val)}catch{console.error(`Cannot parse news: ${t.val}`)}if(n!=null&&n.length&&n[0].id!==(e==null?void 0:e.val)){var r,i,a;let t=await this.socket.getUuid(),o=await this.socket.getHostInfo(this.state.currentHost).catch(()=>null),s=await this.socket.getCompactInstances().catch(()=>null),c;if(this.state.currentHost){let e=await this.socket.getDiagData(this.state.currentHost,`normal`);c=e==null?void 0:e.objectsType}let l=await((r=this.objectsWorker)==null?void 0:r.getObjects()),u=Object.keys(l||{}).length;await((i=this.repoInfoPromise)==null?void 0:i.catch(()=>{}));let d=Ad(n,e==null?void 0:e.val,{lang:A.getLanguage(),adapters:this.state.adapters,instances:s||{},nodeVersion:o&&o[`Node.js`]||`?`,npmVersion:o&&o.NPM||`?`,jsControllerVersion:((a=this.state.installed)==null||(a=a[`js-controller`])==null?void 0:a.version)||``,os:o&&o.os||`?`,activeRepo:this.state.systemConfig.common.activeRepo,uuid:t,objectsDbType:c||`jsonl`,noObjects:u});d!=null&&d.length&&this.setState({showNews:{checkNews:d,lastNewsId:e==null?void 0:e.val}})}}}catch(e){console.error(`Could not process news: ${e.stack}`),this.showAlert(`Could not process news: ${e.stack}`,`error`)}}),j(this,`logsWorkerChanged`,e=>{var t;(t=this.logsWorker)==null||t.setCurrentHost(e)}),j(this,`onHashChanged`,()=>{let t=window.location.hash;this.chatBlocksLeaving(e.tabOfHash(t))?(window.history.replaceState(null,``,this.lastHash||`${window.location.pathname}${window.location.search}`),this.setState({chatLeaveDialog:{target:{hash:t},reason:`busy`}})):(this.lastHash=t,this.setState({currentTab:d.getLocation()},()=>this.setCurrentTabTitle()))}),j(this,`toggleTheme`,t=>{let n=this.state.themeName,r=t||Pe.toggleTheme(n),i=e.createTheme(r);this.setState({theme:i,themeName:r,themeType:e.getThemeType(i)},()=>{var e,t;(e=this.refConfigIframe)==null||(e=e.contentWindow)==null||e.postMessage(`updateTheme`,`*`),(t=this.refConfigIframe)==null||(t=t.contentWindow)==null||t.postMessage({type:`updateTheme`,themeName:r},`*`)})}),j(this,`handleNavigation`,(e,t,n)=>{var r;if(e){if(this.chatBlocksLeaving(e)){this.setState({chatLeaveDialog:{target:{tab:e,subTab:t,param:n},reason:`busy`}});return}this._tempAllStored?(d.doNavigate(e,t,n),this.lastHash=window.location.hash,this.setState({currentTab:d.getLocation()})):this.setState({dataNotStoredDialog:!0,dataNotStoredTab:{tab:e,subTab:t,param:n}})}(this.props.width===`xs`||this.props.width===`sm`)&&this.handleDrawerState(J.closed),e||=((r=this.state.currentTab)==null?void 0:r.tab)||``,this.setTitle(e.replace(`tab-`,``))});try{window.alert=e=>{let t=(e==null?void 0:e.toString())??``,n=Date.now();this.isCausedByConnectionLoss(t,n)?console.warn(`Not shown, as the connection to admin is lost: ${t}`):t.toLowerCase().includes(`error`)?(console.error(t),setTimeout(()=>{this.isCausedByConnectionLoss(t,n)?console.warn(`Not shown, as the connection to admin is lost: ${t}`):this.showAlert(t,`error`)},Gy)):(console.log(t),this.showAlert(t,`info`))}}catch{}this.translations=zt;let n={en:ay,de:oy,ru:sy,pt:cy,nl:ly,fr:uy,it:dy,es:fy,pl:py,uk:my,"zh-cn":hy};Object.keys(n).forEach(e=>Object.assign(this.translations[e],n[e])),A.extendTranslations(this.translations),A.setLanguage((window.navigator.language||window.navigator.userLanguage||`en`).substring(0,2).toLowerCase()),this.adminGuiConfig={admin:{menu:{},settings:{},adapters:{},login:{}}};let r=window.vendorPrefix;if(this.toggleThemePossible=!r||r===`@@vendorPrefix@@`||r===`MV`,Ly.login){let t=e.createTheme();this.state={login:!0,theme:t,themeName:e.getThemeName(t),themeType:e.getThemeType(t)}}else{let t=(window._localStorage||window.localStorage).getItem(`App.drawerState`),n;n=t?parseInt(t,10):this.props.width===`xs`?J.closed:J.opened;let r=e.createTheme();Object.defineProperty(window,"configNotSaved",{get:()=>this.state.configNotSaved,set:e=>{let t=!e;t!==this._tempAllStored&&(this._tempAllStored=t,this.forceUpdate())},configurable:!0}),this.state={connected:!1,progress:0,ready:!1,lang:`en`,hostname:window.location.hostname,expertMode:!1,eosAccessRole:Ry(),chatDockWidth:0,hosts:[],currentHost:``,currentHostName:``,ownHost:``,currentTab:d.getLocation(),systemConfig:null,user:null,repository:{},installed:{},waitForRestart:!1,tabs:null,config:{},stateChanged:!1,theme:r,themeName:e.getThemeName(r),themeType:e.getThemeType(r),alert:!1,alertType:`info`,alertMessage:``,drawerState:n,editMenuList:!1,tab:null,dataNotStoredDialog:!1,dataNotStoredTab:null,chatLeaveDialog:null,baseSettingsOpened:!1,unsavedDataInDialog:!1,systemSettingsOpened:!1,cmd:null,cmdDialog:!1,commandHost:null,commandError:!1,commandRunning:!1,wizard:!0,performed:!1,showTips:!1,discoveryAlive:!1,discoveryProposals:0,readTimeoutMs:Xv.getReadTimeoutMs(),showSlowConnectionWarning:!1,versionAdmin:``,forceUpdateAdapters:0,noTranslation:(window._localStorage||window.localStorage).getItem(`App.noTranslation`)!==`false`,cloudNotConnected:!1,cloudReconnect:0,showRedirect:``,redirectCountDown:0,triggerAdapterUpdate:0,updating:!1,notificationsDialog:!1,notifications:{},noNotifications:{warning:0,other:0},configNotSaved:!1,login:!1,showHostWarning:null,adapters:{},askForTokenRefresh:null},this.logsWorker=null,this.instancesWorker=null,this.hostsWorker=null}}static getDerivedStateFromError(e){return{hasGlobalError:e}}componentDidCatch(e){this.setState({hasGlobalError:e})}static async checkSsoResponse(){let e=new URLSearchParams(window.location.search);if(e.has(`ssoCode`)){try{let t=await fetch(lr(`sso-token`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({code:e.get(`ssoCode`)})}),n=await t.json();t.ok&&n.access_token&&un.saveTokensStatic(n,!0)}catch(e){console.error(`Cannot finish the single sign-on: ${e}`)}window.localStorage.removeItem(`oidc_id_token`),window.location.search=``}else if(e.has(`id_token`)&&(window.localStorage.setItem(`oidc_id_token`,e.get(`id_token`)),window.location.search=``),e.has(`ssoLoginResponse`)){let t=JSON.parse(e.get(`ssoLoginResponse`));un.saveTokensStatic(t,!0),window.location.search=``}}setUnsavedData(e){e!==this.state.unsavedDataInDialog&&this.setState({unsavedDataInDialog:e})}mustInvertBackground(e){if(!e)return!1;let t=Pe.invertColor(e,!0);return t===`#FFFFFF`&&this.state.themeType===`dark`||t===`#000000`&&this.state.themeType===`light`}localStorageSave(){this.localStorageTimer&&clearTimeout(this.localStorageTimer),this.guiSettingsRetryTimer&&=(clearTimeout(this.guiSettingsRetryTimer),null),this.localStorageTimer=setTimeout(()=>{this.localStorageTimer=null,this.guiSettingsWrite=this.guiSettingsWrite.then(()=>this.writeGuiSettings())},200)}async writeGuiSettings(){let e=this.guiSettingsChanges;if(!this.guiSettings||!this.socket||!Object.keys(e.localStorage).length&&!Object.keys(e.sessionStorage).length)return;this.guiSettingsChanges={localStorage:{},sessionStorage:{}};let t=`system.adapter.${this.adminInstance}.guiSettings`;try{let n=Vy(await Ky(this.socket.getObject(t),`Reading`)||JSON.parse(JSON.stringify(this.guiSettings)));qy(n.native,e),await Ky(this.socket.setObject(t,n),`Writing`),this.guiSettings&&(this.guiSettings=n,qy(this.guiSettings.native,this.guiSettingsChanges))}catch(r){var n;for(let t of[`localStorage`,`sessionStorage`])this.guiSettingsChanges[t]={...e[t],...this.guiSettingsChanges[t]};console.warn(`Could not save "${t}": ${r.message}`),(n=this.socket)!=null&&n.isConnected()&&!this.localStorageTimer&&!this.guiSettingsRetryTimer&&(this.guiSettingsRetryTimer=setTimeout(()=>{this.guiSettingsRetryTimer=null,this.localStorageSave()},Uy))}}async getGUISettings(){let e=null;if(!this.adminInstance||!this.socket)return;let t=!1;try{e=await this.socket.getObject(`system.adapter.${this.adminInstance}.guiSettings`)}catch(e){t=!0,console.warn(`Could not get "system.adapter.${this.adminInstance}.guiSettings": ${e.message}`)}if(!e&&!t){e=JSON.parse(JSON.stringify(Jy));try{await this.socket.setObject(`system.adapter.${this.adminInstance}.guiSettings`,e)}catch(e){console.warn(`Could not update "system.adapter.${this.adminInstance}.guiSettings": ${e.message}`)}}let n;try{n=await this.socket.getState(`system.adapter.${this.adminInstance}.guiSettings`)}catch{n={val:!1}}if(n!=null&&n.val){this.guiSettings=Vy(e||JSON.parse(JSON.stringify(Jy))),(Object.keys(this.guiSettingsChanges.localStorage).length||Object.keys(this.guiSettingsChanges.sessionStorage).length)&&(qy(this.guiSettings.native,this.guiSettingsChanges),this.localStorageSave()),window._localStorage={getItem:this.localStorageGetItem,setItem:this.localStorageSetItem,removeItem:this.localStorageRemoveItem},window._sessionStorage={getItem:this.sessionStorageGetItem,setItem:this.sessionStorageSetItem,removeItem:this.sessionStorageRemoveItem};let t=(window._localStorage||window.localStorage).getItem(`App.drawerState`),n;n=t?parseInt(t,10):this.props.width===`xs`?J.closed:J.opened;let r=(window._localStorage||window.localStorage).getItem(`App.noTranslation`)!==`false`;this.setState({guiSettings:!0,drawerState:n,noTranslation:r},()=>{Pe.getThemeName()!==this.state.theme.name&&this.toggleTheme(Pe.getThemeName())})}else this.state.guiSettings&&(window._localStorage=void 0,window._sessionStorage=void 0,this.setState({guiSettings:!1}))}async enableGuiSettings(e,t){if(e&&!this.guiSettings&&this.socket){let e=await this.socket.getObject(`system.adapter.${this.adminInstance}.guiSettings`);this.guiSettings=e||JSON.parse(JSON.stringify(Jy)),t||!this.guiSettings.native||!Object.keys(this.guiSettings.native).length?(this.guiSettings.native={localStorage:{},sessionStorage:{}},Object.keys(window.localStorage).forEach(e=>{e!==`getItem`&&e!==`setItem`&&e!==`removeItem`&&e!==`clear`&&e!==`key`&&e!==`length`&&(this.guiSettings.native.localStorage[e]=window.localStorage.getItem(e))}),Object.keys(window.sessionStorage).forEach(e=>{e!==`getItem`&&e!==`setItem`&&e!==`removeItem`&&e!==`clear`&&e!==`key`&&e!==`length`&&(this.guiSettings.native.sessionStorage[e]=window.sessionStorage.getItem(e))}),await this.socket.setObject(`system.adapter.${this.adminInstance}.guiSettings`,this.guiSettings),await this.socket.setState(`system.adapter.${this.adminInstance}.guiSettings`,{val:!0,ack:!0})):(await this.socket.setState(`system.adapter.${this.adminInstance}.guiSettings`,{val:!0,ack:!0}),window.location.reload()),await this.getGUISettings()}else if(!e&&this.guiSettings&&this.socket){if(!await this.socket.getObject(`system.adapter.${this.adminInstance}.guiSettings`))try{await this.socket.setObject(`system.adapter.${this.adminInstance}.guiSettings`,Jy)}catch(e){console.error(`Cannot create system.adapter.${this.adminInstance}.guiSettings": ${e}`)}window._localStorage=void 0,window._sessionStorage=void 0,Object.keys(window.localStorage).forEach(e=>window.localStorage.removeItem(e)),Object.keys(window.sessionStorage).forEach(e=>window.sessionStorage.removeItem(e)),Object.keys(this.guiSettings.native.localStorage).forEach(e=>window.localStorage.setItem(e,this.guiSettings.native.localStorage[e])),Object.keys(this.guiSettings.native.sessionStorage).forEach(e=>window.sessionStorage.setItem(e,this.guiSettings.native.sessionStorage[e])),this.guiSettings=null,this.guiSettingsChanges={localStorage:{},sessionStorage:{}},this.guiSettingsRetryTimer&&=(clearTimeout(this.guiSettingsRetryTimer),null);try{await this.socket.setState(`system.adapter.${this.adminInstance}.guiSettings`,{val:!1,ack:!0})}catch(e){window.alert(`Cannot disable settings: ${e}`)}this.setState({guiSettings:!1})}}componentDidMount(){Ly.login?window.location.replace(`/login.html`):(un.deleteTokensStatic(),window.addEventListener(`vite:preloadError`,by),window.addEventListener(`nexowatt-eos-policy`,this.onEosPolicyChanged),this.state.login||(window.addEventListener(`hashchange`,this.onHashChanged,!1),this.state.currentTab.tab?this.setTitle(this.state.currentTab.tab.replace(`tab-`,``)):this.handleNavigation(`tab-intro`),this.socket=new un({protocol:window.location.protocol,host:window.location.hostname,name:`eos-admin`,admin5only:!0,port:e.getPort(),cmdTimeout:this.state.readTimeoutMs,autoSubscribes:[`system.adapter.*`],autoSubscribeLog:!0,tokenTimeoutHandler:this.onSessionExpiration,onProgress:async e=>{if(this.socket){if(e===_.CONNECTING)this.state.connected&&(this.connectionLostAt=Date.now()),this.setState({connected:!1});else if(e===_.READY)try{let e=await this.socket.getVersion();console.log(`Stored version: ${this.state.versionAdmin}, new version: ${e.version}`),this.state.versionAdmin&&this.state.versionAdmin!==e.version&&(window.alert(`New adapter version detected. Reloading...`),setTimeout(()=>window.location.reload(),500)),this.adminInstance||=await this.socket.getCurrentInstance(),await this.getGUISettings();let n={connected:!0,progress:100,versionAdmin:e.version,disableMcp:!0};if(this.state.cmd&&/\b(?:admin|eos-admin)(?:@[-.\w]+)?(?:\s+--debug)?$/.test(this.state.cmd))n.commandRunning=!1,n.forceUpdateAdapters=this.state.forceUpdateAdapters+1,this.closeCmdDialog(()=>{this.setState(n),window.location.reload()});else{try{var t;let e=await this.socket.getObject(`system.adapter.${this.adminInstance}`);n.disableMcp=!0,e!=null&&(t=e.native)!=null&&t.language?e.native.language!==A.getLanguage()&&(console.log(`Language changed to ${e.native.language}`),A.setLanguage(e.native.language),this.languageSet?window.location.reload():this.languageSet=!0):this.socket.systemLang!==A.getLanguage()&&(console.log(`Language changed to ${this.socket.systemLang}`),A.setLanguage(this.socket.systemLang),this.languageSet?window.location.reload():this.languageSet=!0)}catch(e){console.error(`Cannot read admin settings: ${e}`)}this.setState(n)}}catch(e){console.error(`Cannot read version: ${e}`),e===`ioBroker is not connected`&&(setInterval(()=>{this.state.cloudReconnect>0?this.setState({cloudReconnect:this.state.cloudReconnect-1}):window.location.reload()},1e3),this.setState({cloudNotConnected:!0,cloudReconnect:10}))}else this.setState({connected:!0,progress:Math.round(_.READY/e*100)})}},onReady:async()=>{var e;if(!this.socket)throw Error(`Socket not initialized`);this.adminGuiConfig={admin:{menu:{},settings:{},adapters:{},login:{}},...(e=this.socket)==null||(e=e.systemConfig)==null||(e=e.native)==null?void 0:e.vendor},this.adminGuiConfig.admin.menu||={},this.adminGuiConfig.admin.settings||={},this.adminGuiConfig.admin.adapters||={},this.adminGuiConfig.admin.login||={};try{var t,n;try{var r;this.adminInstance||=await this.socket.getCurrentInstance(),this.adminInstance||console.error(`Cannot read admin instance!`);let e=await this.socket.getObject(`system.adapter.${this.adminInstance}`);e!=null&&(r=e.native)!=null&&r.language?A.setLanguage(e.native.language):A.setLanguage(this.socket.systemLang)}catch(e){console.warn(`Cannot read the settings of this admin: ${e.message}`),A.setLanguage(this.socket.systemLang)}this.languageSet=!0;let e=!1;try{e=await this.socket.getIsEasyModeStrict()}catch(e){console.warn(`Cannot read the easy mode: ${e.message}`)}if(await this.getGUISettings(),e){let e=await this.socket.getEasyMode();this.setState({lang:this.socket.systemLang,ready:!0,strictEasyMode:!0,easyModeConfigs:e.configs});return}this.logsWorker||=new Bd(this.socket,1e3),this.instancesWorker||=new Hd(this.socket),this.hostsWorker||=new Ud(this.socket),this.adaptersWorker||=new Wd(this.socket),this.objectsWorker||=new Gd(this.socket);let a={lang:this.socket.systemLang,ready:!0};try{a.systemConfig=await this.socket.getCompactSystemConfig(),a.wizard=!a.systemConfig.common.licenseConfirmed,a.showTips=!a.wizard&&!a.systemConfig.common.tipsDisabled,await this.findCurrentHost(a),a.currentHost&&this.readRepoAndInstalledInfo(a.currentHost)}catch(e){console.log(`Error reading repo in onReady: ${e.stack}`)}this.adaptersWorker.registerRepositoryHandler(this.repoChangeHandler),this.adaptersWorker.registerHandler(this.adaptersChangeHandler),this.hostsWorker.registerHandler(this.updateHosts),this.hostsWorker.registerNotificationHandler(this.handleNewNotifications);let o=(window._sessionStorage||window.sessionStorage).getItem(`App.expertMode`);if(a.expertMode=zy(this.state.eosAccessRole)&&(o?o===`true`:!!((t=a.systemConfig)!=null&&t.common.expertMode)),this.socket.isSecure||(n=this.socket.systemConfig)!=null&&(n=n.native)!=null&&n.vendor)try{var i;let e=await this.socket.getCurrentUser(),t=await this.socket.getObject(`system.user.${e}`);t!=null&&(i=t.native)!=null&&i.vendor&&Object.assign(this.adminGuiConfig,t.native.vendor),this.socket.isSecure&&t&&this.setState({user:{id:t._id,name:Pe.getObjectNameFromObj(t,this.socket.systemLang),color:t.common.color,icon:t.common.icon,invertBackground:t.common.color?this.mustInvertBackground(t.common.color):!1,group:await this.getLeadingGroupName(t._id)}})}catch(e){console.error(`Could not determine user to show: ${e.toString()}, ${e.stack}`),this.showAlert(e.toString(),`error`)}this.setState(a,()=>this.setCurrentTabTitle()),this.socket.subscribeState(`system.adapter.discovery.0.alive`,this.onDiscoveryAlive),this.socket.getObject(`system.discovery`).then(e=>this.onDiscoveryObject(`system.discovery`,e)).catch(e=>console.warn(`Cannot read system.discovery: ${e}`)),this.socket.subscribeObject(`system.discovery`,this.onDiscoveryObject),setTimeout(()=>this.logsWorkerChanged(this.state.currentHost),1e3),this.newsSubscribeTimer&&clearTimeout(this.newsSubscribeTimer),this.newsSubscribeTimer=setTimeout(()=>{this.newsSubscribeTimer=null,this.subscribeOwnNews().catch(e=>console.warn(`Cannot subscribe EOS news: ${e}`))},5e3),setTimeout(async()=>{var e;let t=await((e=this.hostsWorker)==null?void 0:e.getNotifications(a.currentHost));await this.handleNewNotifications(t)},3e3)}catch(e){console.error(`Error in onReady: ${e.stack}`),this.showAlert(`Error in onReady: ${e.stack}`,`error`),this.setState({ready:!0})}},onError:e=>{console.error(e);let t;t=e instanceof Error&&e.message||e.toString(),t===`ioBroker is not connected`?this.state.cloudNotConnected||(this.showAlert(A.t(t),`error`),setInterval(()=>{this.state.cloudReconnect>0?this.setState({cloudReconnect:this.state.cloudReconnect-1}):window.location.reload()},1e3),this.setState({cloudNotConnected:!0,cloudReconnect:10})):this.showAlert(t,`error`)}}),window.NEXOWATT_EOS_ADMIN_SOCKET=this.socket,window.NEXOWATT_EOS_SOCKET=this.socket,window.dispatchEvent(new CustomEvent(`nexowatt-eos-admin-socket-ready`))))}componentWillUnmount(){var e,t,n,r,i;if(window.removeEventListener(`hashchange`,this.onHashChanged,!1),window.removeEventListener(`vite:preloadError`,by),window.removeEventListener(`nexowatt-eos-policy`,this.onEosPolicyChanged),(e=this.socket)==null||e.unsubscribeState(`system.adapter.discovery.0.alive`,this.onDiscoveryAlive),(t=this.socket)==null||t.unsubscribeObject(`system.discovery`,this.onDiscoveryObject),this.newsSubscribeTimer&&=(clearTimeout(this.newsSubscribeTimer),null),this.newsSubscription){var a;(a=this.socket)==null||a.unsubscribeState(this.newsSubscription,this.onNews),this.newsSubscription=void 0}(n=this.adaptersWorker)==null||n.unregisterRepositoryHandler(this.repoChangeHandler),(r=this.adaptersWorker)==null||r.unregisterHandler(this.adaptersChangeHandler),(i=this.hostsWorker)==null||i.unregisterHandler(this.updateHosts),this.expireInSecInterval&&=(clearInterval(this.expireInSecInterval),null),this.guiSettingsRetryTimer&&=(clearTimeout(this.guiSettingsRetryTimer),null),this.pendingCommandTimer&&=(clearTimeout(this.pendingCommandTimer),null),this.pendingCommand=null,window._localStorage&&(window._localStorage=void 0,window._sessionStorage=void 0)}async findCurrentHost(e){if(!this.socket)return;if(e.hosts=await this.socket.getCompactHosts(),!this.state.currentHost){let r=(window._localStorage||window.localStorage).getItem(`App.currentHost`),i=e.hosts.find(e=>e._id===r);if(r&&i){var t;e.currentHost=i._id,e.currentHostName=((t=i.common)==null?void 0:t.name)||i._id.replace(`system.host.`,``)}else{var n;e.currentHost=e.hosts[0]._id,e.currentHostName=((n=e.hosts[0].common)==null?void 0:n.name)||e.hosts[0]._id.replace(`system.host.`,``)}}e.ownHost=e.currentHost;let r;try{r=await this.socket.getState(`${e.currentHost}.alive`)}catch(t){r=null,console.warn(`Cannot get state ${e.currentHost}.alive: ${t}`)}if(!(r!=null&&r.val))for(let t=0;t<e.hosts.length;t++)r=await this.socket.getState(`${e.hosts[t]._id}.alive`),r!=null&&r.val&&(e.currentHost=e.hosts[t]._id,e.currentHostName=e.hosts[t].common.name)}renderTokenTimeoutDialog(){return this.state.askForTokenRefresh?M(u,{open:!0,onClose:()=>e.logout(),children:[M(le,{children:[T(fe,{children:A.t(`ra_Session will expire in %s seconds. Continue?`,Math.round((this.state.askForTokenRefresh.expireAt-Date.now())/1e3))}),T(`div`,{children:T(je,{label:A.t(`ra_Do not ask for next 2 hours in this session`),control:T(ke,{checked:this.state.askForTokenRefresh.doNotAsk,onChange:()=>{var e;let t={...this.state.askForTokenRefresh};t.doNotAsk=!((e=this.state.askForTokenRefresh)!=null&&e.doNotAsk),this.setState({askForTokenRefresh:t})}})})})]}),M(St,{children:[T(V,{onClick:()=>{var e,t;let n=(e=this.state.askForTokenRefresh)==null?void 0:e.resolve;(t=this.state.askForTokenRefresh)!=null&&t.doNotAsk&&(this.doNotAskSessionExpiration=Date.now()+72e5),this.expireInSecInterval&&=(clearInterval(this.expireInSecInterval),null),this.setState({askForTokenRefresh:null},()=>n==null?void 0:n(!0))},variant:`contained`,startIcon:T(Kr,{}),children:A.t(`ra_Continue`)}),T(V,{onClick:()=>e.logout(),variant:`outlined`,color:`grey`,startIcon:T(jr,{}),children:A.t(`ra_Logout`)})]})]}):null}ownNewsState(e){if(!/^eos-admin\.(0|[1-9]\d*)$/.test(this.adminInstance))throw Error(`EOS_NEWS_INSTANCE_UNAVAILABLE`);return`${this.adminInstance}.info.${e}`}async subscribeOwnNews(){if(!this.socket)return;let e=this.ownNewsState(`newsFeed`);this.newsSubscription&&this.newsSubscription!==e&&this.socket.unsubscribeState(this.newsSubscription,this.onNews),this.newsSubscription=e,await this.socket.subscribeState(e,this.onNews)}renderNotificationsDialog(){var e,t;return!this.state.notificationsDialog||!this.state.systemConfig||!this.socket?null:T(Js,{notifications:((e=this.state.notifications)==null?void 0:e.notifications)||{},instances:((t=this.state.notifications)==null?void 0:t.instances)||{},onClose:()=>this.setState({notificationsDialog:!1}),ackCallback:(e,t)=>this.socket.clearNotifications(e,t),dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma,themeType:this.state.themeType,themeName:this.state.themeName,theme:this.state.theme,socket:this.socket})}renderHostWarningDialog(){return!this.state.showHostWarning||!this.state.systemConfig||!this.socket?null:T(Id,{instances:this.state.showHostWarning.instances,messages:this.state.showHostWarning.result.system.categories,dateFormat:this.state.systemConfig.common.dateFormat,themeType:this.state.themeType,ackCallback:e=>this.socket.clearNotifications(this.state.showHostWarning.host,e),onClose:()=>this.setState({showHostWarning:null})})}renderNewsDialog(){return!this.state.showNews||!this.socket?null:T(jd,{newsArr:this.state.showNews.checkNews,current:this.state.showNews.lastNewsId,onSetLastNewsId:async e=>{e&&await this.socket.setState(this.ownNewsState(`newsLastId`),{val:e,ack:!0}),this.setState({showNews:null})}})}renderTipsDialog(){return!this.state.showTips||this.state.wizard||this.state.showNews||this.state.showHostWarning?null:T(iy,{t:A.t,lang:this.state.lang,lastTipId:(window._localStorage||window.localStorage).getItem(e.LAST_TIP_ID),onClose:(t,n)=>{(window._localStorage||window.localStorage).setItem(e.LAST_TIP_ID,n),this.setState({showTips:!1}),t&&this.disableTips()}})}async disableTips(){if(this.socket)try{var e;let t=await this.socket.getSystemConfig(!0);t!=null&&t.common&&!t.common.tipsDisabled&&(t.common.tipsDisabled=!0,await this.socket.setSystemConfig(t)),(e=this.state.systemConfig)!=null&&e.common&&this.setState({systemConfig:{...this.state.systemConfig,common:{...this.state.systemConfig.common,tipsDisabled:!0}}})}catch(e){this.showAlert(`Cannot save system configuration: ${e.toString()}`,`error`)}}renderSlowConnectionWarning(){return this.state.showSlowConnectionWarning?T(Xv,{readTimeoutMs:this.state.readTimeoutMs,t:A.t,onClose:e=>{e?this.setState({showSlowConnectionWarning:!1,readTimeoutMs:e},()=>this.readRepoAndInstalledInfo(this.state.currentHost,{offerLongerTimeout:!0})):this.setState({showSlowConnectionWarning:!1})}}):null}readRepoAndInstalledInfo(e,t){let n=this.readRepoAndInstalledInfoRun(e,++this.repoInfoRun,t);return this.repoInfoPromise=n,n}async readRepoAndInstalledInfoRun(e,t,n){if(!this.socket)throw Error(`Socket not initialized`);let r=n==null?void 0:n.update,i=()=>{n!=null&&n.offerLongerTimeout&&this.setState({showSlowConnectionWarning:!0})},[a,o,s]=await Promise.all([this.socket.getCompactRepository(e,r,this.state.readTimeoutMs).catch(e=>(window.alert(`Cannot getRepositoryCompact: ${e}`),e.toString().includes(`timeout`)&&i(),{})),this.socket.getCompactInstalled(e,r,this.state.readTimeoutMs).catch(e=>(window.alert(`Cannot getInstalled: ${e}`),e.toString().includes(`timeout`)&&i(),{})),this.socket.getCompactAdapters(r).then(e=>(t===this.repoInfoRun&&this.setState({adapters:e}),e)).catch(e=>(window.alert(`Cannot read adapters: ${e}`),{}))]);t===this.repoInfoRun&&(o&&s&&Object.keys(s).forEach(e=>{o[e]&&s[e].iv&&(o[e].ignoreVersion=s[e].iv)}),this.setState({repository:a,installed:o,adapters:s}))}static tabOfHash(e){return e.replace(/^#/,``).split(`/`)[0]}static isAdminTab(e){return!e||Cy.includes(e)}chatBlocksLeaving(t){return this.chatLeaveConfirmed?(this.chatLeaveConfirmed=!1,!1):this.chatBusy&&e.isAdminTab(e.tabOfHash(this.lastHash))&&!e.isAdminTab(t)}assistantNavigate(t){let n=t.startsWith(`#`)?t:`#${t}`;return e.isAdminTab(e.tabOfHash(n))?(window.location.hash=n,Promise.resolve(!0)):new Promise(e=>this.setState({chatLeaveDialog:{target:{hash:n},reason:`assistant`,resolve:e}}))}onChatLeaveDialog(e){let t=this.state.chatLeaveDialog;this.setState({chatLeaveDialog:null},()=>{var n;t==null||(n=t.resolve)==null||n.call(t,e);let r=t==null?void 0:t.target;e&&r&&(this.chatLeaveConfirmed=!0,`hash`in r?window.location.hash=r.hash:this.handleNavigation(r.tab,r.subTab,r.param))})}static getPort(){let t=parseInt(window.location.port,10);if(Number.isNaN(t))switch(e.getProtocol()){case`https:`:t=443;break;case`http:`:t=80}return t&&t!==3e3||(t=8188),t}static getProtocol(){return window.location.protocol}static createTheme(e){return a(Pe.getThemeName(e))}static getThemeName(e){return e.name}static getThemeType(e){return e.palette.mode}renderHostSelector(){return!this.socket||!this.hostsWorker?null:T(tc,{name:`admin.appBar.hostSelector`,config:this.adminGuiConfig,children:T(Sd,{themeType:this.state.themeType,expertMode:this.state.expertMode,socket:this.socket,hostsWorker:this.hostsWorker,currentHost:this.state.currentHost,setCurrentHost:(e,t)=>{this.setState({currentHostName:e,currentHost:t},async()=>{var e;this.logsWorkerChanged(t),(window._localStorage||window.localStorage).setItem(`App.currentHost`,t),await this.readRepoAndInstalledInfo(t,{offerLongerTimeout:!0});let n=await((e=this.hostsWorker)==null?void 0:e.getNotifications(t));await this.handleNewNotifications(n)})}})})}setCurrentTabTitle(){this.setTitle(this.state.currentTab.tab.replace(`tab-`,``))}setTitle(e){document.title=`${e} - ${this.state.currentHostName||`NexoWatt EOS`}`}getCurrentTab(){var e;if(!this.socket||!this.hostsWorker||!this.adaptersWorker||!this.instancesWorker||!this.objectsWorker||!this.state.systemConfig||!this.logsWorker)return null;if((e=this.state)!=null&&(e=e.currentTab)!=null&&e.tab){if(this.state.currentTab.tab===`tab-adapters`){let e=this.props.width===`xs`||this.props.width===`sm`,t=!e&&this.state.drawerState===J.opened,n=e||this.state.drawerState===J.closed;return T(ht,{fallback:T(Gc,{}),children:T(Ty,{theme:this.state.theme,triggerUpdate:this.state.triggerAdapterUpdate,forceUpdateAdapters:this.state.forceUpdateAdapters,adaptersWorker:this.adaptersWorker,instancesWorker:this.instancesWorker,themeType:this.state.themeType,systemConfig:this.state.systemConfig,socket:this.socket,adminHost:this.state.ownHost,hostsWorker:this.hostsWorker,currentHost:this.state.currentHost,ready:this.state.ready&&this.state.connected,t:A.t,lang:A.getLanguage(),expertMode:this.state.expertMode,executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),commandRunning:this.state.commandRunning,onSetCommandRunning:e=>this.setState({commandRunning:e}),menuOpened:t,menuClosed:n,adminGuiConfig:this.adminGuiConfig,toggleTranslation:this.toggleTranslation,noTranslation:this.state.noTranslation,adminInstance:this.adminInstance,currentAdminVersion:this.state.versionAdmin,onUpdating:e=>this.setState({updating:e}),hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`adapters`)})}if(this.state.currentTab.tab===`tab-instances`)return T(ht,{fallback:T(Gc,{}),children:T(Ey,{menuPadding:this.state.drawerState===J.closed?0:this.state.drawerState===J.opened?this.state.editMenuList?250:180:50,socket:this.socket,instancesWorker:this.instancesWorker,lang:A.getLanguage(),hostname:this.state.hostname,adminInstance:this.adminInstance,repository:this.state.repository,hosts:this.state.hosts,themeName:this.state.themeName,themeType:this.state.themeType,theme:this.state.theme,expertMode:this.state.expertMode,currentHost:this.state.currentHost,currentHostName:this.state.currentHostName,t:A.t,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma,width:this.props.width,configStored:e=>this.allStored(e),executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),inBackgroundCommand:this.state.commandError||this.state.performed,onRegisterIframeRef:e=>this.refConfigIframe=e,onUnregisterIframeRef:e=>{this.refConfigIframe===e&&(this.refConfigIframe=null)},handleNavigation:this.handleNavigation,hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`instances`)});if(this.state.currentTab.tab===`tab-overview`)return T(ht,{fallback:T(Gc,{}),children:T(wy,{t:A.t,lang:this.state.lang,socket:this.socket,theme:this.state.theme,themeType:this.state.themeType,currentHost:this.state.currentHost,currentHostName:this.state.currentHostName,hostsWorker:this.hostsWorker,instancesWorker:this.instancesWorker,objectsWorker:this.objectsWorker,logsWorker:this.logsWorker,expertMode:this.state.expertMode,installed:this.state.installed,repository:this.state.repository,handleNavigation:e=>this.handleNavigation(e),hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`overview`)});if(this.state.currentTab.tab===`tab-intro`)return T(ht,{fallback:T(Gc,{}),children:T(Dy,{hostname:this.state.hostname,adminInstance:this.adminInstance,instancesWorker:this.instancesWorker,hostsWorker:this.hostsWorker,showAlert:(e,t)=>this.showAlert(e,t),socket:this.socket,t:A.t,lang:A.getLanguage(),theme:this.state.theme},`intro`)});if(this.state.currentTab.tab===`tab-logs`)return T(ht,{fallback:T(Gc,{}),children:T(Oy,{t:A.t,width:this.props.width,lang:this.state.lang,socket:this.socket,themeType:this.state.themeType,theme:this.state.theme,ready:this.state.ready,logsWorker:this.logsWorker,expertMode:this.state.expertMode,currentHost:this.state.currentHost,hostsWorker:this.hostsWorker,clearErrors:()=>this.clearLogErrors(),hostSelector:this.renderHostSelector(),menuButtonSpace:this.needsMenuButtonSpace()},`logs`)});if(this.state.currentTab.tab===`tab-files`)return T(ht,{fallback:T(Gc,{}),children:T(ky,{ready:this.state.ready,t:A.t,expertMode:this.state.expertMode,lang:A.getLanguage(),socket:this.socket,themeType:this.state.themeType,theme:this.state.theme},`files`)});if(this.state.currentTab.tab===`tab-users`)return T(ht,{fallback:T(Gc,{}),children:T(jy,{ready:this.state.ready,t:A.t,expertMode:this.state.expertMode,lang:A.getLanguage(),socket:this.socket,themeType:this.state.themeType,theme:this.state.theme},`users`)});if(this.state.currentTab.tab===`tab-enums`)return T(ht,{fallback:T(Gc,{}),children:T(My,{t:A.t,lang:A.getLanguage(),socket:this.socket,themeType:this.state.themeType,theme:this.state.theme},`enums`)});if(this.state.currentTab.tab===`tab-objects`)return T(ht,{fallback:T(Gc,{}),children:T(Ay,{t:A.t,theme:this.state.theme,themeName:this.state.themeName,themeType:this.state.themeType,expertMode:this.state.expertMode,objectsWorker:this.objectsWorker,lang:A.getLanguage(),socket:this.socket,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma})},`objects`);if(this.state.currentTab.tab===`tab-hosts`)return T(ht,{fallback:T(Gc,{}),children:T(Fy,{socket:this.socket,lang:A.getLanguage(),hostsWorker:this.hostsWorker,toggleTranslation:this.toggleTranslation,noTranslation:this.state.noTranslation,themeType:this.state.themeType,theme:this.state.theme,expertMode:this.state.expertMode,t:A.t,currentHost:this.state.currentHost,executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),systemConfig:this.state.systemConfig,showAdaptersWarning:this.showAdaptersWarning,adminInstance:this.adminInstance,onUpdating:e=>this.setState({updating:e})})});if(this.state.currentTab.tab===`tab-devicemanager`)return T(ht,{fallback:T(Gc,{}),children:T(Py,{themeName:this.state.themeName,themeType:this.state.themeType,theme:this.state.theme,socket:this.socket,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma},this.state.currentTab.tab)});let e=this.state.currentTab.tab.match(/^tab-([-\w]+?)(?:-(\d+))?$/);if(e){var t;let n=(t=this.tabsInfo)==null?void 0:t.find(t=>t.name===e[0]||t.name===`tab-${e[1]}`);return T(ht,{fallback:T(Gc,{}),children:T(Ny,{hostname:this.state.hostname,adminInstance:this.adminInstance,hosts:this.state.hosts,instancesWorker:this.instancesWorker,tab:this.state.currentTab.tab,themeName:this.state.themeName,theme:this.state.theme,expertMode:this.state.expertMode,socket:this.socket,dateFormat:this.state.systemConfig.common.dateFormat,isFloatComma:this.state.systemConfig.common.isFloatComma,onRegisterIframeRef:e=>this.refConfigIframe=e,onUnregisterIframeRef:e=>{this.refConfigIframe===e&&(this.refConfigIframe=null)},icon:n==null?void 0:n.icon,supportsLoadingMessage:n==null?void 0:n.supportsLoadingMessage},this.state.currentTab.tab)})}}return null}clearLogErrors(){var e,t;(e=this.logsWorker)==null||e.resetErrors(),(t=this.logsWorker)==null||t.resetWarnings()}getCurrentDialog(){if(this.state&&this.state.currentTab&&this.state.currentTab.dialog){if(this.state.currentTab.dialog===`system`)return this.getSystemSettingsDialog();if(this.state.currentTab.dialog===`discovery`)return this.getDiscoveryModal()}return null}getSystemSettingsDialog(){return zy(this.state.eosAccessRole)?T(gd,{eosAccessRole:this.state.eosAccessRole,adminGuiConfig:this.adminGuiConfig,width:this.props.width,currentHost:this.state.currentHost,themeName:this.state.themeName,themeType:this.state.themeType,theme:this.state.theme,onClose:async e=>{var t;d.doNavigate(null);let n=await((t=this.socket)==null?void 0:t.getObject(`system.config`));n&&(e?this.setState({triggerAdapterUpdate:this.state.triggerAdapterUpdate+1,systemConfig:n}):this.setState({systemConfig:n}))},lang:this.state.lang,socket:this.socket,currentTab:this.state.currentTab,expertModeFunc:e=>{if(!zy(this.state.eosAccessRole))return;(window._sessionStorage||window.sessionStorage).removeItem(`App.expertMode`);let t=JSON.parse(JSON.stringify(this.state.systemConfig));t.common.expertMode=e,this.setState({expertMode:e,systemConfig:t})},t:A.t},`systemSettings`):null}handleAlertClose(e,t){t!==`clickaway`&&this.setState({alert:!1})}isCausedByConnectionLoss(e,t){var n;return e.includes(`notConnectedError`)?!0:this.connectionLostAt?!((n=this.socket)!=null&&n.isConnected())||this.connectionLostAt>t-Wy:!1}getConnectionLostText(){return this.connectionLostAt?A.t(`Connection to admin lost. Waiting for reconnection...`):void 0}showAlert(e,t){t!==`error`&&t!==`warning`&&t!==`info`&&t!==`success`&&(t=`info`);let n;n=typeof e==`string`?e:e instanceof Error?e.message||e.toString():e==null?`null`:e.toString(),this.setState({alert:!0,alertType:t,alertMessage:n})}handleDrawerState(e){(window._localStorage||window.localStorage).setItem(`App.drawerState`,e.toString()),this.setState({drawerState:e})}static logout(){bd().then(()=>{un.deleteTokensStatic(),window.location.replace(`/login.html`)}).catch(()=>{window.alert(`Abmeldung konnte nicht bestätigt werden. Bitte erneut versuchen.`)})}allStored(e){this._tempAllStored!==e&&(this._tempAllStored=e,this.forceUpdate())}closeDataNotStoredDialog(){this.setState({dataNotStoredDialog:!1})}confirmDataNotStored(){this._tempAllStored=!0,this.setState({dataNotStoredDialog:!1},()=>{var e,t,n;return this.handleNavigation((e=this.state.dataNotStoredTab)==null?void 0:e.tab,(t=this.state.dataNotStoredTab)==null?void 0:t.subTab,(n=this.state.dataNotStoredTab)==null?void 0:n.param)})}executeCommand(e,t,n,r){if(typeof t==`boolean`&&(n=t,t=void 0),!(this.state.connected&&this.state.ready&&this.socket&&(typeof this.socket.isConnected!=`function`||this.socket.isConnected()))){if(this.pendingCommand){this.showAlert(`EOS stellt die Verbindung noch her. Ein Installations- oder Updatebefehl wartet bereits.`,`warning`);return}let i={cmd:e,host:t,callback:n||void 0,files:r,started:Date.now()};this.pendingCommand=i,this.showAlert(`EOS stellt die Verbindung noch her. Der Befehl wird automatisch gestartet, sobald das System bereit ist.`,`info`);let a=()=>{this.pendingCommand===i&&(this.state.connected&&this.state.ready&&this.socket&&(typeof this.socket.isConnected!=`function`||this.socket.isConnected())?(this.pendingCommand=null,this.pendingCommandTimer=null,this.executeCommand(i.cmd,i.host||void 0,i.callback,i.files)):Date.now()-i.started>=6e4?(this.pendingCommand=null,this.pendingCommandTimer=null,this.showAlert(`Der Befehl wurde nicht gestartet, weil die EOS-Verbindung innerhalb von 60 Sekunden nicht bereit war.`,`error`)):this.pendingCommandTimer=setTimeout(a,500))};this.pendingCommandTimer=setTimeout(a,250)}else this.state.commandRunning?this.showAlert(`Es läuft bereits ein Installations- oder Updatebefehl.`,`warning`):this.state.performed||this.state.commandError?this.setState({cmd:null,cmdDialog:!1,commandError:!1,performed:!1,callback:null,commandHost:null,cmdFiles:null},()=>this.setState({cmd:e,cmdDialog:!0,callback:n,commandHost:t||this.state.currentHost,cmdFiles:r||null})):(console.log(`Execute: ${e}`),this.setState({cmd:e,cmdDialog:!0,callback:n,commandHost:t||this.state.currentHost,cmdFiles:r||null}))}closeCmdDialog(e){this.setState({cmd:null,cmdDialog:!1,commandError:!1,performed:!1,callback:null,commandHost:null,cmdFiles:null},()=>e&&e())}renderWizardDialog(){return this.state.wizard?T(Hl,{executeCommand:(e,t,n,r)=>this.executeCommand(e,t,n,r),host:this.state.currentHost,socket:this.socket,themeName:this.state.themeName,themeType:this.state.themeType,toggleTheme:this.toggleTheme,lang:A.getLanguage(),onClose:e=>{this.setState({wizard:!1,showRedirect:e,redirectCountDown:10,lang:A.getLanguage()},()=>{this.state.showRedirect&&setInterval(()=>{this.state.redirectCountDown>0?this.setState({redirectCountDown:this.state.redirectCountDown-1}):window.location.href=this.state.showRedirect},1e3)})},onNavigate:(e,t,n)=>{d.doNavigate(e,t,n),window.location.reload()}}):null}showRedirectDialog(){if(this.state.showRedirect){var e;return M(u,{open:!0,onClose:()=>{},children:[T(ve,{children:A.t(`Waiting for admin restart...`)}),T(le,{children:T(fe,{children:A.t(`Redirect in %s second(s)`,this.state.redirectCountDown)})}),M(St,{children:[window.sidebar||window.opera&&window.print||window.document.all&&(e=window.external)!=null&&e.AddFavorite?T(V,{onClick:()=>{if(window.sidebar&&this.state.showRedirect)window.sidebar.addPanel(`NexoWatt EOS`,this.state.showRedirect,``);else if(window.opera&&this.state.showRedirect&&window.print){let e=document.createElement(`a`);e.setAttribute(`href`,this.state.showRedirect),e.setAttribute(`title`,`NexoWatt EOS`),e.setAttribute(`rel`,`sidebar`),e.click()}else document.all&&window.external.AddFavorite(this.state.showRedirect,`NexoWatt EOS`)},children:A.t(`Bookmark admin`)}):null,this.state.redirectCountDown?T(V,{variant:`contained`,onClick:()=>this.state.showRedirect&&(window.location.href=this.state.showRedirect),children:A.t(`Go to admin now`)}):null]})]})}return null}renderCommandDialog(){return this.state.cmd&&this.socket?T($s,{onSetCommandRunning:e=>this.setState({commandRunning:e}),onClose:()=>this.closeCmdDialog(()=>this.setState({commandRunning:!1})),visible:this.state.cmdDialog,callback:this.state.callback,onInBackground:()=>this.setState({cmdDialog:!1}),cmd:this.state.cmd,files:this.state.cmdFiles||void 0,errorFunc:()=>this.setState({commandError:!0}),performed:()=>this.setState({performed:!0}),inBackground:this.state.commandError||this.state.performed,commandError:this.state.commandError,socket:this.socket,host:this.state.commandHost||this.state.currentHost,ready:this.state.ready&&this.state.connected,t:A.t}):null}async getLeadingGroupName(e){if(!this.socket)throw Error(`Socket not ready`);try{let t=await this.socket.getForeignObjects(`system.group.*`,`group`),n=Object.values(t||{}).filter(t=>{var n;return t==null||(n=t.common)==null||(n=n.members)==null?void 0:n.includes(e)}),r=n.find(e=>e._id===`system.group.administrator`)||n[0];return r?Pe.getObjectNameFromObj(r,this.socket.systemLang):``}catch(t){return console.warn(`Cannot read groups of ${e}: ${t}`),``}}renderSiteName(){var e;let t=(e=this.state.systemConfig)==null||(e=e.common)==null?void 0:e.siteName;return t?T(`div`,{style:By.siteName,children:t}):null}needsMenuButtonSpace(){var e;return!((e=this.state.systemConfig)!=null&&(e=e.common)!=null&&e.siteName)&&this.state.drawerState===J.closed}renderFloatingButtons(){let e=this.state.drawerState===J.closed,t=this.state.cmd&&!this.state.cmdDialog;return!e&&!t?null:M(F,{sx:By.floatingButtons,children:[e?T(k,{onClick:()=>this.handleDrawerState(J.opened),children:T(xt,{})}):null,t?T(k,{onClick:()=>this.setState({cmdDialog:!0}),children:T(zr,{style:this.state.commandError?By.errorCmd:this.state.performed?Pe.getStyle(this.state.theme,By.performed):By.cmd})}):null]})}renderAlertSnackbar(){return T(qe,{open:this.state.alert,autoHideDuration:6e3,onClose:()=>this.handleAlertClose(),children:T(C,{severity:this.state.alertType,variant:`filled`,onClose:()=>this.handleAlertClose(),children:this.state.alertMessage})})}renderDialogConfirm(){return this.state.dataNotStoredDialog?T(Qt,{title:A.t(`ra_Please confirm`),text:A.t(`ra_Some data are not stored. Discard?`),ok:A.t(`ra_Discard`),cancel:A.t(`ra_Cancel`),onClose:e=>e?this.confirmDataNotStored():this.closeDataNotStoredDialog()}):null}renderChatLeaveDialog(){if(!this.state.chatLeaveDialog)return null;let e=this.state.chatLeaveDialog.reason===`busy`;return T(Qt,{title:A.t(`ra_Please confirm`),text:A.t(e?`The assistant is still working on an answer, which is lost on this tab. Leave anyway?`:`The assistant is not available on this tab and will be closed. Continue?`),ok:A.t(e?`Leave anyway`:`Continue`),cancel:A.t(`ra_Cancel`),onClose:e=>this.onChatLeaveDialog(e)})}renderExpertDialog(){return!this.state.expertModeDialog||!zy(this.state.eosAccessRole)?null:T(wd,{onClose:e=>{if(!zy(this.state.eosAccessRole))this.setState({expertModeDialog:!1,expertMode:!1});else if(e===`openSettings`)d.doNavigate(null,`system`);else if(e){var t;(window._sessionStorage||window.sessionStorage).setItem(`App.expertMode`,this.state.expertMode?`false`:`true`),(t=this.refConfigIframe)==null||(t=t.contentWindow)==null||t.postMessage(`updateExpertMode`,`*`),this.setState({expertModeDialog:!1,expertMode:!this.state.expertMode})}else this.state.expertModeDialog&&this.setState({expertModeDialog:!1})},expertMode:this.state.expertMode})}renderShowGuiSettings(){return this.state.showGuiSettings?M(Qe,{anchorEl:this.state.showGuiSettings,open:!0,onClose:()=>this.setState({showGuiSettings:null}),children:[T(Lt,{onClick:()=>{this.setState({showGuiSettings:null}),this.enableGuiSettings(!0).catch(e=>console.error(`Cannot enable GUI settings: ${e}`))},children:A.t(`Use settings of other browsers`)}),T(Lt,{onClick:()=>{this.setState({showGuiSettings:null}),this.enableGuiSettings(!0,!0).catch(e=>console.error(`Cannot enable GUI settings: ${e}`))},children:A.t(`Use settings of this browser`)}),M(Lt,{onClick:()=>this.setState({showGuiSettings:null}),children:[T(Nt,{children:T(O,{fontSize:`small`})}),T(Yt,{children:A.t(`Cancel`)})]})]}):null}renderExpertModeButton(){var e;let t=(window._sessionStorage||window.sessionStorage).getItem(`App.expertMode`),n=!t||t===`true`==!!((e=this.state.systemConfig)!=null&&e.common.expertMode);return zy(this.state.eosAccessRole)?T(tc,{name:`admin.appBar.expertMode`,config:this.adminGuiConfig,children:T(Rt,{title:`${A.t(`Toggle expert mode`)} ${n?``:` (${A.t(`only in this browser session`)})`}`,slotProps:{popper:{sx:By.tooltip}},children:T(ot,{color:`secondary`,variant:`dot`,sx:{"& .MuiBadge-badge":By.expertBadge},invisible:n,children:T(k,{"data-eos-expert-control":`1`,"aria-label":A.t(`Toggle expert mode`),"aria-pressed":this.state.expertMode,onClick:()=>{var e;if(zy(this.state.eosAccessRole)){if(!!((e=this.state.systemConfig)!=null&&e.common.expertMode)==!this.state.expertMode){var t;(window._sessionStorage||window.sessionStorage).setItem(`App.expertMode`,this.state.expertMode?`false`:`true`),this.setState({expertMode:!this.state.expertMode}),(t=this.refConfigIframe)==null||(t=t.contentWindow)==null||t.postMessage(`updateExpertMode`,`*`)}else if((window._sessionStorage||window.sessionStorage).getItem(`App.doNotShowExpertDialog`)===`true`){var n;(window._sessionStorage||window.sessionStorage).setItem(`App.expertMode`,this.state.expertMode?`false`:`true`),this.setState({expertMode:!this.state.expertMode}),(n=this.refConfigIframe)==null||(n=n.contentWindow)==null||n.postMessage(`updateExpertMode`,`*`)}else this.setState({expertModeDialog:!0})}},style:{color:this.state.expertMode?this.state.theme.palette.expert:void 0},color:`default`,children:T(Mt,{style:{...By.expertIcon,...this.state.expertMode?By.expertIconActive:void 0}})})})})}):null}renderMenuButtons(){let e=this.state.noNotifications.warning+this.state.noNotifications.other;return M(Me,{children:[T(Rt,{title:A.t(`Notifications`),slotProps:{popper:{sx:By.tooltip}},children:T(k,{disableRipple:!e,style:{opacity:e?1:.3},onClick:e?()=>this.setState({notificationsDialog:!0}):void 0,children:T(ot,{badgeContent:this.state.noNotifications.other+this.state.noNotifications.warning,color:this.state.noNotifications.warning>0?`error`:`secondary`,max:99,children:T(Ir,{})})})}),T(tc,{name:`admin.appBar.discovery`,config:this.adminGuiConfig,children:this.state.discoveryAlive?T(Rt,{title:this.state.discoveryProposals?`${A.t(`Discovery devices`)} - ${A.t(`New adapter proposals`)}: ${this.state.discoveryProposals}`:A.t(`Discovery devices`),slotProps:{popper:{sx:By.tooltip}},children:T(k,{onClick:()=>d.doNavigate(null,`discovery`),children:T(ot,{badgeContent:this.state.discoveryProposals,color:`secondary`,max:99,children:T(Xe,{})})})}):T(`div`,{style:{display:`none`}})}),this.toggleThemePossible?T(tc,{name:`admin.appBar.toggleTheme`,config:this.adminGuiConfig,children:T(ne,{toggleTheme:this.toggleTheme,themeName:this.state.themeName,t:A.t})}):null,zy(this.state.eosAccessRole)&&this.state.expertMode?T(Rt,{title:A.t(`Synchronize admin settings between all opened browser windows`),slotProps:{popper:{sx:By.tooltip}},children:T(k,{onClick:e=>this.state.guiSettings?this.enableGuiSettings(!1):this.setState({showGuiSettings:e.target}),style:{color:this.state.guiSettings?this.state.theme.palette.expert:void 0},children:this.state.guiSettings?T(xr,{}):T(Gr,{})})}):null]})}renderToolbar(e){let t=Pe.getStyle(this.state.theme,By.performed);return M(pt,{children:[T(k,{size:`large`,edge:`start`,"data-eos-menu-toggle":`1`,"aria-label":A.t(`Open menu`),"aria-expanded":this.state.drawerState!==J.closed,style:{...By.menuButton,...!e&&this.state.drawerState!==J.closed?By.hide:void 0},onClick:()=>this.handleDrawerState(J.opened),children:T(xt,{})}),M(`div`,{style:By.wrapperButtons,children:[T(F,{className:`eos-header-controls`,children:this.renderMenuButtons()}),T(`div`,{style:By.flexGrow}),this.state.cmd&&!this.state.cmdDialog&&T(k,{size:`large`,onClick:()=>this.setState({cmdDialog:!0}),children:T(zr,{style:this.state.commandError?By.errorCmd:this.state.performed?t:By.cmd})})]}),this.renderSiteName(),this.state.drawerState!==J.opened&&!this.state.expertMode&&window.innerWidth>450&&M(N,{container:!0,style:{...By.avatarNotVisible,...this.state.drawerState===J.opened?void 0:By.avatarVisible},spacing:1,sx:{alignItems:`center`},children:[this.state.user?null:M(F,{component:`div`,style:By.wrapperName,children:[T(L,{children:`admin`}),!this.adminGuiConfig.icon&&this.state.versionAdmin&&M(L,{style:{...By.styleVersion,color:this.state.themeType===`dark`?`#ffffff80`:`#00000080`},children:[`v`,this.state.versionAdmin]})]}),T(N,{children:T(`a`,{href:`#easy`,onClick:e=>e.preventDefault(),style:{color:`inherit`,textDecoration:`none`},children:this.adminGuiConfig.icon?T(`div`,{style:{height:50,width:102,lineHeight:`50px`,background:`white`,borderRadius:5,padding:5},children:T(`img`,{src:this.adminGuiConfig.icon,alt:`logo`,style:{maxWidth:`100%`,maxHeight:`100%`}})}):T(_t,{onClick:()=>this.handleNavigation(`easy`),style:this.state.themeName===`colored`||this.state.themeName===`blue`?By.logoWhite:void 0,alt:`NexoWatt EOS`,src:`img/no-image.svg`})})})]})]})}renderSampleError(){var e,t;let n=(e=this.state.hasGlobalError)==null?void 0:e.message,r=(t=this.state.hasGlobalError)==null?void 0:t.stack;return vy(this.state.hasGlobalError)?M(`div`,{style:{textAlign:`center`,fontSize:22,marginTop:50},children:[T(`h2`,{children:A.t(`The admin was updated. Please load the page anew.`)}),T(V,{variant:`contained`,onClick:()=>window.location.reload(),children:A.t(`Reload`)}),T(`div`,{style:{color:`#888`,fontSize:14,marginTop:20},children:n})]}):M(`div`,{style:{textAlign:`center`,fontSize:22,marginTop:50,height:`calc(100% - 50px)`,overflow:`auto`},children:[T(`h1`,{style:{color:`#F00`},children:`Error in GUI!`}),`Please open the browser console (F12), copy error text from there and create the issue on`,` `,T(`a`,{href:`https://nexowatt.com`,target:`_blank`,rel:`noreferrer`,children:`github`}),T(`br`,{}),`Without this information it is not possible to analyse the error.`,T(`br`,{}),`It should looks like `,T(`br`,{}),T(`img`,{src:`img/browserError.png`,alt:`error`}),T(`br`,{}),`If in the second line you will see`,` `,T(`code`,{style:{color:`#888`,fontFamily:`monospace`,fontSize:16},children:`at :3000/static/js/main.chunk.js:36903`}),` `,`and not the normal file name,`,T(`br`,{}),`please try to reproduce an error with opened browser console. In this case the special "map" files will be loaded and the developers can see the real name of functions and files.`,T(`div`,{style:{color:`#F88`,fontSize:14,marginTop:20},children:n}),T(`pre`,{style:{color:`#F88`,fontSize:12,fontFamily:`monospace`,textAlign:`left`,marginTop:20,padding:20},children:(r||``).toString().split(`
205
205
  `).map((e,t)=>M(`div`,{children:[e,T(`br`,{})]},t))})]})}renderEasyMode(){var e,t;return this.socket?T(de,{injectFirst:!0,children:T(_e,{theme:this.state.theme,children:M(`div`,{style:{height:`100%`},children:[!this.state.connected&&T(Gc,{text:this.getConnectionLostText()}),T(ht,{fallback:T(Gc,{}),children:T(Iy,{navigate:d.doNavigate,getLocation:d.getLocation,location:this.state.currentTab,toggleTheme:this.toggleTheme,themeName:this.state.themeName,themeType:this.state.themeType,theme:this.state.theme,width:this.props.width,adminInstance:this.adminInstance,configs:this.state.easyModeConfigs,socket:this.socket,configStored:e=>this.allStored(e),isFloatComma:!!((e=this.state.systemConfig)!=null&&e.common.isFloatComma),dateFormat:((t=this.state.systemConfig)==null?void 0:t.common.dateFormat)||`DD.MM.YYYY`,t:A.t,lang:A.getLanguage(),onRegisterIframeRef:e=>this.refConfigIframe=e,onUnregisterIframeRef:e=>{this.refConfigIframe===e&&(this.refConfigIframe=null)},handleNavigation:this.handleNavigation})})]})})}):null}render(){var t,n;let r=this.props.width===`xs`||this.props.width===`sm`,i=this.needsMenuButtonSpace();return this.state.cloudNotConnected?T(de,{injectFirst:!0,children:M(_e,{theme:this.state.theme,children:[T(Ys,{label:M(Me,{children:[A.t(`Waiting for connection of ioBroker...`),` `,T(`span`,{style:{fontSize:18},children:this.state.cloudReconnect})]})}),this.renderAlertSnackbar()]})}):this.state.hasGlobalError?this.renderSampleError():this.state.login?T(de,{injectFirst:!0,children:M(_e,{theme:this.state.theme,children:[T(yd,{}),this.renderAlertSnackbar()]})}):!this.state.ready&&!this.state.updating?T(de,{injectFirst:!0,children:M(_e,{theme:this.state.theme,children:[T(Tt,{}),T(Ys,{label:A.t(`Loading...`)}),this.renderAlertSnackbar()]})}):this.state.strictEasyMode||this.state.currentTab.tab===`easy`?this.renderEasyMode():T(de,{injectFirst:!0,children:M(_e,{theme:this.state.theme,children:[T(ue,{theme:this.state.theme}),T(Tt,{}),T(`style`,{children:`@keyframes myEffect2 {
206
206
  0% {
207
207
  opacity: 1;